Changeset 5763 in ntrip for trunk/BNC/src/PPP/station.cpp


Ignore:
Timestamp:
Aug 4, 2014, 8:41:20 AM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/station.cpp

    r5743 r5763  
    8181}
    8282
    83 //
    84 //////////////////////////////////////////////////////////////////////////////
    85 void t_station::checkRestriction(const bncTime& tt) {
    86 
    87   const double maxSpeed  = 515.0;   // [m/s^2]
    88   const double maxHeight = 18200.0; // [m]
    89 
    90   if (_ellApr(3) > maxHeight) {
    91     throw "t_station: height restriction";
    92   }
    93 
    94   if (tt.valid()) {
    95     if (_timeCheck.valid()) {
    96       double dt = tt - _timeCheck;
    97       if (dt > 0.0) {
    98         double vel = (_xyzApr - _xyzCheck).norm_Frobenius() / dt;
    99         if (vel > maxSpeed) {
    100           throw "t_station: speed restriction";
    101         }
    102       }
    103     }
    104     _timeCheck = tt;
    105     _xyzCheck  = _xyzApr;
    106   }
    107 }
Note: See TracChangeset for help on using the changeset viewer.