File tree 3 files changed +5
-7
lines changed
3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -271,7 +271,6 @@ bool fastcat::Actuator::Write(DeviceCmd& cmd)
271
271
272
272
case ACTUATOR_RESET_CMD:
273
273
Reset ();
274
- return false ;
275
274
break ;
276
275
277
276
case ACTUATOR_HALT_CMD:
@@ -368,10 +367,8 @@ void fastcat::Actuator::Fault()
368
367
void fastcat::Actuator::Reset ()
369
368
{
370
369
WARNING (" Resetting Actuator device %s" , name_.c_str ());
371
- if (actuator_sms_ == ACTUATOR_SMS_FAULTED ||
372
- actuator_sms_ == ACTUATOR_SMS_HALTED) {
373
- TransitionToState (ACTUATOR_SMS_HOLDING);
374
- EgdReset ();
370
+ if (actuator_sms_ == ACTUATOR_SMS_FAULTED) {
371
+ TransitionToState (ACTUATOR_SMS_HALTED);
375
372
}
376
373
}
377
374
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ class Actuator : public DeviceBase
66
66
bool HandleNewProfVelCmd (DeviceCmd& cmd);
67
67
bool HandleNewProfTorqueCmd (DeviceCmd& cmd);
68
68
bool HandleNewHaltCmd ();
69
+ bool HandleNewResetCmd ();
69
70
bool HandleNewSetOutputPositionCmd (DeviceCmd& cmd);
70
71
bool HandleNewCalibrationCmd (DeviceCmd& cmd);
71
72
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ bool fastcat::Actuator::CheckStateMachineMotionCmds()
47
47
break ;
48
48
49
49
case ACTUATOR_SMS_HALTED:
50
- Reset (); // This will open the brake, then fallthrough
50
+ EgdReset (); // This will open the brake, then fallthrough
51
51
case ACTUATOR_SMS_HOLDING:
52
52
case ACTUATOR_SMS_PROF_POS:
53
53
case ACTUATOR_SMS_PROF_VEL:
@@ -343,7 +343,7 @@ bool fastcat::Actuator::HandleNewCalibrationCmd(DeviceCmd& cmd)
343
343
return false ;
344
344
345
345
case ACTUATOR_SMS_HALTED:
346
- Reset ();
346
+ EgdReset ();
347
347
case ACTUATOR_SMS_HOLDING:
348
348
break ;
349
349
case ACTUATOR_SMS_PROF_POS:
You can’t perform that action at this time.
0 commit comments