Change FIMV_PMU avgTimes & fix a bug

This commit is contained in:
YuYang Shen
2025-04-01 10:40:14 +08:00
parent f3315354b4
commit d8eb8de8f9
15 changed files with 68 additions and 78 deletions
+6 -6
View File
@@ -141,8 +141,8 @@ namespace Testrong.User.Program
};
readonly Dictionary<string, TestParaSet> avgDelays_2kft_fimv_pmu = new Dictionary<string, TestParaSet>()
{
{"5uA", new TestParaSet{delayMs = 60, avgTimes = 128, samDelay = 100 } },
{"20uA", new TestParaSet{delayMs = 20, avgTimes = 64, samDelay = 100 } },
{"5uA", new TestParaSet{delayMs = 60, avgTimes = 255, samDelay = 100 } },
{"20uA", new TestParaSet{delayMs = 20, avgTimes = 255, samDelay = 100 } },
{"200uA", new TestParaSet{delayMs = 15, avgTimes = 64, samDelay = 100 } },
{"2mA", new TestParaSet{delayMs = 15, avgTimes = 64, samDelay = 100 } },
{"60mA", new TestParaSet{delayMs = 30, avgTimes = 128, samDelay = 100 } },
@@ -2813,7 +2813,7 @@ namespace Testrong.User.Program
double[] readTemp = DPS.ReadTemperature();
int TempIndex = GetDPSTempSensorIndex(ch);
double chTemp;
if (TempIndex > readTemp.Length + 1)
if (TempIndex > readTemp.Length - 1 )
{
chTemp = -65535;
}
@@ -2852,7 +2852,7 @@ namespace Testrong.User.Program
double[] readTemp = DPS.ReadTemperature();
int TempIndex = GetDPSTempSensorIndex(ch);
double chTemp;
if (TempIndex > readTemp.Length + 1)
if (TempIndex > readTemp.Length - 1 )
{
chTemp = -65535;
}
@@ -2900,7 +2900,7 @@ namespace Testrong.User.Program
double[] readTemp = DPS.ReadTemperature();
int TempIndex = GetDPSTempSensorIndex(ch);
double chTemp;
if (TempIndex > readTemp.Length + 1)
if (TempIndex > readTemp.Length - 1 )
{
chTemp = -65535;
}
@@ -2966,7 +2966,7 @@ namespace Testrong.User.Program
double[] readTemp = DPS.ReadTemperature();
int TempIndex = GetDPSTempSensorIndex(ch);
double chTemp;
if (TempIndex > readTemp.Length + 1)
if (TempIndex > readTemp.Length - 1 )
{
chTemp = -65535;
}