I've added two more functions to the language: Rnd() for random numbers, and Int() for rounding off numbers to integers.
Phil74: The GetSensor(angle) function returns the sensor "voltage" at angle. If angle was 90, it would return the voltage of a sensor to the robot's right. 180 would be behind the robot. GetGroundSensor(angle) works in the same way that GetSensor() works. For debugging, I could add a list of sensor voltages if you think that would help.
Phil74: The GetSensor(angle) function returns the sensor "voltage" at angle. If angle was 90, it would return the voltage of a sensor to the robot's right. 180 would be behind the robot. GetGroundSensor(angle) works in the same way that GetSensor() works. For debugging, I could add a list of sensor voltages if you think that would help.