Changeset 13199 for trunk/FACT++
- Timestamp:
- 03/23/12 11:57:29 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r13198 r13199 2822 2822 fMagicHum->setValue(ptr[2]); 2823 2823 fMagicPressure->setValue(ptr[3]); 2824 fMagicWind->setValue(ptr[4]); 2824 2825 fMagicGusts->setValue(ptr[5]); 2825 fMagicWindDir->setValue(ptr[6]); 2826 2827 static const string dir[] = 2826 2827 static const char *dir[] = 2828 2828 { 2829 2829 "N", "NNE", "NE", "ENE", … … 2833 2833 }; 2834 2834 2835 const uint16_t i = uint16_t(floor(fmod(ptr[ 4]+360+11.25, 360)/16));2836 fMagicWind ->setValue(dir[i]);2835 const uint16_t i = uint16_t(floor(fmod(ptr[6]+360+11.25, 360)/22)); 2836 fMagicWindDir->setText(dir[i]); 2837 2837 } 2838 2838
Note:
See TracChangeset
for help on using the changeset viewer.