PJSC(Pump Jet Solenoid Controller)はArduinoを使用したバイク用燃料噴射コントローラです。このプロジェクトは、オープンソースECUプロジェクト『Speeduino』をベースにしています。
[PJSC v1.03]大気圧センサー、排気温度センサーのサンプリングレートを1Hzから4Hzに変更
@@ -3957,9 +3957,9 @@ | ||
3957 | 3957 | exValveADCGauge = valvePositionADC, "Exhaust Valve ADC", "", 0, 255, -1, -1, 256, 256, 0, 0 ;[PJSC]For External Trigger |
3958 | 3958 | exSparkGauge = sparkedAngle, "Sparked Angle", "deg BTDC", -20, 60, -10, 0, 45, 50, 0, 0 ;[PJSC]For External Trigger |
3959 | 3959 | dutyFreqGauge = dutyFreq, "Duty Pulse Frequency", "Hz", 0, 100, 5, 10, 90, 95, 0, 0 ;[PJSC]For capturing duty pulse |
3960 | - dutyRatioGauge = dutyRatio, "Duty Ratio", "%", 0, 100, 5, 10, 90, 95, 0, 0 ;[PJSC]For capturing duty pulse | |
3960 | + dutyRatioGauge = dutyRatio, "Duty Ratio", "%", 0, 100, -1, -1, 90, 95, 1, 1 ;[PJSC]For capturing duty pulse | |
3961 | 3961 | dutyFreqGauge2 = dutyFreq2, "Duty Pulse Frequency 2", "Hz", 0, 100, 5, 10, 90, 95, 0, 0 ;[PJSC]For capturing duty pulse |
3962 | - dutyRatioGauge2 = dutyRatio2, "Duty Ratio 2", "%", 0, 100, 5, 10, 90, 95, 0, 0 ;[PJSC]For capturing duty pulse | |
3962 | + dutyRatioGauge2 = dutyRatio2, "Duty Ratio 2", "%", 0, 100, -1, -1, 90, 95, 1, 1 ;[PJSC]For capturing duty pulse | |
3963 | 3963 | baroGauge = baro, "Barometric Pressure", "kPa", 0, 200, 20, 60, 140, 180, 1, 0 ;[PJSC]Add the gage for barometric sensor |
3964 | 3964 | afrAnalyzeGauge1 = afr_analyze1, "Air:Fuel Ratio for VE1", "", 7, 25, 12, 13, 15, 16, 2, 2 ;[PJSC v1.02] For AFR sensor selection |
3965 | 3965 | afrAnalyzeGauge2 = afr_analyze2, "Air:Fuel Ratio for VE2", "", 7, 25, 12, 13, 15, 16, 2, 2 ;[PJSC v1.02] For AFR sensor selection |
@@ -3969,7 +3969,9 @@ | ||
3969 | 3969 | EGTGauge = EGT, "Exhaust Gas Temperature", "TEMP", -100, 1000, -1, -1, 600, 800, 0, 0 ;[PJSC v1.03] For Exhaust gas temperature input |
3970 | 3970 | ignGapGauge = ignGap, "Ignition Gap tTime", "mSec", 0, 10, 0, 0, 8, 9, 2, 2 ;[PJSC v1.03] For misfire detection |
3971 | 3971 | sparkRPMGauge = sparkRPM, "External Spark RPM", "RPM", 0, {rpmhigh},600, 1000,{rpmwarn},{rpmdang}, 0, 0 ;[PJSC v1.03] For misfire detection |
3972 | - viecleSpeedGauge = viecleSpeed, "Viecle Speed", "km/h", 0, 300, 0, 0, 300, 300, 0, 0 ;[PJSC v1.03] For capturing viecle speed | |
3972 | + viecleSpeedGauge = viecleSpeed, "Viecle Speed", "km/h", 0, 300, 0, 0, 300, 300, 1, 1 ;[PJSC v1.03] For capturing viecle speed | |
3973 | + dutyPulseOnTGauge = dutyPulseOn_T, "Pulse ON Time", "mSec", 0, 10, 0, 0, 8, 9, 2, 2 ;[PJSC v1.03] For capturing duty pulse | |
3974 | + dutyPulseOnTGauge2= dutyPulseOn_T2, "Pulse ON Time2", "mSec", 0, 10, 0, 0, 8, 9, 2, 2 ;[PJSC v1.03] For capturing duty pulse | |
3973 | 3975 | |
3974 | 3976 | #if CELSIUS |
3975 | 3977 | cltGauge = coolant, "Coolant Temp", "TEMP", -10, 120, 0, 10, 95, 110, 0, 0 |
@@ -4071,7 +4073,7 @@ | ||
4071 | 4073 | ochGetCommand = "r\$tsCanId\x30%2o%2c" |
4072 | 4074 | ;[PJSC] ochBlockSize = 90 |
4073 | 4075 | ;[PJSC v1.03] ochBlockSize = 116 ;[PJSC v1.02] Extend block size |
4074 | - ochBlockSize = 128 ;[PJSC v1.03] Extend block size | |
4076 | + ochBlockSize = 132 ;[PJSC v1.03] Extend block size | |
4075 | 4077 | |
4076 | 4078 | secl = scalar, U08, 0, "sec", 1.000, 0.000 |
4077 | 4079 | status1 = scalar, U08, 1, "bits", 1.000, 0.000 |
@@ -4178,9 +4180,9 @@ | ||
4178 | 4180 | valvePositionADC = scalar, U08, 94, "ADC", 1.000, 0.000 ;[PJSC]Extend output channel for External Trigger |
4179 | 4181 | sparkedAngle = scalar, S16, 95, "deg", 1.000, 0.000 ;[PJSC]Extend output channel for External Trigger |
4180 | 4182 | dutyFreq = scalar, U16, 97, "Hz", 1.000, 0.000 ;[PJSC]For capturing duty pulse |
4181 | - dutyRatio = scalar, U16, 99, "%", 1.000, 0.000 ;[PJSC]For capturing duty pulse | |
4183 | + dutyRatio = scalar, U16, 99, "%", 0.100, 0.000 ;[PJSC]For capturing duty pulse | |
4182 | 4184 | dutyFreq2 = scalar, U16, 101, "Hz", 1.000, 0.000 ;[PJSC]For capturing duty pulse |
4183 | - dutyRatio2 = scalar, U16, 103, "%", 1.000, 0.000 ;[PJSC]For capturing duty pulse | |
4185 | + dutyRatio2 = scalar, U16, 103, "%", 0.100, 0.000 ;[PJSC]For capturing duty pulse | |
4184 | 4186 | testCnt = scalar, U16, 105, "", 1.000, 0.000 ;[PJSC v1.01]For test mode |
4185 | 4187 | afr2 = scalar, U08, 107, "O2", 0.100, 0.000 ;[PJSC v1.01] |
4186 | 4188 | fuelLoad2 = scalar, S16, 108, { bitStringValue( algorithmUnits2 , algorithm2 ) }, 1.000, 0.000 ;[PJSC v1.01]For dual fuel load |
@@ -4196,7 +4198,9 @@ | ||
4196 | 4198 | EGTADC = scalar, U16, 120, "ADC", 1.000, 0.000 ;[PJSC v1.03]For Exhaust gas temperature input |
4197 | 4199 | ignGap = scalar, U16, 122, "ms", 0.001, 0.000 ;[PJSC v1.03]For misfire detection |
4198 | 4200 | sparkRPM = scalar, U16, 124, "rpm", 1.000, 0.000 ;[PJSC v1.03]For misfire detection |
4199 | - viecleSpeed = scalar, U16, 126, "km/h", 1.000, 0.000 ;[PJSC v1.03]For capturing viecle speed | |
4201 | + viecleSpeed = scalar, U16, 126, "km/h", 0.100, 0.000 ;[PJSC v1.03]For capturing viecle speed | |
4202 | + dutyPulseOn_T = scalar, U16, 128, "ms", 0.001, 0.000 ;[PJSC v1.03]For capturing duty pulse | |
4203 | + dutyPulseOn_T2 = scalar, U16, 130, "ms", 0.001, 0.000 ;[PJSC v1.03]For capturing duty pulse | |
4200 | 4204 | |
4201 | 4205 | |
4202 | 4206 | #if CELSIUS |
@@ -4332,7 +4336,10 @@ | ||
4332 | 4336 | entry = ignGap, "Ign Gap Time", float, "%.1f", { exTrigModeSelect == 3 } ;[PJSC v1.03] For misfire detection |
4333 | 4337 | entry = sparkRPM, "External Spark RPM", int, "%d", { exTrigModeSelect == 3 } ;[PJSC v1.03] For misfire detection |
4334 | 4338 | entry = viecleSpeed, "Viecle Speed", int, "%d", { exTrigModeSelect == 4 } ;[PJSC v1.03] For capturing viecle speed |
4339 | + entry = dutyPulseOn_T, "Pulse ON Time",float, "%.1f", { dutyPulseCaptureEnabled } ;[PJSC v1.03] For capturing duty pulse | |
4340 | + entry = dutyPulseOn_T2, "Pulse ON Time2",float, "%.1f", { dutyPulseCaptureEnabled2 } ;[PJSC v1.03] For capturing duty pulse | |
4335 | 4341 | |
4342 | + | |
4336 | 4343 | entry = auxin_gauge0, "AuxIn CH0", int, "%d" |
4337 | 4344 | entry = auxin_gauge1, "AuxIn CH1", int, "%d" |
4338 | 4345 | entry = auxin_gauge2, "AuxIn CH2", int, "%d" |
@@ -20,7 +20,7 @@ | ||
20 | 20 | |
21 | 21 | //[PJSC]#define SERIAL_PACKET_SIZE 90 //Must match ochBlockSize in ini file |
22 | 22 | //[PJSC v1.03]#define SERIAL_PACKET_SIZE 116 //[PJSC v1.02] Extend serial packet block size |
23 | -#define SERIAL_PACKET_SIZE 128 //[PJSC v1.03] Extend serial packet block size | |
23 | +#define SERIAL_PACKET_SIZE 132 //[PJSC v1.03] Extend serial packet block size | |
24 | 24 | |
25 | 25 | byte currentPage = 1;//Not the same as the speeduino config page numbers |
26 | 26 | bool isMap = true; |