Beta8397 / virtual_robot

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

pull_request_68 branch #69

Closed jkenney2 closed 3 years ago

jkenney2 commented 3 years ago

@c4glenn See pull_request_68 branch. I added a remove method to the DeviceMapping class (which is nested in HardwareMap), added a qq_bot.fxml file (for which QQBot.java is the controller class). See comments in the createHardwareMap method of QQBot.java. I wasn't sure whether the internals of JavaFx would tolerate extending the TurretBot class, but it seems to work. Does it function the way you expected?

Edit: Have also rearranged some setup code, moving it out of constructors and into 'initialize' methods. This allowed creation of a constuctor for MechanumBase that takes a parameter for drive motor type. A subclass of MechanumBase could now use this constructor to use motors other than the default Neverest40.