Go to Post Beware of the following: boredom intelligence = ??? <- could be anything... - JBotAlan [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 25-02-2016, 19:10
schleprock's Avatar
schleprock schleprock is offline
Code Jockey
FRC #4905 (AndromedaOne)
Team Role: Mentor
 
Join Date: Feb 2015
Rookie Year: 2014
Location: massachusetts
Posts: 21
schleprock is an unknown quantity at this point
Exclamation robotbuilder overwrites parameters on commands that have parameters

i really like the new addition to commands in robotbuilder that supports parameters. the only problem is that when the kids regenerate the Java code, robotbuilder deletes the arguments in the constructor calls in OI.java that puts command buttons on the dashboard. for example we have a command:
TurnRobotWithGyro that takes a parameter: headingDegrees

in OI.java the robotbuilder generates the following for the dashboard button:

SmartDashboard.putData("TurnRobotWithGyro", new TurnRobotWithGyro());

we then add an argument:

SmartDashboard.putData("TurnRobotWithGyro", new TurnRobotWithGyro(90));

if we regenerate the code using robotbuilder, robotbuilder deletes the '90' in the constructor call. for commands that take parameters, i would very much like robotbuilder to ignore whatever is in the argument list when it regenerates the code.

Last edited by schleprock : 25-02-2016 at 19:11. Reason: better grammar
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 17:48.

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