-
Posts
108 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Oldcooltronix
-
Männer noch mal ne kurze Frage zum Servo. Ich muss Bauart bedingt bei einem die Drehrichtung ändern. Habe mal beim Code die "minPulseWidth" und "maxPulseWidth" vertauscht, der Servo hat auch die Drehrichtung geändert, nur fährt dieses jetzt in den unteren Anschlag und wird warm. Gibt es da ggf. eine andere Lösung, oder muss ich am Servo löten bzw. mir so ein elektronisches Servo - Umpolt - Teil in meine Leitung einbauen?! Hier mein Beispiel vom geänderten Code: DcsBios::ServoOutput engLEngPress(0x195a, PIN, 2400, 544); Danke und VG Tronix
-
ähhhh.... :blink: jetzt funktioniert das mit dem Kanal "1" = "1" aber das zweite Digit zeigt immer eine "1" an. Sollte das nicht so funktionieren, dass von Kanal "1-9" nur das erste Digit die Zahl anzeigt und nur bei "10" dann das zweite Digit eine "0" anzeigt?! :cry: bin gerade total verwirrt... :drunk:
-
Hi Ian, super danke für den Hinweis. Habe das mal Probiert, es funktioniert auch sehr gut. Beim R828 habe ich ein kleines Problem... Das R828 steht im DCS auf Kanal "1" aber auf 7 Segment Anzeige wird die Zahl "0" angezeigt... bei Kanal "2" dann die "1" usw. Anbei der Code: /* set R828 Frequenz 2.MAX7219 */ void onR828ChannelChange(unsigned int newValue) { lc.setChar( 1, 0, newValue, true ); } DcsBios::IntegerBuffer r828ChannelBuffer(0x194a, 0x003c, 2, onR828ChannelChange); wie kann ich denn der Anzeige sagen, dass sie bei "1" anfangen soll?! :helpsmilie: Danke und viele Grüße Tronix
-
Addon Tents, Watchtower, UH-1-Cargo
Oldcooltronix replied to upuaut's topic in Static/AI Mods for DCS World
Problems in version 1.5.5 and 2.0.4 1.5.5: - multiple payloads do not work. For example the long and short wood etc. It is not possible to adjust the weights. 2.0.4 - At slingload of payloads from the wooden pile, the cargo is immediately damaged. Then the FPS break in and the wooden pile jumps uncontrollably over the ground. Partially freezes the game and it is impossible to fly further. :cry: -
Hi Ian, so habe das jetzt mit dem Weapon Panel hin bekommen... :thumbup: http://ka50.de/wp-content/uploads/2017/01/Weapon_Panel_NC.jpg http://ka50.de/wp-content/uploads/2017/01/Weapon_Panel_HP.jpg Habe noch eine Frage zum Export DCS-BIOS / Ka50. Ist es wohl möglich in den Control Reference for v0.5.0 noch einen Export der Frequenzen Radio R800 und R828 zu integrieren?! Ich würde mir gerne von den beiden Radios die Frequenzen über die 7 Segment Anzeigen anzeigen lassen... :music_whistling: Habe gesehen das dieses für die A10C möglich ist. Vielen Dank und VG Tronix
-
[UH-1H] Forestry Operations
Oldcooltronix replied to Eight Ball's topic in User Created Missions General
look here: :thumbup: https://onedrive.live.com/?authkey=%21ACxmY_TrpH1zJ5s&id=4995DAB54F442A85%213026&cid=4995DAB54F442A85 -
Ka-50 Cockpit Systems overhaul Mod (WIP)
Oldcooltronix replied to Nero.ger's topic in DCS: Ka-50 Black Shark
Thanks Nero, Have already written back to you... :smilewink: I know with the export synonymous well, just not with the positioning of the HUD and as far as I know I am the only one Ka50 HUD export has done. Have the forums already searched for a solution, unfortunately without success... :cry: I test your solution and hope it works :thumbup: -
Ka-50 Cockpit Systems overhaul Mod (WIP)
Oldcooltronix replied to Nero.ger's topic in DCS: Ka-50 Black Shark
Hello everybody, As I see since her the HUD experts... :thumbup: I have a problem, I have the HUD from the Ka 50 on a second monitor exported and me from it a HUD built. If I export the HUD via the MonitorSetup.lua, then the HUD jumps by about 3cm up, so I can not see the heading anymore. In which file and line can I correct the height of the HUD? Thank you for your help and many greetings Tronix -
so... bin ein Schritt weiter, habe den Code noch mal von vorne neu geschrieben und die Reihenfolge geändert: -UV26 (2. MAX7219) -Store (1. MAX7219) -Remain (1. MAX7219) -RNDS (1. MAX7219) Dabei ist mir aufgefallen, dass die Hieroglyphen nicht mit dem MAX7219 Modulen zu tun haben, sondern an dieser Funktion liegt: oid onWeaponsDisplayStoreTypeChange(char* newValue) { /* set digit 4 to first character (newValue[0]) */ lc.setChar(0, 7, newValue[0], false); /* set digit 3 to second character */ lc.setChar(0, 6, newValue[1], false); } DcsBios::StringBuffer<2> weaponsDisplayStoreTypeBuffer(0x1888, onWeaponsDisplayStoreTypeChange); Irgendwie schein das nicht richtig exportiert zu werden, oder das MAX7219 kann die Buchstaben nicht richtig darstellen... :cry: Da Du ja auch ein MAX7219 hast kann Du das ggf. mal bei dir testen?! :thumbup:
-
Hm... ich teste das heute noch mal... ich nutze ganz normale Kabel zum stecken... und nein einen Kondensator habe ich nicht verbaut... habe die Module einfach hintereinander gesteckt, siehe Foto Ich habe das erste Modul (MAX7219-Chip) am Arduino Mega verbunden und dann das zweite Modul (MAX7219-Chip) am ersten Modul (MAX7219-Chip), wie auf dem Bild zusehen.
-
Ich habe wie du beschrieben hast versucht das zweite MAX7219 anzusprechen: lc.setDigit(0, 7, 9, false); // Ziffer 7 auf dem ersten MAX7219 auf '9' setzen lc.setChar(1, 4, '3', false); // Ziffer 4 auf dem zweiten MAX7219 auf '3' setzen hier der aktuelle Code: #include <Servo.h> #define DCSBIOS_IRQ_SERIAL #include "DcsBios.h" DcsBios::Switch2Pos r800EmerRcvr("R800_EMER_RCVR", 5); DcsBios::Switch2Pos r800Adf("R800_ADF", 4); DcsBios::Switch2Pos abrisPower("ABRIS_POWER", 11); DcsBios::Switch2Pos hsiDhDtaManualAuto("HSI_DH_DTA_MANUAL_AUTO", 9); DcsBios::Switch2Pos laserMode("LASER_MODE", 8); DcsBios::Switch2Pos opPitotPortHeat("OP_PITOT_PORT_HEAT", 7); DcsBios::Switch2Pos opPitotRamHeat("OP_PITOT_RAM_HEAT", 6); DcsBios::Switch2Pos scRotorRpmBtn("SC_ROTOR_RPM_BTN", 3); DcsBios::ServoOutput apuTemp(0x191c, 2, 540, 2550); DcsBios::LED raltSafeAltLamp(0x184c, 0x1000, 12); const byte engSelectorPins[4] = {53, 51, 49, 47}; DcsBios::SwitchMultiPos engSelector("ENG_SELECTOR", engSelectorPins, 4); const byte opNavLightsPins[5] = {45, 43, 41, 39}; DcsBios::SwitchMultiPos opNavLights("OP_NAV_LIGHTS", opNavLightsPins, 4); DcsBios::Switch3Pos engStartupMode("ENG_STARTUP_MODE", 50, 52); DcsBios::Switch2Pos r800AmFm("R800_AM_RM", 4, 8); #include "LedControl.h" //Pins sind beliebig auswählbar //Die erste Zahl (22) gibt den DATA_IN pin an, //die zweite (26) den CLOCK pin //und die dritte (24) ist der LOAD/CS pin. //Die vierte Zahl(1) ist die Anzahl der hintereinandergeschalteten MAX7219-Chips. LedControl lc=LedControl(22,26,24,2); //DIN,CLK,LOAD,# OF IC's //mit MAX7219SegmentId.ino die jeweiligen Digits-Nummern anzeigen lassen //und dann unten in lc.setChar() einsetzen // IDs von MAX7219Segment: //7 6 5 4 3 2 1 0 void onUv26DisplayChange(char* newValue) { /* set digit 4 to first character (newValue[0]) */ lc.setChar(0, 7, newValue[0], false); /* set digit 3 to second character */ lc.setChar(0, 6, newValue[1], false); /* set digit 2 to third character */ lc.setChar(0, 5, newValue[2], false); } DcsBios::StringBuffer<3> uv26DisplayBuffer(0x1812, onUv26DisplayChange); void onWeaponsDisplayCannonRemainChange(char* newValue) { /* set digit 4 to next first character MAX7219 2 (newValue[0]) */ lc.setChar(1, 3, newValue[0], false); /* set digit 3 to second character */ lc.setChar(1, 2, newValue[1], false); } DcsBios::StringBuffer<2> weaponsDisplayCannonRemainBuffer(0x188c, onWeaponsDisplayCannonRemainChange); void onWeaponsDisplayWeaponRemainChange(char* newValue) { /* set digit 2 to third character MAX7219 2 (newValue[0]) */ lc.setChar(1, 7, newValue[0], false); /* set digit 0 to last character */ lc.setChar(1, 6, newValue[1], false); } DcsBios::StringBuffer<2> weaponsDisplayWeaponRemainBuffer(0x188a, onWeaponsDisplayWeaponRemainChange); void onWeaponsDisplayStoreTypeChange(char* newValue) { /* set digit 4 to first character (newValue[0]) */ lc.setChar(0, 3, newValue[0], false); /* set digit 3 to second character */ lc.setChar(0, 2, newValue[1], false); } DcsBios::StringBuffer<2> weaponsDisplayStoreTypeBuffer(0x1888, onWeaponsDisplayStoreTypeChange); void setup() { lc.shutdown(0,false); /* Set the brightness to a medium values */ lc.setIntensity(0,8); /* and clear the display */ lc.clearDisplay(0); /* Set the MAX7219 2 */ lc.shutdown(1,false); /* Set the brightness to a medium values MAX7219 2 */ lc.setIntensity(1,8); /* and clear the display MAX7219 2 */ lc.clearDisplay(1); DcsBios::setup(); } void loop() { DcsBios::loop(); } Beim Test ist mir aufgefallen das die 7 Segmente nichts anzeigen. Deshalb habe ich den Code für shutdown, brightness, clear the display dupliziert und aus der "0" eine "1" gemacht: void setup() { lc.shutdown(0,false); /* Set the brightness to a medium values */ lc.setIntensity(0,8); /* and clear the display */ lc.clearDisplay(0); /* Set the MAX7219 2 */ lc.shutdown(1,false); /* Set the brightness to a medium values MAX7219 2 */ lc.setIntensity(1,8); /* and clear the display MAX7219 2 */ lc.clearDisplay(1); DcsBios::setup(); } void loop() { DcsBios::loop(); Jetzt habe ich folgendes Problem: Am Anfang sehe ich auf dem 7 Segmenten meine Anzeige auf dem auf den 1. MAX7219 und 2. MAX7219 Modul für: -UV26 (1. MAX7219) -Store (1. MAX7219) -Remain (2. MAX7219) -RNDS (2. MAX7219) Sobald ich aber eine Rakete oder die Gun abfeuere und sich die Zahlen auf den 7 Segmenten ändern, dass die Anzeigen auf den 1. MAX7219 und 2. MAX7219 teilweise ausfallen, oder komische Hieroglyphen anzeigen...
-
Danke, dachte schon oh ist das einfach... jetzt habe ich mir einen Bug im Code eingebaut::mad: #include <Servo.h> #define DCSBIOS_IRQ_SERIAL #include "DcsBios.h" DcsBios::Switch2Pos r800EmerRcvr("R800_EMER_RCVR", 5); DcsBios::Switch2Pos r800Adf("R800_ADF", 4); DcsBios::Switch2Pos abrisPower("ABRIS_POWER", 11); DcsBios::Switch2Pos hsiDhDtaManualAuto("HSI_DH_DTA_MANUAL_AUTO", 9); DcsBios::Switch2Pos laserMode("LASER_MODE", 8); DcsBios::Switch2Pos opPitotPortHeat("OP_PITOT_PORT_HEAT", 7); DcsBios::Switch2Pos opPitotRamHeat("OP_PITOT_RAM_HEAT", 6); DcsBios::Switch2Pos scRotorRpmBtn("SC_ROTOR_RPM_BTN", 3); DcsBios::ServoOutput apuTemp(0x191c, 2, 540, 2550); DcsBios::LED raltSafeAltLamp(0x184c, 0x1000, 12); const byte engSelectorPins[4] = {53, 51, 49, 47}; DcsBios::SwitchMultiPos engSelector("ENG_SELECTOR", engSelectorPins, 4); const byte opNavLightsPins[5] = {45, 43, 41, 39}; DcsBios::SwitchMultiPos opNavLights("OP_NAV_LIGHTS", opNavLightsPins, 4); DcsBios::Switch3Pos engStartupMode("ENG_STARTUP_MODE", 50, 52); DcsBios::Switch2Pos r800AmFm("R800_AM_RM", 4, 8); #include "LedControl.h" //Pins sind beliebig auswählbar //Die erste Zahl (22) gibt den DATA_IN pin an, //die zweite (26) den CLOCK pin //und die dritte (24) ist der LOAD/CS pin. //Die vierte Zahl(1) ist die Anzahl der hintereinandergeschalteten MAX7219-Chips. LedControl lc=LedControl(22,26,24,2); //DIN,CLK,LOAD,# OF IC's //mit MAX7219SegmentId.ino die jeweiligen Digits-Nummern anzeigen lassen //und dann unten in lc.setChar() einsetzen // IDs von MAX7219Segment: //7 6 5 4 3 2 1 0 void onUv26DisplayChange(char* newValue) { /* set digit 4 to first character (newValue[0]) */ lc.setChar(0, 7, newValue[0], false); /* set digit 3 to second character */ lc.setChar(0, 6, newValue[1], false); /* set digit 2 to third character */ lc.setChar(0, 5, newValue[2], false); } DcsBios::StringBuffer<3> uv26DisplayBuffer(0x1812, onUv26DisplayChange); void onWeaponsDisplayCannonRemainChange(char* newValue) { /* set digit 4 to next first character MAX7219 2 (newValue[0]) */ lc.setChar(1, 3, newValue[0], false); /* set digit 3 to second character */ lc.setChar(1, 2, newValue[1], false); } DcsBios::StringBuffer<2> weaponsDisplayCannonRemainBuffer(0x188c, onWeaponsDisplayCannonRemainChange); void onWeaponsDisplayWeaponRemainChange(char* newValue) { /* set digit 2 to third character MAX7219 2 (newValue[0]) */ lc.setChar(1, 7, newValue[0], false); /* set digit 0 to last character */ lc.setChar(1, 6, newValue[1], false); } DcsBios::StringBuffer<2> weaponsDisplayWeaponRemainBuffer(0x188a, onWeaponsDisplayWeaponRemainChange); void onWeaponsDisplayStoreTypeChange(char* newValue) { /* set digit 4 to first character (newValue[0]) */ lc.setChar(0, 3, newValue[0], false); /* set digit 3 to second character */ lc.setChar(0, 2, newValue[1], false); } DcsBios::StringBuffer<2> weaponsDisplayStoreTypeBuffer(0x1888, onWeaponsDisplayStoreTypeChange); void setup() { lc.shutdown(0,false); /* Set the brightness to a medium values */ lc.setIntensity(0,8); /* and clear the display */ lc.clearDisplay(0); /* Set the MAX7219 2 */ lc.shutdown(1,false); /* Set the brightness to a medium values MAX7219 2 */ lc.setIntensity(1,8); /* and clear the display MAX7219 2 */ lc.clearDisplay(1); DcsBios::setup(); } void loop() { DcsBios::loop(); } Denke das Problem liegt hier an dem Abschnitt: void setup() { lc.shutdown(0,false); /* Set the brightness to a medium values */ lc.setIntensity(0,8); /* and clear the display */ lc.clearDisplay(0); /* Set the MAX7219 2 */ lc.shutdown(1,false); /* Set the brightness to a medium values MAX7219 2 */ lc.setIntensity(1,8); /* and clear the display MAX7219 2 */ lc.clearDisplay(1); DcsBios::setup(); } void loop() { DcsBios::loop(); Ist echt zum Haare raufen, wenn man noch welche hätte und sich mit der Thematik NULL auskennt.... :(
-
Hi Ian, so ich habe jetzt den Code vom UV26 um das Weapon Panel erweitert. #include <Servo.h> #define DCSBIOS_IRQ_SERIAL #include "DcsBios.h" DcsBios::Switch2Pos r800EmerRcvr("R800_EMER_RCVR", 5); DcsBios::Switch2Pos r800Adf("R800_ADF", 4); DcsBios::Switch2Pos abrisPower("ABRIS_POWER", 11); DcsBios::Switch2Pos hsiDhDtaManualAuto("HSI_DH_DTA_MANUAL_AUTO", 9); DcsBios::Switch2Pos laserMode("LASER_MODE", 8); DcsBios::Switch2Pos opPitotPortHeat("OP_PITOT_PORT_HEAT", 7); DcsBios::Switch2Pos opPitotRamHeat("OP_PITOT_RAM_HEAT", 6); DcsBios::Switch2Pos scRotorRpmBtn("SC_ROTOR_RPM_BTN", 3); DcsBios::ServoOutput apuTemp(0x191c, 2, 540, 2550); DcsBios::LED raltSafeAltLamp(0x184c, 0x1000, 12); const byte engSelectorPins[4] = {53, 51, 49, 47}; DcsBios::SwitchMultiPos engSelector("ENG_SELECTOR", engSelectorPins, 4); const byte opNavLightsPins[5] = {45, 43, 41, 39}; DcsBios::SwitchMultiPos opNavLights("OP_NAV_LIGHTS", opNavLightsPins, 4); DcsBios::Switch3Pos engStartupMode("ENG_STARTUP_MODE", 50, 52); DcsBios::Switch2Pos r800AmFm("R800_AM_RM", 4, 8); #include "LedControl.h" //Pins sind beliebig auswählbar //Die erste Zahl (22) gibt den DATA_IN pin an, //die zweite (26) den CLOCK pin //und die dritte (24) ist der LOAD/CS pin. //Die vierte Zahl(1) ist die Anzahl der hintereinandergeschalteten MAX7219-Chips. LedControl lc=LedControl(22,26,24,1); //DIN,CLK,LOAD,# OF IC's //mit MAX7219SegmentId.ino die jeweiligen Digits-Nummern anzeigen lassen //und dann unten in lc.setChar() einsetzen // IDs von MAX7219Segment: //7 6 5 4 3 2 1 0 void onUv26DisplayChange(char* newValue) { /* set digit 4 to first character (newValue[0]) */ lc.setChar(0, 7, newValue[0], false); /* set digit 3 to second character */ lc.setChar(0, 6, newValue[1], false); /* set digit 2 to third character */ lc.setChar(0, 5, newValue[2], false); } DcsBios::StringBuffer<3> uv26DisplayBuffer(0x1812, onUv26DisplayChange); void onWeaponsDisplayCannonRemainChange(char* newValue) { /* set digit 4 to next first character (newValue[0]) */ lc.setChar(0, 3, newValue[0], false); /* set digit 3 to second character */ lc.setChar(0, 2, newValue[1], false); } DcsBios::StringBuffer<2> weaponsDisplayCannonRemainBuffer(0x188c, onWeaponsDisplayCannonRemainChange); void onWeaponsDisplayWeaponRemainChange(char* newValue) { /* set digit 2 to third character (newValue[0]) */ lc.setChar(0, 1, newValue[0], false); /* set digit 0 to last character */ lc.setChar(0, 0, newValue[1], false); } DcsBios::StringBuffer<2> weaponsDisplayWeaponRemainBuffer(0x188a, onWeaponsDisplayWeaponRemainChange); void setup() { lc.shutdown(0,false); /* Set the brightness to a medium values */ lc.setIntensity(0,8); /* and clear the display */ lc.clearDisplay(0); DcsBios::setup(); } void loop() { DcsBios::loop(); } Das funktioniert auch super... :thumbup: Jetzt will ich das zweite LED Display Modul MAX7219 ansteuern. Ich habe es nach diesem Schaltplan verkabelt: (Quelle:http://forum.hobbycomponents.com/viewtopic.php?f=75&t=1789) dann haben wir ja gelernt, dass man in der "LedControl" die Anzahl hintereinandergeschalteter MAX7219-Chips angibt! In meinem Fall: LedControl lc=LedControl(22,26,24,2); //DIN,CLK,LOAD,# OF IC's Und jetzt kommt das Problem, wie spreche ich denn das zweite Modul an?! Irgendwie hat das glaube ich mit der Funktion zu tun, oder?! int LedControl::getDeviceCount(); Habe das ganze WE im Internet recherchiert, aber keinen "richtigen" Lösungsansatz gefunden... :cry: Kannst Du mir bitte noch mal eine Lösung darstellen?! :helpsmilie: Vielen Dank und viele Grüße Tronix
-
vielen Dank für deine Hilfe und natürlich den Code, Ian... :thumbup: Ja sich in so eine "Sache" einzuarbeiten kostet viel Zeit und Nerven, deshalb sind wir Hobby Bastler auf solche Experten wie DU einer bist angewiesen und es ist total toll das man in der Community sooo viel Hilfe bekommt. Wir Laien würden das ohne Euch echt nicht hin bekommen... :cry: Ich teste das ganze mal und dann versuche ich mich mal noch an dem 7 Segmenten für das Waffenpanel, denn dazu muss ich dann noch ein LED Display Modul MAX7219 ansteuern und den Code dafür raus bekommen... :( Ich denke da bin ich dann noch mal auf deine Hilfe angewiesen... :helpsmilie::beer:
-
Hallo zusammen, ich will mich nach Euren Vorgaben auch mal an die 7 Segment anzeigen wagen... :thumbup: Nun habe ich ein kleines Problem: Ich habe bereits mit DCS -BIOS mehrere Schalter, LED und einen Servo angesteuert. hier der Code im Sketch: und der Code für das UV26 mit dazu: Wie sieht denn der Code zusammengefügt aus, also ist das egal wo ich den zweiten Code in den Sketch kopiere?! :helpsmilie: Danke für Eure Hilfe und viele Grüße Tronix
-
Cool, is this mission also a multiplayer version? If the "embark" script does not work you could not install the CTLD script? :music_whistling: Thanks and Regards Tronix
-
Addon Tents, Watchtower, UH-1-Cargo
Oldcooltronix replied to upuaut's topic in Static/AI Mods for DCS World
In 2.0.4. multiple payloads do not work. For example the long and short wood etc. It is not possible to adjust the weights and DCS also crashes when placing the items in the ME. :cry: -
Addon Tents, Watchtower, UH-1-Cargo
Oldcooltronix replied to upuaut's topic in Static/AI Mods for DCS World
Hi upuaut, to first thank you very much for the great mod... :thumbup: I have a question, is it possible to start the Helis directly from Helipad? In the ME I tried to put the helicopters on the helipad in the mod, unfortunately you can land on the platforms, but at the start, the helicopters are in the structures, see photos. I make a mistake, or is there another possibility? Thanks and best regards Tronix -
Addon Tents, Watchtower, UH-1-Cargo
Oldcooltronix replied to upuaut's topic in Static/AI Mods for DCS World
Hi Upuaut ahhh... OK... :thumbup: Thanks and best regards Tronix -
Addon Tents, Watchtower, UH-1-Cargo
Oldcooltronix replied to upuaut's topic in Static/AI Mods for DCS World
Hello, I have my complete_upuaut_mods download, but can not find the staddons.zip and there is not the folder -> DCS World Open Beta / Bazaar / World / textures / staddons Thanks for your help, Tronix