View Single Post
  #3   Spotlight this post!  
Unread 14-01-2016, 19:05
SamCarlberg's Avatar
SamCarlberg SamCarlberg is offline
GRIP, WPILib. 2084 alum
FRC #2084
Team Role: Mentor
 
Join Date: Nov 2015
Rookie Year: 2009
Location: MA
Posts: 133
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: Is RobotBuilder Broken [JAVA issues]

Quote:
Originally Posted by cpapplefamily View Post
While readying myself with the new features of Robotbuilder to teach the programming students I have ran into some new issues.

1. I added a Constant to my Subsystem. I forgot to give it a value [errors in eclipse Mars]. When I corrected the error in Robot builder and regenerated code the values did not appear. I tried to add a new Constant and regenerate Java code it did not appear. I created a new command and it DID appear so I know the Preferences>General>Workspace>Refresh using native hooks or polling is correct.

A. Seems Robot builder is not rebuilding the Constants code on code Regenerate.
B. Robot builder should test these fields to assure they are populated before Code generation. Like it dose for IO port conflicts.

2. I was testing a hobby servo. I named my subsystem "Servo" = !BAD and the actuator "Servo" too. It understandably error because Eclipse did didn't know what Servo class to use edu.wpi.first.wpilibj.Servo or my Prodject Servo class.

C. Robot builder should test user names (Commands, Subsystems, IO devices) to assure they don't match edu.wpi.first.wpilibj classes and other common Java classes.
1. This will be fixed in the next update

2. The assumption here is that programmers should know that certain names will already be used by parts of WPILib or the Java standard libraries. This may get added in the future, but it's fairly low priority.

Quote:
Originally Posted by cpapplefamily View Post
Add button to smart dashboard not working as well. I have to manually add the code
Do you have parameter presets? If a command takes parameters, a button will be generated for each preset. If it doesn't, that's a bug
__________________
WPILib
GRIP, RobotBuilder

Last edited by SamCarlberg : 14-01-2016 at 19:16.