View Single Post
  #3   Spotlight this post!  
Unread 22-06-2008, 12:22
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,383
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Control a vex with a laptop?

Quote:
Originally Posted by antiNeo View Post
I tried using Kevin's serial_ports.c/h with the default Vex code and I got it to compile and run, but whenever I call Read_Serial_Port_One(), the bot stops working, the "PGRM STATUS" LED flashes red, and the serial port doesn't work at all.

So right now it looks like I get to choose between either being able to move the bot by using the default Vex code, or being able to communicate with it by using Kevin's FRC code. I haven't gotten moving and communication working at the same time yet.

Oh, and btw, when running Kevin's FRC code, the program LED is always flashing red, but at least the serial port works. Maybe that will help to diagnose the problem.
I really don't think Kevin's' latest code will work with Vex, unless he has released the Vex version he rumored he was working on a few months ago.

Now as for adding his serial port drivers, yes it is possible. In fact, I highly recommend it. I currently have his: Interrupt, ADC, Gyro, IR receiver and serial port code added into the default 2007 FVC code. It is not that difficult to do and it really adds some great functionality. For one, I can now get real-time telemetry from the Vex via Serial port 2 and my BlueSMiRF from Sparkfun. I also have an adapter that allows the same from Serial port 1, but it is not as convenient to use.

I do not believe Kevin's PWM code will work with Vex without some major modifications. Vex only has 8 PWMs while FRC has 16. Kevin's code is written to work with PWM's 13-16 and use the CCP hardware to generate the PWM signals, bypassing the need to use interrupts.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist