Jump to content
Sign in to follow this  
Bryn

My ASN weather radar gauge for FSX (&P3D?)

Recommended Posts

Hi,

 

I wrote a simple weather radar gauge for FSX that uses the ActiveSky Next API.  It has a tilt and range function, and displays areas of precipitation ahead of the aircraft.

 

You can download it at gum.co/bryn (it's free, but you're welcome to support the coffee addiction I developed writing the gauge).

 

Let me know if you run into any problems with it, or have any thoughts and suggestions about how to improve it.  I could add gain, and make it prettier.  

 

Here are a couple of early version screenshots (the changes since these versions are minimal though you'll see the 747 image didn't have tilt nor range, and you can just see the cessna only has range).  

 

Finally a reason to use the route offset!

 

wxRadar80.jpg

 

wxAhead.jpg



This post has been promoted to an article
  • Upvote 3

Streaming at twitch.tv/brynmwr

Share this post


Link to post
Share on other sites

I have used this gauge in P3D and it is awsome. Works as advertised. Great job Bryn

 

Nelson

Share this post


Link to post
Share on other sites

Awesome work, Bryn.


David Zambrano, CFII, CPL, IGI

I know there's a lot of money in aviation because I put it there. 

BetaTeamD.png

Share this post


Link to post
Share on other sites

A suggestion, other than a gain function, maybe a gauge with the grey borders to accompany the NGX. Or perhaps some way to color the outside border of the gauge.


David Zambrano, CFII, CPL, IGI

I know there's a lot of money in aviation because I put it there. 

BetaTeamD.png

Share this post


Link to post
Share on other sites

A suggestion, other than a gain function, maybe a gauge with the grey borders to accompany the NGX. Or perhaps some way to color the outside border of the gauge.

 

At the moment it's just using the stock bitmap that ships in the FSX SDK!  I know a bit about getting code to work, but I know really nothing about illustration and graphic design... do you like my little plus and minus buttons?  Cutting edge graphics there... took me forever to get them right in MS Paint.

 

Anyway, I'll have a crack at changing the background image... it will also give me an opportunity to learn a bit about embedding more than one gauge in the file. 

 

I have a problem with the gain function, though.  I'm not really sure what the logic should be. 

 

At the moment, each pixel on the radar is essentially a number between 0 and 255 that HiFi gives me through their API.

 

I had a look at the dbz numbers at wikipedia.org/wiki/DBZ_(meteorology), and used that as a bit of a guide for the cutoff levels for green, yellow and red on my weather radar.

 

My code looks a bit like this:

 

if (radarPixelReturn > 153) Color = Red;
else if (radarPixelReturn > 115)Color = Yellow;
else if (radarPixelReturn > 60) Color = Green;
 
So my question is this: Does the logic of gain just boil down to lowering and raising those cutoff numbers?  Or is there something more sophisticated going on?
 
Bryn.

Streaming at twitch.tv/brynmwr

Share this post


Link to post
Share on other sites

At the moment it's just using the stock bitmap that ships in the FSX SDK! I know a bit about getting code to work,

 

 

So my question is this: Does the logic of gain just boil down to lowering and raising those cutoff numbers? Or is there something more sophisticated going on?

 

Bryn.

I was actually referring to the outer border that resembles the panel of a 747 or 777. I was thinking in maybe a way to change the border outside the display to resemble the panel of another plane not the display itself.

 

 

When we talk about gain it's not just increasing the amount of cut off for each colorcode, it's actually revealing more of the green as well, or showing areas of green precipitation that are really just thick clouds. But then again the cut off is also altered to a more sensitive setting.


David Zambrano, CFII, CPL, IGI

I know there's a lot of money in aviation because I put it there. 

BetaTeamD.png

Share this post


Link to post
Share on other sites

Yeh, that outer border is a stock FSX SDK image, which is what I'll work on changing.

 

I'll try lowering the cut-off numbers using a +/- button to see what that looks like.  I'll distribute it when it's done -probably a bit later today (Australia time).

 

Cheers,

 

Bryn.


Streaming at twitch.tv/brynmwr

Share this post


Link to post
Share on other sites

Hi,

 

Why not remove the border, if that's not possible... make the border transparent, then you can resize/place the gauge over any CDU in any aircraft.

 

Don't know if this is possible... If so, this would be a nice addition to ANY aircraft.


Former Beta Tester - (for a few companies) - As well as provide Regional Voice Set Recordings

       Four-Intel I9/10900K | One-AMD-7950X3D | Three-Asus TUF 4090s | One-3090 | One-1080TI | Five-64GB DDR5 RAM 6000mhz | Five-Cosair 1300 P/S | Five-Pro900 2TB NVME        One-Eugenius ECS2512 / 2.5 GHz Switch | Five-Ice Giant Elite CPU Coolers | Three-75" 4K UHDTVs | One-24" 1080P Monitor | One-19" 1080P Monitor | One-Boeing 737NG Flight Deck

Share this post


Link to post
Share on other sites

Michael, I'll do that in tomorrow's update - it's possible and very easy.  I should've done it from the beginning, but I was just cutting and pasting SDK code trying to learn it as I went, and I guess it just stayed there.


I've updated the radar.  I think I fixed a problem that Fr. Bill found when he loaded the gauge without and ASN installation.

 

I also added gain, and a little panel changer window.

 

Let me know how it goes. Here's a pic of gain in action.

 

gain.jpg

  • Upvote 3

Streaming at twitch.tv/brynmwr

Share this post


Link to post
Share on other sites

Wow this is fantastic! I just had a flight with it on the 777 and loving it. Just need some tweaking on the tune/tilt; if you run into anything code-wise or graphics, feel free to give me a shout.


3HSAJHT.png

TFDi Design

Share this post


Link to post
Share on other sites

Hi Hank.  Thanks for that. What do you mean about tweaking the tilt?  Cheers, Bryn.


Streaming at twitch.tv/brynmwr

Share this post


Link to post
Share on other sites

Hi Hank.  Thanks for that. What do you mean about tweaking the tilt?  Cheers, Bryn.

 

There are some occasions where storm clouds a little over 1000 ft below go undetected. I tried adjusting the tune (down to at least 10 and back up) but the storm passed and the radar screen was blank. It only detected another formation of storm clouds while I took off. Most of the time, even though the ASN moving map screen showed intense yellow / red / blue returns underneath my aircraft, the screen stays blank the entire flight (not a single return) until I land at JFK, which gave me some green returns at 3000 ft on glideslope.


3HSAJHT.png

TFDi Design

Share this post


Link to post
Share on other sites

The tilt is -10 for downward pointing 10 degrees, and +10 for upward pointing 10 degrees.

 

Pointing down 10 degrees (-10), stuff that is 1000 feet below you should show up on the radar if it is at least 1nm ahead of you.

 

I'm about to do a flight myself, so I'll test this a bit more too.

 

Bryn.


Streaming at twitch.tv/brynmwr

Share this post


Link to post
Share on other sites

Is there anything special I need to do in ASN because mines does not work. Nothing shows on my gauge

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...