Install the OpenSSL on Debian based systems
sudo apt-get install openssl
#!/bin/bash --debugger | |
set -e | |
BRANCH="master" | |
if grep -q BCM2708 /proc/cpuinfo; then | |
echo "RPI BUILD!" | |
RPI="1" | |
fi | |
[ -n "$1" ] && BRANCH=$1 |
Add to /boot/config.txt (units Hz): | |
dtparam=i2c1_baudrate=50000 | |
Can go as low as 5khz |
jack@jack-desktop:~/git/stm32flash-code(master)$ srec_cat file.hex -intel -o file.mot | |
jack@jack-desktop:~/git/stm32flash-code(master)$ srec_cat file.mot -o file.bin -binary | |
jack@jack-desktop:~/git/stm32flash-code(master)$ srec_cat file.mot -offset - -minimum-addr file.mot -o Altimeter-v2.31.bin -binary | |
jack@jack-desktop:~/git/stm32flash-code(master)$ time ./stm32flash -g 0x0 -b 115200 -w file.bin /dev/ttyUSB1 | |
stm32flash 0.5 | |
http://stm32flash.sourceforge.net/ | |
Using Parser : Raw BINARY | |
Interface serial_posix: 115200 8E1 |
$ fdisk -l ardusub-raspbian-0.0.8.img | |
Disk ardusub-raspbian-0.0.8.img: 3.1 GiB, 3349151744 bytes, 6541312 sectors | |
Units: sectors of 1 * 512 = 512 bytes | |
Sector size (logical/physical): 512 bytes / 512 bytes | |
I/O size (minimum/optimal): 512 bytes / 512 bytes | |
Disklabel type: dos | |
Disk identifier: 0x1b4801d2 | |
Device Boot Start End Sectors Size Id Type | |
ardusub-raspbian-0.0.8.img1 8192 92159 83968 41M c W95 FAT32 (LBA) |
In gparted, unmount the ext4, and resize the partition | |
$ sudo parted /dev/sdg -s print | |
Model: Generic Mass-Storage (scsi) | |
Disk /dev/sdg: 7948MB | |
Sector size (logical/physical): 512B/512B | |
Partition Table: msdos | |
Disk Flags: | |
Number Start End Size Type File system Flags |
check the disk
lsblk -f
unmount the disk
umount /dev/sdX?*
// rtsp receivers: | |
gst-launch-1.0 rtspsrc location="rtsp://192.168.0.102:8554/test" protocols=GST_RTSP_LOWER_TRANS_TCP latency=0 ! rtph264depay ! decodebin ! videoconvert ! autovideosink sync=false | |
gst-launch-1.0 rtspsrc location=rtsp://192.168.1.156:8554/test ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! autovideosink | |
// Stream video to window and record it to file | |
gst-launch-1.0 -e -v udpsrc port=5600 ! tee name=VIDEOWINDOW ! queue ! application/x-rtp, encoding-name=H264, payload=96 ! rtph264depay ! h264parse ! mp4mux ! filesink location=myvideo.mp4 VIDEOWINDOW. ! queue ! application/x-rtp, payload=96 ! rtph264depay ! avdec_h264 ! autovideosink | |
#!/usr/bin/python | |
# - verify that logging to sd card is working OK | |
import os | |
import time | |
from pymavlink import mavutil | |
from argparse import ArgumentParser | |
parser = ArgumentParser(description=__doc__) |
#!/usr/bin/python | |
# - erase autopilot parameters (reset to defaults) | |
# - reboot autopilot to apply changes | |
import os | |
import time | |
from pymavlink import mavutil | |
from argparse import ArgumentParser |