Skip to content

Conversation

@Will005-coder
Copy link
Contributor

Updated RPM weight and removed commented-out code for clarity.

Updated RPM weight and removed commented-out code for clarity.
Refactor RPM calculation and improve code clarity.
Updated pin assignments and cleaned up variable names for better clarity. Adjusted PWM setup and removed unused pin configurations.
Added comments on formulas in `pid` function and notes on if-statement logical tree for troubleshooting insights. Explained the purpose of direction guard clauses and why we us `fabs`.
Refactored periodic timer callback to be IRAM-safe

Moved encoder processing out of the IRAM-based timer callback and reduced it to
a minimal snapshot + flag handoff. Prevents crashes caused by non-IRAM-safe
function calls inside the high-priority timer context.
Updated comment for esp_attr.h inclusion to clarify its purpose.
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.

2 participants