Personally, I have chosen not to use the Svag app, although let me take this opportunity to tell you that I wish I had half of your knowledge in the software field.
That said, measuring how much current is used for the d and q axes surely is a reliable method, but I think that a more empirical, albeit less accurate way of estimating the motor speed at which flux weakening occurs is to use a dyno chart, or, more conveniently, the max power line of an Alpha Varg in the advanced modes screens of the Arkenstone.
Not that I want to school you,
@brongle, but I just want to explain the reasoning:
A simplified way of looking at the situation is to think that power = torque • rpm • k
u where k
u is a constant that depends on the units chosen.
Now, if you look at a typical dyno chart of an ideal permanent magnet synchronous AC motor, like
this:
• in the first part, from 0 rpm to half the max rpm, torque is constant and the above equation becomes like
y = x • constant
which is a straight line with some positive slope, as you can see in that chart
since
y = x • k • k
u
where
y = power
x = rpm
k = torque, which is constant
k
u = constant that depends on the units chosen
• in the second half, power is constant because torque is progressively reduced accordingly due to field weakening, so that the equation gets
the form of
y • x = constant
since
y • x = k • k
u
where
y = torque this time
x = rpm
k is the constant power
ku = constant that depends on the units chosen
that's why power becomes a straight line with 0 slope, it's constant. The torque curve is a section of an hyperbola instead, since y • x = constant.
Well, the point/band in which power starts becoming constant is when the field weakening is starting to engage.