Skip to content
Snippets Groups Projects
Select Git revision
  • 19e45fbd8386227fc8cbec7e3c5917f25566d61a
  • master default protected
2 results

state-controller.cpp

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