Skip to content
Snippets Groups Projects
Commit 28754d3f authored by Julian Oes's avatar Julian Oes Committed by Lorenz Meier
Browse files

ekf2: don't reset GPS position in every loop

parent 9d5728b9
No related branches found
No related tags found
No related merge requests found
......@@ -247,6 +247,8 @@ void Ekf2::task_main()
// initialise parameter cache
updateParams();
vehicle_gps_position_s gps = {};
while (!_task_should_exit) {
int ret = px4_poll(fds, sizeof(fds) / sizeof(fds[0]), 1000);
......@@ -277,7 +279,6 @@ void Ekf2::task_main()
bool airspeed_updated = false;
sensor_combined_s sensors = {};
vehicle_gps_position_s gps = {};
airspeed_s airspeed = {};
orb_copy(ORB_ID(sensor_combined), _sensors_sub, &sensors);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment