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