Combining FOC Braking Codes with BLDC Codes

General topics and discussions about the VESC and its development.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable
hohungyi
Posts: 15
Joined: 03 Jun 2017, 12:19
Location: Singapore
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Combining FOC Braking Codes with BLDC Codes

Postby hohungyi » 05 Jun 2017, 17:03

Hi, I'm having some trouble with the braking force on sensorless BLDC mode on my VESC, and FOC gives stuttering acceleration but great braking, so I was thinking it could be possible to combine the codes for FOC braking in mcpwm_foc.c into the overall BLDC codes, replacing the codes for braking in mcpwm.c

The catch would be that to setup the VESC it would be necessary to run the BLDC detection, then run FOC detection and apply settings.

Would anybody have any advice before I attempt this (possibly stupid) endeavor?

Thanks!

rew
Posts: 943
Joined: 25 Mar 2016, 12:29
Location: Delft, Netherlands.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Re: Combining FOC Braking Codes with BLDC Codes

Postby rew » 06 Jun 2017, 06:10

FOC working well in braking is because when you simply select FOC mode, the FOC code already knows where the rotor is. If you switch, it will have to start learning. I think a switch between the modes would cause a significant (0.5 to 2 second) gap in the ability to drive the motor.

So live switching between the two modes is more complicated than you'd think at first.

hohungyi
Posts: 15
Joined: 03 Jun 2017, 12:19
Location: Singapore
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Re: Combining FOC Braking Codes with BLDC Codes

Postby hohungyi » 06 Jun 2017, 08:48

Got it! Understood, thanks!


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Return to “General”

Who is online

Users browsing this forum: No registered users and 2 guests