mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 03:13:34 +08:00
fix ina226: use shunt param value
This commit is contained in:
@@ -133,7 +133,7 @@ INA226::init()
|
||||
|
||||
write(INA226_REG_CONFIGURATION, INA226_RST);
|
||||
|
||||
_cal = INA226_CONST / (_current_lsb * INA226_SHUNT);
|
||||
_cal = INA226_CONST / (_current_lsb * _rshunt);
|
||||
|
||||
if (write(INA226_REG_CALIBRATION, _cal) < 0) {
|
||||
return -3;
|
||||
|
||||
Reference in New Issue
Block a user