pull/21/head v0.21
Pieter Robyns 2016-08-29 09:36:01 +02:00
rodzic 7e61d94424
commit 33713966a2
3 zmienionych plików z 9 dodań i 4 usunięć

Wyświetl plik

@ -31,6 +31,11 @@ cmake ../ # Note to Arch Linux users: add "-DCMAKE_INSTALL_PREFIX=/usr"
make && sudo make install
```
The following dependencies are required:
- numpy
- scipy
- liquid-dsp (https://github.com/jgaeddert/liquid-dsp)
Testing
-------
@ -67,5 +72,6 @@ See the LICENSE file for the license of this project. If you are working on a pr
Changelog
---------
- Version 0.2: C++ realtime decoder, manual finetuning for correcting frequency offsets of the transmitter.
- Version 0.1: Python prototype file based decoder, SF7, CR4/8
- Versuib 0.21: Fixed some issues reported by reletreby
- Version 0.2 : C++ realtime decoder, manual finetuning for correcting frequency offsets of the transmitter.
- Version 0.1 : Python prototype file based decoder, SF7, CR4/8

Wyświetl plik

@ -121,7 +121,7 @@ namespace gr {
void decoder_impl::samples_to_file(const std::string path, const gr_complex* v, int length, int elem_size) {
#ifndef NO_TMP_WRITES
std::ofstream out_file;
out_file.open(path, std::ios::out | std::ios::binary);
out_file.open(path.c_str(), std::ios::out | std::ios::binary);
//for(std::vector<gr_complex>::const_iterator it = v.begin(); it != v.end(); ++it) {
for(uint32_t i = 0; i < length; i++) {
out_file.write(reinterpret_cast<const char *>(&v[i]), elem_size);

Wyświetl plik

@ -56,7 +56,6 @@ import numpy
import struct
from gnuradio import gr
from scipy import signal
from scapy.all import hexdump
DELAY_AFTER_SYNC = 268 # Delay window after two downchirps in the LoRa signal
EPSILON = 0.001