Skip to content

Commit b7946d8

Browse files
authored
Fix TargetTracker bug (#109)
1 parent a86d7f8 commit b7946d8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

wpi/src/main/kotlin/org/ghrobotics/lib/vision/TargetTracker.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ open class TargetTracker(private val constants: TargetTrackerConstants) {
130130
var isReal = true
131131
private set
132132

133+
// Add the initial sample to the list of samples.
134+
init {
135+
addSample(initialSample)
136+
}
137+
133138
fun resetFilters() {
134139
xFilter.reset()
135140
yFilter.reset()

0 commit comments

Comments
 (0)