Skip to content

Commit

Permalink
fixed detection bug (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashum68 authored Jul 29, 2024
1 parent 60667c3 commit 2276ef2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ detection:
serial_port_baudrate: 921600
port_timeout: 0.1 # seconds
update_rate: 5
high_angle: 170 # degrees
low_angle: -170 # degrees
high_angle: 170 # degrees
rotate_speed: 5

data_merge:
Expand Down
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def main() -> int:
SERIAL_PORT_BAUDRATE = config["detection"]["serial_port_baudrate"]
PORT_TIMEOUT = config["detection"]["port_timeout"]
UPDATE_RATE = config["detection"]["update_rate"]
HIGH_ANGLE = config["detection"]["high_angle"]
LOW_ANGLE = config["detection"]["low_angle"]
HIGH_ANGLE = config["detection"]["high_angle"]
ROTATE_SPEED = config["detection"]["rotate_speed"]

DELAY = config["data_merge"]["delay"]
Expand Down Expand Up @@ -93,8 +93,8 @@ def main() -> int:
SERIAL_PORT_BAUDRATE,
PORT_TIMEOUT,
UPDATE_RATE,
HIGH_ANGLE,
LOW_ANGLE,
HIGH_ANGLE,
ROTATE_SPEED,
detection_to_data_merge_queue,
controller,
Expand Down
2 changes: 1 addition & 1 deletion modules/detection/detection_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def detection_worker(
serial_port_baudrate,
port_timeout,
update_rate,
high_angle,
low_angle,
high_angle,
rotate_speed,
)

Expand Down

0 comments on commit 2276ef2

Please sign in to comment.