The tank also needs to be able to aim at the beacon. The entire turret assembly is mounted on a turntable, which allows it to rotate to the right and left. The turntable is powered by an EV3 medium motor, which is plugged into port D:
This motor is located in the back of the robot to the right side. It sends its power through a 90-degree gear connection, which is very similar to the one used with the cannons. However, there is another set of gears in this mechanism: a 24-tooth gear drives the gear on the turntable mechanism. The overall gear ratio between the motor and the turntable is 4.17:1, meaning the motor must make 4.17 rotations ...