Jump to content
Sign in to follow this  
Guest

Pilot controlled objects problems

Recommended Posts

Guest

Hi everyoneI've made some objects in FSDS2 that are pilot controlled. I know the theory by which this works, but I can't put into practice. I created a new display condition in FSDS2, which uses the variable "adf_freq" and specified it to be in range of 0 to 4000, which displayed the object if the ADF frequency was less than 1000. This worked fine.If i set the variable in the range of 0-500, the frequency needs to be less than 200. That worked too. But I don't seem to be able to specify an intermediate range of frequencies, such as 200-1000. If I put in 500-4000 for the range of the variable, the object doesn't appear at all, not matter what frequency I have. Does anyone know what I can do to make this work? Also, what values does the Cmfreq variable need to make it work, in eg 119.0 to 121.0 Mhz.Finally, apart from trial and error, is there a list of values that variables can take? would this info be in the SDKs?Thanks for reading and best regardsSergs

Share this post


Link to post
Share on other sites

I am not sure about the ADF freq, because I don't use it myself often, but when I look at the Fs98 SDK it says there are two variables for it:;&adf_freq equ 007bch;&adf_ext_freq equ 007c6hMaybe that explains part of your problem? Also I know that for the NAV freq for example if you enter 1234h as a value it will check for the frequency of 112.34, so maybe something similar happens with your AFD freq?I don't think there is a list of variables somewhere, but a nice source might be the program that comes with the FSUIPC SDK, it allows you to see some of the current variables and it gives you a view of what is stored in them.


Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Share this post


Link to post
Share on other sites
Guest

