From 9df4796b700993d1b33582a71d430c7cef351e83 Mon Sep 17 00:00:00 2001 From: George Zogopoulos Date: Mon, 24 Jun 2024 16:51:07 +0200 Subject: [PATCH] AP_Scripting: Typo fixes --- libraries/AP_Scripting/examples/Motor_mixer_dynamic_setup.lua | 2 +- libraries/AP_Scripting/examples/ahrs-source-gps-optflow.lua | 2 +- libraries/AP_Scripting/examples/arming-check-wp1-takeoff.lua | 2 +- libraries/AP_Scripting/examples/copter_alt_offset.lua | 4 ++-- libraries/AP_Scripting/examples/servo_slew.lua | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libraries/AP_Scripting/examples/Motor_mixer_dynamic_setup.lua b/libraries/AP_Scripting/examples/Motor_mixer_dynamic_setup.lua index e0eb0fd64d..62cc85f54f 100644 --- a/libraries/AP_Scripting/examples/Motor_mixer_dynamic_setup.lua +++ b/libraries/AP_Scripting/examples/Motor_mixer_dynamic_setup.lua @@ -45,5 +45,5 @@ Motors_dynamic:load_factors(factors) motors:set_frame_string("Dynamic example") --- if doing changes in flight it is a good idea to us pcall to protect the script from crashing +-- if doing changes in flight it is a good idea to use pcall to protect the script from crashing -- see 'protected_call.lua' example diff --git a/libraries/AP_Scripting/examples/ahrs-source-gps-optflow.lua b/libraries/AP_Scripting/examples/ahrs-source-gps-optflow.lua index 3d313ea221..0dfc23770c 100644 --- a/libraries/AP_Scripting/examples/ahrs-source-gps-optflow.lua +++ b/libraries/AP_Scripting/examples/ahrs-source-gps-optflow.lua @@ -4,7 +4,7 @@ -- configure a forward or downward facing lidar with a range of at least 5m -- setup RCx_OPTION = 90 (EKF Pos Source) to select the source (low=GPS, middle=opticalflow, high=Not Used) -- setup RCx_OPTION = 300 (Scripting1). When this switch is pulled high, the source will be automatically selected --- SRC_ENABLE = 1 (enable scripting) +-- SCR_ENABLE = 1 (enable scripting) -- setup EK3_SRCn_ parameters so that GPS is the primary source, opticalflow is secondary. -- EK3_SRC1_POSXY = 3 (GPS) -- EK3_SRC1_VELXY = 3 (GPS) diff --git a/libraries/AP_Scripting/examples/arming-check-wp1-takeoff.lua b/libraries/AP_Scripting/examples/arming-check-wp1-takeoff.lua index e4f7360766..60f3fa4466 100644 --- a/libraries/AP_Scripting/examples/arming-check-wp1-takeoff.lua +++ b/libraries/AP_Scripting/examples/arming-check-wp1-takeoff.lua @@ -1,4 +1,4 @@ --- This script runs a custom arming check for index == 1 and it must be a takeoff missionn item +-- This script runs a custom arming check for index == 1 and it must be a takeoff mission item local auth_id = arming:get_aux_auth_id() diff --git a/libraries/AP_Scripting/examples/copter_alt_offset.lua b/libraries/AP_Scripting/examples/copter_alt_offset.lua index d0daf23697..0b90581d14 100644 --- a/libraries/AP_Scripting/examples/copter_alt_offset.lua +++ b/libraries/AP_Scripting/examples/copter_alt_offset.lua @@ -1,7 +1,7 @@ --[[ add ALT_OFFSET parameter for copter - This behaves similarly to ALT_OFFSET in plane. It operators only in AUTO mode, and slews the BARO_ALT_OFFSET to allow - for change of altitude without mission change + This behaves similarly to ALT_OFFSET in plane. It operates only in AUTO mode, and slews the BARO_ALT_OFFSET to allow + for change of altitude without mission change. --]] diff --git a/libraries/AP_Scripting/examples/servo_slew.lua b/libraries/AP_Scripting/examples/servo_slew.lua index 36d0f103bd..4bb5229426 100644 --- a/libraries/AP_Scripting/examples/servo_slew.lua +++ b/libraries/AP_Scripting/examples/servo_slew.lua @@ -1,4 +1,4 @@ --- move a servo in a sinisoidal fashion, with settable limits and frequency +-- move a servo in a sinusoidal fashion, with settable limits and frequency local PARAM_TABLE_KEY = 135 local PARAM_TABLE_PREFIX = "STEST_"