Skip to content

Commit

Permalink
feat: rename session track fields, add baseline length
Browse files Browse the repository at this point in the history
  • Loading branch information
Pippo98 committed Jul 28, 2024
1 parent 1ac7b4f commit 971f0f9
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 35 deletions.
32 changes: 15 additions & 17 deletions proto/configs/session_config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,20 @@ syntax = "proto3";

package Configs;

message Weather
{
double ambient_temperature = 1;
double track_temperature = 2;
double humidity = 3;
message Weather {
double ambientTemperature = 1;
double trackTemperature = 2;
double humidity = 3;
}

message SessionConfig
{
string circuitId = 1;
string raceId = 2;
string test = 3;
string driverId = 4;
string date = 5;
string time = 6;
Weather weather = 7;
string notes = 8;
double canlibVersion = 9;
}
message SessionConfig {
string trackLocation = 1;
string trackLayout = 2;
string sessionName = 3;
string driver = 4;
string date = 5;
string time = 6;
Weather weather = 7;
string notes = 8;
double canlibVersion = 9;
}
34 changes: 16 additions & 18 deletions proto/telemetry/gps_maps.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,23 @@ syntax = "proto3";

package Telemetry;

message Baseline
{
bool valid = 1;
repeated double x = 2;
repeated double y = 3;
message Baseline {
bool valid = 1;
double length = 2;
repeated double x = 2;
repeated double y = 3;
}

message GPSMapOrigin
{
double latitude = 1;
double longitude = 2;
double ecefX = 3;
double ecefY = 4;
double ecefZ = 5;
message GPSMapOrigin {
double latitude = 1;
double longitude = 2;
double ecefX = 3;
double ecefY = 4;
double ecefZ = 5;
}

message GPSMapOrigins
{
string selectedMap = 1;
map<string, GPSMapOrigin> origins = 2;
map<string, Baseline> tracksBaseline = 3;
}
message GPSMapOrigins {
string selectedMap = 1;
map<string, GPSMapOrigin> origins = 2;
map<string, Baseline> tracksBaseline = 3;
}

0 comments on commit 971f0f9

Please sign in to comment.