Determining if you are in Hybrid mode.

I was just curious as to how you are suppose to know if you are the team in hybrid or not in the code. We could just use one of the driver station switches but I would expect there to be something to tell me already though, for all I know, it may be just up to us to determine that.

What are you guys doing? Simple question with a simple answer.

There is a built in VI called Get Competition Mode.vi, and one of its outputs is an enum with the different competition modes. If you look in the default code structure, inside the while loop is that VI (its icon says Robot Mode).

When you launch the DS, it launches the Kinect Server. It is typically still running even if you do not have a Kinect plugged into the computer, and sends that error info to the DS and to the rest of the system.

If a Kinect is plugged in and the Kinect driver is doing what they are supposed to, the joystick axes should be changing, and the auto could transition to hybrid. If you don’t want to wait that long, you could have an I/O setting to control it.

I haven’t tested it, but the Kinect Header VI returns a version string. If the Kinect is not connected, I believe that you can tell by looking at the version string. It will contain the error description.

Greg McKaskle