CAPTAIN SIM FORUM
737 Classic >> 737 Classic - General >> SDK
https://www.captainsim.org/forum/csf.pl?num=1617570649

Message started by Skipy on Apr 4th, 2021 at 9:10pm

Title: SDK
Post by Skipy on Apr 4th, 2021 at 9:10pm
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.

Title: Re: SDK
Post by Markoz on Apr 5th, 2021 at 1:46am
No SDK yet

Title: Re: SDK
Post by EY on Apr 5th, 2021 at 4:00pm
The manuals and list of the elements

Title: Re: SDK
Post by Skipy on Apr 5th, 2021 at 9:33pm

EY wrote on Apr 5th, 2021 at 4:00pm:
The manuals and list of the elements


Perfect :-). Thanks a lot.

Skip.

Title: Re: SDK
Post by Skipy on Apr 17th, 2021 at 3:47pm
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.



Title: Re: SDK
Post by Skipy on May 9th, 2021 at 9:15pm
No answer?

Title: Re: SDK
Post by EY on Jun 8th, 2021 at 6:12pm
Sorry for the late response  :-[
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.

Title: Re: SDK
Post by Skipy on Jun 15th, 2021 at 1:44pm
Thanks for the answer. I'm resuming my work on the CS737 now :-). With the other models klid method was not necessary for switches...

Skip.

Title: Re: SDK
Post by Knoblet on Jul 21st, 2021 at 12:47pm
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

Title: Re: SDK
Post by Skipy on Jul 24th, 2021 at 9:32pm
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)


Title: Re: SDK
Post by Knoblet on Jul 28th, 2021 at 7:23pm
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.

Title: Re: SDK
Post by Gary Anderson on Aug 13th, 2021 at 8:36pm
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

Title: Re: SDK
Post by Gary Anderson on Aug 20th, 2021 at 10:38pm
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 | 60 Downloads )

CAPTAIN SIM FORUM » Powered by YaBB 2.6.0!
YaBB Forum Software © 2000-2024. All Rights Reserved.