Go to Post Hurricane season would be torture, at least in snow you can lock the doors and know the robot is safe. - rtfgnow [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rating: Thread Rating: 9 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 11-11-2005, 15:55
Joohoo's Avatar
Joohoo Joohoo is offline
Registered User
FRC #0340 (G.R.R.)
Team Role: Mentor
 
Join Date: Jun 2005
Rookie Year: 2005
Location: Rochester
Posts: 241
Joohoo is just really niceJoohoo is just really niceJoohoo is just really niceJoohoo is just really niceJoohoo is just really nice
Send a message via AIM to Joohoo Send a message via Yahoo to Joohoo
Re: Programming - Getting Started

Right now I am one of two programmers on my team and we both can't figure this out(we're both rookies). We can write the code for the autonomous mode, build it, and transfer it, but how do we tell the FRC to execute the autonomous coding?? We copied everything and tried to mess around with Main.c but is there any less hazardous way to go about it??
  #2   Spotlight this post!  
Unread 09-01-2006, 18:22
brianoconnor2f2 brianoconnor2f2 is offline
Registered User
FRC #1132
 
Join Date: Jan 2006
Location: Fredericksburg, VA
Posts: 2
brianoconnor2f2 is an unknown quantity at this point
Re: Programming - Getting Started

Hey Thanks fellas This is my first year and I'm a programmer and am used to C++, C isnt much different but I still need all the help I can get. Thanks.

-Matt
  #3   Spotlight this post!  
Unread 15-01-2006, 20:26
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,753
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
2006 Programming - Getting Started

2006 Programming Quick Start

1. Beginners need the following to program the FIRST robot:
  • FRC (Full-size Robot Controller) RC Default Code
  • Microchip MPLAB & C compiler or intelitek Easy C
  • IFI_Loader
  • A standard serial cable
  • A Windows PC with a serial port or USB-to-serial converter
2. Where to get everything:
  • The Camera default code for use with the CMUCam2 camera is available at the developer Kevin Watson’s website. While there you’ll also find code examples for using other benefical sensors. This default code may have the normal driving mode disabled.
  • MPLAB is the FIRST supplied Windows based development environment (edit, compile, debug) that runs on your desktop computer and comes in the Kit-of-Parts wrapped inside the MPLAB notepad. Manuals for using MPLAB come on the CD and are also found on-line at the Microchip website.
  • IFI_Loader v1.0.12 (also on the KOP CD) is used to download the compiled code into the RC via a serial cable from your desktop or laptop computer.
  • EasyC from Intellitek can be used instead of MPLAB or as a rapid prototyping tool. The Main Contact of each team received an email from FIRST on 1/10/06 with directions on downloading the software.
3. National Instruments Labview came in the kit-of-parts, but you need the very useful special applications for the camera and OI dashboard that have been provided in this Chiefdelphi thread.

4. Check the IFI website periodically for updates to the software that corrects issues and fixes problems. For instance, new Master Controller “patches” if any, will be made available there. Directions will be included with any download.

5. The programming language used is “C” or PIC assembly. Tutorials in C can be found on the web, in your local bookstore or on the FIRST website, e.g.,
  • C Programming Resource Library has a great overview of the programming process.
  • Learn C Programming - Developed by Carnegie Mellon and the National Robotics Engineering Consortium specifically for FIRST, this interactive website will get your team prepared for the FIRST Robotics Competition.
6. Newer laptops no longer come with the serial port required to download code to the Robot Controller. If you have this problem one solution is to use a USB/Serial converter. Various models are available at Radio Shack, CompUSA, or online, however, some models can be temperamental and they generally take longer to download than a built-in serial port (60sec vs 10 sec). Good results have been reported using: Bafo Technologies BF-810 (~$15) and a Radio Shack USB-to-Serial port cable #26-183 ($42). You can also use the converter that comes with the Radio Shack Vex Programming Kit.

7. Documentation is your friend. Take the time to at least leaf through each manual, so you have an idea of where information can be found. Most of the basic information beginners require can be found in the IFI documents or MPLAB documents available from the websites:
  • The 2005 IFI Control System Overview version applies to 2006 as well.
  • 2005 IFI Programming Reference Guide – basic how to hookup, program and download to the RC, hookup switches and sensors and do normal robot operations.
  • Useful programming and compiler documents come on the Kit provided MPLAB CBOT CD with the tool installations or are available from either Kevin Watson’s website or the legacy section of the Microchip website.
    1. c18_getting_started_2.4.pdf
    2. c18_libraries_2.4.pdf – details on timers, interrupts, and various other utility functions available to the programmer.
    3. c18_users_guide_2.4.pdf - table of max numbers each variable type will store, compiler options, error messages, detailed descriptions of pragmas and some other advanced topics.
    4. 2004/2005 RC Microchip pic18f8520 data sheet - PIC assembly instruction set and details on EEPROM and other chip specific topics. Mistakes in the datasheet.
    5. 2006 RC PIC18F8722datasheet and Errata.
    6. Microchip PICmicro 18C MCU Family Reference Manual – all things great and small (in excruciating detail) about the processors we use.
    7. MPLAB Quick Start Guide.pdf - basic how to use MPLAB and set options.
    8. MPLAB Users Guide.pdf
