Motor Control Instability

Hm interesting. The sensorless should be able to go faster than that, but to be honest I haven’t tested it myself in quite a while.

FYI We added that in v0.4.2

When you tried this, did the error still include ERROR_BRAKE_RESISTOR_DISARMED?

I think this is your problem, it seems the current controller went unstable. There could be a few different reasons for that, but I probably have to test here to really dig into it. Here are some things you can try:

  1. Your pm_flux_linkage could be wrong. I checked your value from the dump, and it’s computed correctly given 5 pole pairs and 900kv. You could use the drill test (see “measurement” heading of this post) to verify. It would be interesting to see the shape of the back-emf also, so take a picture if you do this test.

  2. Try reducing the current controller bandwidth.

  3. Try increasing or decreasing the sensorless observer gain.