Commit 5f6e4906 authored by Sonja Happ's avatar Sonja Happ

Add a Boolean used variable in all proto fiels to indicate if a protobuf...

Add a Boolean used variable in all proto fiels to indicate if a protobuf result contains any usedful data; this avoids all zero protobuf data not being transmitted
parent 387d6e38
......@@ -17,5 +17,6 @@ message BatteryResult {
uint32 swarm_size_q = 12;
double v_meas = 13;
double SOC = 14;
bool used = 15;
}
......@@ -14,4 +14,5 @@ message BiofuelResult {
uint32 swarm_size_p = 11;
uint32 swarm_size_q = 12;
double v_meas = 13;
bool used = 14;
}
......@@ -8,4 +8,5 @@ message CableResult {
double i1_im = 4;
double slosses = 5;
double srel = 6;
bool used = 7;
}
......@@ -17,4 +17,5 @@ message ChpResult {
double v_meas = 13;
double sec_heater_p_gen_el = 14;
double E_th = 15;
bool used = 16;
}
......@@ -10,4 +10,5 @@ message CompensatorResult {
uint32 msg_received = 6;
uint32 swarm_size_q = 7;
double v_meas = 8;
bool used = 9;
}
......@@ -3,4 +3,5 @@ syntax = "proto3";
message DFResult {
uint64 msg_sent = 1;
uint64 msg_received = 2;
bool used = 3;
}
......@@ -17,4 +17,5 @@ message ElectricVehicleResult {
double v_meas = 13;
double connected = 14;
double SOC = 15;
bool used = 16;
}
......@@ -16,4 +16,5 @@ message HPResult {
double v_meas = 13;
double sec_heater_p_gen_el = 14;
double E_th = 15;
bool used = 16;
}
......@@ -10,4 +10,5 @@ message LoadResult {
uint32 swarm_size_p = 5;
uint32 swarm_size_q = 6;
double v_meas = 7;
bool used = 8;
}
......@@ -15,6 +15,7 @@ message MRResult {
uint64 msg_to_other_MR = 3;
uint64 msg_dropped = 4;
uint64 msg_new = 5;
bool used = 6;
// repeated Msg messages = 7;
}
......@@ -5,5 +5,6 @@ message NodeResult {
double v_im = 1;
double v_re = 2;
double v_norm = 3;
bool used = 4;
}
......@@ -15,4 +15,5 @@ message PvResult {
uint32 swarm_size_p = 11;
uint32 swarm_size_q = 12;
double v_meas = 13;
bool used = 14;
}
......@@ -7,4 +7,5 @@ message SlackResult {
double i_im = 3;
double i_re = 4;
uint64 number_of_fb_sweeps = 5;
bool used = 6;
}
......@@ -17,5 +17,6 @@ message TransformerResult {
double i1_im = 12;
double i2_re = 13;
double i2_im = 14;
bool used = 15;
}
......@@ -15,4 +15,5 @@ message WecResult {
uint32 swarm_size_p = 11;
uint32 swarm_size_q = 12;
double v_meas = 13;
bool used = 14;
}
This diff is collapsed.
......@@ -126,6 +126,10 @@ void Biofuel_agent::step() {
next_action_expected = FORWARD_SWEEP;
prosumer_data.number_of_solves = 0;
//reset values for message counters
msg_received=0;
msg_sent=0;
}
if(first_step) {
first_step = false;
......
Markdown is supported
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