Skip to content

Commit 4056dcc

Browse files
committed
Linted
1 parent 17cb968 commit 4056dcc

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

Raspberry_Pi_9DoF_Sensor_Calibration/9dof_calibration.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77

88
SAMPLE_SIZE = 500
99

10+
1011
class KeyListener:
1112
"""Object for listening for input in a separate thread"""
13+
1214
def __init__(self):
1315
self._input_key = None
1416
self._listener_thread = None
@@ -33,7 +35,7 @@ def stop(self):
3335

3436
@property
3537
def pressed(self):
36-
"Return whether enter was pressed since last checked"""
38+
"Return whether enter was pressed since last checked" ""
3739
result = False
3840
if self._input_key is not None:
3941
self._input_key = None
@@ -42,17 +44,17 @@ def pressed(self):
4244

4345

4446
def main():
47+
# pylint: disable=too-many-locals, too-many-statements
4548
i2c = busio.I2C(board.SCL, board.SDA)
4649

4750
gyro_accel = LSM6DSOX(i2c)
4851
magnetometer = LIS3MDL(i2c)
4952
key_listener = KeyListener()
5053
key_listener.start()
5154

52-
53-
"""
54-
Magnetometer Calibration
55-
"""
55+
############################
56+
# Magnetometer Calibration #
57+
############################
5658

5759
print("Magnetometer Calibration")
5860
print("Start moving the board in all directions")
@@ -112,9 +114,9 @@ def main():
112114
)
113115
)
114116

115-
"""
116-
Gyroscope Calibration
117-
"""
117+
#########################
118+
# Gyroscope Calibration #
119+
#########################
118120

119121
gyro_x, gyro_y, gyro_z = gyro_accel.gyro
120122
min_x = max_x = gyro_x

0 commit comments

Comments
 (0)