Skip to content

Commit

Permalink
A300 vcan1
Browse files Browse the repository at this point in the history
  • Loading branch information
roni-kreinin committed Dec 11, 2024
1 parent 51df8e9 commit 69ce211
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
from clearpath_generator_common.common import BaseGenerator, BashFile

PLATFORMS = [
Platform.A300,
Platform.DD100,
Platform.DD150,
Platform.DO100,
Expand Down Expand Up @@ -70,6 +71,19 @@ def generate_vcan_start(self) -> None:
f'-v {can} '
f'-b {baud}'
)
# Add second vcan for A300
if self.clearpath_config.get_platform_model() == Platform.A300:
port = 11413
serial = '/dev/ttycan1'
can = 'vcan1'
baud = 's5'
bash_writer.write(
f'/bin/sh -e /usr/sbin/clearpath-vcan-bridge '
f'-p {port} '
f'-d {serial} '
f'-v {can} '
f'-b {baud}'
)
else:
bash_writer.add_echo(
'No vcan bridge required.' +
Expand Down

0 comments on commit 69ce211

Please sign in to comment.