Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Programming Voltages in Easy-C (http://www.chiefdelphi.com/forums/showthread.php?t=67599)

DPTeam270Driver 11-05-2008 16:24

Programming Voltages in Easy-C
 
hello fellow team
we were having trouble w/ speeds and stuff w/ our robot
i found out that you can set voltages to motors to make the motor go faster
is this possible?
and if it is, how can i do this in Easy-C?
im not much of a programmer and i am learning w/ Easy-C
if anyone can help i would greatly appreciate it
thanks
-team 270

slavik262 11-05-2008 18:16

Re: Programming Voltages in Easy-C
 
I haven't used EasyC, but I know that it is very similar to WPILib, which I have used extensively.

Anybody, correct me if I'm wrong, but you use the SetPWM() function. You pass two values. The first value is the PWM port on the robot you want to output to, and the second value is the speed from 0 to 255. 0 is full reverse, 127 is neutral, and 255 is full forward.

DPTeam270Driver 11-05-2008 19:52

Re: Programming Voltages in Easy-C
 
cool, ill try that
thank you

Nathan 15-05-2008 17:23

Re: Programming Voltages in Easy-C
 
This should be in the EasyC forum :)

You might find it easier to use the pre-written drive functions under the RC Control tab.


All times are GMT -5. The time now is 00:04.

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