Go to Post You are not limited by your resources, but by your imagination. - John Gutmann [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 01-15-2015, 05:33 PM
Awesomegamer235 Awesomegamer235 is offline
Registered User
None #4607
 
Join Date: Sep 2014
Location: Becker mn
Posts: 15
Awesomegamer235 is an unknown quantity at this point
HELP!

is there any tutorials on the new java??
Reply With Quote
  #2   Spotlight this post!  
Unread 01-15-2015, 05:36 PM
bobjones227's Avatar
bobjones227 bobjones227 is offline
Registered User
AKA: Henry Bray
FRC #2512 (Daredevils)
Team Role: Tactician
 
Join Date: Nov 2014
Rookie Year: 2014
Location: Duluth,MN
Posts: 46
bobjones227 is on a distinguished road
Re: HELP!

I personally don't know anything about programming, but you could check the internet if you haven't yet. Here, let me help.
http://lmgtfy.com/?q=java+tutorials
__________________
"When I say Admiral, you say Ackbar!"
"Admiral!"
"IT'S A TRAP!"


2015 Northern Lights Regional Finalists
2015 Central Illinois Regional Finalists
2015 Einstein FinalistsThanks to our great alliance of teams 987, 2826, and 4265!
2015 MN State Champions Working with the fantastic teams 3130 and 4215!

Last edited by bobjones227 : 01-15-2015 at 05:51 PM.
Reply With Quote
  #3   Spotlight this post!  
Unread 01-15-2015, 06:49 PM
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 544
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
Re: HELP!

What about the new Java?

Are you looking for documentation on the WPI Library APIs that we use in FRC? If so, all of the previous documentation is more or less applicable- those haven't changed much at all.

If you are looking for documentation on new features that we get by switching to Java 8 SE, then I would recommend starting with the Java 8 release notes from Oracle. You will also want to search for the Java 7, Java 6, and Java 5 release notes. You can also find an countless number of tutorials, guides, and tips for Java 5-8 online.
__________________
Team 2052- Knightkrawler
Mentor and volunteer
Reply With Quote
  #4   Spotlight this post!  
Unread 01-15-2015, 07:25 PM
Fauge7 Fauge7 is offline
Head programmer
FRC #3019 (firebird robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Scottsdale
Posts: 195
Fauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to all
Re: HELP!

Try looking at my teams example drive train code here
Reply With Quote
  #5   Spotlight this post!  
Unread 01-16-2015, 01:45 AM
Lloydpro Lloydpro is offline
Registered User
AKA: Jacob Beeman
FRC #3495 (Mindcraft)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Fresno, CA
Posts: 10
Lloydpro is an unknown quantity at this point
Re: HELP!

Quote:
Originally Posted by Fauge7 View Post
Try looking at my teams example drive train code here
I'm very curious why you have like 4 classes just for drivetrain? I just make a quick method and it's over with. Nothing too fancy unless it has to be. In fact I don't know why people make othe classes for stuff when coding for FRC. If you are willing to enlighten me I would be very interested to know why you do that!
Reply With Quote
  #6   Spotlight this post!  
Unread 01-16-2015, 03:01 AM
PAR_WIG1350's Avatar
PAR_WIG1350 PAR_WIG1350 is offline
Registered User
AKA: Alan Wells
FRC #1350 (Rambots)
Team Role: Alumni
 
Join Date: Dec 2009
Rookie Year: 2009
Location: Rhode Island
Posts: 1,187
PAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond repute
Re: HELP!

Quote:
Originally Posted by Lloydpro View Post
I'm very curious why you have like 4 classes just for drivetrain? I just make a quick method and it's over with. Nothing too fancy unless it has to be. In fact I don't know why people make othe classes for stuff when coding for FRC. If you are willing to enlighten me I would be very interested to know why you do that!
I can't comment on this specific case, but by using independent classes, the code can be developed by multiple groups who don't know anything about the code another group is working on. When the final code is written, the only information needed is the names, functions, and arguments of relevant methods for each operations that is to be performed.

In general, breaking up code like this can be helpful since it helps keep issues isolated. If something needs to be rewritten, it is probably going to be limited to one class instead of the entirety of the project.
__________________
Reply With Quote
  #7   Spotlight this post!  
Unread 01-16-2015, 07:39 AM
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,712
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: HELP!

Quote:
Originally Posted by PAR_WIG1350 View Post
I can't comment on this specific case, but by using independent classes, the code can be developed by multiple groups who don't know anything about the code another group is working on. When the final code is written, the only information needed is the names, functions, and arguments of relevant methods for each operations that is to be performed.

In general, breaking up code like this can be helpful since it helps keep issues isolated. If something needs to be rewritten, it is probably going to be limited to one class instead of the entirety of the project.
It also makes the code more readable, which is the key to programming.
Reply With Quote
  #8   Spotlight this post!  
Unread 01-17-2015, 10:10 AM
Fauge7 Fauge7 is offline
Head programmer
FRC #3019 (firebird robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Scottsdale
Posts: 195
Fauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to all
Re: HELP!

Well, I'm my specific case It is just me working on our code. So I programmed for every possible drive train except swereve because my team doesn't know what their doing for a drive train, we have had talks of all of them...I'm going to update my github repositories today and that code has examples for all the drive possible except swerve. Most of them are not fully tested.

Last edited by Fauge7 : 01-17-2015 at 10:13 AM.
Reply With Quote
  #9   Spotlight this post!  
Unread 01-19-2015, 04:48 PM
Awesomegamer235 Awesomegamer235 is offline
Registered User
None #4607
 
Join Date: Sep 2014
Location: Becker mn
Posts: 15
Awesomegamer235 is an unknown quantity at this point
Re: HELP!

Quote:
Originally Posted by Fauge7 View Post
Try looking at my teams example drive train code here
what is the "package org.usfirst.frc.team3019.robot.subsystems;" mean
Reply With Quote
  #10   Spotlight this post!  
Unread 01-19-2015, 06:44 PM
Fauge7 Fauge7 is offline
Head programmer
FRC #3019 (firebird robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Scottsdale
Posts: 195
Fauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to all
Re: HELP!

Quote:
Originally Posted by Awesomegamer235 View Post
what is the "package org.usfirst.frc.team3019.robot.subsystems;" mean
This is the auto generated package for a command based robot. There are 3 different packages auto created. robot.subsystems, robot.commands, and just robot.

explanation of each package:

Robot.Subsystem: This package contains classes to hold motor instances, sensors, pnumatics. In each class there are also methods to move each motor and read the sensors.

Robot.Commands: This package contains the classes that tell the subsystems how to act. For example the class DriveStraight class tells the driveTrain subsystem to drive untill X condition happens.

Robot: This package contains the 3 main classes: Robot, RobotMap, OI
  • Robot: This is the main class of the Robot, instantiates all the public static subsystems and sets the autonomous command.
  • RobotMap:Holds all the constants of the Robot so there is not a bunch of magic numbers in the code, generally using a single class for all constants is bad practice, however use it for now.
  • OI:Holds the joysticks and the joystick buttons and binds the buttons to the commands

Last edited by Fauge7 : 01-19-2015 at 09:54 PM.
Reply With Quote
  #11   Spotlight this post!  
Unread 01-19-2015, 07:09 PM
Nickman4456 Nickman4456 is offline
Registered User
FRC #4456 (Mech Cadets)
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Washington, D.C.
Posts: 3
Nickman4456 is an unknown quantity at this point
Re: HELP!

Since this is an article about getting help, I wanted to ask how to begin a thread on chief delphi. I might just be completely overlooking something, but I don't know how to ask questions on this site. If anybody could give an answer, that would be of great help. Thanks
Reply With Quote
  #12   Spotlight this post!  
Unread 01-19-2015, 09:40 PM
TFleig78's Avatar
TFleig78 TFleig78 is offline
Registered User
AKA: Tyler
FRC #0078 (Air Strike)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Rhode Island
Posts: 58
TFleig78 will become famous soon enoughTFleig78 will become famous soon enough
Re: HELP!

Quote:
Originally Posted by Nickman4456 View Post
Since this is an article about getting help, I wanted to ask how to begin a thread on chief delphi. I might just be completely overlooking something, but I don't know how to ask questions on this site. If anybody could give an answer, that would be of great help. Thanks
On the top left, click on forums, then go to a specific forum, for example, programming. Then above all of the threads, there's a blue button that says "new thread."
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:51 PM.

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