sgp 1.0.3

Simplified General Perturbations models (SGP8/SGP4) in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
%-------------------------------------------------------------------
%------------------------------ modulus ----------------------------
%-------------------------------------------------------------------
function modu = modulus(arg1, arg2)

modu = arg1 - floor(arg1/arg2) * arg2;

if (modu >= 0)
    return
else
    modu = modu + arg2;
    return
end