Jump to content

Stefan1208

Members
  • Posts

    14
  • Joined

  • Last visited

Everything posted by Stefan1208

  1. Hallo Zusammen Ich brauche eine kleine Hilfestellung bei meinen Problem. Ich baue grad mein Huey Cockpit um und hatte die Idee die Instrumente der Huey mittels Servo anzuzeigen. Bevor ich diesen Schritt überhaupt wage wollte ich einmal ein beliebiges Instrument mit ein Servo Ansteuern um zu gucken ob es Überhaaupt Funktioniert. Vorab: Ich habe vor Monaten alle Radio Panels mit 7 Segment Anzeigen Angesteuert. Funktioniert alles. Selbst die ADF Signalanzeige mit ein Servo Funktioniert. Nun zu meinen Problem. Ich bekomme kein Servo Angesteuert um die Instrumente im Instrumentenbrett zu Simulieren. Vielleicht hat ja jemand eine Idee oder Tipp wie ich das ganze lösen kann. Ich verwende ein Adurino Mega. Folgenen Code habe ich ausprobiert für den RMI Course Pointer 1. #include <Servo.h> #define DCSBIOS_IRQ_SERIAL #include "DcsBios.h" // DcsBios::ServoOutput rmiCrs1(0x1436, 9, 544, 2400, [](unsigned int newValue) -> unsigned int { return map(newValue, 0, 65535, 544, 2400); }); void setup() { DcsBios::setup(); } void loop() { DcsBios::loop(); } Mache ich vielleicht einen Denkfehler? Vorher hatte ich einen anderen Code ausprobiert, wo der Servo Reagiert hat, aber endlos lief. MfG
  2. @crash test pilot You are really great..... I don't even know how to thank you for the help. I think without your tips I would not be so far today and I think I would sit on it for days and weeks. Thank you very much .... I had my run and by now I have finished all of my 4 displays. Tomorrow I can relax and do the wiring again and then install the displays in my center console. Thank you again null
  3. but now I have another question ... I got the first 7 segment display working. now I'm standing on the hose and want to connect a 2 and 3 display to other pins so the next code should then LedControl lc = LedControl (9,7,8,1); move on. how do I continue the code for a function UH-1H VHF Comm ??? this is the code for Huey VHF Nav Freq #define DCSBIOS_IRQ_SERIAL #include <LedControl.h> #include <DcsBios.h> LedControl lc = LedControl (12,11,10,1); // Huey VHF Nav Freq function void onVhfnavFreqChange (char * newValue) { lc.setChar (0,7, '-', false); lc.setChar (0.6, newValue [0], false); lc.setChar (0.5, newValue [1], false); lc.setChar (0,4, newValue [2], false); lc.setChar (0,3, newValue [3], false); lc.setChar (0,2, newValue [4], false); lc.setChar (0,1, newValue [5], false); lc.setChar (0,0, '-', false); } DcsBios :: StringBuffer <6> vhfnavFreqBuffer (0x14f0, onVhfnavFreqChange); void setup () { DcsBios :: setup (); // INITIALIZATION lc.shutdown (0, false); // turn on the display lc.shutdown (0, false); lc.setIntensity (0.8); // set the brightness lc.clearDisplay (0); // delete ad // User-defined boot code before connection lc.setChar (0,7, '-', false); lc.setChar (0,6, '-', false); lc.setChar (0.5, 'E', false); lc.setChar (0,4, '5', false); lc.setChar (0,3, 'A', false); lc.setChar (0,2, '-', false); lc.setChar (0,1, '-', false); } void loop () { DcsBios :: loop (); }
  4. @all I just got it right by a really stupid accident In another forum she mentioned that these displays are very vulnerable if you put them in the wrong way. since my display didn't show anything but was dark, I added an example code to test whether the display works. it ran flawlessly and I noticed something in the code that was missing and out of sheer desperation I simply copied it in and lo and behold it works ... lc.shutdown (0, false); This code was missing. void setup () { DcsBios :: setup (); // put your setup code here, to run once: // MAX7219 INITIALIZATION lc.shutdown (0, false); // turn on the display lc.setIntensity (0.8); // set the brightness lc.clearDisplay (0); // clear the display // custom boot code before connection lc.setChar (0,7, '-', false); lc.setChar (0,6, '-', false); lc.setChar (0.5, 'E', false); lc.setChar (0.4, '5', false); lc.setChar (0,3, 'A', false); lc.setChar (0,2, '-', false); lc.setChar (0,1, '-', false); } void loop () { // put your main code here, to run repeatedly: DcsBios :: loop (); } thank you anyway for your help null
  5. @crash test pilot sry i tried all possibilities ... I am now a step further I've just programmed a button to test whether I really have a connection to DCS World. With "connect-serial-port.cmd" and Dcs Bios Hub the button works in the game. But it still doesn't work with the 7 segment display where my Latain is slowly coming to an end. the display works wonderfully when I put a test code on the board. Either it is really as tricky as you said or something is wrong with the code. I've tried it for the umpteenth time with other plugs, other digital plug connections, but it doesn't work. But I thank you in any case for the help I have received from you so far. .... achso and sry for my english
  6. I was now able to narrow down the troubleshooting. When I start DCS Bios Hub and DCS World and sit in the Huey, I open the connect-serial-port.cmd With the port specification in my case 6 this error message comes ..... Anyone an idea? DCS Bios Hub and Arduino as well as Device Manager show the Comm Port 6 null
  7. Hello Thanks for your answer In the export. Lua I inserted the code dofile (lfs.writedir () .. [[Scripts \ DCS-BIOS \ BIOS.lua]]) and saved it using an editor. In the dcs bios hub I clicked on virtual cockpit but it still shows me that there is no connection to dcs. Would you maybe have some screenshots of yourself like you did that? I would be very grateful null null
  8. Hallo zusammen, Ich hoffe Ihr könnt mir helfen. Da das Arduino Board ziemlich Neuland für mich ist hoffe ich auf eure Hilfe. Ich besitze seit kurzem das Arduino Board Mega. Da ich momentan in mein Keller ein Huey Homecockpit baue und nach einer Lösung suche wie ich z. B das Nav comm Feq. Auf ein 7 Segment display wiedergebe, habe ich mich für das Board entschieden. Nun also folgende Schritte habe ich gemacht. - Arduino software Installiert - Gidhut die zip Datei download DCS-bios-arduino library-0.2.11 DCS-Bios 0.10.0 - Arduino Bibliothek eingebunden -DCS bios Hub installiert - in Gespeicherte Spiele Export. Lua den Code eingefügt und abgespeichert -Das 7 segment display max 7219 an das Arduino mega angeschlossen -Code in der Arduino software eingefügt überprüft und hochgeladen aufs Board. -vorher natürlich usb Comm zugewiesen und das Board ausgewählt - dcs bios gestartet und im Browser geöffnet, usb angewählt -DCS World gestartet trainings Mission .... Das Display ist aber dunkel und zeigt mir nichts an bei der freq. Änderung. Was mache ich falsch oder habe ich etwas vergessen? Ich habe mal eine Beispieldatei im Arduino ausprobiert was ohne Probleme funktioniert. Ich habe mich zum größten Teil an diese Beschreibung gehalten. https://www.cruzdesanandres.com/foro/viewtopic.php?f=10&t=3453 Vielleicht mache ich auch einfach einen Denkfehler ich weiß es nicht und hoffe auf eure Hilfe oder einen Tipp wie ich es zum laufen bringe. Vielen Dank schon einmal Code Arduino: #define DCSBIOS_IRQ_SERIAL #include <LedControl.h> #include <DcsBios.h> LedControl lc = LedControl (22,26,24,1); // Huey VHF Nav Freq Funktion void onVhfnavFreqChange (char * newValue) { lc.setChar (0,7, '-', false); lc.setChar (0,6, newValue [0], false); lc.setChar (0,5, newValue [1], false); lc.setChar (0,4, newValue [2], false); lc.setChar (0,3, newValue [3], false); lc.setChar (0,2, newValue [4], false); lc.setChar (0,1, newValue [5], false); lc.setChar (0,0, '-', false); } DcsBios :: StringBuffer <6> vhfnavFreqBuffer (0x14f0, onVhfnavFreqChange); void setup () { DcsBios :: setup (); //INITIALIZATION lc.shutdown (0, false); // schalte die Anzeige ein lc.setIntensity (0,8); // setze die Helligkeit lc.clearDisplay (0); // Anzeige löschen // Benutzerdefinierter Bootcode vor Verbindung lc.setChar (0,7, '-', false); lc.setChar (0,6, '-', false); lc.setChar (0,5, 'E', false); lc.setChar (0,4, '5', false); lc.setChar (0,3, 'A', false); lc.setChar (0,2, '-', false); lc.setChar (0,1, '-', false); } void loop () { DcsBios :: loop (); } Update: Ich glaube ich kann den Fehler etwas eingrenzen. Ich bekomme keine Verbindung zwischen DCS und DCS Bios hub.... Habe mal Fotos hochgeladen. Anhand einer Beschreibung soll sich ein Skript Ordner in DCS Bios sein.... Ich habe da aber leider keinen Ordner oder habe ich das wohlmöglich falsch verstanden? http://www.vielfrass-engineering.de/index.php?option=com_content&view=article&id=192:installation-dcs-bios&Itemid=248
  9. Hello everybody I've just tried this option several times, but unfortunately it didn't work and just can't get any further .... Maybe I should mention that I want the Huey dashboard to run on a second monitor. I don't know if the whole thing is relevant for it to work. Greetings Stefan
  10. @ YSIAD_RIP I made a few screenshots. maybe you notice something
  11. Hi Guys Sry first of all for my bad English I'm in the process of building a Huey cockpit and I'm currently using the Ikarus software in conjunction with DCS. I unpacked the script file as described in the forum. Unfortunately, no dial moves during testing. I have now tried several suggestions in different forums but nothing worked and I am a bit desperate. I would be happy if someone would help me and possibly draw my attention to a mistake that I think is a mistake in me that I forgot something or did something wrong. Thank you very much and hope for your support. To proceed: -Ikarus u. Dcs export script download, unpacked on the desktop. -Folder script copied into dcs folder, backup copy beforehand - Icarus started, instrument panel loaded -DCS started training mission cold start Greetings Stefan
  12. Hello YSIAD_RIP Many thanks for your response. Unfortunately I am not at home to check it again. I'm not sure if I have already changed the IP address in the ExportScript or in the Config.luna file, but unfortunately that has not been successful. Somehow I've been there for weeks and have searched all the forum but unfortunately never found anything that does solve my problem. So I'm really grateful for every tip and suggestion. I'll just try it again tomorrow evening and give you more information whether it worked. I will also take screenshots regarding this. Maybe that solves the whole thing and it's just a stupid mistake on my part. I thank you in any case Greetings Stefan
  13. Hi Guys Sry first of all for my bad English I'm in the process of building a Huey cockpit and I'm currently using the Ikarus software in conjunction with DCS. I unpacked the script file as described in the forum. Unfortunately, no dial moves during testing. I have now tried several suggestions in different forums but nothing worked and I am a bit desperate. I would be happy if someone would help me and possibly draw my attention to a mistake that I think is a mistake in me that I forgot something or did something wrong. Thank you very much and hope for your support. To proceed: -Ikarus u. Dcs export script download, unpacked on the desktop. -Folder script copied into dcs folder, backup copy beforehand - Icarus started, instrument panel loaded -DCS started training mission cold start Greetings Stefan
  14. Hi Guys Sry first of all for my bad English I'm in the process of building a Huey cockpit and I'm currently using the Ikarus software in conjunction with DCS. I unpacked the script file as described in the forum. Unfortunately, no dial moves during testing. I have now tried several suggestions in different forums but nothing worked and I am a bit desperate. I would be happy if someone would help me and possibly draw my attention to a mistake that I think is a mistake in me that I forgot something or did something wrong. Thank you very much and hope for your support. To proceed: -Ikarus u. Dcs export script download, unpacked on the desktop. -Folder script copied into dcs folder, backup copy beforehand - Icarus started, instrument panel loaded -DCS started training mission cold start Greetings Stefan
×
×
  • Create New...