mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_PX4: disable safety switch for aerofc
This commit is contained in:
parent
a682bb837a
commit
5e26940070
|
@ -73,6 +73,9 @@ bool PX4Util::run_debug_shell(AP_HAL::BetterStream *stream)
|
|||
*/
|
||||
enum PX4Util::safety_state PX4Util::safety_switch_state(void)
|
||||
{
|
||||
#ifdef CONFIG_ARCH_BOARD_AEROFC_V1
|
||||
return AP_HAL::Util::SAFETY_NONE;
|
||||
#else
|
||||
if (_safety_handle == -1) {
|
||||
_safety_handle = orb_subscribe(ORB_ID(safety));
|
||||
}
|
||||
|
@ -90,6 +93,7 @@ enum PX4Util::safety_state PX4Util::safety_switch_state(void)
|
|||
return AP_HAL::Util::SAFETY_ARMED;
|
||||
}
|
||||
return AP_HAL::Util::SAFETY_DISARMED;
|
||||
#endif
|
||||
}
|
||||
|
||||
void PX4Util::set_system_clock(uint64_t time_utc_usec)
|
||||
|
|
Loading…
Reference in New Issue