/elec/quadcopter

To get this branch, use:
bzr branch http://bzr.ed.am/elec/quadcopter
17 by Tim Marston
rc-interface: mostly completed it (untested, but rx and tx code should work)
1
//
2
// motors.h
3
//
4
5
#ifndef MOTORS_H_
6
#define MOTORS_H_
7
8
9
namespace Motors
10
{
11
	/**
12
	 * Setup the Arduino as required.
13
	 */
14
	void setup();
15
16
	/**
18 by Tim Marston
completed (hopefully) the RC interface software
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();
17 by Tim Marston
rc-interface: mostly completed it (untested, but rx and tx code should work)
29
}
30
31
32
#endif //MOTORS_H_