Skip to content

driver: Allow user to specify the source system, rather than assume a default value - #94

Open
joshanne wants to merge 1 commit into
dronecan:masterfrom
joshanne:pr/allow-specifying-source-system
Open

driver: Allow user to specify the source system, rather than assume a default value#94
joshanne wants to merge 1 commit into
dronecan:masterfrom
joshanne:pr/allow-specifying-source-system

Conversation

@joshanne

@joshanne joshanne commented Jan 13, 2026

Copy link
Copy Markdown
Collaborator

This one has bitten me a few times on systems that have SYSID_MY_GCS (or the new MAV_GCS_SYSID and MAV_GCS_SYSID_HI) parameters configured with enforcement of the ground station in control (ie. SYSID_ENFORCE or MAV_OPTIONS bit#0).

This is the pydronecan changes that allow the front-end to configure the source_system as required.

Required by: dronecan/gui_tool#108

Comment thread dronecan/driver/mavcan.py
self.data = data

def io_process(url, bus, target_system, baudrate, tx_queue, rx_queue, exit_queue, parent_pid):
def io_process(url, bus, source_system, target_system, baudrate, tx_queue, rx_queue, exit_queue, parent_pid):

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps this is more correct to append the source system at the end of the argument list for compatibility?

@joshanne
joshanne requested a review from tridge March 27, 2026 09:29
… default value

This one has bitten me a few times on systems that have SYSID_MY_GCS (or the new MAV_GCS_SYSID and MAV_GCS_SYSID_HI) parameters configured with enforcement of the ground station in control (ie. SYSID_ENFORCE or MAV_OPTIONS bit#0).

This is the pydronecan changes that allow the front-end to configure the source_system as required
@joshanne
joshanne force-pushed the pr/allow-specifying-source-system branch from 57da112 to 20d0667 Compare August 5, 2026 11:04
@joshanne

joshanne commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator Author

@tridge Can I bump this one for review? GUI Tool requires this change to be able to set the source_system during the initialisation process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant