From 41d220ac2da7d77c8e1009b5e9b38fa26a913c04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Thu, 19 Jan 2017 08:24:02 +0100 Subject: [PATCH] sensors: reorder initialization calls needed for the next commit --- src/modules/sensors/sensors.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/modules/sensors/sensors.cpp b/src/modules/sensors/sensors.cpp index b6c1522a58..658738a3da 100644 --- a/src/modules/sensors/sensors.cpp +++ b/src/modules/sensors/sensors.cpp @@ -579,15 +579,17 @@ Sensors::task_main() PX4_ERR("sensor initialization failed"); } - /* (re)load params and calibration */ - parameter_update_poll(true); - struct sensor_combined_s raw = {}; - _rc_update.init(); - _voted_sensors_update.init(raw); struct sensor_preflight_s preflt = {}; + _rc_update.init(); + + _voted_sensors_update.init(raw); + + /* (re)load params and calibration */ + parameter_update_poll(true); + /* * do subscriptions */