2015-07-10 06:01:56 -07:00
|
|
|
/**
|
|
|
|
* @file trigger_emulator_algo.h
|
|
|
|
*
|
|
|
|
* @date Mar 3, 2014
|
2017-01-03 03:05:22 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2017
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef TRIGGER_EMULATOR_ALGO_H_
|
|
|
|
#define TRIGGER_EMULATOR_ALGO_H_
|
|
|
|
|
|
|
|
#include "engine.h"
|
|
|
|
#include "pwm_generator_logic.h"
|
|
|
|
|
|
|
|
class TriggerEmulatorHelper {
|
|
|
|
public:
|
|
|
|
bool primaryWheelState;
|
|
|
|
bool secondaryWheelState;
|
|
|
|
bool thirdWheelState;
|
|
|
|
|
|
|
|
TriggerEmulatorHelper();
|
|
|
|
void handleEmulatorCallback(PwmConfig *state, int stateIndex);
|
|
|
|
};
|
|
|
|
|
2017-05-15 05:51:40 -07:00
|
|
|
void initTriggerEmulatorLogic(Logging *sharedLogger);
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
#endif /* TRIGGER_EMULATOR_ALGO_H_ */
|