MRPT
2.0.4
|
#include <gtest/gtest.h>
#include <mrpt/hwdrivers/CGPSInterface.h>
#include <mrpt/io/CMemoryStream.h>
Go to the source code of this file.
Functions | |
TEST (CGPSInterface, parse_NMEA_GGA) | |
TEST (CGPSInterface, parse_NMEA_RMC) | |
TEST (CGPSInterface, parse_NMEA_GLL) | |
TEST (CGPSInterface, parse_NMEA_VTG) | |
TEST (CGPSInterface, parse_NMEA_ZDA) | |
TEST (CGPSInterface, parse_NMEA_ZDA_stream) | |
TEST (CGPSInterface, parse_NOVATEL6_stream) | |
TEST (CGPSInterface, parse_NMEA_stream) | |
TEST | ( | CGPSInterface | , |
parse_NMEA_GGA | |||
) |
Definition at line 22 of file CGPSInterface_unittest.cpp.
References mrpt::obs::gnss::Message_NMEA_GGA::content_t::altitude_meters, EXPECT_NEAR(), EXPECT_TRUE(), mrpt::obs::gnss::Message_NMEA_GGA::fields, mrpt::obs::CObservationGPS::getMsgByClassPtr(), mrpt::obs::gnss::Message_NMEA_GGA::content_t::latitude_degrees, mrpt::obs::gnss::Message_NMEA_GGA::content_t::longitude_degrees, and mrpt::hwdrivers::CGPSInterface::parse_NMEA().
TEST | ( | CGPSInterface | , |
parse_NMEA_RMC | |||
) |
Definition at line 52 of file CGPSInterface_unittest.cpp.
References EXPECT_NEAR(), EXPECT_TRUE(), mrpt::obs::gnss::Message_NMEA_RMC::fields, mrpt::obs::CObservationGPS::getMsgByClassPtr(), mrpt::obs::gnss::Message_NMEA_RMC::content_t::latitude_degrees, mrpt::obs::gnss::Message_NMEA_RMC::content_t::longitude_degrees, and mrpt::hwdrivers::CGPSInterface::parse_NMEA().
TEST | ( | CGPSInterface | , |
parse_NMEA_GLL | |||
) |
Definition at line 69 of file CGPSInterface_unittest.cpp.
References EXPECT_NEAR(), EXPECT_TRUE(), mrpt::obs::gnss::Message_NMEA_GLL::fields, mrpt::obs::CObservationGPS::getMsgByClassPtr(), mrpt::obs::gnss::Message_NMEA_GLL::content_t::latitude_degrees, mrpt::obs::gnss::Message_NMEA_GLL::content_t::longitude_degrees, and mrpt::hwdrivers::CGPSInterface::parse_NMEA().
TEST | ( | CGPSInterface | , |
parse_NMEA_VTG | |||
) |
Definition at line 85 of file CGPSInterface_unittest.cpp.
References EXPECT_NEAR(), EXPECT_TRUE(), mrpt::obs::gnss::Message_NMEA_VTG::fields, mrpt::obs::CObservationGPS::getMsgByClassPtr(), mrpt::obs::gnss::Message_NMEA_VTG::content_t::ground_speed_kmh, mrpt::obs::gnss::Message_NMEA_VTG::content_t::ground_speed_knots, mrpt::obs::gnss::Message_NMEA_VTG::content_t::magnetic_track, mrpt::hwdrivers::CGPSInterface::parse_NMEA(), and mrpt::obs::gnss::Message_NMEA_VTG::content_t::true_track.
TEST | ( | CGPSInterface | , |
parse_NMEA_ZDA | |||
) |
Definition at line 103 of file CGPSInterface_unittest.cpp.
References mrpt::obs::gnss::Message_NMEA_ZDA::content_t::date_day, mrpt::obs::gnss::Message_NMEA_ZDA::content_t::date_month, mrpt::obs::gnss::Message_NMEA_ZDA::content_t::date_year, EXPECT_TRUE(), mrpt::obs::gnss::Message_NMEA_ZDA::fields, mrpt::obs::CObservationGPS::getMsgByClassPtr(), mrpt::obs::gnss::UTC_time::hour, mrpt::obs::gnss::UTC_time::minute, mrpt::hwdrivers::CGPSInterface::parse_NMEA(), mrpt::obs::gnss::UTC_time::sec, and mrpt::obs::gnss::Message_NMEA_ZDA::content_t::UTCTime.
TEST | ( | CGPSInterface | , |
parse_NMEA_ZDA_stream | |||
) |
Definition at line 125 of file CGPSInterface_unittest.cpp.
References mrpt::hwdrivers::CGPSInterface::bindStream(), mrpt::hwdrivers::CGPSInterface::doProcess(), EXPECT_EQ(), EXPECT_TRUE(), mrpt::ptr_cast< CAST_TO >::from(), mrpt::hwdrivers::CGenericSensor::getObservations(), and mrpt::hwdrivers::CGenericSensor::initialize().
TEST | ( | CGPSInterface | , |
parse_NOVATEL6_stream | |||
) |
Definition at line 162 of file CGPSInterface_unittest.cpp.
References mrpt::hwdrivers::CGPSInterface::bindStream(), mrpt::hwdrivers::CGPSInterface::doProcess(), EXPECT_EQ(), EXPECT_NEAR(), EXPECT_TRUE(), mrpt::ptr_cast< CAST_TO >::from(), mrpt::hwdrivers::CGenericSensor::getObservations(), and mrpt::hwdrivers::CGenericSensor::initialize().
TEST | ( | CGPSInterface | , |
parse_NMEA_stream | |||
) |
Definition at line 251 of file CGPSInterface_unittest.cpp.
References mrpt::hwdrivers::CGPSInterface::bindStream(), mrpt::hwdrivers::CGPSInterface::doProcess(), EXPECT_EQ(), EXPECT_NEAR(), EXPECT_TRUE(), mrpt::ptr_cast< CAST_TO >::from(), mrpt::hwdrivers::CGenericSensor::getObservations(), and mrpt::hwdrivers::CGenericSensor::initialize().
Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020 |