AP_HAL_PX4: disable safety switch for aerofc

This commit is contained in:
Lucas De Marchi 2017-02-09 19:18:13 -08:00 committed by Andrew Tridgell
parent a682bb837a
commit 5e26940070
1 changed files with 4 additions and 0 deletions

View File

@ -73,6 +73,9 @@ bool PX4Util::run_debug_shell(AP_HAL::BetterStream *stream)
*/ */
enum PX4Util::safety_state PX4Util::safety_switch_state(void) 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) { if (_safety_handle == -1) {
_safety_handle = orb_subscribe(ORB_ID(safety)); _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_ARMED;
} }
return AP_HAL::Util::SAFETY_DISARMED; return AP_HAL::Util::SAFETY_DISARMED;
#endif
} }
void PX4Util::set_system_clock(uint64_t time_utc_usec) void PX4Util::set_system_clock(uint64_t time_utc_usec)