Jump to content

Autopilot Datarefs


Recommended Posts

Hello Goran, i have a hardware-based autopilot interface. On the device each key is using 1 dataref. It works.... but not as smoothly as the virtual buttons.

I ran a dataref monitoring tool, to see what datarefs used when each virtual key is pressed. I was surprised as i found that of then there is more than one for many of the buttons.

I have a few questions: 

1. When there are multiple datarefs, are these being issues by each key or is it a chain reaction from 1 initial dataref?

2. When there are multiple datarefs, are they required to make each function work correctly? 

3. If #2 is true, are they issued all at once, or in a sequence?

Im planning to run tests tomorrow, i am wondering if anyone has figured something out here. 

The commands from my monitoring tests:

FLC
sim/GPS/g1000n1_flc
SPD
sim/autopilot/knots_mach_toggle
tbm900/actuators/ap/spd
VS UP/DN
tbm900/actuators/ap/nose_up
tbm900/actuators/ap/nose_down
VS
sim/autopilot/vertical_speed
sim/GPS/g1000n1_vs
tbm900/actuators/ap/vs
VNY
sim/autopilot/vnav
sim/GPS/g1000n1_vnv
tbm900/actuators/ap/vnv
ALT
sim/autopilot/altitude_hold
sim/GPS/g1000n1_alt
tbm900/actuators/ap/alt
YD
sim/systems/yaw_damper_toggle
tbm900/actuators/ap/yd
AP
sim/autopilot/autothrottle_off
sim/autopilot/fdir_servos_toggle
sim/autopilot/fdir_toggle
sim/autopilot/servos_toggle
sim/GPS/g1000n1_ap
sim/GPS/g1000n1_fd
tbm900/actuators/ap/ap
BANK
tbm900/actuators/ap/bank
FD
sim/autopilot/fdir_toggle
sim/GPS/g1000n1_fd
tbm900/actuators/ap/fd
NAV
tbm900/actuators/ap/nav
APR
sim/autopilot/glide_slope
tbm900/actuators/ap/apr
HDG
sim/autopilot/heading
sim/GPS/g1000n1_hdg
tbm900/actuators/ap/hdg
 

Link to post
Share on other sites

Datarefs fall into different categories

Indicators - (A heading indicator that displays the aircrafts current heading)

actuators - (The knob on an autopilot heading dial that changes the heading bug and commands the aircraft to follow a specific heading)

(Also some are writeable and some are not.  Some are ratios...0 to 1... and some are booleans...negative numbers, 0, positive numbers)

And then they can fall into the different types of systems

air driven gyro

electric

AHARS

 

Whenever you see a "TBM" dataref, it's a custom dataref that is code driven.

a "sim" dataref is a default dataref that comes with X-Plane.

In some cases, the TBM uses default datarefs, because many of those work very well.  

To answer your questions,

1.  a dataref that is an actuator can absolutely trigger a sequence of events that trigger and activate indicators, and if there is code attached, they can also trigger other actuator datarefs.

2.  actuators and indicators, yes.  In most cases.

3.  1 triggers the next, and then the next, and so on.

(I hope this answers your question).

 

Edited by Goran_M
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...