ETB duty cycle jitter #4833

This commit is contained in:
Andrey 2022-11-29 20:51:28 -05:00
parent 98e886e00b
commit 6ad3ce13d6
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ public:
protected:
// This is set if an automatic TPS calibration should be run
bool m_isAutocal = false;
bool wasInputError = false;
int prevErrorState = false;
etb_function_e getFunction() const { return m_function; }
DcMotor* getMotor() { return m_motor; }

View File

@ -65,5 +65,5 @@ TEST(etb, integratedTpsJitter) {
Sensor::setInvalidMockValue(SensorType::Tps1);
etb->update();
ASSERT_EQ(1, etb->etbInputErrorCounter);
ASSERT_EQ(2, etb->etbInputErrorCounter);
}