Board index FlightGear Development Weather

Advanced Weather debugging

Everything related to weather simulation, visuals should be discussed in the shader subforum.

Re: Advanced Weather debugging

Postby Thorsten » Fri Aug 23, 2019 5:19 pm

If you think you are the subject of my wrath, you misunderstand my motive.


No - I've had much worse. Thing is, as soon as you start coding anything, it's you to whom people complain, write hate mail, whatever, it ceases to be me 8)

It's one of the 'rewards' you get for adding features.

You change what you can, the rest...


Precisely - and here's something you undoubtedly can change if you put half a year in. So we may assume that it's not important enough for you either to invest your time.

There is always a person in charge, even open source, or you would not need to submit the change.


Nope - it's more like peer review. I guess conceptually people would turn to me as author of most of the AW code for additions, but since I've just declared (once again) that I won't be in charge of any further 'life weather' efforts, it's really up to whoever feels like it to design and write it according to his wishes - I would merely make sure that additions don't break the rest of the weather systems (and of course help by explaining how to interface with the existing code).

Or well - the person who decides to put work in is in charge of that work 8)
Thorsten
 
Posts: 12490
Joined: Mon Nov 02, 2009 9:33 am

Re: Advanced Weather debugging

Postby Johan G » Sat Aug 24, 2019 7:35 pm

Thorsten and SurferTim et al.:

Is basic weather still the default and Advanced Weather (AW) need to be turned on by entering the Weather dialog and clicking Apply and Exit?

(For SurferTim, et al., IIRC that is how it used to be at least a few years back since some of the developers thought that AW would be too heavy for lesser computers, or something like that. It has caused some confusion since it at an earlier time looked like it was turned on, as it was shown in the weather dialog, but in fact was not turned on until the user clicked the Apply button).

legoboyvdlp wrote in Thu Aug 22, 2019 1:51 pm:Bishop is in the floor of the valley while Mammoth is high in the mountains, about a kilometer higher than Bishop. This causes higher air pressure (usually about .30 to .40 inHg).

SurferTim wrote in Thu Aug 22, 2019 4:11 pm:Uh, no. [...] This is a pressure thing ADJUSTED FOR ALTITUDE. The altimeter setting at the base of the mountain and at the peak will be the same, unless there is a frontal passage expected.

Indeed. There must be some misunderstanding here. The whole point with reporting the sea level pressure, QNH, instead of that the local pressure at the airport, QFE, is that altitude differences between the reporting stations should not matter (though larger weather patterns of course still does).
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Some YouTube videos
Johan G
Moderator
 
Posts: 6625
Joined: Fri Aug 06, 2010 6:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 2020.3.4
OS: Windows 10, 64 bit

Re: Advanced Weather debugging

Postby SurferTim » Sat Aug 24, 2019 7:52 pm

@Johan G: Personally, I think AW works great. I just recommended somebody else with a high powered computer use it.

Considering the complexity of the simulator, I am amazed how well it works. It is almost a disappointment when I fire up FG and the weather is good.

I was only mentioning what i experienced, assuming the subject of this thread is "Advanced Weather debugging". I meant not to step on anybody's toes.
Fly low. Fly slow. Land on a dime. Twin Otter. https://github.com/SurferTim/dhc6p
My other aircraft is a Citation-X https://github.com/SurferTim/CitationX
PirateAir videos at https://www.youtube.com/user/SurferTim850
User avatar
SurferTim
 
Posts: 1689
Joined: Sun Dec 09, 2018 6:49 pm
Location: Miramar Beach, FL
Callsign: Pirate
Version: 2020.4.0
OS: Ubuntu 18.04

Re: Advanced Weather debugging

Postby wkitty42 » Sun Aug 25, 2019 12:57 pm

Johan G wrote in Sat Aug 24, 2019 7:35 pm:Is basic weather still the default and Advanced Weather (AW) need to be turned on by entering the Weather dialog and clicking Apply and Exit?

with the new built-in launcher, no... if you tell it you want AW then AW is what you get when you enter the sim... no more setting it in the launcher and still having to click the ok button in the weather dialog in-sim to activate... i think this is retained (autosaved?) so that if you enter the sim next time without the launcher, you still get AW but i'm not totally sure about that...

