Comments on: Datarefs Vs. Commands IV: Duplication https:/2009/04/datarefs-vs-commands-iv-duplication/ Developer resources for the X-Plane flight simulator Tue, 01 Feb 2011 19:01:20 +0000 hourly 1 https://wordpress.org/?v=6.6.1 By: Viktor https:/2009/04/datarefs-vs-commands-iv-duplication/#comment-741 Fri, 29 May 2009 06:26:09 +0000 http://www.x-plane.com/dev_blog/?p=220#comment-741 I have a question about commands and their callbacks. Does the callback get bound to one command (with XPLMRegisterCommandHandler), or can a set of commands all use the same callback (albeit with different inRefcon pointers)?

]]>
By: Benjamin Supnik https:/2009/04/datarefs-vs-commands-iv-duplication/#comment-742 Sat, 25 Apr 2009 21:46:00 +0000 http://www.x-plane.com/dev_blog/?p=220#comment-742 sim/autopilot/heading<br /><br />see commands.txt in beta 7. Basically commands are not divided into cockpit and flightmodel. All commands are actuated from the cockpit...that is, commands represent what the pilot wants, which is only sometimes what really happens!]]> Oops — Bob, the original article text is correct. The COMMAND for the autopilot is:

sim/autopilot/heading

see commands.txt in beta 7. Basically commands are not divided into cockpit and flightmodel. All commands are actuated from the cockpit…that is, commands represent what the pilot wants, which is only sometimes what really happens!

]]>
By: Benjamin Supnik https:/2009/04/datarefs-vs-commands-iv-duplication/#comment-743 Sat, 25 Apr 2009 21:45:00 +0000 http://www.x-plane.com/dev_blog/?p=220#comment-743 sim/cockpit/autopilot - I will edit the post.]]> Hi Bob, Yeah – I think you are right – that should be sim/cockpit/autopilot – I will edit the post.

]]>
By: Anonymous https:/2009/04/datarefs-vs-commands-iv-duplication/#comment-744 Sat, 25 Apr 2009 19:04:00 +0000 http://www.x-plane.com/dev_blog/?p=220#comment-744 sim/autopilot/heading that lets us arm heading mode."<br /><br />Did you mean "sim/cockpit/autopilot/heading" instead?<br /><br />Following this line, my version of dataref.txt recommends using:<br /><br />"sim/cockpit/autopilot/heading_mag" as this is the preferred setting.<br /><br />Thanks<br />Bob (7g_pull on X-Plane forum)]]> Hi Ben,

Regarding your post: “To go back to our autopilot example, we have on command: sim/autopilot/heading that lets us arm heading mode.”

Did you mean “sim/cockpit/autopilot/heading” instead?

Following this line, my version of dataref.txt recommends using:

sim/cockpit/autopilot/heading_mag” as this is the preferred setting.

Thanks
Bob (7g_pull on X-Plane forum)

]]>