outputRequestPeriod into logs

This commit is contained in:
rusefillc 2022-09-12 21:41:23 -04:00
parent fae5f82125
commit ac33561801
2 changed files with 5 additions and 4 deletions

View File

@ -35,7 +35,7 @@ bool validateOffsetCount(size_t offset, size_t count, TsChannelBase* tsChannel)
// the ECU. Forcing a reboot will force TS to re-read the tune CRC, // the ECU. Forcing a reboot will force TS to re-read the tune CRC,
bool rebootForPresetPending = false; bool rebootForPresetPending = false;
static efitimeus_t prevRequestTime = 0; static efitick_t prevRequestTimeNt = 0;
/** /**
* @brief 'Output' command sends out a snapshot of current values * @brief 'Output' command sends out a snapshot of current values
@ -50,9 +50,9 @@ void TunerStudio::cmdOutputChannels(TsChannelBase* tsChannel, uint16_t offset, u
} }
if (offset < BLOCKING_FACTOR) { if (offset < BLOCKING_FACTOR) {
efitimeus_t now = getTimeNowUs(); efitick_t nowNt = getTimeNowNt();
engine->outputChannels.outputRequestPeriod = now - prevRequestTime; engine->outputChannels.outputRequestPeriod = nowNt - prevRequestTimeNt;
prevRequestTime = now; prevRequestTimeNt = nowNt;
} }
tsState.outputChannelsCommandCounter++; tsState.outputChannelsCommandCounter++;

View File

@ -4190,6 +4190,7 @@ gaugeCategory = ECU Status
firmwareVersionGauge = firmwareVersion , "ECU Software Version", "%", 0, 100, 0, 0, 100, 100, 0, 0 firmwareVersionGauge = firmwareVersion , "ECU Software Version", "%", 0, 100, 0, 0, 100, 100, 0, 0
timeSecondsGauge = seconds, "Uptime", "sec", 0, 100, 0, 0, 100, 100, 0, 0 timeSecondsGauge = seconds, "Uptime", "sec", 0, 100, 0, 0, 100, 100, 0, 0
tuneCrc16Gauge = tuneCrc16, "Tune CRC16", "", 0, 64000, 0, 0, 64000, 64000, 0, 0 tuneCrc16Gauge = tuneCrc16, "Tune CRC16", "", 0, 64000, 0, 0, 64000, 64000, 0, 0
outputRequestPeriodGauge = outputRequestPeriod, "outputRequestPeriod", "", 0, 64000, 0, 0, 64000, 64000, 0, 0
gaugeCategory = Debug gaugeCategory = Debug
debugF1Gauge = debugFloatField1, {bitStringValue( debugFieldF1List, debugMode )}, "", 0, 100, 0, 0, 100, 100, 4, 4 debugF1Gauge = debugFloatField1, {bitStringValue( debugFieldF1List, debugMode )}, "", 0, 100, 0, 0, 100, 100, 4, 4