|
Firmware
|
Public Member Functions | |
| void | reset (battery_status_s *battery_status) |
| Reset all battery stats and report invalid/nothing. | |
| int | cell_count () |
| Get the battery cell count. | |
| float | empty_cell_voltage () |
| Get the empty voltage per cell. | |
| float | full_cell_voltage () |
| Get the full voltage per cell. | |
| void | updateBatteryStatus (hrt_abstime timestamp, float voltage_v, float current_a, bool connected, bool selected_source, int priority, float throttle_normalized, bool armed, battery_status_s *status) |
| Update current battery status message. More... | |
Public Member Functions inherited from ModuleParams | |
| ModuleParams (ModuleParams *parent) | |
| void | setParent (ModuleParams *parent) |
| Sets the parent module. More... | |
| ModuleParams (const ModuleParams &)=delete | |
| ModuleParams & | operator= (const ModuleParams &)=delete |
| ModuleParams (ModuleParams &&)=delete | |
| ModuleParams & | operator= (ModuleParams &&)=delete |
Public Member Functions inherited from ListNode< ModuleParams *> | |
| void | setSibling (ModuleParams * sibling) |
| const ModuleParams * | getSibling () const |
Additional Inherited Members | |
Protected Member Functions inherited from ModuleParams | |
| virtual void | updateParams () |
| Call this method whenever the module gets a parameter change notification. More... | |
| virtual void | updateParamsImpl () |
| The implementation for this is generated with the macro DEFINE_PARAMETERS() | |
Protected Attributes inherited from ListNode< ModuleParams *> | |
| ModuleParams * | _sibling |
| void Battery::updateBatteryStatus | ( | hrt_abstime | timestamp, |
| float | voltage_v, | ||
| float | current_a, | ||
| bool | connected, | ||
| bool | selected_source, | ||
| int | priority, | ||
| float | throttle_normalized, | ||
| bool | armed, | ||
| battery_status_s * | status | ||
| ) |
Update current battery status message.
| voltage_v | current voltage in V |
| current_a | current current in A |
| connected | Battery is connected |
| selected_source | This battery is on the brick that the selected source for selected_source |
| priority | The brick number -1. The term priority refers to the Vn connection on the LTC4417 |
| throttle_normalized | throttle from 0 to 1 |
1.8.12