/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/receiver.h

  • Committer: Tim Marston
  • Date: 2013-11-21 00:05:58 UTC
  • Revision ID: tim@ed.am-20131121000558-06xtcb4fue72td7q
updated 8-channel pulse width reading test program's comments

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//
2
 
// receiver.h
3
 
//
4
 
 
5
 
#ifndef RECEIVER_H_
6
 
#define RECEIVER_H_
7
 
 
8
 
 
9
 
namespace Receiver
10
 
{
11
 
        /**
12
 
         * Setup the Arduino as required.
13
 
         */
14
 
        void setup();
15
 
        
16
 
        /**
17
 
         * Attempt to read channels.  The call is non-blocking and reutrns true if a
18
 
         * full frame of NUM_CHANNELS has been read.
19
 
         * @param channel_values an array to store channel values in
20
 
         * @returns true if a frame has been read
21
 
         */
22
 
        bool read_channels( unsigned long channel_values[] );
23
 
 
24
 
}
25
 
 
26
 
 
27
 
#endif //RECEIVER_H_