/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: 2014-01-22 23:54:34 UTC
  • Revision ID: tim@ed.am-20140122235434-lgc7n5xdoljkiwco
completed (hopefully) the RC interface software

Show diffs side-by-side

added added

removed removed

15
15
        
16
16
        /**
17
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
 
18
         * full frame of NUM_CHANNELS has been read.  When this is the case, and not
 
19
         * otherwise, the channel_values array will contain NUM_CHANNELS number of
 
20
         * channel values in the range 0 to MAX_CHANNEL_VALUE.  At other times the
 
21
         * array is used to store values read so far and should not be relied upon.
 
22
         * 
 
23
         * @param channel_values array to store channel values in
20
24
         * @returns true if a frame has been read
21
25
         */
22
 
        bool read_channels( unsigned long channel_values[] );
23
 
 
 
26
        bool read_channels( int channel_values[] );
24
27
}
25
28
 
26
29