Browse Source

AC_Motors: make get_throttle_out const

mission-4.1.18
Randy Mackay 11 years ago
parent
commit
5596001d39
  1. 2
      libraries/AP_Motors/AP_Motors_Class.h

2
libraries/AP_Motors/AP_Motors_Class.h

@ -103,7 +103,7 @@ public: @@ -103,7 +103,7 @@ public:
void set_throttle(int16_t throttle_in) { _rc_throttle.servo_out = throttle_in; }; // range 0 ~ 1000
// get_throttle_out - returns throttle sent to motors in the range 0 ~ 1000
int16_t get_throttle_out() { return _rc_throttle.servo_out; }
int16_t get_throttle_out() const { return _rc_throttle.servo_out; }
// output - sends commands to the motors
void output();

Loading…
Cancel
Save