github.com/bluenviron/gomavlib/v2@v2.2.1-0.20240308101627-2c07e3da629c/pkg/dialects/all/enum_mav_battery_status_flags.go (about)

     1  //autogenerated:yes
     2  //nolint:revive,misspell,govet,lll,dupl,gocritic
     3  package all
     4  
     5  import (
     6  	"github.com/bluenviron/gomavlib/v2/pkg/dialects/development"
     7  )
     8  
     9  // Battery status flags for fault, health and state indication.
    10  type MAV_BATTERY_STATUS_FLAGS = development.MAV_BATTERY_STATUS_FLAGS
    11  
    12  const (
    13  	// The battery is not ready to use (fly).
    14  	// Set if the battery has faults or other conditions that make it unsafe to fly with.
    15  	// Note: It will be the logical OR of other status bits (chosen by the manufacturer/integrator).
    16  	MAV_BATTERY_STATUS_FLAGS_NOT_READY_TO_USE MAV_BATTERY_STATUS_FLAGS = development.MAV_BATTERY_STATUS_FLAGS_NOT_READY_TO_USE
    17  	// Battery is charging.
    18  	MAV_BATTERY_STATUS_FLAGS_CHARGING MAV_BATTERY_STATUS_FLAGS = development.MAV_BATTERY_STATUS_FLAGS_CHARGING
    19  	// Battery is cell balancing (during charging).
    20  	// Not ready to use (MAV_BATTERY_STATUS_FLAGS_NOT_READY_TO_USE may be set).
    21  	MAV_BATTERY_STATUS_FLAGS_CELL_BALANCING MAV_BATTERY_STATUS_FLAGS = development.MAV_BATTERY_STATUS_FLAGS_CELL_BALANCING
    22  	// Battery cells are not balanced.
    23  	// Not ready to use.
    24  	MAV_BATTERY_STATUS_FLAGS_FAULT_CELL_IMBALANCE MAV_BATTERY_STATUS_FLAGS = development.MAV_BATTERY_STATUS_FLAGS_FAULT_CELL_IMBALANCE
    25  	// Battery is auto discharging (towards storage level).
    26  	// Not ready to use (MAV_BATTERY_STATUS_FLAGS_NOT_READY_TO_USE would be set).
    27  	MAV_BATTERY_STATUS_FLAGS_AUTO_DISCHARGING MAV_BATTERY_STATUS_FLAGS = development.MAV_BATTERY_STATUS_FLAGS_AUTO_DISCHARGING
    28  	// Battery requires service (not safe to fly).
    29  	// This is set at vendor discretion.
    30  	// It is likely to be set for most faults, and may also be set according to a maintenance schedule (such as age, or number of recharge cycles, etc.).
    31  	MAV_BATTERY_STATUS_FLAGS_REQUIRES_SERVICE MAV_BATTERY_STATUS_FLAGS = development.MAV_BATTERY_STATUS_FLAGS_REQUIRES_SERVICE
    32  	// Battery is faulty and cannot be repaired (not safe to fly).
    33  	// This is set at vendor discretion.
    34  	// The battery should be disposed of safely.
    35  	MAV_BATTERY_STATUS_FLAGS_BAD_BATTERY MAV_BATTERY_STATUS_FLAGS = development.MAV_BATTERY_STATUS_FLAGS_BAD_BATTERY
    36  	// Automatic battery protection monitoring is enabled.
    37  	// When enabled, the system will monitor for certain kinds of faults, such as cells being over-voltage.
    38  	// If a fault is triggered then and protections are enabled then a safety fault (MAV_BATTERY_STATUS_FLAGS_FAULT_PROTECTION_SYSTEM) will be set and power from the battery will be stopped.
    39  	// Note that battery protection monitoring should only be enabled when the vehicle is landed. Once the vehicle is armed, or starts moving, the protections should be disabled to prevent false positives from disabling the output.
    40  	MAV_BATTERY_STATUS_FLAGS_PROTECTIONS_ENABLED MAV_BATTERY_STATUS_FLAGS = development.MAV_BATTERY_STATUS_FLAGS_PROTECTIONS_ENABLED
    41  	// The battery fault protection system had detected a fault and cut all power from the battery.
    42  	// This will only trigger if MAV_BATTERY_STATUS_FLAGS_PROTECTIONS_ENABLED is set.
    43  	// Other faults like MAV_BATTERY_STATUS_FLAGS_FAULT_OVER_VOLT may also be set, indicating the cause of the protection fault.
    44  	MAV_BATTERY_STATUS_FLAGS_FAULT_PROTECTION_SYSTEM MAV_BATTERY_STATUS_FLAGS = development.MAV_BATTERY_STATUS_FLAGS_FAULT_PROTECTION_SYSTEM
    45  	// One or more cells are above their maximum voltage rating.
    46  	MAV_BATTERY_STATUS_FLAGS_FAULT_OVER_VOLT MAV_BATTERY_STATUS_FLAGS = development.MAV_BATTERY_STATUS_FLAGS_FAULT_OVER_VOLT
    47  	// One or more cells are below their minimum voltage rating.
    48  	// A battery that had deep-discharged might be irrepairably damaged, and set both MAV_BATTERY_STATUS_FLAGS_FAULT_UNDER_VOLT and MAV_BATTERY_STATUS_FLAGS_BAD_BATTERY.
    49  	MAV_BATTERY_STATUS_FLAGS_FAULT_UNDER_VOLT MAV_BATTERY_STATUS_FLAGS = development.MAV_BATTERY_STATUS_FLAGS_FAULT_UNDER_VOLT
    50  	// Over-temperature fault.
    51  	MAV_BATTERY_STATUS_FLAGS_FAULT_OVER_TEMPERATURE MAV_BATTERY_STATUS_FLAGS = development.MAV_BATTERY_STATUS_FLAGS_FAULT_OVER_TEMPERATURE
    52  	// Under-temperature fault.
    53  	MAV_BATTERY_STATUS_FLAGS_FAULT_UNDER_TEMPERATURE MAV_BATTERY_STATUS_FLAGS = development.MAV_BATTERY_STATUS_FLAGS_FAULT_UNDER_TEMPERATURE
    54  	// Over-current fault.
    55  	MAV_BATTERY_STATUS_FLAGS_FAULT_OVER_CURRENT MAV_BATTERY_STATUS_FLAGS = development.MAV_BATTERY_STATUS_FLAGS_FAULT_OVER_CURRENT
    56  	// Short circuit event detected.
    57  	// The battery may or may not be safe to use (check other flags).
    58  	MAV_BATTERY_STATUS_FLAGS_FAULT_SHORT_CIRCUIT MAV_BATTERY_STATUS_FLAGS = development.MAV_BATTERY_STATUS_FLAGS_FAULT_SHORT_CIRCUIT
    59  	// Voltage not compatible with power rail voltage (batteries on same power rail should have similar voltage).
    60  	MAV_BATTERY_STATUS_FLAGS_FAULT_INCOMPATIBLE_VOLTAGE MAV_BATTERY_STATUS_FLAGS = development.MAV_BATTERY_STATUS_FLAGS_FAULT_INCOMPATIBLE_VOLTAGE
    61  	// Battery firmware is not compatible with current autopilot firmware.
    62  	MAV_BATTERY_STATUS_FLAGS_FAULT_INCOMPATIBLE_FIRMWARE MAV_BATTERY_STATUS_FLAGS = development.MAV_BATTERY_STATUS_FLAGS_FAULT_INCOMPATIBLE_FIRMWARE
    63  	// Battery is not compatible due to cell configuration (e.g. 5s1p when vehicle requires 6s).
    64  	MAV_BATTERY_STATUS_FLAGS_FAULT_INCOMPATIBLE_CELLS_CONFIGURATION MAV_BATTERY_STATUS_FLAGS = development.MAV_BATTERY_STATUS_FLAGS_FAULT_INCOMPATIBLE_CELLS_CONFIGURATION
    65  	// Battery capacity_consumed and capacity_remaining values are relative to a full battery (they sum to the total capacity of the battery).
    66  	// This flag would be set for a smart battery that can accurately determine its remaining charge across vehicle reboots and discharge/recharge cycles.
    67  	// If unset the capacity_consumed indicates the consumption since vehicle power-on, as measured using a power monitor. The capacity_remaining, if provided, indicates the estimated remaining capacity on the assumption that the battery was full on vehicle boot.
    68  	// If unset a GCS is recommended to advise that users fully charge the battery on power on.
    69  	MAV_BATTERY_STATUS_FLAGS_CAPACITY_RELATIVE_TO_FULL MAV_BATTERY_STATUS_FLAGS = development.MAV_BATTERY_STATUS_FLAGS_CAPACITY_RELATIVE_TO_FULL
    70  	// Reserved (not used). If set, this will indicate that an additional status field exists for higher status values.
    71  	MAV_BATTERY_STATUS_FLAGS_EXTENDED MAV_BATTERY_STATUS_FLAGS = development.MAV_BATTERY_STATUS_FLAGS_EXTENDED
    72  )