Changeset 13199


Ignore:
Timestamp:
03/23/12 11:57:29 (13 years ago)
Author:
tbretz
Message:
Replaced wind direction by human readable strings.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/FactGui.h

    r13198 r13199  
    28222822        fMagicHum->setValue(ptr[2]);
    28232823        fMagicPressure->setValue(ptr[3]);
     2824        fMagicWind->setValue(ptr[4]);
    28242825        fMagicGusts->setValue(ptr[5]);
    2825         fMagicWindDir->setValue(ptr[6]);
    2826 
    2827         static const string dir[] =
     2826
     2827        static const char *dir[] =
    28282828        {
    28292829            "N", "NNE", "NE", "ENE",
     
    28332833        };
    28342834
    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]);
    28372837    }
    28382838
Note: See TracChangeset for help on using the changeset viewer.