Go to Post I think the new smoke cost about $ 189 from AndyMark. - ebarker [more]
Home
Go Back   Chief Delphi > Competition > OCCRA
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-10-2006, 17:49
deleter deleter is offline
Registered User
None #0003
 
Join Date: Oct 2006
Location: West Bloomfield
Posts: 1
deleter is an unknown quantity at this point
[OCCRA]: Programming

I missed the tutorial on programming but my team (West Bloomfield) is interested in doing this. I am fluent in c and c++, so its not the actual coding that I need help in. Rather, what I need to know, is where I can get the compiler, and maybe something on getting the compiled program to the robot (though I think that will be pretty easy.) I've seen the compiler on the first website for $50, but I didn't think we had to purchase it separately. If someone could point me in the right direction I would be thankful.
Reply With Quote
  #2   Spotlight this post!  
Unread 08-10-2006, 10:58
Jason W's Avatar
Jason W Jason W is offline
Registered User
FRC #3538 (RoboJackets)
Team Role: Engineer
 
Join Date: Sep 2005
Rookie Year: 2003
Location: Troy Michigan
Posts: 27
Jason W is a jewel in the roughJason W is a jewel in the roughJason W is a jewel in the rough
Send a message via AIM to Jason W Send a message via Yahoo to Jason W
Re: [OCCRA]: Programming

I do believe you need IFI loader and MPLAB, if your coming from a FIRST team then they should have both already, if not

MPLAB


IFIloader

Both download links are at the bottom.
Reply With Quote
  #3   Spotlight this post!  
Unread 09-10-2006, 19:06
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #5263
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Riverview, MI
Posts: 723
JBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond repute
Send a message via AIM to JBotAlan Send a message via Yahoo to JBotAlan
Re: [OCCRA]: Programming

