Skip to content

Commit

Permalink
reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ashum68 committed Jun 11, 2024
1 parent 1f00e04 commit 52116c5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/detection/lidar_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,9 @@ def set_update_rate(self, port: serial.Serial, value: int) -> bool:

return True

def set_default_distance_output(self, port: serial.Serial, use_last_return: bool = False) -> bool:
def set_default_distance_output(
self, port: serial.Serial, use_last_return: bool = False
) -> bool:
"""
Configures the data output when using the 44. Distance data command.
Each bit toggles the output of specific data.
Expand Down Expand Up @@ -322,7 +324,7 @@ def wait_for_reading(self, port: serial.Serial, timeout: float = 1) -> "tuple[fl
angle_in_hundreth_degrees = response[6] << 0 | response[7] << 8

yaw_angle = angle_in_hundreth_degrees / 100.0

if yaw_angle > self.__YAW_ANGLE_THRESHOLD:
yaw_angle = yaw_angle - self.__YAW_ANGLE_OFFSET

Expand Down

0 comments on commit 52116c5

Please sign in to comment.