View Single Post
  #1   Spotlight this post!  
Unread 02-02-2007, 18:04
kbregler kbregler is offline
Registered User
FRC #1791
 
Join Date: Feb 2007
Location: Clayton, NJ
Posts: 7
kbregler is an unknown quantity at this point
PWM Problem with Default Code

This is our fist year modifying the code and I am having a problem. If I take the code that is marked as default for 2007, compile, and download, I am having a problem with PWM1. It seems that the X and Y axis are swapped.

When using 2 joysticks, the x axis activated the red and green output LED's on the OI but the motor drive and the PWM levels on the Dashboard program are correct. This wasn't a big deal until I wanted to try 1 joystick mode. Again it seems as if they are swapped, if I push foward or backward the motors go in the opposite direction like its trying to turn, if I push left or right they both go in the same direction.

I thought maybe we had something hooked up wrong so I reloaded the .bin file I pulled off before modifying anything. I am not too familiar with how the PWM's are generated in the library files, but the code in the user section all seems to be correct.

Thanks,

Kevin