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

Backuplink Telemetry Update #17

Merged
merged 3 commits into from
Jan 9, 2024

Conversation

DavidPaddy97
Copy link

@DavidPaddy97 DavidPaddy97 commented Jan 9, 2024

This PR is interlinked with these:

For more detail, refer to those.

In short, we are now looking at the number of Mavlink connections providing setpoints (joystick connected) to determine if Backup GCS is connected.
We are also now monitoring the desired source as this is more informative with the way we toggle between source types.

@@ -458,9 +458,9 @@ class Telemetry : public PluginBase {
*/
struct VehicleStatus {
bool manual_control_signal_loss{false}; /**< @brief True if manual control signal is loss */
bool data_link_loss{false}; /**< @brief True if the data link is loss */
uint32_t mavlink_count{false}; /**< @brief Number of Mavlink connections providing setpoints (implying joystick connected). Should be < 2.*/

Choose a reason for hiding this comment

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

We should initialize the mavlink_count with the correct initialization value, i.e. 0, rather than false.

Copy link
Author

Choose a reason for hiding this comment

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

Whoopsies

Copy link

@wsolichin-sees wsolichin-sees left a comment

Choose a reason for hiding this comment

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

LGTM!

@DavidPaddy97 DavidPaddy97 changed the title Dp backuplink telemetry update Backuplink Telemetry Update Jan 9, 2024
@DavidPaddy97 DavidPaddy97 merged commit 3d4cf6c into v1.4.11_dev Jan 9, 2024
21 of 31 checks passed
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.

2 participants