Hi all!As much as I've tested these variables, most of them for fine in FS2002.0000 3 JMP to Function Dispatcher 00C5 1 RetractGear 0126 2 AIRFileType (0 for pnlID '0' or '3', 1 for '2', 2 for other) 01D0 2 VelLonL (lower nibble always 0) 01CE 2 VelLon kt / 2 01F0 2 VelAltL (lower nibble always 0) 01EE 2 VelAlt kt / 2 01F4 2 VelLatL (lower nibble always 0) 01F2 2 VelLat kt / 2 021E 2 StartDS 0220 4 OldInt00 0224 4 OldInt01 0228 4 OldInt02 022C 4 OldInt03 0230 4 OldInt05 0234 4 OldKbdInt 0238 4 OldInt0A 023C 4 OldInt0B 0240 4 OldInt0C 0244 4 OldInt0D 0248 4 OldInt0F 024C 4 OldInt1B 0250 4 OldInt24 0255 1 Flag: recalculate NAVs 0: nothing to do on NAVs 1: move needles 2: recalculate VOR 0269 1 Flag: handle ADF Bit 0: ? Bit 1: recalculate ADF Bit 2-6: ? Bit 7: ? (need to be cleared, when Bit 1 is set) 0280 2 AltMSL 0282 2 Bit cycle 0284 2 crash flag 0286 2 map flag (FS4 sceneries) 0288 2 = 1 if plane within fuel box 028A 2 FS Version (0500h = ver 5.0, 0503h = ver 5.0a) 028C 2 Day time: 0=Day, 1=Dusk, 2=Night 0290 4 Point of view East coordinate (FS4 Units) 0294 4 Point of view Altitude (AGL in Mu) 0298 4 Point of view North coordinate (FS4 Units) 029C 2 Point of view delta East (delta units) 029E 2 Point of view delta Alt (delta units) 02A0 2 Point of view delta North(delta units) 02A2 2 Point of view pitch (Deg16) 02A4 2 Point of view bank (Deg16) 02A6 2 Point of view heading (Deg16) 02EE 2 Ground elevation 02F2 2 Coordinate north deviation (deviation caused by projection) 02F4 2 Magnetic north deviation (deviation caused by magnetic north pole) 02F6 2 Inner Marker Flag 02F8 2 Outer Marker Flag 02FA 2 Middle Marker Flag 0340 2 textured ground flag 0342 2 textured building flag 0344 2 textured plane flag 0346 2 scen. complexity (0=v. sparse 1=sparse 2=normal 3=dense 4=v. dense) 0362 1 Daytime Hours (binary) 0363 1 Daytime Minutes (binary) 037E 2? plane delta East position from current reference point 0386 2? plane delta North position from current reference point 0588 1 Active Panel 03E4 2 Palette Segment 0424 2 Palette Offset 047D 2 Graphic ID ('M'ono, 'E'ga, 'V'ga, 'S'vga) 0481 2 InMenu Flag (!=0 when menu or dialogues open) 0582 2 View1 Flag 0584 2 View2 Flag 0586 2 Map Flag 0588 2 Instrument Panel Flag 05AE 2 Practice-Record Flag(2=instruct. 7=quick pract. 8=record) 05B1 2 Flight Analysis Flag 05B5 1 Counter of gear positions, while lowering/raising gear 05B8 2 Entertainment Flag 05BA 2 Sound Flag 05BC 1 Pause Flag 05C0 2 Autocoordination Flag 05C2 2 Smoke Flag 05C4 2 ATC Flag 05DA 1 Slew Flag 05DC 2 Slew bank speed 05DE 2 Slew turn speed 05E0 2 Slew vertical speed 05E2 2 Slew forward speed 05E4 2 Slew side speed 05EC 2 Slew Position Display mode 0 .. no position display 1 .. Display FS coordinates 2 .. Display Lat/Long. 3 .. Display both 05F0 2 Update intrument panel Flag 05FC 2 Counter Timer Interrupts (used for blinking, ...) 0670 20 Demo file name 068C 17 AIR file name 06A8 29 STN file name 06C4 28 SIM file name 06E2 2 AIR drawing module offset 06E4 2 AIR drawing module segment 06E6 2 AIR additional storage segment 06EC 2 Plane designer flag 06F4 2 SDL code segment 06F8 2 Season 06FA 2 EFIS altitude 06FC 2 EFIS lock 06FE 2 EFIS plot flag 0700 2 EFIS master flag 0708 2 EFIS VOR 0710 2 CrashACtion (0=ignore, 1=detect, 2=detect & show graph) 0714 2 Crash damage flag 0716 2 Offrwy crash flag 0718 2 Collision Crash Flag 071C 2 DISC to PIX X ratio 071E 2 DISC to PIX Y ratio 072C 2 SDL Instruction Pointer 0734 2 Line colour 0788 2 Gyro Deviation 078C 2 barometric pressure adjusted on altimeter 07BC 2 ADF Frequency (BCD coded) 07BE 2 COM1 Frequency (BCD coded) 07C0 2 NAV1 Freq. (BCD) 07C2 2 NAV2 Freq. (BCD) 07C4 2 Transponder code (BCD coded) 07CF 2 Counter of Seconds (controlling display Brake,Pause and Slew Texts) 07D4 1 On ground flag 07D5 1 Stall Flag 07D6 1 Overspeed Flag 07D7 1 Inclinometer (indicator coordinated turns) 07E2 1 active VOR (N1,...) 07EA 2 Turn Rate Indicator (turn coordinator) 07EE 1 active Instrument group (N..,A..,R..,T..,F..,C..,V..) 0856 4 Ground Elevation (m/256) 0864 3 True Aircraft's Airspeed (knots/256) 0867 3 Indicated Aircraft's Airspeed (knots/256) 086A 3 Vertical speed (knots/256) 08CE 1 Instrument update flags Bit 0: update COM1 Freq. Bit 1: update NAV1 Freq. Bit 2: update NAV2 Freq. Bit 3: update OBI1 Bit 4: update OBI2 Bit 5: update transponder Bit 6: RPM Bit 7: Update Clock 08CF 1 Instrument update flags Bit 0: DME 1 Bit 1: DME 1 Bit 2: ? Bit 3: Compass Bit 4: Zoom Bit 5: update ADF Freq. Bit 6: DME 2 Bit 7: DME 2 08D0 1 Instrument update flags Bit 0: Light Bit 1: Gear up/down Bit 2: Flaps Bit 3: Magnetos Bit 4: Carbon Heating Bit 5: Strobe Bit 6-7: ? 08D1 1 Instrument update flags Bit 0: Man. Pressure Bit 1: EGT Bit 2: EGT Bit 3: Temperature Bit 4: Timerate Bit 5-7: ? 08D7 9 Time (ASCII) 08E1 5 DME1 Reading (ASCII) 08E7 5 DME2 Reading (ASCII) 08ED 4 ? (ASCII) 08F3 4 ? (ASCII) 08F8 2 OBI1 (binary) 08FA 2 OBI2 (binary) 09BE 4 Cockpit height (1/65536 m) 09C4 4 Tower East (FS4 scen.) 09C8 4 Tower Alt (FS4 scen.) 09CC 4 Tower North (FS4 scen.) 0A34 2 Flap angle (0 - 7FFF=100%) 0838 2 Flap 1 0A3A 2 Flap 2 0A3D 1 Instrument Light switch 0A41 2 Strobe switch 0A45 2 Landing Light Switch 0A47 2 Spoiler Switch 0A6C 1 Airspeed Indicator operational (0=oper., 1=inoper., 2=covered) 0A6D 1 Turn Coordinator operational 0A6E 1 Heading Indicator operational 0A6F 1 Altimeter operational 0A70 1 Attitude Indicator operational 0A71 1 Vertical Speed Indicator operational 0A72 1 COM operational 0A73 1 NAV operational 0A74 1 Transponder operational 0A75 1 ADF operational 0A76 1 Magnetic Compass operational 0A77 1 Pitot-Static operational 0A78 1 Vacuum operational 0A79 1 Fuel operational 0A7A 1 Engine operational 0A7B 1 Electrical Systems operational (0=oper., 1=inoper., 2=covered) 0A7C 1 Propulsion flag 0A7D 1 Gear operational 0A86 2 Flag: Display Indicated Airspeed 0A8C 2 Elevator Position 0A8E 2 Aileron Position 0A90 2 Rudder Position 0A9A 2 Flag (and Strength?) of parking brake 0AA3 2 Elevator indicator Position 0AA5 2 Aileron indicator Position 0AA7 2 Rudder indicator Position 0AA9 1 Elevator Trim 0AAA 2 Flag (and Strength?) of Brakes 0AF4 3 Fuel Tank 1 (left) 0AF7 3 Fuel Tank 2 (right) 0AFA 3 Fuel Tank 3 (left aux) 0AFD 3 Fuel Tank 4 (right aux) 0AFF 2 Tank 1 Capacity (in gallons) 0B01 2 Tank 2 Capacity 0B03 2 Tank 3 Capacity 0B05 2 Tank 4 Capacity 0B07 2 Tank 5 Capacity? 0B09 2 Tank 6 Capacity? 0B0B 2 VolumeWeightFlag (0=show capac. as vol, 1=as weight) 0B11 1 DME1 Displaymode: NM/KN 0B1B 1 DME2 Displaymode: NM/KN 0B28 1 ILS Markers bitcoded 0B3E 2 Timecounter in ms (LSW, higher values at 1B5A and B40-B43) 0B40 4 Timecounter in ms (Highest 4 Bytes, see B3E and 1B5A) 0DF8 4 Plane East coordinate (FS4 Units) 0DFC 4 Plane Altitude (AGL in Mu) 0E00 4 Plane North coord. (FS4 units) 0C1C 5Eh actual weather 0E00 4 North coordinate (FS4 Units) 0E94 2 Replay Flag 0EA8 2 Video Flag 0EA2 2 Video Recording interval (0=1 Second) 0EA4 2 Flag: Video Recording 0EB6 2 Pause flag 0ED5 2 Click flag 0EDA 2 Click X 0EDC 2 Click Y 0F0A 32 Keyboard buffer 0F2A 2 Keyboard buffer head pointer 0F2C 2 Keyboard buffer tail pointer 0F30 2 Brake? 0F33 1 Last key pressed code 0F34 1 CTRL pressed flag 0F35 1 SHIFT pressed flag 0F36 1 ALT pressed flag 0F40 2 Reliability (0 - 100) 0F42 2 Flight Realism (0 - 100) 0F44 2 Stress flag 0F4C 2 Magnet flag 0F4A 2 Flame out flag 0F4E 2 Misture Control Flag 0F50 1 RealismFlags (bits 0 ?, 1 Elev.trim, 2 Gyro drift, 3 Light burn out 4 Fast throttle, 5 instr. lights, 6-7 ?) 0F51 1 key character code (in dialogues) 0F5C 32 Event queue 0F7C 2 Event queue head pointer 0F7E 2 Event queue tail pointer 0F84 8 Menu bar hooks 0F8C 8 Option menu hooks 0F94 8 View menu hooks 0F9C 8 World menu hooks 0FA4 8 Sim menu hooks 0FAC 8 Nav/Com menu hooks 0FB4 8 Scenery menu hooks 0FDA 1 Autopilot Masterswitch 0FDC 2 Autopilot Wing Leveler 0FDE 2 Autopilot Nav1 Flag 0FE0 2 Autopilot Heading Flag 0FE2 2 Autopilot Heading Value 0FE4 2 Autopilot Altitude Flag 0FE6 2 Autopilot Altitude Value 0FE8 2 Autopilot Attitude 0FEA 2 Autopilot Slope 0FEC 2 Autopilot Approach 0FEE 2 Autopilot Course 0FF0 2 Simple AIR Flag 1034 2 Flight Anal. Type (0=off, 1=land., 2=course track., 3=maneuvr.) 103A 2 Clear Course Flag 103C 2 Record Course Flag 103E 2 Display Course Flag 1040 2 Track Resolution (0=fine, 1=medium, 2=coarse) 1042 2 Track Length (0=short, 1=medium, 2=long) 11C5 2 DOS Allocation Strategy on start of FS5 1605 1 Concave polygon flag 1614 2 Point array address 1628 2 DLL table segment 169C 2 FORN segment 16A5 1 CPU Type (0003h = 386, 0004h = 486, ...) 16B6 2 Active engines (Bit 0: left engine, 1: ...) 16B8 2 Eng1 Throttle 16BA 2 Eng1 Propeller 16BC 2 Eng1 Mixture 16BE 2 Magnet1 cycle (prop.: 0=off, 1=right, 2=left, 3=both, 4=start) 16C0 2 Eng1 Off/On 16C2 2 Eng1 Turbo 16C4 2 Eng1 Rotation speed 16C4 2 Eng1 fuel flow 16D2 2 Eng1 Magnet left off/on 16D4 2 Eng1 Magent tight off/on 16D6 2 Eng1 Heating Switch 16DA 2 Eng1 EGT limit position 16DC 2 Eng1 Oil Temperature 16DE 2 Eng1 Oil Pressure 16E2 2 Eng1 EGT current position 16E4 2 Eng1 Man. Pressure 16E6 2 Eng1 west pos. (relative to A/C rot. center) 16E8 2 Eng1 alt. position (") 16EA 2 Eng1 north position (") 16EC 2 ? ( RPM=[16C4]*[16EC] ) 16F2 - 172A same as above for engine 2 172C - 1764 same as above for engine 3 1766 - 179E same as above for engine 4 17A0 2*4 Offset of table of Throttle Controls 17A8 2*4 Offset of table of Propeller Controls 17B0 2*4 Offset of table of Mixture Controls 17B8 2*4 Offset of table ? (engine control) 17C0 2 Number of engines 17C4 2 Lbs x gallon (fuel density) 17C8 2 Engine control min value 18F4 2 Gear dust 18F6 2 Crash protector 18FA 2 Gear up/down (Nose wheel) 18FC 2 Gear up/down (left wheel) 18FE 2 Gear up/down (right wheel) 1900 2 Nose gear position (0 - 7FFFh) 1902 2 Left gear position (0 - 7FFFh) 1904 2 Rght gear position (0 - 7fffh) 1986 2 Segment of Call Table for subr. queue: processed every second 199A 2 Segment of Call Table for subr. queue: processed on every frame 19B0 2 Current Scenery Type (1=SCN, 2=BGL) 1B55 1 Daytime seconds (binary) 1B5A 1 Timecounter in ms (see also 0B3Eh and 0B40h) 1BA0 6 actual Latitude of Aircraft 1BA6 6 actual Longitude of Aircraft 1BAC 6 actual Altitude of Aircraft (MSL in m/65536) 1BB2 4 aircraft pitch 1BB6 4 aircraft bank 1BBA 4 aircraft heading 1BE8 6 view point longitude 1BEE 6 view point altitude 1BF4 6 view point latitude 1C42 6 Tower latitude 1C48 6 Tower longitude 1C4E 6 Tower altitude 1D30 2 Unit system (0=US, 1=metr.-alt in ft, 2=metr.-alt in m) 1D36 2 Timerate 1E88 2 See propeller flag 1E8A 13 G2D file name 1E97 13 G3D file name 1EA4 13 KBD file name 1EF2 2 Available EMS blocks 1EF4 2 Available HIMEM 1EF8 2 EMS available flag 1EFA 2 HIMEM available flag 1FD2 2*14h Segment Addresses of Instrument Drivers 1.set (0 terminates) 1FFA 2*14h Segment Addresses of Instrument Drivers 2.set (0 terminates) 2072 2 LandMe flag 2074 2 LandMe is possible 22AC 2 Set navs to airport freq. flag

