RAM I have the F-16 FLCS, WCS MkII, and Elite pedals. I dinnae anything about the TQS other than what they look like.
Go to the thrustmaster website, in the downloads area, and look for a shareware program called EZBuild. It has a real good reference section in the help file about programing them, and can even create the b50 files for you.
That would be alot easier than me trying to teach you to program it via email