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

          Line data    Source code
       1             : #include "SIM_config.h"
       2             : 
       3             : #if AP_SIM_ICM40609_ENABLED
       4             : 
       5             : #include "SIM_Invensense_v3.h"
       6             : 
       7             : namespace SITL {
       8             : 
       9             : class ICM40609DevReg : public InvensenseV3DevReg {
      10             : public:
      11             : };
      12             : 
      13             : class ICM40609 : public InvensenseV3
      14             : {
      15             : public:
      16        2094 :     void init() override {
      17        2094 :         InvensenseV3::init();
      18             : 
      19        2094 :         set_register(ICM40609DevReg::WHOAMI, (uint8_t)0x3b);
      20        2094 :     }
      21             : 
      22   536279826 :     float accel_scale() const override { return (GRAVITY_MSS / 1024); }
      23             : 
      24             : private:
      25             : };
      26             : 
      27             : } // namespace SITL
      28             : 
      29             : #endif  // AP_SIM_ICM40609_ENABLED

Generated by: LCOV version 1.14