Go to Post its like the championship being ice cream, its pretty awesome IRI is like adding toppings, making it even more awesome - Aren_Hill [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with Kevin's 2007 default code bruss6 Programming 8 19-01-2007 15:42
problems using gyro/adc code with camera default code tanstaafl Programming 7 22-01-2006 23:09
Default code problem capenga Programming 8 01-02-2005 08:09
problem with the default code MarkVH Programming 7 28-01-2005 00:04
Problem with FRC Default code AsimC Programming 2 11-01-2004 19:22


All times are GMT -5. The time now is 03:59.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi