RomRep::VT0Ecu Class Reference

Inheritance diagram for RomRep::VT0Ecu:

RomRep::HondaEcu RomRep::EuroPw0 RomRep::JdmPr3 RomRep::JdmPr3Boost RomRep::JdmPw0 RomRep::JdmPw0Boost RomRep::Obd0Pr3 RomRep::EuroPw0Boost RomRep::EuroPw0Dev RomRep::EuroPw0ITB RomRep::JdmPr3Dev RomRep::JdmPr3ITB RomRep::JdmPw0Dev RomRep::JdmPw0ITB List of all members.

Public Member Functions

 VT0Ecu ()
 VT0Ecu (unsigned char rom __gc[], int flen, int revloc, int restartloc, int vtecloc, int vtecnum, int ignmapad1, int ignmapad2, int fuelmapad1, int fuelmapad2, String *type, int width)
 VT0Ecu (unsigned char rom __gc[], int flen, int revloc, int restartloc, int vtecloc, int vtecnum, int ignmapad1, int ignmapad2, int fuelmapad1, int fuelmapad2, int revscalars __gc[], String *type, int width)
virtual void setup (unsigned char rom __gc[], int flen, int revloc, int restartloc, int vtecloc, int vtecnum, int ignmapad1, int ignmapad2, int fuelmapad1, int fuelmapad2, int revscalars __gc[], String *type, int width)
virtual ~VT0Ecu ()
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 void setVtecEngage (int loc, int val)
virtual void setVtecDisengage (int loc, int val)
virtual void setLaunchRpm (int val)=0
virtual void setRevlimit (int val)
virtual void setRevRestart (int val)
virtual void setRpm (RpmTwoByteValue *stor, int val)
virtual void disableOxygenSensors (bool disable)=0
virtual void disable2ndOxygenSensor (bool disable)=0
virtual void setLaunchSpeed (int val)=0
virtual void enableLaunch (bool enable)=0
virtual void disableChecksum (bool disable)=0
virtual void disableSpeedLimiter (bool disable)=0
virtual void disableVssCheck (bool disable)=0
virtual void disableTempCheck (bool disable)=0
virtual void disablePsCheck (bool disable)=0
virtual void disableCelCheck (bool disable)=0
virtual void disableKnockSensor (bool disable)=0
virtual void disableCodes (bool disable)=0
virtual int getVtecEngage (int loc)
virtual int getVtecDisengage (int loc)
virtual int getRevlimit ()
virtual int getRevRestart ()
virtual int getLaunchRpm ()=0
virtual int getLaunchSpeed ()=0
virtual int getNumVtec ()
virtual int isKnockSensorDisabled ()=0
virtual int isChecksumDisabled ()=0
virtual int isOxygenSensorsDisabled ()=0
virtual int is2ndOxygenSensorDisabled ()=0
virtual int isSpeedLimiterDisabled ()=0
virtual int isVssCheckDisabled ()=0
virtual int isTempCheckDisabled ()=0
virtual int isCelCheckDisabled ()=0
virtual int isPsCheckDisabled ()=0
virtual int isLaunchDisabled ()=0
virtual int getRpmScalarValue (int row, bool fuel, bool vtec)
virtual int isCodesDisabled ()=0
virtual int addCelDisable (int code)
virtual int removeCelDisable (int code)
virtual int getCelVectorLocation ()
virtual int isCodeBitDisable (int code)=0
virtual int codeBitDisable (int code, bool disable)=0
 disable the damn code via bit disable. true disables the code
virtual int isCodeBitDisabled (int code)=0
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 int getRevConstant ()

Static Public Attributes

static int revconst = 1852000

Protected Member Functions

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 HeaderCalculatorGetRowHeaderCalculator (RomRep::Map *map)
virtual HeaderCalculatorGetColumnHeaderCalculator (RomRep::Map *map)
virtual float calculateAfr (unsigned char raw)
 Sets the target afr.
virtual unsigned char calculateAfr (float afr)

Protected Attributes

RpmTwoByteValuerevlimit
RpmTwoByteValuerevrestart
RpmByteValuevtec []
int numvtec
int celvecloc

Detailed Description

Base class for all OBD0 VTEC ECUs


