forked from emlid/Navio2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Navio+ entry and auto choice shield
- Loading branch information
Igor Anokhin
committed
Jan 10, 2018
1 parent
fd610e8
commit 5a7a23a
Showing
1 changed file
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
import sys, time | ||
import time | ||
|
||
import navio.rcinput | ||
import navio.util | ||
import navio.Common.util | ||
|
||
navio.util.check_apm() | ||
|
||
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 | ||
|
||
navio.Common.util.check_apm() | ||
|
||
rcin = RCInput() | ||
while (True): | ||
period = rcin.read(2) | ||
print period | ||
time.sleep(1) | ||
|