Skip to content

Commit

Permalink
fix: reported velocity in reverse (#166)
Browse files Browse the repository at this point in the history
Signed-off-by: Alptuğ Cırıt <[email protected]>
  • Loading branch information
mozhoku authored Sep 27, 2024
1 parent 856998e commit f05ceaa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ private void ReportVehicleState()
VpSteeringReport = _frontWheels[0].steerAngle;
VpGearReport = _vehicleController.data.bus[Channel.Vehicle][VehicleData.GearboxMode];
VpVelocityReport =
transform.InverseTransformDirection(_rigidbody.velocity.normalized * _vehicleController.speed);
transform.InverseTransformDirection(_rigidbody.velocity);
VpAngularVelocityReport = transform.InverseTransformDirection(AngularVelocity);
VpThrottleStatusReport =
_vehicleController.data.bus[Channel.Input][InputData.Throttle] * VppToAutowareMultiplier;
Expand Down

0 comments on commit f05ceaa

Please sign in to comment.