From 210bc34705bd12894ed6344df04a240f4d9b64aa Mon Sep 17 00:00:00 2001 From: Lucas Teske Date: Sun, 9 Apr 2017 14:15:03 -0300 Subject: [PATCH] Disabled HackRF and updated Visual Studio Solution to 1.0.3 --- .gitignore | 2 ++ decoder/xritDecoder.vcxproj | 4 ++-- demodulator/src/HackRFFrontend.cpp | 2 ++ demodulator/src/HackRFFrontend.h | 4 ++++ demodulator/src/demodulator.cpp | 2 ++ demodulator/xritDemodulator.vcxproj | 16 +++++++++++----- demodulator/xritDemodulator.vcxproj.filters | 18 ++++++++++++++++++ 7 files changed, 41 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 4f1a4bb..5ec1a0d 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,5 @@ Debug Release *.VC.* airspy +librtlsdr +build diff --git a/decoder/xritDecoder.vcxproj b/decoder/xritDecoder.vcxproj index fae965a..806af23 100644 --- a/decoder/xritDecoder.vcxproj +++ b/decoder/xritDecoder.vcxproj @@ -59,7 +59,7 @@ v140 Unicode true - Static + false Application @@ -161,7 +161,7 @@ MaxSpeed true true - _USE_MATH_DEFINES;_CRT_SECURE_NO_WARNINGS;MAJOR_VERSION=1;MINOR_VERSION=0;MAINT_VERSION=2;GIT_SHA1=Microsoft Visual C++ Compiler + _USE_MATH_DEFINES;_CRT_SECURE_NO_WARNINGS;MAJOR_VERSION=1;MINOR_VERSION=0;MAINT_VERSION=3;GIT_SHA1=Microsoft Visual C++ Compiler Speed diff --git a/demodulator/src/HackRFFrontend.cpp b/demodulator/src/HackRFFrontend.cpp index 31f388a..11fb2f5 100644 --- a/demodulator/src/HackRFFrontend.cpp +++ b/demodulator/src/HackRFFrontend.cpp @@ -5,6 +5,7 @@ * Author: Lucas Teske */ +#if 0 #include "HackRFFrontend.h" #include #include @@ -222,3 +223,4 @@ uint32_t HackRFFrontend::GetSampleRate() { void HackRFFrontend::SetSamplesAvailableCallback(std::function cb) { this->cb = cb; } +#endif \ No newline at end of file diff --git a/demodulator/src/HackRFFrontend.h b/demodulator/src/HackRFFrontend.h index bbcd487..16b4282 100644 --- a/demodulator/src/HackRFFrontend.h +++ b/demodulator/src/HackRFFrontend.h @@ -5,6 +5,8 @@ * Author: Lucas Teske */ +#if 0 + #ifndef SRC_HACKRFFRONTEND_H_ #define SRC_HACKRFFRONTEND_H_ @@ -61,3 +63,5 @@ class HackRFFrontend: public FrontendDevice { }; #endif /* SRC_HACKRFFRONTEND_H_ */ + +#endif \ No newline at end of file diff --git a/demodulator/src/demodulator.cpp b/demodulator/src/demodulator.cpp index 81488f3..100890e 100644 --- a/demodulator/src/demodulator.cpp +++ b/demodulator/src/demodulator.cpp @@ -357,12 +357,14 @@ int main(int argc, char **argv) { device = new RtlFrontend(deviceNumber); device->SetSampleRate(sampleRate); device->SetCenterFrequency(centerFrequency); +#if 0 } else if (parser[CFG_DEVICE_TYPE] == "hackrf") { std::cout << "HackRF Frontend selected. Device Number: " << deviceNumber << std::endl; HackRFFrontend::Initialize(); device = new HackRFFrontend(deviceNumber); device->SetSampleRate(sampleRate); device->SetCenterFrequency(centerFrequency); +#endif #ifdef NON_FREE } else if (parser[CFG_DEVICE_TYPE] == "sdrplay") { std::cout << "SDRPlay Frontend selected." << std::endl; diff --git a/demodulator/xritDemodulator.vcxproj b/demodulator/xritDemodulator.vcxproj index 006a72f..289726e 100644 --- a/demodulator/xritDemodulator.vcxproj +++ b/demodulator/xritDemodulator.vcxproj @@ -30,7 +30,7 @@ true v140 Unicode - Static + false true @@ -87,8 +87,8 @@ false - ..\sathelper;..\correct;..\airspy;$(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86);$(NETFXKitsDir)Lib\um\x86 - ..\sathelper;..\correct;..\airspy;$(VC_IncludePath);$(WindowsSDK_IncludePath); + ..\librtlsdr;..\sathelper;..\correct;..\airspy;$(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86);$(NETFXKitsDir)Lib\um\x86 + ..\librtlsdr\include;..\sathelper;..\correct;..\airspy;$(VC_IncludePath);$(WindowsSDK_IncludePath) false @@ -133,14 +133,14 @@ MaxSpeed true true - _USE_MATH_DEFINES;_CRT_SECURE_NO_WARNINGS;MAJOR_VERSION=1;MINOR_VERSION=0;MAINT_VERSION=2;GIT_SHA1=Microsoft Visual C++ Compiler + _USE_MATH_DEFINES;_CRT_SECURE_NO_WARNINGS;MAJOR_VERSION=1;MINOR_VERSION=0;MAINT_VERSION=3;GIT_SHA1=Microsoft Visual C++ Compiler Console true true true - SatHelper.lib;libcorrect.lib;airspy.lib + SatHelper.lib;libcorrect.lib;airspy.lib;librtlsdr.lib @@ -168,7 +168,10 @@ + + + @@ -177,6 +180,9 @@ + + + diff --git a/demodulator/xritDemodulator.vcxproj.filters b/demodulator/xritDemodulator.vcxproj.filters index adeea93..beda109 100644 --- a/demodulator/xritDemodulator.vcxproj.filters +++ b/demodulator/xritDemodulator.vcxproj.filters @@ -39,6 +39,15 @@ Header Files + + Header Files + + + Header Files + + + Header Files + @@ -59,6 +68,15 @@ Source Files + + Source Files + + + Source Files + + + Source Files +