Changes between Version 1 and Version 2 of ControlSystems/SoftwareTeam/Training/VirtualTraining/HelloRoboCode


Ignore:
Timestamp:
Aug 16, 2020, 11:27:24 PM (5 years ago)
Author:
David Albert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ControlSystems/SoftwareTeam/Training/VirtualTraining/HelloRoboCode

    v1 v2  
    22
    33The real fun of !RoboCode is that it lets you build your own robot and program it in Java.  Let's build a simple robot and battle it against one of the trainer bots:
     4[[Image(RobotEditor.jpg, align=right, 250px)]]
    45
    561. Launch !RoboCode and choose '''Robot->Source editor'''
     
    11121. Give your robot a name like '''RoboJojo''' - note that the name must start with an upper-case letter.
    12131. Create a package name for your robot.  Packages are like teams of robots; you can create many robots and add all of them to your package.  Give it a unique name that's easy to identify so when you are doing battles with teammates and in competitions, it's easy to identify your robots.  For example: '''daa2537''' (your initials and team)
     14[[br]][[br]][[br]]
    1315
    1416The editor starts with a pre-created super-simple robot that you can modify and extend.  Let's use it as-is to see what it does.
    15 
     17[[Image(RobotCompile.jpg, align=right, 250px)]]
    16181. Save the robot: '''File->Save''' accept the default filename (e.g. RoboJojo.java)
    17191. Compile the robot '''Compiler->Compile''' and press OK when the compilation finishes.