Jump to content
The simFlight Network Forums
Fscats

FsFrequencyCOM and P3D4 Comm Offsets

Recommended Posts

Experimenting using the FsFrequencyCOM and am getting overflow exceptions when I try to use the P3D4 Offsets (0x05C4, 0x05C8, 0x05CC and 0x05D0).   I assume that this is because they are uint instead of ushort.  Any plans to extend FsFrequencyCOM to handle these, so I can represent a frequency of 132.925 without fiddling with xxx.x2 is really xxx.x25?

Share this post


Link to post
Share on other sites

Those new offsets in FSUIPC5 won't work with the FsFrequencyCOM class.

The documentation says that the new offsets store the frequency in Hz rather than the old BCD format. So you just need to read the offset as a normal Int and divide by 1,000,000 to get the frequency in the more common Mhz units.

The frequency helper classes was added to help people with encoding and decoding to/from the old BCD format. Because the new offsets are not in BCD I can't really add support for them in the same class in a way that makes sense. The new format is very easy to use now so there really isn't a need for the helper class any more.

Paul

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.