AP_Motors: move set_throttle_filter_cutoff declaration

No functional change
This commit is contained in:
Leonard Hall 2016-01-21 14:58:55 +09:00 committed by Randy Mackay
parent 649a8c461d
commit 80ddce103f
1 changed files with 2 additions and 2 deletions

View File

@ -63,6 +63,8 @@ public:
void set_pitch(int16_t pitch_in) { _pitch_control_input = pitch_in; }; // range -4500 ~ 4500
void set_yaw(int16_t yaw_in) { _yaw_control_input = yaw_in; }; // range -4500 ~ 4500
void set_throttle(float throttle_in) { _throttle_in = constrain_float(throttle_in,0.0f,1.0f); }; // range 0 ~ 1
void set_throttle_filter_cutoff(float filt_hz) { _throttle_filter.set_cutoff_frequency(filt_hz); }
void set_stabilizing(bool stabilizing) { _flags.stabilizing = stabilizing; }
// accessors for roll, pitch, yaw and throttle inputs to motors
@ -76,8 +78,6 @@ public:
float get_pitch_thrust() const { return _pitch_control_input / 4500.0f; }
float get_yaw_thrust() const { return _yaw_control_input / 4500.0f; }
void set_throttle_filter_cutoff(float filt_hz) { _throttle_filter.set_cutoff_frequency(filt_hz); }
//
// voltage, current and air pressure compensation or limiting features - multicopters only
//