Fscats Posted July 24, 2019 Report Share Posted July 24, 2019 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? Link to comment Share on other sites More sharing options...
Paul Henty Posted July 24, 2019 Report Share Posted July 24, 2019 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now