Jump to content

Zusätzliche Achsen für Drehregler?


funkyfranky

Recommended Posts

Hallo zusammen,

ich hab mir als kleines Projekt aus einem Arduino eine Button Box gebastelt (aka "The happy sox button box" ;), siehe Bildchen). Mit leichten Modifikationen der UnoJoy Software kann ich u.a. vier Potis ansteuern. Letzteres war auch die Hauptmotivation, weil ich z.B. Drehregler von diversen Cockpit Lichtern sehr gerne per Hand, also mit einer haptischen Wahrnehmung an- und ausschalte.

 

Nun gibt es einige Module, wie z.B. die F-86 oder Gazelle, die standardmäßig diversen Funktionen (Lichtern etc.) Achsen zugeordnet haben. Aber leider auch einige wichtige (F-5, A10-C), die keine Achsenbelegung dafür anbieten :cry:

 

Meine Frage daher: Gibt es eine Möglichkeit, Achsen für solche Funktionen irgendwie selbst zu definieren (lua oder ähnliches)?

1494181715_FVH_3895(Medium).thumb.JPG.a0b7bf9f1531793c5967a0650428b383.JPG

501039217_NEL_1614(Medium).thumb.JPG.96fe8d684f42c8adc913f090a85c8e9f.JPG

812156214_NEL_1617(Medium).thumb.JPG.a42a0069d5f218f84cfa264ecdb9f7d9.JPG

A warrior's mission is to foster the success of others.

i9-12900K | MSI RTX 3080Ti Suprim X | 128 GB Ram 3200 MHz DDR-4 | MSI MPG Edge Z690 | Samung EVO 980 Pro SSD | Virpil Stick, Throttle and Collective | MFG Crosswind | HP Reverb G2

RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss

Link to comment
Share on other sites

Schon mal vielen Dank für den Link :thumbup: Aber ich hab mich da wohl nicht ganz klar ausgedrückt, was genau das Problem ist.

 

Ich hab vier Potis an meinem Arduino und den per UnoJoy als standard Game Controller unter Windows eingerichtet. D.h. ich habe vier zusätzliche Achsen, die ich unter DCS belegen kann. Nur leider haben manche Module leider keine Achse für z.B. die Lichter, die man belegen/auswählen könnte.

 

Mich würde also interessieren, ob ich irgendwie Achsen innerhalb DCS hinzufügen kann, die es standardmäßig nicht gibt. Meine Vermutung ist, dass das nicht geht, da von den Modulentwicklern nicht implementiert. Aber vielleicht kennt ja jemand einen Trick, um das doch hinzukriegen, z.B. einen fiesen Hack in den Lua Files der Module.

 

Falls nicht, wäre wohl die einzige Alternative bei den Modulentwicklern nachzufragen, ob sie nicht zusätzliche Achsen implementieren könnten.

A warrior's mission is to foster the success of others.

i9-12900K | MSI RTX 3080Ti Suprim X | 128 GB Ram 3200 MHz DDR-4 | MSI MPG Edge Z690 | Samung EVO 980 Pro SSD | Virpil Stick, Throttle and Collective | MFG Crosswind | HP Reverb G2

RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss

Link to comment
Share on other sites

Falls nicht, wäre wohl die einzige Alternative bei den Modulentwicklern nachzufragen, ob sie nicht zusätzliche Achsen implementieren könnten.

 

Bestell dann mal schöne grüße.

Besonders in der A-10 ärgert mich das Fehlen einiger Achsen sehr.

In der UH und in der L-39 ist ja fast alles möglich.

Link to comment
Share on other sites

Bestell dann mal schöne grüße.

Besonders in der A-10 ärgert mich das Fehlen einiger Achsen sehr.

In der UH und in der L-39 ist ja fast alles möglich.

Mach ich gerne ;) Wäre nur die Frage, wo man das am besten postet, damit es auch gehört wird?! :hmm:

A warrior's mission is to foster the success of others.

i9-12900K | MSI RTX 3080Ti Suprim X | 128 GB Ram 3200 MHz DDR-4 | MSI MPG Edge Z690 | Samung EVO 980 Pro SSD | Virpil Stick, Throttle and Collective | MFG Crosswind | HP Reverb G2

RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss

Link to comment
Share on other sites

[...] Wäre nur die Frage, wo man das am besten postet, damit es auch gehört wird?! :hmm:

 

Am besten in der A-10C Sektion. Bitte nicht um "Bugs" Unterforum, da das kein Bug ist.

 

Zum Thema:

Du könntest mit Helios Glück haben. Zumindest hat das in einem anderen, alten Thread jemand geschafft.

Eventuell kann dir Micha auch behilflich sein.

  • Like 1
