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

Rover: fix ModeReason on fence breaches #27431

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

Williangalvani
Copy link
Contributor

I am not sure if there's an underlying reason for these to be set to BATTERY_FAILSAFE of it it was a mistake.
If it was on purpose, we should at least add a comment explaining what is going on.

@Williangalvani Williangalvani requested a review from rmackay9 July 1, 2024 16:06
Copy link
Contributor

@khancyr khancyr left a comment

Choose a reason for hiding this comment

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

Issue comes from PR : #25066 .
Good catch. We should correct the other too:

@rmackay9 rmackay9 merged commit dabc34e into ArduPilot:master Jul 1, 2024
59 checks passed
@rmackay9
Copy link
Contributor

rmackay9 commented Jul 1, 2024

Merged, thanks!

Perhaps as @khancyr says we could do even better by mapping the failsafe_trigger method's failsafe_type argument to a ModeReason::FAILSAFE_RADIO or ModeReason::FAILSAFE_GCS but this PR is still an improvement so I've merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants