depressing code comment
This commit is contained in:
parent
5adb42f939
commit
4463ca1fdb
|
@ -1153,12 +1153,16 @@ void prepareShapes(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
|||
|
||||
#endif
|
||||
|
||||
/**
|
||||
* todo: why is this method NOT reciprocal to getCrankDivider?!
|
||||
*/
|
||||
float getRpmMultiplier(operation_mode_e mode) {
|
||||
if (mode == FOUR_STROKE_SYMMETRICAL_CRANK_SENSOR) {
|
||||
return 2;
|
||||
} else if (mode == FOUR_STROKE_CAM_SENSOR) {
|
||||
return 0.5;
|
||||
} else if (mode == FOUR_STROKE_CRANK_SENSOR) {
|
||||
// unit test coverage still runs if the value below is changed to '2' not a great sign!
|
||||
return 1;
|
||||
}
|
||||
return 1;
|
||||
|
|
|
@ -474,6 +474,9 @@ bool TriggerNoiseFilter::noiseFilter(efitick_t nowNt,
|
|||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* todo: why is this method NOT reciprocal to getRpmMultiplier?!
|
||||
*/
|
||||
int getCrankDivider(operation_mode_e operationMode) {
|
||||
if (operationMode == FOUR_STROKE_CAM_SENSOR || operationMode == TWO_STROKE) {
|
||||
// That's easy - trigger cycle matches engine cycle
|
||||
|
|
Loading…
Reference in New Issue