Changeset 6731 in ntrip


Ignore:
Timestamp:
Mar 26, 2015, 11:00:43 PM (9 years ago)
Author:
weber
Message:

PP audio response added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncfigureppp.cpp

    r5954 r6731  
    8080
    8181  bncSettings settings;
     82
     83  _audioResponseThreshold = settings.value("PPP/audioResponse").toDouble();
     84
    8285  if (settings.value("PPP/plotCoordinates").toByteArray() != staID) {
    8386    return;
     
    170173        double t1 = _tMin + (_pos[ii-1]->time - _pos[0]->time);
    171174        double t2 = _tMin + (_pos[ii]->time   - _pos[0]->time);
     175
     176        // Audio response
     177        // --------------
     178        if ( ii == _pos.size()-1) {
     179          if ( _audioResponseThreshold > 0.0 &&
     180               (fabs(neu[ii-1][0]) > _audioResponseThreshold ||
     181                fabs(neu[ii-1][1]) > _audioResponseThreshold) ) {
     182            QApplication::beep();
     183          }
     184        }
    172185
    173186        // dots
Note: See TracChangeset for help on using the changeset viewer.