Ok, so this is NO WHERE near ready but, more to the point, I don't plan on making it ready because it works for my needs. If you want a "polished one" that uses the simple motor model, use .15. Otherwise, use .16.
So, what does this one do different? It uses inductance modeling, adds in motor pole and inductance boxes, I've added a motor current limit, and switching from a hub motor to custom doesn't delete the values. Also, the erroneous inefficiency code has been deleted. The inductance modeling code was shamelessly STOLEN
I make no guarantees over accuracy. The only thing I can say is that the graphs are pretty close to the CA graphs, but not really exact. Like, there's will say 17 NM at 30 mph while mine will say 15 NM at that speed. So it's not exact, but close. It'll give me a more realistic idea of 9C performance which is all I'm really looking for.
There's a lot of errors with this one. Just about the only thing that works is the graphs, and that's only above 5-10 mph. So, if you need to predict your speed, you better start learning how to interpret graphs.
Edit: Actually, after playing around with this, it still seems better to just eyeball ebikes.ca's graphs. I guess I'll go back to the tired methods. I guess the point of this release is that it includes the source code (It's always available on the SVN repository, but it's actually distributed with the main program) so maybe someone could help make it better.