Go to Post Incidentally, the best Delphi is ChiefDelphi! :) - Max Lobovsky [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 20-01-2015, 18:09
ShaneWong ShaneWong is offline
Registered User
no team
 
Join Date: Aug 2014
Location: Thunder Bay
Posts: 12
ShaneWong is an unknown quantity at this point
Getting Started Writing Robot Code

Hi, I'm a new programmer for team 4732 and I've gotten to the point where our robot can have programs loaded onto it however I'm having trouble getting started writing them. If anyone can point me in the right direction (links, sample code, etc) it would be greatly appreciated.
Reply With Quote
  #2   Spotlight this post!  
Unread 20-01-2015, 18:11
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Getting Started Writing Robot Code

Quote:
Originally Posted by ShaneWong View Post
Hi, I'm a new programmer for team 4732 and I've gotten to the point where our robot can have programs loaded onto it however I'm having trouble getting started writing them. If anyone can point me in the right direction (links, sample code, etc) it would be greatly appreciated.
Read this while you are waiting for responses:

https://wpilib.screenstepslive.com/s/4485/m/13809



Reply With Quote
  #3   Spotlight this post!  
Unread 21-01-2015, 10:23
Oromus's Avatar
Oromus Oromus is offline
Lead Programmer, Community Liaison
AKA: Ryan
FRC #1902 (Exploding Bacon)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Florida
Posts: 83
Oromus is a splendid one to beholdOromus is a splendid one to beholdOromus is a splendid one to beholdOromus is a splendid one to beholdOromus is a splendid one to beholdOromus is a splendid one to behold
Re: Getting Started Writing Robot Code

To get started with programming the robot, I suggest the following:
  • Read everything in the link Ether posted if you haven't already.
  • Look at the sample robot code provided by FIRST. You can see it by making a new robot project, selecting the type of robot (i.e. Command-based or Iterative), and choosing the example code option.
  • Check other team's source code out. I don't have any links readily available, but some teams put their past year's source code in public repositories. Reading a completed robot's source can greatly help you learn how to write robot code yourself, but keep in mind; it's there to teach you how to write your own code, not to copy-paste from.

If you have any questions, feel free to post them here and we'll try to help!

Last edited by Oromus : 21-01-2015 at 10:27. Reason: Improvements.
Reply With Quote
  #4   Spotlight this post!  
Unread 21-01-2015, 11:16
ShaneWong ShaneWong is offline
Registered User
no team
 
Join Date: Aug 2014
Location: Thunder Bay
Posts: 12
ShaneWong is an unknown quantity at this point
Re: Getting Started Writing Robot Code

Thanks. I'll check it out.
Reply With Quote
  #5   Spotlight this post!  
Unread 22-01-2015, 14:41
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Getting Started Writing Robot Code

Also, consider looking at the videos here:

http://wp.wpi.edu/wpilib/robotics-videos/

And look down the page for the WPILib with RobotBuilder videos. You don't have to use RobotBuilder, but it makes it easier.

It turns out that the videos, which were made last year, have some useful tips for this years game - using an elevator to pick up and manipulate objects.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #6   Spotlight this post!  
Unread 23-01-2015, 03:16
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: Getting Started Writing Robot Code

Your in luck! I have a few examples of code on this years code!

Note: I have all the combinations of drive trains available because my team is indecisive and It is easier to do this instead of writing it every time it changes. Allows me to be lazier and do the things I want such as vision and sensors!
To Be Named Robot

last years robot ported over to this years code!
Lady Guenavere
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 18:03.

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