sra-board-component
sra-board-component copied to clipboard
Updated MCPWM Implementation for servo control to support ESP-IDF 5.0 (#90)
Added v5.1 ESP-IDF support for servo control
- Refactored servo configuration
- Updated enable_servo function to create timers, operators, comparators, and generators for each servo group (A-B and C-D) separately
- Modified set_angle_servo_helper function to set servo angles using the new MCPWM library functions
- Updated servo angle calculation to ensure compatibility with the new configuration
- Adjusted logging statements to maintain consistency with the changes in function calls and parameter names.
- provides more detailed logging messages and utilizes the full capabilities of the MCPWM library for servo control
@SuperChamp234 I think this fork is ready to be merged, please share your reviews