Skip to main content Link Menu Expand (external link) Document Search Copy Copied

bool active()

Returns true when an object is within the field of view.

Example

LineCounter l = LineCounter(Brain.ThreeWirePort.A);

while(true){
    if(l.active()){
        Brain.Screen.print("Object passing by");
    }
    task::sleep(10);
}