RomRep::Pm6Ng Class Reference

Inheritance diagram for RomRep::Pm6Ng:

RomRep::HondaEcu List of all members.

Public Member Functions

 Pm6Ng (unsigned char rom __gc[], int flen)
virtual void setRevlimit (int rpm)
virtual void setLaunch (int rpm)
virtual void setLaunchSpeed (int speed)
virtual void setColdRevlimit (int rpm)
virtual int getRevlimit ()
virtual int getColdRevlimit ()
virtual int getLaunch ()
virtual int getLaunchSpeed ()
virtual bool isLaunchEnabled ()
virtual int getO2Mode ()
virtual void setLaunchEnabled (bool enabled)
virtual void setO2Mode (int mode)
virtual void setTwoByteRpm (int highloc, int lowloc, int rpm)
virtual int getTwoByteRpm (int highloc, int lowloc)
 Gets the RPM that adheres to revcount/dec.
virtual ArrayList * getDisabledCodes ()
virtual bool toggleCodeDisable (int code, bool disable)
virtual int getMapSensor ()
virtual bool setMapSensor (int senosor)
virtual bool isVtecEnabled ()
virtual int getVtecTps ()
virtual int getVtecEngageRpm ()
virtual int getVtecDisengageRpm ()
virtual int getVtecOutput ()
virtual void setVtecEnabled (bool)
virtual void setVtecTps (int tps)
virtual void setVtecEngageRpm (int rpm)
virtual void setVtecDisengageRpm (int rpm)
virtual void setVtecOutput (int output)
virtual String * getColHeader (int map, int column)
virtual String * getColHeaders ()[
virtual String *virtual float calcTPS (int raw)
virtual int calcTPS (float percentage)
virtual float calcTemp (int raw, bool sae)
virtual int calcTemp (float temp, bool sae)
virtual float calcRpm (int raw)
virtual int calcRpm (float rpm)

Static Public Member Functions

static float calcTps (int raw)
static int calcTps (float tps)
static String * calcPressureHeaders (int loc, unsigned char file __gc[], bool boost)[]
static String * calcRpmHeaders (int loc, unsigned char file __gc[], bool boost)[]
static float getRpmHeaders () __gc[]
static int rawPressureHeaders (int loc, unsigned char file __gc[], bool boost) __gc[]
static int getMapSensor (unsigned char file __gc[])
static unsigned char getStockRemap () __gc[]
static unsigned char get2BarRemap () __gc[]
static unsigned char get2_5BarRemap () __gc[]
static unsigned char get3BarRemap () __gc[]
static int getRevConstant ()
static bool validate (unsigned char h __gc[])

Static Public Attributes

static const int O2OFF = 0
static const int O2OFFBOOST = 1
static const int O2ON = 2

Protected Member Functions

virtual int getHighByte (int bytes)
virtual int getLowByte (int bytes)
virtual void setupHeaders ()
virtual void setRpmValue (RpmTwoByteValue *limit, int rpm)
virtual int getRpmValue (RpmTwoByteValue *limit)
virtual RomRep::HeaderCalculatorGetRowHeaderCalculator (RomRep::Map *map)
virtual RomRep::HeaderCalculatorGetColumnHeaderCalculator (RomRep::Map *map)
virtual FuelMapcreateFuelMap (int xx, int yy, int index, String *mapname, RomRep::MapLocs *maploc, unsigned char map __gc[,], unsigned char mlt __gc[], bool vtec)
virtual MapcreateIgnitionMap (int xx, int yy, int index, String *mapname, RomRep::MapLocs *maploc, unsigned char map __gc[,], bool vtec)
virtual float calculateAfr (unsigned char raw)
 Sets the target afr.
virtual unsigned char calculateAfr (float afr)

Protected Attributes

RpmTwoByteValuerevlimit
RpmTwoByteValuecoldrevlimit
RpmTwoByteValuelaunchlimit
int launchspeedloc

Static Protected Attributes

static int revconst = 1920000

Constructor & Destructor Documentation

RomRep::Pm6Ng::Pm6Ng unsigned char rom  __gc[],
int  flen
 


Member Function Documentation

static String* RomRep::Pm6Ng::calcPressureHeaders int  loc,
unsigned char file  __gc[],
bool  boost
[static]
 

virtual int RomRep::Pm6Ng::calcRpm float  rpm  )  [virtual]
 

