![]() |
Autodrone
Multi-Domain Vehicle
|
This file takes the output of the PID controller and assigns values to the motors. More...
Go to the source code of this file.
Macros | |
#define | PIDMIXFLIGHT(X, Y, Z, T) (ratePID[ROLL] * (X) + ratePID[PITCH] * (Y) + eepromConfig.yawDirection * ratePID[YAW] * (Z) + throttleCmd * (T)) |
#define | PIDMIXROVER(X, T) (steerCmd * (X) + speedCmd * (T)) |
#define | THROTTLE_DEADBAND 400 |
#define | THROTTLE_DEADBAND_SLOPE ((4000 - THROTTLE_DEADBAND)/4000.0f) |
Functions | |
void | pulseMotors (void) |
Pulses the motors. More... | |
void | mixTable (void) |
Mixes the values from the PID controller and assigns values to the motors. More... | |
Variables | |
uint8_t | numberMotor |
uint16_t | throttleCmd |
int16_t | steerCmd |
int16_t | speedCmd |
int16_t | motor_temp [4] |
This file takes the output of the PID controller and assigns values to the motors.
#define PIDMIXFLIGHT | ( | X, | |
Y, | |||
Z, | |||
T | |||
) | (ratePID[ROLL] * (X) + ratePID[PITCH] * (Y) + eepromConfig.yawDirection * ratePID[YAW] * (Z) + throttleCmd * (T)) |
#define THROTTLE_DEADBAND 400 |
#define THROTTLE_DEADBAND_SLOPE ((4000 - THROTTLE_DEADBAND)/4000.0f) |
void mixTable | ( | void | ) |
Mixes the values from the PID controller and assigns values to the motors.
void pulseMotors | ( | void | ) |
Pulses the motors.
|
extern |
|
extern |
int16_t speedCmd |
|
extern |
|
extern |