/elec/quadcopter

To get this branch, use:
bzr branch http://bzr.ed.am/elec/quadcopter

« back to all changes in this revision

Viewing changes to src/rc-interface/config.h

  • Committer: Tim Marston
  • Date: 2013-10-30 22:41:50 UTC
  • Revision ID: tim@ed.am-20131030224150-t6xs1l783m2yg6rd
updated comments in receiver test programs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//
2
 
// config.h
3
 
//
4
 
// Configuration for rc-interface module.
5
 
 
6
 
 
7
 
// ____________________________________________________________________________
8
 
//                                                                     receiver
9
 
 
10
 
// number of channels
11
 
#define NUM_CHANNELS 8
12
 
 
13
 
// comma-separated order that channels are received in (channels are numbered
14
 
// from 1 to NUM_CHANNELS)
15
 
#define CHANNEL_ORDER 1, 3, 2, 4, 5, 6, 7, 8
16
 
 
17
 
// minimum pulse width (in ms), used to weed out crappy signals
18
 
#define MIN_PULSE_WIDTH 1000UL
19
 
 
20
 
// maximum pulse width (in ms), used to weed out crappy signals
21
 
#define MAX_PULSE_WIDTH 2000UL
22
 
 
23
 
// minimum frame gap time (in ms), used to check that the frame gap is where we
24
 
// expect it to be and that we have read the channels properly
25
 
#define MIN_FRAME_GAP_WIDTH ( 4000UL + MIN_PULSE_WIDTH )
26
 
 
27
 
// ____________________________________________________________________________
28
 
//                                                               esc controller
29
 
 
30
 
// ____________________________________________________________________________
31
 
//