示例#1
0
 public FlightAttitude(double hdg, double pitch)
 {
     frame    = ReferenceFrame.North;
     attitude = RelativeAttitude.CustomHP;
     Hdg      = hdg;
     Pitch    = pitch;
 }
示例#2
0
 public FlightAttitude(double hdg, double pitch)
 {
     frame = ReferenceFrame.North;
     attitude = RelativeAttitude.CustomHP;
     Hdg = hdg;
     Pitch = pitch;
 }
示例#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;
     };
 }
示例#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;
 }
示例#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;
 }
示例#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;
            }
            ;
        }