From 3338b4295ef115ede30c816f92bd3a18504d2333 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 9 Jan 2017 20:52:49 +1100 Subject: [PATCH] Plane: use reload_defaults_file() --- ArduPlane/Parameters.cpp | 2 +- ArduPlane/system.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ArduPlane/Parameters.cpp b/ArduPlane/Parameters.cpp index 782d9e39d0..ea06d4db59 100644 --- a/ArduPlane/Parameters.cpp +++ b/ArduPlane/Parameters.cpp @@ -1320,7 +1320,7 @@ void Plane::load_parameters(void) uint32_t before = micros(); // Load all auto-loaded EEPROM variables - AP_Param::load_all(); + AP_Param::load_all(false); AP_Param::convert_old_parameters(&conversion_table[0], ARRAY_SIZE(conversion_table)); // setup defaults in SRV_Channels diff --git a/ArduPlane/system.cpp b/ArduPlane/system.cpp index 8ed0e552c7..868e5cf3f1 100644 --- a/ArduPlane/system.cpp +++ b/ArduPlane/system.cpp @@ -241,6 +241,8 @@ void Plane::init_ardupilot() quadplane.setup(); + AP_Param::reload_defaults_file(); + startup_ground(); // don't initialise aux rc output until after quadplane is setup as