auto-sync

This commit is contained in:
rusEfi 2014-09-04 17:02:56 -05:00
parent 5e5fb89899
commit 9968068b41
6 changed files with 21 additions and 4 deletions

View File

@ -307,7 +307,7 @@ void updateDevConsoleState(void) {
static void showFuelMap2(float rpm, float engineLoad) {
float baseFuel = getBaseTableFuel((int) rpm, engineLoad);
scheduleMsg(&logger2, "algo=%d", engineConfiguration->algorithm);
scheduleMsg(&logger2, "algo=%s", algorithmToString(engineConfiguration->algorithm));
float iatCorrection = getIatCorrection(getIntakeAirTemperature());
float cltCorrection = getCltCorrection(getCoolantTemperature());
float injectorLag = getInjectorLag(getVBatt());

View File

@ -82,3 +82,18 @@ const char * pinModeToString(pin_output_mode_e mode) {
return "unexpected";
}
}
const char * algorithmToString(engine_load_mode_e mode) {
switch(mode) {
case LM_TPS:
return "Alpha-N";
case LM_MAF:
return "Maf";
case LM_MAP:
return "pMap";
case LM_SPEED_DENSITY:
return "SD";
default:
return "unexpected";
}
}

View File

@ -12,5 +12,6 @@
const char* getConfigurationName(engine_type_e engineType);
const char * pinModeToString(pin_output_mode_e mode);
const char * algorithmToString(engine_load_mode_e mode);
#endif /* ENUM_STRINGS_H_ */

View File

@ -229,5 +229,5 @@ void firmwareError(const char *fmt, ...) {
}
int getRusEfiVersion(void) {
return 20140903;
return 20140904;
}

View File

@ -1,6 +1,6 @@
; this is TunerStudio project for www.rusefi.com DIY engine management system
; version 20140831
; version 20140904
; this should stop TS from looking for the CAN ID in the 2nd byte location and allow the page reads to work correctly.
enable2ndByteCanID = false
@ -108,7 +108,7 @@ enable2ndByteCanID = false
fixedModeTiming = scalar, U32, 784, "RPM", 1, 0, 0, 3000.0, 0 ; size 4
engineType = bits, U32, 788, [0:2], "AUDI_AAN", "DODGE_NEON_1995", "FORD_ASPIRE_1996", "FORD_FIESTA", "NISSAN_PRIMERA", "HONDA_ACCORD", "FORD_INLINE_6_1995", "GY6_139QMB"
fuelKeyBins = array, F32, 792, [16], "V", 1, 0, 0.0, 10.0, 2; size 132
fuelKeyBins = array, F32, 792, [16], "V", 1, 0, 0.0, 300.0, 2; size 132
fuelRpmBins = array, F32, 856, [16], "RPM", 1, 0, 0.0, 25500.0, 2; size 92
displacement = scalar, F32, 920, "°C", 1, 0, 0, 1000.0, 2 ; size 4
rpmHardLimit = scalar, U32, 924, "°C", 1, 0, 0, 10000.0, 2 ; size 4

View File

@ -5,6 +5,7 @@
#include <math.h>
#include "rusefi_enums.h"
#include "enum_strings.h"
#include "obd_error_codes.h"
#include "error_handling.h"