Log in

View Full Version : Programming


Gusman1188
15-02-2003, 20:05
How do I change the PWM Lables so that
PY_1=PWM1
PY_2=PWM2
PY_1=PWM3
PY_2=PWM4

Its currently setup too
PY_1=PWM1 and PWM13
PY_2=PWM2 and PWM 14

Jankenpoe
16-02-2003, 13:12
I think it's related to the SEROUT command - the placement of the PWM variables in the output; watch how you are using the Drive_R and Drive_L variables.

ChrisA
16-02-2003, 23:32
Originally posted by Gusman1188
How do I change the PWM Lables so that
PY_1=PWM1
PY_2=PWM2
PY_1=PWM3
PY_2=PWM4

Its currently setup too
PY_1=PWM1 and PWM13
PY_2=PWM2 and PWM 14
I'm not exactly sure what you are asking here.... maybe you could elaborate.

Gusman1188
17-02-2003, 10:22
OK, heres what I mean, We have 4 motors and and they are on PWM's 1, 2, 3, and 4.(1 and 3 are Left Drive and 2 and 4 are right Drive. The Program that I have (another one of our programmers made but I cant contact) drives 1 and 13 as the left drive and 2 and 14 as the right drive. how do I change it to the right way?

Any help would be great.

-Chris

boostaddict
17-02-2003, 11:20
you need to change the serout... ie
Serout USERCPU, OUTBAUD, [255,255,leftdrive,relayA,rightdrive,relayB,leftdri ve,rightdrive... hope this helps...

Joe Ross
17-02-2003, 11:23
The easiest way is to move the PWM cable to 13 and 14.

This is what I would recommend with 28 hours left and no programmer in sight.