From 7937f97ffba235e7256be77b9e059cadb4d5b852 Mon Sep 17 00:00:00 2001 From: rusEfi Date: Tue, 17 Feb 2015 00:04:26 -0600 Subject: [PATCH] auto-sync --- firmware/console/tunerstudio/tunerstudio.cpp | 26 ++++++++++++-------- firmware/rusefi_config.ini | 2 +- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/firmware/console/tunerstudio/tunerstudio.cpp b/firmware/console/tunerstudio/tunerstudio.cpp index c50d74d4a4..423f82d1ca 100644 --- a/firmware/console/tunerstudio/tunerstudio.cpp +++ b/firmware/console/tunerstudio/tunerstudio.cpp @@ -112,9 +112,15 @@ void printTsStats(void) { portname(TS_SERIAL_TX_PORT), TS_SERIAL_TX_PIN, boardConfiguration->tunerStudioSerialSpeed); } #endif /* EFI_PROD_CODE */ - scheduleMsg(tsLogger, "TunerStudio total/error counter=%d/%d H=%d / O counter=%d size=%d / P=%d / B=%d", tsCounter, tsState.errorCounter, tsState.queryCommandCounter, tsState.outputChannelsCommandCounter, - sizeof(tsOutputChannels), tsState.readPageCommandsCounter, tsState.burnCommandCounter); - scheduleMsg(tsLogger, "TunerStudio W counter=%d / C = %d / P = %d / current page %d", tsState.writeValueCommandCounter, tsState.writeChunkCommandCounter, + scheduleMsg(tsLogger, "TunerStudio size=%d / total=%d / errors=%d / H=%d / O=%d / P=%d / B=%d", + sizeof(tsOutputChannels), + tsCounter, + tsState.errorCounter, + tsState.queryCommandCounter, + tsState.outputChannelsCommandCounter, + tsState.readPageCommandsCounter, + tsState.burnCommandCounter); + scheduleMsg(tsLogger, "TunerStudio W=%d / C=%d / P=%d / page=%d", tsState.writeValueCommandCounter, tsState.writeChunkCommandCounter, tsState.pageCommandCounter, tsState.currentPageId); scheduleMsg(tsLogger, "page size=%d", sizeof(engine_configuration_s)); @@ -124,14 +130,14 @@ void printTsStats(void) { // int fuelMapOffset = (int) (&engineConfiguration->fuelTable) - (int) engineConfiguration; // scheduleMsg(logger, "fuelTable %d", fuelMapOffset); // - int offset = (int) (&boardConfiguration->hip9011Gain) - (int) engineConfiguration; - scheduleMsg(tsLogger, "hip9011Gain %d", offset); +// int offset = (int) (&boardConfiguration->hip9011Gain) - (int) engineConfiguration; +// scheduleMsg(tsLogger, "hip9011Gain %d", offset); // - offset = (int) (&engineConfiguration->crankingCycleBins) - (int) engineConfiguration; - scheduleMsg(tsLogger, "crankingCycleBins %d", offset); - - offset = (int) (&engineConfiguration->engineCycle) - (int) engineConfiguration; - scheduleMsg(tsLogger, "engineCycle %d", offset); +// offset = (int) (&engineConfiguration->crankingCycleBins) - (int) engineConfiguration; +// scheduleMsg(tsLogger, "crankingCycleBins %d", offset); +// +// offset = (int) (&engineConfiguration->engineCycle) - (int) engineConfiguration; +// scheduleMsg(tsLogger, "engineCycle %d", offset); } static void setTsSpeed(int value) { diff --git a/firmware/rusefi_config.ini b/firmware/rusefi_config.ini index 8bfe7c3f2a..2529fe86ca 100644 --- a/firmware/rusefi_config.ini +++ b/firmware/rusefi_config.ini @@ -39,7 +39,7 @@ struct engine_configuration_s ! please note that 1024 here is 4 * FUEL_RPM_COUNT * FUEL_LOAD_COUNT custom fuel_table_t 1024 array, F32, @OFFSET@, [16x16],"ms", 1, 0, 0.0, 300.0, 2 -custom ve_table_t 1024 array, F32, @OFFSET@, [16x16],"deg", 1, 0, 0, 100.0, 2 +custom ve_table_t 1024 array, F32, @OFFSET@, [16x16],"%", 100, 0, 0, 100.0, 2 custom afr_table_t 1024 array, F32, @OFFSET@, [16x16],"deg", 1, 0, 0, 25.0, 2 ! please note that 1024 here is 4 * IGN_LOAD_COUNT * IGN_RPM_COUNT