-
Posts
90 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Exo7
-
Gun Arm Switch Because for simpiters with a real M2000 stick, there is no possibilty to monitor the position of the trigger security... So Master arm only is better for me... So if its not possible to disable it, i will find an another way by programning this new button with the master arm switch..
-
Thanks for the update Zeus. Can we "disable" this function and stay with the master arm switch ? Exo7
-
Correct, it's the "buster" mark. you're 100% MIL power or "full dry" (no PC), after this line you're in PC.
-
you have to assign a key to "AUX RADIO SELECT" and select aux radio BEFORE to open the radio menu. you will see "UHF" on top of the radio menu. This is quite normal that you can join the tanker on the main radio with 251.00 selected. the main radio is not just a VHF radio, it's a UHF and VHF radio (U/VHF), depending of the selected frequency..
-
thanks Ian, i will try on another card that MEGA (UNO or NANO) and with / without IRQ_SERIAL
-
Correct, i approuve. I don't know why "REAL" come here, maybe my mind think about anything else while typing... ;)
-
Don't forget that me module is in Beta branch, and still WIP. Maybe at the end you'll get the args in the mainpanel_init.lua ;)
-
you can't find the indicator light args in a file, you have to use the lua console to find them.
-
hi Jojo, at this time, there is nothing exciting to show... there is only the frame and not finished... so you can see some pics here : http://www.hostingpics.net/album/loulou945-269426.html
-
Sorry, The L GEAR is #417 The AUX GEAR (nose) is #418 The R GEAR is #419 Exo7
-
Landing lights switch is device #16 arg #450 command : 3450 arg limit : -1, 1 arg step : 1. You can find it in clickabledata.lua file. Exo7
-
I have build my own M-2000C DCS-BIOS Library with this file and with the lua console (and with the help of Ian ;) )... so i have all indicator lights, switches, pots, and displays working... Exo7
-
in the REAL MIRAGE 2000C, there is 2 types of red throttle handle, depending of the version and the radio system, there is a Rocker switch on the throttle to choose the radio you want to talk, and a PTT switch (don't know if it's in the rocker switch).
-
Andre, you have this kind of information in the clickabledata.lua file, located in "Cockpit" folder....
-
take a look here : http://forums.eagle.ru/showpost.php?p=2626815&postcount=181
-
Non mais allo quoi !
-
MAX7219 Display Problem Hi Ian, I have a litlle problem with display on max7219 using LedControl library. i'm using the latest DCS-BIOS Arduino Library (v0.2.1) 1- what i try to do : displaying M2000C UVHF Report Frequency + Selected Preset. 2 - What is the problem : Selected preset is displayed, frequency report is blank (only the DP) this is my function to keep the frequency report string, in my M2000C library: local function getUHFFrequency() local ret = {} local li = list_indication(9) if li == "" then return nil end local m = li:gmatch("-----------------------------------------\n([^\n]+)\n([^\n]*)\n") while true do local name, value = m() if not name then break end ret[name] = value end local freqStatus = ret["text_COM_UHF2"] return freqStatus:sub(0,3) .. freqStatus:sub(5,6) end local function getVHFFrequency() local ret = {} local li = list_indication(9) if li == "" then return nil end local m = li:gmatch("-----------------------------------------\n([^\n]+)\n([^\n]*)\n") while true do local name, value = m() if not name then break end ret[name] = value end local freqStatus = ret["text_COM_UHF1"] return freqStatus:sub(0,3) .. freqStatus:sub(5,6) end this is my calls to function, in M2000C library to : defineString("UHF_FREQUENCY", getUHFFrequency, 5, "UHF Radio", "UHF Frequency Report Display") defineString("VHF_FREQUENCY", getVHFFrequency, 5, "U/VHF Radio", "U/VHF Frequency Report Display") this is my use of defineFloat function to get the Selected preset value : defineFloat("UVHF_PRESET", 445, {0,1}, "U/VHF Radio", "U/VHF PRESET Display") defineFloat("UHF_PRESET", 435, {0,1}, "UHF Radio", "UHF PRESET Display") and this is my sketch : #define DCSBIOS_DEFAULT_SERIAL #include "DcsBios.h" #include <LedControl.h> //on inclus la librairie pour commander le MAX7219 LedControl lc=LedControl(10,11,12,1); void onVhfFrequencyChange(char* newValue) { char hundredths = newValue[0]; char tenths = newValue[1]; char ones = newValue[2]; char tens = newValue[3]; char hundreds = newValue[4]; lc.setChar(0,0,hundredths,false); lc.setChar(0,1,tenths,false); lc.setChar(0,2,ones,true); lc.setChar(0,3,tens,false); lc.setChar(0,4,hundreds,false); } DcsBios::StringBuffer<6> vhfFrequencyBuffer(0x30a0, onVhfFrequencyChange); void onUvhfPresetChange(unsigned int uvhfPresetValue) { unsigned int firstDigit; unsigned int secondDigit; if (uvhfPresetValue>2000 && uvhfPresetValue<5000){firstDigit=0;secondDigit=1;} else if (uvhfPresetValue>5000 && uvhfPresetValue<7000){firstDigit=0;secondDigit=2;} else if (uvhfPresetValue>7000 && uvhfPresetValue<11000){firstDigit=0;secondDigit=3;} else if (uvhfPresetValue>11000 && uvhfPresetValue<14500){firstDigit=0;secondDigit=4;} else if (uvhfPresetValue>14500 && uvhfPresetValue<17500){firstDigit=0;secondDigit=5;} else if (uvhfPresetValue>17500 && uvhfPresetValue<21500){firstDigit=0;secondDigit=6;} else if (uvhfPresetValue>21500 && uvhfPresetValue<24000){firstDigit=0;secondDigit=7;} else if (uvhfPresetValue>24000 && uvhfPresetValue<27500){firstDigit=0;secondDigit=8;} else if (uvhfPresetValue>27500 && uvhfPresetValue<30500){firstDigit=0;secondDigit=9;} else if (uvhfPresetValue>30500 && uvhfPresetValue<34000){firstDigit=1;secondDigit=0;} else if (uvhfPresetValue>34000 && uvhfPresetValue<37500){firstDigit=1;secondDigit=1;} else if (uvhfPresetValue>37500 && uvhfPresetValue<41000){firstDigit=1;secondDigit=2;} else if (uvhfPresetValue>41000 && uvhfPresetValue<44000){firstDigit=1;secondDigit=3;} else if (uvhfPresetValue>44000 && uvhfPresetValue<47000){firstDigit=1;secondDigit=4;} else if (uvhfPresetValue>47000 && uvhfPresetValue<51000){firstDigit=1;secondDigit=5;} else if (uvhfPresetValue>51000 && uvhfPresetValue<54000){firstDigit=1;secondDigit=6;} else if (uvhfPresetValue>54000 && uvhfPresetValue<56500){firstDigit=1;secondDigit=7;} else if (uvhfPresetValue>56500 && uvhfPresetValue<60000){firstDigit=1;secondDigit=8;} else if (uvhfPresetValue>60000 && uvhfPresetValue<63000){firstDigit=1;secondDigit=9;} else if (uvhfPresetValue>63000 && uvhfPresetValue<=65535){firstDigit=2;secondDigit=0;} lc.setDigit(0,5,firstDigit,false); lc.setDigit(0,6,secondDigit,false); } DcsBios::IntegerBuffer uvhfPresetBuffer(0x30a6, 0xffff, 0, onUvhfPresetChange); DcsBios::RotaryEncoder uvhfPresetRot("UVHF_PRESET_ROT", "DEC", "INC", 6, 7); void setup() { DcsBios::setup(); lc.shutdown(0, false); lc.setIntensity(0,9); } void loop() { DcsBios::loop(); } if i look in the liveData ControlReference, the values are good. Separatly, the functions are working well, but when them are both in my sketch only the Selected Preset works. The same functions works well with UHF Radio.. i don't understand where is the problem... i'm working on it since many days... Thanks for your help and for my burning head..:thumbup:
-
Thank you Ian, this is quite normal , priority is your studies. @++ Exo7
-
MEGA RS485 Slave Hi Ian, is it possible to use Mega 2560 at RS485 Slave ? i have try to upload the exemple RS485 Slave sketch from the Arduino librarie 0.1.4 or 0.2 in a MEGA 2560 and i have many compilation errors.. In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:30:0, from sketch\RS485Slave.ino.cpp:1: C:\Users\M2000C\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.0/DcsBiosNgRS485Slave.cpp.inc: In function 'void DcsBios::USART_RX_vect()': C:\Users\M2000C\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.0/DcsBiosNgRS485Slave.cpp.inc:187:6: warning: 'USART_RX_vect' appears to be a misspelled signal handler [enabled by default] ISR(USART_RX_vect) { rs485slave.rxISR(); } ^ C:\Users\M2000C\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.0/DcsBiosNgRS485Slave.cpp.inc: In function 'void DcsBios::USART_TX_vect()': C:\Users\M2000C\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.0/DcsBiosNgRS485Slave.cpp.inc:188:6: warning: 'USART_TX_vect' appears to be a misspelled signal handler [enabled by default] ISR(USART_TX_vect) { rs485slave.txcISR(); } ^ C:\Users\M2000C\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.0/DcsBiosNgRS485Slave.cpp.inc: In function 'void DcsBios::USART_UDRE_vect()': C:\Users\M2000C\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.0/DcsBiosNgRS485Slave.cpp.inc:189:6: warning: 'USART_UDRE_vect' appears to be a misspelled signal handler [enabled by default] ISR(USART_UDRE_vect) { rs485slave.udreISR(); } ^ In file included from C:\Users\M2000C\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.0/DcsBios.h:28:0, from C:\Users\M2000C\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.0\examples\RS485Slave\RS485Slave.ino:14: C:\Users\M2000C\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.0/DcsBiosNgRS485Slave.cpp.inc: In function 'void DcsBios::setup()': C:\Users\M2000C\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.0/DcsBiosNgRS485Slave.cpp.inc:195:3: error: 'PRR' was not declared in this scope PRR &= ~(1<<PRUSART0); ^ exit status 1 Erreur lors de la compilation. no problem with Nano or Uno... Thanks for your help Exo7
-
the cockpit data are local, not on the server. the server is just managing the flight data (position of the aircraft, IA,...). the local export.lua is used for simpit.
-
Hi all, I can see that the main mode knob from the UHF Radio is cycling from Ma (ON) to F1 in place of AR to H. Thanks