auto-sync
This commit is contained in:
parent
7c5b5ce5b2
commit
772bfea71a
|
@ -207,7 +207,6 @@ void setCitroenBerlingoTU3JPConfiguration(DECLARE_ENGINE_PARAMETER_F) {
|
|||
* Speed Sensor
|
||||
*/
|
||||
boardConfiguration->vehicleSpeedSensorInputPin = GPIOA_8;
|
||||
engineConfiguration->hasVehicleSpeedSensor = true;
|
||||
/**
|
||||
* Other
|
||||
*/
|
||||
|
@ -218,6 +217,4 @@ void setCitroenBerlingoTU3JPConfiguration(DECLARE_ENGINE_PARAMETER_F) {
|
|||
|
||||
engineConfiguration->dizzySparkOutputPin = GPIOE_3;
|
||||
engineConfiguration->dizzySparkOutputPinMode = OM_INVERTED;
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -472,7 +472,6 @@ void setDodgeNeonNGCEngineConfiguration(DECLARE_ENGINE_PARAMETER_F) {
|
|||
#endif
|
||||
|
||||
boardConfiguration->vehicleSpeedSensorInputPin = GPIOA_8;
|
||||
engineConfiguration->hasVehicleSpeedSensor = true;
|
||||
|
||||
engineConfiguration->fanOnTemperature = 92;
|
||||
engineConfiguration->fanOffTemperature = 89;
|
||||
|
|
|
@ -253,17 +253,14 @@ static void printSensors(Logging *log, bool fileFormat) {
|
|||
reportSensorI(log, fileFormat, "version", "#", getRusEfiVersion());
|
||||
}
|
||||
|
||||
|
||||
if (engineConfiguration->hasVehicleSpeedSensor) {
|
||||
#if EFI_VEHICLE_SPEED || defined(__DOXYGEN__)
|
||||
if (hasVehicleSpeedSensor()) {
|
||||
float vehicleSpeed = getVehicleSpeed();
|
||||
#else
|
||||
float vehicleSpeed = 0;
|
||||
#endif /* EFI_PROD_CODE */
|
||||
reportSensorF(log, fileFormat, "vss", "kph", vehicleSpeed, 2);
|
||||
float sp2rpm = rpm == 0 ? 0 : vehicleSpeed / rpm;
|
||||
reportSensorF(log, fileFormat, "sp2rpm", "x", sp2rpm, 2);
|
||||
}
|
||||
#endif /* EFI_PROD_CODE */
|
||||
|
||||
reportSensorF(log, fileFormat, "knck_c", "count", engine->knockCount, 0);
|
||||
reportSensorF(log, fileFormat, "knck_v", "v", engine->knockVolts, 2);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sun Feb 05 11:39:34 EST 2017
|
||||
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sun Feb 05 22:20:28 EST 2017
|
||||
// begin
|
||||
#ifndef ENGINE_CONFIGURATION_GENERATED_H_
|
||||
#define ENGINE_CONFIGURATION_GENERATED_H_
|
||||
|
@ -1211,7 +1211,7 @@ typedef struct {
|
|||
bool canWriteEnabled : 1;
|
||||
/**
|
||||
offset 1488 bit 10 */
|
||||
bool hasVehicleSpeedSensor : 1;
|
||||
bool unusedBit_123 : 1;
|
||||
/**
|
||||
offset 1488 bit 11 */
|
||||
bool unusedbit_9 : 1;
|
||||
|
@ -2039,4 +2039,4 @@ typedef struct {
|
|||
|
||||
#endif
|
||||
// end
|
||||
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sun Feb 05 11:39:34 EST 2017
|
||||
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sun Feb 05 22:20:28 EST 2017
|
||||
|
|
|
@ -625,7 +625,7 @@
|
|||
#define unusedBit__2_offset 1488
|
||||
#define canReadEnabled_offset 1488
|
||||
#define canWriteEnabled_offset 1488
|
||||
#define hasVehicleSpeedSensor_offset 1488
|
||||
#define unusedBit_123_offset 1488
|
||||
#define unusedbit_9_offset 1488
|
||||
#define unusedbit_10_offset 1488
|
||||
#define isAlternatorControlEnabled_offset 1488
|
||||
|
|
|
@ -35,7 +35,7 @@ void setMockVehicleSpeed(float speedKPH) {
|
|||
float getVehicleSpeed(void) {
|
||||
if (mockVehicleSpeed != DEFAULT_MOCK_SPEED)
|
||||
return mockVehicleSpeed;
|
||||
if (!engineConfiguration->hasVehicleSpeedSensor)
|
||||
if (!hasVehicleSpeedSensor())
|
||||
return 0;
|
||||
efitick_t nowNt = getTimeNowNt();
|
||||
if (nowNt - lastSignalTimeNt > US2NT(US_PER_SECOND_LL))
|
||||
|
@ -52,7 +52,7 @@ static void vsAnaWidthCallback(void) {
|
|||
}
|
||||
|
||||
static void speedInfo(void) {
|
||||
scheduleMsg(logger, "VSS %s at %s", boolToString(engineConfiguration->hasVehicleSpeedSensor),
|
||||
scheduleMsg(logger, "VSS at %s",
|
||||
hwPortname(boardConfiguration->vehicleSpeedSensorInputPin));
|
||||
|
||||
scheduleMsg(logger, "c=%f eventCounter=%d speed=%f",
|
||||
|
@ -63,10 +63,14 @@ static void speedInfo(void) {
|
|||
|
||||
}
|
||||
|
||||
bool hasVehicleSpeedSensor() {
|
||||
return boardConfiguration->vehicleSpeedSensorInputPin != GPIO_UNASSIGNED;
|
||||
}
|
||||
|
||||
void initVehicleSpeed(Logging *l) {
|
||||
logger = l;
|
||||
addConsoleAction("speedinfo", speedInfo);
|
||||
if (boardConfiguration->vehicleSpeedSensorInputPin == GPIO_UNASSIGNED)
|
||||
if (!hasVehicleSpeedSensor())
|
||||
return;
|
||||
digital_input_s* vehicleSpeedInput = initWaveAnalyzerDriver("VSS", boardConfiguration->vehicleSpeedSensorInputPin);
|
||||
startInputDriver(vehicleSpeedInput, true);
|
||||
|
|
|
@ -16,5 +16,6 @@
|
|||
float getVehicleSpeed(void);
|
||||
void initVehicleSpeed(Logging *logger);
|
||||
void setMockVehicleSpeed(float speedKPH);
|
||||
bool hasVehicleSpeedSensor();
|
||||
|
||||
#endif /* HW_LAYER_VEHICLE_SPEED_H_ */
|
||||
|
|
|
@ -583,7 +583,7 @@ bit vvtDisplayInverted
|
|||
bit unusedBit__2
|
||||
bit canReadEnabled
|
||||
bit canWriteEnabled
|
||||
bit hasVehicleSpeedSensor
|
||||
bit unusedBit_123
|
||||
bit unusedbit_9
|
||||
bit unusedbit_10
|
||||
bit isAlternatorControlEnabled
|
||||
|
|
|
@ -249,5 +249,5 @@ int getRusEfiVersion(void) {
|
|||
return 123; // this is here to make the compiler happy about the unused array
|
||||
if (UNUSED_CCM_SIZE[0] * 0 != 0)
|
||||
return 3211; // this is here to make the compiler happy about the unused array
|
||||
return 20170129;
|
||||
return 20170205;
|
||||
}
|
||||
|
|
|
@ -1623,7 +1623,7 @@ cmd_test_idle_valve = "w\x00\x17\x00\x01"
|
|||
field = "Primary input channel", triggerInputPins1
|
||||
field = "Secondary channel", triggerInputPins2
|
||||
field = "Cam Sync/VVT input", camInput
|
||||
field = "VVT Input pin", vehicleSpeedSensorInputPin
|
||||
field = "Vehicle Speed Input pin", vehicleSpeedSensorInputPin
|
||||
field = "clutchDownPin", clutchDownPin
|
||||
field = "clutchUpPin", clutchUpPin
|
||||
|
||||
|
@ -1636,6 +1636,10 @@ cmd_test_idle_valve = "w\x00\x17\x00\x01"
|
|||
field = "Idle Stepper Step", idle_stepperStepPin
|
||||
field = "Idle Stepper Enable", stepperEnablePin
|
||||
field = "Fuel Pump Pin", fuelPumpPin
|
||||
field = "ETB Dir #1", etbDirectionPin1
|
||||
field = "ETB Dir #2", etbDirectionPin2
|
||||
field = "ETB Control #1", etbControlPin1
|
||||
field = "ETB Control #2", etbControlPin2
|
||||
|
||||
dialog = allPins3
|
||||
field = "Injection Pin 1", injectionPins1
|
||||
|
@ -1664,14 +1668,30 @@ cmd_test_idle_valve = "w\x00\x17\x00\x01"
|
|||
field = "Ignition Pin 11", ignitionPins11
|
||||
field = "Ignition Pin 12", ignitionPins12
|
||||
|
||||
dialog = allPins4
|
||||
field = "FSIO dig inp #1", fsioDigitalInputs1
|
||||
field = "FSIO dig inp #2", fsioDigitalInputs2
|
||||
field = "FSIO dig inp #3", fsioDigitalInputs3
|
||||
field = "FSIO dig inp #4", fsioDigitalInputs4
|
||||
field = "FSIO dig inp #5", fsioDigitalInputs5
|
||||
field = "FSIO dig inp #6", fsioDigitalInputs6
|
||||
field = "FSIO dig inp #7", fsioDigitalInputs7
|
||||
field = "FSIO dig inp #8", fsioDigitalInputs8
|
||||
field = "FSIO dig inp #9", fsioDigitalInputs9
|
||||
|
||||
|
||||
|
||||
dialog = allPins1_2, "", xAxis
|
||||
panel = allPins1
|
||||
panel = allPins2
|
||||
|
||||
dialog = allPins3_4, "", xAxis
|
||||
panel = allPins3
|
||||
panel = allPins4
|
||||
|
||||
dialog = allPins, "All Pins", xAxis
|
||||
panel = allPins1_2
|
||||
panel = allPins3
|
||||
panel = allPins3_4
|
||||
|
||||
|
||||
; Engine->CLT Thermistor Settings
|
||||
|
@ -1938,9 +1958,8 @@ cmd_test_idle_valve = "w\x00\x17\x00\x01"
|
|||
|
||||
; Engine->Speed Sensor
|
||||
dialog = speedSensor, "Speed Sensor Settings"
|
||||
field = "Enabled", hasVehicleSpeedSensor
|
||||
field = "Input pin", vehicleSpeedSensorInputPin, {hasVehicleSpeedSensor == 1}
|
||||
field = "revolution to speed mult", vehicleSpeedCoef, {hasVehicleSpeedSensor == 1}
|
||||
field = "Input pin", vehicleSpeedSensorInputPin
|
||||
field = "revolution to speed mult", vehicleSpeedCoef
|
||||
|
||||
; Engine->Other inputs
|
||||
dialog = analogInputs, "Analog inputs"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package com.rusefi.config;
|
||||
|
||||
// this file was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sun Feb 05 11:39:34 EST 2017
|
||||
// this file was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sun Feb 05 22:20:28 EST 2017
|
||||
public class Fields {
|
||||
public static final int LE_COMMAND_LENGTH = 200;
|
||||
public static final int FSIO_ADC_COUNT = 4;
|
||||
|
@ -629,7 +629,7 @@ public class Fields {
|
|||
public static final int unusedBit__2_offset = 1488;
|
||||
public static final int canReadEnabled_offset = 1488;
|
||||
public static final int canWriteEnabled_offset = 1488;
|
||||
public static final int hasVehicleSpeedSensor_offset = 1488;
|
||||
public static final int unusedBit_123_offset = 1488;
|
||||
public static final int unusedbit_9_offset = 1488;
|
||||
public static final int unusedbit_10_offset = 1488;
|
||||
public static final int isAlternatorControlEnabled_offset = 1488;
|
||||
|
@ -1394,7 +1394,7 @@ public class Fields {
|
|||
public static final Field UNUSEDBIT__2 = Field.create("UNUSEDBIT__2", 1488, FieldType.BIT, 7);
|
||||
public static final Field CANREADENABLED = Field.create("CANREADENABLED", 1488, FieldType.BIT, 8);
|
||||
public static final Field CANWRITEENABLED = Field.create("CANWRITEENABLED", 1488, FieldType.BIT, 9);
|
||||
public static final Field HASVEHICLESPEEDSENSOR = Field.create("HASVEHICLESPEEDSENSOR", 1488, FieldType.BIT, 10);
|
||||
public static final Field UNUSEDBIT_123 = Field.create("UNUSEDBIT_123", 1488, FieldType.BIT, 10);
|
||||
public static final Field UNUSEDBIT_9 = Field.create("UNUSEDBIT_9", 1488, FieldType.BIT, 11);
|
||||
public static final Field UNUSEDBIT_10 = Field.create("UNUSEDBIT_10", 1488, FieldType.BIT, 12);
|
||||
public static final Field ISALTERNATORCONTROLENABLED = Field.create("ISALTERNATORCONTROLENABLED", 1488, FieldType.BIT, 13);
|
||||
|
|
Loading…
Reference in New Issue