gps_vs_llk.xml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <root>
  3. <tabbed_widget name="Main Window" parent="main_window">
  4. <Tab tab_name="tab1" containers="1">
  5. <Container>
  6. <DockSplitter count="3" sizes="0.333805;0.33239;0.333805" orientation="-">
  7. <DockArea name="...">
  8. <plot mode="TimeSeries" style="Lines" flip_y="false" flip_x="false">
  9. <range bottom="0.368228" right="196.811937" left="76.646983" top="32.070386"/>
  10. <limitY/>
  11. <curve name="haversine distance [m]" color="#1f77b4"/>
  12. </plot>
  13. </DockArea>
  14. <DockArea name="...">
  15. <plot mode="TimeSeries" style="Lines" flip_y="false" flip_x="false">
  16. <range bottom="-0.259115" right="196.811937" left="76.646983" top="12.637299"/>
  17. <limitY/>
  18. <curve name="/carState/vEgo" color="#17becf"/>
  19. <curve name="/gpsLocationExternal/speed" color="#bcbd22"/>
  20. </plot>
  21. </DockArea>
  22. <DockSplitter count="2" sizes="0.500516;0.499484" orientation="|">
  23. <DockArea name="...">
  24. <plot mode="TimeSeries" style="Lines" flip_y="false" flip_x="false">
  25. <range bottom="-0.100000" right="196.811937" left="76.646983" top="0.100000"/>
  26. <limitY/>
  27. <curve name="/liveLocationKalman/positionGeodetic/std/0" color="#d62728"/>
  28. <curve name="/liveLocationKalman/positionGeodetic/std/1" color="#1ac938"/>
  29. </plot>
  30. </DockArea>
  31. <DockArea name="...">
  32. <plot mode="TimeSeries" style="Lines" flip_y="false" flip_x="false">
  33. <range bottom="-0.449385" right="196.811937" left="76.646983" top="7.160833"/>
  34. <limitY/>
  35. <curve name="/gpsLocationExternal/horizontalAccuracy" color="#ff7f0e"/>
  36. <curve name="/gpsLocationExternal/verticalAccuracy" color="#f14cc1"/>
  37. <curve name="/gpsLocationExternal/speedAccuracy" color="#9467bd"/>
  38. </plot>
  39. </DockArea>
  40. </DockSplitter>
  41. </DockSplitter>
  42. </Container>
  43. </Tab>
  44. <currentTabIndex index="0"/>
  45. </tabbed_widget>
  46. <use_relative_time_offset enabled="1"/>
  47. <!-- - - - - - - - - - - - - - - -->
  48. <!-- - - - - - - - - - - - - - - -->
  49. <Plugins>
  50. <plugin ID="DataLoad Rlog"/>
  51. <plugin ID="Cereal Subscriber"/>
  52. </Plugins>
  53. <!-- - - - - - - - - - - - - - - -->
  54. <!-- - - - - - - - - - - - - - - -->
  55. <customMathEquations>
  56. <snippet name="haversine distance [m]">
  57. <global>R = 6378.137 -- Radius of earth in KM</global>
  58. <function>-- Compute the Haversine distance between
  59. -- two points defined by latitude and longitude.
  60. -- Return the distance in meters
  61. lat1, lon1 = value, v1
  62. lat2, lon2 = v2, v3
  63. dLat = (lat2 - lat1) * math.pi / 180
  64. dLon = (lon2 - lon1) * math.pi / 180
  65. a = math.sin(dLat/2) * math.sin(dLat/2) +
  66. math.cos(lat1 * math.pi / 180) * math.cos(lat2 * math.pi / 180) *
  67. math.sin(dLon/2) * math.sin(dLon/2)
  68. c = 2 * math.atan(math.sqrt(a), math.sqrt(1-a))
  69. d = R * c
  70. distance = d * 1000 -- meters
  71. return distance</function>
  72. <linked_source>/gpsLocationExternal/latitude</linked_source>
  73. <additional_sources>
  74. <v1>/gpsLocationExternal/longitude</v1>
  75. <v2>/liveLocationKalman/positionGeodetic/value/0</v2>
  76. <v3>/liveLocationKalman/positionGeodetic/value/1</v3>
  77. </additional_sources>
  78. </snippet>
  79. </customMathEquations>
  80. <snippets/>
  81. <!-- - - - - - - - - - - - - - - -->
  82. </root>