We're a group of electrical engineering students working on a capstone project using the EZ-Kit. The project is traffic light detection system. The goal of the project is to build a robotic car that recognizes a traffic light and responds to the change of its lights colors, which are red, yellow and green. The robotic car should be able to move with a steady speed, and keep moving while it passes the traffic light as it's green. The robotic car should also decelerate if the traffic light is yellow, until it comes to complete stop when the traffic light turns red at a specific distance away from the traffic light
The logic of the robot is going to be:
The robot should start moving with an initial speed X forward toward the traffic light.
The traffic light is detected by the camera as soon as it's on sight and keeps tracking it all the time, whatever the color of the traffic is, while the robot is moving toward it.
If LIGHT=GRN, the robot keeps moving forward with the same speed X.
If LIGHT=YLW, the robot decreases speed to (0.5)X.
As LIGHT=YLW and the speed=(0.5)X, and the robot passes the traffic light before LIGHT=RED and loses vision on the traffic, speed goes back to the initial speed X we set before.
But if LIGHT=RED before the robot passes the traffic light, the robot keeps moving until it's Y distance away from the traffic light then it stops; speed is set to zero (done using distance).
When LIGHT=GRN, the robot moves forward again with the same initial speed X set before.
My question is this: Can we do such a project using ONLY the ARC software and its scripts and functions, WITHOUT using other softwares and languages such as EZ-SDK or C?
Your reply is highly appreciated. We're looking forward to hearing back from you.