From 06388b0417e03c044dda9e89493034030a7dceff Mon Sep 17 00:00:00 2001 From: Matthew Brener Date: Sat, 17 Sep 2016 11:43:32 +1000 Subject: [PATCH] Global: Fix typos --- AntennaTracker/GCS_Mavlink.cpp | 2 +- Tools/APM2_2560_bootloader/stk500boot.c | 2 +- Tools/CHDK-Scripts/Cannon S100/3DR_EAI_S100.lua | 2 +- Tools/CHDK-Scripts/Cannon SX260/3DR_EAI_SX260.lua | 2 +- Tools/CHDK-Scripts/kap_uav.lua | 2 +- libraries/AP_Arming/AP_Arming.cpp | 2 +- libraries/AP_GPS/AP_GPS.cpp | 2 +- libraries/AP_HAL/AP_HAL_Boards.h | 2 +- libraries/AP_HAL/RCInput.h | 2 +- libraries/AP_Terrain/TerrainGCS.cpp | 2 +- libraries/GCS_MAVLink/GCS_Common.cpp | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/AntennaTracker/GCS_Mavlink.cpp b/AntennaTracker/GCS_Mavlink.cpp index fd7008dafc..07bbc48ee1 100644 --- a/AntennaTracker/GCS_Mavlink.cpp +++ b/AntennaTracker/GCS_Mavlink.cpp @@ -523,7 +523,7 @@ void GCS_MAVLINK_Tracker::handleMessage(mavlink_message_t* msg) switch (msg->msgid) { // If we are currently operating as a proxy for a remote, - // alas we have to look inside each packet to see if its for us or for the remote + // alas we have to look inside each packet to see if it's for us or for the remote case MAVLINK_MSG_ID_REQUEST_DATA_STREAM: { handle_request_data_stream(msg, false); diff --git a/Tools/APM2_2560_bootloader/stk500boot.c b/Tools/APM2_2560_bootloader/stk500boot.c index 6eb43351f0..4d22bb9449 100644 --- a/Tools/APM2_2560_bootloader/stk500boot.c +++ b/Tools/APM2_2560_bootloader/stk500boot.c @@ -461,7 +461,7 @@ uint32_t count = 0; #else data = pgm_read_word_near(0); //* get the first word of the user program #endif - if (data != 0xffff) //* make sure its valid before jumping to it. + if (data != 0xffff) //* make sure it's valid before jumping to it. { asm volatile( "clr r30 \n\t" diff --git a/Tools/CHDK-Scripts/Cannon S100/3DR_EAI_S100.lua b/Tools/CHDK-Scripts/Cannon S100/3DR_EAI_S100.lua index 2a7a5dc097..98b632fd88 100644 --- a/Tools/CHDK-Scripts/Cannon S100/3DR_EAI_S100.lua +++ b/Tools/CHDK-Scripts/Cannon S100/3DR_EAI_S100.lua @@ -584,7 +584,7 @@ else -- intervalometer timing next_shot_time = next_shot_time + interval - -- set focus at infinity ? (maybe redundant for AFL & MF mode but makes sure its set right) + -- set focus at infinity ? (maybe redundant for AFL & MF mode but makes sure it's set right) if (focus_mode > 0) then set_focus(infx) sleep(100) diff --git a/Tools/CHDK-Scripts/Cannon SX260/3DR_EAI_SX260.lua b/Tools/CHDK-Scripts/Cannon SX260/3DR_EAI_SX260.lua index 4c48ba92dc..4a62a07a45 100644 --- a/Tools/CHDK-Scripts/Cannon SX260/3DR_EAI_SX260.lua +++ b/Tools/CHDK-Scripts/Cannon SX260/3DR_EAI_SX260.lua @@ -583,7 +583,7 @@ else -- intervalometer timing next_shot_time = next_shot_time + interval - -- set focus at infinity ? (maybe redundant for AFL & MF mode but makes sure its set right) + -- set focus at infinity ? (maybe redundant for AFL & MF mode but makes sure it's set right) if (focus_mode > 0) then set_focus(infx) sleep(100) diff --git a/Tools/CHDK-Scripts/kap_uav.lua b/Tools/CHDK-Scripts/kap_uav.lua index 2b3073b935..58a7f6f116 100644 --- a/Tools/CHDK-Scripts/kap_uav.lua +++ b/Tools/CHDK-Scripts/kap_uav.lua @@ -555,7 +555,7 @@ else -- intervalometer timing next_shot_time = next_shot_time + interval - -- set focus at infinity ? (maybe redundant for AFL & MF mode but makes sure its set right) + -- set focus at infinity ? (maybe redundant for AFL & MF mode but makes sure it's set right) if (focus_mode > 0) then set_focus(infx) sleep(100) diff --git a/libraries/AP_Arming/AP_Arming.cpp b/libraries/AP_Arming/AP_Arming.cpp index 3d684b8483..0e4c2fa7bd 100644 --- a/libraries/AP_Arming/AP_Arming.cpp +++ b/libraries/AP_Arming/AP_Arming.cpp @@ -239,7 +239,7 @@ bool AP_Arming::ins_checks(bool report) // get next gyro vector const Vector3f &gyro_vec = ins.get_gyro(i); Vector3f vec_diff = gyro_vec - prime_gyro_vec; - // allow for up to 5 degrees/s difference. Pass if its + // allow for up to 5 degrees/s difference. Pass if it has // been OK in last 10 seconds if (vec_diff.length() <= radians(5)) { last_gyro_pass_ms[i] = AP_HAL::millis(); diff --git a/libraries/AP_GPS/AP_GPS.cpp b/libraries/AP_GPS/AP_GPS.cpp index eed614e0d9..fa83efe1d5 100644 --- a/libraries/AP_GPS/AP_GPS.cpp +++ b/libraries/AP_GPS/AP_GPS.cpp @@ -319,7 +319,7 @@ AP_GPS::detect_instance(uint8_t instance) new_gps = new AP_GPS_ERB(*this, state[instance], _port[instance]); } // user has to explicitly set the MAV type, do not use AUTO - // Do not try to detect the MAV type, assume its there + // Do not try to detect the MAV type, assume it's there else if (_type[instance] == GPS_TYPE_MAV) { _broadcast_gps_type("MAV", instance, dstate->last_baud); new_gps = new AP_GPS_MAV(*this, state[instance], NULL); diff --git a/libraries/AP_HAL/AP_HAL_Boards.h b/libraries/AP_HAL/AP_HAL_Boards.h index d489ac3b24..dbb61b8b37 100644 --- a/libraries/AP_HAL/AP_HAL_Boards.h +++ b/libraries/AP_HAL/AP_HAL_Boards.h @@ -2,7 +2,7 @@ * C preprocesor enumeration of the boards supported by the AP_HAL. * This list exists so HAL_BOARD == HAL_BOARD_xxx preprocessor blocks * can be used to exclude HAL boards from the build when appropriate. - * Its not an elegant solution but we can improve it in future. + * It's not an elegant solution but we can improve it in future. */ #pragma once diff --git a/libraries/AP_HAL/RCInput.h b/libraries/AP_HAL/RCInput.h index 7800adbfed..6824494917 100644 --- a/libraries/AP_HAL/RCInput.h +++ b/libraries/AP_HAL/RCInput.h @@ -10,7 +10,7 @@ public: /** * Call init from the platform hal instance init, so that both the type of * the RCInput implementation and init argument (e.g. ISRRegistry) are - * known to the programmer. (Its too difficult to describe this dependency + * known to the programmer. (It's too difficult to describe this dependency * in the C++ type system.) */ virtual void init() = 0; diff --git a/libraries/AP_Terrain/TerrainGCS.cpp b/libraries/AP_Terrain/TerrainGCS.cpp index f2cc292e52..922c4650ef 100644 --- a/libraries/AP_Terrain/TerrainGCS.cpp +++ b/libraries/AP_Terrain/TerrainGCS.cpp @@ -45,7 +45,7 @@ bool AP_Terrain::request_missing(mavlink_channel_t chan, struct grid_cache &gcac // see if we are waiting for disk read if (gcache.state == GRID_CACHE_DISKWAIT) { - // don't request data from the GCS till we know its not on disk + // don't request data from the GCS till we know it's not on disk return false; } diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index 9427b3ef1e..0f10b0568e 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -936,7 +936,7 @@ void GCS_MAVLINK::send_message(enum ap_message id) // this message id might already be deferred for (i=0, nextid = next_deferred_message; i < num_deferred_messages; i++) { if (deferred_messages[nextid] == id) { - // its already deferred, discard + // it's already deferred, discard return; } nextid++;