From fc4741395dd6f6d84a230a21c7edad3c602fd621 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Sat, 21 Jan 2017 15:16:27 +0900 Subject: [PATCH] Plane: notify initialised after parameters loaded --- ArduPlane/ArduPlane.cpp | 2 -- ArduPlane/system.cpp | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ArduPlane/ArduPlane.cpp b/ArduPlane/ArduPlane.cpp index a12bbf2ffa..633926ba75 100644 --- a/ArduPlane/ArduPlane.cpp +++ b/ArduPlane/ArduPlane.cpp @@ -103,8 +103,6 @@ void Plane::setup() AP_Notify::flags.failsafe_battery = false; - notify.init(false); - rssi.init(); init_ardupilot(); diff --git a/ArduPlane/system.cpp b/ArduPlane/system.cpp index 50e6eadb16..c7804ec5e5 100644 --- a/ArduPlane/system.cpp +++ b/ArduPlane/system.cpp @@ -131,6 +131,10 @@ void Plane::init_ardupilot() // setup any board specific drivers BoardConfig.init(); + // initialise notify system + notify.init(false); + notify_flight_mode(control_mode); + init_rc_out_main(); // allow servo set on all channels except first 4