Changeset 13953


Ignore:
Timestamp:
05/28/12 10:59:06 (12 years ago)
Author:
tbretz
Message:
Display also when the moon is up.
File:
1 edited

Legend:

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

    r13952 r13953  
    408408
    409409    bool fSunIsVisible;
     410    bool fMoonIsVisible;
    410411
    411412    int fHasError;
     
    673674
    674675        fSunIsVisible = astro.state>=3 && astro.state<=5;
     676        fMoonIsVisible = !fSunIsVisible && moon.visible;
    675677
    676678        ofstream(fPath+"/weather.data") << out.str();
     
    17971799            }
    17981800            if (fDimDriveControl.state()==Drive::State::kMoving)
    1799                 out << " &#8362;";
     1801                out << " &#10227;";
    18001802            out << setprecision(3);
    18011803        }
     
    18041806        if (fSunIsVisible)
    18051807            out << " &#9788;";
     1808        else
     1809            if (fMoonIsVisible)
     1810                out << " &#9790;";
    18061811        out << '\n';
    18071812
Note: See TracChangeset for help on using the changeset viewer.