conversely to the above, if you turn off AW in the launcher, it will be off in-sim and (again i think) it will be retained for future flying...

there was certainly some work done in that area for it to work as desired from the launcher so it was truly active when loading...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9125
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: Advanced Weather debugging

Postby legoboyvdlp » Sat Aug 31, 2019 10:56 am

Right - I have to a certain extent reduced the impact in the situation where you get a rapid jump flying between different METARs that are close together but different.
I have increased the fade in rate x10 and also increased the update rate of the closest airport from 60 seconds to 10 seconds after verifying this had no noticeable performance impact.

This should be seen in 2019.2 version (expected fairly soon) ;)

Notice this will not "fix" it, but make it far less noticeable especially over short distances. You might still notice it when crossing the Atlantic.
User avatar
legoboyvdlp
 
Posts: 7981
Joined: Sat Jul 26, 2014 2:28 am
Location: Northern Ireland
Callsign: G-LEGO
Version: next
OS: Windows 10 HP

Re: Advanced Weather debugging

Postby V12 » Sun Sep 01, 2019 8:25 am

Yesterday, on my A320 trip from LSGG to LDDU rapid weather changes again made overspeed conditions and autopilot off three times. In one case there was more than 1200 feets altitude jump (from 39000 to 40200). Poor Bus...
Fly high, fly fast - fly Concorde !
V12
 
Posts: 2757
Joined: Thu Jan 12, 2017 5:27 pm
Location: LZIB
Callsign: BAWV12

Re: Advanced Weather debugging

Postby Thorsten » Sun Sep 01, 2019 9:18 am

Since you officially announced to migrate to FSX - do we now conclude that also has these issues? Must be really annoying...
Thorsten
 
Posts: 12490
Joined: Mon Nov 02, 2009 9:33 am

Re: Advanced Weather debugging

Postby V12 » Sun Sep 01, 2019 10:25 am

lego :
In mistake I logged my trans Alps flight from LFLL to LZIB with 10Hz frequency. Link : https://ulozto.net/file/0pT82BUCF6NO/fdr-csv
Columns description :
METAR station ID
Baro altitude
Baro Pressure
Sea level pressure
KIAS
Ground Speed
Wind direction
Wind Speed (kts)
Static pressure
Total Pressure

Protocol definition :
Code: Select all
<?xml version="1.0"?>
<PropertyList>
 <generic>
  <output>
   <line_separator>newline</line_separator>
   <var_separator>:</var_separator>
   <chunk>
    <name>METAR</name>
    <type>string</type>
    <format>%s</format>
    <node>/environment/metar/station-id</node>
   </chunk>
   <chunk>
    <name>Indicated alt</name>
    <type>float</type>
    <format>%f</format>
    <node>/instrumentation/altimeter[0]/indicated-altitude-ft</node>
   </chunk>
   <chunk>
    <name>Pressure inhg</name>
    <type>float</type>
    <format>%f</format>
    <node>/environment/pressure-inhg</node>
   </chunk>
   <chunk>
    <name>Pressure sea level ingh</name>
    <type>float</type>
    <format>%f</format>
    <node>/environment/pressure-sea-level-inhg</node>
   </chunk>
   <chunk>
    <name>KIAS</name>
    <type>float</type>
    <format>%f</format>
    <node>/instrumentation/airspeed-indicator[0]/indicated-speed-kt</node>
   </chunk>
   <chunk>
    <name>TAS </name>
    <type>float</type>
    <format>%f</format>
    <node>instrumentation/tas-indicator/indicated-speed-fps</node>
    <factor>0.592484</factor>
   </chunk>
   <chunk>
    <name>GS </name>
    <type>float</type>
    <format>%f</format>
    <node>/velocities/groundspeed-kt</node>
   </chunk>
   <chunk>
    <name>wind direction</name>
    <type>float</type>
    <format>%f</format>
    <node>/environment/wind-from-heading-deg</node>
   </chunk>
   <chunk>
    <name>wind speed</name>
    <type>float</type>
    <format>%f</format>
    <node>/environment/wind-speed-kt</node>
   </chunk>
   <chunk>
    <name>stat_pressure</name>
    <type>float</type>
    <format>%f</format>
    <node>/systems/static[0]/pressure-inhg</node>
   </chunk>
   <chunk>
    <name>total_pressure</name>
    <type>float</type>
    <format>%f</format>
    <node>/systems/pitot[0]/measured-total-pressure-inhg</node>
   </chunk>
  </output>
 </generic>
