PxVehicleDirectDriveThrottleCommandResponseUpdate
Defined in include/vehicle2/drivetrain/PxVehicleDrivetrainFunctions.h
-
void PxVehicleDirectDriveThrottleCommandResponseUpdate(const PxReal throttle, const PxVehicleDirectDriveTransmissionCommandState &transmissionCommands, const PxReal longitudinalSpeed, const PxU32 wheelId, const PxVehicleDirectDriveThrottleCommandResponseParams &throttleResponseParams, PxReal &throttleResponseState)
Compute the drive torque response to a throttle command.
- Parameters
throttle – [in] is the throttle command.
transmissionCommands – [in] is the gearing command to apply to the direct drive tranmission.
longitudinalSpeed – [in] is the longitudinal speed of the vehicle’s rigid body.
wheelId – [in] specifies the wheel that is to have its throttle response computed.
throttleResponseParams – [in] specifies the per wheel drive torque response to the throttle command as a nonlinear function of throttle command and longitudinal speed.
throttleResponseState – [out] is the drive torque response to the input throttle command.