does easy c automatically vary the speed for the amount that you move the controller.
please answer this if you can.
Loki1989, I dont entirely understand the question; could you elaborate a little bit?
Are you wondering about joystick input to the speed controllers?
I cant quite tell from the question. I’ll be happy to help you out if you explain a bit more!
because of our C++ we have a different speed for our robot depending on our controller values
im wondering if easyC will do this.
If I understand the question correctly, you are asking if easyC automatically relays the joystick values to the speed controllers to the motors; i.e. does easyC automaticall map joystick output to pwms. The answer to that is no; it is, however, very simple. You create an infinite while loop in the operator control section [while(true)], and then within that loop you put the code that maps your style of drive to the motors. easyC has “drag and drop” functions that allow you to drag, for instance “4 wheel tank drive” into the code window, and then use a GUI to assign axes and pwm outputs- very user friendly, very easy.
I’ll be happy to help you out with any other questions you’ve got, and I hope I understood the current question correctly; just a tip, but the more detail you provide, and the more precise the language you use, the easier and more accurately one can answer your question!
-Dillon Compton
team 1394
ok that tells me what i wanted but now i dont understand putting in a while loop because what exactically does a while loop do
Those blocks on the palette like “Tank 2 motor”, etc. only read the joystick values and send the output to the PWMs once. Generally in your operator control program you have to do that repeatedly until the match is over. That’s why you have to enclose those blocks inside of a while loop.