Go to Post I don't think FIRST is the reason for following rules, being respectful, etc. We should do that anyway. - Dan Zollman [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 15-01-2016, 20:31
mark219 mark219 is offline
Programmer/Driver
AKA: Mark Szewczuk
FRC #0219 (Team Impact)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: United States
Posts: 12
mark219 is an unknown quantity at this point
RobotMap?

Is it proper to use the class RobotMap...? I know that RobotBuilder gives it to you or default java code gives it to you when you create a new java project but I just don't see the point in having it other than organization. Any insight on why it should/shouldn't be used?
Reply With Quote
  #2   Spotlight this post!  
Unread 16-01-2016, 10:37
SamCarlberg's Avatar
SamCarlberg SamCarlberg is offline
GRIP, WPILib. 2084 alum
AKA: Sam Carlberg
no team
Team Role: Mentor
 
Join Date: Nov 2015
Rookie Year: 2009
Location: MA
Posts: 72
SamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to behold
Re: RobotMap?

If you use RobotBuilder, you'll need to use RobotMap. If you don't use RobotBuilder, don't do it. It breaks encapsulation, which generally is a bad thing.
__________________
WPILib
GRIP, RobotBuilder
Reply With Quote
  #3   Spotlight this post!  
Unread 17-01-2016, 22:22
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,562
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: RobotMap?

Quote:
Originally Posted by SamCarlberg View Post
If you use RobotBuilder, you'll need to use RobotMap. If you don't use RobotBuilder, don't do it. It breaks encapsulation, which generally is a bad thing.
I wouldn't do RobotMap the way that RobotBuilder does it (declaring all objects in one file). However, it is very useful having constants for all ports you use defined in one place. Then you can reference those ports when you construct the objects in the subsystems.
Reply With Quote
  #4   Spotlight this post!  
Unread 18-01-2016, 12:07
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 542
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: RobotMap?

As Joe Ross said, its best to do a robot map like this (pardon two year ago me's inability to write beautiful code) mainly for two reasons
  1. Electronic configuration. If you're doing anything with the board than you can easily reference the ports in a clean manner
  2. Code management. Its generally more beautiful to show what each specific number means instead of just throwing in random numbers in places

Of course, it's also heavily opinion based.
__________________
FRC Team 1684 - Head Programmer (2013-2016)
FRC Team 5460 - Programming Mentor (2015-2016)

FIRST in Michigan - Technical Crew (2015-continuing)
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 06:10.

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