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

cx_built_in_test: debounce audible warning for nil #146

Merged

Conversation

robertlong13
Copy link
Collaborator

We recently had a case where either rpm or servo out returned nil for a single loop for reasons that don't seem to be related to a telemetry dropout. To narrow down the cause, we have split the nil checks in two separate warnings. To prevent unnecessary concern, we are reducing the severity of the warning until one of these returns nil three loops in a row (or if 3+ ESCs do this all at once).

Also fixed an issue where continuous nil returns would result in message spam.

SW-219

@robertlong13 robertlong13 added the NEEDS BACKPORT Must be backported to earlier version label Jun 4, 2024
@robertlong13 robertlong13 requested a review from loki077 June 4, 2024 00:52
We recently had a case where either rpm or servo out returned nil for a
single loop for reasons that don't seem to be related to a telemetry
dropout. To narrow down the cause, we have split the nil checks in two
separate warnings. To prevent unnecessary concern, we are reducing the
severity of the warning until one of these returns nil three loops in a
row.

Also fixed an issue where continuous nil returns would result in message
spam.

SW-219
@robertlong13 robertlong13 force-pushed the feature/SW-219-v-37-pusher-message-during-forward-transition branch from eff7965 to 2a11455 Compare June 4, 2024 01:24
@loki077 loki077 requested a review from Pradeep-Carbonix June 4, 2024 03:39
This shifts the failure check at top of the loop where Esc Telem
previous time stamp, rpm and RC out are checked. Otherwise, the health
would have cycled constantly between good and bad.

Also drive-by cleanup of comments.

SW-219
@robertlong13 robertlong13 force-pushed the feature/SW-219-v-37-pusher-message-during-forward-transition branch from 0d038c6 to def5980 Compare June 4, 2024 03:59
@loki077
Copy link
Contributor

loki077 commented Jun 4, 2024

Needs IronBird testing

@loki077
Copy link
Contributor

loki077 commented Jun 4, 2024

image
Tested on IB

@loki077 loki077 merged commit 5d60277 into CxPilot Jun 4, 2024
17 checks passed
@robertlong13 robertlong13 removed the NEEDS BACKPORT Must be backported to earlier version label Jun 4, 2024
@robertlong13 robertlong13 deleted the feature/SW-219-v-37-pusher-message-during-forward-transition branch June 17, 2024 07:04
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