2020-10-09 20:34:45 -07:00
|
|
|
#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;
|
2020-12-06 04:32:38 -08:00
|
|
|
virtual void init(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
2020-10-09 20:34:45 -07:00
|
|
|
private:
|
|
|
|
gear_e desiredGear = NEUTRAL;
|
|
|
|
protected:
|
|
|
|
gear_e setDesiredGear(gear_e);
|
2020-12-06 04:32:38 -08:00
|
|
|
|
|
|
|
private:
|
2020-10-09 20:34:45 -07:00
|
|
|
void postState();
|
|
|
|
SimpleTransmissionController transmissionController;
|
|
|
|
};
|