I’ve decided to upgrade my pit and get a Force sensitive mod for my stick. I’m currently using a stock Warthog, and I love it. the grip is fantastic. However, there is only one mod for it, which is the very expensive FSSB-R3 made by RealSimulators. The product seems to be a very good piece of engineering, and is a drop in replacement for the WH, slap the grip on the base and you are done. However, mounting in in a proper stick base is somewhat more problematic. The other Force-sensing mod is the FCC3 by ViperCore.nl it is somewhat cheaper, community proven for years. However, it has a major drawback, it requires the Cougar PCB to work. I have a cougar, but I refuse to use it 🙂 (see my TQS controller series).
But a lack of controller never stopped me 🙂 So I opted for the FCC3 and started to dig into my Cougar to understand what will be required.
In this post I’ll dive into the grip wiring and bit ordering, and all the other fun things I had to dig into a whole bunch of documents to find.
The Grip is connected with a 5 pin straight header with 0.1″ (2.54mm) pitch and looks very much like the JST EH connector (most likely because it is one.. I’ve ordered some, once they arrive I’ll be able to confirm). but even without the connector, you can use a standard 0.1″ header and it will plug in just fine (without directional cues or lock of course).
For Reference I’ve used some old cougar PCB drawing I found online (google for the rescue), and the Very good reference documentation for the Hempstick project by Hempstead which is an awesome project for low latency game-controllers. however, it will require a bulky (and somewhat expensive) ARM dev board (rather then a quick and dirty 5USD pro-micro, which is my device of choice).
The Cougar (and WH) grips are identical in terms of electronics. They both use 3 separate 8 bit shift registers chained together and all the input pins on them are pulled High (pressing a button will yield a low output). so the combined output is 24 bit long.
Arduino has a pretty good basic tutorial on the use of those (you know for extra reading): Arduino/Tutorial/ShiftIn.
The header wiring for the Cougar is as follows:
|2||CS (Latch pin)|
|3||SPI_SCK (Clock Pin)|
|4||SPI_MISO (Data pin)|
Reading the output is very straight forward, you just read bytes. initially I’ve just read all 3 bytes, and just bit shifted them over directly to a 32 bit uint. However, the bits are not “properly aliened” with the stick output, I guess it’s a prehistoric thing for thrust-master, and they just kept it for backward compatibility.
so with both the Cougar and the WH, bit order is almost the same.
Byte 1 contains the stick buttons.
Byte 2 is the Trim and TMS hats.
Byte 3 is the DMS and CMS hats.
However, WH contains one more button (CMS push) which is stored on the first byte.
This is the bit map ordered by the windows Button Number. I’ve added the bit mask and byte for each of them.
(and just a memory refresh if needed – Binary to HEX and DEC conversion)
|HID button Id||Byte/Mask||Button Name|
|1||1/0x01||Trigger (1st Detent)|
|2||1/0x08||Weapon Release (Pickle)|
|5||1/0x40||Missile Step (NWS)|
|6||1/0x80||Trigger (2nd Detent)|
|19||1/0x02||CMS Push (WH only)|
I’ve added here all the defines I’ve used in the code, it include both stick and raw bytes.
<br /> #define GripTriggerFirstDetent 0x01<br /> #define GripPickle 0x02<br /> #define GripPinkie 0x04<br /> #define GripPaddle 0x08<br /> #define GripMissleStep 0x10<br /> #define GripTriggerSecondDetent 0x20<br /> #define GripTmsFwd 0x40<br /> #define GripTmsRight 0x80<br /> #define GripTmsAft 0x100<br /> #define GripTmsLeft 0x200<br /> #define GripDmsFwd 0x400<br /> #define GripDmsRight 0x800<br /> #define GripDmsAft 0x1000<br /> #define GripDmsLeft 0x2000<br /> #define GripCmsFwd 0x4000<br /> #define GripCmsRight 0x8000<br /> #define GripCmsAft 0x10000<br /> #define GripCmsLeft 0x20000<br /> #define GripCmsDown 0x40000<br /> #define GripBlank 0x80000<br /> #define GripTrimFwd 0x100000<br /> #define GripTrimRight 0x200000<br /> #define GripTrimAft 0x400000<br /> #define GripTrimLeft 0x800000</p> <p>// Mapping from Grip to proper bytes<br /> //Byte 1:<br /> #define Trigger1st 0x01<br /> #define CmsPush 0x02<br /> #define Blank 0x04<br /> #define WpnRel 0x08<br /> #define Pinky 0x10<br /> #define Paddle 0x20<br /> #define MslStp 0x40<br /> #define Trigger2nd 0x80<br /> // Byte 2:<br /> #define TrimAll 0x0F<br /> #define TmsAll 0xF0</p> <p>#define TrimFwd 0x01<br /> #define TrimRight 0x02<br /> #define TrimAft 0x04<br /> #define TrimLeft 0x08<br /> #define TmsFwd 0x10<br /> #define TmsRight 0x20<br /> #define TmsAft 0x40<br /> #define TmsLeft 0x80<br /> // Byte 3:<br /> #define DmsAll 0x0F<br /> #define CmsAll 0xF0</p> <p>#define DmsFwd 0x01<br /> #define DmsRight 0x02<br /> #define DmsAft 0x04<br /> #define DmsLeft 0x08<br /> #define CmsFwd 0x10<br /> #define CmsRight 0x20<br /> #define CmsAft 0x40<br /> #define CmsLeft 0x80<br />