auto-sync
This commit is contained in:
parent
246716375b
commit
e78062b639
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -40,7 +40,7 @@ enable2ndByteCanID = false
|
||||||
|
|
||||||
; see PAGE_0_SIZE in C source code
|
; see PAGE_0_SIZE in C source code
|
||||||
; CONFIG_DEFINITION_START
|
; CONFIG_DEFINITION_START
|
||||||
; this section was generated by ConfigDefinition.jar on Fri May 22 22:10:51 EDT 2015
|
; this section was generated by ConfigDefinition.jar on Sat May 23 19:27:50 EDT 2015
|
||||||
|
|
||||||
pageSize = 15288
|
pageSize = 15288
|
||||||
page = 1
|
page = 1
|
||||||
|
@ -86,6 +86,7 @@ page = 1
|
||||||
iat_bias_resistor = scalar, F32, 312, "Ohm", 1, 0, 0, 200000, 1
|
iat_bias_resistor = scalar, F32, 312, "Ohm", 1, 0, 0, 200000, 1
|
||||||
iat_adcChannel = bits, U32, 316, [0:3] "PA0", "PA1", "PA2", "PA3", "PA4", "PA5", "PA6", "PA7", "PB0", "PB1", "PC0", "PC1", "PC2", "PC3", "PC4", "PC5"
|
iat_adcChannel = bits, U32, 316, [0:3] "PA0", "PA1", "PA2", "PA3", "PA4", "PA5", "PA6", "PA7", "PB0", "PB1", "PC0", "PC1", "PC2", "PC3", "PC4", "PC5"
|
||||||
;skipping unused offset 320
|
;skipping unused offset 320
|
||||||
|
;skipping knockBandCustom offset 332
|
||||||
sparkDwellBins = array, F32, 336, [8], "RPM", 1, 0.0, 0.0, 18000, 2
|
sparkDwellBins = array, F32, 336, [8], "RPM", 1, 0.0, 0.0, 18000, 2
|
||||||
sparkDwell = array, F32, 368, [8], "ms", 1, 0.0, 0.0, 30.0, 2
|
sparkDwell = array, F32, 368, [8], "ms", 1, 0.0, 0.0, 30.0, 2
|
||||||
displacement = scalar, F32, 400, "L", 1, 0, 0, 1000.0, 2
|
displacement = scalar, F32, 400, "L", 1, 0, 0, 1000.0, 2
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue