Browse Source

Sticks: name getThrottle() explicitly about range

v1.13.0-BW
Matthias Grob 3 years ago
parent
commit
897506267d
  1. 2
      src/modules/flight_mode_manager/tasks/Utility/Sticks.hpp

2
src/modules/flight_mode_manager/tasks/Utility/Sticks.hpp

@ -65,7 +65,7 @@ public: @@ -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); }
/**

Loading…
Cancel
Save