Go to Post If you are content with where you are, you have celebrated the right things. If not, perhaps it is time to reconsider... what’s most important to you. - StephLee [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 26-10-2005, 21:32
Joohoo's Avatar
Joohoo Joohoo is offline
Registered User
FRC #0340 (G.R.R.)
Team Role: Mentor
 
Join Date: Jun 2005
Rookie Year: 2005
Location: Rochester
Posts: 241
Joohoo is just really niceJoohoo is just really niceJoohoo is just really niceJoohoo is just really niceJoohoo is just really nice
Send a message via AIM to Joohoo Send a message via Yahoo to Joohoo
Re: Programming FAQ

Right now for my team I am the only ""programmer"" so we are using the same code from last year to run the new one, but the computer that held it crashed and our back up is sitting on a college freshmen's desk.

Q. is there anyway to "uncompile" the code directly from the controller? or do i have to start from scratch?
  #17   Spotlight this post!  
Unread 26-10-2005, 21:38
Bharat Nain's Avatar
Bharat Nain Bharat Nain is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Jan 2004
Rookie Year: 2003
Location: New York
Posts: 2,000
Bharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond repute
Send a message via AIM to Bharat Nain Send a message via MSN to Bharat Nain
Re: Programming FAQ

Quote:
Originally Posted by Joohoo
Right now for my team I am the only ""programmer"" so we are using the same code from last year to run the new one, but the computer that held it crashed and our back up is sitting on a college freshmen's desk.

Q. is there anyway to "uncompile" the code directly from the controller? or do i have to start from scratch?
You cannot exactly "uncompile" a code. What you can do is recover what is already in the robot. Check out IFIs website for the software and details.
__________________
-= Bharat Nain =-

Whatever you do, you need courage. Whatever course you decide upon, there is always someone to tell you that you are wrong. There are always difficulties arising that tempt you to believe your critics are right. To map out a course of action and follow it to an end requires some of the same courage that a soldier needs. Peace has its victories, but it takes brave men and women to win them. - Ralph Waldo Emerson
  #18   Spotlight this post!  
Unread 26-10-2005, 21:51
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,031
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Re: Programming FAQ

Quote:
Originally Posted by Bharat Nain
You cannot exactly "uncompile" a code. What you can do is recover what is already in the robot. Check out IFIs website for the software and details.
"Device Reader (zip, 2-1-2005) for reading and restoring Code in a RC (can not modify the code), instructions included."

Once the code is compiled (which is the state the downloaded code is in), it's stuck that way. There are few ways to decompile it back to the original C code it was compiled from.

I'm afraid you're stuck.
  #19   Spotlight this post!  
Unread 27-10-2005, 14:57
Joohoo's Avatar
Joohoo Joohoo is offline
Registered User
FRC #0340 (G.R.R.)
Team Role: Mentor
 
Join Date: Jun 2005
Rookie Year: 2005
Location: Rochester
Posts: 241
Joohoo is just really niceJoohoo is just really niceJoohoo is just really niceJoohoo is just really niceJoohoo is just really nice
Send a message via AIM to Joohoo Send a message via Yahoo to Joohoo
Re: Programming FAQ

Quote:
Originally Posted by Greg Marra
"Device Reader (zip, 2-1-2005) for reading and restoring Code in a RC (can not modify the code), instructions included."

Once the code is compiled (which is the state the downloaded code is in), it's stuck that way. There are few ways to decompile it back to the original C code it was compiled from.

I'm afraid you're stuck.
thanks i geuss i'll have just rebuild it
  #20   Spotlight this post!  
Unread 25-12-2005, 12:32
aamodsams's Avatar
aamodsams aamodsams is offline
Registered User
AKA: Aamod Samuel
FRC #0135
Team Role: Operator
 
Join Date: Dec 2005
Rookie Year: 2006
Location: Penn High School, Mishawaka, IN
Posts: 5
aamodsams is an unknown quantity at this point
Re: Programming FAQ

I just have a quick question. How do you load a program into an old robot controller that does not have the "prog"ram button?
  #21   Spotlight this post!  
Unread 25-12-2005, 14:33
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,926
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: Programming FAQ

Quote:
Originally Posted by aamodsams
I just have a quick question. How do you load a program into an old robot controller that does not have the "prog"ram button?
Sounds like you have a pre-2004 Robot Controller.
Those were programmed in PBasic from Parallax not C and used an entirely different editor/compiler/downloader. It worked without the need for a "program" download button.

Let me find some references for you...

Most of what you need can be found here:
http://www.ifirobotics.com/first-legacy.shtml
under Documentation for 2001 - 2003

The default code with drive capability and the Editor that also downloads the code is available there, as well as documentation that describes what you need to know to get started.
Another useful site is:
http://www.parallax.com
In particular:
http://www.parallax.com/html_pages/...basic_stamp.asp
for the latest Editor
and
http://www.parallax.com/html_pages/...basic_stamp.asp
for in-depth PBasic user guides.

__________________
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 25-12-2005 at 14:53.
  #22   Spotlight this post!  
Unread 25-12-2005, 20:39
aamodsams's Avatar
aamodsams aamodsams is offline
Registered User
AKA: Aamod Samuel
FRC #0135
Team Role: Operator
 
Join Date: Dec 2005
Rookie Year: 2006
Location: Penn High School, Mishawaka, IN
Posts: 5
aamodsams is an unknown quantity at this point
Re: Programming FAQ

Thank you very much. I will try those links and see what I can get.
  #23   Spotlight this post!  
Unread 25-12-2005, 21:15
b_mallerd b_mallerd is offline
Programmer
FRC #1346 (Trobotics)
Team Role: Programmer
 
Join Date: Dec 2005
Rookie Year: 2005
Location: Vancouver
Posts: 35
b_mallerd is on a distinguished road
Send a message via MSN to b_mallerd
Re: Programming FAQ

Isn't asm the same thing as machine code? The only difference is your mov or w/e is replaced with a number.
__________________
  #24   Spotlight this post!  
Unread 26-12-2005, 08:29
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: Programming FAQ

Quote:
Originally Posted by b_mallerd
Isn't asm the same thing as machine code? The only difference is your mov or w/e is replaced with a number.
Yes, asembly is pretty much just a straight substitution of hex for a mnemonic.
__________________

  #25   Spotlight this post!  
Unread 16-01-2007, 14:25
MaddyW MaddyW is offline
Registered User
FRC #0486
 
Join Date: Jan 2006
Location: Wallingford
Posts: 7
MaddyW is an unknown quantity at this point
Re: Programming FAQ

Our team tried to load code from last years robot it doesn't work for some reason. One of leaders thought he saw something about not being able to use previous code on the 2007 controller. Anyone seen that rule/had problems/ideas?
  #26   Spotlight this post!  
Unread 16-01-2007, 15:51
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: Programming FAQ

Quote:
Originally Posted by MaddyW View Post
Our team tried to load code from last years robot it doesn't work for some reason. One of leaders thought he saw something about not being able to use previous code on the 2007 controller. Anyone seen that rule/had problems/ideas?
Someone correct me if I am mistaken...

For debugging purposes, the 2006 code can be loaded into the 2007 controller. However, <R76> prohibits you from reusing code from 2006 in your 2007 competition robot.

Regards,

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #27   Spotlight this post!  
Unread 17-01-2007, 13:26
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Programming FAQ

Quote:
Originally Posted by Mike Betts View Post
Someone correct me if I am mistaken...

For debugging purposes, the 2006 code can be loaded into the 2007 controller. However, <R76> prohibits you from reusing code from 2006 in your 2007 competition robot.

Regards,

Mike
The general opinion of the rule is that it somewhat akin to the bolt-on grabber. You may use code from previous years, just as you can use a design from previous years. But you should shy away from "bolt-on" black box libraries.
  #28   Spotlight this post!  
Unread 21-01-2007, 21:39
mormannoob's Avatar
mormannoob mormannoob is offline
President and Senior Programmer
AKA: Clinton
FRC #0498 (Cobra Commanders)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Glendale,AZ
Posts: 93
mormannoob is on a distinguished road
Thumbs up Re: Programming FAQ

hi
i need help on getting started on the drive code, i was on the team last but wasn't in charge of drive code and im a little lost on how to design it.Our main programmer and mentors have been busy recently and unable to help me. if some one could give me some help on at least some sort of outline of the code i should be able to figure it out from there i dont need anything crazy just so the robot can move and turn
thanks
confused programmer
__________________
Why cant code work the first time

Wait I have to lead programmers thats like asking a kid who doesnt know how to ride a bike to lead a group of guys at the tour de france
  #29   Spotlight this post!  
Unread 21-01-2007, 22:10
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,926
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: Programming FAQ

Try going through the default code description in the Programming Reference Guide . It's from 2004 but everything still holds true.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #30   Spotlight this post!  
Unread 01-02-2007, 23:47
monkeyleader's Avatar
monkeyleader monkeyleader is offline
Registered User
AKA: JT
FRC #2090 (PETT)
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2007
Location: Honolulu, Hawaii
Posts: 2
monkeyleader is an unknown quantity at this point
Re: Programming FAQ

Quote:
Originally Posted by Astronouth7303 View Post
It seems like we get a lot of the same questions here. So, here's a repository of some of the most common ones. Feel free to post your own with answers.

If you have a question that is not answered here, please search first. I can almost guarantee that someone has asked a similar question before.

Q. MPLAB says that it can't find "xxx.h". What's up?
A. if it's a standard header (eg, #include <adc.h>) then odds are that MPLAB is misconfigured. Either set the include directory manually, or reinstall MCC18 and checking the check boxes.
I would rather not reinstall MCC18 at the moment because i'm in miami for the superbowl and dont have the disk n stuff with me. How do i set the include directory manually, mine can't find stdio.h but only in one of the files, there's at least 1 file prior to it that has #include <stdio.h> and it can find it there, just not in this one and i don't understand why. Please help.
Closed Thread


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
Programming - Getting Started Mark McLeod Programming 80 16-04-2008 23:37
C Programming Guide cbolin Programming 7 15-01-2005 13:22
Book on C programming - suggestions? wun Programming 18 14-01-2005 00:12
Robot Programming Education phrontist Programming 11 03-05-2004 07:32
A few questions on programming the Control System Avarik Control System 21 08-02-2004 11:42


All times are GMT -5. The time now is 00:29.

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