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

Geofence Breach displayed when no actual breach? #2241

Closed
rmackay9 opened this issue Oct 31, 2019 · 2 comments
Closed

Geofence Breach displayed when no actual breach? #2241

rmackay9 opened this issue Oct 31, 2019 · 2 comments

Comments

@rmackay9
Copy link
Contributor

I think the "Geofence Breach" message may not be being cleared correctly. This is testing with Copter-4.0.0-dev and latest beta MP.

Below screen shots show what I mean. The "Geofence Breach" is displayed but as far as I can tell the "FENCE_STATUS" message being sent is showing there are no actual breaches.

image
image

@meee1
Copy link
Contributor

meee1 commented Oct 31, 2019

the message comes from
MAV_SYS_STATUS_SENSOR

so i asume there is a reporting bit error in there

    ///<summary> 0x100000 geofence | </summary>
    [Description("0x100000 geofence")]
    MAV_SYS_STATUS_GEOFENCE=1048576, 

@rmackay9
Copy link
Contributor Author

@meee1, ok, I see the issue. It's all these extra checks that have been added. https://github.com/ArduPilot/ardupilot/blob/master/libraries/AC_Fence/AC_Fence.cpp#L455

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

No branches or pull requests

2 participants