|
The GearBox component models an automatic transmission
gearbox. The selected gear is determined using a shift
map. There is an upshift map defined by
GearUpShiftAngles and GearUpShiftSpeeds and there is a
downshift map defined by GearDownShiftAngles and
GearDownShiftSpeeds.
The current vehicle speed is calculated by dividing
the downstream velocity (Vel3) by the final drive ratio
and multiplying by the wheel radius:
EstimatedSpeed=Vel3/FinalDriveRatio*WheelRadius
The accelerator pedal angle is used in the upshift
map to calculate the speed required for an upshift. If
the estimated speed is greater than the required speed,
the transmission is shifted up to the next gear.
The accelerator pedal angle is also used in the
downshift map to calculate the speed required for a
downshift. If the estimated speed is less than the
required speed, the transmission is shifted down to the
next lower gear.
Once the current gear is calcuated using the above
procedure, the appropriate gear ratio, torques and
speeds are calculated as:
Torque3=Torque1*GearRatio[CurrentGear]
Vel1=Vel3*GearRatio[CurrentGear]
The gear ratio is filtered using a first order lag
and the SGearRatio state.
|