LineCounter(triport::port& port, bool throughPolycarb = false)
Constructs a line tracker from the given port, then constructs a LineCounter with the given line tracker sensor. If the line tracker is on the other side of polycarb, then set throughPolycarb to true. This is because the line tracker is less sensitive to reflectivity when it is on the other side of polycarb.
Parameters
port- The port to usethroughPolycarb- Whether the line tracker is on the other side of polycarb
Example
LineCounter l = LineCounter(Brain.ThreeWirePort.A);