GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 0.0% 0 / 0 / 2
Functions: 0.0% 0 / 0 / 1
Branches: -% 0 / 0 / 0
Decisions: -% 0 / - / 0

firmware/controllers/tcu/gc_generic.h
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