@@ -19,7 +19,7 @@ pub struct SP3Entry {
1919 pub velocity_km_s : Option < Vector3D > ,
2020
2121 /// True if the state vector is predicted
22- pub orbit_prediction : bool ,
22+ pub predicted_orbit : bool ,
2323
2424 /// True if vehicle being maneuvered (rocket truster)
2525 /// since last state.
@@ -30,7 +30,7 @@ pub struct SP3Entry {
3030 pub clock_event : bool ,
3131
3232 /// True when the clock state is actually predicted
33- pub clock_prediction : bool ,
33+ pub predicted_clock : bool ,
3434
3535 /// Clock offset correction, in microsecond with 10⁻¹² precision.
3636 pub clock_us : Option < f64 > ,
@@ -62,8 +62,8 @@ impl std::ops::Sub for SP3Entry {
6262 } ,
6363 maneuver : self . maneuver ,
6464 clock_event : self . clock_event ,
65- clock_prediction : self . clock_prediction ,
66- orbit_prediction : self . orbit_prediction ,
65+ predicted_clock : self . predicted_clock ,
66+ predicted_orbit : self . predicted_orbit ,
6767 clock_us : if let Some ( clock_us) = self . clock_us {
6868 rhs. clock_us . map ( |rhs| clock_us - rhs)
6969 } else {
@@ -116,8 +116,8 @@ impl SP3Entry {
116116 maneuver : false ,
117117 velocity_km_s : None ,
118118 clock_drift_ns : None ,
119- clock_prediction : false ,
120- orbit_prediction : false ,
119+ predicted_clock : false ,
120+ predicted_orbit : false ,
121121 clock_event : false ,
122122 }
123123 }
@@ -130,8 +130,8 @@ impl SP3Entry {
130130 maneuver : false ,
131131 velocity_km_s : None ,
132132 clock_drift_ns : None ,
133- clock_prediction : false ,
134- orbit_prediction : true ,
133+ predicted_clock : false ,
134+ predicted_orbit : true ,
135135 clock_event : false ,
136136 }
137137 }
@@ -145,8 +145,8 @@ impl SP3Entry {
145145 clock_us : None ,
146146 maneuver : false ,
147147 clock_drift_ns : None ,
148- clock_prediction : false ,
149- orbit_prediction : false ,
148+ predicted_clock : false ,
149+ predicted_orbit : false ,
150150 clock_event : false ,
151151 }
152152 }
@@ -163,8 +163,8 @@ impl SP3Entry {
163163 maneuver : false ,
164164 clock_drift_ns : None ,
165165 velocity_km_s : Some ( velocity_km_s) ,
166- clock_prediction : false ,
167- orbit_prediction : true ,
166+ predicted_clock : false ,
167+ predicted_orbit : true ,
168168 clock_event : false ,
169169 }
170170 }
@@ -191,7 +191,7 @@ impl SP3Entry {
191191 formatted. push ( ' ' ) ;
192192 }
193193
194- if self . clock_prediction {
194+ if self . predicted_clock {
195195 formatted. push_str ( "P " ) ;
196196 } else {
197197 formatted. push_str ( " " ) ;
@@ -204,7 +204,7 @@ impl SP3Entry {
204204 formatted. push ( ' ' ) ;
205205 }
206206
207- if self . orbit_prediction {
207+ if self . predicted_orbit {
208208 formatted. push ( 'P' ) ;
209209 }
210210
@@ -232,63 +232,63 @@ impl SP3Entry {
232232 pub fn with_position_km ( & self , position_km : Vector3D ) -> Self {
233233 let mut s = * self ;
234234 s. position_km = position_km;
235- s. orbit_prediction = false ;
235+ s. predicted_orbit = false ;
236236 s
237237 }
238238
239239 /// Copies and returns [SP3Entry] with predicted position vector.
240240 pub fn with_predicted_position_km ( & self , position_km : Vector3D ) -> Self {
241241 let mut s = * self ;
242242 s. position_km = position_km;
243- s. orbit_prediction = true ;
243+ s. predicted_orbit = true ;
244244 s
245245 }
246246
247247 /// Copies and returns [SP3Entry] with "true" velocity vector
248248 pub fn with_velocity_km_s ( & self , velocity_km_s : Vector3D ) -> Self {
249249 let mut s = * self ;
250250 s. velocity_km_s = Some ( velocity_km_s) ;
251- s. orbit_prediction = false ;
251+ s. predicted_orbit = false ;
252252 s
253253 }
254254
255255 /// Copies and returns [SP3Entry] with predicted velocity vector
256256 pub fn with_predicted_velocity_km_s ( & self , velocity_km_s : Vector3D ) -> Self {
257257 let mut s = * self ;
258258 s. velocity_km_s = Some ( velocity_km_s) ;
259- s. orbit_prediction = true ;
259+ s. predicted_orbit = true ;
260260 s
261261 }
262262
263263 /// Copies and returns [Self] with "true" clock offset in seconds
264264 pub fn with_clock_offset_s ( & self , offset_s : f64 ) -> Self {
265265 let mut s = * self ;
266266 s. clock_us = Some ( offset_s * 1.0E6 ) ;
267- s. clock_prediction = false ;
267+ s. predicted_clock = false ;
268268 s
269269 }
270270
271271 /// Copies and returns [Self] with predicted clock offset in seconds
272272 pub fn with_predicted_clock_offset_s ( & self , offset_s : f64 ) -> Self {
273273 let mut s = * self ;
274274 s. clock_us = Some ( offset_s * 1.0E6 ) ;
275- s. clock_prediction = true ;
275+ s. predicted_clock = true ;
276276 s
277277 }
278278
279279 /// Copies and returns [Self] with "true" clock offset in microseconds
280280 pub fn with_clock_offset_us ( & self , offset_us : f64 ) -> Self {
281281 let mut s = * self ;
282282 s. clock_us = Some ( offset_us) ;
283- s. clock_prediction = false ;
283+ s. predicted_clock = false ;
284284 s
285285 }
286286
287287 /// Copies and returns [Self] with predicted clock offset in microseconds
288288 pub fn with_predicted_clock_offset_us ( & self , offset_us : f64 ) -> Self {
289289 let mut s = * self ;
290290 s. clock_us = Some ( offset_us) ;
291- s. clock_prediction = true ;
291+ s. predicted_clock = true ;
292292 s
293293 }
294294
@@ -325,11 +325,11 @@ mod test {
325325 SP3Entry {
326326 position_km : ( 15402.861499 , 21607.418873 , -992.500669 ) ,
327327 velocity_km_s : None ,
328- orbit_prediction : false ,
328+ predicted_orbit : false ,
329329 maneuver : false ,
330330 clock_drift_ns : None ,
331331 clock_event : false ,
332- clock_prediction : false ,
332+ predicted_clock : false ,
333333 clock_us : Some ( 10.571484 ) ,
334334 } ,
335335 "PG01 15402.861499 21607.418873 -992.500669 10.571484\n " ,
@@ -356,11 +356,11 @@ mod test {
356356 SP3Entry {
357357 position_km : ( 15402.861499 , 21607.418873 , -992.500669 ) ,
358358 velocity_km_s : None ,
359- orbit_prediction : false ,
359+ predicted_orbit : false ,
360360 maneuver : false ,
361361 clock_drift_ns : None ,
362362 clock_event : false ,
363- clock_prediction : false ,
363+ predicted_clock : false ,
364364 clock_us : None ,
365365 } ,
366366 "PG01 15402.861499 21607.418873 -992.500669\n " ,
@@ -387,11 +387,11 @@ mod test {
387387 SP3Entry {
388388 position_km : ( -12593.593500 , 10170.327650 , -20354.534400 ) ,
389389 velocity_km_s : None ,
390- orbit_prediction : false ,
390+ predicted_orbit : false ,
391391 maneuver : true ,
392392 clock_drift_ns : None ,
393393 clock_event : false ,
394- clock_prediction : false ,
394+ predicted_clock : false ,
395395 clock_us : None ,
396396 } ,
397397 "PG01 -12593.593500 10170.327650 -20354.534400 M\n " ,
@@ -418,11 +418,11 @@ mod test {
418418 SP3Entry {
419419 position_km : ( -11044.805800 , -10475.672350 , 21929.418200 ) ,
420420 velocity_km_s : None ,
421- orbit_prediction : false ,
421+ predicted_orbit : false ,
422422 maneuver : false ,
423423 clock_drift_ns : None ,
424424 clock_event : false ,
425- clock_prediction : true ,
425+ predicted_clock : true ,
426426 clock_us : None ,
427427 } ,
428428 "PG01 -11044.805800 -10475.672350 21929.418200 P\n " ,
@@ -449,11 +449,11 @@ mod test {
449449 SP3Entry {
450450 position_km : ( -11044.805800 , -10475.672350 , 21929.418200 ) ,
451451 velocity_km_s : None ,
452- orbit_prediction : true ,
452+ predicted_orbit : true ,
453453 maneuver : false ,
454454 clock_drift_ns : None ,
455455 clock_event : false ,
456- clock_prediction : false ,
456+ predicted_clock : false ,
457457 clock_us : None ,
458458 } ,
459459 "PG01 -11044.805800 -10475.672350 21929.418200 P\n " ,
@@ -480,11 +480,11 @@ mod test {
480480 SP3Entry {
481481 position_km : ( -11044.805800 , -10475.672350 , 21929.418200 ) ,
482482 velocity_km_s : None ,
483- orbit_prediction : true ,
483+ predicted_orbit : true ,
484484 maneuver : false ,
485485 clock_drift_ns : None ,
486486 clock_event : false ,
487- clock_prediction : true ,
487+ predicted_clock : true ,
488488 clock_us : None ,
489489 } ,
490490 "PG01 -11044.805800 -10475.672350 21929.418200 P P\n " ,
@@ -511,11 +511,11 @@ mod test {
511511 SP3Entry {
512512 position_km : ( 15402.861499 , 21607.418873 , -992.500669 ) ,
513513 velocity_km_s : Some ( ( -22859.768469 , -8524.538983 , -15063.229095 ) ) ,
514- orbit_prediction : false ,
514+ predicted_orbit : false ,
515515 maneuver : false ,
516516 clock_drift_ns : None ,
517517 clock_event : false ,
518- clock_prediction : false ,
518+ predicted_clock : false ,
519519 clock_us : None ,
520520 } ,
521521 "PG01 15402.861499 21607.418873 -992.500669
@@ -543,11 +543,11 @@ VG01 -22859.768469 -8524.538983 -15063.229095\n",
543543 SP3Entry {
544544 position_km : ( 15402.861499 , 21607.418873 , -992.500669 ) ,
545545 velocity_km_s : Some ( ( -22859.768469 , -8524.538983 , -15063.229095 ) ) ,
546- orbit_prediction : false ,
546+ predicted_orbit : false ,
547547 maneuver : false ,
548548 clock_drift_ns : Some ( -3.292980 ) ,
549549 clock_event : false ,
550- clock_prediction : false ,
550+ predicted_clock : false ,
551551 clock_us : None ,
552552 } ,
553553 "PG01 15402.861499 21607.418873 -992.500669
0 commit comments