From af9a91c85391645346ea00c38ce9376d59ee5508 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Fri, 3 Sep 2021 12:58:37 +0900 Subject: [PATCH] Copter: terrain spelling fix --- ArduCopter/mode_guided.cpp | 2 +- libraries/AC_WPNav/AC_WPNav.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduCopter/mode_guided.cpp b/ArduCopter/mode_guided.cpp index f5cf11ad412813..97551fb03b5d14 100644 --- a/ArduCopter/mode_guided.cpp +++ b/ArduCopter/mode_guided.cpp @@ -154,7 +154,7 @@ void ModeGuided::pva_control_start() // initialise yaw auto_yaw.set_mode_to_default(false); - // initialise terain alt + // initialise terrain alt guided_pos_terrain_alt = false; } diff --git a/libraries/AC_WPNav/AC_WPNav.h b/libraries/AC_WPNav/AC_WPNav.h index e56122730ca4a2..389fea2362df3f 100644 --- a/libraries/AC_WPNav/AC_WPNav.h +++ b/libraries/AC_WPNav/AC_WPNav.h @@ -263,7 +263,7 @@ class AC_WPNav Vector3f _destination; // target destination in cm from ekf origin float _track_scalar_dt; // time compression multiplier to slow the progress along the track float _terrain_vel; // maximum horizontal velocity used to ensure the aircraft can maintain height above terrain - float _terrain_accel; // acceleration value used to change _terain_vel + float _terrain_accel; // acceleration value used to change _terrain_vel // terrain following variables bool _terrain_alt; // true if origin and destination.z are alt-above-terrain, false if alt-above-ekf-origin