Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   help on easyC (http://www.chiefdelphi.com/forums/showthread.php?t=45559)

Loki1989 18-03-2006 07:46

help on easyC
 
does easy c automatically vary the speed for the amount that you move the controller.
please answer this if you can.

Dillon Compton 18-03-2006 11:01

Re: help on easyC
 
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!

Loki1989 18-03-2006 21:53

Re: help on easyC
 
because of our C++ we have a different speed for our robot depending on our controller values

im wondering if easyC will do this.

Dillon Compton 18-03-2006 22:57

Re: help on easyC
 
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

Loki1989 19-03-2006 08:34

Re: help on easyC
 
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

BradAMiller 19-03-2006 08:42

Re: help on easyC
 
Quote:

Originally Posted by Loki1989
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.


All times are GMT -5. The time now is 03:18.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi