View Single Post
  #1   Spotlight this post!  
Unread 29-01-2011, 13:35
shoffing's Avatar
shoffing shoffing is offline
WINriver C++
AKA: Steve Hoffing
FRC #1647
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Shamong, New Jersey, America
Posts: 10
shoffing is an unknown quantity at this point
Trackers Returning True All the Time

We have our line trackers correctly calibrated, and the lights change. In our code, we print the value of the trackers to the driver station's user message box. Every time it prints out three 1's, even though the tracker lights are changing. We have all 3 trackers declared correctly, as well as their solenoid counterparts which need to be set to True at the beginning. Can someone provide us with code that will get the values from the trackers and print them to the user message area? Our trackers are called trackerL, trackerM, and trackerR. They are declared as Digital Inputs, and we use pointers to declare them. Thanks!
Reply With Quote