From 81b4dbcb27d853685c4fa63c4203af99cd59b8ba Mon Sep 17 00:00:00 2001 From: Mykhailo Kuznietsov Date: Wed, 11 Oct 2023 18:41:51 +1100 Subject: [PATCH] AP_Camera: Fix some typos Fixed some typos found in the code. --- libraries/AP_Camera/AP_Camera_SoloGimbal.cpp | 2 +- libraries/AP_Camera/AP_RunCam.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/AP_Camera/AP_Camera_SoloGimbal.cpp b/libraries/AP_Camera/AP_Camera_SoloGimbal.cpp index 8041a5fb2c..06ecf6ee3a 100644 --- a/libraries/AP_Camera/AP_Camera_SoloGimbal.cpp +++ b/libraries/AP_Camera/AP_Camera_SoloGimbal.cpp @@ -6,7 +6,7 @@ // Toggle the shutter on the GoPro // This is so ArduPilot can toggle the shutter directly, either for mission/GCS commands, or when the -// Solo's gimbal is installed on a vehicle other than a Solo. The usual GoPro controls thorugh the +// Solo's gimbal is installed on a vehicle other than a Solo. The usual GoPro controls through the // Solo app and Solo controller do not use this, as it is done offboard on the companion computer. // entry point to actually take a picture. returns true on success bool AP_Camera_SoloGimbal::trigger_pic() diff --git a/libraries/AP_Camera/AP_RunCam.cpp b/libraries/AP_Camera/AP_RunCam.cpp index 4c9124b642..86e7dee57c 100644 --- a/libraries/AP_Camera/AP_RunCam.cpp +++ b/libraries/AP_Camera/AP_RunCam.cpp @@ -34,7 +34,7 @@ const AP_Param::GroupInfo AP_RunCam::var_info[] = { // @Param: TYPE // @DisplayName: RunCam device type - // @Description: RunCam deviee type used to determine OSD menu structure and shutter options. + // @Description: RunCam device type used to determine OSD menu structure and shutter options. // @Values: 0:Disabled, 1:RunCam Split Micro/RunCam with UART, 2:RunCam Split, 3:RunCam Split4 4k, 4:RunCam Hybrid/RunCam Thumb Pro, 5:Runcam 2 4k AP_GROUPINFO_FLAGS("TYPE", 1, AP_RunCam, _cam_type, int(DeviceType::Disabled), AP_PARAM_FLAG_ENABLE), @@ -264,7 +264,7 @@ void AP_RunCam::update_osd() { bool use_armed_state_machine = hal.util->get_soft_armed(); #if OSD_ENABLED - // prevent runcam stick gestures interferring with osd stick gestures + // prevent runcam stick gestures interfering with osd stick gestures if (!use_armed_state_machine) { const AP_OSD* osd = AP::osd(); if (osd != nullptr) { @@ -580,7 +580,7 @@ void AP_RunCam::handle_2_key_simulation_process(Event ev) case Event::IN_MENU_EXIT: // if we are in a sub-menu this will move us out, if we are in the root menu this will - // exit causing the state machine to get out of sync. the OSD menu hierachy is consistently + // exit causing the state machine to get out of sync. the OSD menu hierarchy is consistently // 2 deep so we can count and be reasonably confident of where we are. // the only exception is if someone hits save and exit on the root menu - then we are lost. if (_in_menu > 0) {