From c5abee2f887157d94ed1a2782943d2df21d417b0 Mon Sep 17 00:00:00 2001 From: Mykhailo Kuznietsov Date: Wed, 11 Oct 2023 18:41:49 +1100 Subject: [PATCH] AC_CustomControl: Fix some typos Fixed some typos found in the code. --- libraries/AC_CustomControl/AC_CustomControl.h | 2 +- libraries/AC_CustomControl/AC_CustomControl_Empty.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/AC_CustomControl/AC_CustomControl.h b/libraries/AC_CustomControl/AC_CustomControl.h index c11a51fb00..bf0628302b 100644 --- a/libraries/AC_CustomControl/AC_CustomControl.h +++ b/libraries/AC_CustomControl/AC_CustomControl.h @@ -32,7 +32,7 @@ public: bool is_safe_to_run(void); void log_switch(void); - // zero index controller type param, only use it to acces _backend or _backend_var_info array + // zero index controller type param, only use it to access _backend or _backend_var_info array uint8_t get_type() { return _controller_type > 0 ? (_controller_type - 1) : 0; }; // User settable parameters diff --git a/libraries/AC_CustomControl/AC_CustomControl_Empty.cpp b/libraries/AC_CustomControl/AC_CustomControl_Empty.cpp index d11caabc7e..222510c4f4 100644 --- a/libraries/AC_CustomControl/AC_CustomControl_Empty.cpp +++ b/libraries/AC_CustomControl/AC_CustomControl_Empty.cpp @@ -8,19 +8,19 @@ const AP_Param::GroupInfo AC_CustomControl_Empty::var_info[] = { // @Param: PARAM1 // @DisplayName: Empty param1 - // @Description: Dumy parameter for empty custom controller backend + // @Description: Dummy parameter for empty custom controller backend // @User: Advanced AP_GROUPINFO("PARAM1", 1, AC_CustomControl_Empty, param1, 0.0f), // @Param: PARAM2 // @DisplayName: Empty param2 - // @Description: Dumy parameter for empty custom controller backend + // @Description: Dummy parameter for empty custom controller backend // @User: Advanced AP_GROUPINFO("PARAM2", 2, AC_CustomControl_Empty, param2, 0.0f), // @Param: PARAM3 // @DisplayName: Empty param3 - // @Description: Dumy parameter for empty custom controller backend + // @Description: Dummy parameter for empty custom controller backend // @User: Advanced AP_GROUPINFO("PARAM3", 3, AC_CustomControl_Empty, param3, 0.0f), @@ -54,7 +54,7 @@ Vector3f AC_CustomControl_Empty::update(void) break; } - // arducopter main attitude controller already runned + // arducopter main attitude controller already ran // we don't need to do anything else gcs().send_text(MAV_SEVERITY_INFO, "empty custom controller working");