I am attempting to create a very simple program. In this program the robot will move forward until the touch sensor is hit.
This code should make the robot move forward until the touch sensor is triggered.
Whenever I try and do anything with the touch sensor it does not work. When I output the value to the debug log it shows 180 when pressed and 1024 when released. I have verified that it is working normally by viewing the value on the brick itself.
Robot C Version: 4.0
Edit:
Put ending "}" for task main