FIX: fixed bug with the usage of the id in control and fix a issue where the data class where invalid while creating with a data put in

This commit is contained in:
Henry Winkel
2023-08-15 15:57:52 +02:00
parent 8f9a9b8688
commit 6b5aff7b6e
3 changed files with 13 additions and 9 deletions

View File

@@ -1,9 +1,11 @@
syntax = "proto3";
import "Identifier.proto";
package messages.control;
message control{
uint32 type = 1;
string data = 2;
optional uint64 timestamp = 3;
messages.track.Identifier Identifier = 1;
uint32 type = 2;
string data = 3;
optional uint64 timestamp = 4;
}

View File

@@ -16,7 +16,7 @@ namespace SimCore
}
Data(T val):mx(),data_(val),valid_(false),writeTime_(std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count())
Data(T val):mx(),data_(val),valid_(true),writeTime_(std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count())
{
}