Constructor & Destructor Documentation

RomRep::VT0Ecu::VT0Ecu  ) 
 

RomRep::VT0Ecu::VT0Ecu unsigned char rom  __gc[],
int  flen,
int  revloc,
int  restartloc,
int  vtecloc,
int  vtecnum,
int  ignmapad1,
int  ignmapad2,
int  fuelmapad1,
int  fuelmapad2,
String *  type,
int  width
 

RomRep::VT0Ecu::VT0Ecu unsigned char rom  __gc[],
int  flen,
int  revloc,
int  restartloc,
int  vtecloc,
int  vtecnum,
int  ignmapad1,
int  ignmapad2,
int  fuelmapad1,
int  fuelmapad2,
int revscalars  __gc[],
String *  type,
int  width
 

RomRep::VT0Ecu::~VT0Ecu  )  [virtual]
 


Member Function Documentation

int RomRep::VT0Ecu::addCelDisable int  code  )  [virtual]
 

Returns:
negative for fail, 1 for success

int RomRep::VT0Ecu::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.

float RomRep::VT0Ecu::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.

int RomRep::VT0Ecu::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.

float RomRep::VT0Ecu::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.

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

Returns:
raw value

Implements RomRep::HondaEcu.

float RomRep::VT0Ecu::calcTPS int  raw  )  [virtual]
 

Returns:
Percentage

Implements RomRep::HondaEcu.

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

Implements RomRep::HondaEcu.

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

Sets the target afr.

Implements RomRep::HondaEcu.

virtual int RomRep::VT0Ecu::codeBitDisable int  code,
bool  disable
[pure virtual]
 

disable the damn code via bit disable. true disables the code

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPw0, and RomRep::Obd0Pr3.

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

overridden to properly create a fuel map.

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

colscalarloc parameter is ignored.
vtec parameter ignored if index <= 1

Implements RomRep::HondaEcu.

Reimplemented in RomRep::EuroPw0Dev, RomRep::EuroPw0ITB, RomRep::JdmPr3Dev, RomRep::JdmPr3ITB, RomRep::JdmPw0Dev, and RomRep::JdmPw0ITB.

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

overridden to properly create an ignition map.

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

colscalarloc parameter is ignored.
vtec parameter ignored if index <= 1

Implements RomRep::HondaEcu.

Reimplemented in RomRep::EuroPw0Dev, RomRep::EuroPw0ITB, RomRep::JdmPr3Dev, RomRep::JdmPr3ITB, RomRep::JdmPw0Dev, and RomRep::JdmPw0ITB.

virtual void RomRep::VT0Ecu::disable2ndOxygenSensor bool  disable  )  [pure virtual]
 

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPw0, and RomRep::Obd0Pr3.

virtual void RomRep::VT0Ecu::disableCelCheck bool  disable  )  [pure virtual]
 

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPr3Boost, RomRep::JdmPw0, RomRep::JdmPw0Boost, and RomRep::Obd0Pr3.

virtual void RomRep::VT0Ecu::disableChecksum bool  disable  )  [pure virtual]
 

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPr3Boost, RomRep::JdmPw0, RomRep::JdmPw0Boost, and RomRep::Obd0Pr3.

virtual void RomRep::VT0Ecu::disableCodes bool  disable  )  [pure virtual]
 

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPw0, and RomRep::Obd0Pr3.

virtual void RomRep::VT0Ecu::disableKnockSensor bool  disable  )  [pure virtual]
 

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPr3Boost, RomRep::JdmPw0, RomRep::JdmPw0Boost, and RomRep::Obd0Pr3.

virtual void RomRep::VT0Ecu::disableOxygenSensors bool  disable  )  [pure virtual]
 

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPr3Boost, RomRep::JdmPw0, RomRep::JdmPw0Boost, and RomRep::Obd0Pr3.

virtual void RomRep::VT0Ecu::disablePsCheck bool  disable  )  [pure virtual]
 

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPr3Boost, RomRep::JdmPw0, RomRep::JdmPw0Boost, and RomRep::Obd0Pr3.

virtual void RomRep::VT0Ecu::disableSpeedLimiter bool  disable  )  [pure virtual]
 

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPr3Boost, RomRep::JdmPw0, RomRep::JdmPw0Boost, and RomRep::Obd0Pr3.

