Bob, I must say you have an act for making charts.
The charts are trivial once the desired variables have been written to file in .csv format, and that's very simple to do with Blackbox3 ... you can select .csv file output as an option. When I need to see what variables are doing and how they interact from one update cycle to the next, especially when trying to understand something that is transient, then BB3 is the way to go.
As for the WCA method I had to add a conditional statement to correct it as it occasionally will give the opposite (180) track.
Very strange and I wonder why that would be? The WCA calculation uses only Heading, True Airspeed, and Wind direction and speed. If it was me, I would record the following using BB3:
(A: PLANE HEADING DEGREES TRUE, radians)
(A:AIRSPEED TRUE, knots)
(A:AMBIENT WIND DIRECTION, radians)
(A:AMBIENT WIND VELOCITY, knots)
(A:GPS GROUND MAGNETIC TRACK,degrees)
(L:FMC-IRS-GND-TRK-MAG,degrees) your original
before you introduced the conditional correction
Then, whenever (L:FMC-IRS-GND-TRK-MAG,degrees) gives you the opposite track, take a look at the Heading, Wind, and Airspeed values. What are they doing?
Even though your conditional statement correction appears to patch things, it should not be necessary, right? A puzzle.
The WCA aberration I pointed out in the earlier post looks like it's due to a bug in FSX's weather generator, IMHO. The composite chart below shows what was going on. During the flight, the ambient wind was changing direction, starting out coming from the Northeast, then shifting to come out of the Northwest. When it came out of the North, however, it sure looks like FS ran into a MOD or dnor-type problem. As the wind shifted to come from the North, it turns out that for 4.22 seconds, the wind came out of the Southwest, and that seems "buggy" to me.
Below is an enlargement:
My takeaway is that the WCA approach may have more instability than the GeoCalc approach. The other takeaway is that I'm reasonably sure I may be the only person in the world that enjoys getting into the bowels of Flight Sim navigation details like this.
As for the geocalc update method I believe it might have something to do with my system itself. I don't have the best computer to run flight simulator on right now and this results in a modest FPS range from 20-40. I'm not sure if this has a direct affect on it but I suspect it might. On the other hand I have been trying the code at an update frequency of 10. I will give 18 a try and report back. The geocalc method was the most accurate but for whatever reason it would stutter to a value of 350.23 exactly very often.
It's hard to know, isn't it? Multiple gauges competing for gps.dll resources? That's beyond my knowledge base and maybe someone else could add a comment.
As for the 350.23 degree value - check your MAGVAR, and check what that value would be in degrees TRUE. I'm betting it's 360. That's kind of a default 'error' value when something gets screwed up in GeoCalc, like Latitude1 = 0.
Concerning the comments on Update frequency, I'm not sure that's really what is behind this. I would like to see an in-depth Wiki on Update frequency and what different Update frequency selections really do, if anything, to something like the gps.dll module. With my limited understanding, I believe the Flight Sim gauge cycle is 55ms, which is 18 Hz, and AFAIK, the gauge code begins anew every 55ms
no matter your selection of Update frequency. If you select a frequency of 10, for example, my understanding is that the 55ms cycle is not changed - it does not slow it down, but something else is going on. The code in the <Update> section is not evaluated every gauge cycle, or something like that. Would that affect the gps.dll? Maybe. Would it alleviate problems caused by multiple gauges using the gps.dll? That, I really don't know.
Anyway, this may be a topic for guys like Tom Aguilo, Ed Wilson, or Doug Dawson, et. al., to weigh in on.
Bob