-
Notifications
You must be signed in to change notification settings - Fork 18.7k
AP_Periph: added BatteryTag support #29983
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
Conversation
78988a0
to
cb0fd13
Compare
information about number of cycles a battery has been through along | ||
with the serial number and number of hours in an armed state. | ||
|
||
The log message in BTAG |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you forget to finish a thought?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty sure this needs to be filled out with some
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with this, thanks
Tools/AP_Periph/can.cpp
Outdated
@@ -524,6 +524,21 @@ void AP_Periph_FW::handle_arming_status(CanardInstance* canard_instance, CanardR | |||
} | |||
|
|||
|
|||
#if AP_PERIPH_RTC_ENABLED |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#if AP_PERIPH_RTC_ENABLED | |
#if AP_PERIPH_RTC_GLOBALTIME_ENABLED |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from the define request I've made, I think this looks really good.
I have reservations about the global time message, but it's nowhere near as big an issue if we're not locked into it in the main firmware.
@peterbarker added AP_PERIPH_RTC_GLOBALTIME_ENABLED |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Just a few comment problems now.
Tools/AP_Periph/battery_tag.cpp
Outdated
battery info support. This feature has a set of parameters which are | ||
controlled by a lua script on the FMU. The battery infomation node | ||
is attached to a specific battery and recorded the number of cycles, | ||
and total armed time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure this is entirely accurate now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
information about number of cycles a battery has been through along | ||
with the serial number and number of hours in an armed state. | ||
|
||
The log message in BTAG |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty sure this needs to be filled out with some
this implements a battery tag node that is permanently attached to a battery to give information on armed hours and cycles
This adds support for BatteryTag functionality in AP_Periph, along with a lua script for logging and handling battery tags.
A batterytag is a DroneCAN node that is permanently attached to the battery to record battery cycles and armed time. It is helpful for managing battery lifetime. Note that the batterytag may not have access to the battery voltage/current/state-of-charge
split from #29310 as requested by @tpwrules