From 57db1b73e19b36a2540de07ac9f34780fe6e9496 Mon Sep 17 00:00:00 2001 From: BnK4e <51700685+BnK4e@users.noreply.github.com> Date: Fri, 14 Jun 2019 10:23:13 +0200 Subject: [PATCH 1/2] added missing import statement --- tutorials/pysense.md | 1 + 1 file changed, 1 insertion(+) diff --git a/tutorials/pysense.md b/tutorials/pysense.md index 4d67d2ff..33c629a0 100644 --- a/tutorials/pysense.md +++ b/tutorials/pysense.md @@ -5,6 +5,7 @@ This basic example shows how to read pitch and roll from the on-board accelerometer and output it in comma separated value \(CSV\) format over serial. ```python +import time from LIS2HH12 import LIS2HH12 from pytrack import Pytrack py = Pytrack() From c5178ed28369d50684df4cee039aa64f500737a8 Mon Sep 17 00:00:00 2001 From: Bn K4e Date: Fri, 14 Jun 2019 10:56:59 +0200 Subject: [PATCH 2/2] Fix Pysense example to run on Pysense rather than Pytrack --- tutorials/pysense.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tutorials/pysense.md b/tutorials/pysense.md index 33c629a0..645bb2e9 100644 --- a/tutorials/pysense.md +++ b/tutorials/pysense.md @@ -7,8 +7,9 @@ This basic example shows how to read pitch and roll from the on-board accelerome ```python import time from LIS2HH12 import LIS2HH12 -from pytrack import Pytrack -py = Pytrack() +# Depends on pycocrop.py from:https://github.com/pycom/pycom-libraries +from pysense import Pysense +py = Pysense() acc = LIS2HH12() while True: