1#include <vanetza/common/runtime.hpp>
2#include <vanetza/geonet/dcc_information_sharing.hpp>
3#include <vanetza/geonet/location_table.hpp>
11 m_runtime(rt), m_location_table(lt), m_cbr_target(target), m_tx_power(0),
16 Clock::duration initial = m_trigger_interval;
17 initial *= delay.value();
18 m_runtime.schedule(initial, [
this](
const Clock::time_point&) { trigger(); });
29 dcc_mco.local_cbr(m_aggregator.get_local_cbr());
30 dcc_mco.neighbour_cbr(m_aggregator.get_one_hop_cbr());
37 m_cbr_local = local_cbr;
42 m_tx_power = tx_power;
47 m_aggregator.aggregate(m_cbr_local, m_location_table, m_last_aggregation, m_cbr_target);
48 m_last_aggregation = m_runtime.now();
49 m_update_hook(
static_cast<
const CbrAggregator&>(m_aggregator));
50 m_runtime.schedule(m_trigger_interval, [
this](
const Clock::time_point&) { trigger(); });
void output_power(unsigned dbm)