LCOV - code coverage report
Current view: top level - SITL - SIM_BattMonitor_SMBus_Rotoye.h (source / functions) Hit Total Coverage
Test: lcov.info Lines: 1 1 100.0 %
Date: 2026-09-09 11:02:08 Functions: 1 1 100.0 %

          Line data    Source code
       1             : #include "SIM_config.h"
       2             : 
       3             : #if AP_SIM_BATT_MONITOR_SMBUS_ROTOYE_ENABLED
       4             : 
       5             : #include "SIM_BattMonitor_SMBus_Generic.h"
       6             : 
       7             : #include <AP_Common/Bitmask.h>
       8             : 
       9             : /*
      10             : 
      11             : Testing:
      12             : 
      13             : param set BATT_MONITOR 19
      14             : reboot
      15             : 
      16             : */
      17             : 
      18             : namespace SITL {
      19             : 
      20             : class SMBusBattRotoyeDevReg : public SMBusBattGenericDevReg {
      21             : public:
      22             :     static const uint8_t TEMP_EXT = 0x48;
      23             : };
      24             : 
      25             : class Rotoye : public SIM_BattMonitor_SMBus_Generic
      26             : {
      27             : public:
      28             : 
      29             :     Rotoye();
      30             : 
      31        2094 :     uint8_t cellcount() const override { return 3; }
      32             : 
      33             :     void update(const class Aircraft &aircraft) override;
      34             : 
      35             : private:
      36             :     uint32_t last_temperature_update_ms;
      37             : };
      38             : 
      39             : } // namespace SITL
      40             : 
      41             : #endif  // AP_SIM_BATT_MONITOR_SMBUS_ROTOYE_ENABLED

Generated by: LCOV version 1.14