Subversion Repositories FlightCtrl

Rev

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

Rev 2110 Rev 2115
Line 214... Line 214...
214
  if (RCQuality >= 120)
214
  if (RCQuality >= 120)
215
    return SIGNAL_BAD;
215
    return SIGNAL_BAD;
216
  return SIGNAL_LOST;
216
  return SIGNAL_LOST;
217
}
217
}
Line 218... Line -...
218
 
-
 
219
/*
-
 
220
 * To should fired only when the right stick is in the center position.
-
 
221
 * This will cause the value of pitch and roll stick to be adjusted
-
 
222
 * to zero (not just to near zero, as per the assumption in rc.c
-
 
223
 * about the rc signal. I had values about 50..70 with a Futaba
-
 
224
 * R617 receiver.) This calibration is not strictly necessary, but
-
 
225
 * for control logic that depends on the exact (non)center position
-
 
226
 * of a stick, it may be useful.
-
 
227
 */
218
 
228
void RC_calibrate(void) {
219
void RC_calibrate(void) {
229
  // Do nothing.
220
  // Do nothing.
-
 
221
}
-
 
222
 
-
 
223
int16_t RC_getZeroThrottle() {
-
 
224
        return TIME (-0.5);