-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new command line options to setup server and station id
- Loading branch information
Fábio Gonçalves
committed
Jun 19, 2024
1 parent
067c01a
commit 76cd0da
Showing
8 changed files
with
245 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"files.associations": { | ||
"array": "cpp", | ||
"atomic": "cpp", | ||
"bit": "cpp", | ||
"*.tcc": "cpp", | ||
"cctype": "cpp", | ||
"chrono": "cpp", | ||
"clocale": "cpp", | ||
"cmath": "cpp", | ||
"compare": "cpp", | ||
"concepts": "cpp", | ||
"condition_variable": "cpp", | ||
"cstdarg": "cpp", | ||
"cstddef": "cpp", | ||
"cstdint": "cpp", | ||
"cstdio": "cpp", | ||
"cstdlib": "cpp", | ||
"cstring": "cpp", | ||
"ctime": "cpp", | ||
"cwchar": "cpp", | ||
"cwctype": "cpp", | ||
"deque": "cpp", | ||
"list": "cpp", | ||
"map": "cpp", | ||
"set": "cpp", | ||
"string": "cpp", | ||
"unordered_map": "cpp", | ||
"unordered_set": "cpp", | ||
"vector": "cpp", | ||
"exception": "cpp", | ||
"algorithm": "cpp", | ||
"functional": "cpp", | ||
"iterator": "cpp", | ||
"memory": "cpp", | ||
"memory_resource": "cpp", | ||
"numeric": "cpp", | ||
"random": "cpp", | ||
"ratio": "cpp", | ||
"string_view": "cpp", | ||
"system_error": "cpp", | ||
"tuple": "cpp", | ||
"type_traits": "cpp", | ||
"utility": "cpp", | ||
"fstream": "cpp", | ||
"future": "cpp", | ||
"initializer_list": "cpp", | ||
"iomanip": "cpp", | ||
"iosfwd": "cpp", | ||
"iostream": "cpp", | ||
"istream": "cpp", | ||
"limits": "cpp", | ||
"mutex": "cpp", | ||
"new": "cpp", | ||
"numbers": "cpp", | ||
"ostream": "cpp", | ||
"semaphore": "cpp", | ||
"sstream": "cpp", | ||
"stdexcept": "cpp", | ||
"stop_token": "cpp", | ||
"streambuf": "cpp", | ||
"thread": "cpp", | ||
"cinttypes": "cpp", | ||
"typeindex": "cpp", | ||
"typeinfo": "cpp", | ||
"asn_application.h": "c", | ||
"basicvehiclecontainerhighfrequency.h": "c" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#include "its_lci.hpp" | ||
#include <vanetza/btp/ports.hpp> | ||
#include <vanetza/asn1/cam.hpp> | ||
#include <vanetza/asn1/packet_visitor.hpp> | ||
#include <vanetza/facilities/cam_functions.hpp> | ||
#include <boost/units/cmath.hpp> | ||
#include <boost/units/systems/si/prefixes.hpp> | ||
#include <chrono> | ||
#include <exception> | ||
#include <functional> | ||
#include <iostream> | ||
|
||
// This is a very simple CA application sending CAMs at a fixed rate. | ||
|
||
using namespace vanetza; | ||
using namespace vanetza::facilities; | ||
using namespace std::chrono; | ||
|
||
ITC_LCI_Application::ITC_LCI_Application(PositionProvider& positioning, Runtime& rt) : | ||
positioning_(positioning), runtime_(rt), cam_interval_(seconds(1)) | ||
{ | ||
int i = 0; | ||
printf("hellow %d", i); | ||
} | ||
|
||
void ITC_LCI_Application::indicate(const DataIndication& indication, UpPacketPtr packet) | ||
{ | ||
|
||
} |
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,23 @@ | ||
#ifndef ITC_LCI_HPP | ||
#define ITC_LCI_HPP | ||
|
||
#include "application.hpp" | ||
#include <vanetza/common/clock.hpp> | ||
#include <vanetza/common/position_provider.hpp> | ||
#include <vanetza/common/runtime.hpp> | ||
|
||
class ITC_LCI_Application : public Application | ||
{ | ||
public: | ||
ITC_LCI_Application(vanetza::PositionProvider& positioning, vanetza::Runtime& rt); | ||
PortType port() override; | ||
void indicate(const DataIndication&, UpPacketPtr) override; | ||
|
||
private: | ||
|
||
vanetza::PositionProvider& positioning_; | ||
vanetza::Runtime& runtime_; | ||
vanetza::Clock::duration cam_interval_; | ||
}; | ||
|
||
#endif |
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