Sticks: name getThrottle() explicitly about range

This commit is contained in:
Matthias Grob 2022-03-23 09:37:06 +01:00
parent 0e5c305163
commit 897506267d

View File

@ -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); }
/**