From dfe38b61de1890632652174832edd728052f940a Mon Sep 17 00:00:00 2001 From: Ricardo de Almeida Gonzaga Date: Thu, 12 May 2016 13:59:11 -0300 Subject: [PATCH] AP_Mission: Fix typos --- libraries/AP_Mission/AP_Mission.cpp | 4 ++-- libraries/AP_Mission/AP_Mission.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AP_Mission/AP_Mission.cpp b/libraries/AP_Mission/AP_Mission.cpp index 87424033e5..639aee164d 100644 --- a/libraries/AP_Mission/AP_Mission.cpp +++ b/libraries/AP_Mission/AP_Mission.cpp @@ -783,7 +783,7 @@ MAV_MISSION_RESULT AP_Mission::mavlink_int_to_mission_cmd(const mavlink_mission_ } } - // if we got this far then it must have been succesful + // if we got this far then it must have been successful return MAV_MISSION_ACCEPTED; } @@ -1437,7 +1437,7 @@ void AP_Mission::init_jump_tracking() /// get_jump_times_run - returns number of times the jump command has been run int16_t AP_Mission::get_jump_times_run(const Mission_Command& cmd) { - // exit immediatley if cmd is not a do-jump command or target is invalid + // exit immediately if cmd is not a do-jump command or target is invalid if ((cmd.id != MAV_CMD_DO_JUMP) || (cmd.content.jump.target >= (unsigned)_cmd_total) || (cmd.content.jump.target == 0)) { // To-Do: log an error? return AP_MISSION_JUMP_TIMES_MAX; diff --git a/libraries/AP_Mission/AP_Mission.h b/libraries/AP_Mission/AP_Mission.h index 56cf29a07a..548486529a 100644 --- a/libraries/AP_Mission/AP_Mission.h +++ b/libraries/AP_Mission/AP_Mission.h @@ -7,7 +7,7 @@ * The AP_Mission library: * - responsible for managing a list of commands made up of "nav", "do" and "conditional" commands * - reads and writes the mission commands to storage. - * - provides easy acces to current, previous and upcoming waypoints + * - provides easy access to current, previous and upcoming waypoints * - calls main program's command execution and verify functions. * - accounts for the DO_JUMP command *