Hello,
I try to make a C code that makes Torque Vectoring (sending different torque at each motor) for 2 electric motors,but I have two problems.
Firstly I cannot find where I used attach the code. I have read in the help files that there is a user.c but i cannot find it in any menu inside the program. Where can I find it or is there any other way to attach this code? Secondly, in which help file can I find the form in which the code must be written?
Thanks a lot for your help.
Hello,
you can normally find the user.c (and other relevant files) in the src folder of your project. If your project does not have a src folder (yet), you can simply update the project directory:
Main GUI > File > Project Folder > Update Project…
In the new window you select the additional componants that you need and click “OK” afterwards. “Sources/Build Environment” would be necessary for C-Code programming. And “Sources: Extra Models” could be helpful for you, as it contains examples which might help you. Which brings me to your second question: Please have a look at the examples and our manuals (Main GUI > Help), especially the Programmer´s Guide.
Hi,
First of all thank you very much for your help!
I tried what you said and, when the update of the project finishes it deletes everything(car parameters driver etc), is this what it 's supposed to do? Also I had everything already selected (Sources/Build Enviroment etc)
Hello,
no, it is not supposed to delete everything. Normally it should only add the missing folders/files. But why did you do the update, if you already had the src folder?