Index: trunk/BNC/RTCM3/ephemeris.cpp
===================================================================
--- trunk/BNC/RTCM3/ephemeris.cpp	(revision 2222)
+++ trunk/BNC/RTCM3/ephemeris.cpp	(revision 2223)
@@ -247,3 +247,37 @@
 void t_ephGlo::set(const glonassephemeris* ee) {
 
-}
+  ostringstream prn;
+  prn << 'R' << setfill('0') << setw(2) << ee->almanac_number;
+  _prn = prn.str();
+
+  _GPSweek  = ee->GPSWeek;
+  _GPSweeks = ee->GPSTOW;
+
+  _gps_utc           = 0.0;
+  _E                 = ee->E;
+  _tau               = ee->tau;
+  _gamma             = ee->gamma;
+  _x_pos             = ee->x_pos;
+  _x_velocity        = ee->x_velocity;     
+  _x_acceleration    = ee->x_acceleration;
+  _y_pos             = ee->y_pos;         
+  _y_velocity        = ee->y_velocity;    
+  _y_acceleration    = ee->y_acceleration;
+  _z_pos             = ee->z_pos;         
+  _z_velocity        = ee->z_velocity;    
+  _z_acceleration    = ee->z_acceleration;
+  _health            = 0;
+  _frequency_number  = ee->frequency_number;
+  _tki               = ee->tk;
+
+  // Initialize status vector
+  // ------------------------
+  _tt = _GPSweeks;
+
+  _xv(1) = _x_pos * 1.e3; 
+  _xv(2) = _y_pos * 1.e3; 
+  _xv(3) = _z_pos * 1.e3; 
+  _xv(4) = _x_velocity * 1.e3; 
+  _xv(5) = _y_velocity * 1.e3; 
+  _xv(6) = _z_velocity * 1.e3; 
+}
