No Description
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.

definitions_8h_source.html 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.13"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>Bibliotheques TP RT: definitions.h Source File</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="resize.js"></script>
  14. <script type="text/javascript" src="navtreedata.js"></script>
  15. <script type="text/javascript" src="navtree.js"></script>
  16. <script type="text/javascript">
  17. $(document).ready(initResizable);
  18. </script>
  19. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  20. <script type="text/javascript" src="search/searchdata.js"></script>
  21. <script type="text/javascript" src="search/search.js"></script>
  22. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  23. </head>
  24. <body>
  25. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  26. <div id="titlearea">
  27. <table cellspacing="0" cellpadding="0">
  28. <tbody>
  29. <tr style="height: 56px;">
  30. <td id="projectlogo"><img alt="Logo" src="robot-icon.resized.png"/></td>
  31. <td id="projectalign" style="padding-left: 0.5em;">
  32. <div id="projectname">Bibliotheques TP RT
  33. &#160;<span id="projectnumber">1.0</span>
  34. </div>
  35. <div id="projectbrief">Bibliotheque de support pour TP/RT</div>
  36. </td>
  37. </tr>
  38. </tbody>
  39. </table>
  40. </div>
  41. <!-- end header part -->
  42. <!-- Generated by Doxygen 1.8.13 -->
  43. <script type="text/javascript">
  44. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  45. </script>
  46. <script type="text/javascript" src="menudata.js"></script>
  47. <script type="text/javascript" src="menu.js"></script>
  48. <script type="text/javascript">
  49. $(function() {
  50. initMenu('',true,false,'search.php','Search');
  51. $(document).ready(function() { init_search(); });
  52. });
  53. </script>
  54. <div id="main-nav"></div>
  55. </div><!-- top -->
  56. <div id="side-nav" class="ui-resizable side-nav-resizable">
  57. <div id="nav-tree">
  58. <div id="nav-tree-contents">
  59. <div id="nav-sync" class="sync"></div>
  60. </div>
  61. </div>
  62. <div id="splitbar" style="-moz-user-select:none;"
  63. class="ui-resizable-handle">
  64. </div>
  65. </div>
  66. <script type="text/javascript">
  67. $(document).ready(function(){initNavTree('definitions_8h_source.html','');});
  68. </script>
  69. <div id="doc-content">
  70. <!-- window showing the filter options -->
  71. <div id="MSearchSelectWindow"
  72. onmouseover="return searchBox.OnSearchSelectShow()"
  73. onmouseout="return searchBox.OnSearchSelectHide()"
  74. onkeydown="return searchBox.OnSearchSelectKey(event)">
  75. </div>
  76. <!-- iframe showing the search results (closed by default) -->
  77. <div id="MSearchResultsWindow">
  78. <iframe src="javascript:void(0)" frameborder="0"
  79. name="MSearchResults" id="MSearchResults">
  80. </iframe>
  81. </div>
  82. <div class="header">
  83. <div class="headertitle">
  84. <div class="title">definitions.h</div> </div>
  85. </div><!--header-->
  86. <div class="contents">
  87. <a href="definitions_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> * Copyright (C) 2018 dimercur</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * This program is free software: you can redistribute it and/or modify</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * it under the terms of the GNU General Public License as published by</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> * the Free Software Foundation, either version 3 of the License, or</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * (at your option) any later version.</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * This program is distributed in the hope that it will be useful,</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> * GNU General Public License for more details.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> * along with this program. If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#ifndef DEFINITIONS_H</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#define DEFINITIONS_H</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="definitions_8h.html#aac798eaf6994ddcadd8a38ad8aba234f"> 30</a></span>&#160;<span class="preprocessor">#define OPEN_COM_DMB &#39;o&#39;</span></div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="definitions_8h.html#a1b18773c1ce9068c4d38c2cbd2900263"> 31</a></span>&#160;<span class="preprocessor">#define CLOSE_COM_DMB &#39;C&#39;</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="definitions_8h.html#acf7d51360dcb103fc57604725ec2816d"> 33</a></span>&#160;<span class="preprocessor">#define DMB_PING &#39;p&#39;</span></div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="definitions_8h.html#a82b279c49221d3cd3d875d521dfb97b9"> 34</a></span>&#160;<span class="preprocessor">#define DMB_IDLE &#39;r&#39;</span></div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="definitions_8h.html#a5ebbd37042a6244b4f9d473ae7132780"> 35</a></span>&#160;<span class="preprocessor">#define DMB_START_WITHOUT_WD &#39;u&#39;</span></div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="definitions_8h.html#adee1628bbc796ba55f4a349895f4e0fa"> 36</a></span>&#160;<span class="preprocessor">#define DMB_START_WITH_WD &#39;W&#39;</span></div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="definitions_8h.html#a2ca219902014ffb39aab27cca08a948f"> 37</a></span>&#160;<span class="preprocessor">#define DMB_RELOAD_WD &#39;w&#39;</span></div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="definitions_8h.html#af1737e8fe4da4e8bc2d5db9d26c42462"> 38</a></span>&#160;<span class="preprocessor">#define DMB_GET_VBAT &#39;v&#39;</span></div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="definitions_8h.html#ad58c241121e685f26a291aa4bd5f9c80"> 39</a></span>&#160;<span class="preprocessor">#define DMB_IS_BUSY &#39;b&#39;</span></div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="definitions_8h.html#ac48dee90eb71d036d001321674abbb8b"> 40</a></span>&#160;<span class="preprocessor">#define DMB_MOVE &#39;M&#39;</span></div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="definitions_8h.html#ac6c5492c8100e73f8d30ed36072684db"> 41</a></span>&#160;<span class="preprocessor">#define DMB_TURN &#39;T&#39;</span></div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="definitions_8h.html#ae363a29a4961cd8a646a0ca9199bc6cf"> 42</a></span>&#160;<span class="preprocessor">#define DMB_GO_FORWARD &#39;F&#39;</span></div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="definitions_8h.html#a499f41cc19a4459de033687049cbbe71"> 43</a></span>&#160;<span class="preprocessor">#define DMB_GO_BACK &#39;B&#39;</span></div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="definitions_8h.html#aefcb838e73a335f1a2a6c914ee2ff752"> 44</a></span>&#160;<span class="preprocessor">#define DMB_GO_LEFT &#39;L&#39;</span></div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="definitions_8h.html#ad681962f7b8cf4797ebd48be0405d1b9"> 45</a></span>&#160;<span class="preprocessor">#define DMB_GO_RIGHT &#39;R&#39;</span></div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="definitions_8h.html#a7308179907a0a2989c162865e7a7979a"> 46</a></span>&#160;<span class="preprocessor">#define DMB_STOP_MOVE &#39;S&#39;</span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="definitions_8h.html#a624686d3af63394ee02f0a197967d44a"> 48</a></span>&#160;<span class="preprocessor">#define ROBOT_TIMED_OUT -3</span></div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="definitions_8h.html#a70a2d5db14b900843364adb7cfe53ac8"> 49</a></span>&#160;<span class="preprocessor">#define ROBOT_UKNOWN_CMD -2</span></div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="definitions_8h.html#a4aefbbdd5d35999aa0575ab7183148d4"> 50</a></span>&#160;<span class="preprocessor">#define ROBOT_ERROR -1</span></div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="definitions_8h.html#af1118b8a83d446b4965347bba126a488"> 51</a></span>&#160;<span class="preprocessor">#define ROBOT_CHECKSUM -4</span></div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="definitions_8h.html#ad7b2f95c0b423fb9784acb897b910c36"> 52</a></span>&#160;<span class="preprocessor">#define ROBOT_OK 0</span></div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="definitions_8h.html#a2a7149bbe097fae8e799ce2ab6f69390"> 54</a></span>&#160;<span class="preprocessor">#define CAM_OPEN &#39;A&#39;</span></div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="definitions_8h.html#a675009273c3923e8ad1a6d2818063b61"> 55</a></span>&#160;<span class="preprocessor">#define CAM_CLOSE &#39;I&#39;</span></div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="definitions_8h.html#a6418778d1f34e618aebd9ca1861ab500"> 56</a></span>&#160;<span class="preprocessor">#define CAM_ASK_ARENA &#39;y&#39;</span></div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="definitions_8h.html#a15d9063cd3c60755685ceb75df4a7354"> 57</a></span>&#160;<span class="preprocessor">#define CAM_ARENA_CONFIRM &#39;x&#39;</span></div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="definitions_8h.html#ac836c6abc7e32d2cf7f59ed2a8383ca7"> 58</a></span>&#160;<span class="preprocessor">#define CAM_ARENA_INFIRM &#39;z&#39;</span></div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="definitions_8h.html#a74fdb9d00556feb699d3c72bd7b5d5e5"> 59</a></span>&#160;<span class="preprocessor">#define CAM_COMPUTE_POSITION &#39;p&#39;</span></div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="definitions_8h.html#ae864cfaefbf5a210e67678b2144a289f"> 60</a></span>&#160;<span class="preprocessor">#define CAM_STOP_COMPUTE_POSITION &#39;s&#39;</span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="definitions_8h.html#a66c0c4960c1e81c8da8c8e1d4a202352"> 62</a></span>&#160;<span class="preprocessor">#define DMB_BAT_LOW 0</span></div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="definitions_8h.html#aea6ef1c13db1a8a4a29b065d0c3f73e4"> 63</a></span>&#160;<span class="preprocessor">#define DMB_BAT_MEDIUM 1</span></div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="definitions_8h.html#ab34c46794a9de6746a96752668c73754"> 64</a></span>&#160;<span class="preprocessor">#define DMB_BAT_HIGH 2</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="definitions_8h.html#a3327443cd321f0c356a5d3d74377892b"> 66</a></span>&#160;<span class="preprocessor">#define DMB_BUSY 1</span></div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="definitions_8h.html#a07650c5f6647c5143bac535fdbeb77d5"> 67</a></span>&#160;<span class="preprocessor">#define DMB_DO_NOTHING 0</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* MSG_H */</span><span class="preprocessor"></span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;</div></div><!-- fragment --></div><!-- contents -->
  88. </div><!-- doc-content -->
  89. <!-- start footer part -->
  90. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  91. <ul>
  92. <li class="navelem"><a class="el" href="definitions_8h.html">definitions.h</a></li>
  93. <li class="footer">Generated by
  94. <a href="http://www.doxygen.org/index.html">
  95. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  96. </ul>
  97. </div>
  98. </body>
  99. </html>