|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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
|
|||
|
|||
|
Re: WPILib - Library for robot programming
Quote:
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. |
|
#4
|
||||
|
||||
|
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
|
|||
|
|||
|
Re: WPILib - Library for robot programming
Quote:
|
|
#6
|
||||
|
||||
|
Re: WPILib - Library for robot programming
Is the source code available?
|
|
#7
|
||||
|
||||
|
Re: WPILib - Library for robot programming
To my understanding, due to the agreement between Intelitek and WPI, the source code is not available
|
|
#8
|
|||
|
|||
|
Re: WPILib - Library for robot programming
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |