Skip to content

Commit

Permalink
Merge pull request #39 from Rione:disable/ball_kalmanfilter
Browse files Browse the repository at this point in the history
⚠️ temporary disable kalman filter
  • Loading branch information
Tamagoham authored Jul 4, 2024
2 parents a59b2d4 + b79c422 commit bdafbbb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions visionreceive.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,10 @@ func VisionReceive(chvision chan bool, port int, ourteam int, goalpos int, simmo
mm_y[i] = kalman.NewMeasurementAtTime(t, modelBallY.NewMeasurement(float64(v)))
}

filtered_ball_x = float32(modelBallX.Value(filterBallX.State()))
filtered_ball_y = float32(modelBallY.Value(filterBallY.State()))
// filtered_ball_x = float32(modelBallX.Value(filterBallX.State()))
// filtered_ball_y = float32(modelBallY.Value(filterBallY.State()))
filtered_ball_x = ball.GetX()
filtered_ball_y = ball.GetY()

}

Expand Down

0 comments on commit bdafbbb

Please sign in to comment.