Go to Post Our opponents didn't know where our robot was going and neither did we! - ReapersRule [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
  #1   Spotlight this post!  
Unread 29-01-2008, 01:41
jwkelly jwkelly is offline
Registered User
AKA: Mr. Kelly
FRC #0585 (CyberPenguins)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Tehachapi, CA
Posts: 8
jwkelly is on a distinguished road
New post-compile patch program for C18 HEX code . . .

All -- Team 585 has created a patch program in PERL that allows you to patch the compiled hex code with constants defined in an external file (i.e., constants not initialized at compile time). The upshot is that you can make a single build of the controller software, but maintain the flexibility of changing constants (e.g., calibration curves) as tuning and hardware changes dictate. Simply put, manage one controller build and a few text files of constants rather than several special builds that each have different constants defined in their source code.

I have enclosed the program but had to change the name from patchy.pl to patchy.txt to support the upload file types.

Please let me know if you find utility in this . . . um . . . utility.

Cheers-
jwk
Attached Files
File Type: txt patchy.txt (13.6 KB, 423 views)
  #2   Spotlight this post!  
Unread 29-01-2008, 01:50
114Klutz 114Klutz is offline
Registered User
AKA: Li Pi
FRC #2984 (Viking Robotics)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Los Altos
Posts: 152
114Klutz is a jewel in the rough114Klutz is a jewel in the rough114Klutz is a jewel in the rough
Send a message via AIM to 114Klutz
Re: New post-compile patch program for C18 HEX code . . .

Very nice, thanks.
  #3   Spotlight this post!  
Unread 29-01-2008, 03:08
Guy Davidson Guy Davidson is offline
Registered User
AKA: formerly sumadin
FRC #0008 (Paly Robotics)
Team Role: Alumni
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Ra'anana, Israel
Posts: 660
Guy Davidson is a splendid one to beholdGuy Davidson is a splendid one to beholdGuy Davidson is a splendid one to beholdGuy Davidson is a splendid one to beholdGuy Davidson is a splendid one to beholdGuy Davidson is a splendid one to beholdGuy Davidson is a splendid one to beholdGuy Davidson is a splendid one to behold
Send a message via ICQ to Guy Davidson Send a message via AIM to Guy Davidson Send a message via MSN to Guy Davidson
Re: New post-compile patch program for C18 HEX code . . .

Very cool. I'll give it a shot when I start tuning some of our control loops.
__________________
  #4   Spotlight this post!  
Unread 30-01-2008, 10:21
jwkelly jwkelly is offline
Registered User
AKA: Mr. Kelly
FRC #0585 (CyberPenguins)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Tehachapi, CA
Posts: 8
jwkelly is on a distinguished road
Re: New post-compile patch program for C18 HEX code . . .

Here are an example mdl.h and two mdl.txt files that we have tested with. Note that we have not yet loaded a patched file into the robot, but the process should work. Please let me know if the process works for you. I'll do the same once we get our robot loaded (probably later this week).
Attached Files
File Type: h mdl9.h (133 Bytes, 54 views)
File Type: txt mdl9.txt (325 Bytes, 62 views)
File Type: txt mdl12.txt (165 Bytes, 62 views)
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
New C18 3.0+ Compatible FRC Code Kevin Watson Programming 441 27-03-2008 15:30
MPLAB/c18 not creating a .hex file Cheezmeister Programming 7 15-02-2007 15:01
Hex code loader for the robot! paulcd2000 Programming 4 22-10-2006 01:58
New MS Patch.. very important. devicenull IT / Communications 0 05-01-2006 18:19
Can't Compile the Default Code pressurex1 Programming 4 25-01-2004 20:26


All times are GMT -5. The time now is 19:10.

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