2424 if (!
CheckSize(d, 7*
sizeof(
float)+
sizeof(uint16_t)))
2427 const float *ptr = d.
ptr<
float>(2);
2429 fMagicTemp->setValue(ptr[0]);
2430 fMagicDew->setValue(ptr[1]);
2431 fMagicHum->setValue(ptr[2]);
2432 fMagicPressure->setValue(ptr[3]);
2433 fMagicWind->setValue(ptr[4]);
2434 fMagicGusts->setValue(ptr[5]);
2436 static const char *dir[] =
2438 "N",
"NNE",
"NE",
"ENE",
2439 "E",
"ESE",
"SE",
"SSE",
2440 "S",
"SSW",
"SW",
"WSW",
2441 "W",
"WNW",
"NW",
"NNW" 2444 const uint16_t
i = uint16_t(floor(fmod(ptr[6]+11.25, 360)/22.5));
2445 fMagicWindDir->setText(dir[i%16]);
bool CheckSize(const DimData &d, size_t sz, bool print=true) const
const T * ptr(uint32_t offset=0) const