1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-08 08:54:49 -04:00

Added a plugin for BladeRF. Removed GNUradio from the build (gr-osmocom source) as this does not work properly

This commit is contained in:
f4exb
2015-06-07 03:30:28 +02:00
parent b2f384a630
commit 1c7ea3dfb3
34 changed files with 2066 additions and 26 deletions
@@ -18,6 +18,8 @@
#include "dsp/samplesource/samplesource.h"
#include "util/simpleserializer.h"
#include <iostream>
SampleSource::GeneralSettings::GeneralSettings() :
m_centerFrequency(100000000)
{
@@ -40,12 +42,15 @@ bool SampleSource::GeneralSettings::deserialize(const QByteArray& data)
SimpleDeserializer d(data);
if(!d.isValid()) {
std::cerr << "SampleSource::GeneralSettings::deserialize: invalid deserializer" << std::endl;
resetToDefaults();
return false;
}
if(d.getVersion() == 1) {
d.readU64(1, &m_centerFrequency, 100000000);
std::cerr << "SampleSource::GeneralSettings::deserialize: center frequency = "
<< m_centerFrequency << std::endl;
return true;
} else {
resetToDefaults();