From b514fd29eb1de801dd6c45fc5ec4049b3875c91a Mon Sep 17 00:00:00 2001 From: Jacob Walser Date: Fri, 20 Oct 2017 14:11:05 -0400 Subject: [PATCH] Sub: force GND_EXT_BUS at boot for Pixhawk 1 and 2 --- ArduSub/system.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduSub/system.cpp b/ArduSub/system.cpp index 311ee00af0..2b0ea4ba30 100644 --- a/ArduSub/system.cpp +++ b/ArduSub/system.cpp @@ -36,10 +36,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