Go to Post Fun and adrenaline make you waaaaaaaay better at robotics. Proven fact. - Matt Krass [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-01-2006, 15:36
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
WPILib - Library for robot programming

I've put up a copy of WPILib if anyone is interested in playing with it.

WPIlib is a library that was originally developed for some high school robotics courses that I taught a few years ago using the EDU/Robovation controller to make life a little easier. Since then it has been ported to the FRC controller for 2006 and the 2004-05 controllers.

It is the base runtime system used by EasyC for FRC. If you would like the ease of use that EasyC has, but want to use MPLab or Eclipse as the development environment, you might give it a try.

I posted it on my web site at WPI along with a page of examples. For each of the examples there is an MPLab project that is also downloadable.

The whole thing should be installed in C:WPILib for the links in the examples to work and I would suggest doing that anyway so that if the library is updated, it can be replaced in one place and all projects that point to it will get the new version.

It includes support for all the kit sensors including the camera, gyro, accelerometer, and gear tooth sensor. It also supports the Daventech/Radio Shack ultrasonic rangefinders, and the Daventech digital compass.

There is a substantial document that describes how to use it and how it works also on the web site - although due to some bug in acrobat or the thing that created it, you have to download the file first then view it locally.

There are currently versions of the library for 2004-2006 FRC controllers. The documentation talks about VEX, but in the scramble to get it working, the VEX/Robovation code didn't get updated. Eventually I'll put up versions that support those controllers.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
  #2   Spotlight this post!  
Unread 15-01-2006, 15:49
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,188
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: WPILib - Library for robot programming

First of all, I would like to calmly say:

OMG THIS ROCKS!!! AHHH!!!!! dfjlhadsfkjh!!!! <33

Mhmm.. excuse me..

Is there any info on the main program loop used in your library? (mean execution time, resources used.. etc..)
  #3   Spotlight this post!  
Unread 15-01-2006, 16:07
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: WPILib - Library for robot programming

Quote:
Originally Posted by Tom Bottiglieri
Is there any info on the main program loop used in your library? (mean execution time, resources used.. etc..)
The traditional program loop is buried in the library. Timer 1 runs continously at 1ms intervals. Each interrupt it checks if there is master data that needs to be exchanged with the user processor and does it in the background. So there is no getdata/putdata that is exposed to the "user" program.

I will say that the overhead of the interrupt service routines are pretty high - about 54us of time to save and restore the context because of the need to save the mathdata and tempdata sections in the interrupt handler. But in spite of that, it seems to be able to handle the camera and gear-tooth sensors running at the same time.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
  #4   Spotlight this post!  
Unread 17-01-2006, 21:43
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 741
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
Re: WPILib - Library for robot programming

In your OI functions, I am assuming the first argument 'port' is 1-4. Is the second argument 'function' then 'p1_y' or a similar variable?


Jon Mittelman
  #5   Spotlight this post!  
Unread 01-06-2006, 15:17
SMGraham SMGraham is offline
Registered User
AKA: Steve
FRC #0165 (Das Goat)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2002
Location: Annapolis, MD
Posts: 1
SMGraham is an unknown quantity at this point
Re: WPILib - Library for robot programming

Quote:
Originally Posted by BradAMiller
WPIlib is a library that was originally developed for some high school robotics courses that I taught a few years ago using the EDU/Robovation controller to make life a little easier.
I teach a robotics course to Mechanical Engineers at the Naval Academy that is based on the EDU-Robitics kit. Most ME students do not know how to program, and since MPLAB is not particularly user-friendly for novices, I am looking for a programming environment that provides more help with correcting syntax errors. I am considering Easy-C, but was told by Intellitek Educational Tech support that the EDU Mini-controller is not supported by Easy-C. They suggested I go through this forum to find out if anyone has used Easy-C with the EDU controller. What is required, and do you know if anyone has done it?
  #6   Spotlight this post!  
Unread 18-06-2006, 14:02
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: WPILib - Library for robot programming

Is the source code available?
__________________
Eric Haskins KC9JVH
  #7   Spotlight this post!  
Unread 20-06-2006, 22:45
intellec7's Avatar
intellec7 intellec7 is offline
108 programmer
AKA: Gustavo
FRC #0108 (SigmaC@ts)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2006
Location: Hollywood, Florida
Posts: 65
intellec7 is on a distinguished road
Send a message via AIM to intellec7 Send a message via MSN to intellec7
Re: WPILib - Library for robot programming

To my understanding, due to the agreement between Intelitek and WPI, the source code is not available
  #8   Spotlight this post!  
Unread 21-06-2006, 03:12
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: WPILib - Library for robot programming

Quote:
Originally Posted by EHaskins
Is the source code available?
It is true, that I can't give out the source code as was said due to an agreement with Intelitek since it is also used in their EasyC product.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
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 Vex w/ MPLab dababyjebus FIRST Tech Challenge 27 25-04-2008 09:11
Programming - Getting Started Mark McLeod Programming 80 16-04-2008 23:37
The New and Improved FIRST CAD Library Ed Sparks General Forum 22 03-02-2007 18:03
Organizing a programming team. scitobor 617 Programming 7 28-01-2005 19:18
Robot Programming Education phrontist Programming 11 03-05-2004 07:32


All times are GMT -5. The time now is 14:01.

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