View Single Post
  #3   Spotlight this post!  
Unread 01-02-2011, 23:20
kinganu123 kinganu123 is offline
Registered User
FRC #1747
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Piscataway, NJ
Posts: 243
kinganu123 is on a distinguished road
Re: Photoswitches flashes true but then stays false

Ok, so I finally got a weird solution to the problem
Turns out that for every digital input we initialized (the trackers), we had to create a victor in the corresponding port. Meaning
Code:
DigitalInput tracker = new DigitalInput(1);
Victor motor= new Victor(1);
For some reason, initializing this victor makes the photoswitches works correctly
__________________
Reply With Quote