That is an old version of VESC, the current versions automatically calculate the Ld-Lq in motor setup so all you need to do is turn the MTPA on, of course how well it works depends on the motor as it only really works with a motor that has a fair bit of salience (Ld-Lq). However in those motors it is pretty impressive but more so for how much more torque you have at the mid and upper RPM range, I would still not plan to use it for long periods in field weakening above the base RPM.