From b0d81d3b68813b0a84aa194f885bcbfce679ed11 Mon Sep 17 00:00:00 2001 From: jasonshort Date: Tue, 14 Sep 2010 02:33:00 +0000 Subject: [PATCH] git-svn-id: https://arducopter.googlecode.com/svn/trunk@514 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- libraries/RC/AP_RC.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/libraries/RC/AP_RC.cpp b/libraries/RC/AP_RC.cpp index 9ec742f305..1915285790 100644 --- a/libraries/RC/AP_RC.cpp +++ b/libraries/RC/AP_RC.cpp @@ -40,13 +40,15 @@ volatile uint8_t _timer_ovf = 0; AP_RC::AP_RC() { _direction_mask = 255; // move to super class - pinMode(11,INPUT); // PB3 - MOSI/OC2 - Throttle in - pinMode(13,INPUT); // PB5 - SCK - Rudder in - pinMode(8, OUTPUT); // PB0 - AIN1 - OUTPUT THROTTLE - pinMode(9, OUTPUT); // PB1 - OC1A - Elevator PWM out - pinMode(10,OUTPUT); // PB2 - OC1B - Aileron PWM out - // set Analog out 4 to output - DDRC |= B00010000; + pinMode(2,INPUT); // PD2 - INT0 - CH 1 in + pinMode(3,INPUT); // PD3 - INT1 - CH 2 in + pinMode(11,INPUT); // PB3 - MOSI/OC2 - CH 3 in + pinMode(13,INPUT); // PB5 - SCK - CH 4 in + + pinMode(10,OUTPUT); // PB2 - OC1B - CH 1 out + pinMode(8, OUTPUT); // PB0 - AIN1 - CH 3 out + pinMode(9, OUTPUT); // PB1 - OC1A - CH 2 out + DDRC |= B00010000; // PC4 - - CH 4 out } void