mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-08 02:17:07 +08:00
sensors: reorder initialization calls
needed for the next commit
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user