mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Sticks: name getThrottle() explicitly about range
This commit is contained in:
parent
0e5c305163
commit
897506267d
@ -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…
x
Reference in New Issue
Block a user