Index: /trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_igs.c
===================================================================
--- /trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_igs.c	(revision 8975)
+++ /trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_igs.c	(revision 8976)
@@ -4,5 +4,5 @@
  Project:        RTCM3
  Version:        $Id: clock_orbit_igs.c 8963 2020-06-29 12:46:25Z stuerze $
- Authors:        Andrea Stürze
+ Authors:        Dirk Stöcker, Andrea Stürze
  Description:    state space approach: IGS
  */
@@ -637,5 +637,5 @@
           G_IONO_COEFF_C(v->Layers[l].Cosinus[d][o])
 #ifdef BNC_DEBUG
-          fprintf(stderr, "C[%d][%d]  %8.3f \n",
+          fprintf(stderr, "C[%02d][%02d]  %8.3f \n",
         		  d, o, v->Layers[l].Cosinus[d][o]);
 #endif
@@ -646,5 +646,5 @@
           G_IONO_COEFF_S(v->Layers[l].Sinus[d][o])
 #ifdef BNC_DEBUG
-          fprintf(stderr, "S[%d][%d]  %8.3f \n",
+          fprintf(stderr, "S[%02d][%02d]  %8.3f \n",
         		  d, o, v->Layers[l].Sinus[d][o]);
 #endif
@@ -659,5 +659,4 @@
     return mmi ? GCOBR_MESSAGEFOLLOWS : GCOBR_OK;
   }
-
   for (s = CLOCKORBIT_SATNUM; s-- > 0;) {
     if (type >= corbase[s]) {
@@ -788,5 +787,5 @@
             G_DELTA_CLOCK_C2(co->Sat[pos].Clock.DeltaA2)
 #ifdef BNC_DEBUG
-            fprintf(stderr, "id %2d iod %3d dr %8.4f da %8.4f dc %8.4f dr %8.3f da %8.3f dc %8.3f  c0 %8.3f c1 %8.3f c2 %8.3f\n",
+            fprintf(stderr, "id %2d iod %3d dr %10.6f da %10.6f dc %10.6f dr %10.6f da %10.6f dc %10.6f  c0 %10.6f c1 %10.6f c2 %10.6f\n",
                 co->Sat[pos].ID,co->Sat[pos].IOD,co->Sat[pos].Orbit.DeltaRadial,
                 co->Sat[pos].Orbit.DeltaAlongTrack,co->Sat[pos].Orbit.DeltaCrossTrack,
@@ -903,5 +902,5 @@
               G_CODE_BIAS(b->Sat[pos].Biases[j].Bias)
 #ifdef BNC_DEBUG
-            fprintf(stderr, "t%d b %8.2f ",
+            fprintf(stderr, "t%02d b %8.2f ",
                     b->Sat[pos].Biases[j].Type, b->Sat[pos].Biases[j].Bias);
 #endif
@@ -946,7 +945,7 @@
               G_YAW_RATE(pb->Sat[pos].YawRate)
 #ifdef BNC_DEBUG
-            fprintf(stderr, "id %2d #%d y %8.3f yr %8.3f ",
+            fprintf(stderr, "id %2d #%d y %10.6f yr %10.6f ",
                     pb->Sat[pos].ID, pb->Sat[pos].NumberOfPhaseBiases,
-					pb->Sat[pos].YawAngle, pb->Sat[pos].YawRate);
+					pb->Sat[pos].YawAngle/MPI, pb->Sat[pos].YawRate/MPI);
 #endif
               for (j = 0; j < pb->Sat[pos].NumberOfPhaseBiases; ++j) {
@@ -957,5 +956,5 @@
                 G_PHASE_BIAS(pb->Sat[pos].Biases[j].Bias)
 #ifdef BNC_DEBUG
-            fprintf(stderr, "t%d int %d wl %d disc %d b %8.4f ",
+            fprintf(stderr, "t%02d int %d wl %d disc %d b %8.4f ",
                     pb->Sat[pos].Biases[j].Type,
 					pb->Sat[pos].Biases[j].SignalIntegerIndicator,
Index: /trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_rtcm.c
===================================================================
--- /trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_rtcm.c	(revision 8975)
+++ /trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_rtcm.c	(revision 8976)
@@ -820,6 +820,6 @@
         for (d = o; d <= v->Layers[l].Degree; ++d) {
           G_IONO_COEFF(v->Layers[l].Cosinus[d][o])
-          #ifdef BNC_DEBUG
-          fprintf(stderr, "C[%d][%d]  %8.3f \n",
+#ifdef BNC_DEBUG
+          fprintf(stderr, "C[%02d][%02d]  %8.3f \n",
         		  d, o, v->Layers[l].Cosinus[d][o]);
 #endif
@@ -830,5 +830,5 @@
           G_IONO_COEFF(v->Layers[l].Sinus[d][o])
 #ifdef BNC_DEBUG
-          fprintf(stderr, "S[%d][%d]  %8.3f \n",
+          fprintf(stderr, "S[%02d][%02d]  %8.3f \n",
         		  d, o, v->Layers[l].Sinus[d][o]);
 #endif
@@ -837,5 +837,5 @@
     }
 #ifdef BNC_DEBUG
-    for(type = 0; type < (int)size && (unsigned char)buffer[type] != 0xD3; ++type)
+    for(type = 0; type < (unsigned int)size && (unsigned char)buffer[type] != 0xD3; ++type)
     numbits += 8;
     fprintf(stderr, "numbits left %d\n",numbits);
@@ -915,5 +915,5 @@
           G_PHASE_BIAS(pb->Sat[pos].Biases[j].Bias)
 #ifdef BNC_DEBUG
-            fprintf(stderr, "t%d int %d wl %d disc %d b %8.4f ",
+            fprintf(stderr, "t%02d int %d wl %d disc %d b %8.4f ",
                     pb->Sat[pos].Biases[j].Type,
 					pb->Sat[pos].Biases[j].SignalIntegerIndicator,
@@ -1017,5 +1017,5 @@
             G_DELTA_DOT_CROSS_TRACK(co->Sat[pos].Orbit.DotDeltaCrossTrack)
 #ifdef BNC_DEBUG
-            fprintf(stderr, "id %2d iod %3d dr %8.3f da %8.3f dc %8.3f dr %8.3f da %8.3f dc %8.3f\n",
+            fprintf(stderr, "id %2d iod %3d dr %8.4f da %8.4f dc %8.4f dr %8.3f da %8.3f dc %8.3f\n",
                 co->Sat[pos].ID,co->Sat[pos].IOD,co->Sat[pos].Orbit.DeltaRadial,
                 co->Sat[pos].Orbit.DeltaAlongTrack,co->Sat[pos].Orbit.DeltaCrossTrack,
@@ -1174,5 +1174,5 @@
             G_DELTA_CLOCK_C2(co->Sat[pos].Clock.DeltaA2)
 #ifdef BNC_DEBUG
-            fprintf(stderr, "id %2d iod %3d dr %8.4f da %8.4f dc %8.4f dr %8.3f da %8.3f dc %8.3f  c0 %8.3f c1 %8.3f c2 %8.3f\n",
+            fprintf(stderr, "id %2d iod %3d dr %10.6f da %10.6f dc %10.6f dr %10.6f da %10.6f dc %10.6f  c0 %10.6f c1 %10.6f c2 %10.6f\n",
                 co->Sat[pos].ID,co->Sat[pos].IOD,co->Sat[pos].Orbit.DeltaRadial,
                 co->Sat[pos].Orbit.DeltaAlongTrack,co->Sat[pos].Orbit.DeltaCrossTrack,
@@ -1353,5 +1353,5 @@
             b->Sat[pos].ID = id;
             G_NO_OF_CODE_BIASES(b->Sat[pos].NumberOfCodeBiases)
-            #ifdef BNC_DEBUG
+#ifdef BNC_DEBUG
             fprintf(stderr, "id %2d #%d ",
                     b->Sat[pos].ID, b->Sat[pos].NumberOfCodeBiases);
@@ -1361,5 +1361,5 @@
               G_CODE_BIAS(b->Sat[pos].Biases[j].Bias)
 #ifdef BNC_DEBUG
-            fprintf(stderr, "t%d b %8.2f ",
+            fprintf(stderr, "t%02d b %8.2f ",
                     b->Sat[pos].Biases[j].Type, b->Sat[pos].Biases[j].Bias);
 #endif
@@ -1374,5 +1374,5 @@
       }
 #ifdef BNC_DEBUG
-      for(type = 0; type < (int)size && (unsigned char)buffer[type] != 0xD3; ++type)
+      for(type = 0; type < (unsigned int)size && (unsigned char)buffer[type] != 0xD3; ++type)
       numbits += 8;
       fprintf(stderr, "numbits left %d\n",numbits);
