TeamLevels:

Path: FormationFlying/Visual

% Assign a hierarchical level to each team in the array. 

   Since version 7.
--------------------------------------------------------------------------
   Form:
   [levels,teams] = TeamLevels(teams)
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   teams           (.)  Data structure array of N teams, with the following fields:
                          - name:           name of team (string)
                          - memID:          member ID numbers (1-D numeric array)
                          - refID:          reference ID number 


   -------
   Outputs
   -------
   levels         (1,N)   Level of each team. (Level 1 is at top of hierarchy).
   team            (.)    Original team data structure array, with levels updated

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

Back to the FormationFlying Module page