mirror of https://github.com/rusefi/rusefi-1.git
26 lines
561 B
C++
26 lines
561 B
C++
#pragma once
|
|
|
|
#include "global.h"
|
|
#include "io_pins.h"
|
|
#include "persistent_configuration.h"
|
|
#include "engine_configuration_generated_structures.h"
|
|
#include "globalaccess.h"
|
|
#include "simple_tcu.h"
|
|
|
|
class GearControllerBase {
|
|
public:
|
|
DECLARE_ENGINE_PTR;
|
|
|
|
virtual void update();
|
|
gear_e getDesiredGear() const;
|
|
virtual void init(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
|
private:
|
|
gear_e desiredGear = NEUTRAL;
|
|
protected:
|
|
gear_e setDesiredGear(gear_e);
|
|
|
|
private:
|
|
void postState();
|
|
SimpleTransmissionController transmissionController;
|
|
};
|