165 lines
16 KiB
HTML
165 lines
16 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: include/Environment.h Source File</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('Environment_8h_source.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="headertitle"><div class="title">Environment.h</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="Environment_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#ifndef ENVIRONMENT_H</span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#define ENVIRONMENT_H</span></div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span></div>
|
|
<div class="foldopen" id="foldopen00010" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"><a class="line" href="classEnvironment.html"> 10</a></span><span class="keyword">class </span><a class="code hl_function" href="classEnvironment.html#a91d044984a0fce83759a84ba1bbdf713">Environment</a> {</div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> <span class="keyword">public</span>:</div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> <a class="code hl_function" href="classEnvironment.html#a91d044984a0fce83759a84ba1bbdf713">Environment</a>(<span class="keywordtype">double</span> surfacePressure,</div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> <span class="keywordtype">double</span> surfaceTemperature,</div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> <span class="keywordtype">double</span> launchAltitude);</div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="classEnvironment.html#a00d96c0851019b1d243719cab6407c33"> 25</a></span> <a class="code hl_function" href="classEnvironment.html#a00d96c0851019b1d243719cab6407c33">~Environment</a>() = <span class="keywordflow">default</span>;</div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> </div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <span class="keywordtype">double</span> <a class="code hl_function" href="classEnvironment.html#a8ab160ee6060f34c35e7914463c43f21">getAirDensity</a>(<span class="keywordtype">double</span> altitude) <span class="keyword">const</span>;</div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> </div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <span class="keywordtype">double</span> <a class="code hl_function" href="classEnvironment.html#a6b2ce5f1fde4781a58577e239b6f54d9">getGravity</a>(<span class="keywordtype">double</span> altitude) <span class="keyword">const</span>;</div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="keywordtype">double</span> <a class="code hl_function" href="classEnvironment.html#a96eab8d5936110c7823aa5a5181f8379">getSurfacePressure</a>() <span class="keyword">const</span>;</div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> </div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <span class="keywordtype">double</span> <a class="code hl_function" href="classEnvironment.html#a3ceb9efe4e56139341007f537136424d">getSurfaceTemperature</a>() <span class="keyword">const</span>;</div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> </div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <span class="keywordtype">double</span> <a class="code hl_function" href="classEnvironment.html#aa6d85d2441c356543d4ca90836671952">getLaunchAltitude</a>() <span class="keyword">const</span>;</div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> </div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <span class="keyword">private</span>:</div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="classEnvironment.html#a6d359808d63f589eb3c88a6037cdc2d8"> 60</a></span> <span class="keywordtype">double</span> <a class="code hl_variable" href="classEnvironment.html#a6d359808d63f589eb3c88a6037cdc2d8">surfacePressure_</a>; </div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="classEnvironment.html#acf71031f36ed46d8c51261186183a349"> 61</a></span> <span class="keywordtype">double</span> <a class="code hl_variable" href="classEnvironment.html#acf71031f36ed46d8c51261186183a349">surfaceTemperature_</a>; </div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="classEnvironment.html#a1ba78c99df011cb4e499e2d87313a9b7"> 62</a></span> <span class="keywordtype">double</span> <a class="code hl_variable" href="classEnvironment.html#a1ba78c99df011cb4e499e2d87313a9b7">launchAltitude_</a>; </div>
|
|
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> </div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <span class="keywordtype">double</span> <a class="code hl_function" href="classEnvironment.html#a1f21151ddb88388efdb8a8e1da25aeb1">getStandardTemperature</a>(<span class="keywordtype">double</span> altitude) <span class="keyword">const</span>;</div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> </div>
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> <span class="keywordtype">double</span> <a class="code hl_function" href="classEnvironment.html#ad272c06b3036c8874e72ca064efee032">getStandardPressure</a>(<span class="keywordtype">double</span> altitude) <span class="keyword">const</span>;</div>
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> </div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span><span class="preprocessor">#endif </span><span class="comment">// ENVIRONMENT_H</span></div>
|
|
<div class="ttc" id="aclassEnvironment_html_a00d96c0851019b1d243719cab6407c33"><div class="ttname"><a href="classEnvironment.html#a00d96c0851019b1d243719cab6407c33">Environment::~Environment</a></div><div class="ttdeci">~Environment()=default</div><div class="ttdoc">Default destructor.</div></div>
|
|
<div class="ttc" id="aclassEnvironment_html_a1ba78c99df011cb4e499e2d87313a9b7"><div class="ttname"><a href="classEnvironment.html#a1ba78c99df011cb4e499e2d87313a9b7">Environment::launchAltitude_</a></div><div class="ttdeci">double launchAltitude_</div><div class="ttdoc">Launch altitude above sea level [m].</div><div class="ttdef"><b>Definition</b> Environment.h:62</div></div>
|
|
<div class="ttc" id="aclassEnvironment_html_a1f21151ddb88388efdb8a8e1da25aeb1"><div class="ttname"><a href="classEnvironment.html#a1f21151ddb88388efdb8a8e1da25aeb1">Environment::getStandardTemperature</a></div><div class="ttdeci">double getStandardTemperature(double altitude) const</div><div class="ttdoc">Internal method to compute standard atmosphere temperature at altitude.</div><div class="ttdef"><b>Definition</b> Environment.cpp:84</div></div>
|
|
<div class="ttc" id="aclassEnvironment_html_a3ceb9efe4e56139341007f537136424d"><div class="ttname"><a href="classEnvironment.html#a3ceb9efe4e56139341007f537136424d">Environment::getSurfaceTemperature</a></div><div class="ttdeci">double getSurfaceTemperature() const</div><div class="ttdoc">Returns the surface temperature at launch site.</div><div class="ttdef"><b>Definition</b> Environment.cpp:74</div></div>
|
|
<div class="ttc" id="aclassEnvironment_html_a6b2ce5f1fde4781a58577e239b6f54d9"><div class="ttname"><a href="classEnvironment.html#a6b2ce5f1fde4781a58577e239b6f54d9">Environment::getGravity</a></div><div class="ttdeci">double getGravity(double altitude) const</div><div class="ttdoc">Returns the gravitational acceleration at a given altitude.</div><div class="ttdef"><b>Definition</b> Environment.cpp:66</div></div>
|
|
<div class="ttc" id="aclassEnvironment_html_a6d359808d63f589eb3c88a6037cdc2d8"><div class="ttname"><a href="classEnvironment.html#a6d359808d63f589eb3c88a6037cdc2d8">Environment::surfacePressure_</a></div><div class="ttdeci">double surfacePressure_</div><div class="ttdoc">Surface pressure at launch site [Pa].</div><div class="ttdef"><b>Definition</b> Environment.h:60</div></div>
|
|
<div class="ttc" id="aclassEnvironment_html_a8ab160ee6060f34c35e7914463c43f21"><div class="ttname"><a href="classEnvironment.html#a8ab160ee6060f34c35e7914463c43f21">Environment::getAirDensity</a></div><div class="ttdeci">double getAirDensity(double altitude) const</div><div class="ttdoc">Returns the atmospheric density at a given altitude.</div><div class="ttdef"><b>Definition</b> Environment.cpp:59</div></div>
|
|
<div class="ttc" id="aclassEnvironment_html_a91d044984a0fce83759a84ba1bbdf713"><div class="ttname"><a href="classEnvironment.html#a91d044984a0fce83759a84ba1bbdf713">Environment::Environment</a></div><div class="ttdeci">Environment(double surfacePressure, double surfaceTemperature, double launchAltitude)</div><div class="ttdoc">Constructs a new Environment.</div><div class="ttdef"><b>Definition</b> Environment.cpp:49</div></div>
|
|
<div class="ttc" id="aclassEnvironment_html_a96eab8d5936110c7823aa5a5181f8379"><div class="ttname"><a href="classEnvironment.html#a96eab8d5936110c7823aa5a5181f8379">Environment::getSurfacePressure</a></div><div class="ttdeci">double getSurfacePressure() const</div><div class="ttdoc">Returns the surface pressure at launch site.</div><div class="ttdef"><b>Definition</b> Environment.cpp:70</div></div>
|
|
<div class="ttc" id="aclassEnvironment_html_aa6d85d2441c356543d4ca90836671952"><div class="ttname"><a href="classEnvironment.html#aa6d85d2441c356543d4ca90836671952">Environment::getLaunchAltitude</a></div><div class="ttdeci">double getLaunchAltitude() const</div><div class="ttdoc">Returns the launch altitude above sea level.</div><div class="ttdef"><b>Definition</b> Environment.cpp:78</div></div>
|
|
<div class="ttc" id="aclassEnvironment_html_acf71031f36ed46d8c51261186183a349"><div class="ttname"><a href="classEnvironment.html#acf71031f36ed46d8c51261186183a349">Environment::surfaceTemperature_</a></div><div class="ttdeci">double surfaceTemperature_</div><div class="ttdoc">Surface temperature at launch site [K].</div><div class="ttdef"><b>Definition</b> Environment.h:61</div></div>
|
|
<div class="ttc" id="aclassEnvironment_html_ad272c06b3036c8874e72ca064efee032"><div class="ttname"><a href="classEnvironment.html#ad272c06b3036c8874e72ca064efee032">Environment::getStandardPressure</a></div><div class="ttdeci">double getStandardPressure(double altitude) const</div><div class="ttdoc">Internal method to compute standard atmosphere pressure at altitude.</div><div class="ttdef"><b>Definition</b> Environment.cpp:91</div></div>
|
|
</div><!-- fragment --></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_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="Environment_8h.html">Environment.h</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>
|