Subversion Repositories FlightCtrl

Rev

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

Rev 2118 Rev 2125
Line 177... Line 177...
177
 * Get Pitch, Roll, Throttle, Yaw values
177
 * Get Pitch, Roll, Throttle, Yaw values
178
 */
178
 */
179
void RC_periodicTaskAndPRYT(int16_t* PRYT) {
179
void RC_periodicTaskAndPRYT(int16_t* PRYT) {
180
  if (RCQuality) {
180
  if (RCQuality) {
181
    RCQuality--;
181
    RCQuality--;
182
 
-
 
183
    debugOut.analog[20] = RCChannel(CH_ELEVATOR);
-
 
184
    debugOut.analog[21] = RCChannel(CH_AILERONS);
-
 
185
    debugOut.analog[22] = RCChannel(CH_RUDDER);
-
 
186
    debugOut.analog[23] = RCChannel(CH_THROTTLE);
-
 
187
 
-
 
188
    PRYT[CONTROL_ELEVATOR]   = RCChannel(CH_ELEVATOR);
182
    PRYT[CONTROL_ELEVATOR]   = RCChannel(CH_ELEVATOR);
189
    PRYT[CONTROL_AILERONS]   = RCChannel(CH_AILERONS);
183
    PRYT[CONTROL_AILERONS]   = RCChannel(CH_AILERONS);
190
    PRYT[CONTROL_RUDDER]     = RCChannel(CH_RUDDER);
184
    PRYT[CONTROL_RUDDER]     = RCChannel(CH_RUDDER);
191
    PRYT[CONTROL_THROTTLE]   = RCChannel(CH_THROTTLE);
185
    PRYT[CONTROL_THROTTLE]   = RCChannel(CH_THROTTLE);
192
  } // if RCQuality is no good, we just do nothing.
186
  } // if RCQuality is no good, we just do nothing.