Visit Captain Sim web site  
  Welcome, Guest. Please Login or Register

 

Page Index Toggle Pages: 1 2 [3]  Send TopicPrint
 25 SDK, LVAR, custom key mapping etc (Read 16368 times)
JasonPC
Full Member
*
Offline



Posts: 8
Joined: Jun 2nd, 2018
Re: Assigning a button for TOGA
Reply #30 - Jul 27th, 2019 at 3:39am
Print Post  
Hazzanz wrote on Jun 26th, 2019 at 1:09pm:
Hi All,
I am struggling to get this setup. I am using Spad.Next and have managed to program just about everything I need. The one main one I need to add is TOGA. I have used KLID for most things but I cannot figure out how to enter a TOGA button push from the example in the SDK Manual:
E.g. to press the G02_003_BUT:
(L:G02_003_BUT) = 1

Has anyone got any ideas?


You have to set LVAR KLID = 1703007 to engage the EPR button
  
Back to top
 
IP Logged
 
dalpi
New Member
Offline



Posts: 2
Joined: Mar 12th, 2020
Set altimeter/baro L:Var
Reply #31 - Mar 12th, 2020 at 2:52pm
Print Post  
Hello everybody!

I'm using the L:Vars to interface real 757/767 hardware which works quite nicely. Currently I'm working on the altimeter and I want to set the altimeter/baro value directly instead of using a knob (rotary) action. Is this possible? I tried sending absolute values to both hPa and inHg variables, as well as to the knob L:Var without success.

Best regards,

Chris
  
Back to top
 
IP Logged
 
dalpi
New Member
Offline



Posts: 2
Joined: Mar 12th, 2020
Re: SDK, LVAR, custom key mapping etc
Reply #32 - Mar 19th, 2020 at 10:01am
Print Post  
Hi all,

was there any success writing directly absolute values to the MCP? As mentioned above I can't write absolute values to the altimeter's baro.
While an altimeter change through FSUIPC changes all 3 baros at once, I want to change the Captain and FO altimeter settings separately.

Chris
  
Back to top
 
IP Logged
 
Kees
Full Member
*
Offline



Posts: 72
Joined: Apr 20th, 2020
How to get the IND out of the CS757 SDK
Reply #33 - Apr 20th, 2020 at 9:13am
Print Post  
Hi,

For the 7 segment displays i would use the IND's from the CS757 SDK. But how should I use them, interprete them? For example If i would to assign the 7-segment displays in my MCP regarding the IAS, I have to use the G03_001_IND. But where can I find the parameters of this VAR?

Kind regards,
Kees Schroijen
  
Back to top
 
IP Logged
 
Kees
Full Member
*
Offline



Posts: 72
Joined: Apr 20th, 2020
Re: SDK, LVAR, custom key mapping etc
Reply #34 - Apr 21st, 2020 at 8:33am
Print Post  
Hi,

I solved my problem i mentioned erlier, but now my next problem.

If i turn the hdg Knob in my own build MCP, I would like that the display of the hdg on the MCP also increases or decreases. So if the heading in the CS757 MCP says 090 and on my own mcp i turn the knob counterwise, the heading on the mcp in the panel of teh CS757 should increase. I have allready written to L:klid = 1703002, but that doesn't do the job.

Kind regards,
Kees Schroijen
  
Back to top
 
IP Logged
 
Markoz
CS Team
*
Offline



Posts: 12349
Location: Victoria, Australia
Joined: Apr 24th, 2009
Gender: Male
Re: SDK, LVAR, custom key mapping etc
Reply #35 - Apr 21st, 2020 at 1:13pm
Print Post  
From the SDK:

FOR KNOBS ( _KNO)

1. Convert the element's name into an ID number.
2. Add the - (minus) for counterclockwise rotation.

For example:

(L:klid) = 1702003 - clockwise rotation.
(L:klid) = -1702003 - counterclockwise rotation.


