MobiFlight Community Support

Welcome to the forum for MobiFlight! Feel free to reach out to the community in case you have questions, issues or just want to share great ideas or details about your latest home cockpit project.

You like MobiFlight? Donate via PayPal and support the MobiFlight development. Thanks! 

icon
Avatar
86abaile
Posts: 3
I'm trying to create a radio panel for the zibo mod in xplane. I've used the COM1 preset and it displays the first 5 digits but it's missing the 6th digit. Obviously it can only be either a 5 or a 0, but how do I get around this?
2021-07-21 16:12
Avatar
86abaile
Posts: 3
So I found the answer myself. The COM1 (and 2) datarefs are for 25hz spacing and for 833 spacing a different dataref must be used that isn't included by default in XPUIPC.
So far I've got the following written to add them, I just need to figure out what offsets are available before I begin testing them.
iconCode:
# Dataref com1actv833 sim/cockpit2/radios/actuators/com1_frequency_hz_833 int
# Dataref com2actv833 sim/cockpit2/radios/actuators/com2_frequency_hz_833 int
# Dataref com1stby833 sim/cockpit2/radios/actuators/com1_standby_frequency_hz_833 int
# Dataref com2stby833 sim/cockpit2/radios/actuators/com2_standby_frequency_hz_833 int
# Offset 0x UINT32 2 r $com1actv833
# Offset 0x UINT32 2 r $com2actv833
# Offset 0x UINT32 2 r $com1stby833
# Offset 0x UINT32 2 r $com2stby833
2021-07-21 18:15
Avatar
86abaile
Posts: 3
I ended up using the following. I did initially use offsets 7000 to 7003, but for some unknown reason only COM2 STBY worked and the rest would show a mess of numbers that would constantly change whenever you tried to change COM2 STBY. I don't know the reason why, but putting some space between those hex addresses fixed the issue.
iconCode:
Dataref com1actv833 sim/cockpit2/radios/actuators/com1_frequency_hz_833 int
Dataref com2actv833 sim/cockpit2/radios/actuators/com2_frequency_hz_833 int
Dataref com1stby833 sim/cockpit2/radios/actuators/com1_standby_frequency_hz_833 int
Dataref com2stby833 sim/cockpit2/radios/actuators/com2_standby_frequency_hz_833 int
Offset 0x7010 UINT32 2 r $com1actv833
Offset 0x7020 UINT32 2 r $com2actv833
Offset 0x7030 UINT32 2 r $com1stby833
Offset 0x7040 UINT32 2 r $com2stby833
2021-07-22 00:06
icon