Skip to content

Commit

Permalink
allow disarming when not in offboard mode
Browse files Browse the repository at this point in the history
  • Loading branch information
klaxalk committed Dec 5, 2023
1 parent b1701e8 commit c21baca
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/hw_api_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,6 @@ std::tuple<bool, std::string> Api::callbackArming([[maybe_unused]] const bool& r

std::stringstream ss;

if (!request && !offboard_) {
ss << "can not disarm, not in OFFBOARD mode";
ROS_WARN_STREAM_THROTTLE(1.0, "[MrsSimulatorHwApi]: " << ss.str());
return std::tuple(false, ss.str());
}

if (request) {

armed_ = true;
Expand Down

0 comments on commit c21baca

Please sign in to comment.