mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 14:23:35 +08:00
position_setpoint.msg: remove unused alt_valid
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
committed by
Daniel Agar
parent
42dd9b5063
commit
42c613a0c7
@@ -1883,7 +1883,6 @@ bool Mission::position_setpoint_equal(const position_setpoint_s *p1, const posit
|
||||
(fabsf(p1->vy - p2->vy) < FLT_EPSILON) &&
|
||||
(fabsf(p1->vz - p2->vz) < FLT_EPSILON) &&
|
||||
(p1->velocity_valid == p2->velocity_valid) &&
|
||||
(p1->alt_valid == p2->alt_valid) &&
|
||||
(fabs(p1->lat - p2->lat) < DBL_EPSILON) &&
|
||||
(fabs(p1->lon - p2->lon) < DBL_EPSILON) &&
|
||||
(fabsf(p1->alt - p2->alt) < FLT_EPSILON) &&
|
||||
|
||||
@@ -921,7 +921,6 @@ void Navigator::geofence_breach_check(bool &have_geofence_position_data)
|
||||
rep->current.alt = loiter_altitude_amsl;
|
||||
rep->current.valid = true;
|
||||
rep->current.loiter_radius = get_loiter_radius();
|
||||
rep->current.alt_valid = true;
|
||||
rep->current.type = position_setpoint_s::SETPOINT_TYPE_LOITER;
|
||||
rep->current.cruising_throttle = get_cruising_throttle();
|
||||
rep->current.acceptance_radius = get_acceptance_radius();
|
||||
|
||||
Reference in New Issue
Block a user