Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MCPWM Implementation update for ESP-IDF 5.0 #90

Merged
merged 11 commits into from
Feb 1, 2024

Conversation

SuperChamp234
Copy link
Member

@SuperChamp234 SuperChamp234 commented Jan 10, 2024

I am issuing this PR to update the MCPWM implementation for ESP-IDF 5.0.

As per pull request #88 , I have rewritten the MCPWM implementation for ESP-IDF 5.0. It make use of the driver/mcpwm_prelude.h now.

This new MCPWM implementation requires the use of a motor_handle_t when trying to access the mcpwm object and perform actions.

Please review and let me know the changes, thank you.

CMakeLists.txt Outdated Show resolved Hide resolved
include/motor_driver.h Outdated Show resolved Hide resolved
src/mcpwm_interface.c Outdated Show resolved Hide resolved
src/mcpwm_interface.c Outdated Show resolved Hide resolved
src/motor_driver.c Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
src/i2cdev.c Outdated Show resolved Hide resolved
Copy link
Member

@VedantParanjape VedantParanjape left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will want to review once more, after Rishi finished the review.

include/sra_board.h Outdated Show resolved Hide resolved
include/motor_driver.h Outdated Show resolved Hide resolved
Updated MCPWM Interface, but stuck at an exception ( Guru Meditation Error: Core  0 panic'ed (InstrFetchError).

Updated small pointer error.

Fixed double pointer assignment error.

Cleaned Interface, fixed issue with mapping of duty cycle values

Fixed silly error in pindefs for motors

motor driver parallel example deleted

Small change in include files
Delete .vscode directory

Uncommented out code and add license headers to header files

Add .gitignore entry for sdkconfig file
src/motor_driver.c Show resolved Hide resolved
include/mcpwm_interface.h Outdated Show resolved Hide resolved
src/mcpwm_interface.c Show resolved Hide resolved
include/motor_driver.h Show resolved Hide resolved
include/motor_driver.h Outdated Show resolved Hide resolved
src/bar_graph.c Outdated Show resolved Hide resolved
src/motor_driver.c Show resolved Hide resolved
include/utils.h Outdated Show resolved Hide resolved
Copy link
Collaborator

@RISHI27-dot RISHI27-dot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@VedantParanjape The Wall-E bot successfully achieves self-balancing through the implemented MCPWM driver, and I have completed my review. Please add your reviews so that we can proceed with merging.

@RISHI27-dot RISHI27-dot merged commit 619695f into SRA-VJTI:main Feb 1, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants