Go to Post If Amanda is 'old', I am beginning to feel like a fossil.... - Chris Fultz [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 03-02-2017, 13:05
YairZiv's Avatar
YairZiv YairZiv is offline
Registered User
FRC #5951 (Makers Assemble)
Team Role: Programmer
 
Join Date: Oct 2016
Rookie Year: 2016
Location: Tel Aviv, Israel
Posts: 41
YairZiv is an unknown quantity at this point
Converting a iterative robot project to a command based project

Is it possible? We have programmed in iterative for this season and we're thinking about changing to command based. Is it possible to convert the same project to a command based without having to create a new one? Because creating a new one means that we'll need to open a new git and convert some other stuff like that.
If not then not problem but we'd rather use this project.
Reply With Quote
  #2   Spotlight this post!  
Unread 03-02-2017, 21:49
thecoopster20 thecoopster20 is offline
4th Year Programmer - Java
FRC #3602 (Robomos)
Team Role: Programmer
 
Join Date: Mar 2016
Rookie Year: 2014
Location: Escanaba, MI
Posts: 27
thecoopster20 is an unknown quantity at this point
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.
Reply With Quote
  #3   Spotlight this post!  
Unread 04-02-2017, 05:10
YairZiv's Avatar
YairZiv YairZiv is offline
Registered User
FRC #5951 (Makers Assemble)
Team Role: Programmer
 
Join Date: Oct 2016
Rookie Year: 2016
Location: Tel Aviv, Israel
Posts: 41
YairZiv is an unknown quantity at this point
Re: Converting a iterative robot project to a command based project

Quote:
Originally Posted by thecoopster20 View Post
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.
Maybe I should have explained it a bit better
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.
Reply With Quote
  #4   Spotlight this post!  
Unread 04-02-2017, 12:39
demosthenes2k8's Avatar
demosthenes2k8 demosthenes2k8 is offline
Graduated but not gone
AKA: Matt Soucy
FRC #0166 (Chop Shop 166)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Merrimack, NH
Posts: 590
demosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to behold
Send a message via AIM to demosthenes2k8 Send a message via Yahoo to demosthenes2k8
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.
__________________


GSR Dean's List Finalist 2011
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 13:18.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi