Sub: force GND_EXT_BUS at boot for Pixhawk 1 and 2

This commit is contained in:
Jacob Walser 2017-10-20 14:11:05 -04:00 committed by Andrew Tridgell
parent d5896287b7
commit bc0827ffd7

View File

@ -39,10 +39,10 @@ void Sub::init_ardupilot()
// Detection won't work until after BoardConfig.init() // Detection won't work until after BoardConfig.init()
switch (AP_BoardConfig::get_board_type()) { switch (AP_BoardConfig::get_board_type()) {
case AP_BoardConfig::PX4_BOARD_PIXHAWK2: case AP_BoardConfig::PX4_BOARD_PIXHAWK2:
AP_Param::set_default_by_name("GND_EXT_BUS", 0); AP_Param::set_by_name("GND_EXT_BUS", 0);
break; break;
default: default:
AP_Param::set_default_by_name("GND_EXT_BUS", 1); AP_Param::set_by_name("GND_EXT_BUS", 1);
break; break;
} }
#else #else