position_setpoint delete unused SETPOINT_TYPE_FOLLOW_TARGET

This commit is contained in:
Daniel Agar
2022-09-19 11:16:45 -04:00
parent c707997b9e
commit 11dd924bd4
3 changed files with 1 additions and 9 deletions
@@ -480,12 +480,6 @@ bool FlightTaskAuto::_evaluateTriplets()
_yawspeed_setpoint = _weathervane.getWeathervaneYawrate();
}
} else if (_type == WaypointType::follow_target && _sub_triplet_setpoint.get().current.yawspeed_valid) {
_yawspeed_setpoint = _sub_triplet_setpoint.get().current.yawspeed;
_yaw_setpoint = NAN;
} else {
if (!_is_yaw_good_for_control) {
_yaw_lock = false;
@@ -71,8 +71,7 @@ enum class WaypointType : int {
loiter = position_setpoint_s::SETPOINT_TYPE_LOITER,
takeoff = position_setpoint_s::SETPOINT_TYPE_TAKEOFF,
land = position_setpoint_s::SETPOINT_TYPE_LAND,
idle = position_setpoint_s::SETPOINT_TYPE_IDLE,
follow_target = position_setpoint_s::SETPOINT_TYPE_FOLLOW_TARGET,
idle = position_setpoint_s::SETPOINT_TYPE_IDLE
};
enum class State {