So would the above from the SDK mean L:1702003 is clockwise rotation, and L:-1702003 is counterclockwise rotation?

If so, could this mean you need to use L:1703002 for clockwise rotation, and L:-1703002 for counterclockwise rotation (or something like that).

Note. I have no way of testing to know if this is correct, or not. Huh

  

Mark Fletcher



PC: i7 10700K @3.8/5.1GHz | 64GB DDR4 3200 | 8GB RTX 2070 | 32" LCD Monitor | 1TB SSD & 2x2TB SSD | Win 11 Pro - FSX/FSX-SE/P3D3/P3D4/P3D5/P3D6/MSFS2020
15.6" Gaming Laptop: i7 7700HQ | 32GB DDR4 | 6GB GTX 1060 | 256GB SSD & 1TB HDD | Win 10 Pro 64bit - FSX-SE/P3D4
Back to top
 
IP Logged
 
Kees
Full Member
*
Offline



Posts: 72
Joined: Apr 20th, 2020
Re: SDK, LVAR, custom key mapping etc
Reply #36 - Apr 22nd, 2020 at 8:53am
Print Post  
Hi,

This program code works for the altitude (with the correct klid of course) but not for the heading in the MCP. When the heading is eg. 090 and I turn the knob of the heading (ipc.writeLvar("klid", 1703015)), the heading stays 090.

Kind regards,
Kees
  
Back to top
 
IP Logged
 
flyingjayaraj
New Member
Offline



Posts: 3
Joined: Aug 3rd, 2020
MCP -B757 - SDK Guidance
Reply #37 - Aug 8th, 2020 at 7:30am
Print Post  
Hi All, making an B757 MCP, using the CW757 and Mobiflight software. I have the CW757 SDK, but i am having a problem interpreting it as am a newbie at this.

The Lvar for the Airspeed Display is G03_001_IND

How do i use this info to display the data on the 7-Segment -  Mobiflight uses offsets / the L:var has to be written to a free fsuipc offset and used thereafter

Is there any other software i can use that will be supported by CW757 or incase there is any script / technique i can use to display the data, please do share.  Sad

Woud there be any guide or post that deals with using the SDK for home cockpit building on the forum ?  Huh

Regards
AJ
  
Back to top
 
IP Logged
 
Luke Kolin
Full Member
*
Offline



Posts: 5
Joined: Sep 20th, 2020
Re: SDK, LVAR, custom key mapping etc
Reply #38 - Sep 20th, 2020 at 8:13pm
Print Post  
Markoz wrote on Apr 21st, 2020 at 1:13pm:
From the SDK:

FOR KNOBS ( _KNO)

1. Convert the element's name into an ID number.
2. Add the - (minus) for counterclockwise rotation.

For example:

(L:klid) = 1702003 - clockwise rotation.
(L:klid) = -1702003 - counterclockwise rotation.


So would the above from the SDK mean L:1702003 is clockwise rotation, and L:-1702003 is counterclockwise rotation?

If so, could this mean you need to use L:1703002 for clockwise rotation, and L:-1703002 for counterclockwise rotation (or something like that).

Note. I have no way of testing to know if this is correct, or not. Huh


It doesn't appear to be correct. I am trying to write to the FO HSI range knob (P20_005_KN6) by writing 2620005 and -2620005 to the KLID variable, and neither has any effect. :/

Cheers

Luke
  
Back to top
 
IP Logged
 
Luke Kolin
Full Member
*
Offline



Posts: 5
Joined: Sep 20th, 2020
Re: SDK, LVAR, custom key mapping etc
Reply #39 - Sep 29th, 2020 at 2:14pm
Print Post  
Has anyone managed to get the KLID LVAR working properly? I've tried it for several different buttons, via FSUIPC offsets as well as Lua, with no effect.

Undecided

Cheers

Luke
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 2 [3] 
Send TopicPrint
 
  « Board Index ‹ Board  ^Top