Skip to content
Snippets Groups Projects
Commit ad236380 authored by Hoop77's avatar Hoop77
Browse files

-

parent bc48f43e
Branches
No related merge requests found
......@@ -32,6 +32,7 @@ $ sudo make install
```
Important Note:
Before you build the PlatoonProtocolLib you can customize some settings that you find in "PlatoonProtocol/include/Definitions.h".
For example: If you want to test or simulate multiple vehicles on a single machine, PLATOON_PROTOCOL_ENABLE_LOCAL_TESTING must be defined.
Otherwise the vehicle instances use the same port which is not possible on regular operating systems.
......@@ -93,7 +94,7 @@ networking::Networking net;
// Create a leader.
auto follower = platoonProtocol::FollowerVehicle::create(net, 2); // 2 = vehicleId
// Add endpoints which we may request a platoon to create with.
follower->addVehicleEndpoint(2, "192.168.100.30");
follower->addVehicleEndpoint(1, "192.168.40.27");
follower->addVehicleEndpoint(3, "192.168.134.5");
// Register a callback to receive platoon configuration updates (ps and ipd).
follower->setOnUpdatePlatoonConfigCallback(
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment