Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit 518228a

Browse files
author
Alex Bucknall
committed
Updated example Pytrack main.py to match updated libraries
1 parent 94aec3f commit 518228a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

pytrack/main.py

+8-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
from LIS2HH12 import LIS2HH12
44

55
py = Pytrack()
6-
gps = L76GNSS(py)
7-
acc = LIS2HH12(py)
6+
l76 = L76GNSS(py, timeout = 60) # GSP timeout set to 60 seconds
7+
li = LIS2HH12(py)
88

9-
gps.coords()
10-
acc.read()
9+
print(li.acceleration())
10+
print(li.roll())
11+
print(li.pitch())
12+
print(li.yaw())
13+
14+
print(l76.coords())

0 commit comments

Comments
 (0)