Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions flight_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

class MultiWii:
ATTITUDE = 108


def __init__(self,serPort):

self.attitude = {'angx':0,'angy':0,'heading':0}
Expand All @@ -20,10 +18,9 @@ def __init__(self,serPort):
self.ser.dsrdtr = False
self.ser.writeTimeout = 2
self.PRINT = 1

"""Time to wait until the board becomes operational"""
## wakeup timer to 2 sec ##
wakeup = 2

## wrapping in try catch block ##
try:
self.ser.open()
if self.PRINT:
Expand Down