Hi,
I am using the Motor SDK for my motor control application. I have a query related to how user-controlled parameters should be generated. I will try to explain my query below:
I have built a GUI web app that will communicate with the controller through CAN bus. There is plenty of parameters in the user.h file which will have to be shared with the GUI as well. The GUI should be able to update them. There are some parameters that can be updated via CAN when the controller is live. But there are some parameters that are specific to the hardware which the user will not be able to update but they still have to be shared by the GUI and the controller. One example is the max current rating of that hardware.
The controller will use this max current rating to limit the current. The GUI will use this max current rating to not allow the user to set a value greater than that current. I can hard code this value both in the controller and the GUI software but what I would like to have is one document that contains this information which can be read by both the GUI software and the controller. The information stored in this document should be used when the program is flashed to the controller.
Is there any standard way to do it?
I have seen people using XML documents but I have no idea how exactly it works and how to use it with the F280049 controller. Can someone explain it?
I hope I have made my question clear. If you have any doubts, do ask and all ideas and suggestions are welcome.
Thank You.