Go to Post Brains and hard work aren't necessarily about age or grade. - Redhead Jokes [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-2017, 15:32
MuskieProgramme MuskieProgramme is online now
Registered User
FRC #6420
Team Role: Programmer
 
Join Date: Dec 2016
Rookie Year: 2014
Location: Muscatine, IA
Posts: 19
MuskieProgramme is an unknown quantity at this point
Using RobotBuilder

I've been trying to get started with RobotBuilder (exporting to Java), but every time I try there are missing import statements and arguments. It's been very frustrating and I'm wondering if I should just stick to manually writing code myself. I can run through the project and correct the errors, but I'm very concerned about trying to explain this process to any other member of our team (ei those with little to no programming experience). RobotBuilder looks like a great tool, but I'd like it to generate runnable code.
Reply With Quote
  #2   Spotlight this post!  
Unread 15-01-2017, 18:57
ecpullen ecpullen is offline
Team 2648
FRC #2648 (Infinite Loop)
Team Role: Engineer
 
Join Date: Apr 2016
Rookie Year: 2014
Location: Maine
Posts: 1
ecpullen is an unknown quantity at this point
After exporting to eclipse you can go to the classes with errors and click ctrl shift o and it will automatically import.

Sent from my SM-G935R4 using Tapatalk
Reply With Quote
  #3   Spotlight this post!  
Unread 15-01-2017, 22:34
SamCarlberg's Avatar
SamCarlberg SamCarlberg is online now
GRIP, WPILib. 2084 alum
FRC #2084
Team Role: Mentor
 
Join Date: Nov 2015
Rookie Year: 2009
Location: MA
Posts: 136
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: Using RobotBuilder

What classes aren't generating correctly? Subsystems, PID subsystems, ... ?
__________________
WPILib
GRIP, RobotBuilder
Reply With Quote
  #4   Spotlight this post!  
Unread 16-01-2017, 08:50
MuskieProgramme MuskieProgramme is online now
Registered User
FRC #6420
Team Role: Programmer
 
Join Date: Dec 2016
Rookie Year: 2014
Location: Muscatine, IA
Posts: 19
MuskieProgramme is an unknown quantity at this point
Re: Using RobotBuilder

As I said before, I already fixed the imports, it's just irritating.

Robot.java was the only class with an error other than missing imports, it was trying to create a new DriveBase with no arguments (ei not passing any motors). I think this is because I named a subsystem DriveBase. I've since corrected it. I'll be testing the code on the robot later to day and let you know if any other errors are discovered.
Reply With Quote
  #5   Spotlight this post!  
Unread 17-01-2017, 14:07
Mikey Richards's Avatar
Mikey Richards Mikey Richards is offline
Registered User
FRC #3812 (Bits and Bots)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2015
Location: Kelso, WA
Posts: 16
Mikey Richards is an unknown quantity at this point
Re: Using RobotBuilder

My team started with RobotBuilder last year, and it was a struggle at first. RobotBuilder can't edit the imports because the imports can't be in its auto-generated code blocks. You will have to import them yourself. As for writing the code yourself, both options have their advantages. You can keep your stuff more orderly if you write it yourself, but it's going to take longer.

I know from experience. I've been trying to argue to program in pure Java. I still write my own code in Java. The other programmer writes in robot builder. We cooperate, and we use the one that works best.
Reply With Quote
  #6   Spotlight this post!  
Unread 18-01-2017, 13:17
david.e.boles david.e.boles is offline
Bringer of Whales and Petunias
AKA: david476
FRC #5940 (BREAD)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2011
Location: San Francisco, CA
Posts: 30
david.e.boles is on a distinguished road
Re: Using RobotBuilder

If there's something actually buggy you should probably submit an issue here. Also, +1 for just using Java; we spent the first week of the season training people so that we could do that better.

Last edited by david.e.boles : 18-01-2017 at 13:25.
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 13:15.

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