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

COPTER: Don't log battery failsafe error when failsafe disabled #7639

Closed
wants to merge 1 commit into from

Conversation

Pedals2Paddles
Copy link
Contributor

This moves setting the ERROR_SUBSYSTEM_FAILSAFE_BATT logging call up to the if block so the failsafe error it is only set if the battery failsafe is enabled. Previously, you would get the error logging and GCS warning for failsafe even if the failsafe was disabled.

The low battery GCS message and AP_Notify stuff still goes through as normal, since those are only notifying of the low battery condition, not the failsafe itself. Also renamed the function from set_failsafe_battery to set_low_battery since it actually is only handling the low battery notification, not the failsafe notification.

This should close #7619

This moves setting ERROR_SUBSYSTEM_FAILSAFE_BATT logging call up to the if block so it is only set if the battery failsafe is enabled. The low battery GCS message and AP_Notify stuff still goes through as it should.  Also renamed the function from set_failsafe_battery to set_low_battery since it actually is only handlng the low battery notification, not the failsafe notification.
@WickedShell
Copy link
Contributor

#7213 creates the same result as well (among other things).

@Pedals2Paddles
Copy link
Contributor Author

I would deffer to yours and close this if yours is going to proceed.

@OXINARF
Copy link
Member

OXINARF commented Mar 7, 2018

@Pedals2Paddles It is the intention that @WickedShell's goes forward, so I'm closing this. Smack me if I'm taking too long to review the other one.

@OXINARF OXINARF closed this Mar 7, 2018
@Pedals2Paddles Pedals2Paddles deleted the lowbat branch March 7, 2018 14:04
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.

Copter: battery failsafe logged even when FS_BATT_ENABLE = 0
4 participants