8. For the CMUCam2 sensor delivered in the Kit-Of-Parts (KOP):
  • Use the special Labview Calibration application mentioned here. to focus and test the camera.
  • Use Kevin Watson’s camera baseline program and his collection of camera documentation, but remember it only solves the headache of working the camera for you it doesn’t drive your robot.
Visit the ChiefDelphi Programming forum for discussions on all programming topics, problems, issues, and ideas.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 16-01-2006 at 08:41.
  #4   Spotlight this post!  
Unread 15-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: Programming - Getting Started

Quote:
Originally Posted by brianoconnor2f2
Hey Thanks fellas This is my first year and I'm a programmer and am used to C++, C isnt much different but I still need all the help I can get. Thanks.

-Matt
There are many very willing people on CD... just remember we aren't mind readers. When you run into a question you can't find an answer to, ask that specifically.
__________________

  #5   Spotlight this post!  
Unread 16-01-2007, 17:23
Bored Bored is offline
Registered User
FRC #1290
 
Join Date: Jan 2007
Location: Chanlder
Posts: 1
Bored is an unknown quantity at this point
Re: Programming - Getting Started

Our main programmer that did most of the work went to a different school so I'm actually going to have to learn to code C this year.
This topic is a real help thanks guys.
  #6   Spotlight this post!  
Unread 25-01-2007, 11:24
htwiz2002's Avatar
htwiz2002 htwiz2002 is offline
Htwizard
AKA: Anthony Takata Bawahawba
#1290
Team Role: Engineer
 
Join Date: Jan 2004
Location: Chandler, AZ
Posts: 23
htwiz2002 will become famous soon enough
Wink Re: Programming - Getting Started

Quote:
Originally Posted by Bored View Post
Our main programmer that did most of the work went to a different school so I'm actually going to have to learn to code C this year.
This topic is a real help thanks guys.
Quote:
Originally Posted by udzap View Post
Cool this is perfect for a beginner programmer as I.
Hopefully it will help now that more than one person is doing it
__________________
TsAuKpAeTrA (Anthony)
  #7   Spotlight this post!  
Unread 16-01-2006, 16:09
Packmon's_girl's Avatar
Packmon's_girl Packmon's_girl is offline
Rei, and guys...stop being so male
AKA: Rebekah Olson
FRC #1918 (Packman)
Team Role: Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Fremont
Posts: 61
Packmon's_girl is an unknown quantity at this point
Send a message via AIM to Packmon's_girl Send a message via MSN to Packmon's_girl Send a message via Yahoo to Packmon's_girl
Re: Programming - Getting Started

I tried to get a look at the dogle, and sorry for spelling mistakes now, but the link would not work.
  #8   Spotlight this post!  
Unread 16-01-2006, 16:28
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,753
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Programming - Getting Started

Here’s an AndyMark dongle you can purchase.

Here’s the wiring schematic so you can make your own.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #9   Spotlight this post!  
Unread 19-01-2006, 16:22
MattK's Avatar
MattK MattK is offline
Tap it.
no team
 
Join Date: Jul 2002
Location: Manchester
Posts: 1,084
MattK is a splendid one to beholdMattK is a splendid one to beholdMattK is a splendid one to beholdMattK is a splendid one to beholdMattK is a splendid one to beholdMattK is a splendid one to beholdMattK is a splendid one to beholdMattK is a splendid one to behold
Send a message via AIM to MattK
Re: Programming - Getting Started

Quote:
Originally Posted by Mark McLeod
Here’s an AndyMark dongle you can purchase.

Here’s the wiring schematic so you can make your own.
Will these work with the '06 controler? Will a dongle bridging 5 and 8 activate autonomous?
__________________
The views expressed in my posts are Mine and mine only.

my myspace!
  #10   Spotlight this post!  
Unread 22-01-2006, 11:32
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,753
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Programming - Getting Started

Quote:
Originally Posted by MattK
Will these work with the '06 controler? Will a dongle bridging 5 and 8 activate autonomous?
Yes, the disable and Autonomous switches work on the '06 RC.
The "Practice" switch in the schematic no longer serves a purpose in post-2004 controllers.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #11   Spotlight this post!  
Unread 21-01-2007, 19:20
jesusescobar's Avatar
jesusescobar jesusescobar is offline
Jesus Escobar- PFTB-Programer
FRC #2066 (Pftb Of Doom)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: El Centro California
Posts: 32
jesusescobar is an unknown quantity at this point
Send a message via MSN to jesusescobar Send a message via Yahoo to jesusescobar
Re: Programming - Getting Started

