Skip to content
Snippets Groups Projects
Commit 8cb446c2 authored by Matthias Grob's avatar Matthias Grob Committed by Beat Küng
Browse files

mc_pos_control: remove useless landed state copy

If the landed state was set before the position controller starts it
would get updated with the first poll_subscriptions() anyways. But it's
not on all posix and nuttx platforms I tested and the deleted statement
just copies the zero message into the struct which is already zero.
parent 5ba56c8c
No related branches found
No related tags found
No related merge requests found
......@@ -588,9 +588,6 @@ MulticopterPositionControl::run()
// get an initial update for all sensor and status data
poll_subscriptions();
// We really need to know from the beginning if we're landed or in-air.
orb_copy(ORB_ID(vehicle_land_detected), _vehicle_land_detected_sub, &_vehicle_land_detected);
hrt_abstime t_prev = 0;
// Let's be safe and have the landing gear down by default
......
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