forked from Archive/PX4-Autopilot
driver: ina2** allow 3 indexes
This commit is contained in:
parent
dd2322d622
commit
5f8ecd6b40
|
@ -30,7 +30,7 @@ then
|
|||
|
||||
if [ $HAVE_PM3 = yes ]
|
||||
then
|
||||
ina226 -X -b 3 -t 2 -k start
|
||||
ina226 -X -b 3 -t 3 -k start
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -46,7 +46,7 @@ then
|
|||
|
||||
if [ $HAVE_PM3 = yes ]
|
||||
then
|
||||
ina228 -X -b 3 -t 2 -k start
|
||||
ina228 -X -b 3 -t 3 -k start
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -62,7 +62,7 @@ then
|
|||
|
||||
if [ $HAVE_PM3 = yes ]
|
||||
then
|
||||
ina238 -X -b 3 -t 2 -k start
|
||||
ina238 -X -b 3 -t 3 -k start
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
@ -82,7 +82,7 @@ this flag set, the battery must be plugged in before starting the driver.
|
|||
PRINT_MODULE_USAGE_PARAMS_I2C_SPI_DRIVER(true, false);
|
||||
PRINT_MODULE_USAGE_PARAMS_I2C_ADDRESS(0x41);
|
||||
PRINT_MODULE_USAGE_PARAMS_I2C_KEEP_RUNNING_FLAG();
|
||||
PRINT_MODULE_USAGE_PARAM_INT('t', 1, 1, 2, "battery index for calibration values (1 or 2)", true);
|
||||
PRINT_MODULE_USAGE_PARAM_INT('t', 1, 1, 3, "battery index for calibration values (1 or 3)", true);
|
||||
PRINT_MODULE_USAGE_PARAM_STRING('T', "VBATT", "VBATT|VREG", "Type", true);
|
||||
PRINT_MODULE_USAGE_DEFAULT_COMMANDS();
|
||||
}
|
||||
|
|
|
@ -82,7 +82,7 @@ this flag set, the battery must be plugged in before starting the driver.
|
|||
PRINT_MODULE_USAGE_PARAMS_I2C_SPI_DRIVER(true, false);
|
||||
PRINT_MODULE_USAGE_PARAMS_I2C_ADDRESS(0x41);
|
||||
PRINT_MODULE_USAGE_PARAMS_I2C_KEEP_RUNNING_FLAG();
|
||||
PRINT_MODULE_USAGE_PARAM_INT('t', 1, 1, 2, "battery index for calibration values (1 or 2)", true);
|
||||
PRINT_MODULE_USAGE_PARAM_INT('t', 1, 1, 3, "battery index for calibration values (1 or 3)", true);
|
||||
PRINT_MODULE_USAGE_DEFAULT_COMMANDS();
|
||||
}
|
||||
|
||||
|
|
|
@ -82,7 +82,7 @@ this flag set, the battery must be plugged in before starting the driver.
|
|||
PRINT_MODULE_USAGE_PARAMS_I2C_SPI_DRIVER(true, false);
|
||||
PRINT_MODULE_USAGE_PARAMS_I2C_ADDRESS(0x45);
|
||||
PRINT_MODULE_USAGE_PARAMS_I2C_KEEP_RUNNING_FLAG();
|
||||
PRINT_MODULE_USAGE_PARAM_INT('t', 1, 1, 2, "battery index for calibration values (1 or 2)", true);
|
||||
PRINT_MODULE_USAGE_PARAM_INT('t', 1, 1, 3, "battery index for calibration values (1 or 3)", true);
|
||||
PRINT_MODULE_USAGE_DEFAULT_COMMANDS();
|
||||
}
|
||||
|
||||
|
|
|
@ -82,7 +82,7 @@ this flag set, the battery must be plugged in before starting the driver.
|
|||
PRINT_MODULE_USAGE_PARAMS_I2C_SPI_DRIVER(true, false);
|
||||
PRINT_MODULE_USAGE_PARAMS_I2C_ADDRESS(0x45);
|
||||
PRINT_MODULE_USAGE_PARAMS_I2C_KEEP_RUNNING_FLAG();
|
||||
PRINT_MODULE_USAGE_PARAM_INT('t', 1, 1, 2, "battery index for calibration values (1 or 2)", true);
|
||||
PRINT_MODULE_USAGE_PARAM_INT('t', 1, 1, 3, "battery index for calibration values (1 or 3)", true);
|
||||
PRINT_MODULE_USAGE_DEFAULT_COMMANDS();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue