36 for (uint8_t i = 0; i < 5; i++) {
198 const float inpt = collective_in * 4.0f + 1.0f;
200 const float a = inpt - (idx + 1.0f);
201 const float b = (idx + 1.0f) - inpt + 1.0
f;
const AP_HAL::HAL & hal
-*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
int16_t constrain_int16(const int16_t amt, const int16_t low, const int16_t high)
RotorControlMode _control_mode
static bool set_aux_channel_default(SRV_Channel::Aux_servo_function_t function, uint8_t channel)
void update_rotor_runup(float dt)
float calculate_desired_throttle(float collective_in)
SRV_Channel::Aux_servo_function_t _aux_fn
void update_rotor_ramp(float rotor_ramp_input, float dt)
static void set_output_scaled(SRV_Channel::Aux_servo_function_t function, int16_t value)
void set_throttle_curve(float thrcrv[5], uint16_t slewrate)
void splinterp5(const float x[5], float out[4][4])
float get_rotor_speed() const
void output(RotorControlState state)
float constrain_float(const float amt, const float low, const float high)
void write_rsc(float servo_out)
float _rotor_runup_output