Im experienced in programming but im new on FRC is that an advantage???
__________________
Beware Of PFTB OF DOOM Robotics Team From EL Centro California Southwest Eagles!!!!!!!!!

http://pftbrobotics.com Our Site
  #12   Spotlight this post!  
Unread 21-01-2007, 19:52
jesusescobar's Avatar
jesusescobar jesusescobar is offline
Jesus Escobar- PFTB-Programer
FRC #2066 (Pftb Of Doom)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: El Centro California
Posts: 32
jesusescobar is an unknown quantity at this point
Send a message via MSN to jesusescobar Send a message via Yahoo to jesusescobar
Question Re: Programming - Getting Started

I need help how can i program the robot controller to have my team number



how do i put my team number on a FRC Robot Controller

that is my question please help
__________________
Beware Of PFTB OF DOOM Robotics Team From EL Centro California Southwest Eagles!!!!!!!!!

http://pftbrobotics.com Our Site
  #13   Spotlight this post!  
Unread 21-01-2007, 21:36
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,753
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Programming - Getting Started

You set your team number using the binary dip switches on the Operator Interface (OI) labeled "Team Number."

--Tether the OI and RC together.
--Power up the RC (the OI will get it's power through the tether).
--Press the "Select" button on the OI three times and it will display the current team number setting. As you change the dip switches you will see the team number display also change, so it's easy to verify you've set your team number correctly.
-- The left most dip switch is the most significant bit.

Each switch is "1" if the front is pressed down and "0" if the back of the switch is down.
You can figure out the binary number of your team, or start with all the switches set to zero then beginning at the left flip the switches one at a time. If the number you get after you flip a switch to "1" is lower than your team number, keep it. If the resulting number is higher put that dip switch back to zero and go to the next one on the right.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 21-01-2007 at 21:42.
  #14   Spotlight this post!  
Unread 28-01-2007, 14:10
Mib Mib is offline
Registered User
AKA: Aaron Clay
FRC #1741 (Red Alert Robotics)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Indiana
Posts: 12
Mib is on a distinguished road
Send a message via AIM to Mib Send a message via MSN to Mib Send a message via Yahoo to Mib
Re: Programming - Getting Started

Quote:
Originally Posted by nehalita View Post
this helped me soooo much. thank you all. this is our second yr competing and this is my first year in FIRST. i have a java background and a simple C background from 8th grade...but it was so long ago.

I'm the only one in charge of programming so when i was handed all these Cd's and codes and links and websites, i was pretty overwhelmed. i just learned about this today and I've spend the majority of the day looking through posts to answer my Q's

is there anyone here that i can directly e-mail or talk to if i have questions? (warning: I'm like a pet, i demand a lot of attn: i have questions everyday....or close to it)

also, everyone speaks about a "dongle" and i saw the picture and everything. but what exactly IS it?

its usually a piece of hardware (USB flash drive) that a program needs to be used in order for it to work

some programs allow them to be "virtual dongles" or a software dongle, but usually its a hardware device.


--------second point---------

New programmers might also check out Kevin's code and test it out. Testing and checking is a must!
__________________
Aaron M. Clay
Programming Consultent
www.GameCopyWorld.com
amclay (@) purdue.edu
  #15   Spotlight this post!  
Unread 05-02-2007, 22:56
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Programming - Getting Started

Quote:
Originally Posted by Mib View Post
its usually a piece of hardware (USB flash drive) that a program needs to be used in order for it to work

some programs allow them to be "virtual dongles" or a software dongle, but usually its a hardware device.
Usually when we, here, speak of "the dongle" or "a dongle", we refer to what connects to the competition port to enable/disable the robot and turn autonomous mode on/off. You can get the schematics from http://www.ifirobotics.com or buy one from AndyMark. They should be in the kit, since they are as much a safety precaution as a debugging aid.

When talking about the USB/Serial hardware, we usually use the term "adapter" (as in a USB-Serial adapter).

We rarely use the term "dongle" to describe a license device, since none of the software teams use requires one. (Correct me if I'm wrong.)
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Book on C programming - suggestions? wun Programming 18 14-01-2005 00:12
Help needed for getting started! chantilly_team Programming 4 27-10-2004 08:29
Autonomous Programming Competition Signup List SilverStar Programming 36 13-05-2004 15:09
Robot Programming Education phrontist Programming 11 03-05-2004 07:32


All times are GMT -5. The time now is 11:32.

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