133 Out() <<
"Received one_message of FSC::BinaryOutput_t ... will now process it" << endl;
148 for (
unsigned int i=0;
i<volt.size();
i++)
151 for (
unsigned int i=0;
i<resist.size();
i++)
164 32, 36, 33, 34, 37, 38,
179 72, 76, 73, 74, 77, 78,
198 0, 1, 2, 3, 4, 5, 6, 56, 57, 58, 59, 60,
199 61, 62, 32, 33, 34, 35, 36, 63, 37, 38, 39, 24,
200 25, 26, 27, 28, 29, 30, 31,
202 12, 13, 52, 53, 44, 46, 20, 21,
204 8, 9, 48, 49, 40, 41, 16, 17,
215 vector<float> voltages;
216 vector<float> currents;
217 vector<float> humidities;
218 vector<float> temperatures;
220 for (
int *pv=mapv; *pv>=0; pv++)
221 voltages.push_back(volt[*pv]*0.001);
223 for (
int *pc=mapc; *pc>=0; pc++)
224 currents.push_back(volt[*pc]*0.005);
226 for (
int idx=0; idx<4; idx++)
228 voltages[idx +8] *= -1;
229 voltages[idx+20] *= -1;
230 currents[idx +8] *= -1;
231 currents[idx+20] *= -1;
248 for (
int *ph=maprh; *ph>=0; ph++, idx++)
249 humidities.push_back((volt[*ph]-offrh[idx])*0.0313);
255 for (
int *pt=mapt; *pt>=0; pt++)
257 temperatures.push_back(resist[*pt]>970&&resist[*pt]<1300 ?
GetTempPT1000(resist[*pt]) : 0);
441 for (
size_t i=0;
i<resist.size();
i++)
443 if (resist[
i]>970 && resist[
i]<1300)
445 Out() << setw(2) <<
i <<
" - " << setw(4) << (int)resist[
i] <<
": " << setprecision(1) << fixed <<
GetTempPT1000(resist[
i]) << endl;
447 Out() << setw(2) <<
i <<
" - " << setw(4) << (int)resist[
i] <<
": " <<
"----" << endl;
uint32_t ad7719_values[kNumResistanceChannels]
size_t fNumConsecutiveMessages
virtual void UpdateTemp(float, const vector< float > &)
virtual void UpdateCur(float, const vector< float > &)
virtual void UpdateHum(float, const vector< float > &)
double GetTempPT1000(double R) const
size_t fNumConsecutiveErrors
Warning because the service this data corrsponds to might have been last updated longer ago than Local time
uint16_t adc_values[kNumVoltageChannels]
virtual void UpdateVolt(float, const vector< float > &)