|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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 |
|
#2
|
||||
|
||||
|
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. |
|
#3
|
||||
|
||||
|
Re: Programming Voltages in Easy-C
cool, ill try that
thank you |
|
#4
|
||||
|
||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Easy C programming | Mentor08 | Programming | 7 | 27-02-2008 22:09 |
| Programming Camera in Easy C | Chief Samwize | Programming | 3 | 19-05-2007 20:37 |
| Easy C Relay Programming | Team_486 | Programming | 1 | 26-03-2007 15:01 |
| Easy C programming Problem | fredliu168 | FIRST Tech Challenge | 6 | 19-11-2006 22:44 |
| Easy-C Programming CD | Jeff K. | Programming | 2 | 09-01-2006 02:20 |