configurations: yosemite4: Add max min config of Medusa Board INA238
Due to the small value of MEDUSA_ADC_48V_SENSE_VOLT_V, the change of the
SDR value after scaling will be smaller than the hysteresisPublish,
which will result in the SDR value not being updated.
Therefore, the default 255~0 should not be used as Max and Min.
Specifying the Max and Min to a suitable range so that the
hysteresisPublish matches the value can avoid the bug that the SDR value
is not updated.
- Add max min config of Yv4 Medusa Board INA238
Change-Id: If8344753dae56e835af8747c8ef4a608d669584e
Signed-off-by: Leo Yang <Leo-Yang@quantatw.com>
diff --git a/configurations/yosemite4_medusaboard_adc_rns_12vhsc_adi_48vhsc_inf.json b/configurations/yosemite4_medusaboard_adc_rns_12vhsc_adi_48vhsc_inf.json
index 5c13897..22ac7ab 100644
--- a/configurations/yosemite4_medusaboard_adc_rns_12vhsc_adi_48vhsc_inf.json
+++ b/configurations/yosemite4_medusaboard_adc_rns_12vhsc_adi_48vhsc_inf.json
@@ -951,6 +951,8 @@
}
],
"Type": "INA238",
+ "in0_Max": 1,
+ "in0_Min": -1,
"in0_Name": "MEDUSA_ADC_48V_SENSE_VOLT_V"
},
{
diff --git a/configurations/yosemite4_medusaboard_adc_rns_12vhsc_mps_48vhsc_adi.json b/configurations/yosemite4_medusaboard_adc_rns_12vhsc_mps_48vhsc_adi.json
index 6af2f77..aadbead 100644
--- a/configurations/yosemite4_medusaboard_adc_rns_12vhsc_mps_48vhsc_adi.json
+++ b/configurations/yosemite4_medusaboard_adc_rns_12vhsc_mps_48vhsc_adi.json
@@ -257,6 +257,8 @@
}
],
"Type": "INA238",
+ "in0_Max": 1,
+ "in0_Min": -1,
"in0_Name": "MEDUSA_ADC_48V_SENSE_VOLT_V"
},
{
diff --git a/configurations/yosemite4_medusaboard_adc_rns_12vhsc_mps_48vhsc_inf.json b/configurations/yosemite4_medusaboard_adc_rns_12vhsc_mps_48vhsc_inf.json
index 54dcbf7..8d705b3 100644
--- a/configurations/yosemite4_medusaboard_adc_rns_12vhsc_mps_48vhsc_inf.json
+++ b/configurations/yosemite4_medusaboard_adc_rns_12vhsc_mps_48vhsc_inf.json
@@ -31,6 +31,8 @@
}
],
"Type": "INA238",
+ "in0_Max": 1,
+ "in0_Min": -1,
"in0_Name": "MEDUSA_ADC_48V_SENSE_VOLT_V"
},
{
diff --git a/configurations/yosemite4_medusaboard_adc_rns_hsc_adi.json b/configurations/yosemite4_medusaboard_adc_rns_hsc_adi.json
index ddbdd9f..9f8e1a7 100644
--- a/configurations/yosemite4_medusaboard_adc_rns_hsc_adi.json
+++ b/configurations/yosemite4_medusaboard_adc_rns_hsc_adi.json
@@ -1177,6 +1177,8 @@
}
],
"Type": "INA238",
+ "in0_Max": 1,
+ "in0_Min": -1,
"in0_Name": "MEDUSA_ADC_48V_SENSE_VOLT_V"
},
{
diff --git a/configurations/yosemite4_medusaboard_adc_ti_12vhsc_adi_48vhsc_inf.json b/configurations/yosemite4_medusaboard_adc_ti_12vhsc_adi_48vhsc_inf.json
index 8ace6af..af4256c 100644
--- a/configurations/yosemite4_medusaboard_adc_ti_12vhsc_adi_48vhsc_inf.json
+++ b/configurations/yosemite4_medusaboard_adc_ti_12vhsc_adi_48vhsc_inf.json
@@ -961,6 +961,8 @@
}
],
"Type": "INA238",
+ "in0_Max": 1,
+ "in0_Min": -1,
"in0_Name": "MEDUSA_ADC_48V_SENSE_VOLT_V"
},
{
diff --git a/configurations/yosemite4_medusaboard_adc_ti_12vhsc_mps_48vhsc_adi.json b/configurations/yosemite4_medusaboard_adc_ti_12vhsc_mps_48vhsc_adi.json
index a5c3f53..2e56646 100644
--- a/configurations/yosemite4_medusaboard_adc_ti_12vhsc_mps_48vhsc_adi.json
+++ b/configurations/yosemite4_medusaboard_adc_ti_12vhsc_mps_48vhsc_adi.json
@@ -267,6 +267,8 @@
}
],
"Type": "INA238",
+ "in0_Max": 1,
+ "in0_Min": -1,
"in0_Name": "MEDUSA_ADC_48V_SENSE_VOLT_V"
},
{
diff --git a/configurations/yosemite4_medusaboard_adc_ti_12vhsc_mps_48vhsc_inf.json b/configurations/yosemite4_medusaboard_adc_ti_12vhsc_mps_48vhsc_inf.json
index da61ebc..f980513 100644
--- a/configurations/yosemite4_medusaboard_adc_ti_12vhsc_mps_48vhsc_inf.json
+++ b/configurations/yosemite4_medusaboard_adc_ti_12vhsc_mps_48vhsc_inf.json
@@ -41,6 +41,8 @@
}
],
"Type": "INA238",
+ "in0_Max": 1,
+ "in0_Min": -1,
"in0_Name": "MEDUSA_ADC_48V_SENSE_VOLT_V"
},
{
diff --git a/configurations/yosemite4_medusaboard_adc_ti_hsc_adi.json b/configurations/yosemite4_medusaboard_adc_ti_hsc_adi.json
index 926d6e5..218bfd5 100644
--- a/configurations/yosemite4_medusaboard_adc_ti_hsc_adi.json
+++ b/configurations/yosemite4_medusaboard_adc_ti_hsc_adi.json
@@ -1187,6 +1187,8 @@
}
],
"Type": "INA238",
+ "in0_Max": 1,
+ "in0_Min": -1,
"in0_Name": "MEDUSA_ADC_48V_SENSE_VOLT_V"
},
{