View Single Post
  #2   Spotlight this post!  
Unread 30-01-2008, 19:29
Speaker47 Speaker47 is offline
Registered User
FRC #2198
 
Join Date: Jan 2008
Location: Canada
Posts: 6
Speaker47 is an unknown quantity at this point
Thumbs down Re: IR_Sensor Programming

Hi,

We got the code to work, the only problem was that after each case segment the pwms needed to be generated, which is why it wasn't working. The code only works in PORTJ for us, and all the digital inputs need to be read at one time, for the IR to work. We are working on a few modifications, to the code...Finally, the code can be put anywhere....

However, we are running into further issues, if anyone one could help us find a way in MPLAB to time how long motors need to be on (Milliseconds)... So, basically, the equivalent of the "wait" function in EasyC. We need to know this for our autonomous code, that we want to run in our bot.

Thank You For All Your Help