View Single Post
  #1   Spotlight this post!  
Unread 14-01-2016, 12:39
cpapplefamily cpapplefamily is offline
Registered User
FRC #3244 (Granite City Gearheads)
Team Role: Mentor
 
Join Date: May 2015
Rookie Year: 2015
Location: Minnesota
Posts: 250
cpapplefamily has a spectacular aura aboutcpapplefamily has a spectacular aura about
Is RobotBuilder Broken [JAVA issues]

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.