Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F/A-18C: Add exports for laser status on HUD/DDI #856

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Scripts/DCS-BIOS/doc/Addresses.h
Original file line number Diff line number Diff line change
Expand Up @@ -7308,6 +7308,7 @@
#define FA_18C_hornet_HUD_BALANCE_A 0x745C
#define FA_18C_hornet_HUD_BLACK_LVL 0x745A, 0xFFFF, 0
#define FA_18C_hornet_HUD_BLACK_LVL_A 0x745A
#define FA_18C_hornet_HUD_LTDR_A 0x75A2
#define FA_18C_hornet_HUD_SYM_BRT 0x7458, 0xFFFF, 0
#define FA_18C_hornet_HUD_SYM_BRT_A 0x7458
#define FA_18C_hornet_HUD_SYM_BRT_SELECT 0x742C, 0x0800, 11
Expand Down Expand Up @@ -7419,6 +7420,7 @@
#define FA_18C_hornet_LEFT_DDI_CONT_CTL_A 0x7412
#define FA_18C_hornet_LEFT_DDI_CRS_SW 0x74A8, 0x6000, 13
#define FA_18C_hornet_LEFT_DDI_HDG_SW 0x74A8, 0x1800, 11
#define FA_18C_hornet_LEFT_DDI_LTDR_A 0x75A8
#define FA_18C_hornet_LEFT_DDI_PB_01 0x740E, 0x0008, 3
#define FA_18C_hornet_LEFT_DDI_PB_01_AM 0x740E, 0x0008
#define FA_18C_hornet_LEFT_DDI_PB_02 0x740E, 0x0010, 4
Expand Down Expand Up @@ -7582,6 +7584,7 @@
#define FA_18C_hornet_RIGHT_DDI_BRT_SELECT 0x7418, 0x0060, 5
#define FA_18C_hornet_RIGHT_DDI_CONT_CTL 0x7454, 0xFFFF, 0
#define FA_18C_hornet_RIGHT_DDI_CONT_CTL_A 0x7454
#define FA_18C_hornet_RIGHT_DDI_LTDR_A 0x75AE
#define FA_18C_hornet_RIGHT_DDI_PB_01 0x7418, 0x0080, 7
#define FA_18C_hornet_RIGHT_DDI_PB_01_AM 0x7418, 0x0080
#define FA_18C_hornet_RIGHT_DDI_PB_02 0x7418, 0x0100, 8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -973,4 +973,8 @@ FA_18C_hornet:defineToggleSwitch("KY58_FILL_SEL_PULL", 41, 3003, 0, "KY-58 Contr
FA_18C_hornet:defineReadWriteRadio("COMM1", 38, 7, 3, 1000, "COMM1 Radio")
FA_18C_hornet:defineReadWriteRadio("COMM2", 39, 7, 3, 1000, "COMM2 Radio")

FA_18C_hornet:defineString("HUD_LTDR", function()
return Functions.coerce_nil_to_string(Module.parse_indication(1)["MPD_FLIR_LaserStatus_label"])
end, 5, "HUD", "Laser Status")

return FA_18C_hornet
Loading