Skip to content
Snippets Groups Projects
Select Git revision
  • 65bb36a23fcaf829b1778a037e326780e95b180a
  • master default protected
2 results

servos.hpp

Blame
  • 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 */