Subversion Repositories FlightCtrl

Rev

Rev 2017 | Rev 2019 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2017 Rev 2018
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 247... Line 247...
247
    // Just set to false. There is no reason to check if the none-command was repeated anyway.
247
    // Just set to false. There is no reason to check if the none-command was repeated anyway.
248
    isCommandRepeated = 0;
248
    isCommandRepeated = 0;
249
    lastCommand = COMMAND_NONE;
249
    lastCommand = COMMAND_NONE;
250
  }
250
  }
Line 251... Line 251...
251
 
251
 
252
  if (rcCommand != COMMAND_NONE) debugOut.digital[0] |= DEBUG_SIGNAL; else debugOut.digital[0] &= ~DEBUG_SIGNAL;
252
  //if (rcCommand != COMMAND_NONE) debugOut.digital[0] |= DEBUG_SIGNAL; else debugOut.digital[0] &= ~DEBUG_SIGNAL;
253
  if (isCommandRepeated) debugOut.digital[1] |= DEBUG_SIGNAL; else debugOut.digital[1] &= ~DEBUG_SIGNAL;
253
  //if (isCommandRepeated) debugOut.digital[1] |= DEBUG_SIGNAL; else debugOut.digital[1] &= ~DEBUG_SIGNAL;
Line 254... Line 254...
254
 }
254
 }
255
 
255
 
256
// TODO: Integrate into command system.
256
// TODO: Integrate into command system.