Changeset 6975 in ntrip for trunk/BNC/src


Ignore:
Timestamp:
Jun 26, 2015, 10:10:37 AM (9 years ago)
Author:
stuerze
Message:

minor changes to protect that the yaw angle lies in the area from 0 to 2 PI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/upload/bncrtnetuploadcaster.cpp

    r6897 r6975  
    486486        else if (key == "YawAngle") {
    487487          in >> numVal >> pbSat.yA;
     488          if      (pbSat.yA < 0.0) {
     489            pbSat.yA += (2*M_PI);
     490          }
     491          else if (pbSat.yA > 2*M_PI) {
     492            pbSat.yA -= (2*M_PI);
     493          }
    488494        }
    489495        else if (key == "YawRate") {
Note: See TracChangeset for help on using the changeset viewer.