From 897506267d0011a1471821ebb9aceefc4e468028 Mon Sep 17 00:00:00 2001 From: Matthias Grob Date: Wed, 23 Mar 2022 09:37:06 +0100 Subject: [PATCH] Sticks: name getThrottle() explicitly about range --- src/modules/flight_mode_manager/tasks/Utility/Sticks.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/flight_mode_manager/tasks/Utility/Sticks.hpp b/src/modules/flight_mode_manager/tasks/Utility/Sticks.hpp index d1e900ce24..263fa3d761 100644 --- a/src/modules/flight_mode_manager/tasks/Utility/Sticks.hpp +++ b/src/modules/flight_mode_manager/tasks/Utility/Sticks.hpp @@ -65,7 +65,7 @@ public: // Helper functions to get stick values more intuitively float getPitch() const { return _positions(0); } float getRoll() const { return _positions(1); } - float getThrottle() const { return -_positions(2); } // Convert Z-axis(down) command to Up-axis frame + float getThrottleZeroCentered() const { return -_positions(2); } // Convert Z-axis(down) command to Up-axis frame float getYaw() const { return _positions(3); } /**