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

GNSS: support MAVLink GNSS receiver status information #3347

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions ExtLibs/ArduPilot/CurrentState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,22 @@ public float altasl
[GroupText("Position")]
public float gpsyaw { get; private set; }

[DisplayText("GPS System Errors")]
[GroupText("Position")]
public uint gpssystem_errors { get; private set; }

[DisplayText("GPS Authentication Status")]
[GroupText("Position")]
public byte gpsauthentication_state { get; private set; }

[DisplayText("GPS Jamming Status")]
[GroupText("Position")]
public byte gpsjamming_state { get; private set; }

[DisplayText("GPS Spoofing Status")]
[GroupText("Position")]
public byte gpsspoofing_state { get; private set; }

[DisplayText("Latitude2 (dd)")]
[GroupText("Position")]
public double lat2 { get; set; }
Expand Down Expand Up @@ -3049,6 +3065,11 @@ private void Parent_OnPacketReceived(object sender, MAVLink.MAVLinkMessage mavLi
gpsyaw = -1;
}

gpssystem_errors = gps.system_errors;
gpsauthentication_state = gps.authentication_state;
gpsjamming_state = gps.jamming_state;
gpsspoofing_state = gps.spoofing_state;

//MAVLink.packets[(byte)MAVLink.MSG_NAMES.GPS_RAW);
}

Expand Down
Loading