MoonBot
Simulation by Team
Lunar Horizon
![]() |
This is a Java program created using Greenfoot
(www.greenfoot.org).
This simulates a LEGO NXT robot performing
the Moonbots challenge.
The robot movements are controlled by a
text script file named MyFile.txt
The simulation program shows the movements
of the robot and plots its way-points and course.
The same script language is used to control
our actual NXT robot for the Moonbots challenge.
The script file can include the following commands:
forward (parameter is distance in
cm)
turnTo (parameter is compass heading
in degrees)
positionWall (parameters are compass
heading in degrees, and distance from wall in cm)
takePhoto
grabLoop
peakWait
end
Made with Greenfoot
- www.greenfoot.org
For license
information see: www.greenfoot.org/about/license.html