Skip to content

Commit

Permalink
implemented feature to set thruster to 0 when controller disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mzhouURI committed Dec 21, 2023
1 parent beeffb0 commit 769db8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mvp_control/mvp_control_ros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,9 @@ void MvpControlROS::f_control_loop() {
* Check if controller is enabled or not.
*/
if(!m_enabled) {
for(int i = 0 ; i < m_thrusters.size() ; i++) {
m_thrusters.at(i)->command(0);
}
continue;
}

Expand Down

0 comments on commit 769db8e

Please sign in to comment.