virtual void RomRep::VT0Ecu::disableTempCheck bool  disable  )  [pure virtual]
 

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPr3Boost, RomRep::JdmPw0, RomRep::JdmPw0Boost, and RomRep::Obd0Pr3.

virtual void RomRep::VT0Ecu::disableVssCheck bool  disable  )  [pure virtual]
 

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPr3Boost, RomRep::JdmPw0, RomRep::JdmPw0Boost, and RomRep::Obd0Pr3.

virtual void RomRep::VT0Ecu::enableLaunch bool  enable  )  [pure virtual]
 

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPr3Boost, RomRep::JdmPw0, RomRep::JdmPw0Boost, and RomRep::Obd0Pr3.

virtual int RomRep::VT0Ecu::getCelVectorLocation  )  [virtual]
 

Returns:
the location of the disabled vector

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

Implements RomRep::HondaEcu.

Reimplemented in RomRep::EuroPw0Dev, RomRep::EuroPw0ITB, RomRep::JdmPr3Dev, RomRep::JdmPr3ITB, RomRep::JdmPw0Dev, and RomRep::JdmPw0ITB.

virtual int RomRep::VT0Ecu::getLaunchRpm  )  [pure virtual]
 

Returns:
rpm

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPr3Boost, RomRep::JdmPw0, RomRep::JdmPw0Boost, and RomRep::Obd0Pr3.

virtual int RomRep::VT0Ecu::getLaunchSpeed  )  [pure virtual]
 

Returns:
speed in KPH

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPr3Boost, RomRep::JdmPw0, RomRep::JdmPw0Boost, and RomRep::Obd0Pr3.

virtual int RomRep::VT0Ecu::getNumVtec  )  [virtual]
 

Returns:
the number of vtec values in the rom

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

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

Returns:
rpm

int RomRep::VT0Ecu::getRevRestart  )  [virtual]
 

Returns:
rpm

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

Implements RomRep::HondaEcu.

int RomRep::VT0Ecu::getRpmScalarValue int  row,
bool  fuel,
bool  vtec
[virtual]
 

Returns:
value in the rpm scalar

Reimplemented from RomRep::HondaEcu.

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

Gets the RPM that adheres to revcount/dec.

Implements RomRep::HondaEcu.

int RomRep::VT0Ecu::getVtecDisengage int  loc  )  [virtual]
 

Returns:
rpm

int RomRep::VT0Ecu::getVtecEngage int  loc  )  [virtual]
 

Returns:
rpm

virtual int RomRep::VT0Ecu::is2ndOxygenSensorDisabled  )  [pure virtual]
 

Returns:
1 for true, 0 for false (issue with managed + unmanaged code and bools)

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPw0, and RomRep::Obd0Pr3.

virtual int RomRep::VT0Ecu::isCelCheckDisabled  )  [pure virtual]
 

Returns:
1 for true, 0 for false (issue with managed + unmanaged code and bools)

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPr3Boost, RomRep::JdmPw0, RomRep::JdmPw0Boost, and RomRep::Obd0Pr3.

virtual int RomRep::VT0Ecu::isChecksumDisabled  )  [pure virtual]
 

Returns:
1 for true, 0 for false (issue with managed + unmanaged code and bools)

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPr3Boost, RomRep::JdmPw0, RomRep::JdmPw0Boost, and RomRep::Obd0Pr3.

virtual int RomRep::VT0Ecu::isCodeBitDisable int  code  )  [pure virtual]
 

Returns:
is the input code a bit disable? If not then its a vector disable

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPw0, and RomRep::Obd0Pr3.

virtual int RomRep::VT0Ecu::isCodeBitDisabled int  code  )  [pure virtual]
 

is this code bit disabled?

Returns:
1 if yes, 0 if no, -1 if code is vec disable

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPw0, and RomRep::Obd0Pr3.

virtual int RomRep::VT0Ecu::isCodesDisabled  )  [pure virtual]
 

Returns:
1 if the code for vector disables is in the rom

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPw0, and RomRep::Obd0Pr3.

virtual int RomRep::VT0Ecu::isKnockSensorDisabled  )  [pure virtual]
 

Returns:
1 for true, 0 for false (issue with managed + unmanaged code and bools)

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPr3Boost, RomRep::JdmPw0, RomRep::JdmPw0Boost, and RomRep::Obd0Pr3.

virtual int RomRep::VT0Ecu::isLaunchDisabled  )  [pure virtual]
 

Returns:
1 for true, 0 for false (issue with managed + unmanaged code and bools)

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPr3Boost, RomRep::JdmPw0, RomRep::JdmPw0Boost, and RomRep::Obd0Pr3.

virtual int RomRep::VT0Ecu::isOxygenSensorsDisabled  )  [pure virtual]
 

Returns:
1 for true, 0 for false (issue with managed + unmanaged code and bools)

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPr3Boost, RomRep::JdmPw0, RomRep::JdmPw0Boost, and RomRep::Obd0Pr3.

virtual int RomRep::VT0Ecu::isPsCheckDisabled  )  [pure virtual]
 

Returns:
1 for true, 0 for false (issue with managed + unmanaged code and bools)

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPr3Boost, RomRep::JdmPw0, RomRep::JdmPw0Boost, and RomRep::Obd0Pr3.

virtual int RomRep::VT0Ecu::isSpeedLimiterDisabled  )  [pure virtual]
 

Returns:
1 for true, 0 for false (issue with managed + unmanaged code and bools)

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPr3Boost, RomRep::JdmPw0, RomRep::JdmPw0Boost, and RomRep::Obd0Pr3.

virtual int RomRep::VT0Ecu::isTempCheckDisabled  )  [pure virtual]
 

Returns:
1 for true, 0 for false (issue with managed + unmanaged code and bools)

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPr3Boost, RomRep::JdmPw0, RomRep::JdmPw0Boost, and RomRep::Obd0Pr3.

virtual int RomRep::VT0Ecu::isVssCheckDisabled  )  [pure virtual]
 

Returns:
1 for true, 0 for false (issue with managed + unmanaged code and bools)

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPr3Boost, RomRep::JdmPw0, RomRep::JdmPw0Boost, and RomRep::Obd0Pr3.

int RomRep::VT0Ecu::removeCelDisable int  code  )  [virtual]
 

Returns:
negative for fail, 1 for success

virtual void RomRep::VT0Ecu::setLaunchRpm int  val  )  [pure virtual]
 

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPr3Boost, RomRep::JdmPw0, RomRep::JdmPw0Boost, and RomRep::Obd0Pr3.

virtual void RomRep::VT0Ecu::setLaunchSpeed int  val  )  [pure virtual]
 

Implemented in RomRep::EuroPw0, RomRep::JdmPr3, RomRep::JdmPr3Boost, RomRep::JdmPw0, RomRep::JdmPw0Boost, and RomRep::Obd0Pr3.

void RomRep::VT0Ecu::setRevlimit int  val  )  [virtual]
 

void RomRep::VT0Ecu::setRevRestart int  val  )  [virtual]
 

void RomRep::VT0Ecu::setRpm RpmTwoByteValue stor,
int  val
[virtual]
 

void RomRep::VT0Ecu::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.

void RomRep::VT0Ecu::setup unsigned char rom  __gc[],
int  flen,
int  revloc,
int  restartloc,
int  vtecloc,
int  vtecnum,
int  ignmapad1,
int  ignmapad2,
int  fuelmapad1,
int  fuelmapad2,
int revscalars  __gc[],
String *  type,
int  width
[virtual]
 

void RomRep::VT0Ecu::setVtecDisengage int  loc,
int  val
[virtual]
 

void RomRep::VT0Ecu::setVtecEngage int  loc,
int  val
[virtual]
 


Member Data Documentation

int RomRep::VT0Ecu::celvecloc [protected]
 

int RomRep::VT0Ecu::numvtec [protected]
 

int RomRep::VT0Ecu::revconst = 1852000 [static]
 

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

RpmTwoByteValue* RomRep::VT0Ecu::revrestart [protected]
 

RpmByteValue* RomRep::VT0Ecu::vtec[] [protected]
 

Reimplemented from RomRep::HondaEcu.




BRE Documentation Home