View Single Post
  #2   Spotlight this post!  
Unread 01-02-2011, 16:07
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

After some further testing, it seems that the tracker gives some better feedback when we initialize a motor and set it to full force
Code:
DigitalInput tracker = new DigitalInput(1);
Victor motor = new Victor(1);
teleopPeriodic(){
motor.set(1);
DriverStationLCD.getInstance().println(Main6, 1, ""+tracker.get());
DriverStationLCD.getInstance().updateLCD();
}
However, it continously flashes true and false when it is detecting something
I've tried toying with the sensitivity, but to no avail
__________________
Reply With Quote