-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from tlm-solutions/marenz.borzoi_cleanup
Cleanup Borzoi
- Loading branch information
Showing
41 changed files
with
1,061 additions
and
375 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "lib/ViterbiDecoderCpp"] | ||
path = lib/ViterbiDecoderCpp | ||
url = https://github.com/FiendChain/ViterbiDecoderCpp.git | ||
[submodule "lib/rapidcsv"] | ||
path = lib/rapidcsv | ||
url = https://github.com/d99kris/rapidcsv.git |
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 was deleted.
Oops, something went wrong.
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,68 @@ | ||
/* | ||
* Copyright (C) 2024 Transit Live Mapping Solutions | ||
* All rights reserved. | ||
* | ||
* Authors: | ||
* Marenz Schmidl | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "l2/logical_link_control_packet.hpp" | ||
#include "l2/slot.hpp" | ||
|
||
struct BorzoiSendTetraPacket { | ||
std::string time; | ||
std::string station; | ||
const std::unique_ptr<LogicalLinkControlPacket>& packet; | ||
|
||
BorzoiSendTetraPacket() = delete; | ||
|
||
/// Construct a packet for Borzoi containing the parsed packet, the current time and the uuid of this instance of | ||
/// tetra decoder. | ||
BorzoiSendTetraPacket(const std::unique_ptr<LogicalLinkControlPacket>& packet, std::string borzoi_uuid); | ||
|
||
friend auto operator<<(std::ostream& stream, const BorzoiSendTetraPacket& packet) -> std::ostream&; | ||
}; | ||
|
||
auto operator<<(std::ostream& stream, const BorzoiSendTetraPacket& packet) -> std::ostream&; | ||
|
||
struct BorzoiReceiveTetraPacket { | ||
std::string time; | ||
std::string station; | ||
std::unique_ptr<LogicalLinkControlPacket> packet; | ||
|
||
BorzoiReceiveTetraPacket() = default; | ||
|
||
friend auto operator<<(std::ostream& stream, const BorzoiReceiveTetraPacket& packet) -> std::ostream&; | ||
}; | ||
|
||
auto operator<<(std::ostream& stream, const BorzoiReceiveTetraPacket& packet) -> std::ostream&; | ||
|
||
struct BorzoiSendTetraSlots { | ||
std::string time; | ||
std::string station; | ||
const Slots& slots; | ||
|
||
BorzoiSendTetraSlots() = delete; | ||
|
||
/// Construct a packet for Borzoi containing the received slot, the current time and the uuid of this instance of | ||
/// tetra decoder. | ||
BorzoiSendTetraSlots(const Slots& slots, std::string borzoi_uuid); | ||
|
||
friend auto operator<<(std::ostream& stream, const BorzoiSendTetraSlots& packet) -> std::ostream&; | ||
}; | ||
|
||
auto operator<<(std::ostream& stream, const BorzoiSendTetraSlots& packet) -> std::ostream&; | ||
|
||
struct BorzoiReceiveTetraSlots { | ||
std::string time; | ||
std::string station; | ||
Slots slots; | ||
|
||
BorzoiReceiveTetraSlots() = default; | ||
|
||
friend auto operator<<(std::ostream& stream, const BorzoiReceiveTetraSlots& packet) -> std::ostream&; | ||
}; | ||
|
||
auto operator<<(std::ostream& stream, const BorzoiReceiveTetraSlots& packet) -> std::ostream&; |
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
Oops, something went wrong.