Features
This is a function that the user can set and convert the current operation state in the robot controller.
Parameter
|
Parameter Name |
Data Type |
Default Value |
Description |
|---|---|---|---|
|
eControl |
enum.ROBOT_CONTROL |
- |
Refer to the Definition of Constant and Enumeration Type |
Return
|
Value |
Description |
|---|---|
|
0 |
Error |
|
1 |
Success |
Example
C++
if (drfl.get_robot_state () == eSTATE_SAFE_OFF) {
// Servo on
drfl.set_robot_control(eCONTROL_RESET_SAFET_OFF);
}
else if (drfl.get_robot_state () == eSTATE_SAFE_OFF2) {
// Enters the Recovery mode
drfl.set_robot_control(CONTROL_RECOVERY_SAFE_OFF);
}