Skip to content

Center Aligned#503

Merged
g0nz4I0 merged 5 commits intodevelopmentfrom
CenterAligned
May 3, 2025
Merged

Center Aligned#503
g0nz4I0 merged 5 commits intodevelopmentfrom
CenterAligned

Conversation

@oganigl
Copy link
Copy Markdown
Contributor

@oganigl oganigl commented Apr 16, 2025

To center Aligned the pwms of a timer if we use phased instead of Normal. Added a boolean to check if is phased and multiply the freq to don't change the value

Copy link
Copy Markdown
Member

@g0nz4I0 g0nz4I0 left a comment

Choose a reason for hiding this comment

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

Why are you using the PHASED setting, shouldn't you be creating a new setting, PHASED for this purpose? Also I believe you have tested this using an oscilloscope?

@oganigl
Copy link
Copy Markdown
Contributor Author

oganigl commented Apr 20, 2025

@g0nz4I0 Yes I used the oscilloscope to tested, If I understand your comment, your complaining about the boolean to change a single PWM to phased??

Copy link
Copy Markdown
Member

@jmaralo jmaralo left a comment

Choose a reason for hiding this comment

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

there are a few changes you made that make no sense, if they are to support center aligned PWMs you should add a new if instead of modifying the PHASED configuration

Comment thread Src/HALAL/Models/TimerPeripheral/TimerPeripheral.cpp Outdated
Comment thread Src/HALAL/Models/TimerPeripheral/TimerPeripheral.cpp Outdated
@jmaralo
Copy link
Copy Markdown
Member

jmaralo commented Apr 30, 2025

Also add support for center aligned dual PWMs

Comment thread Src/HALAL/Models/TimerPeripheral/TimerPeripheral.cpp Outdated
g0nz4I0
g0nz4I0 previously approved these changes May 3, 2025
@g0nz4I0 g0nz4I0 merged commit f6c269b into development May 3, 2025
13 checks passed
@g0nz4I0 g0nz4I0 deleted the CenterAligned branch May 3, 2025 16:06
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