SRA Board Components
ESP-IDF component for SRA Board
Public Attributes | List of all members
servo_config Struct Reference

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
 

Detailed Description

This structure contains the configuration of servos.

Member Data Documentation

◆ angle

int servo_config::angle

◆ comparator

servo_config::comparator

Member 'comparator' is responsible for firing a compare event that generator listens

◆ generator

servo_config::generator

Member 'generator' is responsible for driving gpio pin high or low

◆ max_degree

servo_config::max_degree

Member 'max_degree' contains the maximum degree servo motor can rotate

◆ max_pulse_width

servo_config::max_pulse_width

Member 'max_pulse_width' contains the maximum pulse width of servo motor

◆ min_pulse_width

servo_config::min_pulse_width

Member 'min_pulse_width' contains the minimum pulse width of servo motor

◆ servo_pin

servo_config::servo_pin

Member 'servo_pin' contains the gpio pin number to which servo is connected


The documentation for this struct was generated from the following file: