|
SRA Board Components
ESP-IDF component for SRA Board
|
This structure contains the configuration of servos. More...
#include <servo.h>
Public Attributes | |
| int | servo_pin |
| int | min_pulse_width |
| int | max_pulse_width |
| int | max_degree |
| int | angle |
| mcpwm_cmpr_handle_t | comparator |
| mcpwm_gen_handle_t | generator |
This structure contains the configuration of servos.
| int servo_config::angle |
| servo_config::comparator |
Member 'comparator' is responsible for firing a compare event that generator listens
| servo_config::generator |
Member 'generator' is responsible for driving gpio pin high or low
| servo_config::max_degree |
Member 'max_degree' contains the maximum degree servo motor can rotate
| servo_config::max_pulse_width |
Member 'max_pulse_width' contains the maximum pulse width of servo motor
| servo_config::min_pulse_width |
Member 'min_pulse_width' contains the minimum pulse width of servo motor
| servo_config::servo_pin |
Member 'servo_pin' contains the gpio pin number to which servo is connected