Rev 2099 | Rev 2103 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2099 | Rev 2102 | ||
---|---|---|---|
Line 41... | Line 41... | ||
41 | for (uint8_t i=0; i<VARIABLE_COUNT; i++) { |
41 | for (uint8_t i=0; i<VARIABLE_COUNT; i++) { |
42 | variables[i] = RC_getVariable(i); |
42 | variables[i] = RC_getVariable(i); |
43 | } |
43 | } |
44 | EC_setNeutral(); |
44 | EC_setNeutral(); |
45 | FC_setNeutral(); // FC is FailsafeControl, not FlightCtrl. |
45 | FC_setNeutral(); // FC is FailsafeControl, not FlightCtrl. |
46 | - | ||
47 | // This is to set the home pos in navi. |
- | |
48 | // MKFlags |= MKFLAG_CALIBRATE; |
- | |
49 | } |
46 | } |
Line 50... | Line 47... | ||
50 | 47 | ||
51 | /* |
48 | /* |
52 | * Update potentiometer values with limited slew rate. Could be made faster if desired. |
49 | * Update potentiometer values with limited slew rate. Could be made faster if desired. |
Line 111... | Line 108... | ||
111 | 108 | ||
112 | void controlMixer_periodicTask(void) { |
109 | void controlMixer_periodicTask(void) { |
Line 113... | Line 110... | ||
113 | int16_t tempPRTY[4] = { 0, 0, 0, 0 }; |
110 | int16_t tempPRTY[4] = { 0, 0, 0, 0 }; |
114 | 111 | ||
115 | // Decode commands. |
- | |
Line 116... | Line 112... | ||
116 | uint8_t rcCommand = (RC_getSignalQuality() >= SIGNAL_OK) ? RC_getCommand() |
112 | // Decode commands. |
117 | : COMMAND_NONE; |
- | |
Line 118... | Line 113... | ||
118 | 113 | uint8_t rcCommand = (RC_getSignalQuality() >= SIGNAL_OK) ? RC_getCommand() : COMMAND_NONE; |
|
119 | uint8_t ecCommand = (EC_getSignalQuality() >= SIGNAL_OK) ? EC_getCommand() |
114 | |
120 | : COMMAND_NONE; |
115 | uint8_t ecCommand = (EC_getSignalQuality() >= SIGNAL_OK) ? EC_getCommand() : COMMAND_NONE; |
121 | 116 |