Skip to content

Commit

Permalink
Send armIKEnabledReport on emergency shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Geeoon committed Oct 17, 2023
1 parent 99506aa commit 89356d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/network/MissionControlProtocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ void MissionControlProtocol::handleEmergencyStopRequest(const json& j) {
// TODO: reinit motors
Globals::E_STOP = stop;
Globals::armIKEnabled = false;

// inform MC that Ik has been disabled
sendArmIKEnabledReport();
}

static bool validateOperationModeRequest(const json& j) {
Expand Down

0 comments on commit 89356d4

Please sign in to comment.