apsis-rs: reuse the shared Earth radius in the network examples

Both network examples repeated the WGS 84 equatorial radius that
apsis-core already exports, so a change to the ellipsoid would not reach
them. Use the constant.
This commit is contained in:
ApsisRS contributors 2026-09-26 23:43:51 +08:00
parent 29f53013e7
commit 6e7e1ba798
2 changed files with 6 additions and 3 deletions

View File

@ -25,8 +25,9 @@ use core::f64::consts::PI;
/// The WGS 84 equatorial radius, in kilometers.
///
/// The coverage geometry is spherical, so a single radius is used. The
/// equatorial value is the one the orbit layer works in.
const BODY_RADIUS_KM: f64 = 6_378.137;
/// value comes from the shared constants rather than being repeated, so a
/// change to the ellipsoid reaches here.
const BODY_RADIUS_KM: f64 = apsis_core::constant::EARTH_EQUATORIAL_RADIUS;
/// One coverage case: an orbital radius and an elevation mask.
struct Case {

View File

@ -41,7 +41,9 @@ use apsis_tle::TwoLineElement;
use apsis_topology::{Topology, TopologySample, TopologySeries};
/// The Earth equatorial radius, in kilometers, used for the link geometry.
const BODY_RADIUS_KM: f64 = 6_378.137;
///
/// The value comes from the shared constants rather than being repeated.
const BODY_RADIUS_KM: f64 = apsis_core::constant::EARTH_EQUATORIAL_RADIUS;
/// The element set of a satellite in a 550 km orbit, used as the source of
/// the propagated track.