2014-08-29 07:52:33 -07:00
|
|
|
/**
|
|
|
|
* @file trigger_emulator_algo.h
|
|
|
|
*
|
|
|
|
* @date Mar 3, 2014
|
2015-01-12 15:04:10 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2015
|
2014-08-29 07:52:33 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef TRIGGER_EMULATOR_ALGO_H_
|
|
|
|
#define TRIGGER_EMULATOR_ALGO_H_
|
|
|
|
|
2014-11-05 09:03:15 -08:00
|
|
|
#include "engine.h"
|
2014-08-29 07:52:33 -07:00
|
|
|
#include "pwm_generator_logic.h"
|
|
|
|
|
2014-09-25 21:05:11 -07:00
|
|
|
class TriggerEmulatorHelper {
|
|
|
|
public:
|
|
|
|
bool primaryWheelState;
|
|
|
|
bool secondaryWheelState;
|
|
|
|
bool thirdWheelState;
|
|
|
|
|
|
|
|
TriggerEmulatorHelper();
|
|
|
|
void handleEmulatorCallback(PwmConfig *state, int stateIndex);
|
|
|
|
};
|
|
|
|
|
2014-11-05 09:03:15 -08:00
|
|
|
void initTriggerEmulatorLogic(Engine *engine);
|
2014-08-29 07:52:33 -07:00
|
|
|
|
|
|
|
#endif /* TRIGGER_EMULATOR_ALGO_H_ */
|