29 lines
618 B
C++
29 lines
618 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"
|
|
#include "tc_4l6x.h"
|
|
|
|
class GearControllerBase {
|
|
public:
|
|
virtual void update();
|
|
gear_e getDesiredGear() const;
|
|
virtual void init();
|
|
GearControllerMode mode = GearControllerMode::None;
|
|
private:
|
|
gear_e desiredGear = NEUTRAL;
|
|
protected:
|
|
gear_e setDesiredGear(gear_e);
|
|
void initTransmissionController();
|
|
|
|
private:
|
|
void postState();
|
|
TransmissionControllerBase *transmissionController;
|
|
};
|
|
|
|
void initGearController();
|