mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-30 21:12:20 +08:00
docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
This commit is contained in:
1 parent
a9a5681000
commit
42ac4cab88
2 files changed
+70
-78
No files matched your search
@@ -14,46 +14,46 @@ Battery instance information is also logged and streamed in MAVLink telemetry.
|
||||
|
||||
## Fields
|
||||
|
||||
| Name | Type | Unit [Frame] | Range/Enum | Description |
|
||||
| ------------------------------------------------------------------------- | ------------- | ------------ | ------------------------------------ | ----------------------------------------------------------------------------------------------------------- |
|
||||
| <a id="fld_timestamp"></a>timestamp | `uint64` | us | | Time since system start |
|
||||
| <a id="fld_connected"></a>connected | `bool` | | | Whether or not a battery is connected. For power modules this is based on a voltage threshold. |
|
||||
| <a id="fld_voltage_v"></a>voltage_v | `float32` | V | | Battery voltage (Invalid: 0) |
|
||||
| <a id="fld_current_a"></a>current_a | `float32` | A | | Battery current (Invalid: -1) |
|
||||
| <a id="fld_current_average_a"></a>current_average_a | `float32` | A | | Battery current average (for FW average in level flight) (Invalid: -1) |
|
||||
| <a id="fld_discharged_mah"></a>discharged_mah | `float32` | mAh | | Discharged amount (Invalid: -1) |
|
||||
| <a id="fld_remaining"></a>remaining | `float32` | | [0 : 1] | Remaining capacity (Invalid: -1) |
|
||||
| <a id="fld_scale"></a>scale | `float32` | | [1 : -] | Scaling factor to compensate for lower actuation power caused by voltage sag (Invalid: -1) |
|
||||
| <a id="fld_time_remaining_s"></a>time_remaining_s | `float32` | s | | Predicted time remaining until battery is empty under previous averaged load (Invalid: NaN) |
|
||||
| <a id="fld_temperature"></a>temperature | `float32` | degC | | Temperature of the battery (Invalid: NaN) |
|
||||
| <a id="fld_cell_count"></a>cell_count | `uint8` | | | Number of cells (Invalid: 0) |
|
||||
| <a id="fld_source"></a>source | `uint8` | | [SOURCE](#SOURCE) | Battery source |
|
||||
| <a id="fld_priority"></a>priority | `uint8` | | | Zero based priority is the connection on the Power Controller V1..Vn AKA BrickN-1 |
|
||||
| <a id="fld_capacity"></a>capacity | `uint16` | mAh | | Capacity of the battery when fully charged |
|
||||
| <a id="fld_cycle_count"></a>cycle_count | `uint16` | | | Number of discharge cycles the battery has experienced |
|
||||
| <a id="fld_average_time_to_empty"></a>average_time_to_empty | `uint16` | minutes | | Predicted remaining battery capacity based on the average rate of discharge |
|
||||
| <a id="fld_manufacture_date"></a>manufacture_date | `uint16` | | | Manufacture date, part of serial number of the battery pack. Formatted as: Day + Month×32 + (Year–1980)×512 |
|
||||
| <a id="fld_state_of_health"></a>state_of_health | `uint16` | % | [0 : 100] | State of health. FullChargeCapacity/DesignCapacity |
|
||||
| <a id="fld_max_error"></a>max_error | `uint16` | % | [1 : 100] | Max error, expected margin of error in the state-of-charge calculation |
|
||||
| <a id="fld_id"></a>id | `uint8` | | | ID number of a battery. Should be unique and consistent for the lifetime of a vehicle. 1-indexed |
|
||||
| <a id="fld_interface_error"></a>interface_error | `uint16` | | | Interface error counter |
|
||||
| <a id="fld_voltage_cell_v"></a>voltage_cell_v | `float32[14]` | V | | Battery individual cell voltages (Invalid: 0) |
|
||||
| <a id="fld_max_cell_voltage_delta"></a>max_cell_voltage_delta | `float32` | V | | Max difference between individual cell voltages |
|
||||
| <a id="fld_is_powering_off"></a>is_powering_off | `bool` | | | Power off event imminent indication, false if unknown |
|
||||
| <a id="fld_is_required"></a>is_required | `bool` | | | Set if the battery is explicitly required before arming |
|
||||
| <a id="fld_warning"></a>warning | `uint8` | | [WARNING](#WARNING), [STATE](#STATE) | Current battery warning |
|
||||
| <a id="fld_faults"></a>faults | `uint16` | | [FAULT](#FAULT) | Smart battery supply status/fault flags (bitmask) for health indication |
|
||||
| <a id="fld_full_charge_capacity_wh"></a>full_charge_capacity_wh | `float32` | Wh | | Compensated battery capacity |
|
||||
| <a id="fld_remaining_capacity_wh"></a>remaining_capacity_wh | `float32` | Wh | | Compensated battery capacity remaining (Invalid: NaN) |
|
||||
| <a id="fld_over_discharge_count"></a>over_discharge_count | `uint16` | | | Number of battery overdischarge |
|
||||
| <a id="fld_nominal_voltage"></a>nominal_voltage | `float32` | V | | Nominal voltage of the battery pack (Invalid: NaN) |
|
||||
| <a id="fld_internal_resistance_estimate"></a>internal_resistance_estimate | `float32` | Ohm | | Internal resistance per cell estimate |
|
||||
| <a id="fld_ocv_estimate"></a>ocv_estimate | `float32` | V | | Open circuit voltage estimate |
|
||||
| <a id="fld_ocv_estimate_filtered"></a>ocv_estimate_filtered | `float32` | V | | Filtered open circuit voltage estimate |
|
||||
| <a id="fld_volt_based_soc_estimate"></a>volt_based_soc_estimate | `float32` | | [0 : 1] | Normalized volt based state of charge estimate |
|
||||
| <a id="fld_voltage_prediction"></a>voltage_prediction | `float32` | V | | Predicted voltage |
|
||||
| <a id="fld_prediction_error"></a>prediction_error | `float32` | V | | Prediction error |
|
||||
| <a id="fld_estimation_covariance_norm"></a>estimation_covariance_norm | `float32` | | | Norm of the covariance matrix |
|
||||
| Name | Type | Unit [Frame] | Range/Enum | Description |
|
||||
| ------------------------------------------------------------------------- | ------------- | ------------ | ------------------- | ----------------------------------------------------------------------------------------------------------- |
|
||||
| <a id="fld_timestamp"></a>timestamp | `uint64` | us | | Time since system start |
|
||||
| <a id="fld_connected"></a>connected | `bool` | | | Whether or not a battery is connected. For power modules this is based on a voltage threshold. |
|
||||
| <a id="fld_voltage_v"></a>voltage_v | `float32` | V | | Battery voltage (Invalid: 0) |
|
||||
| <a id="fld_current_a"></a>current_a | `float32` | A | | Battery current (Invalid: -1) |
|
||||
| <a id="fld_current_average_a"></a>current_average_a | `float32` | A | | Battery current average (for FW average in level flight) (Invalid: -1) |
|
||||
| <a id="fld_discharged_mah"></a>discharged_mah | `float32` | mAh | | Discharged amount (Invalid: -1) |
|
||||
| <a id="fld_remaining"></a>remaining | `float32` | | [0 : 1] | Remaining capacity (Invalid: -1) |
|
||||
| <a id="fld_scale"></a>scale | `float32` | | [1 : -] | Scaling factor to compensate for lower actuation power caused by voltage sag (Invalid: -1) |
|
||||
| <a id="fld_time_remaining_s"></a>time_remaining_s | `float32` | s | | Predicted time remaining until battery is empty under previous averaged load (Invalid: NaN) |
|
||||
| <a id="fld_temperature"></a>temperature | `float32` | degC | | Temperature of the battery (Invalid: NaN) |
|
||||
| <a id="fld_cell_count"></a>cell_count | `uint8` | | | Number of cells (Invalid: 0) |
|
||||
| <a id="fld_source"></a>source | `uint8` | | [SOURCE](#SOURCE) | Battery source |
|
||||
| <a id="fld_priority"></a>priority | `uint8` | | | Zero based priority is the connection on the Power Controller V1..Vn AKA BrickN-1 |
|
||||
| <a id="fld_capacity"></a>capacity | `uint16` | mAh | | Capacity of the battery when fully charged |
|
||||
| <a id="fld_cycle_count"></a>cycle_count | `uint16` | | | Number of discharge cycles the battery has experienced |
|
||||
| <a id="fld_average_time_to_empty"></a>average_time_to_empty | `uint16` | minutes | | Predicted remaining battery capacity based on the average rate of discharge |
|
||||
| <a id="fld_manufacture_date"></a>manufacture_date | `uint16` | | | Manufacture date, part of serial number of the battery pack. Formatted as: Day + Month×32 + (Year–1980)×512 |
|
||||
| <a id="fld_state_of_health"></a>state_of_health | `uint16` | % | [0 : 100] | State of health. FullChargeCapacity/DesignCapacity |
|
||||
| <a id="fld_max_error"></a>max_error | `uint16` | % | [1 : 100] | Max error, expected margin of error in the state-of-charge calculation |
|
||||
| <a id="fld_id"></a>id | `uint8` | | | ID number of a battery. Should be unique and consistent for the lifetime of a vehicle. 1-indexed |
|
||||
| <a id="fld_interface_error"></a>interface_error | `uint16` | | | Interface error counter |
|
||||
| <a id="fld_voltage_cell_v"></a>voltage_cell_v | `float32[14]` | V | | Battery individual cell voltages (Invalid: 0) |
|
||||
| <a id="fld_max_cell_voltage_delta"></a>max_cell_voltage_delta | `float32` | V | | Max difference between individual cell voltages |
|
||||
| <a id="fld_is_powering_off"></a>is_powering_off | `bool` | | | Power off event imminent indication, false if unknown |
|
||||
| <a id="fld_is_required"></a>is_required | `bool` | | | Set if the battery is explicitly required before arming |
|
||||
| <a id="fld_warning"></a>warning | `uint8` | | [WARNING](#WARNING) | Current battery warning |
|
||||
| <a id="fld_faults"></a>faults | `uint16` | | [FAULT](#FAULT) | Smart battery supply status/fault flags (bitmask) for health indication |
|
||||
| <a id="fld_full_charge_capacity_wh"></a>full_charge_capacity_wh | `float32` | Wh | | Compensated battery capacity |
|
||||
| <a id="fld_remaining_capacity_wh"></a>remaining_capacity_wh | `float32` | Wh | | Compensated battery capacity remaining (Invalid: NaN) |
|
||||
| <a id="fld_over_discharge_count"></a>over_discharge_count | `uint16` | | | Number of battery overdischarge |
|
||||
| <a id="fld_nominal_voltage"></a>nominal_voltage | `float32` | V | | Nominal voltage of the battery pack (Invalid: NaN) |
|
||||
| <a id="fld_internal_resistance_estimate"></a>internal_resistance_estimate | `float32` | Ohm | | Internal resistance per cell estimate |
|
||||
| <a id="fld_ocv_estimate"></a>ocv_estimate | `float32` | V | | Open circuit voltage estimate |
|
||||
| <a id="fld_ocv_estimate_filtered"></a>ocv_estimate_filtered | `float32` | V | | Filtered open circuit voltage estimate |
|
||||
| <a id="fld_volt_based_soc_estimate"></a>volt_based_soc_estimate | `float32` | | [0 : 1] | Normalized volt based state of charge estimate |
|
||||
| <a id="fld_voltage_prediction"></a>voltage_prediction | `float32` | V | | Predicted voltage |
|
||||
| <a id="fld_prediction_error"></a>prediction_error | `float32` | V | | Prediction error |
|
||||
| <a id="fld_estimation_covariance_norm"></a>estimation_covariance_norm | `float32` | | | Norm of the covariance matrix |
|
||||
|
||||
## Enums
|
||||
|
||||
@@ -71,22 +71,15 @@ Used in field(s): [source](#fld_source)
|
||||
|
||||
Used in field(s): [warning](#fld_warning)
|
||||
|
||||
| Name | Type | Value | Description |
|
||||
| ------------------------------------------------- | ------- | ----- | -------------------------------------------- |
|
||||
| <a id="#WARNING_NONE"></a> WARNING_NONE | `uint8` | 0 | No battery low voltage warning active |
|
||||
| <a id="#WARNING_LOW"></a> WARNING_LOW | `uint8` | 1 | Low voltage warning |
|
||||
| <a id="#WARNING_CRITICAL"></a> WARNING_CRITICAL | `uint8` | 2 | Critical voltage, return / abort immediately |
|
||||
| <a id="#WARNING_EMERGENCY"></a> WARNING_EMERGENCY | `uint8` | 3 | Immediate landing required |
|
||||
| <a id="#WARNING_FAILED"></a> WARNING_FAILED | `uint8` | 4 | Battery has failed completely |
|
||||
|
||||
### STATE {#STATE}
|
||||
|
||||
Used in field(s): [warning](#fld_warning)
|
||||
|
||||
| Name | Type | Value | Description |
|
||||
| --------------------------------------------- | ------- | ----- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| <a id="#STATE_UNHEALTHY"></a> STATE_UNHEALTHY | `uint8` | 6 | Battery is diagnosed to be defective or an error occurred, usage is discouraged / prohibited. Possible causes (faults) are listed in faults field |
|
||||
| <a id="#STATE_CHARGING"></a> STATE_CHARGING | `uint8` | 7 | Battery is charging |
|
||||
| Name | Type | Value | Description |
|
||||
| ------------------------------------------------- | ------- | ----- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| <a id="#WARNING_NONE"></a> WARNING_NONE | `uint8` | 0 | No battery low voltage warning active |
|
||||
| <a id="#WARNING_LOW"></a> WARNING_LOW | `uint8` | 1 | Low voltage warning |
|
||||
| <a id="#WARNING_CRITICAL"></a> WARNING_CRITICAL | `uint8` | 2 | Critical voltage, return / abort immediately |
|
||||
| <a id="#WARNING_EMERGENCY"></a> WARNING_EMERGENCY | `uint8` | 3 | Immediate landing required |
|
||||
| <a id="#WARNING_FAILED"></a> WARNING_FAILED | `uint8` | 4 | Battery has failed completely |
|
||||
| <a id="#WARNING_UNHEALTHY"></a> WARNING_UNHEALTHY | `uint8` | 6 | Battery is diagnosed to be defective or an error occurred, usage is discouraged / prohibited. Possible causes (faults) are listed in faults field |
|
||||
| <a id="#WARNING_CHARGING"></a> WARNING_CHARGING | `uint8` | 7 | Battery is charging |
|
||||
|
||||
### FAULT {#FAULT}
|
||||
|
||||
@@ -164,14 +157,14 @@ float32 max_cell_voltage_delta # [V] Max difference between individual cell volt
|
||||
bool is_powering_off # Power off event imminent indication, false if unknown
|
||||
bool is_required # Set if the battery is explicitly required before arming
|
||||
|
||||
uint8 warning # [@enum WARNING STATE] Current battery warning
|
||||
uint8 warning # [@enum WARNING] Current battery warning
|
||||
uint8 WARNING_NONE = 0 # No battery low voltage warning active
|
||||
uint8 WARNING_LOW = 1 # Low voltage warning
|
||||
uint8 WARNING_CRITICAL = 2 # Critical voltage, return / abort immediately
|
||||
uint8 WARNING_EMERGENCY = 3 # Immediate landing required
|
||||
uint8 WARNING_FAILED = 4 # Battery has failed completely
|
||||
uint8 STATE_UNHEALTHY = 6 # Battery is diagnosed to be defective or an error occurred, usage is discouraged / prohibited. Possible causes (faults) are listed in faults field
|
||||
uint8 STATE_CHARGING = 7 # Battery is charging
|
||||
uint8 WARNING_UNHEALTHY = 6 # Battery is diagnosed to be defective or an error occurred, usage is discouraged / prohibited. Possible causes (faults) are listed in faults field
|
||||
uint8 WARNING_CHARGING = 7 # Battery is charging
|
||||
|
||||
uint16 faults # [@enum FAULT] Smart battery supply status/fault flags (bitmask) for health indication
|
||||
uint8 FAULT_DEEP_DISCHARGE = 0 # Battery has deep discharged
|
||||
|
||||
@@ -16,12 +16,12 @@ pageClass: is-wide-page
|
||||
| <a id="fld_maybe_landed"></a>maybe_landed | `bool` | | | true if the vehicle might have landed (2. stage) |
|
||||
| <a id="fld_landed"></a>landed | `bool` | | | true if vehicle is currently landed on the ground (3. stage) |
|
||||
| <a id="fld_in_ground_effect"></a>in_ground_effect | `bool` | | | indicates if from the perspective of the landing detector the vehicle might be in ground effect (baro). This flag will become true if the vehicle is not moving horizontally and is descending (crude assumption that user is landing). |
|
||||
| <a id="fld_in_descend"></a>in_descend | `bool` | | |
|
||||
| <a id="fld_has_low_throttle"></a>has_low_throttle | `bool` | | |
|
||||
| <a id="fld_vertical_movement"></a>vertical_movement | `bool` | | |
|
||||
| <a id="fld_horizontal_movement"></a>horizontal_movement | `bool` | | |
|
||||
| <a id="fld_rotational_movement"></a>rotational_movement | `bool` | | |
|
||||
| <a id="fld_close_to_ground_or_skipped_check"></a>close_to_ground_or_skipped_check | `bool` | | |
|
||||
| <a id="fld_in_descend"></a>in_descend | `bool` | | | true only if commanded to descend faster than 1.1 \* LNDMC_Z_VEL_MAX for every update since the previous publication |
|
||||
| <a id="fld_has_low_throttle"></a>has_low_throttle | `bool` | | | true only if throttle was at or below the low-throttle threshold for every update since the previous publication |
|
||||
| <a id="fld_vertical_movement"></a>vertical_movement | `bool` | | | false only if vertical velocity stayed below LNDMC_Z_VEL_MAX for every update since the previous publication |
|
||||
| <a id="fld_horizontal_movement"></a>horizontal_movement | `bool` | | | false only if horizontal velocity stayed below LNDMC_XY_VEL_MAX for every update since the previous publication |
|
||||
| <a id="fld_rotational_movement"></a>rotational_movement | `bool` | | | false only if roll/pitch rate stayed below LNDMC_ROT_MAX for every update since the previous publication |
|
||||
| <a id="fld_close_to_ground_or_skipped_check"></a>close_to_ground_or_skipped_check | `bool` | | | true only if close to the ground, or the check was skipped (no distance sensor), for every update since the previous publication |
|
||||
| <a id="fld_at_rest"></a>at_rest | `bool` | | |
|
||||
|
||||
## Constants
|
||||
@@ -39,23 +39,22 @@ pageClass: is-wide-page
|
||||
```c
|
||||
uint32 MESSAGE_VERSION = 0
|
||||
|
||||
uint64 timestamp # time since system start (microseconds)
|
||||
uint64 timestamp # time since system start (microseconds)
|
||||
|
||||
bool freefall # true if vehicle is currently in free-fall
|
||||
bool ground_contact # true if vehicle has ground contact but is not landed (1. stage)
|
||||
bool maybe_landed # true if the vehicle might have landed (2. stage)
|
||||
bool landed # true if vehicle is currently landed on the ground (3. stage)
|
||||
bool freefall # true if vehicle is currently in free-fall
|
||||
bool ground_contact # true if vehicle has ground contact but is not landed (1. stage)
|
||||
bool maybe_landed # true if the vehicle might have landed (2. stage)
|
||||
bool landed # true if vehicle is currently landed on the ground (3. stage)
|
||||
|
||||
bool in_ground_effect # indicates if from the perspective of the landing detector the vehicle might be in ground effect (baro). This flag will become true if the vehicle is not moving horizontally and is descending (crude assumption that user is landing).
|
||||
bool in_descend
|
||||
|
||||
bool has_low_throttle
|
||||
|
||||
bool vertical_movement
|
||||
bool horizontal_movement
|
||||
bool rotational_movement
|
||||
|
||||
bool close_to_ground_or_skipped_check
|
||||
# Flags in this paragraph are for diagnostic logging only
|
||||
bool in_descend # true only if commanded to descend faster than 1.1 * LNDMC_Z_VEL_MAX for every update since the previous publication
|
||||
bool has_low_throttle # true only if throttle was at or below the low-throttle threshold for every update since the previous publication
|
||||
bool vertical_movement # false only if vertical velocity stayed below LNDMC_Z_VEL_MAX for every update since the previous publication
|
||||
bool horizontal_movement # false only if horizontal velocity stayed below LNDMC_XY_VEL_MAX for every update since the previous publication
|
||||
bool rotational_movement # false only if roll/pitch rate stayed below LNDMC_ROT_MAX for every update since the previous publication
|
||||
bool close_to_ground_or_skipped_check # true only if close to the ground, or the check was skipped (no distance sensor), for every update since the previous publication
|
||||
|
||||
bool at_rest
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user