FalcoGer/CoordinateConverter

F-15 not recognized

Opened this issue · 2 comments

When flying the F-15 I get an error the says "Unkown aircraft: "F-15ESE". I'm running the latest version, v0.6.11.

Is the F-15 actually supported? I saw it in the drop and assumed it was but glancing at the code it seems it may not be.

I don't have the F-15. You can find the relevant files in the dcs installation folder's mods/aircraft/f15e folder to find out the numbers corresponding to which panel in the cockit. the buttons for each panel are also available in one of the lua files, though they are not numbered directly.

You will find the device number in devices.lua and the button numbers in command_defs.lua, where the numbers are calculated with the counter() function. The number typically gets reset for every device to a default value, usually the first button is 3001 for each device.

Once you have those numbers it should be straight forward to implement. feel free to make a pull request.

The best place to look on how to implement some basic waypoint data is probably the F-16 implementation. It's fairly straight forward and doesn't use any extra information for what type of point it is.

If you wish to test your command inputs to DCS in the debugger, you can use the DebugCommandList class instead of List<DCSCommand> in the Get*Action functions in the F15E class. Upon adding a DCSCommand it will immediately send the key presses to DCS for you to check. This is useful because you can use single steps in the debugger and immediately see the results in DCS, just make sure to not send the same commands again when the list gets returned to the calling function. having 2 monitors is helpful.