Skip to content

Commit d30f216

Browse files
committed
Kalman blob: center field on update
1 parent fc2c362 commit d30f216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

v2/blob/kalman_blob.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func (b *KalmanBlobie) Update(newb Blobie) error {
142142
b.isStillBeingTracked = true
143143
b.isExists = true
144144
// Append new point to track
145-
b.Track = append(b.Track, newbCast.Center)
145+
b.Track = append(b.Track, b.Center)
146146
b.TrackTime = append(b.TrackTime, newbCast.TrackTime[len(newbCast.TrackTime)-1])
147147
// Restrict number of points in track (shift to the left)
148148
if len(b.Track) > b.maxPointsInTrack {

0 commit comments

Comments
 (0)