RHSRVPlanetFixed:
% Right hand side for translational motion in the planet fixed frame.
Compatible with ode113 and RungeKutta4thOrder.
You can pass in user defined thrust functions for d.funThrust
[thrust,uE] = Thrust( massFuel, d )
thrust must be in N and uE in m/s.
and custom gravitational acceleration functions for d.funGrav
accelGrav = Gravity( x, d )
accelGrav is in km/s^2.
If funGrav is not a pointer it is assumed to be the gravitational
constant.
Type RHSRVPlanetFixed for the default data structure.
--------------------------------------------------------------------------
Form:
xDot = RHSRVPlanetFixed( t, x, d )
d = RHSRVPlanetFixed;
--------------------------------------------------------------------------
------
Inputs
------
t (1,1) Time (s)
x (7,1) [r;v;massFuel]
d (.) Data structure
-------
Outputs
-------
x (7,1) d[r;v;massFuel]/dt
--------------------------------------------------------------------------
Children:
Math: Linear/Mag
Missions: LunarMission/FThrustLander
Missions: LunarMission/RHSOrbitPlanetFixed