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

 

Page Index Toggle Pages: 1 Send TopicPrint
 10 SDK (Read 2915 times)
Skipy
Full Member
*
Offline



Posts: 25
Joined: May 28th, 2018
SDK
Apr 4th, 2021 at 9:10pm
Print Post  
Hi,

Is an SDK documentation already available so I can program my VRi MCP with ipc.controls and LVars? It was very easy to use it for the 757 and 767 instead or searching information with scan tools.
  
Back to top
 
IP Logged
 
Markoz
CS Team
*
Offline



Posts: 12349
Location: Victoria, Australia
Joined: Apr 24th, 2009
Gender: Male
Re: SDK
Reply #1 - Apr 5th, 2021 at 1:46am
Print Post  
No SDK yet
  

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
 
EY
CS Team
*
Offline



Posts: 338
Location: Canada
Joined: Nov 9th, 2005
Gender: Male
Re: SDK
Reply #2 - Apr 5th, 2021 at 4:00pm
Print Post  
  

Back to top
IP Logged
 
Skipy
Full Member
*
Offline



Posts: 25
Joined: May 28th, 2018
Re: SDK
Reply #3 - Apr 5th, 2021 at 9:33pm
Print Post  
EY wrote on Apr 5th, 2021 at 4:00pm:


Perfect Smiley. Thanks a lot.

Skip.
  
Back to top
 
IP Logged
 
Skipy
Full Member
*
Offline



Posts: 25
Joined: May 28th, 2018
Re: SDK
Reply #4 - Apr 17th, 2021 at 3:47pm
Print Post  
Hum,
I've just started to program my VRi MCP using the SDK and I have issues with I don't have with 757/767 products.

First function with battery switch and writing to O07_004_CAP and O07_004_SW2 LVars has no effect at all. Ok I'll use standard FS command to switch it on and off.

Then I wanted to start the APU. Writing to O17_001_SW3 LVar makes the switch move correctly (0=Off, 1=On, 2=Start) but nothing really happens. APU doesn't start. If I use the mouse to start it up and then use ipc.writeLvar("L:O17_001_SW3", 0) to switch it off, the switch is moving to off but the APU is still running?

Are you sure the SDK is fully implemented?

Skip.


  
Back to top
 
IP Logged
 
Skipy
Full Member
*
Offline



Posts: 25
Joined: May 28th, 2018
Re: SDK
Reply #5 - May 9th, 2021 at 9:15pm
Print Post  
No answer?
  
Back to top
 
IP Logged
 
EY
CS Team
*
Offline



Posts: 338
Location: Canada
Joined: Nov 9th, 2005
Gender: Male
Re: SDK
Reply #6 - Jun 8th, 2021 at 6:12pm
Print Post  
Sorry for the late responseĀ  Embarrassed
1) For battery on/off - you can use the standard FS command, or, set 2507004 to (L:klid). How to use klid is written in the CS737CLASSIC_MANUAL_PART6.pdf
2) APU. It's a bit more complicated. To start APU the pilot has to hold the start position for more than 2 seconds. So, set the value 2 to O17_001_SW3 and set the value 2517001 to klid variable.
  

Back to top
IP Logged
 
Skipy
Full Member
*
Offline



Posts: 25
Joined: May 28th, 2018
Re: SDK
Reply #7 - Jun 15th, 2021 at 1:44pm
Print Post  
Thanks for the answer. I'm resuming my work on the CS737 now Smiley. With the other models klid method was not necessary for switches...

Skip.
  
Back to top
 
IP Logged
 
Knoblet
New Member
Offline



Posts: 4
Joined: Jan 29th, 2019
Re: SDK
Reply #8 - Jul 21st, 2021 at 12:47pm
Print Post  
What parameters should be used for the engine start levers
P10_010_LVR and P10_011_LVR?

Using an FSUIPC mouse macros set to drag via an Honeycomb throttle button works ok setting to idle but cutoff does not. Parameters used are 0 and 100
  
Back to top
 
IP Logged
 
Skipy
Full Member
*
Offline



Posts: 25
Joined: May 28th, 2018
Re: SDK
Reply #9 - Jul 24th, 2021 at 9:32pm
Print Post  
To stop engines I'm using:
ipc.writeLvar("P10_011_LVR", 100) -- Fuel R
ipc.writeLvar("P10_010_LVR", 100) -- Fuel L

For startup I'm cheating using default autostart engines function:
ipc.control(66224)

  
Back to top
 
IP Logged
 
Knoblet
New Member
Offline



Posts: 4
Joined: Jan 29th, 2019
Re: SDK
Reply #10 - Jul 28th, 2021 at 7:23pm
Print Post  
Thanks Skipy. I will try again.

I use a GoFlight MCPPRO and have managed to program all buttons and switches on the aircraft MCP via GIT (Goflight Interface Tool from Pollypot software) but this software does not recognise the 7 rocker switches on the Bravo so cannot program  them, hence the FSUIPC mouse macro. The two remaining problems (well not much) for the MCPPro are IAS displaying -1 in VNAV and -8100 when not in VS. All other modes are fine.
  
Back to top
 
IP Logged
 
Gary Anderson
New Member
Offline



Posts: 2
Joined: Aug 6th, 2021
Re: SDK
Reply #11 - Aug 13th, 2021 at 8:36pm
Print Post  
Aloha,

After trying to get Klid to work with Glareshield functions, and I know of others with input issues, I kinda found a work around.
I have a registered FSPUIC to be clear. I use the mouse macro for momentary buttons, switches etc.
Recall was giving me fits, active errors wound not latch. So here is my fix to get the latching and click. After getting the mouse macro, I modify with a p for push. than I copy it and name it with a r, and use mouse modifier 13 for release. I use Mobiflight and use the Lua function for my hardware, So far it has worked with ap and Glareshield functions. Hope it may help someone else.

[Macros]
1=Recallp=RX4000027d,3
2=Recallr=RX4000027d,13
3=MasterCautionp=RX400000ee,3
4=MasterCautionr=RX400000ee,13
5=FireWarnp=RX400000ef,3
6=FireWarnr=RX400000ef,13

Gary Anderson
Hilo Hawaii
  
Back to top
 
IP Logged
 
Gary Anderson
New Member
Offline



Posts: 2
Joined: Aug 6th, 2021
Re: SDK
Reply #12 - Aug 20th, 2021 at 10:38pm
Print Post  
Proof of concept testing for home cockpit based on the CS 737-300, so far all is working well.  Thanks much Captain Sim, Loving the plane so far.

Mahalo,
Gary Anderson
Hilo Hawaii
  

Testing.png ( 1215 KB | 59 Downloads )
Testing.png
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint
 
  « Board Index ‹ Board  ^Top