Share this post


Link to post
Share on other sites
Guest gorchi

Hi Sergs,my team colleague has done some research on this and here is a part of REIL lights which come up if ADF is set on 388kHz exactly:

:_tmp_0_Light_Beacon_0IfVarRange( :RET0  7bc  0904 0904 )Jump( :GO0 ):RET0Return:GO0...

By opinion is that the frequency is BCD coded but I don't know this coding so the frequency was determined using old technique, trial and error.Hope this will help You. Best regards,Goran BrumenFS Slovenija 2002 teamhttp://slovenia.avsim.net

Share this post


Link to post
Share on other sites
Guest

Hi,Thanks to everyone that replied, I managed to get the desired result. The variable 0x7bc (adf freq) now controls the detail level of the ground vehicles in my scenery.Thanks again and best regardsSergs

Share this post


Link to post
Share on other sites
Guest

The ADF variables work like this:7bc contains the whole part of the frequency in hexadecimal notation pretty much like that NAV variable, for example 388 kHz is 388h = 904 in decimal. Variable 7c6 contains the decimal part, that has values 0 or 5. I guess it would contain also 2 or 7 for .25 and .75, but I didn't test this.So, for example the frequency 672.5 kHz would be 1650 (= 672h) in variable 7bc and 5 (= 5h) in variable 7c6.

Share this post


Link to post
Share on other sites
Guest

The ADF variables work like this:7bc contains the whole part of the frequency in hexadecimal notation pretty much like that NAV variable, for example 388 kHz is 388h = 904 in decimal. Variable 7c6 contains the decimal part, that has values 0 or 5. I guess it would contain also 2 or 7 for .25 and .75, but I didn't test this.So, for example the frequency 672.5 kHz would be 1650 (= 672h) in variable 7bc and 5 (= 5h) in variable 7c6.

Share this post


Link to post
Share on other sites
Guest

Hi Jari,Thanks for your reply, it explains a lot and saves me a lot of trial and error when matching frequencies and their values. Does anyone know what notation do some of the other variables use?Thanks and best regardsSergs

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...