-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, GPSFix messages were generated by synchronizing GPGGA and GPRMC logs, optionally filling in a few fields from BESTPOS logs when available. This will instead produce more accurate GPSFix message with more fields by instead basing them on BESTPOS logs and synchronizing them with BESTVEL and PSRDOP2 logs when possible. Distribution Statement A; OPSEC #2893 Signed-off-by: P. J. Reed <preed@swri.org>
- Loading branch information
Showing
18 changed files
with
427 additions
and
287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
novatel_gps_driver/include/novatel_gps_driver/parsers/psrdop2.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// ***************************************************************************** | ||
// | ||
// Copyright (C) 2019 All Right Reserved, Southwest Research Institute® (SwRI®) | ||
// | ||
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY | ||
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE | ||
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A | ||
// PARTICULAR PURPOSE. | ||
// | ||
// ***************************************************************************** | ||
|
||
#ifndef NOVATEL_GPS_DRIVER_PSRDOP_2_H | ||
#define NOVATEL_GPS_DRIVER_PSRDOP_2_H | ||
|
||
#include <novatel_gps_msgs/msg/novatel_psrdop2.hpp> | ||
|
||
#include "message_parser.h" | ||
|
||
namespace novatel_gps_driver | ||
{ | ||
class Psrdop2Parser : public MessageParser<novatel_gps_msgs::msg::NovatelPsrdop2::SharedPtr> | ||
{ | ||
public: | ||
uint32_t GetMessageId() const override; | ||
|
||
const std::string GetMessageName() const override; | ||
|
||
MessageType ParseBinary(const BinaryMessage& bin_msg) override; | ||
|
||
MessageType ParseAscii(const NovatelSentence& sentence) override; | ||
|
||
std::string GetSystemName(uint32_t system_id); | ||
|
||
static constexpr uint16_t MESSAGE_ID = 1163; | ||
static constexpr size_t ASCII_BODY_FIELDS = 5; | ||
static constexpr size_t ASCII_SYSTEM_FIELDS = 2; | ||
static constexpr size_t BINARY_SYSTEM_LENGTH = 8; | ||
static constexpr size_t BINARY_BODY_LENGTH = 20; | ||
static const std::string MESSAGE_NAME; | ||
}; | ||
} | ||
|
||
#endif //NOVATEL_GPS_DRIVER_PSRDOP_2_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.