June 22, 200619 yr I'm trying to insert my own code into a .gau file. It all compiles, but there is no effect. I naively assumed that after inserting the code into the sample attitude gauge that comes with the SDK, the .gau file would be read and executed cyclically. Is there a way to get MS FS to execute such code? Thanks for any help.
June 22, 200619 yr Where did you put the code? Your best bet is within the gauge callback function, specifically, within the PANEL_SERVICE_PRE_UPDATE case.Doug
June 22, 200619 yr Thanks for your reply!I searched the Panels SDK documentation for PANEL_SERVICE_PRE_UPDATE and did not find a reference. Could you point me in the right direction as to its usage? Thanks again.
June 22, 200619 yr Have a look at the source code for the FlightMap sub-gauge in the example code in the SDK. It uses a gauge callback, although the only case it uses is PANEL_SERVICE_PRE_DRAW. This case is only executed when the gauge is visible on the screen, which is why PANEL_SERVICE_PRE_UPDATE is more likely suitable for your purposes. It is executed at a rate of 18Hz, regardless of whether the gauge is visible or not.Doug
June 22, 200619 yr Thank you very much! I had went and deleted all the other gauges and was only messing with the attitude one for my .gau. This looks promising! Thanks again.
June 22, 200619 yr Get this, it's worth the price of admission:http://library.avsim.net/search.php?Search...s2004&Go=SearchDoug
June 22, 200619 yr Author Moderator Gee, I must have been sleeping and missed the new update... ;) Thanks for the reminder, Doug! Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
Create an account or sign in to comment