From b8360a08c772e1c6d0d3b43a10ccb8abbf86abb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Mon, 1 Feb 2021 13:26:35 -0300 Subject: [PATCH] AP_Vehicle: Add missing const in member functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- libraries/AP_Vehicle/AP_Vehicle.cpp | 4 ++-- libraries/AP_Vehicle/AP_Vehicle.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/AP_Vehicle/AP_Vehicle.cpp b/libraries/AP_Vehicle/AP_Vehicle.cpp index 0de035f2b1..d06ce5e40f 100644 --- a/libraries/AP_Vehicle/AP_Vehicle.cpp +++ b/libraries/AP_Vehicle/AP_Vehicle.cpp @@ -57,7 +57,7 @@ const AP_Param::GroupInfo AP_Vehicle::var_info[] = { // @Path: ../AP_ExternalAHRS/AP_ExternalAHRS.cpp AP_SUBGROUPINFO(externalAHRS, "EAHRS", 8, AP_Vehicle, AP_ExternalAHRS), #endif - + AP_GROUPEND }; @@ -125,7 +125,7 @@ void AP_Vehicle::setup() // call externalAHRS init before init_ardupilot to allow for external sensors externalAHRS.init(); #endif - + // init_ardupilot is where the vehicle does most of its initialisation. init_ardupilot(); gcs().send_text(MAV_SEVERITY_INFO, "ArduPilot Ready"); diff --git a/libraries/AP_Vehicle/AP_Vehicle.h b/libraries/AP_Vehicle/AP_Vehicle.h index d91f2899b3..3b17a00221 100644 --- a/libraries/AP_Vehicle/AP_Vehicle.h +++ b/libraries/AP_Vehicle/AP_Vehicle.h @@ -89,7 +89,7 @@ public: */ struct FixedWing { AP_Int8 throttle_min; - AP_Int8 throttle_max; + AP_Int8 throttle_max; AP_Int8 throttle_slewrate; AP_Int8 throttle_cruise; AP_Int8 takeoff_throttle_max; @@ -100,7 +100,7 @@ public: AP_Int8 crash_detection_enable; AP_Int16 roll_limit_cd; AP_Int16 pitch_limit_max_cd; - AP_Int16 pitch_limit_min_cd; + AP_Int16 pitch_limit_min_cd; AP_Int8 autotune_level; AP_Int8 stall_prevention; AP_Int16 loiter_radius; @@ -318,7 +318,7 @@ protected: #if HAL_EXTERNAL_AHRS_ENABLED AP_ExternalAHRS externalAHRS; #endif - + static const struct AP_Param::GroupInfo var_info[]; static const struct AP_Scheduler::Task scheduler_tasks[];