Skip to content

Commit

Permalink
Set state to "PAUSED" when the mower is paused.
Browse files Browse the repository at this point in the history
  • Loading branch information
ClemensElflein committed May 8, 2024
1 parent 78854b2 commit a701b86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mower_logic/src/mower_logic/behaviors/MowingBehavior.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ extern void registerActions(std::string prefix, const std::vector<xbot_msgs::Act
MowingBehavior MowingBehavior::INSTANCE;

std::string MowingBehavior::state_name() {
if(paused) {
return "PAUSED";
}
return "MOWING";
}

Expand Down

0 comments on commit a701b86

Please sign in to comment.