nicer defaults order

This commit is contained in:
rusefi 2023-05-15 19:46:16 -04:00
parent 9bc11cdc69
commit a2fde9bc4c
2 changed files with 12 additions and 12 deletions

View File

@ -37,26 +37,25 @@ static const SPIConfig spiCfg = {
void GDIConfiguration::resetToDefaults() {
version = PERSISTENCE_VERSION;
inputCanID = GDI4_BASE_ADDRESS + 0x10;
BoostVoltage = 65;
BoostCurrent = 13;
PeakCurrent = 9.4f;
HoldCurrent = 3.7f;
TpeakOff = 10;
TpeakDuration = 700; // 0.7ms
Tbypass = 10;
TholdOff = 60;
THoldDuration = 10000; // 10ms
TBoostMin = 100;
TBoostMax = 400;
PeakCurrent = 9.4f;
TpeakDuration = 700; // 700us = 0.7ms
TpeakOff = 10;
Tbypass = 10;
HoldCurrent = 3.7f;
TholdOff = 60;
THoldDuration = 10000; // 10000us = 10ms
PumpPeakCurrent = 5;
PumpHoldCurrent = 3;
PumpTholdOff = 10;
PumpTholdTot = 10000;
PumpTholdTot = 10000; // 10000us = 10ms
}
GDIConfiguration configuration;

View File

@ -23,6 +23,7 @@ struct GDIConfiguration {
// CAN protocol: packet 0, offset 1
uint16_t BoostVoltage;
// CAN protocol: packet 0, offset 3
// Amps
float BoostCurrent;
// CAN protocol: packet 0, offset 5
uint16_t TBoostMin;