APM:Libraries
Macros | Variables
AP_BattMonitor_Bebop.cpp File Reference
#include <AP_HAL/AP_HAL.h>
#include "AP_BattMonitor_Bebop.h"
#include <AP_HAL_Linux/RCOutput_Bebop.h>
#include <AP_HAL_Linux/RCOutput_Disco.h>
Include dependency graph for AP_BattMonitor_Bebop.cpp:

Go to the source code of this file.

Macros

#define BATTERY_VOLTAGE_COMPENSATION_LANDED   (0.2f)
 
#define BATTERY_PERCENT_LUT_SIZE   ARRAY_SIZE(bat_lut)
 

Variables

const AP_HAL::HALhal
 
static const float bat_comp_polynomial_coeffs [5]
 
struct {
   float   voltage
 
   float   percent
 
bat_lut []
 

Macro Definition Documentation

◆ BATTERY_PERCENT_LUT_SIZE

#define BATTERY_PERCENT_LUT_SIZE   ARRAY_SIZE(bat_lut)

◆ BATTERY_VOLTAGE_COMPENSATION_LANDED

#define BATTERY_VOLTAGE_COMPENSATION_LANDED   (0.2f)

Definition at line 26 of file AP_BattMonitor_Bebop.cpp.

Referenced by AP_BattMonitor_Bebop::read().

Variable Documentation

◆ bat_comp_polynomial_coeffs

const float bat_comp_polynomial_coeffs[5]
static
Initial value:
= {
-1.2471059149657287e-16f,
3.2072883440944087e-12f,
-3.3012241016211356e-08f,
1.4612693130825659e-04f,
-1.9236755589522961e-01f
}
#define f(i)

Definition at line 34 of file AP_BattMonitor_Bebop.cpp.

Referenced by AP_BattMonitor_Bebop::_compute_compensation().

◆ bat_lut

const { ... } bat_lut[]

◆ hal

const AP_HAL::HAL& hal

Definition at line 14 of file AC_PID_test.cpp.

◆ percent

float percent

◆ voltage

float voltage