We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c537517 commit 11985d8Copy full SHA for 11985d8
Python/RCInput.py
@@ -1,13 +1,17 @@
1
-import sys, time
+import time
2
3
-import navio.rcinput
4
-import navio.util
+import navio.Common.util
5
6
-navio.util.check_apm()
7
-
8
-rcin = navio.rcinput.RCInput()
+if navio.Common.util.get_navio_version() == "NAVIO2":
+ import navio.Navio2.RCInput as RCInput
+else:
+ import navio.Navio.RCInput as RCInput
9
10
+navio.Common.util.check_apm()
11
+
12
+rcin = RCInput()
13
while (True):
14
period = rcin.read(2)
15
print period
16
time.sleep(1)
17
0 commit comments