Navigation Menu

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

AC_Fence: relax sys-status healthy reporting #12724

Merged
merged 1 commit into from Nov 10, 2019

Conversation

rmackay9
Copy link
Contributor

@rmackay9 rmackay9 commented Oct 31, 2019

During 4.0.0 testing I found that "Geofence Breach" was constantly displayed on the mission planner HUD (issue).

The cause of the issue is AC_Fence::sys_status_failed() call which is too strict in my opinion at least if it's going to be interpreted as "Breached" by the GCSs.

I understand the desire to want to warn the user of incorrect setup but I think we should do that as part of the pre-arm checks. We risk overloading the user with errors which is unnecessarily scary and just teaches them to ignore errors. There's no point in us telling the user "Geofence Breached" when really the issue is they don't have a GPS lock yet.

This PR changes it so this flag is really only unset if a geofence is breached.

@peterbarker
Copy link
Contributor

We go to some lengths to emit a separate message to indicate breach status. Shouldn't the GCSs be using that?! Is it only MissionPlanner which is interpreting this as a breach? MAVProxy does use the FENCE_BREACH message appropriately.

Note that we do want to get Plane using this library too - so we shouldn't get too radical here :-)

@rmackay9 rmackay9 merged commit 7c03499 into ArduPilot:master Nov 10, 2019
@rmackay9
Copy link
Contributor Author

I think this is another example of where we are being overly strict so merged.

@rmackay9 rmackay9 deleted the fence-sys-status branch November 10, 2019 23:59
@rmackay9 rmackay9 moved this from PR to Rover-4.0.0-rc4 in Rover 4.0 backports Nov 20, 2019
@rmackay9
Copy link
Contributor Author

this has been added to Copter-4.0.0-rc3

@rmackay9 rmackay9 moved this from PRs to 4.0.0-rc3 in Copter 4.0 backports Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Rover 4.0 backports
Rover-4.0.0 / Rover-4.0.0-rc4
Development

Successfully merging this pull request may close these issues.

None yet

3 participants