#ifndef C_API_SENSOR_MSGS_BATTERYSTATE_H
#define C_API_SENSOR_MSGS_BATTERYSTATE_H

#ifdef __cplusplus
extern "C" {
#endif

#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
#include "std_msgs/Header.h"

typedef struct
{
  Header header;
  float voltage;
  float current;
  float charge;
  float capacity;
  float design_capacity;
  float percentage;
  uint8_t power_supply_status;
  uint8_t power_supply_health;
  uint8_t power_supply_technology;
  bool present;
  float *cell_voltage;
  size_t cell_voltage_count;
  float *cell_temperature;
  size_t cell_temperature_count;
  char *location;
  char *serial_number;
} BatteryState;

#ifdef __cplusplus
}
#endif

#endif // C_API_SENSOR_MSGS_BATTERYSTATE_H
