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() {
|
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() {
|
void AutomaticGearController::update() {
|
||||||
auto tps = Sensor::get(SensorType::DriverThrottleIntent);
|
auto tps = Sensor::get(SensorType::DriverThrottleIntent);
|
||||||
auto vss = Sensor::get(SensorType::VehicleSpeed);
|
auto vss = Sensor::get(SensorType::VehicleSpeed);
|
||||||
|
|
|
@ -8,7 +8,6 @@ public:
|
||||||
AutomaticGearController();
|
AutomaticGearController();
|
||||||
|
|
||||||
void update();
|
void update();
|
||||||
void init();
|
|
||||||
void findDesiredGear();
|
void findDesiredGear();
|
||||||
GearControllerMode getMode() const {
|
GearControllerMode getMode() const {
|
||||||
return GearControllerMode::Automatic;
|
return GearControllerMode::Automatic;
|
||||||
|
|
Loading…
Reference in New Issue