Michal Fratczak 2020-07-25 22:46:20 +01:00
commit 15c2b81d6e
3 zmienionych plików z 45 dodań i 6 usunięć

Wyświetl plik

@ -1,6 +1,6 @@
## I2C
You need to use software driver to I2c, and therefore, disable bluetooth. This is for rPI 3 and up.
You need to use software driver to I2C, and therefore, disable bluetooth. This is for rPI 3 and up.
[https://raspberrypi.stackexchange.com/questions/45570/how-do-i-make-serial-work-on-the-raspberry-pi3-or-later-model]
@ -19,25 +19,36 @@ dtoverlay=i2c-gpio,i2c_gpio_sda=2,i2c_gpio_scl=3
```
dependencies
## Dependencies
---
sudo apt-get install libboost-program-options-dev
---
git clone https://github.com/zeromq/libzmq.git
build with cmake
---
git clone https://github.com/zeromq/cppzmq.git
build with cmake
---
http://abyz.me.uk/rpi/pigpio/download.html
```
wget https://github.com/joan2937/pigpio/archive/master.zip
unzip master.zip
cd pigpio-master
make
sudo make install
```
---
pip3 install zmq exifread picamera psutil
sudo apt-get install imagemagick
run on one thread:
## Run on one thread:
```
taskset -c 1 ./tracker

Wyświetl plik

@ -5,7 +5,7 @@
#include <vector>
#include <iostream>
#include <fstream>
#include "glob.h"
#include "GLOB.h"
#include <boost/program_options.hpp>

Wyświetl plik

@ -0,0 +1,28 @@
# tracker options
#
callsign = fro
freq = 434.5
baud = 300
port = 6666
ssdv = /tracker/ssdv.bin
logsdir = /tracker/logs/
msg_num = 3
latlonalt = 52.1120009
latlonalt = 19.957789
latlonalt = 100
# hardware configuration
hw_pin_radio_on = 22
hw_radio_serial = /dev/serial0
#pi4
#hw_ublox_device = /dev/i2c-7
#pi0
hw_ublox_device = /dev/i2c-3
# camera
cam_dir = /tracker/camera
cam_flip_h =
cam_flip_v = 0
cam_ssdv_res = 128
cam_video_dur = 15
cam_snapshot_interval = 30