Commit 3a7a2ea9 authored by Pierre Bürki's avatar Pierre Bürki
Browse files

Kill the tracker again after calibration

parent bf570c7d
Loading
Loading
Loading
Loading
+11 −7
Original line number Diff line number Diff line
#!/bin/bash

# Find the process of the tracker using the camera
function kill_tracker {
	PID=`pgrep the-hole`

	if [ ! -z $PID ]
@@ -8,7 +8,11 @@ then
		# Kill tracker (15 = SIGTERM)
		sudo kill -15 $PID
	fi
}

# Run calibrator
kill_tracker
/home/encor/thehole/the-hole-calibrator

# Sometimes, the tracker starts again, but doesn't work (although the process itself doesn't)
kill_tracker