Open bay at a minimum distance of 5 meters, irrelevant of the velocity

This commit is contained in:
Lorenz Meier
2014-08-21 15:47:37 +02:00
parent 7c7dce3b44
commit 8e7722f894
+1 -1
View File
@@ -637,7 +637,7 @@ BottleDrop::task_main()
}
// We're close enough - open the bay
distance_open_door = math::max(3.0f, 3.0f * fabsf(t_door * groundspeed_body));
distance_open_door = math::max(5.0f, 3.0f * fabsf(t_door * groundspeed_body));
if (counter % 10 == 0)
warnx("dist real: %.2f, distance_open_door: %.2f, angle to wind: %.2f",