sensors: reorder initialization calls

needed for the next commit
This commit is contained in:
Beat Küng
2017-01-19 08:24:02 +01:00
committed by Lorenz Meier
parent f6f145cbe8
commit 41d220ac2d
+7 -5
View File
@@ -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
*/