/elec/quadcopter

To get this branch, use:
bzr branch http://bzr.ed.am/elec/quadcopter
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
// motors.h
//

#ifndef MOTORS_H_
#define MOTORS_H_


namespace Motors
{
	/**
	 * Setup the Arduino as required.
	 */
	void setup();

	/**
	 * Update the motor channel values.
	 * 
	 * @param channel_values an array of NUM_MOTORS values, each in the range 0
	 * to MAX_CHANNEL_VALUE
	 */
	void set_values( int channel_values[] );

	/**
	 * Update the motor pulses.  This should be called repeatedly, as often as
	 * possible.
	 */
	void update();
}


#endif //MOTORS_H_