AP_Camera: Fix some typos

Fixed some typos found in the code.
This commit is contained in:
Mykhailo Kuznietsov 2023-10-11 18:41:51 +11:00 committed by Peter Barker
parent e723be4196
commit 81b4dbcb27
2 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@
// Toggle the shutter on the GoPro // Toggle the shutter on the GoPro
// This is so ArduPilot can toggle the shutter directly, either for mission/GCS commands, or when the // 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. // 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 // entry point to actually take a picture. returns true on success
bool AP_Camera_SoloGimbal::trigger_pic() bool AP_Camera_SoloGimbal::trigger_pic()

View File

@ -34,7 +34,7 @@
const AP_Param::GroupInfo AP_RunCam::var_info[] = { const AP_Param::GroupInfo AP_RunCam::var_info[] = {
// @Param: TYPE // @Param: TYPE
// @DisplayName: RunCam device 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 // @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), 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(); bool use_armed_state_machine = hal.util->get_soft_armed();
#if OSD_ENABLED #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) { if (!use_armed_state_machine) {
const AP_OSD* osd = AP::osd(); const AP_OSD* osd = AP::osd();
if (osd != nullptr) { if (osd != nullptr) {
@ -580,7 +580,7 @@ void AP_RunCam::handle_2_key_simulation_process(Event ev)
case Event::IN_MENU_EXIT: 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 // 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. // 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. // the only exception is if someone hits save and exit on the root menu - then we are lost.
if (_in_menu > 0) { if (_in_menu > 0) {