finalize gps tests (#26255)

* finalize gps test before adding to ci

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
old-commit-hash: 5b455f1d318939470b99ab81d2e20d247db2715d
This commit is contained in:
Kurt Nistelberger
2022-10-26 20:22:46 -07:00
committed by GitHub
parent 56ee1b27a4
commit d492af3b34
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -3,8 +3,8 @@
# NOTE: can only run inside limeGPS test box!
# run limeGPS with random static location
timeout 300 ./simulate_gps_signal.py &
gps_PID=$?
timeout 300 ./simulate_gps_signal.py 32.7518 -117.1962 &
gps_PID=$(ps -aux | grep -m 1 "timeout 300" | cut -d ' ' -f 7)
echo "starting limeGPS..."
sleep 10
+2 -2
View File
@@ -65,7 +65,7 @@ def verify_ubloxgnss_data(socket: messaging.SubSocket, max_time: int):
sat_count.append(event.ubloxGnss.measurementReport.numMeas)
num_sat = int(sum(sat_count)/len(sat_count))
assert num_sat > 5, f"Not enough satellites {num_sat} (TestBox setup!)"
assert num_sat >= 5, f"Not enough satellites {num_sat} (TestBox setup!)"
def verify_gps_location(socket: messaging.SubSocket, max_time: int):
@@ -188,4 +188,4 @@ class TestGPS(unittest.TestCase):
if __name__ == "__main__":
unittest.main()
unittest.main()