Browse Source

sensors: reorder initialization calls

needed for the next commit
sbg
Beat Küng 8 years ago committed by Lorenz Meier
parent
commit
41d220ac2d
  1. 10
      src/modules/sensors/sensors.cpp

10
src/modules/sensors/sensors.cpp

@ -579,14 +579,16 @@ Sensors::task_main() @@ -579,14 +579,16 @@ Sensors::task_main()
PX4_ERR("sensor initialization failed");
}
/* (re)load params and calibration */
parameter_update_poll(true);
struct sensor_combined_s raw = {};
struct sensor_preflight_s preflt = {};
_rc_update.init();
_voted_sensors_update.init(raw);
struct sensor_preflight_s preflt = {};
/* (re)load params and calibration */
parameter_update_poll(true);
/*
* do subscriptions

Loading…
Cancel
Save