Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

AP_PITCH_REF_SELECT help

Featured Replies

Hi

Anyone know how the Event ID,  AP_PITCH_REF_SELECT works?

 

I'm using pitch to control speed. Rather annoying I cannot formulate a pitch value and the feed this value into FSX.

 

cheers,

Nick

Just tested something and I believe this hypothesis works  - AP_PITCH_REF_SELECT selects the instrument the autopilot will reference it's pitch from. For instance, you can have separate instruments with their own failures by having them in the aircraft.cfg listed that way and using indexing to separate them.  There are others worded this way in the SDK - airspeed, altitude, VSI etc..

 

Having separate instruments listed in the .cfg also provides a separate standby altimeter with it's own isolated kohlmann setting. -
 

[airspeed_indicators]
airspeed_indicator.0=1,0  // MAIN
airspeed_indicator.1=1,0  // STBY
airspeed_indicator.2=1,0  // AP/HUD

[direction_indicators]
direction_indicator.0=3,0 // MAIN
direction_indicator.1=3,0 // BDHI
direction_indicator.2=3,0 // AP/HUD
direction_indicator.3=3,0 // HSI

[attitude_indicators]
attitude_indicator.0=2 // MAIN
attitude_indicator.1=2 // STBY
attitude_indicator.2=2 // AP/HUD

[altimeters]
altimeter.0=1 // MAIN
altimeter.1=1 //STBY
altimeter.2=1 //AP/HUD

 
And some examples of using indexing or other to separate them -
 

(A:HEADING INDICATOR 2, radians)
(A:PARTIAL PANEL HEADING:2, bool)
(A:PARTIAL PANEL ATTITUDE:2, bool) if{ -20 } els{ (A:Attitude indicator pitch degrees:2,degrees)
(A:PARTIAL PANEL AIRSPEED:3, bool)
(A:Attitude indicator bank degrees:3, radians)
(A:PARTIAL PANEL HEADING:3, bool) (A:PARTIAL PANEL ATTITUDE:3, bool) || !
(A:Kohlsman setting hg:2,inHg)
2 (>K:KOHLSMAN_DEC)
2 (>K:KOHLSMAN_INC)
 

 The test I did was such and it did not work. I already had an easily adjustable gauge in an aircraft. 

(A:Autopilot pitch hold ref, degrees) 1 + (>K:AP_PITCH_REF_SELECT)
(A:Autopilot pitch hold ref, degrees) -1 + (>K:AP_PITCH_REF_SELECT) 

The only known pitch adjustment commands that I know of are -

(>K:AP_PITCH_REF_INC_DN) 
(>K:AP_PITCH_REF_INC_UP)

And a hypothesis (not tested) is that something like below would select pitch reference 2 then apply the increment to that instrument.

2 (K:>AP_PITCH_REF_SELECT) (>K:AP_PITCH_REF_INC_UP) 

 
 
 

20AUG21_Avsim_Sig.png?dl=1  FS RTWR   SHRS F-111   JoinFS   Little Navmap 
 

 

  • Commercial Member

OMG... are you kidding me???

 

AP_PITCH_REF_SELECT is the event that tells the sim to use the +/- key events to increment and/or decrement the current pitch reference value. It works just like KEY_VOR_OBS does... and if I remember my old FS keyboard shortcuts... ctrl-O was the key you pressed before using the +/- keys to increment/decrement the VORs OBS course. Pressing ctrl-O was the same as code sending the KEY_VOR_OBS event to the sim.

Ed Wilson

Mindstar Aviation
My Playland - I69

  • Author

Thanks guys.

I too read the SDK, but as often as not, are non the wiser :mad:

 

I am trying to hold the speed using pitch, so if I increase the throttles, the pitch increases controlling the speed and the aircraft climbs.

With the distinct lack of pitch controls I was hoping this event id would add a useful control. I was hoping to feed a pitch value into FSX, but there is no SET event for this.

I have AP_PITCH_REF_INC_UP and DN used in a G1000 and allows manual control of pitch used with ATT HOLD.

I have tried using speed change to access AP_PITCH_REF_INC_UP and DN, but feedback loops in my experiece are too slow in FSX, and the aircraft ends up porpoising.

 

Nick

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.