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.

// Set driver mode to on.
camera.setDriverMode(true);
// Set driver mode to on.
camera.SetDriverMode(true);

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
camera.setPipelineIndex(2);
// Change pipeline to 2
camera.SetPipelineIndex(2);