34 _loop_rate(loop_rate),
40 _throttle_avg_max(0.0
f),
42 _spool_desired(DESIRED_SHUT_DOWN),
43 _air_density_ratio(1.0
f),
116 if (freq_hz > 50 && mask != 0) {
121 if (freq_hz > 50 && mask != 0) {
154 for (uint8_t i=0; i<32; i++) {
155 uint32_t bit = 1UL<<i;
211 gcs().
send_text(MAV_SEVERITY_ERROR,
"Motors: unable to setup motor %u", motor_num);
static SRV_Channel::Aux_servo_function_t get_motor_function(uint8_t channel)
virtual void rc_write_angle(uint8_t chan, int16_t angle_cd)
int16_t constrain_int16(const int16_t amt, const int16_t low, const int16_t high)
static bool set_aux_channel_default(SRV_Channel::Aux_servo_function_t function, uint8_t channel)
Interface definition for the various Ground Control System.
virtual void set_freq(uint32_t chmask, uint16_t freq_hz)=0
struct AP_Motors::AP_Motors_flags _flags
uint16_t get_output_max(void) const
struct AP_Motors::AP_Motors_limit limit
int16_t calc_pwm_output_0to1(float input, const SRV_Channel *servo)
void set_radio_passthrough(float roll_input, float pitch_input, float throttle_input, float yaw_input)
void set_cutoff_frequency(float cutoff_freq)
static bool find_channel(SRV_Channel::Aux_servo_function_t function, uint8_t &chan)
static AP_Motors * _instance
virtual void save_params_on_disarm()
static void set_output_scaled(SRV_Channel::Aux_servo_function_t function, int16_t value)
static void set_output_pwm(SRV_Channel::Aux_servo_function_t function, uint16_t value)
int16_t calc_pwm_output_1to1(float input, const SRV_Channel *servo)
uint16_t get_output_min(void) const
void send_text(MAV_SEVERITY severity, const char *fmt,...)
float _throttle_radio_passthrough
virtual void set_output_mode(uint16_t mask, enum output_mode mode)
virtual void rc_write(uint8_t chan, uint16_t pwm)
AP_Motors(uint16_t loop_rate, uint16_t speed_hz=AP_MOTORS_SPEED_DEFAULT)
float _pitch_radio_passthrough
LowPassFilterFloat _throttle_filter
uint16_t get_trim(void) const
float constrain_float(const float amt, const float low, const float high)
void add_motor_num(int8_t motor_num)
static struct notify_flags_and_values_type flags
virtual void rc_set_freq(uint32_t mask, uint16_t freq_hz)
static uint16_t get_output_channel_mask(SRV_Channel::Aux_servo_function_t function)
AP_HAL::AnalogSource * chan
float _roll_radio_passthrough
bool get_reversed(void) const
float _yaw_radio_passthrough
uint16_t _motor_fast_mask
#define AP_MOTORS_MAX_NUM_MOTORS
virtual uint32_t rc_map_mask(uint32_t mask) const
const AP_HAL::HAL & hal
-*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-