Log in

View Full Version : New Code - No Movement


Guarana
13-02-2008, 20:13
So I was using the Default Code from IFI and it worked perfect. I needed a gyro programmed, so I was adding kevin's gyro and adc files. After having some trouble, I found his code that was completely implemented already. I downloaded that, transfered the mecanum programming to the ifi_code.c file in Default_Routine(). The problem is, the wheels will not spin at all. The victors do not get any value sent to them. I commented out all the mecanum code and just assigned the pwm's to the value '1' and still nothing spins. I tried my old code and it will spin, kevin's code just will not work.

I am using MPLAB IDE 8.0 and C18 3.1 if that makes a difference. Help.

Thanks

psy_wombats
13-02-2008, 20:17
Try adding your code to void teleop (void) in teleop.c. That should fix the problem. If not, post the code.