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_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"
},
{