From 791ae2e3e650a2bf90b45559d8899720b8b3613f Mon Sep 17 00:00:00 2001 From: Srivastava Date: Tue, 1 Oct 2019 00:27:03 +0530 Subject: [PATCH] added comments --- flight_user.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/flight_user.py b/flight_user.py index f22a27c..64e96f9 100644 --- a/flight_user.py +++ b/flight_user.py @@ -3,8 +3,6 @@ class MultiWii: ATTITUDE = 108 - - def __init__(self,serPort): self.attitude = {'angx':0,'angy':0,'heading':0} @@ -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: