Skip to content

Commit

Permalink
core: services: ardupilot_manager: ArduPilotManager: Update baudrate …
Browse files Browse the repository at this point in the history
…based on firmware type

Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric authored and joaoantoniocardoso committed Oct 11, 2023
1 parent e33f60d commit 7355135
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/services/ardupilot_manager/ArduPilotManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,13 +246,16 @@ def start_serial(self, board: FlightController) -> None:
if not board.path:
raise ValueError(f"Could not find device path for board {board.name}.")
self._current_board = board
baudrate = 115200
if "px4" in board.name.lower():
baudrate = 57600
self.start_mavlink_manager(
Endpoint(
name="Master",
owner=self.settings.app_name,
connection_type=EndpointType.Serial,
place=board.path,
argument=115200,
argument=baudrate,
protected=True,
)
)
Expand Down

0 comments on commit 7355135

Please sign in to comment.