Go to Post Remember. There is no controls team, no mechanical team, and no business team without The Team. - Tom Line [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 21-12-2008, 12:24
outpaddling outpaddling is offline
Registered User
no team
 
Join Date: Jan 2008
Location: USA
Posts: 6
outpaddling will become famous soon enough
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   Spotlight this post!  
Unread 22-12-2008, 00:00
pogenwurst pogenwurst is offline
Ubuntu User
AKA: Brian
FRC #2007 (Robots of the Round Table)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Duluth, GA
Posts: 78
pogenwurst is on a distinguished road
Send a message via AIM to pogenwurst
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   Spotlight this post!  
Unread 22-12-2008, 09:32
outpaddling outpaddling is offline
Registered User
no team
 
Join Date: Jan 2008
Location: USA
Posts: 6
outpaddling will become famous soon enough
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
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
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


All times are GMT -5. The time now is 09:29.

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