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

telemetry: sys_status for position health flags #1794

Merged
merged 2 commits into from
Jun 1, 2022
Merged

Conversation

julianoes
Copy link
Collaborator

With this commit we start to use the sys_status flags to determine whether local and global position are ok. If the flags don't appear to be set, we fall back to counting GPS satellites like before.

JonasVautherin
JonasVautherin previously approved these changes May 29, 2022
@@ -416,5 +419,12 @@ class TelemetryImpl : public PluginImplBase {
OffsetStatus gyro_offset;

} _ap_calibration{};

enum class SysStatusUsed {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: this could be a SysStatus { Unknown, Used, Unused } instead of something that sounds like an augmented boolean 😁

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yes, good point.

@julianoes julianoes changed the base branch from main to pr-command-improvements May 30, 2022 05:19
Base automatically changed from pr-command-improvements to main May 30, 2022 20:41
With this commit we start to use the sys_status flags to determine
whether local and global position are ok. If the flags don't appear to
be set, we fall back to counting GPS satellites like before.
For some reason PX4 doesn't set enabled for GPS, sadly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants