af1121 Posted January 19, 2008 Report Posted January 19, 2008 Hello, I'm a newbie in the fsuipc's offsets world but I try to use FSUIPC, FSCONV, LDS767 and my keyboard & joysticks... Well, I would like to use my keyboard to modify VOR1 frequency via FSCONV (offset 8B00 2 bytes) I tried to use offset word or byte cyclic inc with an increment of 5 and I got problem with frequency (first ok then 108.23 or 108.64) due to the fact that in this offset, the fqcy 118.45 Mhz is in BCD format x1845 so that it use hexadecimal ? I have seen some solution to my issue but with SIOC, EPIC... Is it possible to do it with a keyboard (+/- for intger & +/ for decimal) thank you
Pete Dowson Posted January 19, 2008 Report Posted January 19, 2008 I would like to use my keyboard to modify VOR1 frequency via FSCONV (offset 8B00 2 bytes) I don't know that offset. It isn't one controlled by FSUIPC, so it must be an FSConv allocated one. Why not adjust the VOR1 using the standard VOR INC/DEC controls? I tried to use offset word or byte cyclic inc with an increment of 5 and I got problem with frequency (first ok then 108.23 or 108.64) due to the fact that in this offset, the fqcy 118.45 Mhz is in BCD format x1845 so that it use hexadecimal ? Well, FS's frequencies are like that, but I'm afraid I don't know FSCONV. You'll have to ask there. Regards Pete
af1121 Posted January 19, 2008 Author Report Posted January 19, 2008 Thank you for your quick answer. FSCONV Is not the problem : it only read offset from FSUIPC and transfer it to level-d SDK... I can't use the stand vor inc/dec because in level-d 767 Vor1 is different from Nav1 in FS (In fact Nav1 is ILS). I just want to know if it is possible with a fs control or something like that to increment en hexadecimal number which represents a decimal one When i use fs control offset word cyclic inc (the problem is the same with byte for decimal only) 108.00 MHZ ==> x800 +5 ==> x805 ==> 108.05 MHZ ok 108.05 MHZ ==> x805 +5 ==> x80A ==> 108.10 MHZ ok 108.10 MHZ ==> x80A +5 ==> x80F ==> 108.15 MHZ ok 108.15 MHZ ==> x80F +5 ==> x814 ==> 108.15 MHZ NOT GOOD 108.15 MHZ ==> x814 +5 ==> x819 ==> 108.20 MHZ ok 108.20 MHZ ==> x819 +5 ==> x81E ==> 108.25 MHZ ok 108.25 MHZ ==> x81E +5 ==> x823 ==> 108.23 MHZ NOT GOOD Maybe I can solve this in fsuipc4.ini with conditional key press or something like that?? But I don't understand very well how it works !
Pete Dowson Posted January 20, 2008 Report Posted January 20, 2008 Thank you for your quick answer. FSCONV Is not the problem : it only read offset from FSUIPC and transfer it to level-d SDK... And this LevelD SDK uses this offset for its NAV1 radio frequency? That is very strange. Why does it not use the FS-provided radios? They seem to be implemented really well. I can't use the stand vor inc/dec because in level-d 767 Vor1 is different from Nav1 in FS (In fact Nav1 is ILS Either NAV can support ILS functions. I just want to know if it is possible with a fs control or something like that to increment en hexadecimal number which represents a decimal one Yes, it is possible to increment any number in any radix, whether decimal or hex is irrelevant. they are just numbers inside the computer. The problem is that is is NOT actually hexadecimal, but "BCD" -- binary coded decimal. Each group of 4 bits represents a decimal digit, from 0-9. But the value of 4 bits runs from 0 to 15. so if you add 5 you can go from 0 to 5, but then you go from 5 to 'A' (10 in 4 bits). Add 5 again and you get to F. To go from BCD digit 5 to 0 and add 1 to the next digit up you'd have to add not 5 but 11 ('B' in hex). This is made easy in FS by having frequency INC and DEC controls. Hasn't this "LevelD" aircraft got anything to operate its (weird?) radios with? It seems rather a poor implementation to provide non-FS radios with no support for frequency changing. When i use fs control offset word cyclic inc (the problem is the same with byte for decimal only) Er .. you presumably mean FSUIPC control, not FS? FS has no such controls. 108.05 MHZ ==> x805 +5 ==> x80A ==> 108.10 MHZ ok108.10 MHZ ==> x80A +5 ==> x80F ==> 108.15 MHZ ok These are pure luck. it must be the way the LevelD software is interpreting the "impossible" BCD values x80A and x80F. I would have expected it to go wrong with most of these increments. You are just lucky it works for some. Maybe I can solve this in fsuipc4.ini with conditional key press or something like that?? But I don't understand very well how it works ! Well, it gets complicated, but with buttons (you can't do it directly with keypress programming) I suppose you could get a bit further with conditions using the offset tests. Check the Advanced Users guide. for example: W8B00&000F=x5 to check for an ending in '5', so inc by 11 but you then have to worry about the next high digit, for when that reaches 9 you have to add another x70. And so on. Suppose the frequency at present is "1ab.cd": The d goes 0 + 5 to 5, + 11 to 0. The c goes 0 + 1 from below till 9, then you have to add another x70 The b is even more complex. if the a is 1 is only goes to 7 then a to 0, b to 0, else it acts like the c with add increment addition of x700. Ugh. Surely, there MUST be better provisions in a well-thought-of aircraft such as the LevelD for controlling their radio frequencies. Chedck their documentation. Look for a radio frequency inc/dec assignment you can make. Regards Pete
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