View Single Post
  #1   Spotlight this post!  
Unread 05-02-2009, 22:26
dmoody92 dmoody92 is offline
Registered User
FRC #3015
 
Join Date: Jan 2009
Location: Spencerport, NY
Posts: 37
dmoody92 is a jewel in the roughdmoody92 is a jewel in the roughdmoody92 is a jewel in the roughdmoody92 is a jewel in the rough
Autonomous Issues!

Hello. We'll the build season is winding down and I am flipping out a little bit because I am running out of time with some major things to do. It was pretty tough to go from not even knowing what lab view was a few months to make an entire robot, oh yea..also our entire programming team consists of me and another kid who has no idea what he's doing, lol! Ok, enough self pity, here's whats going on.

Today was the first day I tested out our autonomous program that I made (we are having a very simple autonomous program as we are rookies). When I run it, I get an error code saying that the PWMs are already allocated even though I only have two motors being run during this time so there should be no conflicts. Soon after I realized that in autonomous I could also trigger teleop code! Then I realized that I had PWM 1 and 3 being used in both autonomous and teleop. When I switched the teleop PWMs it worked shortly until reverting back to the same error even though I was communicating to four different PWM slots.

So the issue is the fact I seem to get a degree of crossover between teleop and autonomous which doesn't make sense to me. I can't get my code up right now but I will soon, but I wanted to post this as soon as I could because of time. Any help would be REALLY appreciated!!