Android 12 修改地磁软磁参数和方向

— a/android12/vendor/mediatek/proprietary/tinysys/scp/middleware/contexthub/MEMS_Driver/magnetometer/lib/memsic/MemsicCustomSpec.h
+++ b/android12/vendor/mediatek/proprietary/tinysys/scp/middleware/contexthub/MEMS_Driver/magnetometer/lib/memsic/MemsicCustomSpec.h
@@ -12,9 +12,9 @@ float ts0 = 0.02;//
//-----------------------------------------------------------------------------
// Ų
#if 1
-float si[3][3] = { {0.998801667, 0.044568333, -0.00177166},

  •                {0.033706667,   0.945866667,   -0.033155},
    
  •                {0.0381216677,  -0.05127,      1.053958333} };
    

+float si[3][3] = { {0.999926, -0.007742, -0.008962},

  •                {0.0086135,  1.0734025,   0.0014785},
    
  •                {0.0350005,  0.0016145,   1.052036} };
    

#else
float si[3][3] = { {1.0, 0.0, 0.0},
{0.0, 1.0, 0.0},
diff --git a/android12/vendor/mediatek/proprietary/tinysys/scp/project/RV55_A/mt6853/tb8791p1_64/cust/magnetometer/cust_mag.c b/android12/vendor/mediatek/proprietary/tinysys/scp/project/RV55_A/mt6853/tb8791p1_64/cust/magnetometer/cust_mag.c
index a34ce0d5b9b…260fb889901 100755
— a/android12/vendor/mediatek/proprietary/tinysys/scp/project/RV55_A/mt6853/tb8791p1_64/cust/magnetometer/cust_mag.c
+++ b/android12/vendor/mediatek/proprietary/tinysys/scp/project/RV55_A/mt6853/tb8791p1_64/cust/magnetometer/cust_mag.c
@@ -82,7 +82,7 @@ struct mag_hw cust_mag_hw[] attribute ((section(“.cust_mag”))) = {
{
.name = “mmc5603”,
.i2c_num = 0,

  •           .direction = 2,//4,
    
  •           .direction = 3,//4,
              .i2c_addr = {0x30, 0},
      },
    

#endif

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值