FlightTaskOrbit: reset approach if radius gets changed

This commit is contained in:
Matthias Grob authored and Julian Kent committed 2020-07-21 10:27:05 +02:00
1 parent e9498064ef
commit 9ba2539e60
1 file changed
+4
@@ -130,6 +130,10 @@ bool FlightTaskOrbit::setRadius(float r)
_v = sign(_v) * sqrtf(_acceleration_max * r);
}
if (fabs(_r - r) > FLT_EPSILON) {
_circle_approach_line.reset();
}
_r = r;
return true;
}