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

foc control for using hoverboard as as hoverboard no mods #144

Open
wants to merge 58 commits into
base: master
Choose a base branch
from

Conversation

mihaigabriel620
Copy link

i want a firmware with foc control to tuse on my hoverboard with no mods
and to have all 3 modes selectable by pussing different times the power button
and ho hold the power putton to power off
pressing will just change the modes
PLS DO THAT

EFeru and others added 30 commits May 26, 2019 15:33
- the controller is faster and more light in memory footprint
- motor control is now done intependenly using Reusable code generation setting in Simulink
- fixed bug when chaging direction fast
EFeru added 28 commits June 6, 2019 22:05
- auto-code regenerated
- Changed all float constants to use f suffix to prevent double conversions
- Removed compile warnings due to HAL_GPIO_* related calls
- Added comms.h with prototypes for functions which were used in main()
- Casts and externs to fix compile warnings in various files.
- Made a bunch of file-local variables static.
- Fixed buzzerFreq/buzzerPattern extern declarations with correct type (uint8_t)
- Since this is C, void func() { } needs to be void func(void) { }, so fixed that in all instances.
These updates follows from @trollcop
- Phase Advance is enabled only when Motor Speed > n_motPhaAdvEna (400 rpm). This prevents that during a kick-down (100% duty cycle) the Phase advance kicks in even though we are running at low speed.
- This update improves the acceleration response
- no impact on code execution time
For safety reasons, the motors are enabled on start-up, only if the input is very small.
- The motors control calculation is done only if the motor is enabled to correctly initialize the controller.
@EFeru EFeru deleted the branch lucysrausch:master June 5, 2022 13:13
@EFeru EFeru deleted the master branch June 5, 2022 13:13
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.

None yet

3 participants