View Full Version : Com2 TX Selection problems
DanFontan
02-17-2005, 07:20 PM
Am trying to select com2 TX but it will not work anyone else having trouble? Here is the ini code:
[COM2_TX]
Offset=3122
Length=1
FSType=Bitmap
Bit=6
Thanks for the help,
Dan Fontan
alandyer
02-18-2005, 06:11 PM
Dan,
You have the INI settings are correct.
Did you remember to enable component ?
(Have to ask :) )
What version of FS are you using ?
Create dummy tab within FS2Phidget and observe what values are being sent by FS when you change COM2 TX on FS screen.
Alan.
DanFontan
02-18-2005, 08:38 PM
Enabled= checked
FS version = 2004.1
open dumy window = doesnt change FS settings, but com1 and both do change the settings.
For some reason the 7th bit always has a one in it even though it is programmed for the 6th bit. I am seeing this on the input "fs value" of FS2phidget. Could this be causing it, and what is causing that bit to be a 1?
Thanks for the help,
Dan
alandyer
02-19-2005, 05:49 AM
Dan,
The entire byte is displayed.
FS and FSUIPC work with bytes.
Some settings manipulate bits within a byte
(This is the definition of bit mapping).
I felt is was more helpful to display entire byte.
That 7th bit is COM1 Transmit.
Alan.
DanFontan
02-19-2005, 10:29 PM
Alan, Thanks for the quick responses and your dedication. Although I still can't get it to work and I noticed on the com1 byte its just all zeros, wouldn't it be the same as the com2 one since the same information is being passed through the same byte?
Can someone please attempt the code in the first post to see if it works or if its just a problem with fsuipc of just fs itself?
Thanks,
Dan
DanFontan
02-21-2005, 07:44 PM
Alan I sent you a message if you would like to contact me directly to solve this issue my email is danfontan@cox.net or navalaircrewman@aol.com
DanFontan
02-22-2005, 08:37 PM
Ok, I was playing around with it and found out if I hold the button down to select com2 while i click on set FS to hardware, the 1 in the 7th bit dissapears, I let go of the button and com2 selects.
Alan do you know what I'm doing wrong?
Thanks for the help,
Dan
alandyer
02-23-2005, 03:32 AM
Dan,
Have you been using a toggle or momentary switch up until now for COM2 ?
Alan.
DanFontan
02-23-2005, 12:06 PM
momentary. I even reassigned one of my on/off (basically a toggle) and to no joy.
DanFontan
02-25-2005, 01:12 PM
Alan, why would "com2 tx" read the 7th bit as a one and "com1 tx" doesn't read the 7th bit as a one or the 6th as a one when com2 is selected to tx?
alandyer
03-04-2005, 02:56 PM
Dan,
I will play aound with those settings and get a definitive answer for you.
Unfortunately, my PC with FS2004 has taken a dump. :(
Only have access to PC with FS2000 (which does not have COM2).
Just want to make sure that you understand bit 0 is first bit and bit 7 is 8th bit.
I have to ask.
Alan.
DanFontan
03-09-2005, 02:00 PM
Thanks Alan.
alandyer
03-28-2005, 08:08 AM
Dan,
Got my PC with FS2K2 running today and played with COM1 and COM2 Transmit.
Those two bits will be problem.
Here's why.
Most bits in an FS bitmap represent the state of some function, "on" or off, "left" or "right", etc.
COM1 and COM2 do represent state but they are interdependant.
i.e. when COM2 goes On then COM2 mus go Off.
They act as toggles.
The other exception with bit maps are radio toggle switches.
The do not represent a state.
setting generates an action.
I will address these two issues in next release.
Regards,
Alan.
DanFontan
03-28-2005, 10:06 AM
Thanks for looking into it Alan, sure appreciate the help.