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