Yes fixing regen is my next and hopefully last homework
Erm, this exhibits a catch of the web interface: you have to hit "Refresh" to download a recent parameter set (frqfac=0 in yours). Maybe something I should fix.
Erm, this exhibits a catch of the web interface: you have to hit "Refresh" to download a recent parameter set (frqfac=0 in yours). Maybe something I should fix.
Code: Select all
if (y < maxY && y > minY)
{
esum += err;
}
Code: Select all
int measTm = timer_get_counter(REV_CNT_TIMER);
Code: Select all
make get-deps
Code: Select all
$ cat build.sh
#!/bin/bash
make get-deps
CONTROL=FOC make clean
CONTROL=FOC make
Of course thats not the same but then this code won't be used in FOC mode most likely.dima wrote: ↑Mon Jan 20, 2020 10:55 pm EDIT: Changed line 587 ...compiled OK.
Code: Select all
int measTm = timer_get_counter(REV_CNT_TIMER);
That is really great news, persistance and research pays dividends. Thank youjohu wrote: ↑Fri Jan 31, 2020 4:34 pm Alright everyone, this is crazy! I just drove with curki cranked up to 20000 and all the various kludges that I added in the last months disabled. Result: awesome!
No unwanted regen, smooth acceleration to 9000rpm (didn't dare spin faster with my vibrato coupler), no over current trips on wheel spin. It just drives.
Congratulations Johannes
Nice! Maybe you could go to some abandoned airfield and try there...johu wrote: ↑Thu Feb 06, 2020 11:10 am More testing today. There are still some occasional trips in the high rev range when changing from full throttle to full regen.
I have removed the bus voltage based field weakening controller and only left the "crossover-controller" in. That is if iq can't be reached, id will be increased (well, decreased, as it's negative).
I also added a frequency dependent factor to curki. So with increasing motor speed it will increase integral controller gain for better response in that region while maintaining the car calm in the lower rev range.
I tried a filmed test drive but acceleration is so hard now that the camera topples over. Plus two cop cars came the other way which, well, is a bit problematic right now. So maybe not a good idea to publish the video