xyControl
0.1
Quadrotor Flight Controller on AVR Basis
|
Takes the Base Speed and PID-Output and sets Motor Speed accordingly. More...
Files | |
file | set.h |
Motor Mixer Library Header. | |
file | set.c |
Motor Mixer Library Implementation. | |
Functions | |
void | setTask (void) |
Read the PID Output and Set the Motor Speeds. More... | |
void | setMotorSpeeds (uint8_t axis, uint8_t *vals) |
Set the Motor Speeds according to the SET_* Motor Position Constants. More... | |
Variables | |
uint8_t | baseSpeed |
Motor Base Speed. More... | |
uint8_t | baseSpeed = 0 |
Motor Base Speed. More... | |
Takes the Base Speed and PID-Output and sets Motor Speed accordingly.
|
inline |
Set the Motor Speeds according to the SET_* Motor Position Constants.
axis | ROLL or PITCH |
vals | Speeds for the two Motors on this axis (+, -) |
Definition at line 57 of file set.c.
References motorSet(), PITCH, ROLL, SET_PITCHMINUS, SET_PITCHPLUS, SET_ROLLMINUS, and SET_ROLLPLUS.
Referenced by setTask().
void setTask | ( | void | ) |
Read the PID Output and Set the Motor Speeds.
Definition at line 67 of file set.c.
References baseSpeed, pidOutput, and setMotorSpeeds().
uint8_t baseSpeed |
Motor Base Speed.
Definition at line 51 of file set.c.
Referenced by setTask().