Devuan fork of gpsd
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

49 lines
2.0 KiB

  1. <sect1 id="geoid.c"><title><filename>geoid.c</filename></title>
  2. <informaltable frame='all' pgwide='1'>
  3. <tgroup cols='2'>
  4. <colspec colname='c1'></colspec>
  5. <colspec colname='c2'></colspec>
  6. <spanspec spanname='s1' namest='c1' nameend='c2'></spanspec>
  7. <thead>
  8. <row>
  9. <entry>Functions:-</entry><entry>Provides conversion between the ECEF and WGS84 co-ordinate reference systems.</entry>
  10. </row>
  11. </thead>
  12. <tfoot>
  13. <row>
  14. <entry spanname='s1' align='left'>Notes based on code as of Mon Apr 5 21:38:06 2010 -0400.</entry>
  15. </row>
  16. </tfoot>
  17. <tbody>
  18. <row>
  19. <entry><function>static double bilinear(double x1, double y1, double x2, double y2, double x, double y, double z11, double z12, double z21, double z22)</function></entry>
  20. <entry><para>This is a piece of mathematical manipulation only used internally in this code, so wrestle with it if you will! It's used to perform bilinear interpolation on the grid points in the WGS4 geoidal-separation array.</para></entry>
  21. </row>
  22. <row>
  23. <entry><function>double wgs84_separation(double lat, double lon)</function></entry>
  24. <entry><para>This is used by drivers to get the separation of MSL from the WGS84 datum at a pair of Latitude/Longitude co-ordinates. The data is in a pre-defined table.</para></entry>
  25. </row>
  26. <row>
  27. <entry><function>void ecef_to_wgs84fix(struct gps_data_t *gpsdata, double x,
  28. double y, double z, double vx, double vy, double vz)</function></entry>
  29. <entry><para>This does exactly what it says! Co-ordinate system
  30. conversion from ecef to the wgs84 equivalent.</para></entry>
  31. </row>
  32. <row>
  33. <entry><function>static double fix_minuz(double d)</function></entry>
  34. <entry><para>This forces a value of -0.0 to be the same as 0.0 so that certain trig functions act in a predictable manner.</para></entry>
  35. </row>
  36. <row>
  37. <entry><function>int main(int argc, char **argv)</function></entry>
  38. <entry><para>This is a local test routine which exercises the other code for debugging purposes. It is normally shut off by an <function>#ifdef</function>.</para></entry>
  39. </row>
  40. </tbody>
  41. </tgroup>
  42. </informaltable>
  43. </sect1>