Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add concept of bus ownership to SITL i2c simulation #15554

Merged
merged 3 commits into from Oct 13, 2020

Conversation

peterbarker
Copy link
Contributor

The bus ownership check isn't that useful ATM as we don't run separate threads for the buses in SITL. It will catch cases where a driver being initialised doesn't take the bus semaphore, however.

Also initialise the simulated i2c bus count (not used from a technical perspective ATM)

Also don't allow copies of Semaphore objects to be created.

Correct taking copy of SITL I2C bus when iterating through the list.

Also stop copying the bus object while iterating
Not sure the initialisation is needed but retained it.
@peterbarker peterbarker merged commit 7e92bbc into ArduPilot:master Oct 13, 2020
@peterbarker peterbarker deleted the pr/sitl-i2c-ownership branch October 15, 2020 23:12
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.

None yet

2 participants