better field name
This commit is contained in:
parent
a7b9956b7f
commit
58a8dfdb42
|
@ -757,7 +757,7 @@ void updateTunerStudioState(TunerStudioOutputChannels *tsOutputChannels DECLARE_
|
|||
tsOutputChannels->debugFloatField1 = getVoltage("fsio", engineConfiguration->fsioAdc[0]);
|
||||
}
|
||||
} else if (engineConfiguration->debugMode == DBG_VEHICLE_SPEED_SENSOR) {
|
||||
tsOutputChannels->debugIntField1 = engine->engineState.vssDebugEventCounter;
|
||||
tsOutputChannels->debugIntField1 = engine->engineState.vssEventCounter;
|
||||
} else if (engineConfiguration->debugMode == DBG_SD_CARD) {
|
||||
tsOutputChannels->debugIntField1 = engine->engineState.totalLoggedBytes;
|
||||
} else if (engineConfiguration->debugMode == DBG_CRANKING_DETAILS) {
|
||||
|
|
|
@ -147,7 +147,7 @@ EngineState::EngineState() {
|
|||
lastErrorCode = 0;
|
||||
crankingTime = 0;
|
||||
timeSinceCranking = 0;
|
||||
vssDebugEventCounter = 0;
|
||||
vssEventCounter = 0;
|
||||
targetAFR = 0;
|
||||
tpsAccelEnrich = 0;
|
||||
tChargeK = 0;
|
||||
|
|
|
@ -158,7 +158,7 @@ public:
|
|||
float currentVE;
|
||||
float targetAFR;
|
||||
|
||||
int vssDebugEventCounter;
|
||||
int vssEventCounter;
|
||||
int totalLoggedBytes;
|
||||
|
||||
|
||||
|
|
|
@ -151,7 +151,7 @@ static void canMazdaRX8(void) {
|
|||
|
||||
commonTxInit(CAN_MAZDA_RX_STATUS_2);
|
||||
txmsg.data8[0] = (uint8_t)(engine->sensors.clt + 69); //temp gauge //~170 is red, ~165 last bar, 152 centre, 90 first bar, 92 second bar
|
||||
txmsg.data8[1] = ((int16_t)(engine->engineState.vssDebugEventCounter*(engineConfiguration->vehicleSpeedCoef*0.277*2.58))) & 0xff;
|
||||
txmsg.data8[1] = ((int16_t)(engine->engineState.vssEventCounter*(engineConfiguration->vehicleSpeedCoef*0.277*2.58))) & 0xff;
|
||||
txmsg.data8[2] = 0x00; // unknown
|
||||
txmsg.data8[3] = 0x00; //unknown
|
||||
txmsg.data8[4] = 0x01; //Oil Pressure (not really a gauge)
|
||||
|
|
|
@ -44,7 +44,7 @@ float getVehicleSpeed(void) {
|
|||
}
|
||||
|
||||
static void vsAnaWidthCallback(void) {
|
||||
engine->engineState.vssDebugEventCounter++;
|
||||
engine->engineState.vssEventCounter++;
|
||||
efitick_t nowNt = getTimeNowNt();
|
||||
vssDiff = nowNt - lastSignalTimeNt;
|
||||
lastSignalTimeNt = nowNt;
|
||||
|
@ -56,7 +56,7 @@ static void speedInfo(void) {
|
|||
|
||||
scheduleMsg(logger, "c=%f eventCounter=%d speed=%f",
|
||||
engineConfiguration->vehicleSpeedCoef,
|
||||
engine->engineState.vssDebugEventCounter,
|
||||
engine->engineState.vssEventCounter,
|
||||
getVehicleSpeed());
|
||||
scheduleMsg(logger, "vss diff %d", vssDiff);
|
||||
|
||||
|
|
Loading…
Reference in New Issue