Ejemplo n.º 1
0
 public FlightAttitude(double hdg, double pitch)
 {
     frame    = ReferenceFrame.North;
     attitude = RelativeAttitude.CustomHP;
     Hdg      = hdg;
     Pitch    = pitch;
 }
Ejemplo n.º 2
0
 public FlightAttitude(double hdg, double pitch)
 {
     frame = ReferenceFrame.North;
     attitude = RelativeAttitude.CustomHP;
     Hdg = hdg;
     Pitch = pitch;
 }
Ejemplo n.º 3
0
 public FlightAttitude(string desc)
 {
     switch(desc)
     {
     case "srfRetrograde":
         frame = ReferenceFrame.Surface;
         attitude = RelativeAttitude.Retrograde;
         break;
     case "orbRetrograde":
         frame = ReferenceFrame.Orbit;
         attitude = RelativeAttitude.Retrograde;
         break;
     case "srfPrograde":
         frame = ReferenceFrame.Surface;
         attitude = RelativeAttitude.Prograde;
         break;
     case "orbPrograde":
         frame = ReferenceFrame.Orbit;
         attitude = RelativeAttitude.Prograde;
         break;
     case "srfVertical":
         frame = ReferenceFrame.Surface;
         attitude = RelativeAttitude.Vertical;
         break;
     case "orbVertical":
     default:
         frame = ReferenceFrame.Orbit;
         attitude = RelativeAttitude.Vertical;
         break;
     };
 }
Ejemplo n.º 4
0
 public FlightAttitude(double hdg, double pitch, double roll)
 {
     frame    = ReferenceFrame.North;
     attitude = RelativeAttitude.CustomHPR; // this doesn't seem to have a working roll reference
     Hdg      = hdg;
     Pitch    = pitch;
     Roll     = roll;
 }
Ejemplo n.º 5
0
 public FlightAttitude(double hdg, double pitch, double roll)
 {
     frame = ReferenceFrame.North;
     attitude = RelativeAttitude.CustomHPR; // this doesn't seem to have a working roll reference
     Hdg = hdg;
     Pitch = pitch;
     Roll = roll;
 }
Ejemplo n.º 6
0
        public FlightAttitude(string desc)
        {
            switch (desc)
            {
            case "srfRetrograde":
                frame    = ReferenceFrame.Surface;
                attitude = RelativeAttitude.Retrograde;
                break;

            case "orbRetrograde":
                frame    = ReferenceFrame.Orbit;
                attitude = RelativeAttitude.Retrograde;
                break;

            case "srfPrograde":
                frame    = ReferenceFrame.Surface;
                attitude = RelativeAttitude.Prograde;
                break;

            case "orbPrograde":
                frame    = ReferenceFrame.Orbit;
                attitude = RelativeAttitude.Prograde;
                break;

            case "srfVertical":
                frame    = ReferenceFrame.Surface;
                attitude = RelativeAttitude.Vertical;
                break;

            case "orbVertical":
            default:
                frame    = ReferenceFrame.Orbit;
                attitude = RelativeAttitude.Vertical;
                break;
            }
            ;
        }