229 lines
13 KiB
HTML
229 lines
13 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.13.2"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>QtRocket: tests/test_motor.cpp File Reference</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<script type="text/javascript" src="clipboard.js"></script>
|
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="navtreedata.js"></script>
|
|
<script type="text/javascript" src="navtree.js"></script>
|
|
<script type="text/javascript" src="resize.js"></script>
|
|
<script type="text/javascript" src="cookie.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() { init_search(); });
|
|
/* @license-end */
|
|
</script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">QtRocket
|
|
</div>
|
|
</td>
|
|
<td> <div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<span id="MSearchSelect" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()"> </span>
|
|
<input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.13.2 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() { codefold.init(0); });
|
|
/* @license-end */
|
|
</script>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function(){initNavTree('test__motor_8cpp.html',''); initResizable(true); });
|
|
/* @license-end */
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#func-members">Functions</a> </div>
|
|
<div class="headertitle"><div class="title">test_motor.cpp File Reference</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="textblock"><code>#include "<a class="el" href="catch__amalgamated_8hpp_source.html">vendor/catch_amalgamated.hpp</a>"</code><br />
|
|
<code>#include "<a class="el" href="Motor_8h_source.html">Motor.h</a>"</code><br />
|
|
</div><div class="textblock"><div class="dynheader">
|
|
Include dependency graph for test_motor.cpp:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="test__motor_8cpp__incl.png" border="0" usemap="#atests_2test__motor_8cpp" alt=""/></div>
|
|
<map name="atests_2test__motor_8cpp" id="atests_2test__motor_8cpp">
|
|
<area shape="rect" title=" " alt="" coords="435,5,590,33"/>
|
|
<area shape="rect" href="catch__amalgamated_8hpp.html" title=" " alt="" coords="789,81,1020,109"/>
|
|
<area shape="poly" title=" " alt="" coords="583,31,819,75,818,80,582,36"/>
|
|
<area shape="rect" href="Motor_8h.html" title=" " alt="" coords="127,81,199,109"/>
|
|
<area shape="poly" title=" " alt="" coords="450,36,215,85,213,80,449,31"/>
|
|
<area shape="rect" title=" " alt="" coords="1045,157,1137,184"/>
|
|
<area shape="poly" title=" " alt="" coords="939,107,1045,148,1043,153,937,112"/>
|
|
<area shape="rect" title=" " alt="" coords="175,157,234,184"/>
|
|
<area shape="poly" title=" " alt="" coords="789,102,544,119,398,135,249,159,248,154,397,130,543,114,788,97"/>
|
|
<area shape="rect" title=" " alt="" coords="1160,157,1230,184"/>
|
|
<area shape="poly" title=" " alt="" coords="959,107,1146,153,1144,158,958,112"/>
|
|
<area shape="rect" title=" " alt="" coords="1254,157,1318,184"/>
|
|
<area shape="poly" title=" " alt="" coords="992,107,1105,126,1239,154,1238,159,1104,131,991,112"/>
|
|
<area shape="rect" title=" " alt="" coords="1342,157,1410,184"/>
|
|
<area shape="poly" title=" " alt="" coords="1021,106,1163,125,1327,154,1326,159,1162,131,1020,112"/>
|
|
<area shape="rect" title=" " alt="" coords="1434,157,1500,184"/>
|
|
<area shape="poly" title=" " alt="" coords="1021,102,1205,120,1311,135,1420,154,1419,159,1310,140,1204,126,1020,107"/>
|
|
<area shape="rect" title=" " alt="" coords="1524,157,1589,184"/>
|
|
<area shape="poly" title=" " alt="" coords="1021,99,1244,117,1375,132,1509,154,1508,159,1374,138,1243,122,1020,104"/>
|
|
<area shape="rect" title=" " alt="" coords="89,157,152,184"/>
|
|
<area shape="poly" title=" " alt="" coords="789,101,663,106,509,116,339,133,167,159,166,154,339,128,508,111,662,101,788,96"/>
|
|
<area shape="rect" title=" " alt="" coords="1613,157,1697,184"/>
|
|
<area shape="poly" title=" " alt="" coords="1021,98,1281,116,1438,132,1598,154,1597,159,1437,137,1281,122,1020,104"/>
|
|
<area shape="rect" title=" " alt="" coords="1721,157,1784,184"/>
|
|
<area shape="poly" title=" " alt="" coords="1021,95,1158,99,1328,109,1515,126,1706,154,1706,159,1515,132,1327,114,1158,104,1021,100"/>
|
|
<area shape="rect" title=" " alt="" coords="1807,157,1892,184"/>
|
|
<area shape="poly" title=" " alt="" coords="1021,96,1172,101,1363,111,1576,128,1792,154,1792,159,1575,133,1363,116,1172,106,1021,101"/>
|
|
<area shape="rect" title=" " alt="" coords="257,157,333,184"/>
|
|
<area shape="poly" title=" " alt="" coords="789,107,587,125,469,140,348,159,348,154,468,135,586,120,788,101"/>
|
|
<area shape="rect" title=" " alt="" coords="356,157,415,184"/>
|
|
<area shape="poly" title=" " alt="" coords="788,108,623,127,431,159,430,154,622,121,788,103"/>
|
|
<area shape="rect" title=" " alt="" coords="439,157,490,184"/>
|
|
<area shape="poly" title=" " alt="" coords="789,111,657,130,505,159,504,154,656,125,788,106"/>
|
|
<area shape="rect" title=" " alt="" coords="514,157,580,184"/>
|
|
<area shape="poly" title=" " alt="" coords="827,112,721,132,596,159,594,153,720,126,826,107"/>
|
|
<area shape="rect" title=" " alt="" coords="603,157,654,184"/>
|
|
<area shape="poly" title=" " alt="" coords="848,112,669,159,668,153,847,107"/>
|
|
<area shape="rect" title=" " alt="" coords="678,157,754,184"/>
|
|
<area shape="poly" title=" " alt="" coords="872,112,765,153,763,148,870,107"/>
|
|
<area shape="rect" title=" " alt="" coords="779,157,854,184"/>
|
|
<area shape="poly" title=" " alt="" coords="890,111,845,149,842,145,887,107"/>
|
|
<area shape="rect" title=" " alt="" coords="877,157,932,184"/>
|
|
<area shape="poly" title=" " alt="" coords="907,109,907,141,902,141,902,109"/>
|
|
<area shape="rect" title=" " alt="" coords="956,157,1021,184"/>
|
|
<area shape="poly" title=" " alt="" coords="921,107,964,144,960,148,918,111"/>
|
|
<area shape="poly" title=" " alt="" coords="173,108,192,142,187,144,168,111"/>
|
|
<area shape="poly" title=" " alt="" coords="158,111,138,145,133,142,153,108"/>
|
|
<area shape="rect" title=" " alt="" coords="5,157,65,184"/>
|
|
<area shape="poly" title=" " alt="" coords="141,112,72,151,69,147,139,107"/>
|
|
</map>
|
|
</div>
|
|
</div><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
|
|
Functions</h2></td></tr>
|
|
<tr class="memitem:a3989a24eb2c673403eddb875a991d319" id="r_a3989a24eb2c673403eddb875a991d319"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="#a3989a24eb2c673403eddb875a991d319">TEST_CASE</a> ("Motor basic behavior", "[motor]")</td></tr>
|
|
<tr class="separator:a3989a24eb2c673403eddb875a991d319"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<h2 class="groupheader">Function Documentation</h2>
|
|
<a id="a3989a24eb2c673403eddb875a991d319" name="a3989a24eb2c673403eddb875a991d319"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a3989a24eb2c673403eddb875a991d319">◆ </a></span>TEST_CASE()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">TEST_CASE </td>
|
|
<td>(</td>
|
|
<td class="paramtype">"Motor basic behavior"</td> <td class="paramname"><span class="paramname"><em></em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">""</td> <td class="paramname"><span class="paramname"><em></em></span>[motor] )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<div class="dynheader">
|
|
Here is the call graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="test__motor_8cpp_a3989a24eb2c673403eddb875a991d319_cgraph.png" border="0" usemap="#atest__motor_8cpp_a3989a24eb2c673403eddb875a991d319_cgraph" alt=""/></div>
|
|
<map name="atest__motor_8cpp_a3989a24eb2c673403eddb875a991d319_cgraph" id="atest__motor_8cpp_a3989a24eb2c673403eddb875a991d319_cgraph">
|
|
<area shape="rect" title=" " alt="" coords="5,136,100,164"/>
|
|
<area shape="rect" href="classMotor.html#aacfe43afae59ccf8de9333b97f20b496" title="Adds a thrust curve data point." alt="" coords="179,5,375,33"/>
|
|
<area shape="poly" title=" " alt="" coords="60,134,94,89,118,64,146,44,163,35,165,40,149,48,122,68,98,92,65,137"/>
|
|
<area shape="rect" href="classMotor.html#a2dc32cd5990b69f58b4a2441615a2482" title="Gets the current thrust output." alt="" coords="188,57,366,85"/>
|
|
<area shape="poly" title=" " alt="" coords="74,133,107,114,147,95,173,87,175,92,149,100,110,118,77,138"/>
|
|
<area shape="rect" href="classMotor.html#aefeec4b2190b66d7f0131f91746c05d1" title="Returns the remaining propellant mass." alt="" coords="148,109,406,137"/>
|
|
<area shape="poly" title=" " alt="" coords="100,142,140,137,140,142,101,147"/>
|
|
<area shape="rect" href="classMotor.html#a84c88f99c6dcd106ff621d9bc86d86d2" title="Starts motor ignition (sets internal ignition time to zero)." alt="" coords="225,161,329,189"/>
|
|
<area shape="poly" title=" " alt="" coords="101,152,209,165,209,170,100,158"/>
|
|
<area shape="rect" href="classMotor.html#a48d0d93602b089fce9bc24a469ef1a3a" title="Checks whether the motor has burned out." alt="" coords="203,213,350,241"/>
|
|
<area shape="poly" title=" " alt="" coords="77,162,110,181,149,198,189,210,187,215,147,203,108,185,75,167"/>
|
|
<area shape="rect" href="classMotor.html#aff6dc2a5d1b86043c3670d5d126fabe0" title="Updates the motor status based on elapsed time." alt="" coords="221,265,333,293"/>
|
|
<area shape="poly" title=" " alt="" coords="65,162,98,207,122,230,149,250,177,262,206,270,205,275,175,267,146,255,118,235,94,210,60,166"/>
|
|
<area shape="rect" href="classMotor.html#ab8cd621406d2641b8e0f2961323c65b8" title="Linearly interpolates thrust from the thrust curve." alt="" coords="454,265,633,293"/>
|
|
<area shape="poly" title=" " alt="" coords="334,276,439,276,439,282,334,282"/>
|
|
</map>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_59425e443f801f1f2fd8bbe4959a3ccf.html">tests</a></li><li class="navelem"><a class="el" href="test__motor_8cpp.html">test_motor.cpp</a></li>
|
|
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.2 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|