servos.hpp 415 Bytes
Newer Older
Xoaquin Castrelo's avatar
Xoaquin Castrelo committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef SERVOS_H
#define SERVOS_H

#include <stdint.h>

/**
 * Initialises the servos.
 */
void initServos();

/**
 * Sets the angle of a servo.
 * 
 * @param servo     the index of the servo to control
 * @param arcMin    the angle of the servo in arc-minutes
 */
void setServoAngle(uint8_t servo, int16_t arcMin);

/**
 * Writes the servo values out to the servos.
 */
void updateServos();

#endif /* SERVOS_H */