need Proteus QC
This commit is contained in:
parent
1c80310dc1
commit
529fb35c66
|
@ -472,7 +472,7 @@ static void mreBoardOldTest() {
|
|||
#if (BOARD_TLE8888_COUNT > 0)
|
||||
engineConfiguration->debugMode = DBG_TLE8888;
|
||||
|
||||
engineConfiguration->triggerSimulatorFrequency = HW_CHECK_RPM;
|
||||
engineConfiguration->triggerSimulatorFrequency = 202;
|
||||
// set cranking_rpm 500
|
||||
engineConfiguration->cranking.rpm = 100;
|
||||
// set cranking_dwell 200
|
||||
|
|
|
@ -179,12 +179,13 @@ void Engine::periodicSlowCallback() {
|
|||
fail("HW_CHECK_ALWAYS_STIMULATE required to have self-stimulation")
|
||||
#endif
|
||||
|
||||
int hwCheckRpm = 204;
|
||||
if (secondsNow > 2 && secondsNow < 180) {
|
||||
assertCloseTo("RPM", Sensor::get(SensorType::Rpm).Value, HW_CHECK_RPM);
|
||||
assertCloseTo("RPM", Sensor::get(SensorType::Rpm).Value, hwCheckRpm);
|
||||
} else if (!hasFirmwareError() && secondsNow > 180) {
|
||||
static bool isHappyTest = false;
|
||||
if (!isHappyTest) {
|
||||
setTriggerEmulatorRPM(5 * HW_CHECK_RPM);
|
||||
setTriggerEmulatorRPM(5 * hwCheckRpm);
|
||||
efiPrintf("TEST PASSED");
|
||||
isHappyTest = true;
|
||||
}
|
||||
|
|
|
@ -328,8 +328,6 @@ void scheduleReboot();
|
|||
bool isLockedFromUser();
|
||||
void unlockEcu(int password);
|
||||
|
||||
#define HW_CHECK_RPM 200
|
||||
|
||||
// These externs aren't needed for unit tests - everything is injected instead
|
||||
#if !EFI_UNIT_TEST
|
||||
extern Engine ___engine;
|
||||
|
|
Loading…
Reference in New Issue