This example shows a complete vehicle with Simscape™ Driveline™ components, including the engine, drivetrain, four-speed transmission, tires, and longitudinal vehicle dynamics. The transmission controller is implemented as a state machine in Stateflow®, selecting the gear based on throttle and vehicle speed.
The plot below shows the input and output shaft speeds of the transmission as well as the vehicle speed. The clutch states are also plotted (locked or open), indicating the selected gear of the transmission.