PDA

View Full Version : Douglas C47 V3: question regarding (LUA) variables



Guenseli
August 16th, 2016, 20:54
Hello,

first, thanks for this great piece of freeware!!!

I'm working on a LINDA module for the C47 and have found most variables I need, but with some I have troubles.
So this questions goes to the devs of this bird.

I can't find a variable of possibility for the starters and for the primers.

I managed to activate the primer with FSUIPC control 66345 (TOGGLE_PRIMER1), but that works just once and I think not as intended.
For the starters I can't find anything.

The variables like Primer switch:1 do just move the knobs without any function.


Would be nice if someone could help me finding these last pieces.
Many thanks,
Guenter

cavaricooper
August 17th, 2016, 02:44
Guenseli-

BRILLIANT to see you here! I'm a huge fan of LINDA and excited to know my Boeing MCP II will soon work with our beloved C-47.... Manfred, Jan et al will have you sorted in not time.

Thank-you for what you, Scott and the team do for us all!

Best- Carl

Guenseli
August 17th, 2016, 07:56
You're welcome. many thanks for this!

mjahn
August 17th, 2016, 10:02
Hi, Starter and Primer switches do not execute any K:vars directly. Would the following snippets from the modeldef code give you a clue on what the Starter and Primer switches are doing?

Starter1 mouse code:
<mouserect><callbackcode>
(L:Starter switch:1, enum) 0 !=
if{ 0 (>L:Starter switch:1, enum) 0 (>L:Starterturn1, rpm) quit }
50 (>L:Starter switch:1, enum)
(A:Circuit general panel on, bool) ! if{ quit }
(A:General eng fuel pump switch:1, bool) ! if{ quit }
(A:PROP RPM:1, rpm) 0 > if{ quit }
(L:slowprop, rpm) (>L:Starterturn1, rpm)
</callbackcode></mouserect>
Primer1 mouse code:

(M:Event) 'LeftRelease' scmp 0 == (M:Event) 'RightSingle' scmp 0 == ||
if{ 0 (>L:Primer switch:1, enum) quit }
(M:Event) 'LeftSingle' scmp 0 ==
if{ 50 (>L:Primer switch:1, enum)
(A:Circuit general panel on, bool) ! if{ quit } }

Sorry, I seem to be unable to get rid of the cleanup routine here.

Starter is clicked once and begins cranking (slow-turning) the prop. Primer is clicked repeatedly or pressed continuously. When the right number of primer clicks has accumulated and several other conditions are satisfied (Magnetos, mixture, throttle etc) the engine will fire.

Guenseli
August 18th, 2016, 07:53
Hello Manfred,

unfortunately I'm not a good programing expert and this code snippet does not help.
But thanks anyways!


Will try my best to find a solution