Results 1 to 10 of 11
-
03-26-2007, 11:17 PM #1
- Join Date
- Aug 2006
- Location
- Baton Rouge, LA
- Posts
- 26
SquawkBox XPDR/Cockpit question...
..........
-
03-26-2007, 11:25 PM #2
Hi Charles..
You will find the answer to this question at the link below.
http://mycockpit.org/forums/showthread.php?t=8323
Best regards,
Trev________________________
Trevor Hale
-
03-31-2007, 11:15 PM #3
- Join Date
- Aug 2006
- Location
- Baton Rouge, LA
- Posts
- 26
..........
-
04-06-2007, 04:02 PM #4
Squawkbox XPDR
Hi
This works for switching between Standby and Squawk mode Charlie but I cannot get it to work for Identing?
Any help appreciated.
Thanks
RalphSpeedbird17
-
04-06-2007, 04:43 PM #5
- Join Date
- Oct 2005
- Location
- Holley, New York U.S.A.
- Posts
- 1,776
Maybe a bug in the software no one has found until now? Has anyone asked them? (SB)
Bob Reed
-
04-07-2007, 08:45 AM #6
- Join Date
- Aug 2006
- Location
- Baton Rouge, LA
- Posts
- 26
..........
-
04-09-2007, 05:11 AM #7
- Join Date
- Oct 2006
- Location
- Perth, Australia
- Posts
- 263
The ident actually does work but for some reason the light does not flash.
I tried it out 1 night with atc & they confirmed ident working.....
MichaelA320 Home Simulator LHA435
- P3dv4.5 - i7 - GTX970 - Fly Elise - ASN - Black Marble
-
01-29-2009, 04:46 AM #8
Reset to zero...
Hi,
Does that mean you have to reset it to x01 in FSUIPC after each ident? Not that we are asked to do it that often but it seems a moderate pain in the ***?? And can anyone else confirm it works in flight, even if the Ident does not flash on the gauge?
Thanks for the help, guys. I love this forum!
Nigel.I can't see the light but I think I found the tunnel...
www.shamrock075.webs.com
-
01-29-2009, 05:42 AM #9
Note that there are two offsets involved:
http://squawkbox.ca/doc/sdk/fsuipc.php
7b93, used to "push" ident, by setting it to 1 (as tunatuk described), no resetting needed (that is done by fsuipc).
7b92, that becomes 1 if "ATC hits us", you have to set this back to 0 if you want to detect another hit...
You can use this offset for a flashing led indicating ATC activity. I do it like this: if it becomes 1 I lit the led and I will let it go out after 0.2 seconds.
I can confirm that the SB3 SDK in FS9 works perfect. I'm more worried about the still missing support for SB4 in FSX, no Simconnect interface yet.
For SIOC users, attached is my FS9/SB3 code:
regards,
Nico Kaan
// 10.3 Transponder, SB3 support
// FS9 only
Var 0000 Value 0
{
&Ident = 0
&TxtMsgLed = 0
}
Var 1 name FI_VoiceRoom Link FSUIPC_IN Offset $7B94 Length 1
{
CALL &OutSB3Flags
}
Var 2 name FI_Rx Link FSUIPC_IN Offset $7B95 Length 1
{
CALL &OutSB3Flags
}
Var 3 name FI_Tx Link FSUIPC_IN Offset $7B96 Length 1
{
CALL &OutSB3Flags
}
Var 4 name FI_Connected Link FSUIPC_IN Offset $7B81 Length 1
{
CALL &OutSB3Flags
}
Var 5 name FI_TxtMsg Link FSUIPC_IN Offset $7B9C Length 1
{
IF &FI_TxtMsg <> 0
{
IF &FI_TxtMsg = 2
{
&TxtMsg = 1
}
IF &FI_TxtMsg = 5
{
&TxtMsg = 1
}
IF &FI_TxtMsg = 6
{
&TxtMsg = 1
}
IF &FI_TxtMsg = 8
{
&TxtMsg = 1
}
IF &FI_TxtMsg = 9
{
&TxtMsg = 1
}
}
}
Var 6 name FO_Ident Link FSUIPC_OUT Offset $7B93 Length 1
Var 7 name FI_XPDRMode link FSUIPC_IN Offset $7B91 Length 1
{
CALL &OutXPDRMode
}
Var 8 name X_Ident Link FSUIPC_INOUT Offset $7B92 Length 1
{
IF &X_Ident = 1 // ATC = 1
{
IF &FI_XPDRMode = 0 // 0 = Transponder mode is Charley
{
IF &Ident = 0 // led not already on
{
&Ident = 1 // set ATC LED
&ClearIdent = 0
&ClearIdent = DELAY 1 2 // reset after delay of 0.2 secs
}
}
ELSE
{
&X_Ident = 0
}
}
}
Var 9 name Txtmsg
{
IF &Txtmsg = 1
{
&TxtMsgBlink = 0 // startvalue of timer
&TxtMsgBlink = TIMER 10000 1 50 // increase with 0,5 second interval, from 0 to 10000
}
ELSE
{
IF &TxtmsgBlink != 0 // suppress pushing the clear txt message button while timer is not running
{
&TxtMsgBlink = 9999 // force to stop (with led OFF)
}
}
}
Var 10 name TxtMsgBlink
{
IF &TxtMsgBlink >= 9999
{
&TxtMsgLed = 0
}
ELSE
{
L0 = MOD &TxtMsgBlink 2
IF L0 = 0
{
&TxtMsgLed = 1
}
ELSE
{
&TxtMsgLed = 0
}
}
}
Var 11 name TxtMsgLed
{
CALL &OutSB3Flags
}
Var 12 name InitSB3Flags Link SUBRUTINE
{
&O_Connected = &InitSB3Flags
&O_TxtMsg = &InitSB3Flags
&O_VoiceRoom = &InitSB3Flags
&O_Tx = &InitSB3Flags
&O_Rx = &InitSB3Flags
}
Var 13 name OutSB3Flags Link SUBRUTINE
{
IF &LeftBusOff = 1
{
CALL &InitSB3Flags 0
}
ELSE
{
IF &TestPed = 1
{
CALL &InitSB3Flags 1
}
ELSE
{
&O_Connected = &FI_Connected
&O_TxtMsg = &TxtMsgLed
&O_VoiceRoom = &FI_VoiceRoom
&O_Tx = &FI_Tx
&O_Rx = &FI_Rx
}
}
}
Var 14 Link IOCARD_SW Device 1 Input 2 Type P // ident push button
{
&FO_Ident = 1
}
Var 15 Link IOCARD_SW Device 1 Input 4 Type P // Clear Txt message push button
{
&TxtMsg = 0
}
Var 16 name Ident // ATC = 1 and in Mode Charley
{
CALL &OutIdent
}
Var 17 name ClearIdent // 1 = clear
{
IF &ClearIdent = 1
{
&Ident = 0 // led off
&X_Ident = 0 // and clear byte in FSUIPC interface
}
}
Var 18 name OutXPDRMode Link SUBRUTINE
{
IF &LeftBusOff = 1
{
&O_ModeC = 0
}
ELSE
{
IF &TestPed = 1
{
&O_ModeC = 1
}
ELSE
{
IF &FI_XPDRMode = 0
{
IF &FI_Connected = 1
{
&O_ModeC = 1
}
ELSE
{
&O_ModeC = 0
}
}
ELSE
{
&O_ModeC = 0
}
}
}
}
Var 19 name OutIdent Link SUBRUTINE
{
IF &LeftBusOff = 1
{
&O_Ident = 0
}
ELSE
{
IF &TestPed = 1
{
&O_Ident = 1
}
ELSE
{
&O_Ident = &Ident
}
}
}
Var 20 name O_ModeC Link IOCARD_OUT Device 1 Output 93
Var 21 name O_Ident Link IOCARD_OUT Device 1 Output 92
Var 22 name O_VoiceRoom Link IOCARD_OUT Device 1 Output 90
Var 23 name O_Tx Link IOCARD_OUT Device 1 Output 84
Var 24 name O_Rx Link IOCARD_OUT Device 1 Output 85
Var 25 name O_Connected Link IOCARD_OUT Device 1 Output 86
Var 26 name O_TxtMsg Link IOCARD_OUT Device 1 Output 87
-
01-29-2009, 08:33 AM #10
- Join Date
- Jan 2007
- Posts
- 496
I've written to the SB4 authors asking for this to be resolved several times. Each time they apologise for not getting to it and promise to look at implementing a solution. All I am seeking is something along the same lines as the PTT (and PVT) implementation -- registered Windows messages, which can be sent from an assignment in FSUIPC locally or via WideFS.
I hope to hear from them soon ... I was thinking of trying on-line ATC, and actually installed SB4 for use in my cockpit, but the transponder issue stopped it dead. I'm not about to have horrid gauges on my outside view, nor mice in the cockpit!
Regards
Pete
-
Post Thanks / Like - 1 Thanks, 0 Likes, 0 DislikesTrevor Hale thanked for this post
Similar Threads
-
OC RMP & XPDR
By ANDYSMITH in forum OpenCockpits General DiscussionReplies: 0Last Post: 01-20-2011, 11:49 AM -
SquawkBox question
By PHLpilot in forum MyCockpit Online Flying DiscussionReplies: 3Last Post: 06-08-2009, 07:53 AM
Search Womans from your town for night
HDG preselect function