Changes

Jump to navigation Jump to search
953 bytes added ,  02:50, 10 May 2018
Line 15: Line 15:     
===Running a SHITL test===
 
===Running a SHITL test===
 +
 +
First, you have to make sure that the code is configured to actually run the test. In Avionics.h, un-comment out the line <code>#define SERIALSHITL</code>. Once reprogrammed, this will put valbal in SHITL mode.
 +
 +
Next, run the script shitl/shitl.py with python3 (you must used the command <code>python3</code> since the pi defaults to python2 (I think)). You'll want to do this as soon as platformio is done uploading the code to valbal.
 +
 +
After shitl is running, a bunch of variables will be output to a file in test <code>shitl/test-outputs</code> . The date and time is appended to each file, so find the most recent one. I think the pi is on UTC time or something so it wont match local time.
 +
 +
==== Notes ====
 +
You'll want to run the shitl.py from a screen session so that you can logout and it will stay running. To do this, run the command <code>screen</code> and then do things normally as you would. Refer to the manpages of screen for more info.
    
===SD Card (joan cough cough)===
 
===SD Card (joan cough cough)===
77

edits

Navigation menu