Go to Post We use the engines of our imagination on the robot all the time. FIRST being an engine of change after all. - Mark McLeod [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 13-02-2015, 12:24
techplex's Avatar
techplex techplex is offline
Blake B
AKA: Blake
FRC #4909 (The Bionics)
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2007
Location: Massachusetts
Posts: 94
techplex is just really nicetechplex is just really nicetechplex is just really nicetechplex is just really nice
What is the purpose of RobotMap.java in CommandBased?

Q: What is the purpose of RobotMap.java in CommandBased?

I understand that the actuators, motor controllers, and sensors are all instantiated within. But I feel like it would be more logical to instantiate them in their respective subsystems?

I have tried instantiating the motor actuators etc, in the subsystem and the code does work as expected.

I guess what I am really wondering is what principle of Object Oriented Design, (or any other reason) does RobotBuilder scaffold the code in this way? Does it make the code more maintainable somehow?
__________________
Blake
Electrical, Programming and Design

Creator FRC Q&A 2017
Mass FRC Team 4909: The Bionics
Maine FRC Team 5122: The RobOTies (2014-2015)
Maine FRC Team 2648: Infinite Loop (2008-2011)
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 22:26.

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