mirror of https://github.com/FOME-Tech/fome-fw.git
need this one for now
This commit is contained in:
parent
ce1dad1100
commit
2ed148fa9b
|
@ -214,10 +214,11 @@ void TriggerWaveform::calculateExpectedEventCounts() {
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* See header for documentation
|
||||
*/
|
||||
void TriggerWaveform::addEvent720(angle_t angle, TriggerValue const state, TriggerWheel const channelIndex) {
|
||||
addEvent720(angle, state == TriggerValue::RISE, channelIndex);
|
||||
}
|
||||
|
||||
void TriggerWaveform::addEvent720(angle_t angle, bool state, TriggerWheel const channelIndex) {
|
||||
addEvent(angle / FOUR_STROKE_CYCLE_DURATION, state, channelIndex);
|
||||
}
|
||||
|
||||
|
|
|
@ -186,6 +186,7 @@ public:
|
|||
* Deprecated! many usages should be replaced by addEvent360
|
||||
*/
|
||||
void addEvent720(angle_t angle, TriggerValue const state, TriggerWheel const channelIndex = TriggerWheel::T_PRIMARY);
|
||||
void addEvent720(angle_t angle, bool state, TriggerWheel const channelIndex = TriggerWheel::T_PRIMARY);
|
||||
|
||||
/**
|
||||
* this method helps us use real world 360 degrees shape for FOUR_STROKE_CAM_SENSOR and FOUR_STROKE_CRANK_SENSOR
|
||||
|
|
Loading…
Reference in New Issue