LFState:

Path: FormationFlying/Coord

% Leader-follower Hills state
 Computes the position and velocity of a satellite in the Hills frame for a
 leader/follower formation given the distance from the center (d), the number
 of spacecraft (nSC), and the order in the line.

--------------------------------------------------------------------------
   Form:
   state = LFState( d, nSC, order )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   d     	(1,1)     Distance from reference point (km)
   nSC     (1,1)     Number of spacecraft
   order   (1,1)     Order in the line

   -------
   Outputs
   -------
   state 	(6,1)    Final state for the spacecraft in Hill's frame

--------------------------------------------------------------------------

Back to the FormationFlying Module page