You need more than just MP LAB and IFI Loader--you need the actual compiler. It's called C-18. Now, I've heard of ways people have done this with open-source stuff, but I can't honestly say I've done it. If you are on a high-speed connection, I can offer you an ISO of the CD FIRST gave us last year. You would have to revert to the older linker files (I'll post how if you need me to, but it is in the read me file in the default code, obtained from the IFI robotics site) because the controller we use in OCCRA is the 2004 controller, and they changed the PIC model number on us last year in FIRST. It will be interesting trying to upload that huge file to the server, but I can try.

Maybe we can try, like, an AIM file transfer...or something...

I'm not offering this to the general public, because I view that as abuse, but just for educational purposes, and for another robotics team, I believe it is within the spirit of the license.

Just let me know.
JBot
__________________
Aren't signatures a bit outdated?
Reply With Quote
  #4   Spotlight this post!  
Unread 10-10-2006, 07:09
Jason W's Avatar
Jason W Jason W is offline
Registered User
FRC #3538 (RoboJackets)
Team Role: Engineer
 
Join Date: Sep 2005
Rookie Year: 2003
Location: Troy Michigan
Posts: 27
Jason W is a jewel in the roughJason W is a jewel in the roughJason W is a jewel in the rough
Send a message via AIM to Jason W Send a message via Yahoo to Jason W
Re: [OCCRA]: Programming

Or you could just download the student addition free. You have to register first, but its free, then you can download the student version which is basically just a demo. It works fully for 60 days, so that should get you through OCCRA, and even after that, the compiler still works.

c18

The links are at the bottom, the one that says no documents worked for me. Remember you will have to register free first



"Student Edition/Demo
The Student Edition is free! It has all the features of the full compiler and libraries. After 60 days, the optimizations related to procedural abstraction and to the extended instruction set of the newer PIC18XXXX devices will be disabled. Code compiled after the expiration date will function but may occupy more memory space." From Microchips site




Hope this is a little easier.
Reply With Quote
  #5   Spotlight this post!  
Unread 10-10-2006, 15:59
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: [OCCRA]: Programming

The proper legal way to handle this would be to contact IFI and/or Microchip and inquire about purchasing your own copy of the proper software.

Also, the open source alternative still depends on C18, running under WINE.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
Reply With Quote
  #6   Spotlight this post!  
Unread 10-10-2006, 20:05
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #5263
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Riverview, MI
Posts: 723
JBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond repute
Send a message via AIM to JBotAlan Send a message via Yahoo to JBotAlan
Re: [OCCRA]: Programming

Quote:
Originally Posted by Matt Krass
The proper legal way to handle this would be to contact IFI and/or Microchip and inquire about purchasing your own copy of the proper software.
Yeah, I guess that's right. It seems like since FIRST is handing out licenses of it that it should be fine, but I guess you are right.

Would it be okay to find our 2004 CD (as we are using the '04 RC) and give it to this user? We don't use the license any more...

Quote:
Originally Posted by Matt Krass
Also, the open source alternative still depends on C18, running under WINE.
Oh. Good to know. Sounds messy, though. I like Windows....somewhat.

Isn't there a way to adapt existing compilers to non-PC devices? I know that RockBox has devised a way to get gcc to compile to the processor of the iPod. I'm pretty ignorant when it comes to how this works. I want to learn more of the lower-level design of our controller, and how the compiler works. I know that we have 2 PICs in our controller, but that's about it. Could we theoretically write our code in assembly? Sounds like fun...I think...

Sorry if I'm rambling.

JBot
__________________
Aren't signatures a bit outdated?
Reply With Quote
  #7   Spotlight this post!  
Unread 14-10-2006, 14:23
ScottWalls ScottWalls is offline
Registered User
FRC #0245 (AdamBots)
Team Role: Leadership
 
Join Date: Mar 2006
Rookie Year: 2003
Location: Rochester Hills
Posts: 31
ScottWalls will become famous soon enoughScottWalls will become famous soon enough
Re: [OCCRA]: Programming

The only way to get MPLAB, the program to compile code, legally is from Microchip.

IFI_LOADER, the program to put code on the robot is free and available from Innovation First.

As for open source alternatives, only IFI_LOADER truly has an open source alternative called picloader. MPLAB does not truly have an open source alternative. It only has legal emulation of the purchased product in WINE.
Reply With Quote
  #8   Spotlight this post!  
Unread 17-10-2006, 22:19
Mr. Mac Mr. Mac is offline
Registered User
#0001 (Juggernauts)
 
Join Date: Sep 2002
Location: Pontiac, MI
Posts: 191
Mr. Mac is on a distinguished road
Re: [OCCRA]: Programming

OCCRA purchased the IFI software and gave each team a license and the CD with the necessary programming files; your team should have a license. If you lost the actual cd, I believe you can get a copy of it from another team and be legal.
Reply With Quote
  #9   Spotlight this post!  
Unread 13-11-2006, 17:42
Chief Samwize Chief Samwize is offline
Registered User
AKA: Sam
FRC #0051 (Wings of Fire)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Pontiac, MI
Posts: 171
Chief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud of
Re: [OCCRA]: Programming

I know this thread was kind of dead but my question falls into this category and I did not know if I should create a new thread or....
So anyway I'm new at this programming thing, actually very new (I just downloaded my first code this afternoon. The code we wrote runs fine but after it is complete the robot just sits there when I try to use the controller. I went back and downloaded the test code (we are working with a vex robot) and found that after the code was complete that the vex bot was still not responsive. Anyone know why this may be happening and what I can do to fix this? Please Help!!!
Reply With Quote
  #10   Spotlight this post!  
Unread 13-11-2006, 18:41
Josh Murphy's Avatar
Josh Murphy Josh Murphy is offline
Registered User
AKA: Josh
FRC #0051 (Wings of Fire)
Team Role: Coach
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Clarkston, Mi
Posts: 401
Josh Murphy has a reputation beyond reputeJosh Murphy has a reputation beyond reputeJosh Murphy has a reputation beyond reputeJosh Murphy has a reputation beyond reputeJosh Murphy has a reputation beyond reputeJosh Murphy has a reputation beyond reputeJosh Murphy has a reputation beyond reputeJosh Murphy has a reputation beyond reputeJosh Murphy has a reputation beyond reputeJosh Murphy has a reputation beyond reputeJosh Murphy has a reputation beyond repute
Re: [OCCRA]: Programming

Quote:
Originally Posted by Chief Samwize
I know this thread was kind of dead but my question falls into this category and I did not know if I should create a new thread or....
So anyway I'm new at this programming thing, actually very new (I just downloaded my first code this afternoon. The code we wrote runs fine but after it is complete the robot just sits there when I try to use the controller. I went back and downloaded the test code (we are working with a vex robot) and found that after the code was complete that the vex bot was still not responsive. Anyone know why this may be happening and what I can do to fix this? Please Help!!!
Sam be a little bit more specific: The robot was programmed for auto mode and would not come out of auto mode which is basically the problem. It had a start and finish to the code right sam? someone help this boy please. (he really does need it if you know what I mean!!) just kiddin.
__________________
-Josh Murphy-
Reply With Quote
  #11   Spotlight this post!  
Unread 13-11-2006, 18:53
Chief Samwize Chief Samwize is offline
Registered User
AKA: Sam
FRC #0051 (Wings of Fire)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Pontiac, MI
Posts: 171
Chief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud of
Re: [OCCRA]: Programming

Quote:
Originally Posted by Josh Murphy
Sam be a little bit more specific: It had a start and finish to the code right?
Well I was using EasyC which gives you the variable screen with a start and end block. The commands were on the side so you drag and drop then fill out the motor values and wait times. The code was very basic, I don't have the exact flowchart with me but I believe it was something like...

I/O
Variables
Start
-SetMotor (2, 0)
-SetMotor (3, 255)
-wait (4500)
-SetMotor (2, 0)
-SetMotor (3, 255)
-SetMotor (7, 255) // servo motor
-wait (1000)
-SetMotor (2, 0)
-SetMotor (3, 255)
-SetMotor (7, 255)
-SetMotor (8, 0)
-Wait (2500)
-SetMotor (2, 127)
-SetMotor (3, 127)
-SetMotor (7, 255)
-SetMotor (8, 127)
-wait (1000)
-SetMotor (7, 127)
End

I thought I had remember seeing something after the autonomous block for our FIRST robot but I think autonomous was in it's own block. Was I maybe supposed to create that block. OHHH I'm confused????
Reply With Quote
  #12   Spotlight this post!  
Unread 15-11-2006, 17:46
Chief Samwize Chief Samwize is offline
Registered User
AKA: Sam
FRC #0051 (Wings of Fire)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Pontiac, MI
Posts: 171
Chief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud of
Re: [OCCRA]: Programming

Nevermind I have fixed the problem it took me a little while but I did it.
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
[OCCRA]: VEX Programming kit Eric Yahrmatter OCCRA Q&A 1 16-09-2006 10:52
[OCCRA]: There are still 2 OCCRA events this year! Mr. Mac OCCRA 3 01-12-2005 12:26
[OCCRA]: Programming iheartpi OCCRA 15 19-10-2005 20:52
[OCCRA]: why dont i see excitement for occra as much right now? greencactus3 OCCRA Q&A 1 05-09-2005 14:05
[OCCRA]: FOR ALL OCCRA TEAMS:Team Info Request Nate Smith OCCRA 0 15-11-2004 23:27


All times are GMT -5. The time now is 21:46.

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