FlightTaskAuto: pure virtual reset method

This commit is contained in:
Dennis Mannhart
2018-02-13 13:47:11 +01:00
committed by Lorenz Meier
parent 2c385e6967
commit 69ea4df45c
4 changed files with 27 additions and 9 deletions
+7 -1
View File
@@ -95,7 +95,13 @@ bool FlightTaskAuto::_evaluateTriplets()
}
_yaw_wp = _sub_triplet_setpoint->get().current.yaw;
_type = (WaypointType)_sub_triplet_setpoint->get().current.type;
WaypointType type = (WaypointType)_sub_triplet_setpoint->get().current.type;
if (type != _type) {
_reset();
}
_type = type;
/* We need to have a valid current triplet */
if (_isFinite(_sub_triplet_setpoint->get().current)) {