auto-sync

This commit is contained in:
rusEfi 2015-05-23 20:07:33 -04:00
parent 2edf54e6a1
commit fc07fe13d8
6 changed files with 18 additions and 11 deletions

View File

@ -1,4 +1,4 @@
// this section was generated by config_definition.jar on Fri May 22 22:10:47 EDT 2015 // this section was generated by config_definition.jar on Sat May 23 19:27:45 EDT 2015
// begin // begin
#include "rusefi_types.h" #include "rusefi_types.h"
typedef struct { typedef struct {
@ -738,7 +738,11 @@ typedef struct {
/** /**
* offset 320 * offset 320
*/ */
float unused[4]; float unused[3];
/**
* offset 332
*/
float knockBandCustom;
/** /**
* offset 336 * offset 336
*/ */
@ -1329,4 +1333,4 @@ typedef struct {
} persistent_config_s; } persistent_config_s;
// end // end
// this section was generated by config_definition.jar on Fri May 22 22:10:47 EDT 2015 // this section was generated by config_definition.jar on Sat May 23 19:27:45 EDT 2015

View File

@ -108,6 +108,7 @@
#define iat_adcChannel_offset 316 #define iat_adcChannel_offset 316
#define unused_offset 320 #define unused_offset 320
#define unused_offset_hex 140 #define unused_offset_hex 140
#define knockBandCustom_offset 332
#define sparkDwellBins_offset 336 #define sparkDwellBins_offset 336
#define sparkDwellBins_offset_hex 150 #define sparkDwellBins_offset_hex 150
#define sparkDwell_offset 368 #define sparkDwell_offset 368

View File

@ -34,6 +34,7 @@
#include "HIP9011.h" #include "HIP9011.h"
#include "adc_inputs.h" #include "adc_inputs.h"
#include "efilib2.h" #include "efilib2.h"
#include "engine_controller.h"
#if EFI_HIP_9011 || defined(__DOXYGEN__) #if EFI_HIP_9011 || defined(__DOXYGEN__)
@ -102,6 +103,7 @@ static SPIDriver *driver = &SPID2;
EXTERN_ENGINE EXTERN_ENGINE
; ;
static char pinNameBuffer[16];
static void showHipInfo(void) { static void showHipInfo(void) {
if (!boardConfiguration->isHip9011Enabled) { if (!boardConfiguration->isHip9011Enabled) {
scheduleMsg(logger, "hip9011 driver not active"); scheduleMsg(logger, "hip9011 driver not active");
@ -109,18 +111,18 @@ static void showHipInfo(void) {
} }
printSpiState(logger, boardConfiguration); printSpiState(logger, boardConfiguration);
scheduleMsg(logger, "bore=%f freq=%f", engineConfiguration->cylinderBore, BAND(engineConfiguration->cylinderBore)); scheduleMsg(logger, "bore=%fmm freq=%fkHz", engineConfiguration->cylinderBore, BAND(engineConfiguration->cylinderBore));
scheduleMsg(logger, "band_index=%d gain %f/index=%d", bandIndex, boardConfiguration->hip9011Gain, currentGainIndex); scheduleMsg(logger, "band_index=%d gain %f/index=%d", bandIndex, boardConfiguration->hip9011Gain, currentGainIndex);
scheduleMsg(logger, "integrator index=%d hip_threshold=%f totalKnockEventsCount=%d", currentIntergratorIndex, scheduleMsg(logger, "integrator index=%d hip_threshold=%f totalKnockEventsCount=%d", currentIntergratorIndex,
engineConfiguration->hipThreshold, totalKnockEventsCount); engineConfiguration->hipThreshold, totalKnockEventsCount);
scheduleMsg(logger, "spi= int=%s response count=%d", hwPortname(boardConfiguration->hip9011IntHoldPin), scheduleMsg(logger, "spi= IntHold@%s response count=%d", hwPortname(boardConfiguration->hip9011IntHoldPin),
nonZeroResponse); nonZeroResponse);
scheduleMsg(logger, "CS=%s updateCount=%d", hwPortname(boardConfiguration->hip9011CsPin), settingUpdateCount); scheduleMsg(logger, "CS@%s updateCount=%d", hwPortname(boardConfiguration->hip9011CsPin), settingUpdateCount);
scheduleMsg(logger, "value=%f@#%d", getVoltageDivided("hip", engineConfiguration->hipOutputChannel), scheduleMsg(logger, "hip output=%fv@%s", getVoltageDivided("hip", engineConfiguration->hipOutputChannel),
engineConfiguration->hipOutputChannel); getPinNameByAdcChannel(engineConfiguration->hipOutputChannel, pinNameBuffer));
} }
void setHip9011FrankensoPinout(void) { void setHip9011FrankensoPinout(void) {

View File

@ -159,7 +159,8 @@ MAP_sensor_config_s map;@see hasMapSensor\n@see isMapAveragingEnabled
ThermistorConf clt;todo: merge with channel settings, use full-scale Thermistor here! ThermistorConf clt;todo: merge with channel settings, use full-scale Thermistor here!
ThermistorConf iat; ThermistorConf iat;
float[4] unused; float[3] unused;
float knockBandCustom;
float[DWELL_CURVE_SIZE] sparkDwellBins;;"RPM", 1, 0.0, 0.0, 18000, 2 float[DWELL_CURVE_SIZE] sparkDwellBins;;"RPM", 1, 0.0, 0.0, 18000, 2

View File

@ -214,7 +214,7 @@ public class AutoTest {
String msg = "ford 6"; String msg = "ford 6";
double x = 12.84; double x = 8.16;
assertWave(msg, chart, EngineChart.SPARK_1, 0.01666, x, x + 120, x + 240, x + 360, x + 480, x + 600); assertWave(msg, chart, EngineChart.SPARK_1, 0.01666, x, x + 120, x + 240, x + 360, x + 480, x + 600);
assertWaveNull(msg, chart, EngineChart.TRIGGER_2); assertWaveNull(msg, chart, EngineChart.TRIGGER_2);

View File

@ -96,7 +96,6 @@ public class TestingUtils {
System.out.println("t " + revolutionLog.getCrankAngleByTime(ud.upTime)); System.out.println("t " + revolutionLog.getCrankAngleByTime(ud.upTime));
} }
assertCloseEnough(msg + " width for " + key, actualWidth, widthRatio, expectedWidth); assertCloseEnough(msg + " width for " + key, actualWidth, widthRatio, expectedWidth);
} }
} }