what's the difference between setRpmValue and assignRpmValue #3815

refactoring
This commit is contained in:
Andrey 2022-01-20 21:57:27 -05:00
parent 5f788415ea
commit c17592bfe2
1 changed files with 3 additions and 3 deletions

View File

@ -250,7 +250,7 @@ TEST(HPFP, Schedule) {
{
testing::InSequence is;
// First call to assignRpmValue will cause a dummy call to fast periodic timer.
// First call to setRpmValue will cause a dummy call to fast periodic timer.
// Injection Mass will be 0 so expect a no-op.
EXPECT_CALL(mockExec, scheduleByTimestampNt(testing::NotNull(), &hpfp.m_event.scheduling, nt0, action_s(HpfpController::pinTurnOff, &hpfp)));
@ -266,12 +266,12 @@ TEST(HPFP, Schedule) {
// peak pos occurs after the next tooth.
engineConfiguration->hpfpPeakPos = 90;
// This will call the fast callback routine
engine->rpmCalculator.assignRpmValue(1000);
engine->rpmCalculator.setRpmValue(1000);
engine->injectionMass[0] = 0.05 /* cc/cyl */ * fuelDensity;
engineConfiguration->hpfpValvePin = GPIOA_2; // arbitrary
hpfp.onFastCallback();
// First event was scheduled by assignRpmValue with 0 injection mass. So, it's off.
// First event was scheduled by setRpmValue with 0 injection mass. So, it's off.
eth.assertTriggerEvent("h0", 0, &hpfp.m_event, (void*)&HpfpController::pinTurnOff,
1, angle0 - 0);