Go to Post The robot can inflate the ringer. How cool is that? - dtengineering [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 23-01-2015, 12:24
4373Henry's Avatar
4373Henry 4373Henry is offline
Registered User
FRC #4373
 
Join Date: Jan 2015
Location: Pennsylvania
Posts: 5
4373Henry is an unknown quantity at this point
Java Command Based Layout - Using a Command Twice

Looking at examples of command based robots online, I noticed that most people tend to instantiate commands within the subsystem that uses them.

Our code has two drive related subsystems, one for the strafe motor and one for the tank drive motors. Both of these subsystems use the same command- Drive.

I have a feeling that a single command shouldn't be instantiated twice. Is the correct solution to use different commands? Or is it not proper convention to make these separate subsystems?
Reply With Quote
 


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 11:43.

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