|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: using mplab with vex
right that's what i meant
![]() |
|
#2
|
|||
|
|||
|
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
|
|
#3
|
|||
|
|||
|
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? |
|
#4
|
|||
|
|||
|
Re: using mplab with vex
as far as i know, its the same one as the current board, and the same default code runs
|
|
#5
|
||||
|
||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |