mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-26 01:33:56 -04:00
AP_BattMonitor: simplify SMBus driver includes
This commit is contained in:
parent
4ea565e4ed
commit
3de2dff6e3
@ -1,6 +1,9 @@
|
|||||||
#include "AP_BattMonitor.h"
|
#include "AP_BattMonitor.h"
|
||||||
#include "AP_BattMonitor_Analog.h"
|
#include "AP_BattMonitor_Analog.h"
|
||||||
#include "AP_BattMonitor_SMBus.h"
|
#include "AP_BattMonitor_SMBus.h"
|
||||||
|
#include "AP_BattMonitor_SMBus_Solo.h"
|
||||||
|
#include "AP_BattMonitor_SMBus_Generic.h"
|
||||||
|
#include "AP_BattMonitor_SMBus_Maxell.h"
|
||||||
#include "AP_BattMonitor_Bebop.h"
|
#include "AP_BattMonitor_Bebop.h"
|
||||||
#include "AP_BattMonitor_BLHeliESC.h"
|
#include "AP_BattMonitor_BLHeliESC.h"
|
||||||
#include "AP_BattMonitor_SMBus_SUI.h"
|
#include "AP_BattMonitor_SMBus_SUI.h"
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
#include <AP_Common/AP_Common.h>
|
#include <AP_Common/AP_Common.h>
|
||||||
#include <AP_Param/AP_Param.h>
|
#include <AP_Param/AP_Param.h>
|
||||||
#include <AP_Math/AP_Math.h>
|
#include <AP_Math/AP_Math.h>
|
||||||
|
#include <AP_HAL/I2CDevice.h>
|
||||||
#include "AP_BattMonitor_Backend.h"
|
#include "AP_BattMonitor_Backend.h"
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
@ -96,8 +97,3 @@ protected:
|
|||||||
|
|
||||||
AP_HAL::Device::PeriodicHandle timer_handle;
|
AP_HAL::Device::PeriodicHandle timer_handle;
|
||||||
};
|
};
|
||||||
|
|
||||||
// include specific implementations
|
|
||||||
#include "AP_BattMonitor_SMBus_Solo.h"
|
|
||||||
#include "AP_BattMonitor_SMBus_Generic.h"
|
|
||||||
#include "AP_BattMonitor_SMBus_Maxell.h"
|
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <AP_Common/AP_Common.h>
|
|
||||||
#include <AP_Param/AP_Param.h>
|
|
||||||
#include <AP_Math/AP_Math.h>
|
|
||||||
#include "AP_BattMonitor_SMBus.h"
|
#include "AP_BattMonitor_SMBus.h"
|
||||||
#include <AP_HAL/I2CDevice.h>
|
|
||||||
|
|
||||||
#define BATTMONITOR_SMBUS_MAXELL_NUM_CELLS 6
|
#define BATTMONITOR_SMBUS_MAXELL_NUM_CELLS 6
|
||||||
|
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <AP_Common/AP_Common.h>
|
|
||||||
#include <AP_Math/AP_Math.h>
|
|
||||||
#include "AP_BattMonitor_SMBus.h"
|
#include "AP_BattMonitor_SMBus.h"
|
||||||
#include <AP_HAL/I2CDevice.h>
|
|
||||||
|
|
||||||
// Base SUI class
|
// Base SUI class
|
||||||
class AP_BattMonitor_SMBus_SUI : public AP_BattMonitor_SMBus
|
class AP_BattMonitor_SMBus_SUI : public AP_BattMonitor_SMBus
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <AP_Common/AP_Common.h>
|
|
||||||
#include <AP_Param/AP_Param.h>
|
|
||||||
#include <AP_Math/AP_Math.h>
|
|
||||||
#include "AP_BattMonitor_SMBus.h"
|
#include "AP_BattMonitor_SMBus.h"
|
||||||
#include <AP_HAL/I2CDevice.h>
|
|
||||||
|
|
||||||
class AP_BattMonitor_SMBus_Solo : public AP_BattMonitor_SMBus
|
class AP_BattMonitor_SMBus_Solo : public AP_BattMonitor_SMBus
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user