</PropertyList>


Ubuntu 18.04, FG 2018.3.1. with unmodified weather nasal scripts.
Fly high, fly fast - fly Concorde !
V12
 
Posts: 2757
Joined: Thu Jan 12, 2017 5:27 pm
Location: LZIB
Callsign: BAWV12

Re: Advanced Weather debugging

Postby legoboyvdlp » Sun Sep 01, 2019 3:24 pm

FG 2018.3.1

Yeah, well, that's the whole point, try the nightly... Remember the correction isn't applied automatically to your computer... :P
User avatar
legoboyvdlp
 
Posts: 7981
Joined: Sat Jul 26, 2014 2:28 am
Location: Northern Ireland
Callsign: G-LEGO
Version: next
OS: Windows 10 HP

Re: Advanced Weather debugging

Postby V12 » Sun Sep 01, 2019 4:32 pm

In this case I'm not complaining on AW bug. I know that I'm not on newest FG.
All my previously recorded data was with 1 Hz frequency, that last in mistake at 10 Hz. I hope that it can help You to better tune the AW.
Fly high, fly fast - fly Concorde !
V12
 
Posts: 2757
Joined: Thu Jan 12, 2017 5:27 pm
Location: LZIB
Callsign: BAWV12

Re: Advanced Weather debugging

Postby Thorsten » Sun Sep 01, 2019 5:37 pm

I hope that it can help You to better tune the AW.


If you've made a change to a piece of code, it's really not helpful to learn that an unchanged version doesn't show any change. That's the expected thing - if you run something unchanged, everything works out as before.

If you want to help, you actually need to test the changed version to see what the change did. Really.
Thorsten
 
Posts: 12490
Joined: Mon Nov 02, 2009 9:33 am

Re: Advanced Weather debugging

Postby legoboyvdlp » Sun Sep 01, 2019 8:13 pm

I had good opportunity to test it today flying up to Atlanta from Miami - looks like its helped quite a bit, especially with pressure changes (deviation from altitude less than 50 feet as the autopilot managed to correct).
User avatar
legoboyvdlp
 
Posts: 7981
Joined: Sat Jul 26, 2014 2:28 am
Location: Northern Ireland
Callsign: G-LEGO
Version: next
OS: Windows 10 HP

Re: Advanced Weather debugging

Postby V12 » Mon Sep 02, 2019 8:54 am

Superb work, I will test it as soon as possible. Is possible to use Your changed AW scripts in FG 2018.3.1, or need I install nightly build of 2019.x.x ? Because I have graphics trouble with previous nightly build installed 2 weeks ago.
Fly high, fly fast - fly Concorde !
V12
 
Posts: 2757
Joined: Thu Jan 12, 2017 5:27 pm
Location: LZIB
Callsign: BAWV12

Re: Advanced Weather debugging

Postby V12 » Mon Sep 02, 2019 12:29 pm

Recorded data KATL-KMIA, with UFO simulated flight with GS around 620 kts https://ulozto.net/file/MO4Q23h6swX7/fdr-csv

Columns description :
METAR station ID
Baro altitude
Baro Pressure
Sea level pressure
KIAS
Ground Speed
Wind direction
Wind Speed (kts)
Static pressure
Total Pressure

UFO doesn't displays KIAS.

Data recorded with FG nightly buid, updated today (2019-09-02 around 1100Z), then I downloaded and replaced local_weather.nas file. Download link - https://sourceforge.net/p/flightgear/fg ... eather.nas
Fly high, fly fast - fly Concorde !
V12
 
Posts: 2757
Joined: Thu Jan 12, 2017 5:27 pm
Location: LZIB
Callsign: BAWV12

Re: Advanced Weather debugging

Postby wkitty42 » Mon Sep 02, 2019 4:35 pm

V12 wrote in Mon Sep 02, 2019 12:29 pm:UFO doesn't displays KIAS.

right... the only speeds given are the throttle speed and the ground speed and those are given on the HUD...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9125
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

PreviousNext

Return to Weather

Who is online

Users browsing this forum: No registered users and 1 guest