File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 22Telemetry gathering logic.
33"""
44
5+ import time
6+
57from pymavlink import mavutil
68
79from ..common .modules .logger import logger
810
9- import time
10-
1111
1212class TelemetryData : # pylint: disable=too-many-instance-attributes
1313 """
@@ -110,9 +110,9 @@ def run(
110110 # Read MAVLink message ATTITUDE (30)
111111 # Return the most recent of both, and use the most recent message's timestamp
112112
113- initialTime = time .time ()
114- while (time .time () - initialTime ) < 1 :
115- ()
113+ initial_time = time .time ()
114+ while (time .time () - initial_time ) < 1 :
115+ pass
116116
117117 position_msg = self .connection .recv_match (type = "LOCAL_POSITION_NED" , blocking = True )
118118 attitude_msg = self .connection .recv_match (type = "ATTITUDE" , blocking = True )
You can’t perform that action at this time.
0 commit comments