CAPTAIN SIM FORUM
757 Captain III >> 757 Captain III - General >> SDK, LVAR, custom key mapping etc
https://www.captainsim.org/forum/csf.pl?num=1522250884

Message started by zulukilo on Mar 28th, 2018 at 3:28pm

Title: Re: SDK Question
Post by matta757 on Jan 1st, 2019 at 5:42pm

Captain Sim wrote on Jan 1st, 2019 at 4:41pm:
Thanks!


matta757 wrote on Jan 1st, 2019 at 12:05am:

So here's my first question... I have a real 757 MCP. I have been looking over the CS 757 SDK and I can't seem to tell for sure whether or not it will allow me to WRITE a numeric value from the digits on the real MCP to a value in the CS 757 MCP. This includes the IAS/MACH, HDG, V/S, and ALT windows.

All values on the software MCP are results of its internal calculations. You cant (well you could but you shouldn't) just overwrite the numbers by some random ones from an external hardware.


Quote:

By the same token, can it go the other way? Does the SDK give me the capability to read the value of the digits on the MCP?

Yes. And this is the way to go if you wish to synchronize the hardware and software MCP. Given that the software is always a master (main and self-sufficient unit), the hardware is a servant (just an extra input-output interface).


Thank you for your reply. With all due respect, I was not talking about using random numbers to overwrite the values on the MCP.

I am talking about using a REAL MCP to set the values on the software MCP. Say that I want to set an altitude of 25,000 on the MCP. I would turn my real MCP to show 25,000 but somehow that value needs to be written to the sim software so that it will set the altitude value in the software MCP to 25,000. If I am not supposed to write "random" numbers to the software, how exactly is one supposed to take the value set on a real MCP and set that in the sim?

Other SDK's that I have seen (including the one for the LVLD767) have variables that are read, writable, or both read/write. The MCP values are an example of a read/write variable because they need to be modified by both the software but also by any hardware. I am confused by the second part of your response saying that the hardware being a slave to the software. At some point, the software also needs to listen to the hardware in order to set the MCP values.

Thank you for your insights.

Matt

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