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

mavutil: add force-connect option #39

Merged
merged 2 commits into from
Sep 2, 2018

Conversation

peterbarker
Copy link
Contributor

This will allow sim_vehicle.py to regain gdb_stopped.

It also allows you to start mavproxy without a named serial device attached, and then connect that device.

@khancyr
Copy link
Contributor

khancyr commented Jan 5, 2017

@peterbarker Ok, I found one error, I try with a 3dr radio and now it don't crash if not plugged, but when I plug it does nothing.

@khancyr
Copy link
Contributor

khancyr commented Jan 5, 2017

It appear that autoreconnect is try only once when the first write failed. mavproxy should keep trying to write until it got it working.

Otherwise, instead of using a fakeserial, we could have use https://pythonhosted.org/pyserial/shortintro.html#configuring-ports-later and try to open the port only if it appear is port list

@amilcarlucas
Copy link
Contributor

Needs a rebase

@peterbarker peterbarker merged commit 986750f into ArduPilot:master Sep 2, 2018
@peterbarker peterbarker deleted the force-connect branch September 27, 2020 22:39
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.

3 participants