Beta8397 / virtual_robot

A 2D robot simulator to help beginners learn Java programming for FTC Robotics
100 stars 171 forks source link

Changes to Facilitate Creation of New Robot Configurations #28

Closed ftcteam8397 closed 4 years ago

ftcteam8397 commented 4 years ago
  1. Added large (600x600) transparent layer as base of robot, so that accessories can now extend beyond the left and front sides of chassis.
  2. In addition to extending VirtualBot, robot configuration classes now serve as the controller classes for the corresponding ".fxml" UI markup files. Using the fx:id attribute in the ".fxml" file and the @FXML annotation in the robot config class allows automatic access to UI components.
  3. Robot config classes are now registered using a @BotConfig annotation, so no changes to the VirtualRobotController class are needed when a new robot configuration is added.
  4. Minor additional change: in hopes of speeding up app startup, the search for @Autonomous and @TeleOp op mode annotations is now limited to the teamcode package (and sub-packages). So, OpMode classes must be placed in the teamcode package or its sub-packages.
  5. Added a new robot configuration: Arm Bot. It is a mechanum bot with an extendable arm, with a grabber at the end.