mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
Sub: force GND_EXT_BUS at boot for Pixhawk 1 and 2
This commit is contained in:
parent
d5896287b7
commit
bc0827ffd7
@ -39,10 +39,10 @@ void Sub::init_ardupilot()
|
||||
// Detection won't work until after BoardConfig.init()
|
||||
switch (AP_BoardConfig::get_board_type()) {
|
||||
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;
|
||||
default:
|
||||
AP_Param::set_default_by_name("GND_EXT_BUS", 1);
|
||||
AP_Param::set_by_name("GND_EXT_BUS", 1);
|
||||
break;
|
||||
}
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user