//==================================================================== // This module defines settings for the second expansion module.This // module has no analog channels. It is used mainly for the overhead // panel controls and lights. //==================================================================== //===================================================================== // Connectors //===================================================================== //-------------------------------------------------------------------------- // Second expansion module -> Buttons 0 - 355 // buttons-> button(,,); // buttons 0 to 47 are the same as defined in the connector(xxxx) definitions // and can be referenced via both connectors. //-------------------------------------------------------------------------- connector(ModuleThree) { modrow(0,0); // A db15 connector, rel. modrow 0, buttons 0 - 7 modrow(0,1); // B db15 connector, rel. modrow 1, buttons 8 - 15 modrow(0,2); // RUDDER db15 connector, rel. modrow 2, buttons 16 - 23 modrow(0,3); // modrow 3 does not exist, but is defined here anyway to keep from getting confused with relative row numbers modrow(0,4); // FLCS, rel. modrow 4, buttons 24 - 31 modrow(0,5); // FLCS, rel. modrow 5, buttons 32 - 39 modrow(0,6); // FLCS, rel. modrow 6, buttons 40 - 47 }; connector(ModuleFour) { modrow(1,0); // rel. ModRow 0 modrow(1,1); // rel. ModRow 1 modrow(1,2); // rel. ModRow 2 modrow(1,3); // rel. ModRow 3 modrow(1,4); // rel. ModRow 4 modrow(1,5); // rel. ModRow 5 modrow(1,6); // rel. ModRow 6 modrow(1,7); // rel. ModRow 7 modrow(1,8); // rel. ModRow 8 modrow(1,9); // rel. ModRow 9 modrow(1,10); // rel. ModRow 10 modrow(1,11); // rel. ModRow 11 modrow(1,12); // rel. ModRow 12 modrow(1,13); // rel. ModRow 13 modrow(1,14); // rel. ModRow 14 modrow(1,15); // rel. ModRow 15 }; connector(ModuleFive) { modrow(2,0); // rel. ModRow 0 modrow(2,1); // rel. ModRow 1 modrow(2,2); // rel. ModRow 2 modrow(2,3); // rel. ModRow 3 modrow(2,4); // rel. ModRow 4 modrow(2,5); // rel. ModRow 5 modrow(2,6); // rel. ModRow 6 modrow(2,7); // rel. ModRow 7 modrow(2,8); // rel. ModRow 8 modrow(2,9); // rel. ModRow 9 modrow(2,10); // rel. ModRow 10 modrow(2,11); // rel. ModRow 11 modrow(2,12); // rel. ModRow 12 modrow(2,13); // rel. ModRow 13 modrow(2,14); // rel. ModRow 14 modrow(2,15); // rel. ModRow 15 }; //--------------------------------------------------------------------- // Connector: Rotary (module 7) // module & analog references are relative to selected connector //--------------------------------------------------------------------- connector(Rotary_ExpMod_2) { modrow(7,0); // rel. modrow 0 modrow(7,1); // rel. modrow 1 modrow(7,2); // rel. modrow 2 modrow(7,3); // rel. modrow 3 modrow(7,4); // rel. modrow 4 }; //-------------------------------------------------------------------------- // button (modrow, bit, name) // Joystick_00 in FS2000.CFG //-------------------------------------------------------------------------- device(Joystick_00_ExpMod_2) { connector(ModuleThree); // Module 0, Scanrow 0 button(0, 0, b_0); // button(0, 1, b_1); // button(0, 2, b_2); // button(0, 3, b_3); // button(0, 4, b_4); button(0, 5, b_5); button(0, 6, b_6); button(0, 7, b_7); // Module 0, Scan row 1 button(1, 0, b_8); // button(1, 1, b_9); // button(1, 2, b_10); // button(1, 3, b_11); // button(1, 4, b_12); // button(1, 5, b_13); // button(1, 6, b_14); // button(1, 7, b_15); // // Module 0, Scan row 2 button(2, 0, b_16); // button(2, 1, b_17); // button(2, 2, b_18); // button(2, 3, b_19); // button(2, 4, b_20); // button(2, 5, b_21); // button(2, 6, b_22); // button(2, 7, b_23); // // Module 0, Scan row 4 (FLCS Scan row 1) button(4, 0, b_24); button(4, 1, b_25); button(4, 2, b_26); button(4, 3, b_27); button(4, 4, b_28); button(4, 5, b_29); button(4, 6, b_30); button(4, 7, b_31); // Module 0, Scan row 5 (FLCS Scan row 2) button(5, 0, b_32); button(5, 1, b_33); button(5, 2, b_34); button(5, 3, b_35); button(5, 4, b_36); button(5, 5, b_37); button(5, 6, b_38); button(5, 7, b_39); // Module 0, Scan row 6 (FLCS Scan row 2) button(6, 0, b_40); button(6, 1, b_41); button(6, 2, b_42); button(6, 3, b_43); button(6, 4, b_44); button(6, 5, b_45); button(6, 6, b_46); button(6, 7, b_47); }; //========================================================================== // Devices // This will show up in gaming option as devices if there are analogs, // POV's or buttons. The first one described here will be the first // in the gaming options list for the EPIC USBs // module & analog references are relative to selected connector //========================================================================== //-------------------------------------------------------------------------- // Joystick_01 in FS2000.CFG //-------------------------------------------------------------------------- device(X_Panel) { connector(ModuleFour); // Module 4, Scan row 0 button(0, 0, b_48); button(0, 1, b_49); button(0, 2, b_50); button(0, 3, b_51); button(0, 4, b_52); button(0, 5, b_53); button(0, 6, b_54); button(0, 7, b_55); // Module 4, Scan row 1 button(1, 0, b_56); button(1, 1, b_57); button(1, 2, b_58); button(1, 3, b_59); button(1, 4, b_60); button(1, 5, b_61); button(1, 6, b_62); button(1, 7, b_63); // Module 4, Scan row 2 button(2, 0, b_64); button(2, 1, b_65); button(2, 2, b_66); button(2, 3, b_67); button(2, 4, b_68); button(2, 5, b_69); button(2, 6, b_APU_Bleed); button(2, 7, b_71); }; //-------------------------------------------------------------------------- // Module 5, device AIR_Panel //-------------------------------------------------------------------------- device(AIR_Panel) { connector(ModuleFive); // Module 5, Scan row 0 button(0, 0, b_5_0); button(0, 1, b_5_1); button(0, 2, b_5_2); button(0, 3, b_5_3); button(0, 4, b_5_4); button(0, 5, b_5_5); button(0, 6, b_5_6); button(0, 7, b_5_7); // Module 5, Scan row 1 button(1, 0, b_5_8); button(1, 1, b_5_9); button(1, 2, b_5_10); button(1, 3, b_5_11); button(1, 4, b_5_12); button(1, 5, b_5_13); button(1, 6, b_5_14); button(1, 7, b_5_15); // Module 5, Scan row 2 button(2, 0, b_5_16); button(2, 1, b_5_17); button(2, 2, b_5_18); button(2, 3, b_5_19); button(2, 4, b_5_20); button(2, 5, b_5_21); button(2, 6, b_APU_Bleed); button(2, 7, b_5_23); }; //========================================================================== // Display Devices // Display in FS2000.CFG //========================================================================== //-------------------------------------------------------------------------- // 7-segment displays Module 1 // display(name, module, start_digit, format) // display(two, 2, 4, "0000", true) zeroes shown // display(two, 2, 4, "99.99", true) zeroes supressed, decimal point enabled //-------------------------------------------------------------------------- device(Display_ExpMod_2) { //display(disp_ALT, BITOUTPUT, 0, "00000", true); // 5 digits, decimal point disabled //-------------------------------------------------------------------- // 7-segment display Module 2 //-------------------------------------------------------------------- //display(disp_VHF1stby_d, BITOUTPUT, 32, "00", true); // 2 digits, decimal part //------------------------------------------------------------------------------------------ // Redefinition of all displays for "bulb test". When the "Test" button is pressed, all // lights should light up, including the 7-segment displays with all decimal points and // segments lit up. Groups of 4 digits are defined, because this way it's easy to send // a word variable with the figure '8888' to light up all segments of the digit. //------------------------------------------------------------------------------------------ //display(disp_SegTest0, BITOUTPUT, 0, "0000", true); // all decimal points enabled //display(disp_SegTest1, BITOUTPUT, 4, "0000", true); // all decimal points enabled }; //========================================================================== // Define Output module lights and LED's, output module 0, rows 0 to 3 // The output statement has the following parameter: // output(name, module number, row number) //========================================================================== device(LEDs_ExpMod_2) { // Module 0, row 0 output(LEDs_0, 0, 0) { led_LOC = 0b00000001; led_AP1 = 0b00000010; led_AP2 = 0b00000100; led_AT = 0b00001000; led_ALT = 0b00010000; led_APP = 0b00100000; led_mngd_SPD = 0b01000000; led_mngd_HDG = 0b10000000; }; // Module 0, row 1 output(LEDs_1, 0, 1) { led_mngd_ALT = 0b00000001; led_StickPrio_RedArrow_P = 0b00000010; led_MastWarn_P = 0b00000100; led_MastCaut_P = 0b00001000; led_AutoLand_P = 0b00010000; led_StickPrio_RedArrow_CP = 0b00100000; led_MastWarn_CP = 0b01000000; led_MastCaut_CP = 0b10000000; }; // Module 0, row 2 output(LEDs_2, 0, 2) { led_AutoLand_CP = 0b00000001; led_BrakeFan = 0b00000010; led_AutoBrakeMax = 0b00000100; led_AutoBrakeMed = 0b00001000; led_AutoBrakeLow = 0b00010000; led_AutoBrakeFan = 0b00100000; led_free_01 = 0b01000000; led_free_02 = 0b10000000; }; // Module 0, row 3 output(LEDs_3, 0, 3) { led_LdgGearNoseUnlck = 0b00000001; led_LdgGearNoseLock = 0b00000010; led_LdgGearLeftUnlck = 0b00000100; led_LdgGearLeftLock = 0b00001000; led_LdgGearCenterUnlck = 0b00010000; led_LdgGearCenterLock = 0b00100000; led_LdgGearRightUnlck = 0b01000000; led_LdgGearRightLock = 0b10000000; }; //========================================================================== // Define Output module lights and LED's, output module 0, rows 4 to 7 // The output statement has the following parameter: // output(name, module number, row number) //========================================================================== // Module 0, row 4 // output(LEDs_4, 0, 4) // { // led_00 = 0b00000001; // led_01 = 0b00000010; // led_02 = 0b00000100; // led_03 = 0b00001000; // led_04 = 0b00010000; // led_05 = 0b00100000; // led_06 = 0b01000000; // led_07 = 0b10000000; // }; }; //========================================================================== // Rotary Encoders (module 7) // Joystick_11 in FS2000_CFG //========================================================================== device(Rotaries_ExpMod_2) { connector(Rotary_ExpMod_2); // Module 7, Scan Row 0 //button(0, 0, r_cnt_SPD); // Speed setting count -> Button 700 //button(0, 1, r_dir_SPD); // Speed setting direction -> Button 701 //button(0, 2, r_cnt_HDG); // Heading setting count -> Button 702 //button(0, 3, r_dir_HDG); // Deading setting direction -> Button 703 //button(0, 4, r_cnt_ALT); // Altitude setting count -> Button 704 //button(0, 5, r_dir_ALT); // Altitude setting direction -> Button 705 //button(0, 6, r_cnt_VS); // Vertical Speed count -> Button 706 //button(0, 7, r_dir_VS); // Veritcal Speed direction -> Button 707 // Module 7, Scan Row 1 //button(1, 0, r_cnt_Baro_P); // Baro pilot count -> Button 708 //button(1, 1, r_dir_Baro_P); // Baro pilot turn direction -> Button 709 //button(1, 2, r_cnt_Baro_CP); // Baro copilot count -> Button 710 //button(1, 3, r_dir_Baro_CP); // Baro copilot turn direction -> Button 711 //button(1, 4, r_cnt_VHF1_h); // COM pilot hundreds count -> Button 712 //button(1, 5, r_dir_VHF1_h); // COM pilot hundreds direction -> Button 713 //button(1, 6, r_cnt_VHF1_d); // COM pilot decimals count -> Button 714 //button(1, 7, r_dir_VHF1_d); // COM pilot decimals direction -> Button 715 // Module 7, Scan Row 2 //button(2, 0, r_cnt_VHF2_h); // COM copilot hundreds count -> Button 716 //button(2, 1, r_dir_VHF2_h); // COM copilot hundreds direction -> Button 717 //button(2, 2, r_cnt_VHF2_d); // COM copilot decimals count -> Button 718 //button(2, 3, r_dir_VHF2_d); // COM copilot decimals direction -> Button 719 //button(2, 4, r_cnt_XPDR_high); // Transponder upper two digits count -> Button 720 //button(2, 5, r_dir_XPDR_high); // Transponder upper two digits turn direction -> Buton 721 //button(2, 6, r_cnt_XPDR_low); // Transponder lower two digits count -> Buton 722 //button(2, 7, r_dir_XPDR_low); // Transponder lower two digits turn direction -> Buton 723 };