View Single Post
  #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, 422 views)