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

  • Committer: Tim Marston
  • Date: 2014-03-12 23:03:34 UTC
  • Revision ID: tim@ed.am-20140312230334-wograpowgkmuxzjy
rc-interface-test: don't die when no serial; layout change, and added motor
controls; write, as well as read over serial

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
        void setup();
15
15
 
16
16
        /**
17
 
         * Update the motor channels if it's time.
18
 
         */
19
 
        void update_channels( int channels[] );
 
17
         * Update the motor channel values.
 
18
         * 
 
19
         * @param channel_values an array of NUM_MOTORS values, each in the range 0
 
20
         * to MAX_CHANNEL_VALUE
 
21
         */
 
22
        void set_values( int channel_values[] );
 
23
 
 
24
        /**
 
25
         * Update the motor pulses.  This should be called repeatedly, as often as
 
26
         * possible.
 
27
         */
 
28
        void update();
20
29
}
21
30
 
22
31