• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

Douglas C47 V3: question regarding (LUA) variables

Guenseli

Members +
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
 
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
 
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.
 
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
 
Back
Top