Don't init range input pins for auto
This commit is contained in:
parent
e33cd6009d
commit
a0f9987192
|
@ -8,16 +8,6 @@ AutomaticGearController automaticGearController;
|
|||
AutomaticGearController::AutomaticGearController() {
|
||||
}
|
||||
|
||||
void AutomaticGearController::init() {
|
||||
for (size_t i = 0; i < efi::size(engineConfiguration->tcu_rangeInput); i++) {
|
||||
if (isBrainPinValid(engineConfiguration->tcu_rangeInput[i])) {
|
||||
efiSetPadMode("Range Input", engineConfiguration->tcu_rangeInput[i], getInputMode(engineConfiguration->tcu_rangeInputMode[i]));
|
||||
}
|
||||
}
|
||||
|
||||
GearControllerBase::init();
|
||||
}
|
||||
|
||||
void AutomaticGearController::update() {
|
||||
auto tps = Sensor::get(SensorType::DriverThrottleIntent);
|
||||
auto vss = Sensor::get(SensorType::VehicleSpeed);
|
||||
|
|
|
@ -8,7 +8,6 @@ public:
|
|||
AutomaticGearController();
|
||||
|
||||
void update();
|
||||
void init();
|
||||
void findDesiredGear();
|
||||
GearControllerMode getMode() const {
|
||||
return GearControllerMode::Automatic;
|
||||
|
|
Loading…
Reference in New Issue