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.

Stutter on a Heading gauge(C++)

Featured Replies

Hello! My name is Markus, I

Hey oYou may wont to try using a sprite instead on a needle macroegMAKE_SPRITE( RMI1_rose, BMP_RMI_ROSE, NULL, NULL, IMAGE_USE_TRANSPARENCY | IMAGE_USE_ERASE | IMAGE_BILINEAR_COLOR | BIT7, 0, 0, 0, //defines upper left corner of mask BMP 144,140, // defines coords of center of BMP ie where it will rotate 1, 1, // defines image scale MODULE_VAR_NONE, NULL, 0, //move in x axis MODULE_VAR_NONE, NULL, 0, //move in y axis PLANE_HEADING_DEGREES_GYRO, NULL, 1 //rotate around center)You will also need to make a mask for the directional Gyro disk this is achieved by creating a image the same dimentions as the HSI Rose BMP and painting the area where the rose is displayed RGB 1,1,1 and where you have your transparency RGB 0,0,0. so you will have 2 BMP's one with your HSI art work and one thats the same just with the area that would have been taken up by the HSI image painted RGB 1,1,1. i hope that makes sence. you will also need to load the mask BMP in the appropriate resources sections.hope that works better for youHave funPaul

Pilots track their lives by the number of hours in the air, as if any other kind of time isn't worth noting.

 

 

  • Moderator

Two things to consider:1. When posting code snippets, please enclose the code with the

 tags to preserve the formatting. It's the icon above this edit window that looks like a scrool of paper above a green printer.2. The resolution and smoothness of a needle's rotation is hugely dependent on the non-linearity table you've defined for it's movement. The more points provided, the smoother the operation.

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Hello!Thank you for your support. Unfortunately nothing seems to help.I converted the gauge to a SPRITE, it doesn

  • Commercial Member

Based off the FSX MAKE_NEEDLE macro definition here's what you passed:NAME= 'RMI1_rose'RES_ID='BMP_RMI_ROSE'NEXT_LIST='NULL'FAILURE='NULL'DRAW_FLAGS='IMAGE_USE_TRANSPARENCY|BIT7'ASI_FLAGS='0'BKND_POSITION_X='389'BKND_POSITION_Y='400'NDL_POSITION_X='327'NDL_POSITION_Y='331'SOURCE_VAR='PLANE_HEADING_DEGREES_MAGNETIC'CALLBACK='NULL'NONLINEARITY_TABLE='NULL'MAX_DEG_PER_SEC='0'I see no NONLINEARITY_TABLE value being passed for this. I also see no callback function assigned.

Ed Wilson

Mindstar Aviation
My Playland - I69

Hello Ed!This was the very first Version. Now I introduced the Nonlinearity, the callback function and the Gauge_Update_CB.Still, the instrument behaves exactly as it did before...Here

I think FSX will rotate gauge images only by an integer amount of degrees. You can easily see this behavior on default gauges if you zoom in in the virtual cockpit mode.You may be able to get better results by generating a custom-rendered bitmap in your gauge (thus doing the smooth rotation yourself), but it is quite a bit of work...

  • Commercial Member
I think FSX will rotate gauge images only by an integer amount of degrees. You can easily see this behavior on default gauges if you zoom in in the virtual cockpit mode.
Um... no, that would be incorrect.

Ed Wilson

Mindstar Aviation
My Playland - I69

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.