http://wiki.paparazziuav.org/w/index.php?title=File_logger&feed=atom&action=historyFile logger - Revision history2024-03-28T16:23:50ZRevision history for this page on the wikiMediaWiki 1.37.1http://wiki.paparazziuav.org/w/index.php?title=File_logger&diff=23989&oldid=prevOpenuas at 10:40, 25 January 20182018-01-25T10:40:27Z<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 04:40, 25 January 2018</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=When you can use the file logger module=</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=When you can use the file logger module=</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>The file logger module can be used if you have internal storage space on your autopilot. </div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>The file logger module can be used if you have <ins style="font-weight: bold; text-decoration: none;">a Linux based OS with access </ins>internal storage space on your autopilot. </div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>This is for instance the case with most drones from Parrot, such as the Bebop.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>This is for instance the case with most drones from Parrot, such as the Bebop.</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Therefore, in the rest of this page, the Bebop will be taken as an example.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Therefore, in the rest of this page, the Bebop will be taken as an example.</div></td></tr>
</table>Openuashttp://wiki.paparazziuav.org/w/index.php?title=File_logger&diff=23298&oldid=prevEwoud at 18:43, 23 August 20162016-08-23T18:43:16Z<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 12:43, 23 August 2016</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=When you can use the file logger module=</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=When you can use the file logger module=</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>The file logger module can be used if you have internal storage space on <del style="font-weight: bold; text-decoration: none;">you </del>autopilot. </div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>The file logger module can be used if you have internal storage space on <ins style="font-weight: bold; text-decoration: none;">your </ins>autopilot. </div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>This is for instance the case with most drones from Parrot, such as the Bebop.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>This is for instance the case with most drones from Parrot, such as the Bebop.</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Therefore, in the rest of this page, the Bebop will be taken as an example.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Therefore, in the rest of this page, the Bebop will be taken as an example.</div></td></tr>
</table>Ewoudhttp://wiki.paparazziuav.org/w/index.php?title=File_logger&diff=23297&oldid=prevEwoud: Created page with "=When you can use the file logger module= The file logger module can be used if you have internal storage space on you autopilot. This is for instance the case with most dro..."2016-08-23T18:42:31Z<p>Created page with "=When you can use the file logger module= The file logger module can be used if you have internal storage space on you autopilot. This is for instance the case with most dro..."</p>
<p><b>New page</b></p><div>=When you can use the file logger module=<br />
<br />
The file logger module can be used if you have internal storage space on you autopilot. <br />
This is for instance the case with most drones from Parrot, such as the Bebop.<br />
Therefore, in the rest of this page, the Bebop will be taken as an example.<br />
<br />
=Logging Data on the Parrot Bebop=<br />
<br />
Logging data onboard on the Bebop is pretty straight forward. <br />
The Bebop drone is equipped with onboard storage, which we use to store the logs. <br />
<br />
'''Step 1:'''<br />
First, open your <tt> airframe.xml </tt> file (for example in <tt> paparazzi/conf/airframes/TUDELFT/ </tt>). Make sure that under modules, the following lines are uncommented or included:<br />
<br />
<source lang="xml"><br />
<modules main_freq="512"><br />
<module name="logger_file"><br />
<define name="FILE_LOGGER_PATH" value="/data/ftp/internal_000"/><br />
</module><br />
</modules><br />
</source><br />
<br />
'''Step 2:'''<br />
In your logger file include the headers within paparazzi which contain the variables which you would like to log. This is done in the logger c file in <tt> paparazzi/sw/airborne/modules/loggers/file_logger.c </tt>. In this case I want to log data from <tt> stabilization_indi.c </tt>, so the following header should be included:<br />
<br />
<source lang="c"><br />
#include "firmwares/rotorcraft/stabilization/stabilization_indi.h"<br />
</source><br />
<br />
In the file <tt> file_logger.c </tt> you can specify which variables you want to have logged in the same fashion as normal "printf's" would work. The variable names and the variable types (float, int etc.) have to be specified.<br />
<br />
'''Step 3:'''<br />
Start and stop the file logger by going to the paparazzi ground control station. Then go to > Settings > Modules. Here you can start and stop a log. This is displayed in the picture below:<br />
<br />
[[File:Bebop logs.png|frameless|Enable data logging in the GCS.]]<br />
<br />
'''Step 4:'''<br />
First, make sure that your Parrot Bebop is on, and connected. Now the logged .csv files can be retrieved from the Bebop. This is done by opening a browser, and typing <tt> ftp://196.168.42.1/ </tt> in the navigation line. This will take you to the ftp folder on the Bebop. Browse to <tt> /Internal000/ </tt>. Here we can find the <tt>.csv </tt>files, named <tt> 00000.csv </tt> to <tt> 0000X.csv </tt> depending on the flights you logged. Copy the files to your computer for analysis.</div>Ewoud