mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 02:41:35 +08:00
battery: pass priority in by setter
This commit is contained in:
@@ -72,8 +72,7 @@ INA238::INA238(const I2CSPIDriverConfig &config, int battery_index) :
|
||||
hrt_absolute_time(),
|
||||
0.0,
|
||||
0.0,
|
||||
false,
|
||||
0
|
||||
false
|
||||
);
|
||||
}
|
||||
|
||||
@@ -201,8 +200,7 @@ int INA238::collect()
|
||||
hrt_absolute_time(),
|
||||
(float) bus_voltage * INA238_VSCALE,
|
||||
(float) current * _current_lsb,
|
||||
success,
|
||||
0
|
||||
success
|
||||
);
|
||||
|
||||
perf_end(_sample_perf);
|
||||
@@ -261,8 +259,7 @@ void INA238::RunImpl()
|
||||
hrt_absolute_time(),
|
||||
0.0f,
|
||||
0.0f,
|
||||
false,
|
||||
0
|
||||
false
|
||||
);
|
||||
|
||||
if (init() != PX4_OK) {
|
||||
|
||||
Reference in New Issue
Block a user