mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 07:13:33 +08:00
PM Selector Auterion: remove INA226_SHUNT value reset (skynode only)
This commit is contained in:
@@ -87,14 +87,6 @@ void PowerMonitorSelectorAuterion::Run()
|
||||
int ret_val = ina226_probe(i);
|
||||
|
||||
if (ret_val == PX4_OK) {
|
||||
|
||||
float current_shunt_value = 0.0f;
|
||||
param_get(param_find("INA226_SHUNT"), ¤t_shunt_value);
|
||||
|
||||
if (fabsf(current_shunt_value - _sensors[i].shunt_value) > FLT_EPSILON) {
|
||||
param_set(param_find("INA226_SHUNT"), &(_sensors[i].shunt_value));
|
||||
}
|
||||
|
||||
char bus_number[4] = {0};
|
||||
itoa(_sensors[i].bus_number, bus_number, 10);
|
||||
const char *start_argv[] {
|
||||
|
||||
Reference in New Issue
Block a user