Closed svenhaitjema closed 2 years ago
Hi,
Yes, limits change when using field weakening. But the way it's set by default, it's blended, so kicking in from 750 to 1000.
Field weakening will definitely help getting more speed. Here a discussion with someone trying to reach maximum speed, there are few hints.
Hi @Candas1,
Thank you for the reply! The use of field weakening does seem to increase the speed quite a bit :)
Hi All,
First of all, the FOC firmware is awsome! I have build a OneWheel using 2 joined hoverboard motors. My first attempt with custom firmware was the bipropellant repo, after some fiddeling, I got it to work quite nice, but the motor is controlled with SIN(3rd harmonic) & phase advance. This gives a lot of speed, but the board is unable to balance itself past ~15 km/h. So I gave the FOC firmware a shot and copied over the onewheel logic from my bipropellant fork. The motors spin beautifully, but seem limited in speed. From the readme.md I understand that field weaking could help to speed things up without sacrificing torque too much, but some of the parameters are unclear to me.
This is the current motor config in config.h
1) In readme.md field weakening section, the picture shows the 'outside' setup, there field weakening is activated above a motor pwm value of 1000. Until now, it was my understanding that -1000 till 1000 is the valid range for motor pwm values. Does the range change when field weaking is enabled?
2) I am not really familiar with advanced drive modes like FOC + field weakening. Am I on the right track setting the control mode to torque + field weakening to control a onewheel or would you advice a different control mode, given the onewheel vehicle dynamics?