From 5596001d3987939778ca23d45153e9d71e4f3466 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Mon, 4 Aug 2014 17:50:07 +0900 Subject: [PATCH] AC_Motors: make get_throttle_out const --- libraries/AP_Motors/AP_Motors_Class.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Motors/AP_Motors_Class.h b/libraries/AP_Motors/AP_Motors_Class.h index 1ea843477c..0dbc57e2b9 100644 --- a/libraries/AP_Motors/AP_Motors_Class.h +++ b/libraries/AP_Motors/AP_Motors_Class.h @@ -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();