Commit c2d13d34 authored by Yuelong Yu's avatar Yuelong Yu
Browse files

fixed index error problem

parent a7fe0a61
......@@ -18,7 +18,7 @@ namespace AGIPDMC_ns
{
m_vstTemperatures.clear();
for(auto nIdx : TEMPERATURE_INDEX_TABLE)
CalculateTemperaturesOnEachBoard(nIdx);
CalculateTemperaturesOnEachBoard(nIdx/2);
}
vector<stTemperature> MicroController::GetAllTemperatures() const
......
......@@ -25,14 +25,14 @@ namespace AGIPDMC_ns
const vector<int> TEMPERATURE_INDEX_TABLE=
{0x28,0x2C,
0x42,0x46,
0x5c,0x60,
0x76,0x7a,
0x90,0x94,
0xaa,0xae,
0xc4,0xc8,
0xde,0xe2
{0x280,0x2C0,
0x420,0x460,
0x5c0,0x600,
0x760,0x7a0,
0x900,0x940,
0xaa0,0xae0,
0xc40,0xc80,
0xde0,0xe20
};
const double UNKNOWN_VALUE = -9999; /* for exception */
......
......@@ -71,7 +71,7 @@ namespace AGIPDMC_ns
}
catch(...)
{
cout<<"unknown exception caught"<<endl;
//cout<<"unknown exception caught"<<endl;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment