Other Parts Discussed in Thread: MOTORWARE, LAUNCHXL-F28027F
Could anyone provide me with some code examples of controlling a motor with InstaSPIN-FOC? I've seen the code in the labs but I can't believe that 30 different files (not including headers) would be necessary just to spin the motor. I mean, I should be able to just define some motor parameters then call a single function that turns the motor on right?
I've tried looking through the API Documentation in Motorware but I don't find it a good environment for learning what the objects actually do or how to use them. I also don't want to use the GUI as I want to program my own instructions to the motor.
So, I would love it if someone could provide me with simple example code of running a motor. For reference, I'm using a BLDC motor with LAUNCHXL-F28027F with BOOST-DRV8301 Booster Pack and running CCS v5.5.