Browse Source

SITL: params always use set method

apm_2208
Iampete1 3 years ago committed by Peter Hall
parent
commit
79b44b2517
  1. 4
      libraries/SITL/SITL.h

4
libraries/SITL/SITL.h

@ -387,10 +387,10 @@ public:
return (AP_HAL::Util::safety_state)_safety_switch_state.get(); return (AP_HAL::Util::safety_state)_safety_switch_state.get();
} }
void force_safety_off() { void force_safety_off() {
_safety_switch_state = (uint8_t)AP_HAL::Util::SAFETY_ARMED; _safety_switch_state.set((uint8_t)AP_HAL::Util::SAFETY_ARMED);
} }
bool force_safety_on() { bool force_safety_on() {
_safety_switch_state = (uint8_t)AP_HAL::Util::SAFETY_DISARMED; _safety_switch_state.set((uint8_t)AP_HAL::Util::SAFETY_DISARMED);
return true; return true;
} }

Loading…
Cancel
Save