Go to Post You can never have enough teamwork. - Koko Ed [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
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 24-04-2006, 23:03
CircularLogic CircularLogic is offline
Registered User
FRC #1546 (Chaos Inc)
Team Role: Leadership
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Baldwin
Posts: 38
CircularLogic will become famous soon enoughCircularLogic will become famous soon enough
How do you program your vex?

There seem to be three methods i can see.

1. Dont. Just use the programming it comes with.

2. easyC. Pretty darn easy to work with, makes everything very nice.

3. Actual C. I assume with MPLAB, the compiler, and the ifi loader.

So how do you do it?
For those who use easyC...what are some of the disadvantages that you are having? Does anyone else feel that they arent doing any "real" (for lack of a better word) programming?

For those who use Real C....What exactly is your set up? do you use mplab with the c18 compiler? Do you use the library files from vexlabs.com or has someone actually programmed the entire thing? Also how did you go about getting everything? Did you experience any difficulties while setting it up?


As you can tell I have a lot of questions. I got Vex to be able to tinker with programming and perhaps maybe an introduction to dealing with microcontrollers. I have the easyC and its great to generate programs but I feel that if i got vex to do some programming, i should step up and use C. The main problem is that I have little to no clue about how to set it up. Once I do that, then I will face the fact that I dont know C.

Any advice anyone?

I realize that I ask a lot, but hey, "I have always relied on the kindness of strangers"
__________________
Team 1546 Chaos Incorporated
2005- SBPLI Rookie All Stars
2006- SBPLI Sportsmanship award.

Gotta hand it to the straight line autonomous mode, the most effective defense out there.

Proud beyond belief of the accomplishments of the second year, 20th ranked, 6 wins and 6 losses Chaos Incorporated.
Reply With Quote
  #2   Spotlight this post!  
Unread 25-04-2006, 10:40
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,797
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: How do you program your vex?

I'm using MPLAB/C18 for the pure C stuff. You should give that a try.

A good place to start is with the vex Starter Code (just like the default program for the full-sized robots). It's on the Vex downloads page at:
http://www.vexlabs.com/vex-robotics-downloads.shtml

The EasyC v2.0 (not the one that comes in the Vex programming kit) can also be a good starting point. You can use all the standard functions, but add some real C code of your own. It helps you avoid some of the C syntax errors you see a lot of when you're just starting out.

I wouldn't try programming from total scratch just yet. You need to get used to how things work and relate in working code first, so start with something that works and try making changes to it. Then you'll get an understanding of how things can go wrong.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 25-04-2006 at 10:42.
Reply With Quote
  #3   Spotlight this post!  
Unread 26-04-2006, 09:21
BanksKid's Avatar
BanksKid BanksKid is offline
..as The Circuitrunner.
AKA: Banks, Ethan Banks
FRC #1002 (Circuitrunners)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2005
Location: Marietta
Posts: 88
BanksKid will become famous soon enoughBanksKid will become famous soon enough
Send a message via AIM to BanksKid
Exclamation Re: How do you program your vex?

oh crap, our compiler is not being happy!!!!!! what should we do. apparently it is not compiling out autonoumous code, but it supposedly still compile our operating code, i you have any idea at all, and i mean any, please tell now!!!!!!!!! this is very urgent.
__________________
"WE HAVE A CAMERA RIGHT NOW!"

R.I.P. SAM
Reply With Quote
  #4   Spotlight this post!  
Unread 26-04-2006, 23:34
EricRobodox's Avatar
EricRobodox EricRobodox is offline
Registered User
AKA: Eric... I think a lot
FRC #0599 (RoboDox)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2001
Location: Northridge, CA
Posts: 335
EricRobodox has a brilliant futureEricRobodox has a brilliant futureEricRobodox has a brilliant futureEricRobodox has a brilliant futureEricRobodox has a brilliant futureEricRobodox has a brilliant futureEricRobodox has a brilliant futureEricRobodox has a brilliant futureEricRobodox has a brilliant futureEricRobodox has a brilliant futureEricRobodox has a brilliant future
Send a message via AIM to EricRobodox
Re: How do you program your vex?

so far we havent used the programming kit we have. We just started with vex like a week ago. But i have been able to do some cool stuff with the program on there, the controller options and the jumper pins. I call it the physical programing as its physical and not digitally input. We are going to program this weekend so that we can make a robot for a SCRRF Vex Comp on the 20th of May.
__________________
My other car is being built to go to Mars in 2011.
Bet you aint got one of these...
Reply With Quote
  #5   Spotlight this post!  
Unread 01-05-2006, 16:51
jgarbers jgarbers is offline
Registered User
no team
 
Join Date: Apr 2006
Location: Roswell, GA
Posts: 9
jgarbers is an unknown quantity at this point
Re: How do you program your vex?

I've just started with Vex, but as an ol' programmer I generally prefer working directly with source code than the drag-the-blocks approach of easyC. I've managed to get a makefile working that uses the compiler / linker / etc. that come with the Vex Programming Kit. This way I can just edit C code, build it using the makefile, and send the HEX to the Vex using the IFI Loader. If anybody else would like to pursue this rather "retro" way of doing Vex development in C, let me know here and perhaps I can post the makefile somewhere.
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
Vex line follower sensor kit program jbill30 Programming 5 12-05-2006 14:43
Innovation First acquires Vex from Radio Shack Brandon Martus General Forum 58 20-04-2006 17:32
Cyber Stangs VEX team in the newspaper! crazykid234 FIRST In the News... 2 14-02-2006 19:03
Using another module to program the Vex CyberTroniX FIRST Tech Challenge 3 26-09-2005 13:13
how to add steps in the provided encoder program for the edu Zaramel2002 Programming 3 11-02-2004 08:35


All times are GMT -5. The time now is 17:45.

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