- Deutsche Tutorials und DCS Gameplay: youtube.com/Rakuzard | raku.yt/discord -
Link to comment
Share on other sites

Super, danke für das Herauskramen der Links! :thumbup:

Werde ich mal durchlesen und schauen, ob sich was machen lässt.

A warrior's mission is to foster the success of others.

i9-12900K | MSI RTX 3080Ti Suprim X | 128 GB Ram 3200 MHz DDR-4 | MSI MPG Edge Z690 | Samung EVO 980 Pro SSD | Virpil Stick, Throttle and Collective | MFG Crosswind | HP Reverb G2

RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss

Link to comment
Share on other sites

Für die Beleuchtung in der A-10C

benutzt man keine Drehachsen ...

sondern Incrementalgeber ...

Sind wie zwei Tasten, nur dass man drehen kann ...

 

bei mir funktionierts gut :)

 

edit: ich nutze aber auch arcaze module und bodnar boards

too much ...

 

 

Link to comment
Share on other sites

Moin funkyfranky,

 

also theoretisch kannst du für die Lampendimmung Poties nehmen.

Im Cockpit selber werden die Eingabemöglichkeiten als Achsen behandelt.

--Light System Control Panel

 

...

elements["PTR-LGHTCP-FORMATION"] = default_axis(_("Formation Lights"), devices.LIGHT_SYSTEM, device_commands.Button_9, 288 )

...

elements["PTR-LGHTCP-ENG-INST"] = default_axis(_("Engine Instruments Lights"), devices.LIGHT_SYSTEM, device_commands.Button_1, 290)

...

elements["PTR-LGHTCP-FLIGHT-INST"] = default_axis(_("Flight Instruments Lights"), devices.LIGHT_SYSTEM, device_commands.Button_2, 292)

elements["PTR-LGHTCP-AUX-INST"] = default_axis(_("Auxiliary Instruments Lights"), devices.LIGHT_SYSTEM, device_commands.Button_3, 293)

...

elements["PTR-LGHTCP-FLOOD"] = default_axis(_("Flood Light"), devices.LIGHT_SYSTEM, device_commands.Button_5, 296)

elements["PTR-LGHTCP-CONSOLE"] = default_axis(_("Console Light"), devices.LIGHT_SYSTEM, device_commands.Button_6, 297)

Aber ich weiß leider nicht wie man das in den normalen Eingabeeinstellungen als Achse hinterlegen kann.

Damit habe ich mich noch nicht beschäftigt.

 

Mit DAC und der Arcaze Karte können wir aber richtige Potis abfragen, obwohl ich da eher auch Incremtalgeber empfehlen würde.

 

CU Micha

Simpit Software by SDA "SIMPIT DEVELOPER ASSOCIATION"

  • DCS ExportScript
  • D.A.C. DCS to Arcaze Communicator
  • Ikarus a new Virtual Cockpit Software

Deutscher Forums Thread

English Forums Thread

 

Hard/Software: AMD Ryzen 7 1800X, 32 GiB RAM, extra SSD for Windows 10 and DCS World, AMD Vega Frontier Edition with 16 GiB VRAM

Link to comment
Share on other sites

  • 2 weeks later...

Moin Micha,

 

vielen Dank für Deine Antwort - damit hab ich es letztendlich hinbekommmen :D

[...] Im Cockpit selber werden die Eingabemöglichkeiten als Achsen behandelt. [...]

Das ist wohl die Grundvoraussetzung, damit es überhaupt geht! (Man sieht es eigentlich auch daran wie sich das Symbol des Cursors ändert, wenn man im Cockpit damit über die entsprechenden Schalter fährt.)

 

[...] Aber ich weiß leider nicht wie man das in den normalen Eingabeeinstellungen als Achse hinterlegen kann. [...]

Der Trick ist, in z.B. der default.lua in der axisCommands = {} Sektion die folgenden Einträge hinzuzufügen:

axisCommands = {
...
{action = device_commands.Button_9, cockpit_device_id = devices.LIGHT_SYSTEM, name = _('Formation Lights'), category = _('My Axes')},
{action = device_commands.Button_1, cockpit_device_id = devices.LIGHT_SYSTEM, name = _('Engine Instrument Lights'), category = _('My Axes')},
{action = device_commands.Button_2, cockpit_device_id = devices.LIGHT_SYSTEM, name = _('Flight Instrument Lights'), category = _('My Axes')},
{action = device_commands.Button_3, cockpit_device_id = devices.LIGHT_SYSTEM, name = _('Auxiliary Instrument Lights'), category = _('My Axes')},
{action = device_commands.Button_5, cockpit_device_id = devices.LIGHT_SYSTEM, name = _('Flood Light'), category = _('My Axes')},
{action = device_commands.Button_6, cockpit_device_id = devices.LIGHT_SYSTEM, name = _('Console Lights'), category = _('My Axes')},
...
}

