Go to Post I in all sincerity thoroughly enjoy the way that programming for FIRST makes me want to bash my head against a wall. - pogenwurst [more]
Home
Go Back   Chief Delphi > CD-Media > White Papers
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

photos

papers

everything



An Introduction to C Programming for First Robotics Applications

By: eugenebrooks
New: 08-11-2004 02:36
Updated: 08-11-2004 02:36
Total downloads: 655 times


This document provides both a tutorial, as well as information on more advanced programming techniques that are useful for learning C programming for your robot. It is a work in progress.
The tutorial uses the Extensible Interactive C (EiC) interpreter to allow students to try out C program constr...

This document provides both a tutorial, as well as information on more advanced programming techniques that are useful for learning C programming for your robot. It is a work in progress.
The tutorial uses the Extensible Interactive C (EiC) interpreter to allow students to try out C program constructs on their Windows PC. The EiC interpreter is freely available.
Numerous advanced topics are covered in document: how to do fixed point binary arithmetic, code analog feedback control, polled wheel counters, etc..

Attached Files

  • pdf An Introduction to C Programming for First Robotics Applications

    1099899418introcprogfirstrobotics.pdf

    downloaddownload file

    uploaded: 08-11-2004 02:36
    filetype: pdf
    filesize: 184.58kb
    downloads: 653



Recent Downloaders

  • Guest

Discussion

view entire thread

Reply

08-11-2004 13:25

eugenebrooks


Unread Re: White Paper Discuss: An Introduction to C Programming for First Robotics Applications

Quote:
Originally Posted by CD47-Bot
Thread created automatically to discuss a document in the White Papers.

An Introduction to C Programming for First Robotics Applications by eugenebrooks
I have posted a rather long "white paper" with the title listed above with the goal of giving students, and possibly teacher/mentors, a good start with C programming for the robot. This document is not a substitute for the variety of currently available materials devoted to robot programming. Rather, it is designed to compliment them. It describes those portions of the C programming language that you are likely to use in the robot program and how they are used to achieve your goals in code for the control system. It has both tutorial and more sophisticated content.

The tutorial content uses the freely available Extensible Interactive C interpreter, written by Ed Breen, as a vehicle to explore the properties of simple C statements, variable definitions and functions.

The “not-so-tutorial” portion of the content explores binary arithmetic, the relationship between shifts and multiplies, and takes things as far as how to implement fixed-point arithmetic. A library routine (missing from the IFI default code) to print long integers and long integers representing fixed-point is described and is included as source code in the companion EiC distribution.

Any discussion, corrections and suggestions for improvements for the document would be happily received in this thread. As noted, the document is a work in progress and will likely see further improvement before the kickoff in response to any suggestions.

Eugene Brooks



09-11-2004 12:16

JP_1163


Unread Re: White Paper Discuss: An Introduction to C Programming for First Robotics Applications

Eugene,

I tried to open the paper but received an error message "File not found".



09-11-2004 12:37

Rich Wong


Unread Re: White Paper Discuss: An Introduction to C Programming for First Robotics Applications

Eugene,
It looks great! It will take me some time to read all 36 pages.
I'm going to add this document to the resource page of NYC teams.

Thank You!



09-11-2004 13:32

Rich Harman


Unread Re: White Paper Discuss: An Introduction to C Programming for First Robotics Applications

Quote:
Originally Posted by CD47-Bot
Thread created automatically to discuss a document in the White Papers.

An Introduction to C Programming for First Robotics Applications by eugenebrooks
What application can I use to open this paper. Nothing on my computer will open it.



09-11-2004 13:39



Unread Re: White Paper Discuss: An Introduction to C Programming for First Robotics Applicat

Right click and choose save as at the white papers page, there is some kind of glitch that wont let you directly open the file.

It looks like it is a .pdf file



09-11-2004 13:41

MikeDubreuil


Unread Re: White Paper Discuss: An Introduction to C Programming for First Robotics Applicat

I have read the entire paper and think you did a wonderful job. The only problems I could spot were a couple mis-spelled words. Very nice job. I'll be handing this paper out to my programmers.



09-11-2004 15:12

Rich Wong


Unread Re: White Paper Discuss: An Introduction to C Programming for First Robotics Applications

Quote:
Originally Posted by Rich Harman
What application can I use to open this paper. Nothing on my computer will open it.
Save the file locally (what DJ said) and open with Acrobat Reader.



09-11-2004 20:20

eugenebrooks


Unread Re: White Paper Discuss: An Introduction to C Programming for First Robotics Applications

Quote:
Originally Posted by JP_1163
Eugene,

I tried to open the paper but received an error message "File not found".
I get a copy when I download it from ChiefDelphi, but the file name
is prepended with a large number that makes it very long, and PCs
might not like that. Try the technical page from www.srvhsrobotics.org,
this also being the place where updated copies of the paper will be found
roughly weekly, and the EiC distribution supporting it can also be found.



12-11-2004 16:54

Roland


Unread Re: White Paper Discuss: An Introduction to C Programming for First Robotics Applications

Hi Eugene! This looks great, I'll show it to my team.



26-11-2004 21:54

eugenebrooks


Unread Re: White Paper Discuss: An Introduction to C Programming for First Robotics Applications

An updated version of the white paper, now 66 pages, is available at the www.srvhsrobotics.org web site in the Technical page. The new version is dated Nov 26, 2004.

In addition to revisions throughout, more material covering interrupts and state machines has been added. Of particular note is a demonstration of the hazards associated with access to variables updated by interrupt handlers. This is something that must be carefully attended to if your program employing interrupts is to be kept robust.



view entire thread

Reply

Tags

loading ...



All times are GMT -5. The time now is 17:19.

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