29#include "freertos/FreeRTOS.h"
30#include "driver/mcpwm_prelude.h"
int read_servo(servo_config *config)
Get the angle of the servos.
Definition: servo.c:112
esp_err_t set_angle_servo(servo_config *config, unsigned int degree_of_rotation)
Set the angle of the servos attached to the servo port of SRA Board.
Definition: servo.c:93
esp_err_t enable_servo()
Enables Servo port on the sra board, sets up PWM for the three pins in servo port.
Definition: servo.c:50
This structure contains the configuration of servos.
Definition: servo.h:39
int angle
Definition: servo.h:44
int max_pulse_width
Definition: servo.h:42
int min_pulse_width
Definition: servo.h:41
mcpwm_gen_handle_t generator
Definition: servo.h:46
int max_degree
Definition: servo.h:43
mcpwm_cmpr_handle_t comparator
Definition: servo.h:45
int servo_pin
Definition: servo.h:40