From bd93a3d7b758853c73fa9e86d571638f73dfc05e Mon Sep 17 00:00:00 2001 From: Gus Grubba Date: Thu, 23 Jan 2020 15:27:58 -0400 Subject: [PATCH] Fix typo --- src/Vehicle/TrajectoryPoints.cc | 2 +- src/Vehicle/Vehicle.cc | 2 +- src/Vehicle/Vehicle.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Vehicle/TrajectoryPoints.cc b/src/Vehicle/TrajectoryPoints.cc index 339d7bbe2..4dd7f47a0 100644 --- a/src/Vehicle/TrajectoryPoints.cc +++ b/src/Vehicle/TrajectoryPoints.cc @@ -26,7 +26,7 @@ void TrajectoryPoints::_vehicleCoordinateChanged(QGeoCoordinate coordinate) double distance = _lastPoint.distanceTo(coordinate); if (distance > _distanceTolerance) { //-- Update flight distance - _vehicle->updateFlightDisance(distance); + _vehicle->updateFlightDistance(distance); // Vehicle has moved far enough from previous point for an update double newAzimuth = _lastPoint.azimuthTo(coordinate); if (qIsNaN(_lastAzimuth) || qAbs(newAzimuth - _lastAzimuth) > _azimuthTolerance) { diff --git a/src/Vehicle/Vehicle.cc b/src/Vehicle/Vehicle.cc index 1232e2f74..544de6469 100644 --- a/src/Vehicle/Vehicle.cc +++ b/src/Vehicle/Vehicle.cc @@ -4244,7 +4244,7 @@ void Vehicle::_handleObstacleDistance(const mavlink_message_t& message) _objectAvoidance->update(&o); } -void Vehicle::updateFlightDisance(double distance) +void Vehicle::updateFlightDistance(double distance) { _flightDistanceFact.setRawValue(_flightDistanceFact.rawValue().toDouble() + distance); } diff --git a/src/Vehicle/Vehicle.h b/src/Vehicle/Vehicle.h index 6b8769d5f..20adf3cb7 100644 --- a/src/Vehicle/Vehicle.h +++ b/src/Vehicle/Vehicle.h @@ -805,7 +805,7 @@ public: JoystickModeMax } JoystickMode_t; - void updateFlightDisance(double distance); + void updateFlightDistance(double distance); int joystickMode(void); void setJoystickMode(int mode); -- 2.22.0