diff --git a/ArduCopter/mode_guided.cpp b/ArduCopter/mode_guided.cpp index f5cf11ad41281..97551fb03b5d1 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 e56122730ca4a..389fea2362df3 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