Skip to content

Commit

Permalink
Merge branch 'main' into smooth_thrusters
Browse files Browse the repository at this point in the history
  • Loading branch information
ROV Laptop committed Jan 17, 2025
2 parents e85d76e + c6cb454 commit a44472e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.8.3
rev: v0.9.1
hooks:
# Run the linter.
- id: ruff
Expand All @@ -11,7 +11,7 @@ repos:
# Run the formatter.
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v19.1.5
rev: v19.1.6
hooks:
- id: clang-format
types_or: [c++, c]
Expand All @@ -21,6 +21,6 @@ repos:
hooks:
- id: trailing-whitespace
- repo: https://github.com/google/yamlfmt
rev: v0.14.0
rev: v0.15.0
hooks:
- id: yamlfmt
File renamed without changes.
2 changes: 1 addition & 1 deletion src/pi/pi_main/pi_main/run_on_boot.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def main() -> None:
pi_main_share = get_package_share_directory('pi_main')

file_location = Path(__file__).parent.resolve()
udev_script = str(file_location / 'copy.py')
udev_script = str(file_location / 'copy_udev.py')

cmd = ['/usr/bin/sudo', '/usr/bin/python3', udev_script, pi_main_share]

Expand Down
5 changes: 2 additions & 3 deletions src/surface/transceiver/transceiver/serial_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,15 @@ def message_parser(self, packet: str) -> FloatData:

if len(packet_sections) != PACKET_SECTIONS:
raise ValueError(
f'Packet expected {PACKET_SECTIONS} sections, '
f'found {len(packet_sections)} sections'
f'Packet expected {PACKET_SECTIONS} sections, found {len(packet_sections)} sections'
)

header = packet_sections[1].split(COMMA_SEPARATOR)
data = packet_sections[2]

if len(header) != HEADER_LENGTH:
raise ValueError(
f'Packet header length of {HEADER_LENGTH} expected ' f'found {len(header)} instead'
f'Packet header length of {HEADER_LENGTH} expected found {len(header)} instead'
)

msg.team_number = int(header[0])
Expand Down

0 comments on commit a44472e

Please sign in to comment.