mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-05 02:20:34 +08:00
FlightTaskAuto: pure virtual reset method
This commit is contained in:
committed by
Lorenz Meier
parent
2c385e6967
commit
69ea4df45c
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user