Skip to content

Commit

Permalink
AP_Motors: expose _throttle_in for scripting
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Aug 15, 2024
1 parent 02041dd commit c616ec2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/AP_Motors/AP_Motors_Class.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ class AP_Motors {
float get_yaw_ff() const { return _yaw_in_ff; }
float get_throttle_out() const { return _throttle_out; }
virtual bool get_thrust(uint8_t motor_num, float& thr_out) const { return false; }
float get_throttle_in() const { return _throttle_in; }
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_slew_rate() const { return _throttle_slew_rate; }
Expand Down

0 comments on commit c616ec2

Please sign in to comment.