Calculates the raw value fromf RPM. If there are more than one format of rpm value, assume it is the most common format (i.e. the 2 byte value)

Implements RomRep::HondaEcu.

virtual float RomRep::Pm6Ng::calcRpm int  raw  )  [virtual]
 

Calculates the RPM. If there are more than one format of rpm value, assume it is the most common format (i.e. the 2 byte value)

Implements RomRep::HondaEcu.

static String* RomRep::Pm6Ng::calcRpmHeaders int  loc,
unsigned char file  __gc[],
bool  boost
[static]
 

virtual int RomRep::Pm6Ng::calcTemp float  temp,
bool  sae
[virtual]
 

Parameters:
temp the real world temp value
sae true if sae, false if metric
Returns:
the raw temp.

Implements RomRep::HondaEcu.

virtual float RomRep::Pm6Ng::calcTemp int  raw,
bool  sae
[virtual]
 

Parameters:
raw the raw value
sae true if sae, false if metric
Returns:
the real temp.

Implements RomRep::HondaEcu.

virtual int RomRep::Pm6Ng::calcTPS float  percentage  )  [virtual]
 

Returns:
raw value

Implements RomRep::HondaEcu.

virtual String* virtual float RomRep::Pm6Ng::calcTPS int  raw  )  [virtual]
 

Returns:
Percentage

Implements RomRep::HondaEcu.

int RomRep::Pm6Ng::calcTps float  tps  )  [static]
 

float RomRep::Pm6Ng::calcTps int  raw  )  [static]
 

virtual unsigned char RomRep::Pm6Ng::calculateAfr float  afr  )  [protected, virtual]
 

Implements RomRep::HondaEcu.

virtual float RomRep::Pm6Ng::calculateAfr unsigned char  raw  )  [protected, virtual]
 

Sets the target afr.

Implements RomRep::HondaEcu.

RomRep::FuelMap * RomRep::Pm6Ng::createFuelMap int  xx,
int  yy,
int  index,
String *  mapname,
RomRep::MapLocs maploc,
unsigned char map  __gc[,],
unsigned char mlt  __gc[],
bool  vtec
[protected, virtual]
 

You must override this method so this base class can properly setup the maps.

If mapname == null, the function must give the map a name.

Implements RomRep::HondaEcu.

RomRep::Map * RomRep::Pm6Ng::createIgnitionMap int  xx,
int  yy,
int  index,
String *  mapname,
RomRep::MapLocs maploc,
unsigned char map  __gc[,],
bool  vtec
[protected, virtual]
 

must override this method so this base class can properly setup the maps.

If mapname == null, the function must give the map a name.

see createFuelMap() for an example

Implements RomRep::HondaEcu.

static unsigned char RomRep::Pm6Ng::get2_5BarRemap  )  [static]
 

static unsigned char RomRep::Pm6Ng::get2BarRemap  )  [static]
 

static unsigned char RomRep::Pm6Ng::get3BarRemap  )  [static]
 

int RomRep::Pm6Ng::getColdRevlimit  )  [virtual]
 

String * RomRep::Pm6Ng::getColHeader int  map,
int  column
[virtual]
 

Gets a column header. map == 0 for na, 1 for boost

String * RomRep::Pm6Ng::getColHeaders  )  [virtual]
 

virtual RomRep::HeaderCalculator* RomRep::Pm6Ng::GetColumnHeaderCalculator RomRep::Map map  )  [protected, virtual]
 

Implements RomRep::HondaEcu.

virtual ArrayList* RomRep::Pm6Ng::getDisabledCodes  )  [virtual]
 

virtual int RomRep::Pm6Ng::getHighByte int  bytes  )  [protected, virtual]
 

int RomRep::Pm6Ng::getLaunch  )  [virtual]
 

int RomRep::Pm6Ng::getLaunchSpeed  )  [virtual]
 

virtual int RomRep::Pm6Ng::getLowByte int  bytes  )  [protected, virtual]
 

virtual int RomRep::Pm6Ng::getMapSensor  )  [virtual]
 

