mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 16:03:34 +08:00
FlightTaskAuto: remove unused _getTargetVelocityXY()
Inclusive velocity_valid field in position_setpoint message that's then no longer needed. Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
committed by
Daniel Agar
parent
42c613a0c7
commit
5ea8c6e507
@@ -121,7 +121,6 @@ Loiter::set_loiter_position()
|
||||
}
|
||||
|
||||
// convert mission item to current setpoint
|
||||
pos_sp_triplet->current.velocity_valid = false;
|
||||
pos_sp_triplet->previous.valid = false;
|
||||
mission_apply_limitation(_mission_item);
|
||||
mission_item_to_position_setpoint(_mission_item, &pos_sp_triplet->current);
|
||||
@@ -146,7 +145,6 @@ Loiter::reposition()
|
||||
|
||||
// convert mission item to current setpoint
|
||||
struct position_setpoint_triplet_s *pos_sp_triplet = _navigator->get_position_setpoint_triplet();
|
||||
pos_sp_triplet->current.velocity_valid = false;
|
||||
pos_sp_triplet->previous.yaw = _navigator->get_local_position()->heading;
|
||||
pos_sp_triplet->previous.lat = _navigator->get_global_position()->lat;
|
||||
pos_sp_triplet->previous.lon = _navigator->get_global_position()->lon;
|
||||
|
||||
@@ -1882,7 +1882,6 @@ bool Mission::position_setpoint_equal(const position_setpoint_s *p1, const posit
|
||||
(fabsf(p1->vx - p2->vx) < FLT_EPSILON) &&
|
||||
(fabsf(p1->vy - p2->vy) < FLT_EPSILON) &&
|
||||
(fabsf(p1->vz - p2->vz) < FLT_EPSILON) &&
|
||||
(p1->velocity_valid == p2->velocity_valid) &&
|
||||
(fabs(p1->lat - p2->lat) < DBL_EPSILON) &&
|
||||
(fabs(p1->lon - p2->lon) < DBL_EPSILON) &&
|
||||
(fabsf(p1->alt - p2->alt) < FLT_EPSILON) &&
|
||||
|
||||
Reference in New Issue
Block a user