How can i get Magnetic Declination from GPS RRS feed

  • Question

  • Hello everybody,

    I am using  vs2008 – vc++ – Smart Device – MFC – dlg

    I need Magnetic Declination (the angle between Magnetic North and True North) . I am trying to get it from GPS codes . I presume I can use  dblMagneticVariation  parameter of  GPS_position for that, but I always get  0  for dblMagneticVariation when I run the code (on deployer and on my PPC) . FixType  parameter gives 2  which means its 3D  I suppose , and values of  dblLatitude , flSpeed , flAltitudeWRTSeaLevel , etc. are acceptable .

    Please correct me where I am wrong . I appreciate any code or even a hint .

    Thank you in advance.              Mo.
    Monday, September 6, 2010 2:32 PM