/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 test/receiver/pulse-width/main.ino

  • Committer: Tim Marston
  • Date: 2013-10-23 21:08:18 UTC
  • Revision ID: tim@ed.am-20131023210818-w3b4t7ddzxvu11mo
added "graphic" display to receiver test program

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
// microseconds.  It takes several measurements and prints it the average over
9
9
// serial.
10
10
//
11
 
// NOTES: Due to the way our receiver works (by varying the position of the
12
 
// rising edge of the pulse and keeping the falling edge fixed), it is
13
 
// sufficient for us to measure the pule width to determine the channel value
14
 
// (e.g., throttle position).  But it should be noted that this relies on a
15
 
// quirk of our receiver/transmitter and it is not truly measuring PPM.  Our
16
 
// next experiment is measuring PPM (../ppm-read).
 
11
 
17
12
 
18
13
// number of signal pulses to average
19
14
#define AVERAGE_SAMPLES 1