|
Re: VEX motors question
Here's the proof I believe the Vex Motors use PWM for speed/direction control as well.
Quote:
|
Originally Posted by IFI
Yes you can reverse the direction of a motor in your User code. This is how the default code makes one motor spin CW and another motor spin CCW for the same joystick movement. See the line in our default code that has the comment “ // reverse direction of left side (CCW) ”.
You can not send the same value “255” to 2 different motors and have them spin in different directions. The value of 255 is converted into a PWM pulse of a certain width. This pulse width is sent from the Vex Micro Controller to the Vex Motor, where it is decoded by the Vex Motor into a direction and speed. Therefore; the pulse created from a value of “255” will always be decoded into the same direction and speed by ever Vex Motor.
|
I found this at http://www.vexlabs.com/forum/viewtopic.php?t=18
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!
I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
|