2014-10-24 06:01 AM
Hi Gigi,
I currently browsing the library source code to see how I can integrate this start-up behavior: 1) start FOC algorithm using rough angle given by hall sensors 2) wait for I channel of quadrature encoder to trigger an interrupt 3) set (overwrite) mechanical angle to known value 4) use encoder feedback instead of hall from now on Would that be a possible feature for a future version of the library? My application is a servo system that must be able to deliver torque even at standstill and immediately after boot-up. Regards Frank2014-10-27 01:53 AM
Ciao Frank
I think that this is very usefull and I know that other guy had managed the FW to perform the same strategy. As you probably seen, this can be implemented with the MC API and few modifications of the user project, so I think that it will be feasible to add this as FW examples together with the other examples in the package. Thank you for the feedback Ciao Gigi2014-10-27 02:07 AM
thanks, good to know. There is one thing that I find hard to figure out: the library supports a main and an auxiliary position feedback device. How can I control which one of them is used? I would need to exchange main and aux somehow, I cannot find how this could be accomplished using standard library calls. (Of course I could adapt the library itself, but only if there is no other way.)
Kind Regards Frank2014-10-27 02:23 AM
Ciao Frank
Take a look at the FW examples present in the Project\STM32_SDK_Examples of SDK v4.0, and in particular to the PI Regulation and Sensor Type. Take care that the WB v4.0 has an issue in the generation of .h file when Auxiliry sensor is enabled. Basicaly the wrong auxiliry sensor is generated in the .h file so you need to modify it manually (or change it in the template files). Ciao Gigi2014-10-27 03:13 AM
thanks Gigi, that led me to the right track!
Kind Regards Frank