|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Converting a iterative robot project to a command based project
While there isn't a magical converter tool, you can use the robot builder to generate the skeleton code for all of your subsystems, motors, and sensors.
|
|
#2
|
||||
|
||||
|
Re: Converting a iterative robot project to a command based project
Quote:
I want to use the code I have now, but will is work if I use subsystems and commands in the same way as if I created a Command Based project. |
|
#3
|
||||
|
||||
|
Re: Converting a iterative robot project to a command based project
A command-based robot has specific `Robot.java` contents - the periodic functions call `Scheduler.getInstance().run();`, and the constructor creates instances of each subsystem. The other thing you'll need to make sure to examine is the `OI` class, to make sure that triggers are set up appropriately.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|