Skip to content

Commit

Permalink
Tweak prefill adder factor
Browse files Browse the repository at this point in the history
  • Loading branch information
rnd-ash committed Sep 23, 2023
1 parent 3dd3230 commit d11999e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gearbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ bool Gearbox::elapse_shift(ProfileGearChange req_lookup, AbstractProfile *profil
}

if (current_stage == ShiftStage::Bleed) {
float fill_factor_speed = scale_number(sensor_data.input_torque, 1.0, 2.0, 100, gearboxConfig.max_torque);
float fill_factor_speed = scale_number(sensor_data.input_torque, 1.0, 1.5, 100, gearboxConfig.max_torque);
// --MPC--
// Stays at working pressure
// --SPC--
Expand All @@ -585,7 +585,7 @@ bool Gearbox::elapse_shift(ProfileGearChange req_lookup, AbstractProfile *profil
current_mod_clutch_pressure = prefill_data.fill_pressure_off_clutch;
current_working_pressure = mpc_working;
} else if (current_stage == ShiftStage::Fill) {
float fill_factor_speed = scale_number(sensor_data.input_torque, 1.0, 2.0, 100, gearboxConfig.max_torque);
float fill_factor_speed = scale_number(sensor_data.input_torque, 1.0, 1.5, 100, gearboxConfig.max_torque);
//--MPC--
// Stays at working pressure
//--SPC--
Expand Down

0 comments on commit d11999e

Please sign in to comment.