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


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

--

Legend:

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

    v2 v3  
    1010
    11111. Choose '''File->New->Junior Robot'''
    12 1. Give your robot a name like '''RoboJojo''' - note that the name must start with an upper-case letter.
     121. Give your robot a name like '''!RoboJojo''' - note that the name must start with an upper-case letter.
    13131. 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)
    1414[[br]][[br]][[br]]
     
    1616The 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.
    1717[[Image(RobotCompile.jpg, align=right, 250px)]]
    18 1. Save the robot: '''File->Save''' accept the default filename (e.g. RoboJojo.java)
     181. Save the robot: '''File->Save''' accept the default filename (e.g. !RoboJojo.java)
    19191. Compile the robot '''Compiler->Compile''' and press OK when the compilation finishes.
    2020   Compiling a program converts the text of your robot program into a program the computer can understand and battle in the arena.
     
    2222
    2323Finally, create a new battle and test your robot against one of the supplied trainers.  When you choose robots, you'll see a new package under Available Robots (e.g. daa2537) and the robot you created (e.g. RoboMojo) in the list of robots.  Add it to the battle and then choose add of the trainer robots from the sample package.  Finally, start your battle!
     24[[br]][[br]][[br]]