Records data off of MCC DAQ and VectorNav INS
Records data off of MCC DAQ and VectorNav INS
Created for use on the BLUECAT VI (BC6) unmanned aerial platform at the University of Kentucky.
This is intended for use of the Raspberry Pi 3b+. With some modification to the functionality of
the GPIO it could be used on other linux machines. It requires an I2C bus, 3.3V power, and GPIO
on the device to support all features.
This may work with similar models, but has not been tested with anything but the above hardware.
The following software is automatically included and built alongside the datalogger.
All other required software is documented in the install.sh file. When launched this file will automatically
download all of the necessary software prerequisites for the features of the BC6. See the section below:
Initial Setup for installation information.
Below is a list of scripts and their functions
For simplicity, all of the required software libraries are installed and built automatically by running the script:
./install.sh
This will take some time and should only be done once.
The reboot script can be setup by running ‘crontab -e’ and entering the following line:@reboot cd home/pi/BC5-datalogger && sudo bash ./get_data.sh > home/pi/cronlog0 2>&1
Ensure the folder that you cd
to in this command is the correct name! If you download the source zip rather than clone from github, the folder name will be home/pi/BC5-datalogger-master
instead (note the branch suffix).
A USB drive is advisable for high data-rate storage. This is a good place to write the raw data while logging.
Additionally, the current launch script “./get_data.sh” looks for the configuration file in a USB drive mounted
to “/media/sda1”.
In order to accomplish this and be able to launch the script on bootup, we need to be able to auto-mount the USB drive.
This can be done by following a guide to editing the “/etc/fstab” file here.
First, get the UUID by running sudo blkid
and copying the UUID corresponding to the USB drive.
Then, make a permanent spot for the USB to mount by running sudo mkdir /media/sda1
.
Finally, edit the file at /etc/fstab
with sudo nano /etc/fstab
(or your favorite text editor) and append a line with this format:UUID=<uuid-of-your-drive> <mount-point> <file-system-type> <mount-option> <dump> <pass>
Your fstab line should look like this, with a different UUID:
UUID=eb67c479-962f-4bcc-b3fe-cefaf908f01e /media/sda1 vfat defaults,nofail 0 2
Make sure the USB drive has the rpi3b.yml
config file on it. The program will not launch if this file is not found.
For these changes to have effect, reboot the Pi with sudo reboot now
Upon landing the plane, press the same button once more and await the message “Sampling completed.” before shutting down.