mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 11:06:04 +08:00
Sticks: name getThrottle() explicitly about range
This commit is contained in:
@@ -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); }
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user