code starting after sensor goas off 5 times? (C++)

I am trying to code a motor to start for a brief amount of time after a vision sensor goas off 5 times. I am having trouble finding the command to do so, this is the last major part of my groups code for our project.
the sensor is supposed to detect a cookie 5 times, which would make the motor turn, moving a trey to form another row, this should happen 4-5 times (thought I can just loop it at that point)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.