tuning.xml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <root version="2.3.8">
  3. <tabbed_widget parent="main_window" name="Main Window">
  4. <Tab tab_name="Lateral" containers="1">
  5. <Container>
  6. <DockSplitter orientation="-" count="5" sizes="0.200458;0.199313;0.200458;0.199313;0.200458">
  7. <DockArea name="Velocity [m/s]">
  8. <plot style="Lines" mode="TimeSeries">
  9. <range left="1.253354" top="29.954036" bottom="-0.841715" right="631.055584"/>
  10. <limitY/>
  11. <curve color="#0072b2" name="/carState/vEgo"/>
  12. </plot>
  13. </DockArea>
  14. <DockArea name="Curvature [1/m] True [blue] Vehicle Model [purple] Plan [green]">
  15. <plot style="Lines" mode="TimeSeries">
  16. <range left="0.000000" top="0.006648" bottom="-0.003150" right="631.055209"/>
  17. <limitY/>
  18. <curve color="#009e73" name="engaged curvature plan"/>
  19. <curve color="#785ef0" name="engaged curvature vehicle model"/>
  20. <curve color="#0072b2" name="engaged curvature yaw"/>
  21. </plot>
  22. </DockArea>
  23. <DockArea name="Roll [rad]">
  24. <plot style="Lines" mode="TimeSeries">
  25. <range left="0.000000" top="0.166067" bottom="-1.598381" right="631.038276"/>
  26. <limitY/>
  27. <curve color="#ffb000" name="/liveLocationKalman/calibratedOrientationNED/value/0"/>
  28. </plot>
  29. </DockArea>
  30. <DockArea name="Engaged [green] Steering Pressed [blue]">
  31. <plot style="Lines" mode="TimeSeries">
  32. <range left="1.252984" top="1.025000" bottom="-0.025000" right="631.055584"/>
  33. <limitY/>
  34. <curve color="#009e73" name="/controlsState/enabled"/>
  35. <curve color="#0072b2" name="/carState/steeringPressed"/>
  36. </plot>
  37. </DockArea>
  38. <DockArea name="Steering Limited: Rate [orange] Saturated [magenta]">
  39. <plot style="Lines" mode="TimeSeries">
  40. <range left="1.253354" top="1.025000" bottom="-0.025000" right="631.055584"/>
  41. <limitY/>
  42. <curve name="/carState/steeringRateLimited" color="#ffb000"/>
  43. <curve name="/controlsState/lateralControlState/pidState/saturated" color="#dc267f"/>
  44. </plot>
  45. </DockArea>
  46. </DockSplitter>
  47. </Container>
  48. </Tab>
  49. <Tab tab_name="Longitudinal" containers="1">
  50. <Container>
  51. <DockSplitter orientation="-" count="5" sizes="0.1875;0.1875;0.1875;0.1875;0.25">
  52. <DockArea name="Velocity [m/s] True [blue] Plan [green] Cruise [magenta]">
  53. <plot style="Lines" mode="TimeSeries">
  54. <range left="0.000000" top="42.713492" bottom="-1.041792" right="631.055584"/>
  55. <limitY/>
  56. <curve color="#dc267f" name="/carState/cruiseState/speed"/>
  57. <curve color="#009e73" name="/longitudinalPlan/speeds/0"/>
  58. <curve color="#0072b2" name="/carState/vEgo"/>
  59. </plot>
  60. </DockArea>
  61. <DockArea name="Acceleration [m/s^2] True [blue] Actuator [purple] Plan [green]">
  62. <plot style="Lines" mode="TimeSeries">
  63. <range left="1.253354" top="0.808303" bottom="-1.213305" right="631.055759"/>
  64. <limitY/>
  65. <curve color="#009e73" name="engaged_accel_plan"/>
  66. <curve color="#785ef0" name="engaged_accel_actuator"/>
  67. <curve color="#0072b2" name="engaged_accel_actual"/>
  68. </plot>
  69. </DockArea>
  70. <DockArea name="Pitch [rad]">
  71. <plot style="Lines" mode="TimeSeries">
  72. <range left="0.000000" top="0.158854" bottom="-0.594843" right="631.038276"/>
  73. <limitY/>
  74. <curve color="#ffb000" name="/liveLocationKalman/calibratedOrientationNED/value/1"/>
  75. </plot>
  76. </DockArea>
  77. <DockArea name="Engaged [green] Gas [orange] Brake [magenta]">
  78. <plot style="Lines" mode="TimeSeries">
  79. <range left="1.253354" top="1.025000" bottom="-0.025000" right="631.055759"/>
  80. <limitY/>
  81. <curve color="#009e73" name="/carControl/enabled"/>
  82. <curve color="#ffb000" name="/carState/gasPressed"/>
  83. <curve color="#dc267f" name="/carState/brakePressed"/>
  84. </plot>
  85. </DockArea>
  86. <DockArea name="State [blue: off,pid,stop,start] Source [green: cruise,lead0,lead1,lead2,e2e]">
  87. <plot style="Lines" mode="TimeSeries">
  88. <range left="1.253620" top="5.125000" bottom="-0.125000" right="631.055759"/>
  89. <limitY/>
  90. <curve color="#0072b2" name="/carControl/actuators/longControlState"/>
  91. <curve color="#009e73" name="/longitudinalPlan/longitudinalPlanSource"/>
  92. </plot>
  93. </DockArea>
  94. </DockSplitter>
  95. </Container>
  96. </Tab>
  97. <Tab tab_name="Lateral Debug" containers="1">
  98. <Container>
  99. <DockSplitter orientation="-" count="4" sizes="0.25;0.25;0.25;0.25">
  100. <DockArea name="Controller F [magenta] P [purple] I [blue]">
  101. <plot style="Lines" mode="TimeSeries">
  102. <range left="0.000000" top="1.000000" bottom="0.000000" right="1.000000"/>
  103. <limitY/>
  104. <curve name="/controlsState/lateralControlState/pidState/f" color="#f14cc1"/>
  105. <curve name="/controlsState/lateralControlState/pidState/p" color="#9467bd"/>
  106. <curve name="/controlsState/lateralControlState/pidState/i" color="#17becf"/>
  107. </plot>
  108. </DockArea>
  109. <DockArea name="Driver Torque [blue] EPS Torque [green]">
  110. <plot style="Lines" mode="TimeSeries">
  111. <range left="1.253354" top="2690.999030" bottom="-3450.198981" right="631.055584"/>
  112. <limitY/>
  113. <curve color="#009e73" name="/carState/steeringTorqueEps"/>
  114. <curve color="#0072b2" name="/carState/steeringTorque"/>
  115. </plot>
  116. </DockArea>
  117. <DockArea name="Engaged [green] Steering Pressed [blue]">
  118. <plot style="Lines" mode="TimeSeries">
  119. <range left="1.253354" top="1.025000" bottom="-0.025000" right="631.055759"/>
  120. <limitY/>
  121. <curve color="#009e73" name="/carControl/enabled"/>
  122. <curve color="#0072b2" name="/carState/steeringPressed"/>
  123. </plot>
  124. </DockArea>
  125. <DockArea name="Steering Limited: Rate [orange] Saturated [magenta]">
  126. <plot style="Lines" mode="TimeSeries">
  127. <range left="1.253354" top="1.025000" bottom="-0.025000" right="631.055584"/>
  128. <limitY/>
  129. <curve name="/carState/steeringRateLimited" color="#ffb000"/>
  130. <curve name="/controlsState/lateralControlState/pidState/saturated" color="#dc267f"/>
  131. </plot>
  132. </DockArea>
  133. </DockSplitter>
  134. </Container>
  135. </Tab>
  136. <currentTabIndex index="0"/>
  137. </tabbed_widget>
  138. <use_relative_time_offset enabled="1"/>
  139. <!-- - - - - - - - - - - - - - - -->
  140. <!-- - - - - - - - - - - - - - - -->
  141. <Plugins>
  142. <plugin ID="DataLoad Rlog"/>
  143. <plugin ID="Cereal Subscriber"/>
  144. </Plugins>
  145. <!-- - - - - - - - - - - - - - - -->
  146. <!-- - - - - - - - - - - - - - - -->
  147. <customMathEquations>
  148. <snippet name="engaged curvature yaw">
  149. <global>engage_delay = 5
  150. last_bad_time = -engage_delay</global>
  151. <function>curvature = value / v3
  152. pressed = v1
  153. enabled = v2
  154. if (pressed == 1 or enabled == 0) then
  155. last_bad_time = time
  156. end
  157. if (time > last_bad_time + engage_delay) then
  158. return curvature
  159. else
  160. return 0
  161. end</function>
  162. <linked_source>/liveLocationKalman/angularVelocityCalibrated/value/2</linked_source>
  163. <additional_sources>
  164. <v1>/carState/steeringPressed</v1>
  165. <v2>/carControl/enabled</v2>
  166. <v3>/liveLocationKalman/velocityCalibrated/value/0</v3>
  167. </additional_sources>
  168. </snippet>
  169. <snippet name="engaged curvature vehicle model">
  170. <global>engage_delay = 5
  171. last_bad_time = -engage_delay</global>
  172. <function>curvature = value
  173. pressed = v1
  174. enabled = v2
  175. if (pressed == 1 or enabled == 0) then
  176. last_bad_time = time
  177. end
  178. if (time > last_bad_time + engage_delay) then
  179. return value
  180. else
  181. return 0
  182. end</function>
  183. <linked_source>/controlsState/curvature</linked_source>
  184. <additional_sources>
  185. <v1>/carState/steeringPressed</v1>
  186. <v2>/carControl/enabled</v2>
  187. </additional_sources>
  188. </snippet>
  189. <snippet name="engaged curvature plan">
  190. <global>engage_delay = 5
  191. last_bad_time = -engage_delay</global>
  192. <function>curvature = value
  193. pressed = v1
  194. enabled = v2
  195. if (pressed == 1 or enabled == 0) then
  196. last_bad_time = time
  197. end
  198. if (time > last_bad_time + engage_delay) then
  199. return value
  200. else
  201. return 0
  202. end</function>
  203. <linked_source>/lateralPlan/curvatures/0</linked_source>
  204. <additional_sources>
  205. <v1>/carState/steeringPressed</v1>
  206. <v2>/carControl/enabled</v2>
  207. </additional_sources>
  208. </snippet>
  209. <snippet name="engaged_accel_actual">
  210. <global>engage_delay = 5
  211. last_bad_time = -engage_delay</global>
  212. <function>accel = value
  213. brake = v1
  214. gas = v2
  215. enabled = v3
  216. if (brake ~= 0 or gas ~= 0 or enabled == 0) then
  217. last_bad_time = time
  218. end
  219. if (time > last_bad_time + engage_delay) then
  220. return value
  221. else
  222. return 0
  223. end</function>
  224. <linked_source>/carState/aEgo</linked_source>
  225. <additional_sources>
  226. <v1>/carState/brakePressed</v1>
  227. <v2>/carState/gasPressed</v2>
  228. <v3>/carControl/enabled</v3>
  229. </additional_sources>
  230. </snippet>
  231. <snippet name="engaged_accel_plan">
  232. <global>engage_delay = 5
  233. last_bad_time = -engage_delay</global>
  234. <function>accel = value
  235. brake = v1
  236. gas = v2
  237. enabled = v3
  238. if (brake ~= 0 or gas ~= 0 or enabled == 0) then
  239. last_bad_time = time
  240. end
  241. if (time > last_bad_time + engage_delay) then
  242. return value
  243. else
  244. return 0
  245. end</function>
  246. <linked_source>/longitudinalPlan/accels/0</linked_source>
  247. <additional_sources>
  248. <v1>/carState/brakePressed</v1>
  249. <v2>/carState/gasPressed</v2>
  250. <v3>/carControl/enabled</v3>
  251. </additional_sources>
  252. </snippet>
  253. <snippet name="engaged_accel_actuator">
  254. <global>engage_delay = 5
  255. last_bad_time = -engage_delay</global>
  256. <function>accel = value
  257. brake = v1
  258. gas = v2
  259. enabled = v3
  260. if (brake ~= 0 or gas ~= 0 or enabled == 0) then
  261. last_bad_time = time
  262. end
  263. if (time > last_bad_time + engage_delay) then
  264. return value
  265. else
  266. return 0
  267. end</function>
  268. <linked_source>/carControl/actuators/accel</linked_source>
  269. <additional_sources>
  270. <v1>/carState/brakePressed</v1>
  271. <v2>/carState/gasPressed</v2>
  272. <v3>/carControl/enabled</v3>
  273. </additional_sources>
  274. </snippet>
  275. </customMathEquations>
  276. <snippets/>
  277. <!-- - - - - - - - - - - - - - - -->
  278. </root>