| Line | Branch | Decision | Exec | Source |
|---|---|---|---|---|
| 1 | #pragma once | |||
| 2 | ||||
| 3 | #include "gear_controller.h" | |||
| 4 | #include "gc_auto.h" | |||
| 5 | ||||
| 6 | #if EFI_TCU | |||
| 7 | class GenericGearController: public AutomaticGearController { | |||
| 8 | public: | |||
| 9 | GenericGearController(); | |||
| 10 | ||||
| 11 | void update(); | |||
| 12 | void init(); | |||
| 13 | ✗ | GearControllerMode getMode() const { | ||
| 14 | ✗ | return GearControllerMode::Generic; | ||
| 15 | } | |||
| 16 | private: | |||
| 17 | Timer shiftTimer; | |||
| 18 | SelectedGear lastRange; | |||
| 19 | bool isNearest(float value, int pinIndex, float* rangeStates); | |||
| 20 | SensorType getAnalogSensorType(int zeroBasedSensorIndex); | |||
| 21 | }; | |||
| 22 | ||||
| 23 | GenericGearController* getGenericGearController(); | |||
| 24 | #endif // EFI_TCU | |||
| 25 |