RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Tue Dec 23, 2025 10:37 am

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Subcategories
PostPosted: Wed Jul 26, 2006 10:38 pm 
Offline
Administrator
User avatar

Joined: Fri Jan 13, 2006 12:33 pm
Posts: 2079
Location: Palo, IA
A few people have requested a category hierarchy system. I've come up with a couple of ways to do it, but thought I'd ask for input. They're just two different XML definition methods, which will be transparent and identical to each other to the user. Definition authors, let me know what you think.

The first, and probably best and easiest to implement.
Code:
<category name="Timing">
  <category name="Some sort of subcategory name">
    <table ...>
  </category>
</category>


Or, more like how it works now, which would ease the transition (though the other method would, of course, still support the old method)...
Code:
<table name="Timing" category="Timing\Subcategory" ...>

_________________
- Jared


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 26, 2006 11:08 pm 
Offline
RomRaider Donator
User avatar

Joined: Wed Mar 29, 2006 10:38 pm
Posts: 5336
I'd say do which ever one is easiest to do code-wise as both of those don't look to hard to implement in the xml. Also, I'd make sure that the subcategories don't indent the table labels over any farther as the longer ones get cut off without expanding the pane to a large size taking up your usable window.

On a different note, I've been making definitions for Ecuflash and noticed some interesting things about the xml. When you open Ecuflash, it loads all the definitions into memory (does this quite fast). From them on, whenever you open a rom, it opens immediately. The xml consists of a base defintion file (ex. wrxbase) which contains all the scalings and tables and then seperate xml files for each revision, which merely have the table addresses and any size difference for that revisions. Example:

WRXBASE.XML:

Code:
<rom>
   <romid>
      <xmlid>wrxbase</xmlid>
      <internalidaddress>200</internalidaddress>
      <internalidstring>--------</internalidstring>
      <memmodel>68HC16Y5</memmodel>
   </romid>

   <scaling name="AFR" units="air/fuel ratio" toexpr="14.7/(1+x*.0078125)" frexpr="(14.7/x-1)/.0078125" format="%.2f" min="8" max="20" inc="0.1" storagetype="int8" endian="little"/>
   <scaling name="AirFlow16" units="grams/sec" toexpr="x*0.00457763671875" frexpr="x/0.00457763671875" format="%.2f" min="0" max="299" inc="1" storagetype="uint16" endian="little"/>
   <scaling name="AtmosBar16" units="bar relative" toexpr="x*0.001333224" frexpr="x/0.001333224" format="%.2f" min="0" max="2.7" inc="0.05" storagetype="uint16" endian="little"/>
   <scaling name="BatteryVolts" units="volts" toexpr="x*.0030517578125" frexpr="x/.0030517578125" format="%.1f" min="0" max="20" inc="0.1" storagetype="uint16" endian="little"/>
   <scaling name="BoostBar" units="bar absolute" toexpr="x*.010665792" frexpr="x/.010665792" format="%.2f" min="0" max="2.7" inc="0.05" storagetype="uint8" endian="little"/>
.........
   <table name="Target Boost" category="Boost" type="3D" scaling="BoostBar">
      <table name="Throttle Position" type="X Axis" elements="8" scaling="Throttle"/>
      <table name="Engine Speed" type="Y Axis" elements="9" scaling="RPM"/>
   </table>

   <table name="Target Boost (MT)" category="Boost" type="3D" scaling="BoostBar">
      <table name="Throttle Position" type="X Axis" elements="8" scaling="Throttle"/>
      <table name="Engine Speed" type="Y Axis" elements="9" scaling="RPM"/>
   </table>


A4SGE01C.XML:

Code:
<rom>
   <romid>
      <xmlid>A4SGE01C</xmlid>
      <internalidaddress>200</internalidaddress>
      <internalidstring>A4SGE01C</internalidstring>
      <caseid>AF423</caseid>
      <make>Subaru</make>
      <market>USDM</market>
      <model>Impreza</model>
      <submodel>WRX</submodel>
      <transmission>MT/AT</transmission>
      <year>2002</year>
      <flashmethod>wrx02</flashmethod>
      <memmodel>68HC16Y5</memmodel>
   </romid>

   <include>wrxbase</include>

   <table name="Boost Compensation (Atmospheric Pressure)" address="2b4be"/>

   <table name="Boost Limit (Fuel Cut)" address="298e4"/>

   <table name="Boost Limit (CEL)" address="2bb85" />

   <table name="Target Boost (AT)" address="2b403">
      <table name="Throttle Position" address="2b3f1"/>
      <table name="Engine Speed" address="2b3de"/>
   </table>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl