tachPulsePerRev needs a safer default, MRE config needs a value

This commit is contained in:
rusefillc 2020-10-06 00:56:49 -04:00
parent 48be091241
commit d5d5bbba9f
2 changed files with 2 additions and 0 deletions

View File

@ -596,6 +596,7 @@ static void setMiataNB2_MRE_common(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
engineConfiguration->alternatorControlPin = GPIOD_6;
// GPIOD_7: "14 - GP Out 5" - selected to +12v
engineConfiguration->tachOutputPin = GPIOD_7; // tachometer
CONFIG(tachPulsePerRev) = 2;
// set cranking_fuel 9
engineConfiguration->cranking.baseFuel = 9; // higher value for return system NA conversion since lower fuel pressure

View File

@ -743,6 +743,7 @@ static void setDefaultEngineConfiguration(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
setDefaultBoostParameters(PASS_CONFIG_PARAMETER_SIGNATURE);
#endif
CONFIG(tachPulsePerRev) = 1;
// OBD-II default rate is 500kbps
CONFIG(canBaudRate) = B500KBPS;