|
rusEFI
The most advanced open source ECU
|
#include <rotational_idle.h>


Public Member Functions | |
| RotationalIdle () | |
| bool | shouldEngageRotationalIdle () |
| bool | shouldSkipSparkRotationalIdle () |
Additional Inherited Members | |
Data Fields inherited from live_data_rotational_idle_s | |
| bool | rotationalIdleEngaged: 1 {} |
| bool | rotIdleEngineTooSlow: 1 {} |
| bool | rotIdleEngineTooFast: 1 {} |
| bool | rotIdleEngineTooLowClt: 1 {} |
| bool | rotIdleEngineTooHot: 1 {} |
| bool | rotIdleTpsTooHigh: 1 {} |
| bool | unusedBit_6_6: 1 {} |
| bool | unusedBit_6_7: 1 {} |
| bool | unusedBit_6_8: 1 {} |
| bool | unusedBit_6_9: 1 {} |
| bool | unusedBit_6_10: 1 {} |
| bool | unusedBit_6_11: 1 {} |
| bool | unusedBit_6_12: 1 {} |
| bool | unusedBit_6_13: 1 {} |
| bool | unusedBit_6_14: 1 {} |
| bool | unusedBit_6_15: 1 {} |
| bool | unusedBit_6_16: 1 {} |
| bool | unusedBit_6_17: 1 {} |
| bool | unusedBit_6_18: 1 {} |
| bool | unusedBit_6_19: 1 {} |
| bool | unusedBit_6_20: 1 {} |
| bool | unusedBit_6_21: 1 {} |
| bool | unusedBit_6_22: 1 {} |
| bool | unusedBit_6_23: 1 {} |
| bool | unusedBit_6_24: 1 {} |
| bool | unusedBit_6_25: 1 {} |
| bool | unusedBit_6_26: 1 {} |
| bool | unusedBit_6_27: 1 {} |
| bool | unusedBit_6_28: 1 {} |
| bool | unusedBit_6_29: 1 {} |
| bool | unusedBit_6_30: 1 {} |
| bool | unusedBit_6_31: 1 {} |
Definition at line 12 of file rotational_idle.h.
| RotationalIdle::RotationalIdle | ( | ) |
Definition at line 4 of file rotational_idle.cpp.
| bool RotationalIdle::shouldEngageRotationalIdle | ( | ) |
Definition at line 8 of file rotational_idle.cpp.
Referenced by shouldSkipSparkRotationalIdle().


| bool RotationalIdle::shouldSkipSparkRotationalIdle | ( | ) |
Determines whether to skip spark based on rotational idle skip pattern configuration.
The skip pattern works using modulo arithmetic with configurable accumulators:
Example with acc_max=2, acc_adder=1, acc_offset=0: counter=0: (0 % 2) + 1 = 1 < 2 -> fire spark counter=1: (1 % 2) + 1 = 2 >= 2 -> skip spark counter=2: (2 % 2) + 1 = 1 < 2 -> fire spark counter=3: (3 % 2) + 1 = 2 >= 2 -> skip spark
If acc_max=0, that accumulator is disabled and won't skip.
Definition at line 55 of file rotational_idle.cpp.
