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

Copter: fix inconsistent setting of AP_Notify::flags.pre_arm_gps_check #8719

Merged
merged 1 commit into from Jul 2, 2018

Conversation

peterbarker
Copy link
Contributor

Some clauses in here were not resetting the notify flag. So we assume failure and fix it when we've been overly pessimistic.

@WickedShell
Copy link
Contributor

Does notify only update when called from the main loop, or are there any timers that are spawned that directly read the flags? (If so I'd be worried about race conditions causing notify to momentarily show failure).

@peterbarker
Copy link
Contributor Author

@WickedShell AFAIK it all happens on the main thread. We'd be on thin ice if it didn't with the data structures used in AP_Notify!

@WickedShell
Copy link
Contributor

@peterbarker I wasn't sure if that was a promise we had before (I haven't seen the set failed then fix if not true assumption used elsewhere which is why I was raising the question).

@peterbarker
Copy link
Contributor Author

peterbarker commented Jun 25, 2018 via email

@tridge tridge merged commit 7785a96 into ArduPilot:master Jul 2, 2018
@peterbarker peterbarker deleted the copter-arming-gps-tidy branch July 3, 2018 03:10
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

3 participants