Skip to content

Commit 5228a41

Browse files
authored
Update tracking-i2c.py
1 parent e59cb81 commit 5228a41

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

home/CheekyMonkey/tracking-i2c.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,14 @@
8383
#opencv.broadcastState();
8484

8585
opencv = Runtime.start("tracker.opencv","OpenCV")
86-
pid.setPID("x", 10.0, 1.0, 0.1);
87-
pid.setPID("y", 20.0, 1.0, 0.1);
88-
sleep(2);
89-
opencv.capture();
86+
pid.setPID("x", 5.0, 1.0, 0.1);
87+
pid.setPID("y", 5.0, 1.0, 0.1);
88+
sleep(1);
89+
90+
tracker.y.setInverted(True);
91+
sleep(1);
9092

93+
opencv.capture();
9194

9295
# do lk optical point tracking
9396
# tracker.startLKTracking();

0 commit comments

Comments
 (0)