|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: What VI to use with the line detector?
In case j.cole wasn't clear enough, I'll expand on what he said. The photosensors connect to a DIGITAL I/O pin on the Digital Sidecar. Only one of the black or white wires needs to be connected; one of them provides a signal when the photosensor is detecting an object, and the other provides a signal when it is not. Those pins are read using the DIO In functions (WPI Robotics Library >> IO >> DigitalInput).
The Robot Framework with Game Code project shows you how to use three photosensors to follow a gray line on the carpet. It's all in the Autonomous Independent vi. |
|
#2
|
||||
|
||||
|
Re: What VI to use with the line detector?
IDK if this will help but this is how my mentors explained this to me...
Because the photosensor doesn't have its own coding it doesn't need its own VI. It is just a DIO and thats all that is required, although a DIO get vi is still needed... (I put that in there because i accidently made the mistake of forgetting the Get vi.) |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|