Go to Post Pro safety tip: put a string through coil springs that is tied off securely on the robot frame. This will help prevent the spring from jumping out and killing an inspector if it snaps. - Ninja_Bait [more]
Home
Go Back   Chief Delphi > Other > VEX
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-04-2008, 21:04
programMORT11
 
Posts: n/a
Re: using mplab with vex

right that's what i meant
Reply With Quote
  #2   Spotlight this post!  
Unread 08-04-2008, 08:21
llama llama is offline
Registered User
AKA: Michael Goelz
FRC #2077 (Kettle Moraine Robotics/Laser Robotics)
Team Role: Engineer
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Wisconsin (kettle moraine area)
Posts: 25
llama is an unknown quantity at this point
Send a message via AIM to llama
Re: using mplab with vex

thanks for all of your help guys. as soon as i get home from school today ill have to try it out. ill let you know how it goes
Reply With Quote
  #3   Spotlight this post!  
Unread 09-04-2008, 19:07
adamdb adamdb is offline
Registered User
#1583
 
Join Date: Feb 2005
Location: Parker, CO
Posts: 64
adamdb has a spectacular aura aboutadamdb has a spectacular aura aboutadamdb has a spectacular aura about
Re: using mplab with vex

Another option is to use the WPILib library (EasyC uses it) and MPLab. Do a Google search for WPILib. There is an excellent doc on how to use it and what functions are available.

You can't get quite as low level as you can with the default FRC code, as it insulates you from needing to know some of the low level details, but it is quite usable.

I thought the Vex used the 18F8520 like the old 2004/2005 FRC boards?
__________________
Adam Bryant
Programming Mentor
Team 1583
Ridge View Academy Rambotics
Reply With Quote
  #4   Spotlight this post!  
Unread 21-04-2008, 20:58
programMORT11
 
Posts: n/a
Re: using mplab with vex

as far as i know, its the same one as the current board, and the same default code runs
Reply With Quote
  #5   Spotlight this post!  
Unread 21-04-2008, 22:02
fstumpo's Avatar
fstumpo fstumpo is offline
Question Everything!
FRC #1640 (SAB-BOT-AGE)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Downingtown
Posts: 9
fstumpo is an unknown quantity at this point
Re: using mplab with vex

The Vex Controller is definately based on the PIC18F8520 not the PIC18F8722 plus some of the aliases are named different for the rxData and txData data structures. The PWM stuff is different as well.

But just use the VEX default code, set the MLABS IDE device to PIC18F8520 and load the 8520 library and linker script and you should be set to go.

Some of Kevin's code, particularly the serial stuff has an include for the 8722.h file so this should be changed to 8520.h.

Oh, and remember the slow loop is not 26ms is more like 18ms.

I have ported over the new structure that Kevin wrote this year to the VEX but I have not been able to get more than 4 PWM's working.
Reply With Quote
Reply


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
Using a VEX Receiver with Non-Vex Equipment akaria VEX 26 06-09-2008 00:55
Can't enter Vex autonomous mode when using MPLab Redneck Programming 4 23-11-2007 01:16
Encoder Help with VEX and MPLAB qnetjoe Programming 5 11-03-2007 21:04
Vex Programming with MPLAB and IF loader Joohoo Programming 3 27-07-2006 18:18
using the MPLAB IDE MPLAB SIM simulator WizardOfAz Programming 1 03-11-2003 01:24


All times are GMT -5. The time now is 04:11.

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