enjoying C++11

This commit is contained in:
rusefi 2019-01-14 00:20:50 -05:00
parent 7bdf2cdbbd
commit 689726c801
2 changed files with 5 additions and 2 deletions

View File

@ -52,7 +52,6 @@ trigger_shape_helper::trigger_shape_helper() {
TriggerShape::TriggerShape() : TriggerShape::TriggerShape() :
wave(switchTimesBuffer, NULL) { wave(switchTimesBuffer, NULL) {
version = 0;
initialize(OM_NONE, false); initialize(OM_NONE, false);
wave.channels = h.channels; wave.channels = h.channels;

View File

@ -86,6 +86,10 @@ public:
void findTriggerPosition(event_trigger_position_s *position, void findTriggerPosition(event_trigger_position_s *position,
angle_t angleOffset DEFINE_CONFIG_PARAM(angle_t, globalTriggerAngleOffset)); angle_t angleOffset DEFINE_CONFIG_PARAM(angle_t, globalTriggerAngleOffset));
/**
* Simplest trigger shape does not require any synchronization - for example if there is only
* one primary channel tooth each raising (or falling depedning on configuration) front would synchronize
*/
bool isSynchronizationNeeded; bool isSynchronizationNeeded;
/** /**
* this flag tells us if we should ignore events on second input channel * this flag tells us if we should ignore events on second input channel
@ -101,7 +105,7 @@ public:
* this variable is incremented after each trigger shape redefinition * this variable is incremented after each trigger shape redefinition
* See also * See also
*/ */
int version; int version = 0;
/** /**
* duty cycle for each individual trigger channel * duty cycle for each individual trigger channel