unused parameters

This commit is contained in:
Matthew Kennedy 2024-01-07 21:11:34 -05:00 committed by rusefillc
parent 3315aa9434
commit 1302f780b2
4 changed files with 12 additions and 12 deletions

View File

@ -195,14 +195,14 @@ void FuelSchedule::addFuelEvents() {
isReady = true; isReady = true;
} }
void FuelSchedule::onTriggerTooth(int rpm, efitick_t nowNt, float currentPhase, float nextPhase) { void FuelSchedule::onTriggerTooth(efitick_t nowNt, float currentPhase, float nextPhase) {
// Wait for schedule to be built - this happens the first time we get RPM // Wait for schedule to be built - this happens the first time we get RPM
if (!isReady) { if (!isReady) {
return; return;
} }
for (size_t i = 0; i < engineConfiguration->cylindersCount; i++) { for (size_t i = 0; i < engineConfiguration->cylindersCount; i++) {
elements[i].onTriggerTooth(rpm, nowNt, currentPhase, nextPhase); elements[i].onTriggerTooth(nowNt, currentPhase, nextPhase);
} }
} }

View File

@ -20,7 +20,7 @@ public:
bool update(); bool update();
// Call this every decoded trigger tooth. It will schedule any relevant events for this injector. // Call this every decoded trigger tooth. It will schedule any relevant events for this injector.
void onTriggerTooth(int rpm, efitick_t nowNt, float currentPhase, float nextPhase); void onTriggerTooth(efitick_t nowNt, float currentPhase, float nextPhase);
WallFuel& getWallFuel(); WallFuel& getWallFuel();
@ -66,7 +66,7 @@ public:
void invalidate(); void invalidate();
// Call this every trigger tooth. It will schedule all required injector events. // Call this every trigger tooth. It will schedule all required injector events.
void onTriggerTooth(int rpm, efitick_t nowNt, float currentPhase, float nextPhase); void onTriggerTooth(efitick_t nowNt, float currentPhase, float nextPhase);
/** /**
* this method schedules all fuel events for an engine cycle * this method schedules all fuel events for an engine cycle

View File

@ -64,7 +64,7 @@ void turnInjectionPinLow(InjectionEvent *event) {
event->update(); event->update();
} }
void InjectionEvent::onTriggerTooth(int rpm, efitick_t nowNt, float currentPhase, float nextPhase) { void InjectionEvent::onTriggerTooth(efitick_t nowNt, float currentPhase, float nextPhase) {
auto eventAngle = injectionStartAngle; auto eventAngle = injectionStartAngle;
// Determine whether our angle is going to happen before (or near) the next tooth // Determine whether our angle is going to happen before (or near) the next tooth
@ -164,7 +164,7 @@ void InjectionEvent::onTriggerTooth(int rpm, efitick_t nowNt, float currentPhase
#endif /* EFI_DEFAILED_LOGGING */ #endif /* EFI_DEFAILED_LOGGING */
} }
static void handleFuel(int rpm, efitick_t nowNt, float currentPhase, float nextPhase) { static void handleFuel(efitick_t nowNt, float currentPhase, float nextPhase) {
ScopePerf perf(PE::HandleFuel); ScopePerf perf(PE::HandleFuel);
efiAssertVoid(ObdCode::CUSTOM_STACK_6627, hasLotsOfRemainingStack(), "lowstck#3"); efiAssertVoid(ObdCode::CUSTOM_STACK_6627, hasLotsOfRemainingStack(), "lowstck#3");
@ -191,7 +191,7 @@ static void handleFuel(int rpm, efitick_t nowNt, float currentPhase, float nextP
} }
#endif /* FUEL_MATH_EXTREME_LOGGING */ #endif /* FUEL_MATH_EXTREME_LOGGING */
fs->onTriggerTooth(rpm, nowNt, currentPhase, nextPhase); fs->onTriggerTooth(nowNt, currentPhase, nextPhase);
} }
/** /**
@ -240,7 +240,7 @@ void mainTriggerCallback(uint32_t trgEventIndex, efitick_t edgeTimestamp, angle_
* For fuel we schedule start of injection based on trigger angle, and then inject for * For fuel we schedule start of injection based on trigger angle, and then inject for
* specified duration of time * specified duration of time
*/ */
handleFuel(rpm, edgeTimestamp, currentPhase, nextPhase); handleFuel(edgeTimestamp, currentPhase, nextPhase);
engine->module<TriggerScheduler>()->scheduleEventsUntilNextTriggerTooth( engine->module<TriggerScheduler>()->scheduleEventsUntilNextTriggerTooth(
rpm, edgeTimestamp, currentPhase, nextPhase); rpm, edgeTimestamp, currentPhase, nextPhase);

View File

@ -43,7 +43,7 @@ TEST(injectionScheduling, InjectionIsScheduled) {
event.injectionStartAngle = 125; event.injectionStartAngle = 125;
// We are at 120 degrees now, next tooth 130 // We are at 120 degrees now, next tooth 130
event.onTriggerTooth(1000, nowNt, 120, 130); event.onTriggerTooth(nowNt, 120, 130);
} }
TEST(injectionScheduling, InjectionIsScheduledBeforeWraparound) { TEST(injectionScheduling, InjectionIsScheduledBeforeWraparound) {
@ -82,7 +82,7 @@ TEST(injectionScheduling, InjectionIsScheduledBeforeWraparound) {
event.injectionStartAngle = 715; event.injectionStartAngle = 715;
// We are at 710 degrees now, next tooth 010 // We are at 710 degrees now, next tooth 010
event.onTriggerTooth(1000, nowNt, 710, 010); event.onTriggerTooth(nowNt, 710, 010);
} }
TEST(injectionScheduling, InjectionIsScheduledAfterWraparound) { TEST(injectionScheduling, InjectionIsScheduledAfterWraparound) {
@ -121,7 +121,7 @@ TEST(injectionScheduling, InjectionIsScheduledAfterWraparound) {
event.injectionStartAngle = 5; event.injectionStartAngle = 5;
// We are at 710 degrees now, next tooth 010 // We are at 710 degrees now, next tooth 010
event.onTriggerTooth(1000, nowNt, 710, 010); event.onTriggerTooth(nowNt, 710, 010);
} }
TEST(injectionScheduling, InjectionNotScheduled) { TEST(injectionScheduling, InjectionNotScheduled) {
@ -155,5 +155,5 @@ TEST(injectionScheduling, InjectionNotScheduled) {
event.injectionStartAngle = 125; event.injectionStartAngle = 125;
// We are at 130 degrees now, next tooth 140 // We are at 130 degrees now, next tooth 140
event.onTriggerTooth(1000, nowNt, 130, 140); event.onTriggerTooth(nowNt, 130, 140);
} }