36 #include "rosflight.h" 101 for (int8_t
i=0;
i<8;
i++)
115 int16_t off_pwm = 1000;
137 else if (value < 0.0)
157 else if (value < -1.0)
169 float max_output = 1.0f;
187 for (int8_t
i=0;
i<8;
i++)
204 float scale_factor = 1.0;
205 if (max_output > 1.0)
207 scale_factor = 1.0/max_output;
212 for (int8_t
i=0;
i<8;
i++)
virtual void pwm_init(uint32_t refresh_rate, uint16_t idle_pwm)=0
uint32_t default_pwm_rate
CommManager comm_manager_
float get_param_float(uint16_t id) const
Get the value of a floating point parameter by id.
void write_servo(uint8_t index, float value)
virtual void pwm_write(uint8_t channel, float value)=0
void add_callback(std::function< void(int)> callback, uint16_t param_id)
const State & state() const
void set_error(uint16_t error)
void clear_error(uint16_t error)
void log(CommLink::LogSeverity severity, const char *fmt,...)
void param_change_callback(uint16_t param_id)
const Output & output() const
output_type_t output_type[8]
int get_param_int(uint16_t id) const
Get the value of an integer parameter by id.
const mixer_t * array_of_mixers_[NUM_MIXERS]
const mixer_t * mixer_to_use_
StateManager state_manager_
float unsaturated_outputs_[8]
void write_motor(uint8_t index, float value)