liubingzsd / gentlenav

Automatically exported from code.google.com/p/gentlenav
0 stars 0 forks source link

PWM channel 1 broken in trunk #72

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Channel 1 (Aileron) does not respond to radio input

What steps will reproduce the problem?
0. Trunk build for UDB5 V2895 using MPLAB8
1. HILSIM Flight with ailerons on channel 1. PWM inputs.
2. Checked receiver with servo
3. Checked UDB with mw4 branch.  Aileron control on channel 1 ok.

What is the expected output? What do you see instead?
Debugging should show changing channel 1 value.  Value stays constant at 3000.  
All other connected channels ok.

Help file snippet:

#define USE_PPM_INPUT                       0
#define PPM_NUMBER_OF_CHANNELS              8
#define PPM_SIGNAL_INVERTED                 0
#define PPM_ALT_OUTPUT_PINS                 0

// NUM_INPUTS:
// For classic boards: Set to 1-5 (or 1-8 when using PPM input)
//   1-4 enables only the first 1-4 of the 4 standard input channels
//   5 also enables E8 as the 5th input channel
// For UDB4 boards: Set to 1-8
#define NUM_INPUTS                          5

// Channel numbers for each input.
// Use as is, or edit to match your setup.
//   - If you're set up to use Rudder Navigation (like MatrixNav), then you may 
want to swap
//     the aileron and rudder channels so that rudder is CHANNEL_1, and aileron 
is 5.
#define THROTTLE_INPUT_CHANNEL              CHANNEL_3
#define AILERON_INPUT_CHANNEL               CHANNEL_1
#define ELEVATOR_INPUT_CHANNEL              CHANNEL_2
#define RUDDER_INPUT_CHANNEL                CHANNEL_4
#define MODE_SWITCH_INPUT_CHANNEL           CHANNEL_5

Original issue reported on code.google.com by uavflightdirector on 13 Aug 2013 at 8:21

GoogleCodeExporter commented 9 years ago
Change has been made. Cause was accidental commit of non-default option. 
Additional comments have been added to RadioIn.c module to describe the ability 
to assign PPM input to any of the radio inputs.

Original comment by robert.dickenson on 14 Aug 2013 at 12:47