Part Number: TMS320F28069F
Other Parts Discussed in Thread: MOTORWARE
Hello!
I'm using instaspin to control several motors with sensors and without sensors (both Hall and Encoder).
We have a custom hardware and we also have designed an interface to control via bluetooth and/or CAN the motors. The designed hardware can be used with both sensor and sensorless motors but the sw needs to be changed depending of the kind of control is used. We would like to have the possibility of change the control from sensorless to hall or Encoder by clicking a button in our user interface.
Is there any way to integrate both programs (FOC Sensorless and FOC Sensored) in a single SW? Now depending on the definition of QEP in the project properties some functions or others are used/included. We want to make the use of these function dependant from a global variable rather than from preprocessor instructions. Is it possible? If so, is there any example?
Thank you in advance
Borja