mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-06 05:52:12 +08:00
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:
committed by
GitHub
parent
56ee1b27a4
commit
d492af3b34
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user