#include <mixer.h>
Classes | |
struct | aux_channel_t |
struct | aux_command_t |
struct | mixer_t |
Public Types | |
enum | { ESC_CALIBRATION = 0, QUADCOPTER_PLUS = 1, QUADCOPTER_X = 2, HEX_PLUS = 3, HEX_X = 4, OCTO_PLUS = 5, OCTO_X = 6, Y6 = 7, X8 = 8, TRICOPTER = 9, FIXEDWING = 10, PASSTHROUGH = 11, NUM_MIXERS, INVALID_MIXER = 255 } |
enum | output_type_t { NONE, S, M, G } |
Public Member Functions | |
const float * | get_outputs () const |
void | init () |
void | init_mixing () |
void | init_PWM () |
void | mix_output () |
Mixer (ROSflight &_rf) | |
void | param_change_callback (uint16_t param_id) override |
void | set_new_aux_command (aux_command_t new_aux_command) |
Static Public Attributes | |
static constexpr uint8_t | NUM_MIXER_OUTPUTS = 8 |
static constexpr uint8_t | NUM_TOTAL_OUTPUTS = 14 |
Private Member Functions | |
void | write_motor (uint8_t index, float value) |
void | write_servo (uint8_t index, float value) |
Private Attributes | |
const mixer_t * | array_of_mixers_ [NUM_MIXERS] |
aux_command_t | aux_command_ |
output_type_t | combined_output_type_ [NUM_TOTAL_OUTPUTS] |
const mixer_t | esc_calibration_mixing |
const mixer_t | fixedwing_mixing |
const mixer_t | hex_plus_mixing |
const mixer_t | hex_x_mixing |
const mixer_t * | mixer_to_use_ |
const mixer_t | octocopter_plus_mixing |
const mixer_t | octocopter_x_mixing |
float | outputs_ [NUM_TOTAL_OUTPUTS] |
const mixer_t | passthrough_mixing |
const mixer_t | quadcopter_plus_mixing |
const mixer_t | quadcopter_x_mixing |
float | raw_outputs_ [NUM_TOTAL_OUTPUTS] |
ROSflight & | RF_ |
const mixer_t | tricopter_mixing |
const mixer_t | X8_mixing |
const mixer_t | Y6_mixing |
anonymous enum |
|
inline |
|
overridevirtual |
Implements rosflight_firmware::ParamListenerInterface.
void rosflight_firmware::Mixer::set_new_aux_command | ( | aux_command_t | new_aux_command | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
static |
|
static |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |