
Re: Trying to get Sonar Sensor to work on Autonomous
It looks like you changed the gate2 motor to a servo. Regardless, the problem is still the same that you compared the magnet sensor value to "1" that would never happen.
So the proper code fix should be: