8,7 → 8,7 |
#include "commands.h" |
#include "output.h" |
|
int16_t controls[4] = { 0, 0, 0, 0 }; |
int16_t controls[4] = { 0, 0, 0, -1024 }; |
|
// Internal variables for reading commands made with an R/C stick. |
uint8_t lastCommand = COMMAND_NONE; |
54,7 → 54,6 |
int16_t targetvalue; |
for (i=0; i < VARIABLE_COUNT; i++) { |
targetvalue = RC_getVariable(i); |
// if (i<2) debugOut.analog[18+i] = targetvalue; |
if (targetvalue < 0) |
targetvalue = 0; |
if (variables[i] < targetvalue && variables[i] < 255) |
108,7 → 107,7 |
*/ |
|
void controlMixer_periodicTask(void) { |
int16_t tempPRYT[4] = { 0, 0, 0, 0 }; |
int16_t tempPRYT[4] = { 0, 0, 0, RC_getZeroThrottle()}; |
|
// Decode commands. |
uint8_t rcCommand = (RC_getSignalQuality() >= SIGNAL_OK) ? RC_getCommand() : COMMAND_NONE; |