MIL Mustang radio L:Var's

This is the place where we can all meet and speak about whatever is on the mind.
new reply
User avatar
Raceguy
A2A Mechanic
Posts: 517
Joined: 14 May 2014, 10:35
Location: FA40, Florida

MIL Mustang radio L:Var's

Post by Raceguy »

Hello everyone

I am trying to setup the MIL Mustang radio so I can change the freq's with some unused buttons, one for INC and one for DEC.

I have added the following lines to my macro in FSUIPC but I could only get the DEC function to work
for L:RadioChannelA for the whole number. Nothing for the fractions.

So I tried SPAD.next and got L:RadioChannelA=INC and DEC working for the whole number but I cannot get the fractions to change.
I have tried L:RadioChannelAFract= and L:RadioChannelAFractINI= but I must be missing a setting.

L:RadioChannelA=INC
L:RadioChannelA=DEC
L:RadioChannelAFract=INC
L:RadioChannelAFract=DEC
L:RadioChannelAFractINI=INC
L:RadioChannelAFractINI=DEC
L:RadioChannelAWhole=INC
L:RadioChannelAWhole=DEC

Any help would be greatly appreciated.

Thank you
Ed
Image

If at first you do succeed, try not to look too surprised!

User avatar
Lewis - A2A
A2A Lieutenant Colonel
Posts: 33318
Joined: 06 Nov 2004, 23:22
Location: Norfolk UK
Contact:

Re: MIL Mustang radio L:Var's

Post by Lewis - A2A »

Hey Ed,

just to let you know ive seen this post and asked one of the guys (ROB the P-51 modeller) to look into this for you and offer advice where applicable.

thanks,
Lewis
A2A Facebook for news live to your social media newsfeed
A2A Youtube because a video can say a thousand screenshots,..
A2A Simulations Twitter for news live to your social media newsfeed
A2A Simulations Community Discord for voice/text chat

User avatar
Raceguy
A2A Mechanic
Posts: 517
Joined: 14 May 2014, 10:35
Location: FA40, Florida

Re: MIL Mustang radio L:Var's

Post by Raceguy »

Thanks Lewis!
Image

If at first you do succeed, try not to look too surprised!

ROB - A2A
A2A Colonel
Posts: 3647
Joined: 02 Mar 2004, 02:56

Re: MIL Mustang radio L:Var's

Post by ROB - A2A »

The idea is to increase/decrease the whole and fractal parts individually and each time you do this, add them together and write to a display variable which is RadioChannelA. So, an example of a single "whole part" increasing event should look like this (in pseudocode):

1. Increase by 1 (or decrease)

RadioChannelAWhole++ (remember not to exceed 136, in case of decreasing never go below 118)

2. Add whole and fractal parts and assign the result to the display variable

RadioChannelAWhole + RadioChannelAFract = RadioChannelA

This is an example of the fractal part:

1. Increase by 0.025 (or decrease)

RadioChannelAFract + 0.025 = RadioChannelAFract (if greater than 0.975, reset to 0, in case of decreasing if lower than 0, reset to 0.975)

2. Add whole and fractal parts and assign the result to the display variable

RadioChannelAWhole + RadioChannelAFract = RadioChannelA

I hope this helps.
regards
ROB
A2A Simulations Inc.

User avatar
Raceguy
A2A Mechanic
Posts: 517
Joined: 14 May 2014, 10:35
Location: FA40, Florida

Re: MIL Mustang radio L:Var's

Post by Raceguy »

Hi Rob

Thank you for that information. I understand the premise of what you posted but not how it's accomplished. Is this done by using LUA code? If so I will need to get familiar with LUA.

Since I can see the L:Vars I was hoping one encoder could be set for the whole number and one for decimals.

Thank you
Ed
Image

If at first you do succeed, try not to look too surprised!

ROB - A2A
A2A Colonel
Posts: 3647
Joined: 02 Mar 2004, 02:56

Re: MIL Mustang radio L:Var's

Post by ROB - A2A »

BTW you, as a pilot, are unable to change the frequencies with this military radio. You just select a channel with a predefined frequency. You can still use your buttons for the channels selection with an Input Configurator we provide for you. Or use some LUA coding.

regards
ROB
A2A Simulations Inc.

User avatar
Raceguy
A2A Mechanic
Posts: 517
Joined: 14 May 2014, 10:35
Location: FA40, Florida

Re: MIL Mustang radio L:Var's

Post by Raceguy »

Hi Rob

OK, that makes sense. I may try some LUA script but will probably just stick to changing ATC freq. on the fly with the mouse.

Thank you for taking time to reply!

Take care
Ed
Image

If at first you do succeed, try not to look too surprised!

Tomas Linnet
Senior Master Sergeant
Posts: 2286
Joined: 05 Nov 2013, 10:48
Location: Oksboel, Denmark

Re: MIL Mustang radio L:Var's

Post by Tomas Linnet »

This is top notch customer service!!

Thanks A2A :D
Kind Regards
Tomas

Sim: FSX SE
Accu-Sim aircraft in my hangar:
C172, C182, P51 Civ, P51 Mil, B17, Spitfire, P47, B377 COTS,
J3 Cub, T6, Connie, P-40, V35B
A2A Accu-Sim Avro Lancaster Loading:............0.000003% complete, please wait.

new reply

Return to “Pilot's Lounge”

Who is online

Users browsing this forum: Google [Bot] and 51 guests