Skip to content

Commit 7875e39

Browse files
fix: z-axis bug
1 parent 09a41ce commit 7875e39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fission/src/systems/simulation/wpilib_brain/SimInput.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export class SimAccelInput extends SimInput {
114114

115115
const x = (newVel.x - this._prevVel.x) / deltaT
116116
const y = (newVel.y - this._prevVel.y) / deltaT
117-
const z = (newVel.y - this._prevVel.y) / deltaT
117+
const z = (newVel.z - this._prevVel.z) / deltaT
118118

119119
SimAccel.setX(this._device, x)
120120
SimAccel.setY(this._device, y)

0 commit comments

Comments
 (0)