Keep vanetza-idf in obu-firmware, so a plain clone builds the firmware
obu-firmware builds against the vanetza-idf C-ITS library, which until now came from the colleague's microbu-esp32c5 tree beside the repository and was not tracked here, so a clone of this repository could not build the firmware it ships. The library alone is now part of obu-firmware, as obu-firmware/external/vanetza-idf: their external/vanetza-idf at commit cf4b99f, unchanged (9775 files; see its PROVENANCE.md). CMake takes it from there by default; -DVANETZA_IDF_DIR still points the build elsewhere. The rest of the colleague's tree (their own VAM firmware, PKI tooling, station-link Python tools, the V2X2MAP bridge) stays out of this repository and gitignored; nothing is pushed to their repository. NOTES.md, docs/06, TODO.md and the pcap verifier's usage line point at the new location.
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
#include "mib.hpp"
|
||||
#include <boost/units/systems/si/prefixes.hpp>
|
||||
|
||||
namespace vanetza
|
||||
{
|
||||
namespace geonet
|
||||
{
|
||||
|
||||
using namespace vanetza::units::si;
|
||||
using vanetza::units::degrees;
|
||||
using boost::units::si::kilo;
|
||||
using boost::units::si::milli;
|
||||
|
||||
const auto milliseconds = milli * seconds;
|
||||
|
||||
ManagementInformationBase::ManagementInformationBase() :
|
||||
itsGnLocalAddrConfMethod(AddrConfMethod::Managed),
|
||||
itsGnProtocolVersion(1),
|
||||
itsGnIsMobile(true),
|
||||
itsGnIfType(InterfaceType::ITS_G5),
|
||||
itsGnMinimumUpdateFrequencyEPV(1.0 / (1000.0 * milliseconds)),
|
||||
itsGnPaiInterval(80 * meters),
|
||||
itsGnMaxSduSize(1398),
|
||||
itsGnMaxGeoNetworkingHeaderSize(88),
|
||||
itsGnLifetimeLocTE(20 * seconds),
|
||||
itsGnSecurity(false),
|
||||
itsGnSnDecapResultHandling(SecurityDecapHandling::Strict),
|
||||
itsGnLocationServiceMaxRetrans(10),
|
||||
itsGnLocationServiceRetransmitTimer(1 * seconds),
|
||||
itsGnLocationServicePacketBufferSize(1024),
|
||||
itsGnBeaconServiceRetransmitTimer(3 * seconds),
|
||||
itsGnBeaconServiceMaxJitter(itsGnBeaconServiceRetransmitTimer / 4.0),
|
||||
itsGnDefaultHopLimit(10),
|
||||
itsGnDPLLength(8),
|
||||
itsGnMaxPacketLifetime(Lifetime::Base::Hundred_Seconds, 6),
|
||||
itsGnDefaultPacketLifetime(Lifetime::Base::Ten_Seconds, 6),
|
||||
itsGnMaxPacketDataRate(100),
|
||||
itsGnMaxPacketDataRateEmaBeta(0.9),
|
||||
itsGnMaxGeoAreaSize(10 * kilo * kilo * square_meters),
|
||||
itsGnMinPacketRepetitionInterval(100 * milliseconds),
|
||||
itsGnNonAreaForwardingAlgorithm(UnicastForwarding::Greedy),
|
||||
itsGnAreaForwardingAlgorithm(BroadcastForwarding::CBF),
|
||||
itsGnCbfMinTime(1 * milliseconds),
|
||||
itsGnCbfMaxTime(100 * milliseconds),
|
||||
itsGnDefaultMaxCommunicationRange(1000 * meters),
|
||||
itsGnBroadcastCBFDefSectorAngle(30 * degrees),
|
||||
itsGnUcForwardingPacketBufferSize(256),
|
||||
itsGnBcForwardingPacketBufferSize(1024),
|
||||
itsGnCbfPacketBufferSize(256),
|
||||
itsGnDefaultTrafficClass(false, false, 0),
|
||||
vanetzaDefaultSeed(0xc0114c2c),
|
||||
vanetzaCbfMaxCounter(1),
|
||||
vanetzaDeferInitialBeacon(Clock::duration::zero()),
|
||||
vanetzaDisableBeaconing(false),
|
||||
vanetzaMultiHopDuplicateAddressDetection(false),
|
||||
vanetzaFadingCbfCounter(false),
|
||||
vanetzaFadingCbfCounterLifetime(4.0 * itsGnCbfMaxTime),
|
||||
vanetzaNeighbourFlagExpiry(Clock::duration::zero()),
|
||||
vanetzaGbcMemoryCapacity(0),
|
||||
vanetzaGbcPassUpOutsideDestination(false)
|
||||
{
|
||||
}
|
||||
|
||||
} // namespace geonet
|
||||
} // namespace vanetza
|
||||
|
||||
Reference in New Issue
Block a user