Changeset 12965 for trunk/FACT++/src


Ignore:
Timestamp:
02/29/12 10:09:01 (13 years ago)
Author:
tbretz
Message:
Added interpretation of 'WP' hoping that the interpretation to be the wind gusts is correct.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/magicweather.cc

    r12954 r12965  
    3535    float    fPress;
    3636    float    fWind;
     37    float    fGusts;
    3738    float    fDir;
    3839
     
    137138                    data.fDir = atof(line.substr(3).data());
    138139
     140                if (line.substr(0, 2)=="WP")
     141                    data.fGusts = atof(line.substr(2).data());
     142
    139143                if (line.substr(0, 5)=="PRESS")
    140144                    data.fPress = atof(line.substr(5).data());
     
    297301    ConnectionDimDrive(ba::io_service& ioservice, MessageImp &imp) :
    298302        ConnectionWeather(ioservice, imp),
    299         fDimWeather("MAGIC_WEATHER/DATA", "S:1;F:1;F:1;F:1;F:1;F:1;F:1",
     303        fDimWeather("MAGIC_WEATHER/DATA", "S:1;F:1;F:1;F:1;F:1;F:1;F:1;F:1",
    300304                     "|stat:Status"
    301305                     "|T[deg C]:Temperature"
     
    304308                     "|P[hPa]:Air pressure"
    305309                     "|v[km/h]:Wind speed"
     310                     "|v_max[km/h]:Wind gusts"
    306311                     "|d[deg]:Wind direction (N-E)")
    307312    {
Note: See TracChangeset for help on using the changeset viewer.