mirror of https://github.com/ArduPilot/ardupilot
APMrover2: kill AP_FEATURE_SAFETY_BUTTON
This is redundant and can be just HAL_HAVE_SAFETY_SWITCH.
This commit is contained in:
parent
604deaf4ba
commit
00f03360bc
|
@ -652,7 +652,7 @@ void Rover::load_parameters(void)
|
|||
L1_controller.set_default_period(NAVL1_PERIOD);
|
||||
|
||||
// configure safety switch to allow stopping the motors while armed
|
||||
#if AP_FEATURE_SAFETY_BUTTON
|
||||
#if HAL_HAVE_SAFETY_SWITCH
|
||||
AP_Param::set_default_by_name("BRD_SAFETYOPTION", AP_BoardConfig::BOARD_SAFETY_OPTION_BUTTON_ACTIVE_SAFETY_OFF|
|
||||
AP_BoardConfig::BOARD_SAFETY_OPTION_BUTTON_ACTIVE_SAFETY_ON|
|
||||
AP_BoardConfig::BOARD_SAFETY_OPTION_BUTTON_ACTIVE_ARMED);
|
||||
|
|
Loading…
Reference in New Issue