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

[modif] novatel_raw inherits from ReceiverRawAbstract

parent 0dc9fee9
No related branches found
No related tags found
3 merge requests!20new tag,!19new tag,!11Resolve "Add Novatel raw data stream"
This commit is part of merge request !11. Comments created here will be created in the context of that merge request.
......@@ -5,23 +5,13 @@
namespace GnssUtils
{
class NovatelRaw
class NovatelRaw : public ReceiverRawAbstract
{
public:
NovatelRaw();
~NovatelRaw();
RawDataType addDataStream(const std::vector<uint8_t>& data_stream);
private:
raw_t raw_data_;
Observations obs_;
Navigation nav_;
void updateObservations();
RawDataType raw_data_type_;
};
} // namespace GnssUtils
......
......@@ -2,7 +2,7 @@
using namespace GnssUtils;
NovatelRaw::NovatelRaw() : raw_data_type_(NO)
NovatelRaw::NovatelRaw()
{
}
......@@ -25,11 +25,14 @@ RawDataType NovatelRaw::addDataStream(const std::vector<uint8_t>& data_stream)
case OBS: // Observations
std::cout << "Observations Novatel received!\n";
updateObservations();
// obs_.print();
break;
case NAV_EPH: // Ephemeris
std::cout << "Ephemeris received!\n";
// std::cout << "Ephemeris copied!\n";
nav_.copyEphemeris(raw_data_.nav);
nav_.print();
break;
case NAV_SBAS: // SBAS
......@@ -44,22 +47,22 @@ RawDataType NovatelRaw::addDataStream(const std::vector<uint8_t>& data_stream)
// Not handled messages
case NAV_ANT:
std::cout << "UBloxRaw: Received antenna postion parameters. Not handled.\n";
std::cout << "NovatelRaw: Received antenna postion parameters. Not handled.\n";
break;
case NAV_DGPS:
std::cout << "UBloxRaw: Received dgps correction. Not handled.\n";
std::cout << "NovatelRaw: Received dgps correction. Not handled.\n";
break;
case NAV_SSR:
std::cout << "UBloxRaw: Received ssr message. Not handled.\n";
std::cout << "NovatelRaw: Received ssr message. Not handled.\n";
break;
case NAV_LEX:
std::cout << "UBloxRaw: Received lex message. Not handled.\n";
std::cout << "NovatelRaw: Received lex message. Not handled.\n";
break;
case ERROR:
std::cout << "UBloxRaw: Received error message. Not handled.\n";
std::cout << "NovatelRaw: Received error message. Not handled.\n";
break;
default:
std::cout << "UBloxRaw: Received unknown message. Not handled.\n";
std::cout << "NovatelRaw: Received unknown message. Not handled.\n";
break;
}
}
......
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