Subversion Repositories FlightCtrl

Rev

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

Rev 1968 Rev 1980
Line 191... Line 191...
191
 
191
 
Line 192... Line 192...
192
  // controlYaw = RC_PRTY[CONTROL_YAW] + EC_PRTY[CONTROL_YAW];
192
  // controlYaw = RC_PRTY[CONTROL_YAW] + EC_PRTY[CONTROL_YAW];
193
 
193
 
194
  if (controlMixer_getSignalQuality() >= SIGNAL_GOOD) {
-
 
195
    controlMixer_updateVariables();
194
  if (controlMixer_getSignalQuality() >= SIGNAL_GOOD) {
196
    configuration_applyVariablesToParams();
195
    controlMixer_updateVariables();
197
    controlMixer_didReceiveSignal = 1;
196
    controlMixer_didReceiveSignal = 1;
198
  } else { // Signal is not OK
197
  } else { // Signal is not OK
199
    // Could handle switch to emergency flight here.
198
    // Could handle switch to emergency flight here.
-
 
199
    // throttle is handled elsewhere.
-
 
200
  }
-
 
201
 
Line 200... Line 202...
200
    // throttle is handled elsewhere.
202
  // We can safely do this even with a bad signal - the variables will not have been updated then.
Line 201... Line 203...
201
  }
203
  configuration_applyVariablesToParams();
202
 
204