Hi,
I have the following in my script:
event.offset(0x0842,"SW","climbp") -- vertical speed change - 30801
event.offset(0x0842,"SW","climbt") -- vertical speed change - 7727
event.offset(0x0842,"SW","climbj") -- vertical speed change - 5505
event.offset(0x0842,"SW","cruisep") -- vertical speed change - 4260
event.offset(0x0842,"SW","cruiset") -- vertical speed change - 3499
event.offset(0x0842,"SW","cruisej") -- vertical speed change - 2972
event.offset(0x0574,"SD","descentp") -- altitude change - 1976
event.offset(0x0574,"SD","descentt") -- altitude change - 641
event.offset(0x0574,"SD","descentj") -- altitude change - 567
event.offset(0x0574,"SD","finalp") -- altitude change - 515
event.offset(0x0574,"SD","finalt") -- altitude change - 487
event.offset(0x0574,"SD","finalj") -- altitude change - 454
You can see they are 2 sets of Offsets, Each set has the same Offset that is called 6 times when it gets triggers.
At ther end of each line is the number of times each event was called during a flight of just over 3 hours.
Is it normal for there to be such a huge difference between the times each event is called? I guess I was expecting them to be called equally.
The issue I am having is when the plane is descending at 4000fpm there are 12 events getting called in rapid succession. One of the functions (descentj) has a flag that is set when the altitude gets below 27,000 feet. What I found was that was not set until the plane was at around 6,000 feet and it seems it's because that function is not called often enough to be triggered any earlier.
I am thinking I will have to change the script to have 2 events and 2 functions and move the other functions into one of those 2.
Cheers - Rick