static int RomRep::Pm6Ng::getMapSensor unsigned char file  __gc[]  )  [static]
 

int RomRep::Pm6Ng::getO2Mode  )  [virtual]
 

static int RomRep::Pm6Ng::getRevConstant  )  [static]
 

int RomRep::Pm6Ng::getRevlimit  )  [virtual]
 

virtual RomRep::HeaderCalculator* RomRep::Pm6Ng::GetRowHeaderCalculator RomRep::Map map  )  [protected, virtual]
 

Implements RomRep::HondaEcu.

static float RomRep::Pm6Ng::getRpmHeaders  )  [static]
 

int RomRep::Pm6Ng::getRpmValue RpmTwoByteValue limit  )  [protected, virtual]
 

static unsigned char RomRep::Pm6Ng::getStockRemap  )  [static]
 

int RomRep::Pm6Ng::getTwoByteRpm int  highloc,
int  lowloc
[virtual]
 

Gets the RPM that adheres to revcount/dec.

Implements RomRep::HondaEcu.

virtual int RomRep::Pm6Ng::getVtecDisengageRpm  )  [virtual]
 

virtual int RomRep::Pm6Ng::getVtecEngageRpm  )  [virtual]
 

virtual int RomRep::Pm6Ng::getVtecOutput  )  [virtual]
 

virtual int RomRep::Pm6Ng::getVtecTps  )  [virtual]
 

bool RomRep::Pm6Ng::isLaunchEnabled  )  [virtual]
 

virtual bool RomRep::Pm6Ng::isVtecEnabled  )  [virtual]
 

static int RomRep::Pm6Ng::rawPressureHeaders int  loc,
unsigned char file  __gc[],
bool  boost
[static]
 

void RomRep::Pm6Ng::setColdRevlimit int  rpm  )  [virtual]
 

void RomRep::Pm6Ng::setLaunch int  rpm  )  [virtual]
 

void RomRep::Pm6Ng::setLaunchEnabled bool  enabled  )  [virtual]
 

void RomRep::Pm6Ng::setLaunchSpeed int  speed  )  [virtual]
 

virtual bool RomRep::Pm6Ng::setMapSensor int  senosor  )  [virtual]
 

void RomRep::Pm6Ng::setO2Mode int  mode  )  [virtual]
 

void RomRep::Pm6Ng::setRevlimit int  rpm  )  [virtual]
 

void RomRep::Pm6Ng::setRpmValue RpmTwoByteValue limit,
int  rpm
[protected, virtual]
 

void RomRep::Pm6Ng::setTwoByteRpm int  highloc,
int  lowloc,
int  rpm
[virtual]
 

loc is the location of the FIRST (low) byte in the value. Sets the RPM into ROM

Implements RomRep::HondaEcu.

virtual void RomRep::Pm6Ng::setupHeaders  )  [protected, virtual]
 

virtual void RomRep::Pm6Ng::setVtecDisengageRpm int  rpm  )  [virtual]
 

virtual void RomRep::Pm6Ng::setVtecEnabled bool   )  [virtual]
 

virtual void RomRep::Pm6Ng::setVtecEngageRpm int  rpm  )  [virtual]
 

virtual void RomRep::Pm6Ng::setVtecOutput int  output  )  [virtual]
 

virtual void RomRep::Pm6Ng::setVtecTps int  tps  )  [virtual]
 

virtual bool RomRep::Pm6Ng::toggleCodeDisable int  code,
bool  disable
[virtual]
 

bool RomRep::Pm6Ng::validate unsigned char h  __gc[]  )  [static]
 


Member Data Documentation

RpmTwoByteValue* RomRep::Pm6Ng::coldrevlimit [protected]
 

RpmTwoByteValue* RomRep::Pm6Ng::launchlimit [protected]
 

int RomRep::Pm6Ng::launchspeedloc [protected]
 

const int RomRep::Pm6Ng::O2OFF = 0 [static]
 

const int RomRep::Pm6Ng::O2OFFBOOST = 1 [static]
 

const int RomRep::Pm6Ng::O2ON = 2 [static]
 

int RomRep::Pm6Ng::revconst = 1920000 [static, protected]
 

RpmTwoByteValue* RomRep::Pm6Ng::revlimit [protected]
 




BRE Documentation Home