I want to write a very simple application and its supposed to help me track my flying hours. What I need is when I start at the gates, I will start my application too. It should record the icao code of the source and then log all my flight times and then finally when I stop at my destination, it should log my destination ICAO code and then compute the time.
I am able to read the time and thus make the calculation, but I am not able to find the following
1. current ICAO code where the aircraft is stationed
2. Whether the plane is airborne or back on the ground!!
I am coding in C# using the SDK provided with FSUIPC. I am also able to read the information of heading, Altitude, IAS, these are some of the things I have tried. But I got stuck on how to read the ICAO code. I will be using GPS flight plan for most of my flights.
Any help / hint / code snippets would help great!!