| Line | Branch | Decision | Exec | Source |
|---|---|---|---|---|
| 1 | /** | |||
| 2 | * @file buttonshift.cpp | |||
| 3 | * @brief Polls pins for gear changes | |||
| 4 | * | |||
| 5 | * @date Aug 31, 2020 | |||
| 6 | * @author David Holdeman, (c) 2020 | |||
| 7 | */ | |||
| 8 | #pragma once | |||
| 9 | ||||
| 10 | #include "gear_controller.h" | |||
| 11 | #include "debounce.h" | |||
| 12 | ||||
| 13 | #if EFI_TCU | |||
| 14 | class ButtonShiftController: public GearControllerBase { | |||
| 15 | public: | |||
| 16 | ButtonShiftController(); | |||
| 17 | ||||
| 18 | void update(); | |||
| 19 | void init(); | |||
| 20 | ✗ | GearControllerMode getMode() const { | ||
| 21 | ✗ | return GearControllerMode::ButtonShift; | ||
| 22 | } | |||
| 23 | private: | |||
| 24 | ButtonDebounce debounceUp; | |||
| 25 | ButtonDebounce debounceDown; | |||
| 26 | }; | |||
| 27 | ||||
| 28 | ButtonShiftController* getButtonShiftController(); | |||
| 29 | #endif // EFI_TCU | |||
| 30 |