-
Notifications
You must be signed in to change notification settings - Fork 36
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
Implemented pwm frequency configurable by eeprom setting #65
Conversation
Demag and stall events notification flag cleared during dshot configuration Fixed 640ms scheduler step Updated status frame to carry demag metric max, and demag, desync and stall event flags Fixed stall bug Added clear for demag metrix max Scheduler has been rewritten and optimized to allow sending demag metric every 64ms and temperature, status, debug1 and debug2 every 256ms Demag_Detected_Metric_Max scaled to take full advantage of 4bit, small optimization in temperature PWM limit to follow Temp_Pwm_Level_Setpoint Improved comment in stat frame Fixed max demag event load for the case it is below 120 (should happen only when motors are stopped) Clear notification flags after sending status frame Updated .gitignore Fixed review findings Rebased to develop Set default power rating to 2S+
@stylesuxx In the comming days I will debug and smoke test it before moving from draft |
23bfd54
to
5f3ba75
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, this looks good to me. On first sights it seems to be more changes than it actually are but I guess git is not best in picking up only the white space changes in some sections.
What needs to be done is to bump the layout to 207, then I can add the functionality in the configurator. Also I don't see the variable being added to the "EEPROM" - or am I missing something?
bf3205f
to
2fd64f8
Compare
Fixed whitespaces |
2fd64f8
to
a5e1449
Compare
a5e1449
to
8a1b18a
Compare
No smoke during workbench testing, hovering and the first flight. All seems to work, but I am going to do more testing on my side |
I made more flights abusing pretty hard my Meteor 65 and extracted several logs. PWM_FREQ_SETTING_BTFL_BLACKBOX_LOG_Meteor65_20230213_191041.zip |
Fixed calculate_pwm_bits Fixed calculate_pwm_bits function Fixed some compiling errors Fixed format Fixed whitespaces Merged latest edt_events changes Optimized t1_int pwm bitN code paths
48c4ed6
to
b0ed7db
Compare
@stylesuxx This pr has a subset of functionalities of Dinamic PWM #67 one. Please consider discarding it in favour of the latest one |
Closing this in favor of #67 |
This pr adds pwm configurable by the eeprom setting