Go to Post FIRST tricks you into using your brain on a regular basis. - Gabe [more]
Home
Go Back   Chief Delphi > Technical > Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-01-2008, 07:12
windell747 windell747 is offline
Registered User
FRC #2477
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2001
Location: Hawaii
Posts: 158
windell747 will become famous soon enoughwindell747 will become famous soon enough
Programming Guidance

Hi, I know C fairly well. I've written data processing programs for PCs as well as programmed microprocessors. Unfortunately, the developement time for the FRC is much less than many of my projects in the past so I would like to get a jump start on the programming. I'm wondering if any of you might know of any good resources for programming the FRC Robot controller? Are there libraries already written specifically for FRC Controllers or will I need to start at low level and work to high level?

Thanks,
Windell
Team #2477
  #2   Spotlight this post!  
Unread 17-01-2008, 07:28
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #5263
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Riverview, MI
Posts: 723
JBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond repute
Send a message via AIM to JBotAlan Send a message via Yahoo to JBotAlan
Re: Programming Guidance

If you want to program in C (as opposed to Intellitek's graphical language, easyC) you will want to get the default code that Innovation First publishes. All the way at the bottom of this page, there is a link for 2007 default code. The controller has not changed for a few years, so the 2007 code is the most up-to-date.

I've been looking for a good reference guide to this code, such as the one that IFI published in 2004, but I can find no such creature...it seems that basic documentation is missing...I just might have to write somthing up.

Let me know if you need more help than what I've given. I can write a "basic intro to the default code" manual if that's what you need.

JBot
__________________
Aren't signatures a bit outdated?
  #3   Spotlight this post!  
Unread 17-01-2008, 15:51
windell747 windell747 is offline
Registered User
FRC #2477
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2001
Location: Hawaii
Posts: 158
windell747 will become famous soon enoughwindell747 will become famous soon enough
Re: Programming Guidance

Mahalo Nui Loa (Thank you very much!) for your response JBotAlan! I understand what you are staying. Actually when I am looking for is a reference that describes the libraries and functions that can be used to control the robot. You know motor control function calls, PWM writing functions, A/D conversion functions. How to do interrupts. etc. A tutorial of the default code would be nice ,but if I find a programming manual specifically for FIRST then that might not be useful.

Actually one question, I looked that the link that you gave me and I realize that there are two seperate zip files for code. One is name "RC Code" and the other is "RC Master Code". What is the difference between these?

Ohh i also just realized that my posting in the controller forum is a little inappropriate so I'll repost a question in the programming forum.

Again, Thanks for your help!
  #4   Spotlight this post!  
Unread 17-01-2008, 22:56
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,809
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 Guidance

The CBot compact disk that came in the Kit-of-Parts with MPLAB and the mcc18 compiler has a complete set of manuals appropriate for the compiler version 2.4 we use.

There are libraries and collections of code people have written for FIRST that will save you a lot of time. As well as copies of the C18 documents.
See Kevin Watson's site: http://kevin.org/frc/
See Brad Miller's: http://users.wpi.edu/~bamiller/WPILib/Versions.html

In the IFI Robot Controller we use in FIRST there are two processors: the Master and the User. We code the User processor, but the Master controls the User Processor for field functions such as Disabled, Hybrid, Teleoperated modes. While the source code that the Master processor is running is not released to the public, periodically binary updates to the Master code are released that we have to download in order to fix bugs or satisfy current playing field requirements.
--This question makes it appropriate for the Control System forum --
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 18-01-2008 at 11:12.
  #5   Spotlight this post!  
Unread 18-01-2008, 05:48
windell747 windell747 is offline
Registered User
FRC #2477
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2001
Location: Hawaii
Posts: 158
windell747 will become famous soon enoughwindell747 will become famous soon enough
Re: Programming Guidance

Thanks Mark! Very valuable resources! Much appreciated!
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
Programming in Python and Explaination of Programming roboxking Programming 22 07-01-2008 16:08
programming AHbot Programming 1 01-02-2007 11:04
programming motors with programming kit BorisTheBlade FIRST Tech Challenge 4 01-11-2005 19:03
Inertia Guidance System Venkatesh Technical Discussion 2 12-01-2003 01:37
guidance needed... please...? hacksaw692 General Forum 9 05-10-2002 18:35


All times are GMT -5. The time now is 18:06.

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