Select Git revision
-
Xoaquin Castrelo authoredXoaquin Castrelo authored
servos.hpp 415 B
#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 */