Changeset 18820 for trunk/FACT++/src


Ignore:
Timestamp:
04/14/17 12:18:40 (8 years ago)
Author:
tbretz
Message:
Slightly modified the interface to access the observatory. This allows simpler calles than before if any other than the default observatory should be used.
Location:
trunk/FACT++/src
Files:
3 edited

Legend:

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

    r18614 r18820  
    21832183    const Time utc(v/1000, v%1000);
    21842184
    2185     Nova::LnLatPosn obs = Nova::ORM();
     2185    Nova::LnLatPosn obs = Nova::kORM;
    21862186
    21872187    ln_rst_time sun;
     
    21952195{
    21962196    if (args.Length()>1)
    2197         return ThrowException(String::New("Moon.horizon must not be called with one argument."));
     2197        return ThrowException(String::New("Moon.horizon must not be called with more than one argument."));
    21982198
    21992199    if (args.Length()==1 && !args[0]->IsDate())
     
    22102210    const Time utc(v/1000, v%1000);
    22112211
    2212     Nova::LnLatPosn obs = Nova::ORM();
     2212    Nova::LnLatPosn obs = Nova::kORM;
    22132213
    22142214    ln_rst_time moon;
  • trunk/FACT++/src/Time.cc

    r18445 r18820  
    314314{
    315315#ifdef HAVE_LIBNOVA
    316     Nova::LnLatPosn obs = Nova::ORM();
     316    Nova::LnLatPosn obs = Nova::kORM;
    317317
    318318    ln_rst_time sun_day;
     
    347347{
    348348#ifdef HAVE_LIBNOVA
    349     Nova::LnLatPosn obs = Nova::ORM();
     349    Nova::LnLatPosn obs = Nova::kORM;
    350350
    351351    ln_rst_time sun_day;
  • trunk/FACT++/src/drivectrl.cc

    r18805 r18820  
    368368        out.mjd = _mjd;
    369369
    370         const double elong  = Nova::ORM().lng * M_PI/180;
    371         const double lat    = Nova::ORM().lat * M_PI/180;
     370        const double elong  = Nova::kORM.lng * M_PI/180;
     371        const double lat    = Nova::kORM.lat * M_PI/180;
    372372        const double height = 2200;
    373373
     
    23732373            fTrackingCounter = 0;
    23742374
    2375         const double ha = fmod(fDrive.GetSeTime(),1)*24 - Nova::ORM().lng/15;
     2375        const double ha = fmod(fDrive.GetSeTime(),1)*24 - Nova::kORM.lng/15;
    23762376
    23772377        array<double, 12> dim;
Note: See TracChangeset for help on using the changeset viewer.