Skip to content

Commit 066968a

Browse files
committed
Fixed variable name
1 parent 077742f commit 066968a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/telemetry/telemetry.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
Telemetry gathering logic.
33
"""
44

5+
import time
6+
57
from pymavlink import mavutil
68

79
from ..common.modules.logger import logger
810

9-
import time
10-
1111

1212
class 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)

0 commit comments

Comments
 (0)