GuidedLaunch3D:
--------------------------------------------------------------------------
Simulate a guided launch to LEO, for 'examplerocket'.
Integration is performed with RK4 in the inertial frame.
Has a built-in demo with a target orbit of 350 km and 51.6 degrees
inclination. The initial flight path angle is 81 degrees. The rocket
has four stages and a guidance function is specified for each stage.
Utilizes three guidance functions:
1. ThrustControlGravityTurn
2. ThrustControlConstantAngle
3. ThrustControlRaiseApogee
These guidance functions have the form
[on,thrustDir] = ThrustControlFunction( r, v, d, params )
Since version 1.0
--------------------------------------------------------------------------
Form:
d = GuidedLaunch3D( rocket, lla0, vg0, altDes, incDes, raDes, jD0, params )
params = GuidedLaunch3D
--------------------------------------------------------------------------
------
Inputs Note: All angles in [rad], all distance in [km]
------
rocket (.) Rocket model data structure
lla0 (3,1) Latitude, longitude, altitude of launch site [rad; rad; km]
vg0 (2,1) Initial velocity and flight path angle [km/s; rad]
(Relative to rotating Earth)
altDes (1,1) Desired altitude of orbit [km]
incDes (1,1) Desired inclination of orbit [rad]
raDes (1,1) Desired right ascension of orbit [rad]
jD0 (1,1) Initial Julian date
params (.)
.J2 (1,1) Flag. Include J2 effects (1) or not (0). Default 0.
.cDA (1,1) Drag coefficient (times area)
.fControl {} Cell array of guidance function handles
.fParams {} Cell array of parameters
-------
Outputs
-------
d (.) Data structure of simulation output
.VBO (1,nS) Velocity at burnout, per stage
.gammaBO (1,nS) FPA at burnout
.thetaBO (1,nS) Angle at burnout
.altBO (1,nS) Altitude at burnout
.rangeBO (1,nS) Range at burnout
.kBO (1,nS) Index of burnout events
.timeBO (1,nS) Time at burnout
.time (1,n) Time
.range (1,n) Range
.alt (1,n) Altitude
.xs (:) Simulated state
.rOP (:) State in the orbital plane frame
.rEF (3,:) Earth-fixed position
.gamma (:) Flight path angle
.mFuel (:) Fuel mass
.thrustDir (:) Thrust direction
.thrustMag (1,:) Thrust magnitude
--------------------------------------------------------------------------
See also GuidedLaunch3DRHS.
--------------------------------------------------------------------------