PxVehicleGearCommandResponseUpdate
Defined in include/vehicle2/drivetrain/PxVehicleDrivetrainFunctions.h
-
void PxVehicleGearCommandResponseUpdate(const PxU32 targetGearCommand, const PxVehicleGearboxParams &gearboxParams, PxVehicleGearboxState &gearboxState)
Propagate input gear commands to the gearbox state.
Note
Any ongoing gear change must complete before starting another.
Note
A gear change is considered as ongoing for as long as PxVehicleGearboxState::currentGear is different from PxVehicleGearboxState::targetGear.
Note
The gearbox remains in neutral for the duration of the gear change.
Note
A gear change begins if PxVehicleCommandState::targetGear is different from PxVehicleGearboxState::currentGear.
- Parameters
targetGearCommand – [in] specifies the target gear for the gearbox.
gearboxParams – [in] specifies the number of gears and the index of neutral gear.
gearboxState – [out] contains a record of the current and target gear.