View Single Post
  #1   Spotlight this post!  
Unread 10-07-2008, 19:57
king vash king vash is offline
Registered User
FRC #2635 (Hazmat)
Team Role: Programmer
 
Join Date: Jul 2008
Rookie Year: 2007
Location: Oregon
Posts: 4
king vash is an unknown quantity at this point
Detecting Hybrid \ Teleoperated

I can think of a couple obvious ways to tell if your in the hybrid loop but is their a byte or an api you can call to tell? checking if all joystick are 127 works but isn't what I want to do. I also realize that, the hybrid code execution execution is an indicator.

My problem is that I want to use the same code in the hybrid and teleoperated loop and it would be nice to know which one I'm in with out having to rely on joysticks being uncalibrated \ wiggled.