Ich denke, der Bezug zu den Zeilen, die Du angibst ist klar. Kannst Du mir noch sagen, aus welcher Datei Du den Code hast? :helpsmilie:

 

Ach ja, und man muss am Anfang der default.lua noch die drei Zeilen

local cockpit = folder.."../../../Cockpit/Scripts/"
dofile(cockpit.."devices.lua")
dofile(cockpit.."command_defs.lua")

return {
...
}

hinzufügen. Sonst sind die Klassen(?) device_commands und devices nicht definiert.

 

Was die F-5E angeht, habe ich bei den Entwicklern nachgefragt und wurde sogar erhört ;) Belsimtek fügt die mehr Achsen hinzu :D Siehe hier.

 

Danke noch mal an alle für die Hilfe und die Antworten! :thumbup:

A warrior's mission is to foster the success of others.

i9-12900K | MSI RTX 3080Ti Suprim X | 128 GB Ram 3200 MHz DDR-4 | MSI MPG Edge Z690 | Samung EVO 980 Pro SSD | Virpil Stick, Throttle and Collective | MFG Crosswind | HP Reverb G2

RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss

Link to comment
Share on other sites

Moin funkyfranky,

 

das ist ja cool das du das heraus gefunden hast.

Ich hätte nicht gedacht das man da einfach etwas zufügen kann.

 

Meine Daten habe ich aus der Datei ".../A-10C/Cockpit/Scripts/clickabledata.lua" .

 

Dort findest du alle Schalter, inklusive der Werte die DCS als Eingabewerte verarbeiten kann.

 

 

Du bräuchtest nicht einmal die "devices.lua" und "command_defs.lua" einbinden.

 

Du kannst auch direkt die jeweilige Nummer/ID angeben.

 

Bei den Button_ID ist das eigentlich ganz einfach, es ist immer 3000 + der Button-Nummer.

Also "3001" bei dem "device_commands.Button_1".

 

Den Wert für "LIGHT_SYSTEM" findest du in der device.lua Datei.

Also statt "devices.LIGHT_SYSTEM" schreibst du "49".

 

 

CU Micha


Edited by McMicha

Simpit Software by SDA "SIMPIT DEVELOPER ASSOCIATION"

  • DCS ExportScript
  • D.A.C. DCS to Arcaze Communicator
  • Ikarus a new Virtual Cockpit Software

Deutscher Forums Thread

English Forums Thread

 

Hard/Software: AMD Ryzen 7 1800X, 32 GiB RAM, extra SSD for Windows 10 and DCS World, AMD Vega Frontier Edition with 16 GiB VRAM

Link to comment
Share on other sites

Meine Daten habe ich aus der Datei ".../A-10C/Cockpit/Scripts/clickabledata.lua" .

Hey Micha, danke für die Datei. Ist Gold wert :thumbup: Hatte mich schon länger gefragt, wo die Werte definiert werden. Damit konnte ich auch noch diverse Achsen für die F-5 und Mirage hinzufügen :D Jetzt hab ich nur ein Problem, ich brauche mehr Potis :P

 

Falls noch jemand es brauchen sollte (und für mich als zusätzliches Backup ;))

F-5E:

{action = extlights_commands.NavKnob, cockpit_device_id = devices.EXTLIGHTS_SYSTEM, name = _('Navigation Lights Knob'), category = _('Light Axes')},
{action = extlights_commands.Formation, cockpit_device_id = devices.EXTLIGHTS_SYSTEM, name = _('Formation Lights Knob'), category = _('Light Axes')},
{action = intlights_commands.Flood_knob, cockpit_device_id = devices.INTLIGHTS_SYSTEM, name = _('Flood Lights Knob'), category = _('Light Axes')},
{action = intlights_commands.FltInstr_knob, cockpit_device_id = devices.INTLIGHTS_SYSTEM, name = _('Flight Instruments Lights Knob'), category = _('Light Axes')},
{action = intlights_commands.EngInstr_knob, cockpit_device_id = devices.INTLIGHTS_SYSTEM, name = _('Engine Instruments Lights Knob'), category = _('Light Axes')},
{action = intlights_commands.Console_knob, cockpit_device_id = devices.INTLIGHTS_SYSTEM, name = _('Console Lights Knob'), category = _('Light Axes')},
{action = intlights_commands.ArmtPanel_knob, cockpit_device_id = devices.INTLIGHTS_SYSTEM, name = _('Armament Panel Lights Knob'), category = _('Light Axes')},

Mirage M-2000C:

