Code covered by the BSD License
-
atan3 (a, b)
four quadrant inverse tangent
-
brent (f, x1, x2, rtol)
solve for a single real root of a nonlinear equation
-
getoe(ioev)
interactive request of classical orbital elements
-
j2eqm (t, y)
first order equations of orbital motion
-
kepler1 (manom, ecc)
solve Kepler's equation for circular,
-
kozai1 (iniz, t, oev1)
analytic orbit propagation
-
orb2eci(mu, oev)
convert classical orbital elements to eci state vector
-
rkf78 (deq, neq, ti, tf, h, t...
solve first order system of differential equations
-
rpt2func(x)
rz objective function
-
repeat1.m
-
repeat2.m
-
repeat3.m
-
View all files
from
Repeating Ground Track Orbit Design
by David Eagle
Three MATLAB scripts for designing and analyzing repeating ground track orbits.
|
| rpt2func(x)
|
function fx = rpt2func(x)
% rz objective function
% required by repeat2.m
% Orbital Mechanics with Matlab
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
global tiwrk yi yfinal
% number of differential equations
neq = 6;
% step size guess
h = 60;
% integrate from ttmp to requested time = x
tetol = 1.0e-8;
yfinal = rkf78('j2eqm', neq, tiwrk, x, h, tetol, yi);
% compute current value of z component of position vector
fx = yfinal(3);
|
|
Contact us