Skip to content
Snippets Groups Projects
Commit 53a87d9b authored by Pep Martí Saumell's avatar Pep Martí Saumell
Browse files

Structure modified

parent d63acedd
No related branches found
No related tags found
No related merge requests found
#ifndef GNSS_UTILS_H
#define GNSS_UTILS_H
#include <vector>
#include <iostream>
#include <memory>
extern "C"
{
#include "/home/jmarti/RTKLIB/src/rtklib.h"
}
class TestObj
namespace GNSSUtils
{
public:
obsd_t observation;
};
class Observation
{
public:
obsd_t GetRTKLIBObj();
Observation();
~Observation();
private:
gtime_t _time; // Receiver sampling time
unsigned char _sat; // Satellite number
unsigned char _rcv; // Receiver number
std::vector<char> _SNR;
std::vector<char> _LLI;
std::vector<char> _code;
std::vector<double> _L;
std::vector<double> _P;
std::vector<double> _D;
};
class Receiver
{
public:
Receiver();
~Receiver();
std::shared_ptr<double> _obsPtr;
void UpdateObservation();
private:
};
}
#endif
......@@ -2,7 +2,7 @@
SET(sources gnss_utils.cpp)
# application header files
SET(headers gnss_utils.h)
SET(headers ../include/gnss_utils.h)
# RTKLIB
INCLUDE (${PROJECT_SOURCE_DIR}/cmake_modules/FindRTKLIB.cmake)
......@@ -32,4 +32,4 @@ INSTALL(TARGETS
LIBRARY DESTINATION /usr/local/lib
ARCHIVE DESTINATION lib)
INSTALL(FILES ${headers} DESTINATION include/gnss_utils)
INSTALL(FILES ../gnss_utils.cmake DESTINATION ${CMAKE_ROOT}/Modules/)
# INSTALL(FILES ../gnss_utils.cmake DESTINATION ${CMAKE_ROOT}/Modules/)
#include "../include/gnss_utils.h"
using namespace GNSSUtils;
Observation::Observation()
{
}
Observation::~Observation()
{
//
}
Receiver::Receiver()
{
}
Receiver::~Receiver()
{
}
void Receiver::UpdateObservation()
{
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment