The A2A Simulations Community

"Come share your passion for flight"
It is currently Wed Aug 15, 2018 10:32 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: SimConnect Development
PostPosted: Wed Feb 21, 2018 3:56 am 
Offline
Airman Basic

Joined: Wed Jan 18, 2017 7:24 pm
Posts: 9
I'm building my own KX155 radio, and I'm struggling to make it work with the A2A Cherokee. Specifically, it seems like the Cherokee completely ignores the standard SimConnect events, whereas the simulation variables work as expected.

What works:
Setting and getting frequencies via "COM ACTIVE FREQUENCY:2", "NAV STANDBY FREQUENCY:2", etc.

What doesn't:
When I transmit "RADIO_VOR2_IDENT_SET", nothing happens. On any stock aircraft this sets the nav 2 ident state.
If I register to receive any of the COM2_RADIO_WHOLE_INC, COM2_RADIO_WHOLE_DEC, COM2_RADIO_SET, COM2_RADIO_SWAP, etc variables, I never get a callback. I get the callbacks I expect on stock aircraft.

Unknown:
I can't find any SimConnect simulation variables or events that would let me power the radio on and off.

I'm guessing that A2A has custom SimConnect events for this stuff, but I can't find any documentation about it. I'd be delighted if someone could point me at such a document.


Top
 Profile  
 
PostPosted: Wed Feb 21, 2018 9:25 am 
Offline
A2A Lieutenant Colonel
User avatar

Joined: Sat Nov 06, 2004 11:22 pm
Posts: 27844
Location: Beccles, Suffolk, UK
Hello and welcome to the forums,

Heres the link to the cockpit builders LVar listing to start you off;
viewtopic.php?f=116&t=40603

I'd be excited to see what you are building, I love a good home build simpit or equipment. No experience building myself but really enjoy seeing the community builds and the amount of skill and engineering that often goes into them.

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


Top
 Profile  
 
PostPosted: Wed Feb 21, 2018 4:49 pm 
Offline
Airman Basic

Joined: Wed Jan 18, 2017 7:24 pm
Posts: 9
Thanks for the documentation! It looks like these Lvars can only be read or written from a DLL running inside P3D, so I should abandon my notions of using an external exe with SimConnect.

Am I correct that the easiest way forward is probably FSUIPC with a Lua script? Looks like those scripts can read and write Lvars while communicating via serial, which is exactly what I need.


Top
 Profile  
 
PostPosted: Thu Feb 22, 2018 5:11 am 
Offline
A2A Lieutenant Colonel
User avatar

Joined: Sat Nov 06, 2004 11:22 pm
Posts: 27844
Location: Beccles, Suffolk, UK
Yes fs hobbists tend to use things like FSUIPC and LINDA and our professional flight training clients have there own in house communication software that reads the LVars.

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


Top
 Profile  
 
PostPosted: Mon Mar 12, 2018 2:02 am 
Offline
Airman Basic

Joined: Wed Jan 18, 2017 7:24 pm
Posts: 9
Thanks for the help! It's all working now :)

One thing to note. The Nav 2 id switch is controlled by "L:Nav2PullIdent", not "L:Nav2Ident".

Also, is there any way to control the volume for com 2 separately from com 1? In the real world I like to turn Com 2 up just enough that I can hear the ATIS while still allowing me to hear Com 1 in case ATC calls me. Is that possible here?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group