|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: using mplab with vex
Let me second using the WPILibrary and the MPLab compiler for the Vex. The library does a lot of work for you and makes it very simple to do complex control programming in a few lines. There is very good documentation on all the calls.
---- On the serial port question, I've hooked a number of different serial devices to the Vex. 1) Are you sure you have the right voltage levels? The serial ports are at a TTL, not RS-232. When I connected the Garmin GPS I used the orange Vex box to convert the levels. There was also a null modem between the GPS and the orange box. 2) Baud rate - are you sure the baud rates and the bit configurations are set? 3) Are you polling fast enough to get the bits back without a buffer overflow? Do you get framing errors? Are you using the base code, WPILib or something else? |
|
#2
|
|||||
|
|||||
|
Re: using mplab with vex
Quote:
I hope you don't mind if I make you my new best friend then. I have been trying to get to this to work for months. Quote:
Quote:
I thought I read that the Vex serial is not inverted, but I can't capture anything from it unless I have the serial input (on the ABB) set to inverted. Also I can't confirm that information as correct. Quote:
By "get framing errors" are you asking if an error flag is being set? I never thought to check for that. When I started on this task I knew nothing about serial communication, nor even very much about PICs. I am still trying to assimilate all the necessary data, compile it, and integrate it into my knowledge base. I am not a robot. Quote:
|
|
#3
|
|||
|
|||
|
Re: using mplab with vex
DanielR. I sent you a private messagewith some code samples in it, did you get it?
Thanks! Foster |
![]() |
| 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 |