{action = device_commands.Button_639, cockpit_device_id = devices.SYSLIGHTS, name = _('Dashboard U.V. Lights Knob'), category = _('Light Axes')},
{action = device_commands.Button_640, cockpit_device_id = devices.SYSLIGHTS, name = _('Dashboard Panel Lights Knob'), category = _('Light Axes')},
{action = device_commands.Button_641, cockpit_device_id = devices.SYSLIGHTS, name = _('Red Flood Lights Knob'), category = _('Light Axes')},
{action = device_commands.Button_642, cockpit_device_id = devices.SYSLIGHTS, name = _('Console Panel Lights Knob'), category = _('Light Axes')},
{action = device_commands.Button_644, cockpit_device_id = devices.SYSLIGHTS, name = _('White Flood Lights Knob'), category = _('Light Axes')},
{action = device_commands.Button_207, cockpit_device_id = devices.VTH_VTB, name = _('Auxiliary Gunsight Deflection'), category = _('HUD/VTB Axes')},
{action = device_commands.Button_209, cockpit_device_id = devices.VTH_VTB, name = _('Target Wingspan Knob'), category = _('HUD/VTB Axes')},
{action = device_commands.Button_192, cockpit_device_id = devices.VTH_VTB, name = _('Minimum Altitude Selector'), category = _('HUD/VTB Axes')},
{action = device_commands.Button_340, cockpit_device_id = devices.NAVINST, name = _('HSI Course Heading Selector'), category = _('HSI Axes')},
{action = device_commands.Button_488, cockpit_device_id = devices.RADAR, name = _('Radar Gain Dial'), category = _('Radar Axes')},
{action = device_commands.Button_610, cockpit_device_id = devices.RWR, name = _('Radar Gain Dial'), category = _('RWR Axes')},
{action = device_commands.Button_197, cockpit_device_id = devices.RWR, name = _('ECM Box LCD Display Brightness'), category = _('RWR Axes')},

A warrior's mission is to foster the success of others.

i9-12900K | MSI RTX 3080Ti Suprim X | 128 GB Ram 3200 MHz DDR-4 | MSI MPG Edge Z690 | Samung EVO 980 Pro SSD | Virpil Stick, Throttle and Collective | MFG Crosswind | HP Reverb G2

RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss

Link to comment
Share on other sites

Habs bei der A-10c auch hinzugefügt. Wirklich sehr einfach über die Eintragung in die Joystick.lua, mit dem "Zahlencode".

 

Allerdings funktioniert die formationsbeleuchtung nicht richtig. Poti auf 0% = Licht an, Poti 50% = Licht aus, Poti 100% = Licht wieder an. Kann es mit Kurven und invertieren nur so einstellen, dass 0%= an, 50%= aus, bis 100% = aus. Allerdings ist die Drehrichtung dann falsch was ich nicht ändern kann. (Höchsten über arcaze, allerdings müsste ich dann bei anderen Modulen die Software neu drauf spielen)

Link to comment
Share on other sites

Huch! Jetzt wo Du es sagst, fällt es mir bei den Formationslichtern auch auf. Ist aber sehr merkwürdig, weil sich der Drehregler im Cockpit normal von OFF bis BRT bewegt, aber die Formationslichter außen gar nicht der Schalterstellung entsprechen sondern wie Du sagst von 100% auf 0% auf 100% gehen.

 

Aber man kann es mit "Slider" und "User Curve" im Axis Tune hinbekommen. Hab mal ein Bild angehängt. So macht es bei mir genau was es soll :D

A warrior's mission is to foster the success of others.

i9-12900K | MSI RTX 3080Ti Suprim X | 128 GB Ram 3200 MHz DDR-4 | MSI MPG Edge Z690 | Samung EVO 980 Pro SSD | Virpil Stick, Throttle and Collective | MFG Crosswind | HP Reverb G2

RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss

Link to comment
Share on other sites

Stimmt, das ist dann aber nicht gut in DCS implementiert. Die Kurve sollte ja eigentlich linear von 50% bis 100% gehen und nicht diesen Sprung von 0 auf 50 am Anfang haben.

Bei mir ist es nicht so schlimm, weil mein Poti nicht so genau ist. Nennt man wohl Fehlerkompensation ;) Macht es einen Unterschied, wenn Du die Achse dann noch mal invertierst oder kommt das auf's gleiche raus?

 

Man sollte die Kurve übrigens bei den anderen Achsen auch verwenden. Offensichtlich geht nur der Bereich 50-100%. Hatte mich vorher schon gewundert, dass ich erst lange am Poti drehen muss, bis dann die Beleuchtung angeht.

A warrior's mission is to foster the success of others.

i9-12900K | MSI RTX 3080Ti Suprim X | 128 GB Ram 3200 MHz DDR-4 | MSI MPG Edge Z690 | Samung EVO 980 Pro SSD | Virpil Stick, Throttle and Collective | MFG Crosswind | HP Reverb G2

RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...