diff --git a/Scripts/DCS-BIOS/doc/Addresses.h b/Scripts/DCS-BIOS/doc/Addresses.h index 8c323163b..90e1110c7 100644 --- a/Scripts/DCS-BIOS/doc/Addresses.h +++ b/Scripts/DCS-BIOS/doc/Addresses.h @@ -13061,6 +13061,23 @@ #define F_22A_START_R_SW 0x6600, 0x0040, 6 #define F_22A_START_R_SW_AM 0x6600, 0x0040 #define F_22A_TAXI_LIGHTS_SW 0x6600, 0x6000, 13 +#define F_4E_PLT_FUEL_AIR_REFUEL 0x2A08, 0x2000, 13 +#define F_4E_PLT_FUEL_AIR_REFUEL_AM 0x2A08, 0x2000 +#define F_4E_PLT_FUEL_BOOST_PUMP_L_CHECK 0x2A08, 0x8000, 15 +#define F_4E_PLT_FUEL_BOOST_PUMP_L_CHECK_AM 0x2A08, 0x8000 +#define F_4E_PLT_FUEL_BOOST_PUMP_R_CHECK 0x2A10, 0x0004, 2 +#define F_4E_PLT_FUEL_BOOST_PUMP_R_CHECK_AM 0x2A10, 0x0004 +#define F_4E_PLT_FUEL_EXTERNAL_TANKS_FEED 0x2A10, 0x0003, 0 +#define F_4E_PLT_FUEL_FEED_TANK_CHECK 0x2A10, 0x0008, 3 +#define F_4E_PLT_FUEL_FEED_TANK_CHECK_AM 0x2A10, 0x0008 +#define F_4E_PLT_FUEL_REFUEL_SELECTOR 0x2A08, 0x1000, 12 +#define F_4E_PLT_FUEL_REFUEL_SELECTOR_AM 0x2A08, 0x1000 +#define F_4E_PLT_FUEL_REFUEL_SELECTOR_COVER 0x2A08, 0x0800, 11 +#define F_4E_PLT_FUEL_REFUEL_SELECTOR_COVER_AM 0x2A08, 0x0800 +#define F_4E_PLT_FUEL_WING_FUEL_DUMP 0x2A08, 0x4000, 14 +#define F_4E_PLT_FUEL_WING_FUEL_DUMP_AM 0x2A08, 0x4000 +#define F_4E_PLT_FUEL_WING_INTERNAL_FEED 0x2A08, 0x0400, 10 +#define F_4E_PLT_FUEL_WING_INTERNAL_FEED_AM 0x2A08, 0x0400 #define F_4E_PLT_IFF_AUDIO_LIGHT_SW 0x2A00, 0x0600, 9 #define F_4E_PLT_IFF_CODE 0x2A00, 0x0003, 0 #define F_4E_PLT_IFF_IDENT 0x2A06, 0xC000, 14 @@ -13094,49 +13111,49 @@ #define F_4E_PLT_IFF_TEST_LIGHT_AM 0x2A00, 0x0020 #define F_4E_PLT_MASTER_ARM_SW 0x2A08, 0x0200, 9 #define F_4E_PLT_MASTER_ARM_SW_AM 0x2A08, 0x0200 -#define F_4E_WSO_IFF_CHALLENGE_DIM 0x2A1A, 0xFFFF, 0 -#define F_4E_WSO_IFF_CHALLENGE_DIM_A 0x2A1A -#define F_4E_WSO_IFF_CHALLENGE_LIGHT 0x2A18, 0x2000, 13 -#define F_4E_WSO_IFF_CHALLENGE_LIGHT_AM 0x2A18, 0x2000 -#define F_4E_WSO_IFF_CHALLENGE_TEST_BUTTON 0x2A18, 0x1000, 12 -#define F_4E_WSO_IFF_CHALLENGE_TEST_BUTTON_AM 0x2A18, 0x1000 -#define F_4E_WSO_IFF_CODE_A 0x2A12 -#define F_4E_WSO_IFF_CODE_HUNDREDS 0x2A10, 0x00F0, 4 -#define F_4E_WSO_IFF_CODE_INC_HUNDREDS 0x2A10, 0x1000, 12 -#define F_4E_WSO_IFF_CODE_INC_HUNDREDS_AM 0x2A10, 0x1000 -#define F_4E_WSO_IFF_CODE_INC_ONES 0x2A10, 0x4000, 14 -#define F_4E_WSO_IFF_CODE_INC_ONES_AM 0x2A10, 0x4000 -#define F_4E_WSO_IFF_CODE_INC_TENS 0x2A10, 0x2000, 13 -#define F_4E_WSO_IFF_CODE_INC_TENS_AM 0x2A10, 0x2000 -#define F_4E_WSO_IFF_CODE_INC_THOUSANDS 0x2A08, 0x8000, 15 -#define F_4E_WSO_IFF_CODE_INC_THOUSANDS_AM 0x2A08, 0x8000 -#define F_4E_WSO_IFF_CODE_ONES 0x2A08, 0x3C00, 10 -#define F_4E_WSO_IFF_CODE_TENS 0x2A10, 0x000F, 0 -#define F_4E_WSO_IFF_CODE_THOUSANDS 0x2A10, 0x0F00, 8 +#define F_4E_WSO_IFF_CHALLENGE_DIM 0x2A1C, 0xFFFF, 0 +#define F_4E_WSO_IFF_CHALLENGE_DIM_A 0x2A1C +#define F_4E_WSO_IFF_CHALLENGE_LIGHT 0x2A12, 0x8000, 15 +#define F_4E_WSO_IFF_CHALLENGE_LIGHT_AM 0x2A12, 0x8000 +#define F_4E_WSO_IFF_CHALLENGE_TEST_BUTTON 0x2A12, 0x4000, 14 +#define F_4E_WSO_IFF_CHALLENGE_TEST_BUTTON_AM 0x2A12, 0x4000 +#define F_4E_WSO_IFF_CODE_A 0x2A14 +#define F_4E_WSO_IFF_CODE_HUNDREDS 0x2A10, 0xF000, 12 +#define F_4E_WSO_IFF_CODE_INC_HUNDREDS 0x2A12, 0x0040, 6 +#define F_4E_WSO_IFF_CODE_INC_HUNDREDS_AM 0x2A12, 0x0040 +#define F_4E_WSO_IFF_CODE_INC_ONES 0x2A12, 0x0100, 8 +#define F_4E_WSO_IFF_CODE_INC_ONES_AM 0x2A12, 0x0100 +#define F_4E_WSO_IFF_CODE_INC_TENS 0x2A12, 0x0080, 7 +#define F_4E_WSO_IFF_CODE_INC_TENS_AM 0x2A12, 0x0080 +#define F_4E_WSO_IFF_CODE_INC_THOUSANDS 0x2A12, 0x0020, 5 +#define F_4E_WSO_IFF_CODE_INC_THOUSANDS_AM 0x2A12, 0x0020 +#define F_4E_WSO_IFF_CODE_ONES 0x2A10, 0x00F0, 4 +#define F_4E_WSO_IFF_CODE_TENS 0x2A10, 0x0F00, 8 +#define F_4E_WSO_IFF_CODE_THOUSANDS 0x2A12, 0x000F, 0 #define F_4E_WSO_IFF_COMBAT_TREE_CHALLENGE_DIM 0x2A1E, 0xFFFF, 0 #define F_4E_WSO_IFF_COMBAT_TREE_CHALLENGE_DIM_A 0x2A1E -#define F_4E_WSO_IFF_COMBAT_TREE_CHALLENGE_TEST_BUTTON 0x2A1C, 0x0002, 1 -#define F_4E_WSO_IFF_COMBAT_TREE_CHALLENGE_TEST_BUTTON_AM 0x2A1C, 0x0002 -#define F_4E_WSO_IFF_COMBAT_TREE_CHALLENGE_TEST_LIGHT 0x2A1C, 0x0004, 2 -#define F_4E_WSO_IFF_COMBAT_TREE_CHALLENGE_TEST_LIGHT_AM 0x2A1C, 0x0004 -#define F_4E_WSO_IFF_COMBAT_TREE_MODE_2 0x2A1C, 0x0030, 4 -#define F_4E_WSO_IFF_COMBAT_TREE_MODE_3 0x2A1C, 0x00C0, 6 -#define F_4E_WSO_IFF_COMBAT_TREE_TEST 0x2A1C, 0x0008, 3 -#define F_4E_WSO_IFF_COMBAT_TREE_TEST_AM 0x2A1C, 0x0008 -#define F_4E_WSO_IFF_MODE_A 0x2A16 -#define F_4E_WSO_IFF_MODE_DEC 0x2A10, 0x8000, 15 -#define F_4E_WSO_IFF_MODE_DEC_AM 0x2A10, 0x8000 -#define F_4E_WSO_IFF_MODE_DEC_HUNDREDS 0x2A18, 0x0200, 9 -#define F_4E_WSO_IFF_MODE_DEC_HUNDREDS_AM 0x2A18, 0x0200 -#define F_4E_WSO_IFF_MODE_DEC_ONES 0x2A18, 0x0800, 11 -#define F_4E_WSO_IFF_MODE_DEC_ONES_AM 0x2A18, 0x0800 -#define F_4E_WSO_IFF_MODE_DEC_TENS 0x2A18, 0x0400, 10 -#define F_4E_WSO_IFF_MODE_DEC_TENS_AM 0x2A18, 0x0400 -#define F_4E_WSO_IFF_MODE_DEC_THOUSANDS 0x2A18, 0x0100, 8 -#define F_4E_WSO_IFF_MODE_DEC_THOUSANDS_AM 0x2A18, 0x0100 -#define F_4E_WSO_IFF_MODE_INC 0x2A08, 0x4000, 14 -#define F_4E_WSO_IFF_MODE_INC_AM 0x2A08, 0x4000 -#define F_4E_WSO_IFF_TEST_CHALLENGE 0x2A18, 0xC000, 14 +#define F_4E_WSO_IFF_COMBAT_TREE_CHALLENGE_TEST_BUTTON 0x2A1A, 0x0800, 11 +#define F_4E_WSO_IFF_COMBAT_TREE_CHALLENGE_TEST_BUTTON_AM 0x2A1A, 0x0800 +#define F_4E_WSO_IFF_COMBAT_TREE_CHALLENGE_TEST_LIGHT 0x2A1A, 0x1000, 12 +#define F_4E_WSO_IFF_COMBAT_TREE_CHALLENGE_TEST_LIGHT_AM 0x2A1A, 0x1000 +#define F_4E_WSO_IFF_COMBAT_TREE_MODE_2 0x2A1A, 0xC000, 14 +#define F_4E_WSO_IFF_COMBAT_TREE_MODE_3 0x2A20, 0x0003, 0 +#define F_4E_WSO_IFF_COMBAT_TREE_TEST 0x2A1A, 0x2000, 13 +#define F_4E_WSO_IFF_COMBAT_TREE_TEST_AM 0x2A1A, 0x2000 +#define F_4E_WSO_IFF_MODE_A 0x2A18 +#define F_4E_WSO_IFF_MODE_DEC 0x2A12, 0x0200, 9 +#define F_4E_WSO_IFF_MODE_DEC_AM 0x2A12, 0x0200 +#define F_4E_WSO_IFF_MODE_DEC_HUNDREDS 0x2A12, 0x0800, 11 +#define F_4E_WSO_IFF_MODE_DEC_HUNDREDS_AM 0x2A12, 0x0800 +#define F_4E_WSO_IFF_MODE_DEC_ONES 0x2A12, 0x2000, 13 +#define F_4E_WSO_IFF_MODE_DEC_ONES_AM 0x2A12, 0x2000 +#define F_4E_WSO_IFF_MODE_DEC_TENS 0x2A12, 0x1000, 12 +#define F_4E_WSO_IFF_MODE_DEC_TENS_AM 0x2A12, 0x1000 +#define F_4E_WSO_IFF_MODE_DEC_THOUSANDS 0x2A12, 0x0400, 10 +#define F_4E_WSO_IFF_MODE_DEC_THOUSANDS_AM 0x2A12, 0x0400 +#define F_4E_WSO_IFF_MODE_INC 0x2A12, 0x0010, 4 +#define F_4E_WSO_IFF_MODE_INC_AM 0x2A12, 0x0010 +#define F_4E_WSO_IFF_TEST_CHALLENGE 0x2A1A, 0x0300, 8 #define F_5E_3_ACC 0x768E, 0x0004, 2 #define F_5E_3_ACCELEROMETER 0x76A0, 0xFFFF, 0 #define F_5E_3_ACCELEROMETER_A 0x76A0 diff --git a/Scripts/DCS-BIOS/doc/doc_assets/F-4E.jsonp b/Scripts/DCS-BIOS/doc/doc_assets/F-4E.jsonp index 4caace918..ab0e39549 100644 --- a/Scripts/DCS-BIOS/doc/doc_assets/F-4E.jsonp +++ b/Scripts/DCS-BIOS/doc/doc_assets/F-4E.jsonp @@ -1,5 +1,266 @@ docdata["F-4E"] = { + "PLT Fuel Panel": { + "PLT_FUEL_AIR_REFUEL": { + "category": "PLT Fuel Panel", + "control_type": "selector", + "description": "Air Refuel Switch", + "identifier": "PLT_FUEL_AIR_REFUEL", + "inputs": [ { + "description": "switch to previous or next state", + "interface": "fixed_step" + }, { + "description": "set position", + "interface": "set_state", + "max_value": 1 + }, { + "argument": "TOGGLE", + "description": "Toggle switch state", + "interface": "action" + } ], + "outputs": [ { + "address": 10760, + "address_mask_identifier": "F_4E_PLT_FUEL_AIR_REFUEL_AM", + "address_mask_shift_identifier": "F_4E_PLT_FUEL_AIR_REFUEL", + "description": "selector position", + "mask": 8192, + "max_value": 1, + "shift_by": 13, + "suffix": "", + "type": "integer" + } ] + }, + "PLT_FUEL_BOOST_PUMP_L_CHECK": { + "api_variant": "momentary_last_position", + "category": "PLT Fuel Panel", + "control_type": "selector", + "description": "Check Left Boost Pump", + "identifier": "PLT_FUEL_BOOST_PUMP_L_CHECK", + "inputs": [ { + "description": "switch to previous or next state", + "interface": "fixed_step" + }, { + "description": "set position", + "interface": "set_state", + "max_value": 1 + }, { + "argument": "TOGGLE", + "description": "Toggle switch state", + "interface": "action" + } ], + "outputs": [ { + "address": 10760, + "address_mask_identifier": "F_4E_PLT_FUEL_BOOST_PUMP_L_CHECK_AM", + "address_mask_shift_identifier": "F_4E_PLT_FUEL_BOOST_PUMP_L_CHECK", + "description": "selector position", + "mask": 32768, + "max_value": 1, + "shift_by": 15, + "suffix": "", + "type": "integer" + } ] + }, + "PLT_FUEL_BOOST_PUMP_R_CHECK": { + "api_variant": "momentary_last_position", + "category": "PLT Fuel Panel", + "control_type": "selector", + "description": "Check Right Boost Pump", + "identifier": "PLT_FUEL_BOOST_PUMP_R_CHECK", + "inputs": [ { + "description": "switch to previous or next state", + "interface": "fixed_step" + }, { + "description": "set position", + "interface": "set_state", + "max_value": 1 + }, { + "argument": "TOGGLE", + "description": "Toggle switch state", + "interface": "action" + } ], + "outputs": [ { + "address": 10768, + "address_mask_identifier": "F_4E_PLT_FUEL_BOOST_PUMP_R_CHECK_AM", + "address_mask_shift_identifier": "F_4E_PLT_FUEL_BOOST_PUMP_R_CHECK", + "description": "selector position", + "mask": 4, + "max_value": 1, + "shift_by": 2, + "suffix": "", + "type": "integer" + } ] + }, + "PLT_FUEL_EXTERNAL_TANKS_FEED": { + "category": "PLT Fuel Panel", + "control_type": "selector", + "description": "External Tanks Feed", + "identifier": "PLT_FUEL_EXTERNAL_TANKS_FEED", + "inputs": [ { + "description": "switch to previous or next state", + "interface": "fixed_step" + }, { + "description": "set position", + "interface": "set_state", + "max_value": 2 + } ], + "outputs": [ { + "address": 10768, + "address_mask_shift_identifier": "F_4E_PLT_FUEL_EXTERNAL_TANKS_FEED", + "description": "selector position", + "mask": 3, + "max_value": 2, + "shift_by": 0, + "suffix": "", + "type": "integer" + } ] + }, + "PLT_FUEL_FEED_TANK_CHECK": { + "api_variant": "momentary_last_position", + "category": "PLT Fuel Panel", + "control_type": "selector", + "description": "Check Engine-Feed Tank", + "identifier": "PLT_FUEL_FEED_TANK_CHECK", + "inputs": [ { + "description": "switch to previous or next state", + "interface": "fixed_step" + }, { + "description": "set position", + "interface": "set_state", + "max_value": 1 + }, { + "argument": "TOGGLE", + "description": "Toggle switch state", + "interface": "action" + } ], + "outputs": [ { + "address": 10768, + "address_mask_identifier": "F_4E_PLT_FUEL_FEED_TANK_CHECK_AM", + "address_mask_shift_identifier": "F_4E_PLT_FUEL_FEED_TANK_CHECK", + "description": "selector position", + "mask": 8, + "max_value": 1, + "shift_by": 3, + "suffix": "", + "type": "integer" + } ] + }, + "PLT_FUEL_REFUEL_SELECTOR": { + "category": "PLT Fuel Panel", + "control_type": "selector", + "description": "Select Tank to Refuel", + "identifier": "PLT_FUEL_REFUEL_SELECTOR", + "inputs": [ { + "description": "switch to previous or next state", + "interface": "fixed_step" + }, { + "description": "set position", + "interface": "set_state", + "max_value": 1 + }, { + "argument": "TOGGLE", + "description": "Toggle switch state", + "interface": "action" + } ], + "outputs": [ { + "address": 10760, + "address_mask_identifier": "F_4E_PLT_FUEL_REFUEL_SELECTOR_AM", + "address_mask_shift_identifier": "F_4E_PLT_FUEL_REFUEL_SELECTOR", + "description": "selector position", + "mask": 4096, + "max_value": 1, + "shift_by": 12, + "suffix": "", + "type": "integer" + } ] + }, + "PLT_FUEL_REFUEL_SELECTOR_COVER": { + "category": "PLT Fuel Panel", + "control_type": "selector", + "description": "Refuel Tank Selector Cover", + "identifier": "PLT_FUEL_REFUEL_SELECTOR_COVER", + "inputs": [ { + "description": "switch to previous or next state", + "interface": "fixed_step" + }, { + "description": "set position", + "interface": "set_state", + "max_value": 1 + }, { + "argument": "TOGGLE", + "description": "Toggle switch state", + "interface": "action" + } ], + "outputs": [ { + "address": 10760, + "address_mask_identifier": "F_4E_PLT_FUEL_REFUEL_SELECTOR_COVER_AM", + "address_mask_shift_identifier": "F_4E_PLT_FUEL_REFUEL_SELECTOR_COVER", + "description": "selector position", + "mask": 2048, + "max_value": 1, + "shift_by": 11, + "suffix": "", + "type": "integer" + } ] + }, + "PLT_FUEL_WING_FUEL_DUMP": { + "category": "PLT Fuel Panel", + "control_type": "selector", + "description": "Wing Fuel Dump Selector", + "identifier": "PLT_FUEL_WING_FUEL_DUMP", + "inputs": [ { + "description": "switch to previous or next state", + "interface": "fixed_step" + }, { + "description": "set position", + "interface": "set_state", + "max_value": 1 + }, { + "argument": "TOGGLE", + "description": "Toggle switch state", + "interface": "action" + } ], + "outputs": [ { + "address": 10760, + "address_mask_identifier": "F_4E_PLT_FUEL_WING_FUEL_DUMP_AM", + "address_mask_shift_identifier": "F_4E_PLT_FUEL_WING_FUEL_DUMP", + "description": "selector position", + "mask": 16384, + "max_value": 1, + "shift_by": 14, + "suffix": "", + "type": "integer" + } ] + }, + "PLT_FUEL_WING_INTERNAL_FEED": { + "category": "PLT Fuel Panel", + "control_type": "selector", + "description": "Internal Wing Tanks Feed", + "identifier": "PLT_FUEL_WING_INTERNAL_FEED", + "inputs": [ { + "description": "switch to previous or next state", + "interface": "fixed_step" + }, { + "description": "set position", + "interface": "set_state", + "max_value": 1 + }, { + "argument": "TOGGLE", + "description": "Toggle switch state", + "interface": "action" + } ], + "outputs": [ { + "address": 10760, + "address_mask_identifier": "F_4E_PLT_FUEL_WING_INTERNAL_FEED_AM", + "address_mask_shift_identifier": "F_4E_PLT_FUEL_WING_INTERNAL_FEED", + "description": "selector position", + "mask": 1024, + "max_value": 1, + "shift_by": 10, + "suffix": "", + "type": "integer" + } ] + } + }, "PLT IFF Panel": { "PLT_IFF_AUDIO_LIGHT_SW": { "category": "PLT IFF Panel", @@ -619,7 +880,7 @@ docdata["F-4E"] = "suggested_step": 3200 } ], "outputs": [ { - "address": 10778, + "address": 10780, "address_identifier": "F_4E_WSO_IFF_CHALLENGE_DIM_A", "address_mask_shift_identifier": "F_4E_WSO_IFF_CHALLENGE_DIM", "description": "position of the potentiometer", @@ -637,13 +898,13 @@ docdata["F-4E"] = "identifier": "WSO_IFF_CHALLENGE_LIGHT", "inputs": [ ], "outputs": [ { - "address": 10776, + "address": 10770, "address_mask_identifier": "F_4E_WSO_IFF_CHALLENGE_LIGHT_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_CHALLENGE_LIGHT", "description": "0 if light is off, 1 if light is on", - "mask": 8192, + "mask": 32768, "max_value": 1, - "shift_by": 13, + "shift_by": 15, "suffix": "", "type": "integer" } ] @@ -667,13 +928,13 @@ docdata["F-4E"] = "interface": "action" } ], "outputs": [ { - "address": 10776, + "address": 10770, "address_mask_identifier": "F_4E_WSO_IFF_CHALLENGE_TEST_BUTTON_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_CHALLENGE_TEST_BUTTON", "description": "selector position", - "mask": 4096, + "mask": 16384, "max_value": 1, - "shift_by": 12, + "shift_by": 14, "suffix": "", "type": "integer" } ] @@ -685,7 +946,7 @@ docdata["F-4E"] = "identifier": "WSO_IFF_CODE", "inputs": [ ], "outputs": [ { - "address": 10770, + "address": 10772, "address_identifier": "F_4E_WSO_IFF_CODE_A", "description": "IFF Code", "max_length": 4, @@ -703,9 +964,9 @@ docdata["F-4E"] = "address": 10768, "address_mask_shift_identifier": "F_4E_WSO_IFF_CODE_HUNDREDS", "description": "IFF Code (hundreds)", - "mask": 240, + "mask": 61440, "max_value": 8, - "shift_by": 4, + "shift_by": 12, "suffix": "", "type": "integer" } ] @@ -729,13 +990,13 @@ docdata["F-4E"] = "interface": "action" } ], "outputs": [ { - "address": 10768, + "address": 10770, "address_mask_identifier": "F_4E_WSO_IFF_CODE_INC_HUNDREDS_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_CODE_INC_HUNDREDS", "description": "selector position", - "mask": 4096, + "mask": 64, "max_value": 1, - "shift_by": 12, + "shift_by": 6, "suffix": "", "type": "integer" } ] @@ -759,13 +1020,13 @@ docdata["F-4E"] = "interface": "action" } ], "outputs": [ { - "address": 10768, + "address": 10770, "address_mask_identifier": "F_4E_WSO_IFF_CODE_INC_ONES_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_CODE_INC_ONES", "description": "selector position", - "mask": 16384, + "mask": 256, "max_value": 1, - "shift_by": 14, + "shift_by": 8, "suffix": "", "type": "integer" } ] @@ -789,13 +1050,13 @@ docdata["F-4E"] = "interface": "action" } ], "outputs": [ { - "address": 10768, + "address": 10770, "address_mask_identifier": "F_4E_WSO_IFF_CODE_INC_TENS_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_CODE_INC_TENS", "description": "selector position", - "mask": 8192, + "mask": 128, "max_value": 1, - "shift_by": 13, + "shift_by": 7, "suffix": "", "type": "integer" } ] @@ -819,13 +1080,13 @@ docdata["F-4E"] = "interface": "action" } ], "outputs": [ { - "address": 10760, + "address": 10770, "address_mask_identifier": "F_4E_WSO_IFF_CODE_INC_THOUSANDS_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_CODE_INC_THOUSANDS", "description": "selector position", - "mask": 32768, + "mask": 32, "max_value": 1, - "shift_by": 15, + "shift_by": 5, "suffix": "", "type": "integer" } ] @@ -837,12 +1098,12 @@ docdata["F-4E"] = "identifier": "WSO_IFF_CODE_ONES", "inputs": [ ], "outputs": [ { - "address": 10760, + "address": 10768, "address_mask_shift_identifier": "F_4E_WSO_IFF_CODE_ONES", "description": "IFF Code (ones)", - "mask": 15360, + "mask": 240, "max_value": 8, - "shift_by": 10, + "shift_by": 4, "suffix": "", "type": "integer" } ] @@ -857,9 +1118,9 @@ docdata["F-4E"] = "address": 10768, "address_mask_shift_identifier": "F_4E_WSO_IFF_CODE_TENS", "description": "IFF Code (tens)", - "mask": 15, + "mask": 3840, "max_value": 8, - "shift_by": 0, + "shift_by": 8, "suffix": "", "type": "integer" } ] @@ -871,12 +1132,12 @@ docdata["F-4E"] = "identifier": "WSO_IFF_CODE_THOUSANDS", "inputs": [ ], "outputs": [ { - "address": 10768, + "address": 10770, "address_mask_shift_identifier": "F_4E_WSO_IFF_CODE_THOUSANDS", "description": "IFF Code (thousands)", - "mask": 3840, + "mask": 15, "max_value": 8, - "shift_by": 8, + "shift_by": 0, "suffix": "", "type": "integer" } ] @@ -927,13 +1188,13 @@ docdata["F-4E"] = "interface": "action" } ], "outputs": [ { - "address": 10780, + "address": 10778, "address_mask_identifier": "F_4E_WSO_IFF_COMBAT_TREE_CHALLENGE_TEST_BUTTON_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_COMBAT_TREE_CHALLENGE_TEST_BUTTON", "description": "selector position", - "mask": 2, + "mask": 2048, "max_value": 1, - "shift_by": 1, + "shift_by": 11, "suffix": "", "type": "integer" } ] @@ -945,13 +1206,13 @@ docdata["F-4E"] = "identifier": "WSO_IFF_COMBAT_TREE_CHALLENGE_TEST_LIGHT", "inputs": [ ], "outputs": [ { - "address": 10780, + "address": 10778, "address_mask_identifier": "F_4E_WSO_IFF_COMBAT_TREE_CHALLENGE_TEST_LIGHT_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_COMBAT_TREE_CHALLENGE_TEST_LIGHT", "description": "0 if light is off, 1 if light is on", - "mask": 4, + "mask": 4096, "max_value": 1, - "shift_by": 2, + "shift_by": 12, "suffix": "", "type": "integer" } ] @@ -970,12 +1231,12 @@ docdata["F-4E"] = "max_value": 2 } ], "outputs": [ { - "address": 10780, + "address": 10778, "address_mask_shift_identifier": "F_4E_WSO_IFF_COMBAT_TREE_MODE_2", "description": "selector position", - "mask": 48, + "mask": 49152, "max_value": 2, - "shift_by": 4, + "shift_by": 14, "suffix": "", "type": "integer" } ] @@ -994,12 +1255,12 @@ docdata["F-4E"] = "max_value": 2 } ], "outputs": [ { - "address": 10780, + "address": 10784, "address_mask_shift_identifier": "F_4E_WSO_IFF_COMBAT_TREE_MODE_3", "description": "selector position", - "mask": 192, + "mask": 3, "max_value": 2, - "shift_by": 6, + "shift_by": 0, "suffix": "", "type": "integer" } ] @@ -1023,13 +1284,13 @@ docdata["F-4E"] = "interface": "action" } ], "outputs": [ { - "address": 10780, + "address": 10778, "address_mask_identifier": "F_4E_WSO_IFF_COMBAT_TREE_TEST_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_COMBAT_TREE_TEST", "description": "selector position", - "mask": 8, + "mask": 8192, "max_value": 1, - "shift_by": 3, + "shift_by": 13, "suffix": "", "type": "integer" } ] @@ -1041,7 +1302,7 @@ docdata["F-4E"] = "identifier": "WSO_IFF_MODE", "inputs": [ ], "outputs": [ { - "address": 10774, + "address": 10776, "address_identifier": "F_4E_WSO_IFF_MODE_A", "description": "IFF Mode", "max_length": 3, @@ -1068,13 +1329,13 @@ docdata["F-4E"] = "interface": "action" } ], "outputs": [ { - "address": 10768, + "address": 10770, "address_mask_identifier": "F_4E_WSO_IFF_MODE_DEC_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_MODE_DEC", "description": "selector position", - "mask": 32768, + "mask": 512, "max_value": 1, - "shift_by": 15, + "shift_by": 9, "suffix": "", "type": "integer" } ] @@ -1098,13 +1359,13 @@ docdata["F-4E"] = "interface": "action" } ], "outputs": [ { - "address": 10776, + "address": 10770, "address_mask_identifier": "F_4E_WSO_IFF_MODE_DEC_HUNDREDS_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_MODE_DEC_HUNDREDS", "description": "selector position", - "mask": 512, + "mask": 2048, "max_value": 1, - "shift_by": 9, + "shift_by": 11, "suffix": "", "type": "integer" } ] @@ -1128,13 +1389,13 @@ docdata["F-4E"] = "interface": "action" } ], "outputs": [ { - "address": 10776, + "address": 10770, "address_mask_identifier": "F_4E_WSO_IFF_MODE_DEC_ONES_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_MODE_DEC_ONES", "description": "selector position", - "mask": 2048, + "mask": 8192, "max_value": 1, - "shift_by": 11, + "shift_by": 13, "suffix": "", "type": "integer" } ] @@ -1158,13 +1419,13 @@ docdata["F-4E"] = "interface": "action" } ], "outputs": [ { - "address": 10776, + "address": 10770, "address_mask_identifier": "F_4E_WSO_IFF_MODE_DEC_TENS_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_MODE_DEC_TENS", "description": "selector position", - "mask": 1024, + "mask": 4096, "max_value": 1, - "shift_by": 10, + "shift_by": 12, "suffix": "", "type": "integer" } ] @@ -1188,13 +1449,13 @@ docdata["F-4E"] = "interface": "action" } ], "outputs": [ { - "address": 10776, + "address": 10770, "address_mask_identifier": "F_4E_WSO_IFF_MODE_DEC_THOUSANDS_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_MODE_DEC_THOUSANDS", "description": "selector position", - "mask": 256, + "mask": 1024, "max_value": 1, - "shift_by": 8, + "shift_by": 10, "suffix": "", "type": "integer" } ] @@ -1218,13 +1479,13 @@ docdata["F-4E"] = "interface": "action" } ], "outputs": [ { - "address": 10760, + "address": 10770, "address_mask_identifier": "F_4E_WSO_IFF_MODE_INC_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_MODE_INC", "description": "selector position", - "mask": 16384, + "mask": 16, "max_value": 1, - "shift_by": 14, + "shift_by": 4, "suffix": "", "type": "integer" } ] @@ -1240,12 +1501,12 @@ docdata["F-4E"] = "max_value": 2 } ], "outputs": [ { - "address": 10776, + "address": 10778, "address_mask_shift_identifier": "F_4E_WSO_IFF_TEST_CHALLENGE", "description": "switch position -- 0 = Down, 1 = Mid, 2 = Up", - "mask": 49152, + "mask": 768, "max_value": 2, - "shift_by": 14, + "shift_by": 8, "suffix": "", "type": "integer" } ] diff --git a/Scripts/DCS-BIOS/doc/json/F-4E.json b/Scripts/DCS-BIOS/doc/json/F-4E.json index b9eb0ccab..a06b19c74 100644 --- a/Scripts/DCS-BIOS/doc/json/F-4E.json +++ b/Scripts/DCS-BIOS/doc/json/F-4E.json @@ -1,4 +1,265 @@ { + "PLT Fuel Panel": { + "PLT_FUEL_AIR_REFUEL": { + "category": "PLT Fuel Panel", + "control_type": "selector", + "description": "Air Refuel Switch", + "identifier": "PLT_FUEL_AIR_REFUEL", + "inputs": [ { + "description": "switch to previous or next state", + "interface": "fixed_step" + }, { + "description": "set position", + "interface": "set_state", + "max_value": 1 + }, { + "argument": "TOGGLE", + "description": "Toggle switch state", + "interface": "action" + } ], + "outputs": [ { + "address": 10760, + "address_mask_identifier": "F_4E_PLT_FUEL_AIR_REFUEL_AM", + "address_mask_shift_identifier": "F_4E_PLT_FUEL_AIR_REFUEL", + "description": "selector position", + "mask": 8192, + "max_value": 1, + "shift_by": 13, + "suffix": "", + "type": "integer" + } ] + }, + "PLT_FUEL_BOOST_PUMP_L_CHECK": { + "api_variant": "momentary_last_position", + "category": "PLT Fuel Panel", + "control_type": "selector", + "description": "Check Left Boost Pump", + "identifier": "PLT_FUEL_BOOST_PUMP_L_CHECK", + "inputs": [ { + "description": "switch to previous or next state", + "interface": "fixed_step" + }, { + "description": "set position", + "interface": "set_state", + "max_value": 1 + }, { + "argument": "TOGGLE", + "description": "Toggle switch state", + "interface": "action" + } ], + "outputs": [ { + "address": 10760, + "address_mask_identifier": "F_4E_PLT_FUEL_BOOST_PUMP_L_CHECK_AM", + "address_mask_shift_identifier": "F_4E_PLT_FUEL_BOOST_PUMP_L_CHECK", + "description": "selector position", + "mask": 32768, + "max_value": 1, + "shift_by": 15, + "suffix": "", + "type": "integer" + } ] + }, + "PLT_FUEL_BOOST_PUMP_R_CHECK": { + "api_variant": "momentary_last_position", + "category": "PLT Fuel Panel", + "control_type": "selector", + "description": "Check Right Boost Pump", + "identifier": "PLT_FUEL_BOOST_PUMP_R_CHECK", + "inputs": [ { + "description": "switch to previous or next state", + "interface": "fixed_step" + }, { + "description": "set position", + "interface": "set_state", + "max_value": 1 + }, { + "argument": "TOGGLE", + "description": "Toggle switch state", + "interface": "action" + } ], + "outputs": [ { + "address": 10768, + "address_mask_identifier": "F_4E_PLT_FUEL_BOOST_PUMP_R_CHECK_AM", + "address_mask_shift_identifier": "F_4E_PLT_FUEL_BOOST_PUMP_R_CHECK", + "description": "selector position", + "mask": 4, + "max_value": 1, + "shift_by": 2, + "suffix": "", + "type": "integer" + } ] + }, + "PLT_FUEL_EXTERNAL_TANKS_FEED": { + "category": "PLT Fuel Panel", + "control_type": "selector", + "description": "External Tanks Feed", + "identifier": "PLT_FUEL_EXTERNAL_TANKS_FEED", + "inputs": [ { + "description": "switch to previous or next state", + "interface": "fixed_step" + }, { + "description": "set position", + "interface": "set_state", + "max_value": 2 + } ], + "outputs": [ { + "address": 10768, + "address_mask_shift_identifier": "F_4E_PLT_FUEL_EXTERNAL_TANKS_FEED", + "description": "selector position", + "mask": 3, + "max_value": 2, + "shift_by": 0, + "suffix": "", + "type": "integer" + } ] + }, + "PLT_FUEL_FEED_TANK_CHECK": { + "api_variant": "momentary_last_position", + "category": "PLT Fuel Panel", + "control_type": "selector", + "description": "Check Engine-Feed Tank", + "identifier": "PLT_FUEL_FEED_TANK_CHECK", + "inputs": [ { + "description": "switch to previous or next state", + "interface": "fixed_step" + }, { + "description": "set position", + "interface": "set_state", + "max_value": 1 + }, { + "argument": "TOGGLE", + "description": "Toggle switch state", + "interface": "action" + } ], + "outputs": [ { + "address": 10768, + "address_mask_identifier": "F_4E_PLT_FUEL_FEED_TANK_CHECK_AM", + "address_mask_shift_identifier": "F_4E_PLT_FUEL_FEED_TANK_CHECK", + "description": "selector position", + "mask": 8, + "max_value": 1, + "shift_by": 3, + "suffix": "", + "type": "integer" + } ] + }, + "PLT_FUEL_REFUEL_SELECTOR": { + "category": "PLT Fuel Panel", + "control_type": "selector", + "description": "Select Tank to Refuel", + "identifier": "PLT_FUEL_REFUEL_SELECTOR", + "inputs": [ { + "description": "switch to previous or next state", + "interface": "fixed_step" + }, { + "description": "set position", + "interface": "set_state", + "max_value": 1 + }, { + "argument": "TOGGLE", + "description": "Toggle switch state", + "interface": "action" + } ], + "outputs": [ { + "address": 10760, + "address_mask_identifier": "F_4E_PLT_FUEL_REFUEL_SELECTOR_AM", + "address_mask_shift_identifier": "F_4E_PLT_FUEL_REFUEL_SELECTOR", + "description": "selector position", + "mask": 4096, + "max_value": 1, + "shift_by": 12, + "suffix": "", + "type": "integer" + } ] + }, + "PLT_FUEL_REFUEL_SELECTOR_COVER": { + "category": "PLT Fuel Panel", + "control_type": "selector", + "description": "Refuel Tank Selector Cover", + "identifier": "PLT_FUEL_REFUEL_SELECTOR_COVER", + "inputs": [ { + "description": "switch to previous or next state", + "interface": "fixed_step" + }, { + "description": "set position", + "interface": "set_state", + "max_value": 1 + }, { + "argument": "TOGGLE", + "description": "Toggle switch state", + "interface": "action" + } ], + "outputs": [ { + "address": 10760, + "address_mask_identifier": "F_4E_PLT_FUEL_REFUEL_SELECTOR_COVER_AM", + "address_mask_shift_identifier": "F_4E_PLT_FUEL_REFUEL_SELECTOR_COVER", + "description": "selector position", + "mask": 2048, + "max_value": 1, + "shift_by": 11, + "suffix": "", + "type": "integer" + } ] + }, + "PLT_FUEL_WING_FUEL_DUMP": { + "category": "PLT Fuel Panel", + "control_type": "selector", + "description": "Wing Fuel Dump Selector", + "identifier": "PLT_FUEL_WING_FUEL_DUMP", + "inputs": [ { + "description": "switch to previous or next state", + "interface": "fixed_step" + }, { + "description": "set position", + "interface": "set_state", + "max_value": 1 + }, { + "argument": "TOGGLE", + "description": "Toggle switch state", + "interface": "action" + } ], + "outputs": [ { + "address": 10760, + "address_mask_identifier": "F_4E_PLT_FUEL_WING_FUEL_DUMP_AM", + "address_mask_shift_identifier": "F_4E_PLT_FUEL_WING_FUEL_DUMP", + "description": "selector position", + "mask": 16384, + "max_value": 1, + "shift_by": 14, + "suffix": "", + "type": "integer" + } ] + }, + "PLT_FUEL_WING_INTERNAL_FEED": { + "category": "PLT Fuel Panel", + "control_type": "selector", + "description": "Internal Wing Tanks Feed", + "identifier": "PLT_FUEL_WING_INTERNAL_FEED", + "inputs": [ { + "description": "switch to previous or next state", + "interface": "fixed_step" + }, { + "description": "set position", + "interface": "set_state", + "max_value": 1 + }, { + "argument": "TOGGLE", + "description": "Toggle switch state", + "interface": "action" + } ], + "outputs": [ { + "address": 10760, + "address_mask_identifier": "F_4E_PLT_FUEL_WING_INTERNAL_FEED_AM", + "address_mask_shift_identifier": "F_4E_PLT_FUEL_WING_INTERNAL_FEED", + "description": "selector position", + "mask": 1024, + "max_value": 1, + "shift_by": 10, + "suffix": "", + "type": "integer" + } ] + } + }, "PLT IFF Panel": { "PLT_IFF_AUDIO_LIGHT_SW": { "category": "PLT IFF Panel", @@ -618,7 +879,7 @@ "suggested_step": 3200 } ], "outputs": [ { - "address": 10778, + "address": 10780, "address_identifier": "F_4E_WSO_IFF_CHALLENGE_DIM_A", "address_mask_shift_identifier": "F_4E_WSO_IFF_CHALLENGE_DIM", "description": "position of the potentiometer", @@ -636,13 +897,13 @@ "identifier": "WSO_IFF_CHALLENGE_LIGHT", "inputs": [ ], "outputs": [ { - "address": 10776, + "address": 10770, "address_mask_identifier": "F_4E_WSO_IFF_CHALLENGE_LIGHT_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_CHALLENGE_LIGHT", "description": "0 if light is off, 1 if light is on", - "mask": 8192, + "mask": 32768, "max_value": 1, - "shift_by": 13, + "shift_by": 15, "suffix": "", "type": "integer" } ] @@ -666,13 +927,13 @@ "interface": "action" } ], "outputs": [ { - "address": 10776, + "address": 10770, "address_mask_identifier": "F_4E_WSO_IFF_CHALLENGE_TEST_BUTTON_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_CHALLENGE_TEST_BUTTON", "description": "selector position", - "mask": 4096, + "mask": 16384, "max_value": 1, - "shift_by": 12, + "shift_by": 14, "suffix": "", "type": "integer" } ] @@ -684,7 +945,7 @@ "identifier": "WSO_IFF_CODE", "inputs": [ ], "outputs": [ { - "address": 10770, + "address": 10772, "address_identifier": "F_4E_WSO_IFF_CODE_A", "description": "IFF Code", "max_length": 4, @@ -702,9 +963,9 @@ "address": 10768, "address_mask_shift_identifier": "F_4E_WSO_IFF_CODE_HUNDREDS", "description": "IFF Code (hundreds)", - "mask": 240, + "mask": 61440, "max_value": 8, - "shift_by": 4, + "shift_by": 12, "suffix": "", "type": "integer" } ] @@ -728,13 +989,13 @@ "interface": "action" } ], "outputs": [ { - "address": 10768, + "address": 10770, "address_mask_identifier": "F_4E_WSO_IFF_CODE_INC_HUNDREDS_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_CODE_INC_HUNDREDS", "description": "selector position", - "mask": 4096, + "mask": 64, "max_value": 1, - "shift_by": 12, + "shift_by": 6, "suffix": "", "type": "integer" } ] @@ -758,13 +1019,13 @@ "interface": "action" } ], "outputs": [ { - "address": 10768, + "address": 10770, "address_mask_identifier": "F_4E_WSO_IFF_CODE_INC_ONES_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_CODE_INC_ONES", "description": "selector position", - "mask": 16384, + "mask": 256, "max_value": 1, - "shift_by": 14, + "shift_by": 8, "suffix": "", "type": "integer" } ] @@ -788,13 +1049,13 @@ "interface": "action" } ], "outputs": [ { - "address": 10768, + "address": 10770, "address_mask_identifier": "F_4E_WSO_IFF_CODE_INC_TENS_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_CODE_INC_TENS", "description": "selector position", - "mask": 8192, + "mask": 128, "max_value": 1, - "shift_by": 13, + "shift_by": 7, "suffix": "", "type": "integer" } ] @@ -818,13 +1079,13 @@ "interface": "action" } ], "outputs": [ { - "address": 10760, + "address": 10770, "address_mask_identifier": "F_4E_WSO_IFF_CODE_INC_THOUSANDS_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_CODE_INC_THOUSANDS", "description": "selector position", - "mask": 32768, + "mask": 32, "max_value": 1, - "shift_by": 15, + "shift_by": 5, "suffix": "", "type": "integer" } ] @@ -836,12 +1097,12 @@ "identifier": "WSO_IFF_CODE_ONES", "inputs": [ ], "outputs": [ { - "address": 10760, + "address": 10768, "address_mask_shift_identifier": "F_4E_WSO_IFF_CODE_ONES", "description": "IFF Code (ones)", - "mask": 15360, + "mask": 240, "max_value": 8, - "shift_by": 10, + "shift_by": 4, "suffix": "", "type": "integer" } ] @@ -856,9 +1117,9 @@ "address": 10768, "address_mask_shift_identifier": "F_4E_WSO_IFF_CODE_TENS", "description": "IFF Code (tens)", - "mask": 15, + "mask": 3840, "max_value": 8, - "shift_by": 0, + "shift_by": 8, "suffix": "", "type": "integer" } ] @@ -870,12 +1131,12 @@ "identifier": "WSO_IFF_CODE_THOUSANDS", "inputs": [ ], "outputs": [ { - "address": 10768, + "address": 10770, "address_mask_shift_identifier": "F_4E_WSO_IFF_CODE_THOUSANDS", "description": "IFF Code (thousands)", - "mask": 3840, + "mask": 15, "max_value": 8, - "shift_by": 8, + "shift_by": 0, "suffix": "", "type": "integer" } ] @@ -926,13 +1187,13 @@ "interface": "action" } ], "outputs": [ { - "address": 10780, + "address": 10778, "address_mask_identifier": "F_4E_WSO_IFF_COMBAT_TREE_CHALLENGE_TEST_BUTTON_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_COMBAT_TREE_CHALLENGE_TEST_BUTTON", "description": "selector position", - "mask": 2, + "mask": 2048, "max_value": 1, - "shift_by": 1, + "shift_by": 11, "suffix": "", "type": "integer" } ] @@ -944,13 +1205,13 @@ "identifier": "WSO_IFF_COMBAT_TREE_CHALLENGE_TEST_LIGHT", "inputs": [ ], "outputs": [ { - "address": 10780, + "address": 10778, "address_mask_identifier": "F_4E_WSO_IFF_COMBAT_TREE_CHALLENGE_TEST_LIGHT_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_COMBAT_TREE_CHALLENGE_TEST_LIGHT", "description": "0 if light is off, 1 if light is on", - "mask": 4, + "mask": 4096, "max_value": 1, - "shift_by": 2, + "shift_by": 12, "suffix": "", "type": "integer" } ] @@ -969,12 +1230,12 @@ "max_value": 2 } ], "outputs": [ { - "address": 10780, + "address": 10778, "address_mask_shift_identifier": "F_4E_WSO_IFF_COMBAT_TREE_MODE_2", "description": "selector position", - "mask": 48, + "mask": 49152, "max_value": 2, - "shift_by": 4, + "shift_by": 14, "suffix": "", "type": "integer" } ] @@ -993,12 +1254,12 @@ "max_value": 2 } ], "outputs": [ { - "address": 10780, + "address": 10784, "address_mask_shift_identifier": "F_4E_WSO_IFF_COMBAT_TREE_MODE_3", "description": "selector position", - "mask": 192, + "mask": 3, "max_value": 2, - "shift_by": 6, + "shift_by": 0, "suffix": "", "type": "integer" } ] @@ -1022,13 +1283,13 @@ "interface": "action" } ], "outputs": [ { - "address": 10780, + "address": 10778, "address_mask_identifier": "F_4E_WSO_IFF_COMBAT_TREE_TEST_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_COMBAT_TREE_TEST", "description": "selector position", - "mask": 8, + "mask": 8192, "max_value": 1, - "shift_by": 3, + "shift_by": 13, "suffix": "", "type": "integer" } ] @@ -1040,7 +1301,7 @@ "identifier": "WSO_IFF_MODE", "inputs": [ ], "outputs": [ { - "address": 10774, + "address": 10776, "address_identifier": "F_4E_WSO_IFF_MODE_A", "description": "IFF Mode", "max_length": 3, @@ -1067,13 +1328,13 @@ "interface": "action" } ], "outputs": [ { - "address": 10768, + "address": 10770, "address_mask_identifier": "F_4E_WSO_IFF_MODE_DEC_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_MODE_DEC", "description": "selector position", - "mask": 32768, + "mask": 512, "max_value": 1, - "shift_by": 15, + "shift_by": 9, "suffix": "", "type": "integer" } ] @@ -1097,13 +1358,13 @@ "interface": "action" } ], "outputs": [ { - "address": 10776, + "address": 10770, "address_mask_identifier": "F_4E_WSO_IFF_MODE_DEC_HUNDREDS_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_MODE_DEC_HUNDREDS", "description": "selector position", - "mask": 512, + "mask": 2048, "max_value": 1, - "shift_by": 9, + "shift_by": 11, "suffix": "", "type": "integer" } ] @@ -1127,13 +1388,13 @@ "interface": "action" } ], "outputs": [ { - "address": 10776, + "address": 10770, "address_mask_identifier": "F_4E_WSO_IFF_MODE_DEC_ONES_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_MODE_DEC_ONES", "description": "selector position", - "mask": 2048, + "mask": 8192, "max_value": 1, - "shift_by": 11, + "shift_by": 13, "suffix": "", "type": "integer" } ] @@ -1157,13 +1418,13 @@ "interface": "action" } ], "outputs": [ { - "address": 10776, + "address": 10770, "address_mask_identifier": "F_4E_WSO_IFF_MODE_DEC_TENS_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_MODE_DEC_TENS", "description": "selector position", - "mask": 1024, + "mask": 4096, "max_value": 1, - "shift_by": 10, + "shift_by": 12, "suffix": "", "type": "integer" } ] @@ -1187,13 +1448,13 @@ "interface": "action" } ], "outputs": [ { - "address": 10776, + "address": 10770, "address_mask_identifier": "F_4E_WSO_IFF_MODE_DEC_THOUSANDS_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_MODE_DEC_THOUSANDS", "description": "selector position", - "mask": 256, + "mask": 1024, "max_value": 1, - "shift_by": 8, + "shift_by": 10, "suffix": "", "type": "integer" } ] @@ -1217,13 +1478,13 @@ "interface": "action" } ], "outputs": [ { - "address": 10760, + "address": 10770, "address_mask_identifier": "F_4E_WSO_IFF_MODE_INC_AM", "address_mask_shift_identifier": "F_4E_WSO_IFF_MODE_INC", "description": "selector position", - "mask": 16384, + "mask": 16, "max_value": 1, - "shift_by": 14, + "shift_by": 4, "suffix": "", "type": "integer" } ] @@ -1239,12 +1500,12 @@ "max_value": 2 } ], "outputs": [ { - "address": 10776, + "address": 10778, "address_mask_shift_identifier": "F_4E_WSO_IFF_TEST_CHALLENGE", "description": "switch position -- 0 = Down, 1 = Mid, 2 = Up", - "mask": 49152, + "mask": 768, "max_value": 2, - "shift_by": 14, + "shift_by": 8, "suffix": "", "type": "integer" } ] diff --git a/Scripts/DCS-BIOS/lib/modules/aircraft_modules/F-4E.lua b/Scripts/DCS-BIOS/lib/modules/aircraft_modules/F-4E.lua index 1661d7a4b..1e549dca2 100644 --- a/Scripts/DCS-BIOS/lib/modules/aircraft_modules/F-4E.lua +++ b/Scripts/DCS-BIOS/lib/modules/aircraft_modules/F-4E.lua @@ -192,6 +192,19 @@ local ATTITUDE_INDICATOR_DEVICE_ID = 56 -- Fuel local FUEL_DEVICE_ID = 60 +-- pilot fuel panel +local PILOT_FUEL_PANEL = "PLT Fuel Panel" + +F_4E:defineToggleSwitch("PLT_FUEL_WING_INTERNAL_FEED", FUEL_DEVICE_ID, 3004, 710, PILOT_FUEL_PANEL, "Internal Wing Tanks Feed") +F_4E:defineToggleSwitch("PLT_FUEL_REFUEL_SELECTOR_COVER", FUEL_DEVICE_ID, 3001, 705, PILOT_FUEL_PANEL, "Refuel Tank Selector Cover") +F_4E:defineToggleSwitch("PLT_FUEL_REFUEL_SELECTOR", FUEL_DEVICE_ID, 3002, 706, PILOT_FUEL_PANEL, "Select Tank to Refuel") +F_4E:defineToggleSwitch("PLT_FUEL_AIR_REFUEL", FUEL_DEVICE_ID, 3006, 712, PILOT_FUEL_PANEL, "Air Refuel Switch") +F_4E:defineToggleSwitch("PLT_FUEL_WING_FUEL_DUMP", FUEL_DEVICE_ID, 3003, 709, PILOT_FUEL_PANEL, "Wing Fuel Dump Selector") +F_4E:define3PosTumb("PLT_FUEL_EXTERNAL_TANKS_FEED", FUEL_DEVICE_ID, 3005, 711, PILOT_FUEL_PANEL, "External Tanks Feed") +F_4E:definePushButton("PLT_FUEL_BOOST_PUMP_L_CHECK", FUEL_DEVICE_ID, 3021, 725, PILOT_FUEL_PANEL, "Check Left Boost Pump") +F_4E:definePushButton("PLT_FUEL_BOOST_PUMP_R_CHECK", FUEL_DEVICE_ID, 3022, 726, PILOT_FUEL_PANEL, "Check Right Boost Pump") +F_4E:definePushButton("PLT_FUEL_FEED_TANK_CHECK", FUEL_DEVICE_ID, 3013, 2789, PILOT_FUEL_PANEL, "Check Engine-Feed Tank") + -- Attitude Reference local ATTITUDE_REFERENCE_DEVICE_ID = 62