View Single Post
  #5   Spotlight this post!  
Unread 22-01-2006, 20:47
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: What is the first step for programming?

One way to start is to think about what your robot does and figure out what the various outputs (motors, servos, pneumatics, etc.) and inputs you have. From there, build a list of things which you want to do code-wise, and put it in order of priority. For instance, our team this year might have a list which looks something like:
  1. Drive
  2. Automatically track goal using turret
  3. Auto-range finding
  4. Autonomous

After you have a list which includes the major things you plan on doing, break the highest priority one down into smaller, easier to manage parts and implement those in order. Going off of my example, here's what you might have for "Drive:"
  1. Simple 1-to-1 joystick-to-drive train mapping
  2. Encoder tracking
  3. PID controller

Once you get basic driving working, you can begin to move on to something which may be less critical, but still important. If you have multiple people, you can multitask, by having one person work on one subsystem, someone else on another, etc.

Basically, the easiest way to approach writing code for your robot (or any computer), is to break it down into easily manageable pieces which you stick together to make your more complex system.
__________________