View Single Post
  #1   Spotlight this post!  
Unread 29-02-2012, 19:10
Michael_Lee Michael_Lee is offline
Registered User
FRC #2976
 
Join Date: Jan 2012
Location: Issaquah, WA
Posts: 21
Michael_Lee is an unknown quantity at this point
How to tell if hardware component is detached?

How can a program tell if a component on the robot is working/attached or not?

For example, if I wrote...

Code:
void MyFunction()
{
    Jaguar *j = new Jaguar(3);
    j->Set(1.0);
}
... how can I tell if the Jaguar is actually responsive and connected to the cRIO? What about for a camera? For joysticks?
Reply With Quote