Wednesday, 17 November 2010

Mi-24v Tiger and InputMapper mk 2

Came across a DVD of the Royal International Air Tattoo 2006, a Czech Republic Mi-24V Hind (number 7353?) from the 231 Attack Helicopter Squadron had a camera strapped to the pylon. I've walked around a few Mi-24Ds at airshows but nothing as lovely as the tiger paint scheme on this one.

I'll just share a few images I grabbed.







The last image was taken by "Vojta_micek" (see his other photos here). Elements of the tandem cockpit appear modernised from what I remember. The all black theme

The Mi-24 is a fast twin engined helicopter, > 200 miles per hour. Versatile, with a small troop compartment/load area and large number of wing payload configurations.


Programming wise I've been re-engineering a lot of game internals to separate them more from the underlying 3D engine. And today that included an alternative input system. Short of using DirectX (which I have problems compiling under MinGW) there isn't a great solution for now. The SDL library falls short since it uses the Windows MMSYSTEM which only handles a few axis (6) and 32 buttons. It manages about 3/4qtrs of the axis and buttons on a new Saitek HOTAS PC joystick.

Ideally I'd use RAWHID which is a method Microsoft provide to read the raw data from any USB input device (there's a Linux library too). RAWHID would cover some exotic input devices, 3D navigators and touch devices for example but that will have to wait till version 2.0. For now I'm abstracting the input handling too, nearly finished with that.

Till now input configuration has been awkward, I wrote a quick and dirty config system last December. The cross-platform input library didn't even return a sensible name for a device on each, it was just a port number, if you unplugged or swapped them around you'd loose your input mapping. Terrible.

Now we have curve options, inversion, min/max range and device ID pulled from the Windows registry. An input monitor overlay with graph was added to help debug and test axis response. If anyone knows of a RAWHID multiplatform lib then please drop me a note.

6 comments:

  1. I love the MI-24 like her even more than the apache :P

    So few Hind-sims out there.

    Heard you finally got a new desktop PC. Congrats.

    ReplyDelete
  2. There's a nice Mi24 mod in EECH which you probably know about already.

    It's not something we have plans for.

    As for PC, yes I exercised the already overused plastic, couldn't wait any longer. Can't work on multiplayer on one laptop.

    ReplyDelete
  3. Well I've checked that mod and it really looks outstanding. What I primarily love about the MI24 is not just only th weapon systems and the beautiful Design but the abillity to transport troops. It just feels good to rescue troops out of critical situations without beeing defenseless against threats on the way to the target area.

    The apache is also just fine but simply not that versatile. It compensates that a little with better weapon systems like the hellfire and radar on the D.

    I've flown the Apache so many times. DI Apache Longbow, Longbow 1 and 2, Team Apache, Apache vs Havoc, Combat Helo (torrent download) :P

    Well combat helo is a different thing I hope but I wouldn't buy DCS: Apache for example.

    ReplyDelete
  4. The Hind I was in at Farnbourough a few years ago had a version of the helmet mounted sight, the gun and optics were slaved to where you looked. It was certainly not a glass cockpit!

    ReplyDelete
  5. Never heard of HMS in a Mi-24. Mi35 definetely has MFDs.

    ReplyDelete
  6. Another amazing paintjob:

    http://www.amv83.fr/Asm/galleryeasteuropehungarian.htm

    ReplyDelete