AP_BattMonitor: simplify SMBus driver includes

This commit is contained in:
Randy Mackay 2020-06-02 19:57:47 +09:00 committed by WickedShell
parent 4ea565e4ed
commit 3de2dff6e3
5 changed files with 4 additions and 16 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -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
{ {