Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Getting Started Writing Robot Code (http://www.chiefdelphi.com/forums/showthread.php?t=133235)

ShaneWong 20-01-2015 18:09

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.

Ether 20-01-2015 18:11

Re: Getting Started Writing Robot Code
 
Quote:

Originally Posted by ShaneWong (Post 1431185)
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




Oromus 21-01-2015 10:23

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! :)

ShaneWong 21-01-2015 11:16

Re: Getting Started Writing Robot Code
 
Thanks. I'll check it out.

BradAMiller 22-01-2015 14:41

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.

Fauge7 23-01-2015 03:16

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


All times are GMT -5. The time now is 22:25.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi