Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Feb 28, 2025
1 parent e3ecb22 commit 33fde2d
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 27 deletions.
2 changes: 1 addition & 1 deletion docs/emulated__sensors_8cpp_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
<div class="ttc" id="astructContinuitySensor_html_afc7ec154da1a82e35df5f820fb911628"><div class="ttname"><a href="structContinuitySensor.html#afc7ec154da1a82e35df5f820fb911628">ContinuitySensor::read</a></div><div class="ttdeci">Continuity read()</div><div class="ttdoc">Reads the value of the ADC.</div><div class="ttdef"><b>Definition:</b> <a href="hardware_2Continuity_8cpp_source.html#l00060">Continuity.cpp:60</a></div></div>
<div class="ttc" id="astructContinuity_html"><div class="ttname"><a href="structContinuity.html">Continuity</a></div><div class="ttdoc">data about pyro continuity</div><div class="ttdef"><b>Definition:</b> <a href="sensor__data_8h_source.html#l00130">sensor_data.h:130</a></div></div>
<div class="ttc" id="astructGPSSensor_html_a411100dccb61b1ddf7fc1a2f5cc8530c"><div class="ttname"><a href="structGPSSensor.html#a411100dccb61b1ddf7fc1a2f5cc8530c">GPSSensor::init</a></div><div class="ttdeci">ErrorCode init()</div><div class="ttdoc">Initializes GPS, returns NoError.</div><div class="ttdef"><b>Definition:</b> <a href="hardware_2GPSSensor_8cpp_source.html#l00016">GPSSensor.cpp:16</a></div></div>
<div class="ttc" id="astructGPSSensor_html_a46585a277745653800c1e0d374194bd7"><div class="ttname"><a href="structGPSSensor.html#a46585a277745653800c1e0d374194bd7">GPSSensor::read</a></div><div class="ttdeci">GPS read()</div><div class="ttdoc">Reads the GPS data from the sensor (lat, long, altitude, sat count, etc)</div><div class="ttdef"><b>Definition:</b> <a href="hardware_2GPSSensor_8cpp_source.html#l00036">GPSSensor.cpp:36</a></div></div>
<div class="ttc" id="astructGPSSensor_html_a46585a277745653800c1e0d374194bd7"><div class="ttname"><a href="structGPSSensor.html#a46585a277745653800c1e0d374194bd7">GPSSensor::read</a></div><div class="ttdeci">GPS read()</div><div class="ttdoc">Reads the GPS data from the sensor (lat, long, altitude, sat count, etc)</div><div class="ttdef"><b>Definition:</b> <a href="hardware_2GPSSensor_8cpp_source.html#l00038">GPSSensor.cpp:38</a></div></div>
<div class="ttc" id="astructGPS_html"><div class="ttname"><a href="structGPS.html">GPS</a></div><div class="ttdoc">data from the GPS</div><div class="ttdef"><b>Definition:</b> <a href="sensor__data_8h_source.html#l00149">sensor_data.h:149</a></div></div>
<div class="ttc" id="astructHighGData_html"><div class="ttname"><a href="structHighGData.html">HighGData</a></div><div class="ttdoc">data from the HighG sensor</div><div class="ttdef"><b>Definition:</b> <a href="sensor__data_8h_source.html#l00088">sensor_data.h:88</a></div></div>
<div class="ttc" id="astructHighGSensor_html_a13975f4122530d164486446564ed1714"><div class="ttname"><a href="structHighGSensor.html#a13975f4122530d164486446564ed1714">HighGSensor::init</a></div><div class="ttdeci">ErrorCode init()</div><div class="ttdoc">Initializes the high G sensor.</div><div class="ttdef"><b>Definition:</b> <a href="hardware_2HighG_8cpp_source.html#l00011">HighG.cpp:11</a></div></div>
Expand Down
40 changes: 21 additions & 19 deletions docs/hardware_2GPSSensor_8cpp_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,24 +99,26 @@
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> <span class="keywordflow">if</span> (!<a class="code hl_variable" href="hardware_2GPSSensor_8cpp.html#a586df2245b00169e4fbedd73e84b9508">ublox</a>.begin()) {</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="errors_8h.html#a59e56af19e754a6aa26a612ebf91d05fa7d5a163ff267ce73b287fae4b4468748">ErrorCode::GPSCouldNotBeInitialized</a>;</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> }</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> <a class="code hl_variable" href="hardware_2GPSSensor_8cpp.html#a586df2245b00169e4fbedd73e84b9508">ublox</a>.setI2COutput(COM_TYPE_UBX | COM_TYPE_NMEA); <span class="comment">//Set the I2C port to output both NMEA and UBX messages</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> <span class="comment">// Set the measurment rate faster than one HZ if necessary</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> <span class="comment">// ublox.setMeasurementRate(100);</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> <a class="code hl_variable" href="hardware_2GPSSensor_8cpp.html#a586df2245b00169e4fbedd73e84b9508">ublox</a>.saveConfigSelective(VAL_CFG_SUBSEC_IOPORT); <span class="comment">//Save (only) the communications port settings to flash and BBR</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> </div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> <span class="comment">//This will pipe all NMEA sentences to the serial port so we can see them</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> </div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> <a class="code hl_variable" href="hardware_2GPSSensor_8cpp.html#a586df2245b00169e4fbedd73e84b9508">ublox</a>.setDynamicModel(DYN_MODEL_AIRBORNE4g);</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> <a class="code hl_variable" href="hardware_2GPSSensor_8cpp.html#a586df2245b00169e4fbedd73e84b9508">ublox</a>.setI2COutput(COM_TYPE_UBX | COM_TYPE_NMEA); <span class="comment">//Set the I2C port to output both NMEA and UBX messages</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> <span class="comment">// Set the measurment rate faster than one HZ if necessary</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <span class="comment">// ublox.setMeasurementRate(100);</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> <a class="code hl_variable" href="hardware_2GPSSensor_8cpp.html#a586df2245b00169e4fbedd73e84b9508">ublox</a>.saveConfigSelective(VAL_CFG_SUBSEC_IOPORT); <span class="comment">//Save (only) the communications port settings to flash and BBR</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="errors_8h.html#a59e56af19e754a6aa26a612ebf91d05faef9104c292609ba6db320509be8fe27f">ErrorCode::NoError</a>;</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span>}</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="structGPSSensor.html#a46585a277745653800c1e0d374194bd7"> 36</a></span><a class="code hl_struct" href="structGPS.html">GPS</a> <a class="code hl_function" href="structGPSSensor.html#a46585a277745653800c1e0d374194bd7">GPSSensor::read</a>() {</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <span class="keywordflow">return</span> <a class="code hl_struct" href="structGPS.html">GPS</a>{<a class="code hl_variable" href="hardware_2GPSSensor_8cpp.html#a586df2245b00169e4fbedd73e84b9508">ublox</a>.getLatitude(), <a class="code hl_variable" href="hardware_2GPSSensor_8cpp.html#a586df2245b00169e4fbedd73e84b9508">ublox</a>.getLongitude(), (float) <a class="code hl_variable" href="hardware_2GPSSensor_8cpp.html#a586df2245b00169e4fbedd73e84b9508">ublox</a>.getAltitude() / 1000.f, (float) <a class="code hl_variable" href="hardware_2GPSSensor_8cpp.html#a586df2245b00169e4fbedd73e84b9508">ublox</a>.getGroundSpeed() / 1000.f, <a class="code hl_variable" href="hardware_2GPSSensor_8cpp.html#a586df2245b00169e4fbedd73e84b9508">ublox</a>.getFixType(), <a class="code hl_variable" href="hardware_2GPSSensor_8cpp.html#a586df2245b00169e4fbedd73e84b9508">ublox</a>.getUnixEpoch()};</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span>}</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="structGPSSensor.html#a797d97d0a0062fa157c48ce427807eb0"> 40</a></span><span class="keywordtype">bool</span> <a class="code hl_function" href="structGPSSensor.html#a797d97d0a0062fa157c48ce427807eb0">GPSSensor::valid</a>() {</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="hardware_2GPSSensor_8cpp.html#a586df2245b00169e4fbedd73e84b9508">ublox</a>.getPVT();</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span>}</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> <span class="comment">//This will pipe all NMEA sentences to the serial port so we can see them</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="errors_8h.html#a59e56af19e754a6aa26a612ebf91d05faef9104c292609ba6db320509be8fe27f">ErrorCode::NoError</a>;</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span>}</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="structGPSSensor.html#a46585a277745653800c1e0d374194bd7"> 38</a></span><a class="code hl_struct" href="structGPS.html">GPS</a> <a class="code hl_function" href="structGPSSensor.html#a46585a277745653800c1e0d374194bd7">GPSSensor::read</a>() {</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <span class="keywordflow">return</span> <a class="code hl_struct" href="structGPS.html">GPS</a>{<a class="code hl_variable" href="hardware_2GPSSensor_8cpp.html#a586df2245b00169e4fbedd73e84b9508">ublox</a>.getLatitude(), <a class="code hl_variable" href="hardware_2GPSSensor_8cpp.html#a586df2245b00169e4fbedd73e84b9508">ublox</a>.getLongitude(), (float) <a class="code hl_variable" href="hardware_2GPSSensor_8cpp.html#a586df2245b00169e4fbedd73e84b9508">ublox</a>.getAltitude() / 1000.f, (float) <a class="code hl_variable" href="hardware_2GPSSensor_8cpp.html#a586df2245b00169e4fbedd73e84b9508">ublox</a>.getGroundSpeed() / 1000.f, <a class="code hl_variable" href="hardware_2GPSSensor_8cpp.html#a586df2245b00169e4fbedd73e84b9508">ublox</a>.getFixType(), <a class="code hl_variable" href="hardware_2GPSSensor_8cpp.html#a586df2245b00169e4fbedd73e84b9508">ublox</a>.getUnixEpoch()};</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span>}</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> </div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="structGPSSensor.html#a797d97d0a0062fa157c48ce427807eb0"> 42</a></span><span class="keywordtype">bool</span> <a class="code hl_function" href="structGPSSensor.html#a797d97d0a0062fa157c48ce427807eb0">GPSSensor::valid</a>() {</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="hardware_2GPSSensor_8cpp.html#a586df2245b00169e4fbedd73e84b9508">ublox</a>.getPVT();</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span>}</div>
<div class="ttc" id="aerrors_8h_html_a59e56af19e754a6aa26a612ebf91d05f"><div class="ttname"><a href="errors_8h.html#a59e56af19e754a6aa26a612ebf91d05f">ErrorCode</a></div><div class="ttdeci">ErrorCode</div><div class="ttdoc">list of all error codes that can arise</div><div class="ttdef"><b>Definition:</b> <a href="errors_8h_source.html#l00008">errors.h:8</a></div></div>
<div class="ttc" id="aerrors_8h_html_a59e56af19e754a6aa26a612ebf91d05fa7d5a163ff267ce73b287fae4b4468748"><div class="ttname"><a href="errors_8h.html#a59e56af19e754a6aa26a612ebf91d05fa7d5a163ff267ce73b287fae4b4468748">GPSCouldNotBeInitialized</a></div><div class="ttdeci">@ GPSCouldNotBeInitialized</div><div class="ttdef"><b>Definition:</b> <a href="errors_8h_source.html#l00019">errors.h:19</a></div></div>
<div class="ttc" id="aerrors_8h_html_a59e56af19e754a6aa26a612ebf91d05faef9104c292609ba6db320509be8fe27f"><div class="ttname"><a href="errors_8h.html#a59e56af19e754a6aa26a612ebf91d05faef9104c292609ba6db320509be8fe27f">NoError</a></div><div class="ttdeci">@ NoError</div><div class="ttdef"><b>Definition:</b> <a href="errors_8h_source.html#l00009">errors.h:9</a></div></div>
Expand All @@ -125,8 +127,8 @@
<div class="ttc" id="apins_8h_html"><div class="ttname"><a href="pins_8h.html">pins.h</a></div></div>
<div class="ttc" id="asensor__data_8h_html"><div class="ttname"><a href="sensor__data_8h.html">sensor_data.h</a></div></div>
<div class="ttc" id="astructGPSSensor_html_a411100dccb61b1ddf7fc1a2f5cc8530c"><div class="ttname"><a href="structGPSSensor.html#a411100dccb61b1ddf7fc1a2f5cc8530c">GPSSensor::init</a></div><div class="ttdeci">ErrorCode init()</div><div class="ttdoc">Initializes GPS, returns NoError.</div><div class="ttdef"><b>Definition:</b> <a href="hardware_2GPSSensor_8cpp_source.html#l00016">GPSSensor.cpp:16</a></div></div>
<div class="ttc" id="astructGPSSensor_html_a46585a277745653800c1e0d374194bd7"><div class="ttname"><a href="structGPSSensor.html#a46585a277745653800c1e0d374194bd7">GPSSensor::read</a></div><div class="ttdeci">GPS read()</div><div class="ttdoc">Reads the GPS data from the sensor (lat, long, altitude, sat count, etc)</div><div class="ttdef"><b>Definition:</b> <a href="hardware_2GPSSensor_8cpp_source.html#l00036">GPSSensor.cpp:36</a></div></div>
<div class="ttc" id="astructGPSSensor_html_a797d97d0a0062fa157c48ce427807eb0"><div class="ttname"><a href="structGPSSensor.html#a797d97d0a0062fa157c48ce427807eb0">GPSSensor::valid</a></div><div class="ttdeci">bool valid()</div><div class="ttdef"><b>Definition:</b> <a href="hardware_2GPSSensor_8cpp_source.html#l00040">GPSSensor.cpp:40</a></div></div>
<div class="ttc" id="astructGPSSensor_html_a46585a277745653800c1e0d374194bd7"><div class="ttname"><a href="structGPSSensor.html#a46585a277745653800c1e0d374194bd7">GPSSensor::read</a></div><div class="ttdeci">GPS read()</div><div class="ttdoc">Reads the GPS data from the sensor (lat, long, altitude, sat count, etc)</div><div class="ttdef"><b>Definition:</b> <a href="hardware_2GPSSensor_8cpp_source.html#l00038">GPSSensor.cpp:38</a></div></div>
<div class="ttc" id="astructGPSSensor_html_a797d97d0a0062fa157c48ce427807eb0"><div class="ttname"><a href="structGPSSensor.html#a797d97d0a0062fa157c48ce427807eb0">GPSSensor::valid</a></div><div class="ttdeci">bool valid()</div><div class="ttdef"><b>Definition:</b> <a href="hardware_2GPSSensor_8cpp_source.html#l00042">GPSSensor.cpp:42</a></div></div>
<div class="ttc" id="astructGPS_html"><div class="ttname"><a href="structGPS.html">GPS</a></div><div class="ttdoc">data from the GPS</div><div class="ttdef"><b>Definition:</b> <a href="sensor__data_8h_source.html#l00149">sensor_data.h:149</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
Expand Down
4 changes: 2 additions & 2 deletions docs/hardware_2sensors_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@
<div class="ttc" id="astructContinuity_html"><div class="ttname"><a href="structContinuity.html">Continuity</a></div><div class="ttdoc">data about pyro continuity</div><div class="ttdef"><b>Definition:</b> <a href="sensor__data_8h_source.html#l00130">sensor_data.h:130</a></div></div>
<div class="ttc" id="astructGPSSensor_html"><div class="ttname"><a href="structGPSSensor.html">GPSSensor</a></div><div class="ttdef"><b>Definition:</b> <a href="hardware_2sensors_8h_source.html#l00085">sensors.h:85</a></div></div>
<div class="ttc" id="astructGPSSensor_html_a411100dccb61b1ddf7fc1a2f5cc8530c"><div class="ttname"><a href="structGPSSensor.html#a411100dccb61b1ddf7fc1a2f5cc8530c">GPSSensor::init</a></div><div class="ttdeci">ErrorCode init()</div><div class="ttdoc">Initializes GPS, returns NoError.</div><div class="ttdef"><b>Definition:</b> <a href="hardware_2GPSSensor_8cpp_source.html#l00016">GPSSensor.cpp:16</a></div></div>
<div class="ttc" id="astructGPSSensor_html_a46585a277745653800c1e0d374194bd7"><div class="ttname"><a href="structGPSSensor.html#a46585a277745653800c1e0d374194bd7">GPSSensor::read</a></div><div class="ttdeci">GPS read()</div><div class="ttdoc">Reads the GPS data from the sensor (lat, long, altitude, sat count, etc)</div><div class="ttdef"><b>Definition:</b> <a href="hardware_2GPSSensor_8cpp_source.html#l00036">GPSSensor.cpp:36</a></div></div>
<div class="ttc" id="astructGPSSensor_html_a797d97d0a0062fa157c48ce427807eb0"><div class="ttname"><a href="structGPSSensor.html#a797d97d0a0062fa157c48ce427807eb0">GPSSensor::valid</a></div><div class="ttdeci">bool valid()</div><div class="ttdef"><b>Definition:</b> <a href="hardware_2GPSSensor_8cpp_source.html#l00040">GPSSensor.cpp:40</a></div></div>
<div class="ttc" id="astructGPSSensor_html_a46585a277745653800c1e0d374194bd7"><div class="ttname"><a href="structGPSSensor.html#a46585a277745653800c1e0d374194bd7">GPSSensor::read</a></div><div class="ttdeci">GPS read()</div><div class="ttdoc">Reads the GPS data from the sensor (lat, long, altitude, sat count, etc)</div><div class="ttdef"><b>Definition:</b> <a href="hardware_2GPSSensor_8cpp_source.html#l00038">GPSSensor.cpp:38</a></div></div>
<div class="ttc" id="astructGPSSensor_html_a797d97d0a0062fa157c48ce427807eb0"><div class="ttname"><a href="structGPSSensor.html#a797d97d0a0062fa157c48ce427807eb0">GPSSensor::valid</a></div><div class="ttdeci">bool valid()</div><div class="ttdef"><b>Definition:</b> <a href="hardware_2GPSSensor_8cpp_source.html#l00042">GPSSensor.cpp:42</a></div></div>
<div class="ttc" id="astructGPSSensor_html_ae0a61aefe2311f0e6c543547aeca04ef"><div class="ttname"><a href="structGPSSensor.html#ae0a61aefe2311f0e6c543547aeca04ef">GPSSensor::is_leap</a></div><div class="ttdeci">bool is_leap</div><div class="ttdef"><b>Definition:</b> <a href="hardware_2sensors_8h_source.html#l00089">sensors.h:89</a></div></div>
<div class="ttc" id="astructGPS_html"><div class="ttname"><a href="structGPS.html">GPS</a></div><div class="ttdoc">data from the GPS</div><div class="ttdef"><b>Definition:</b> <a href="sensor__data_8h_source.html#l00149">sensor_data.h:149</a></div></div>
<div class="ttc" id="astructGpioAddress_html"><div class="ttname"><a href="structGpioAddress.html">GpioAddress</a></div><div class="ttdoc">struct representing the LED pins</div></div>
Expand Down
Loading

0 comments on commit 33fde2d

Please sign in to comment.