While the hardware on the bike hasn't changed since the my last update, a lot of features have been added to the vesc firmware.
Since the firmware now has separate parameters for the d and q axis inductance, I thought I would try use the Ld and Lq for field weakening.
The Ld, Lq, Iq and winding resistance are used to calculate the base speed where the controller reaches its limit and the commanded Q axis current can't be maintained. The higher the Q axis current, the lower the base speed.
The graph below starts off at my motor current limit of 200A. As speed increases, motor current drops and battery limit kicks in. Unfortunately power drops off a bit before field weakening kicks in.
Iq suddenly drops to zero when I let off the throttle, but the field weakening current is maintained and decays until a safe speed is reached.
The video is on saggy 10s so fw is frequently used and id is capped at 140A.
In the video, the calculations seem to work ok and it kicks in as duty cycle nears max and the controller is running out of steam. That was my first ride on the road and I set it on the aggressive side so I didn't get unintended braking at high speed. If you watch carefully, you can also see that field weakening remains on when I suddenly back off the throttle at high speed to keep the controller safe. It also engages during braking if necessary.