Rev 1964 | Rev 1980 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1964 | Rev 1968 | ||
---|---|---|---|
Line 130... | Line 130... | ||
130 | 130 | ||
131 | uint8_t controlMixer_getSignalQuality(void) { |
131 | uint8_t controlMixer_getSignalQuality(void) { |
132 | uint8_t rcQ = RC_getSignalQuality(); |
132 | uint8_t rcQ = RC_getSignalQuality(); |
Line 133... | Line 133... | ||
133 | uint8_t ecQ = EC_getSignalQuality(); |
133 | uint8_t ecQ = EC_getSignalQuality(); |
134 | 134 | ||
Line 135... | Line 135... | ||
135 | if (rcQ < SIGNAL_GOOD) debugOut.digital[0] |= DEBUG_SIGNAL; else debugOut.digital[0] &= ~DEBUG_SIGNAL; |
135 | //if (rcQ < SIGNAL_GOOD) debugOut.digital[0] |= DEBUG_SIGNAL; else debugOut.digital[0] &= ~DEBUG_SIGNAL; |
136 | if (ecQ < SIGNAL_GOOD) debugOut.digital[1] |= DEBUG_SIGNAL; else debugOut.digital[1] &= ~DEBUG_SIGNAL; |
136 | //if (ecQ < SIGNAL_GOOD) debugOut.digital[1] |= DEBUG_SIGNAL; else debugOut.digital[1] &= ~DEBUG_SIGNAL; |
137 | 137 | ||
Line 239... | Line 239... | ||
239 | // Both sources have no command, or one or both are out. |
239 | // Both sources have no command, or one or both are out. |
240 | // Just set to false. There is no reason to check if the none-command was repeated anyway. |
240 | // Just set to false. There is no reason to check if the none-command was repeated anyway. |
241 | isCommandRepeated = 0; |
241 | isCommandRepeated = 0; |
242 | lastCommand = COMMAND_NONE; |
242 | lastCommand = COMMAND_NONE; |
243 | } |
243 | } |
- | 244 | ||
- | 245 | if (rcCommand != COMMAND_NONE) debugOut.digital[0] |= DEBUG_SIGNAL; else debugOut.digital[0] &= ~DEBUG_SIGNAL; |
|
- | 246 | if (isCommandRepeated) debugOut.digital[1] |= DEBUG_SIGNAL; else debugOut.digital[1] &= ~DEBUG_SIGNAL; |
|
244 | } |
247 | } |
Line 245... | Line 248... | ||
245 | 248 | ||
246 | // TODO: Integrate into command system. |
249 | // TODO: Integrate into command system. |
247 | uint8_t controlMixer_testCompassCalState(void) { |
250 | uint8_t controlMixer_testCompassCalState(void) { |