Driver Mode and Pipeline Index

After creating a PhotonCamera, one can toggle Driver Mode and change the Pipeline Index of the vision program from robot code.

Toggle Driver Mode

You can use the setDriverMode()/SetDriverMode() (Java and C++ respectively) to toggle driver mode from your robot program. Driver mode is an unfiltered / normal view of the camera to be used while driving the robot.

// Set driver mode to on.
// Set driver mode to on.

Setting the Pipeline Index

You can use the setPipelineIndex()/SetPipelineIndex() (Java and C++ respectively) to dynamically change the vision pipeline from your robot program.

// Change pipeline to 2
// Change pipeline to 2