How to turn limelight light on and off again in code?
1 Like
Create an additional pipeline which is set up for driver viewing (higher exposure) and lights off. Then just switch between your tracking pipeline and the driver pipeline depending on what your robot is doing at the time.
You change between the pipelines by setting the ‘pipeline’ value in network tables.
in ‘C++’ (change the table name to match your limelight setup)
pLimelightTable = nt::NetworkTableInstance::GetDefault().GetTable("limelight-rhs");
...
pLimelightTable->PutNumber("ledMode", 3); // on
pLimelightTable->PutNumber("ledMode", 1); // off
but look at the docs referenced above and understand why this works
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.