|
|
@ -97,6 +97,7 @@ public: |
|
|
|
float get_roll() const { return _roll_in; } |
|
|
|
float get_roll() const { return _roll_in; } |
|
|
|
float get_pitch() const { return _pitch_in; } |
|
|
|
float get_pitch() const { return _pitch_in; } |
|
|
|
float get_yaw() const { return _yaw_in; } |
|
|
|
float get_yaw() const { return _yaw_in; } |
|
|
|
|
|
|
|
float get_throttle_out() const { return _throttle_out; } |
|
|
|
float get_throttle() const { return constrain_float(_throttle_filter.get(), 0.0f, 1.0f); } |
|
|
|
float get_throttle() const { return constrain_float(_throttle_filter.get(), 0.0f, 1.0f); } |
|
|
|
float get_throttle_bidirectional() const { return constrain_float(2 * (_throttle_filter.get() - 0.5f), -1.0f, 1.0f); } |
|
|
|
float get_throttle_bidirectional() const { return constrain_float(2 * (_throttle_filter.get() - 0.5f), -1.0f, 1.0f); } |
|
|
|
float get_forward() const { return _forward_in; } |
|
|
|
float get_forward() const { return _forward_in; } |
|
|
@ -225,6 +226,7 @@ protected: |
|
|
|
float _yaw_in; // desired yaw control from attitude controller, -1 ~ +1
|
|
|
|
float _yaw_in; // desired yaw control from attitude controller, -1 ~ +1
|
|
|
|
float _yaw_in_ff; // desired yaw feed forward control from attitude controller, -1 ~ +1
|
|
|
|
float _yaw_in_ff; // desired yaw feed forward control from attitude controller, -1 ~ +1
|
|
|
|
float _throttle_in; // last throttle input from set_throttle caller
|
|
|
|
float _throttle_in; // last throttle input from set_throttle caller
|
|
|
|
|
|
|
|
float _throttle_out; // throttle after mixing is complete
|
|
|
|
float _forward_in; // last forward input from set_forward caller
|
|
|
|
float _forward_in; // last forward input from set_forward caller
|
|
|
|
float _lateral_in; // last lateral input from set_lateral caller
|
|
|
|
float _lateral_in; // last lateral input from set_lateral caller
|
|
|
|
float _throttle_avg_max; // last throttle input from set_throttle_avg_max
|
|
|
|
float _throttle_avg_max; // last throttle input from set_throttle_avg_max
|
|
|
|