| void ActHandler::calibrate |
( |
| ) |
|
start calibration process, if calibration is completed calibration flag of ActState given by getState is set during calibration process calling this method has no effect
| void ActHandler::clearError |
( |
| ) |
|
call this to try to clear device error
get Actuator Info as defined by Schilling Actuator Command List, usually not needed for operational mode data is valid if requestActInfo has been called and hasActInfoUpdate returned true
get boundaries, i.e. min and max angles defined by the mechanical assembly of the actuator
get Actuator Data use this to get the control mode, position and velocity, call it in cycles with requestStatus
get Actuator Device Status use this to get the status bytes and the position in encodeer counts, call it in cycles with requestStatus
get Drive Status as defined by Schilling Actuator Command List, usually not needed for operational mode data is valid if requestDriveStatus has been called and hasDriveStateUpdate returned true
get Position as defined by Schilling Actuator Command List, usually not needed for operational mode data is valid if requestPosition has been called and hasPosUpdate returned true
get the Driver and Actuator State only if both flags are set, it is safe to move the actuator, call initDevice and calibrate to get the actuator in the right state to run it (calibration takes some time)
| bool ActHandler::hasActInfoUpdate |
( |
| ) |
|
call this after actuator info has been requested by requestActInfo
- Returns
- returns true if actuator info available with getActInfo has been updated
| bool ActHandler::hasDriveStatusUpdate |
( |
| ) |
|
call this after status has been requested by requestDriveStatus
- Returns
- returns true if position available with getDriveStatus has been updated
| bool ActHandler::hasPosUpdate |
( |
| ) |
|
call this after status has been requested by requestPosition
- Returns
- returns true if position available with getPosition has been updated
| bool ActHandler::hasStatusUpdate |
( |
| ) |
|
call this after status has been requested by requestStatus
- Returns
- returns true if status available with getData and getDeviceStatus has been updated
| void ActHandler::initDevice |
( |
| ) |
|
|
virtual |
initializes the device, call this first to start communication with the actuator
| bool ActHandler::isIdle |
( |
| ) |
|
|
virtual |
checks if messages to the device are in the queue
- Returns
- true: device message queue is empty
| void ActHandler::requestActInfo |
( |
| ) |
|
request Actuator Info as defined by Schilling Actuator Command List, usually not needed for operational mode call hasActInfoUpdate to see if response has been processed and getActInfo to receive data
| void ActHandler::requestDriveStatus |
( |
| ) |
|
request Drive Status as defined by Schilling Actuator Command List, usually not needed for operational mode call hasDriveStateUpdate to see if response has been processed and getDriveStatus to receive data
| void ActHandler::requestPosition |
( |
| ) |
|
request Position as defined by Schilling Actuator Command List, usually not needed for operational mode call hasPosUpdate to see if response has been processed and getPosition to receive data
| void ActHandler::requestStatus |
( |
| ) |
|
|
virtual |
request the device status, call this periodically, check response update with hasStatusUpdate and read requested data with getData and getDeviceStatus
| void ActHandler::setAnglePos |
( |
double |
ang, |
|
|
double |
velCoeff = 1 |
|
) |
| |
set actuator position in angle, only comes into effect when actuator is in position mode
- count: signed angle
- velCoeff: coefficient to adjust velocity preset by config
| void ActHandler::setControlMode |
( |
act_schilling::ControlMode const |
mode | ) |
|
set the Control Mode to position, velocity or none (actuator is disabled) during calibration process calling this method has no effect
| void ActHandler::setPos |
( |
int |
count, |
|
|
float |
velCoeff = 1 |
|
) |
| |
set actuator position in encoder counts, only comes into effect when actuator is in position mode
- count: signed encoder count
- velCoeff: coefficient to adjust velocity preset by config
| void ActHandler::setResetState |
( |
| ) |
|
call this to switch driver software into reset state, e.g. after a communication loss or power reset of the device
| void ActHandler::setVelocity |
( |
double |
vel | ) |
|
set actuator velocity, if actuator is in velocity mode, actuator starts moving with specified velocity if actuator is in position mode call comes only into effect if actuator is moving
- vel: velocity from 0 to 960000 RPM
- velCoeff: coefficient to adjust velocity preset by config
The documentation for this class was generated from the following files:
- /build/rock-master-18.09-drivers-act-schilling-0.20171014/src/ActHandler.hpp
- /build/rock-master-18.09-drivers-act-schilling-0.20171014/src/ActHandler.cpp