Yes, it's just a single line of code to go up to maybe 900 amps. Well, or maybe 2 lines. I forgot...
So, you want 600 instead of 500?
For a lem 300, that's especially easy, since it's double.
Change this line:
current_fb = (loc_current_fb * 19) >> 3; // (19/8 is almost 2.4)
To this line:
current_fb = (loc_current_fb << 1);
I made a modification to the code so that the max current is programmable too, and that works. But it was for a different board, with like 2 different pin mappings. Oh well.
|