|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
New Vex API for MCC18: LibVexBot
Hi everybody,
FYI, I wrote up a new API library for programming the Vex using MCC18. The API makes it possible to program the Vex without knowledge of how the PIC processor is wired in. All hardware access is done through simple function calls, such as io_get_digital(), io_get_analog(), sonar_emit_pulse(), etc. The library is entirely open source, so those who want to can dig into the library code and program to the bare metal. The source code distribution includes a sample program that behaves like the Vex default code, but interfaces with hardware entirely through the API. It includes both MPLAB projects and a Makefile for building under Unix/Mac with Wine. It should work with any version of MCC18. At some point, it will also work with SDCC, but there is still quite a bit of work to be done on that front. You can download the code from http://personalpages.tds.net/~jwbacon/Ports/vex.html Regards, Jason |
|
#2
|
|||
|
|||
|
Re: New Vex API for MCC18: LibVexBot
Sounds cool, though it'd be nice to see quadrature encoders supported.
If you could get this to work with SDCC that'd be excellent. |
|
#3
|
|||
|
|||
|
Re: New Vex API for MCC18: LibVexBot
If Santa sends me a quadrature encoder kit, I'll write a driver for it. Of course, he could also send me a code patch. ;-)
SDCC's day will come. The compiler works great, but there's some code that underlies the Vex libraries that still needs to be written (SPI, ADC, etc.) Documentation is also scarce at the moment. Jason |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Trouble using Kevin Watson's Serial Code with Vex user API | StargateFan | Programming | 3 | 13-01-2007 15:42 |
| Announcement: Free CAD for Vex - New Parts! | swe9 | VEX | 0 | 25-09-2006 04:09 |
| New Information for January 7th Vex Competition | team399 | FIRST Tech Challenge | 0 | 14-12-2005 20:57 |
| Help Brainstorm New VEX Robots for TV! | InnovationFirst | FIRST Tech Challenge | 17 | 03-10-2005 12:27 |