diff --git a/Command.proto b/Command.proto new file mode 100644 index 0000000..8d6c1f2 --- /dev/null +++ b/Command.proto @@ -0,0 +1,23 @@ +syntax = "proto3"; + +package ScStw; + +message RaceStartCommand {} + +message LaneSetDisabledCommand { uint32 laneNumber = 1; } + +message LaneSetFallCommand { uint32 laneNumber = 1; } + +message RaceResetCommand {} + +message RebootCommand {} + +message Command { + oneof command { + RaceStartCommand start = 1; + LaneSetDisabledCommand disable = 2; + LaneSetFallCommand fall = 3; + RaceResetCommand reset = 4; + RebootCommand reboot = 5; + } +} \ No newline at end of file diff --git a/RaceCommand.proto b/RaceCommand.proto deleted file mode 100644 index 30a7d47..0000000 --- a/RaceCommand.proto +++ /dev/null @@ -1,20 +0,0 @@ -syntax = "proto3"; - -package ScStw; - -message StartCommand {} - -message DisableCommand { uint32 laneNumber = 1; } - -message FallCommand { uint32 laneNumber = 1; } - -message ResetCommand {} - -message Command { - oneof Command { - StartCommand start = 1; - DisableCommand disable = 2; - FallCommand fall = 3; - ResetCommand reset = 4; - } -} \ No newline at end of file diff --git a/Settings.proto b/Settings.proto new file mode 100644 index 0000000..54eb157 --- /dev/null +++ b/Settings.proto @@ -0,0 +1,36 @@ +syntax = "proto3"; + +package ScStw; + +message ManualStartProcedureSettings {} + +message AutomatedStartProcedureSettings { + bool sayReady = 1; + int32 standstillDurationBeforeReady = 2; +} + +message StartProcedureSettings { + oneof startProcedureSettings { + ManualStartProcedureSettings manualStartProcedureSettings = 1; + AutomatedStartProcedureSettings automatedStartProcedureSettings = 2; + } +} + +message LaneSettings { + string letter = 1; + bool disable = 2; +} + +message SoundSettings { uint32 volume = 1; } + +message RaceSettings { + StartProcedureSettings startProcedure = 1; + repeated LaneSettings lanes = 2; +} + +message Settings { + // if the settings are stored as default in the flash memory + bool default = 1; + RaceSettings race = 2; + SoundSettings sound = 3; +} \ No newline at end of file