We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c71be3a commit cbc865bCopy full SHA for cbc865b
internal/simctl/replace_ball.go
@@ -48,19 +48,20 @@ func (r *BallReplacer) handleReplaceBall() {
48
49
balls := r.c.lastTrackedFrame.TrackedFrame.Balls
50
if len(balls) == 0 {
51
+ log.Printf("Ball vanished. Placing ball to %v", targetPos)
52
r.placeBall(targetPos)
53
return
54
}
55
56
currentPos := geom.NewVector2Float32(*balls[0].Pos.X, *balls[0].Pos.Y)
57
58
if targetPos.DistanceTo(currentPos) > 0.1 {
59
+ log.Printf("Placing ball from %v to %v", currentPos, targetPos)
60
61
62
63
64
func (r *BallReplacer) placeBall(ballPos *geom.Vector2) {
- log.Printf("Placing ball to %v", ballPos)
65
66
zero := float32(0)
67
command := SimulatorCommand{
0 commit comments