[simpits-tech] F4 SP2 Shared Memory

Erwin Neyt simpits-tech@simpits.org
Fri, 1 Feb 2002 19:32:55 +0100


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_01C1AB4E.DD75D3D0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C1AB4E.DD75D3D0"


------_=_NextPart_001_01C1AB4E.DD75D3D0
Content-Type: text/plain;
	charset="iso-8859-1"

Here it is.
 
Erwin.
-----Original Message-----
From: Robert Favre [mailto:rfavre@syndeocorp.com]
Sent: Friday, 01 February, 2002 19:25
To: simpits-tech@simpits.org
Subject: [simpits-tech] F4 SP2 Shared Memory


Hi Folks,
 
  Has the shared memory changed in the newest release of F4?  And if so,
where can I get the newest map?
 
Thanks
 
Rob

------_=_NextPart_001_01C1AB4E.DD75D3D0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns=3D"http://www.w3.org/TR/REC-html40" xmlns:o =3D=20
"urn:schemas-microsoft-com:office:office" xmlns:w =3D=20
"urn:schemas-microsoft-com:office:word"><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">


<META content=3DWord.Document name=3DProgId>
<META content=3D"MSHTML 5.00.3315.2870" name=3DGENERATOR>
<META content=3D"Microsoft Word 10" name=3DOriginator><LINK=20
href=3D"cid:filelist.xml@01C1AB0A.BCC0F730" rel=3DFile-List><!--[if gte =
mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<STYLE>P.MsoNormal {
	FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"
}
LI.MsoNormal {
	FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"
}
DIV.MsoNormal {
	FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"
}
A:link {
	COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
A:visited {
	COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlinkFollowed {
	COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.EmailStyle17 {
	COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: =
personal-compose; mso-style-noshow: yes; mso-ansi-font-size: 10.0pt; =
mso-bidi-font-size: 10.0pt; mso-ascii-font-family: Arial; =
mso-hansi-font-family: Arial; mso-bidi-font-family: Arial
}
DIV.Section1 {
	page: Section1
}
</STYLE>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]--></HEAD>
<BODY lang=3DEN-US link=3Dblue style=3D"tab-interval: .5in" =
vLink=3Dpurple>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D262272718-01022002>Here=20
it is.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D262272718-01022002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D262272718-01022002>Erwin.</SPAN></FONT></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; =
MARGIN-RIGHT: 0px; PADDING-LEFT: 5px">
  <DIV align=3Dleft class=3DOutlookMessageHeader dir=3Dltr><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B> Robert Favre=20
  [mailto:rfavre@syndeocorp.com]<BR><B>Sent:</B> Friday, 01 February, =
2002=20
  19:25<BR><B>To:</B> simpits-tech@simpits.org<BR><B>Subject:</B> =
[simpits-tech]=20
  F4 SP2 Shared Memory<BR><BR></DIV></FONT>
  <DIV class=3DSection1>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">Hi=20
  Folks,<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt"><o:p>&nbsp;</o:p></SPAN>=
</FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt"><SPAN=20
  style=3D"mso-spacerun: yes">&nbsp; </SPAN>Has the shared memory =
changed in the=20
  newest release of F4?<SPAN style=3D"mso-spacerun: yes">&nbsp; =
</SPAN>And if so,=20
  where can I get the newest map?<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt">Thanks<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt">Rob<o:p></o:p></SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C1AB4E.DD75D3D0--

------_=_NextPart_000_01C1AB4E.DD75D3D0
Content-Type: application/octet-stream;
	name="flightData.h"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="flightData.h"

#ifndef _FLIGHT_DATA_H
#define _FLIGHT_DATA_H

class FlightData
{
   public:
      enum LightBits
      {
         MasterCaution =3D 0x1,

         // Brow Lights
         TF        =3D 0x2,
         OBS       =3D 0x4,
         ALT       =3D 0x8,
         ENG_FIRE  =3D 0x20,
		 CONFIG	   =3D 0x40,
         HYD       =3D 0x80,
         OIL       =3D 0x100,
         DUAL      =3D 0x200,
         CAN       =3D 0x400,
         T_L_CFG   =3D 0x800,

         // AOA Indexers
         AOAAbove  =3D 0x1000,
         AOAOn     =3D 0x2000,
         AOABelow  =3D 0x4000,

         // Refuel/NWS
         RefuelRDY =3D 0x8000,
         RefuelAR  =3D 0x10000,
         RefuelDSC =3D 0x20000,

         // Caution Lights
         FltControlSys =3D 0x40000,
         LEFlaps       =3D 0x80000,
         EngineFault   =3D 0x100000,
         Overheat      =3D 0x200000,
         FuelLow       =3D 0x400000,
         Avionics      =3D 0x800000,
         RadarAlt      =3D 0x1000000,
         IFF           =3D 0x2000000,
         ECM           =3D 0x4000000,
         Hook          =3D 0x8000000,
         NWSFail       =3D 0x10000000,
         CabinPress    =3D 0x20000000
      };

	  enum LightBits2
      {
         // Threat Warning Prime
		 HandOff      =3D       0x1,
         Launch       =3D	      0x2,
         PriMode      =3D       0x4,
         Naval        =3D       0x8,
         Unk          =3D      0x10,
         TgtSep       =3D      0x20,

         // Aux Threat Warning
         AuxSrch      =3D    0x1000,
         AuxAct       =3D    0x2000,
         AuxLow       =3D    0x4000,
         AuxPwr       =3D    0x8000,

         // ECM
		 EcmPwr       =3D   0x10000,
         EcmFail      =3D   0x20000,

         // Caution Lights
         FwdFuelLow   =3D   0x40000,
         AftFuelLow   =3D   0x80000,

		 //Engine lights
		 EPUOn		  =3D	  0x100000,
		 JFSOn		  =3D	  0x200000,
		 SEC		  =3D	  0x400000,

		 OXY_LOW	  =3D   0x800000,
		 PROBEHEAT	  =3D   0x1000000,
		 SEAT_ARM	  =3D   0x2000000,
		 BUC		  =3D   0x4000000,
		 FUEL_OIL_HOT =3D   0x8000000,
		 ANTI_SKID	  =3D   0x10000000,
		 TFR_ENGAGED  =3D   0x20000000,
		 GEARHANDLE	  =3D	  0x40000000,
	  };

	  enum LightBits3
	  {
		  FlcsPmg		=3D	0x1,
		  MainGen		=3D	0x2,
		  StbyGen		=3D	0x4,
		  EpuGen		=3D	0x8,
		  EpuPmg		=3D	0x10,
		  ToFlcs		=3D	0x20,
		  FlcsRly		=3D	0x40,
		  BatFail		=3D	0x80,
		  Hydrazine		=3D	0x100,
		  Air			=3D	0x200,
		  Elec_Fault	=3D	0x400,
		  Lef_Fault		=3D	0x800,
	  };

	  enum HsiBits
	  {
		ToTrue        =3D 0x01,	// HSI_FLAG_TO_TRUE
	    IlsWarning    =3D 0x02,	// HSI_FLAG_ILS_WARN
	    CourseWarning =3D 0x04,	// HSI_FLAG_CRS_WARN
	    Init          =3D 0x08,	// HSI_FLAG_INIT
	    TotalFlags    =3D 0x10,	// HSI_FLAG_TOTAL_FLAGS ???
		ADI_OFF		  =3D 0x20,	// ADI OFF Flag
		ADI_AUX		  =3D 0x40,	// ADI AUX Flag
		ADI_GS		  =3D 0x80,	// ADI GS FLAG
		ADI_LOC		  =3D 0x100,	// ADI LOC FLAG
		HSI_OFF		  =3D 0x200,	// HSI OFF Flag
		BUP_ADI_OFF	  =3D 0x400,	// Backup ADI Off Flag
		VVI			  =3D 0x800,	// VVI OFF Flag
		AOA			  =3D 0x1000,	// AOA OFF Flag
		AVTR		  =3D 0x2000,	// AVTR Light
	  };



      // These are outputs from the sim
      float x;            // Ownship North (Ft)
      float y;            // Ownship East (Ft)
      float z;            // Ownship Down (Ft)
      float xDot;         // Ownship North Rate (ft/sec)
      float yDot;         // Ownship East Rate (ft/sec)
      float zDot;         // Ownship Down Rate (ft/sec)
      float alpha;        // Ownship AOA (Degrees)
      float beta;         // Ownship Beta (Degrees)
      float gamma;        // Ownship Gamma (Radians)
      float pitch;        // Ownship Pitch (Radians)
      float roll;         // Ownship Pitch (Radians)
      float yaw;          // Ownship Pitch (Radians)
      float mach;         // Ownship Mach number
      float kias;         // Ownship Indicated Airspeed (Knots)
      float vt;           // Ownship True Airspeed (Ft/Sec)
      float gs;           // Ownship Normal Gs
      float windOffset;   // Wind delta to FPM (Radians)
      float nozzlePos;    // Ownship engine nozzle percent open (0-100)
      float internalFuel; // Ownship internal fuel (Lbs)
      float externalFuel; // Ownship external fuel (Lbs)
      float fuelFlow;     // Ownship fuel flow (Lbs/Hour)
      float rpm;          // Ownship engine rpm (Percent 0-103)
      float ftit;         // Ownship Forward Turbine Inlet Temp =
(Degrees C)
      float gearPos;      // Ownship Gear position 0 =3D up, 1 =3D =
down;
      float speedBrake;   // Ownship speed brake position 0 =3D closed, =
1 =3D 60 Degrees open
      float epuFuel;      // Ownship EPU fuel (Percent 0-100)
      float oilPressure;  // Ownship Oil Pressure (Percent 0-100)
      int   lightBits;    // Cockpit Indicator Lights, one bit per =
bulb. See enum

      // These are inputs. Use them carefully
      float headPitch;    // Head pitch offset from design eye =
(radians)
      float headRoll;     // Head roll offset from design eye (radians)
      float headYaw;      // Head yaw offset from design eye (radians)

      // new lights
	  int   lightBits2;         // Cockpit Indicator Lights, one bit per =
bulb. See enum
	  int   lightBits3;         // Cockpit Indicator Lights, one bit per =
bulb. See enum

	  // chaff/flare
      float ChaffCount;	        // Number of Chaff left
	  float FlareCount;         // Number of Flare left

	  // landing gear
	  float NoseGearPos;        // Position of the nose landinggear
	  float LeftGearPos;        // Position of the left landinggear
	  float RightGearPos;       // Position of the right landinggear

	  // ADI values
	  float AdiIlsHorPos;       // Position of horizontal ILS bar
	  float AdiIlsVerPos;       // Position of vertical ILS bar

	  // HSI states
	  int courseState;          // HSI_STA_CRS_STATE
	  int headingState;         // HSI_STA_HDG_STATE
	  int totalStates;          // HSI_STA_TOTAL_STATES ???

	  // HSI values
	  float	courseDeviation;	// HSI_VAL_CRS_DEVIATION
	  float	desiredCourse;		// HSI_VAL_DESIRED_CRS
	  float distanceToBeacon;   // HSI_VAL_DISTANCE_TO_BEACON
	  float	bearingToBeacon;	// HSI_VAL_BEARING_TO_BEACON
	  float currentHeading;		// HSI_VAL_CURRENT_HEADING
	  float	desiredHeading;		// HSI_VAL_DESIRED_HEADING
	  float deviationLimit;		// HSI_VAL_DEV_LIMIT
	  float halfDeviationLimit; // HSI_VAL_HALF_DEV_LIMIT
	  float localizerCourse;	// HSI_VAL_LOCALIZER_CRS
	  float airbaseX;			// HSI_VAL_AIRBASE_X
	  float airbaseY;			// HSI_VAL_AIRBASE_Y
	  float totalValues;		// HSI_VAL_TOTAL_VALUES  ???

	  float TrimPitch;	// Value of trim in pitch axis, -0.5 to +0.5
	  float TrimRoll;	// Value of trim in roll axis, -0.5 to +0.5
	  float TrimYaw;	// Value of trim in yaw axis, -0.5 to +0.5

	  // HSI flags
	  int hsiBits;              // HSI flags

	  //DED Lines
	  char DEDLines[5][26];	//25 usable chars
	  char Invert[5][26];	//25 usable chars

	  //PFL Lines
	  char PFLLines[5][26];	 //25 usable chars
	  char PFLInvert[5][26]; //25 usable chars

	  //TacanChannel
	  int UFCTChan, AUXTChan;

      // RWR
	  int           RwrObjectCount;
	  int           RWRsymbol[20];
	  float         bearing[20];
      unsigned long missileActivity[20];
	  unsigned long missileLaunch[20];
      unsigned long selected[20];
      float         lethality[20];

	  //fuel values
	  float fwd, aft, total;

      void SetLightBit (int newBit) {lightBits |=3D newBit;};
      void ClearLightBit (int newBit) {lightBits &=3D ~newBit;};
      int  IsSet (int newBit) {return ((lightBits & newBit) ? TRUE : =
FALSE);};

      void SetLightBit2 (int newBit) {lightBits2 |=3D newBit;};
      void ClearLightBit2 (int newBit) {lightBits2 &=3D ~newBit;};
      int  IsSet2 (int newBit) {return ((lightBits2 & newBit) ? TRUE : =
FALSE);};

	  void SetLightBit3 (int newBit) {lightBits3 |=3D newBit;};
      void ClearLightBit3 (int newBit) {lightBits3 &=3D ~newBit;};
      int  IsSet3 (int newBit) {return ((lightBits3 & newBit) ? TRUE : =
FALSE);};

      void SetHsiBit (int newBit) {hsiBits |=3D newBit;};
      void ClearHsiBit (int newBit) {hsiBits &=3D ~newBit;};
      int  IsSetHsi (int newBit) {return ((hsiBits & newBit) ? TRUE : =
FALSE);};

	  int VersionNum;	//Version of Memarea
};

extern FlightData cockpitFlightData;
#endif

------_=_NextPart_000_01C1AB4E.DD75D3D0--