16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 07:49:19 +02:00

Add command to set lights on occupied vehicle

This commit is contained in:
2025-09-07 03:32:16 +02:00
parent fea3c6e439
commit e2e1a4da76
4 changed files with 12 additions and 1 deletions

View File

@@ -377,6 +377,7 @@ commanddescription_sequence Commands_descriptions = {
{ "quitsimulation", command_target::simulation, command_mode::oneoff },
{"wiperswitchincrease", command_target::vehicle, command_mode::oneoff},
{"wiperswitchdecrease", command_target::vehicle, command_mode::oneoff},
{"lightsset", command_target::vehicle, command_mode::oneoff},
};
// Maps of command and coresponding strings
@@ -733,6 +734,7 @@ std::unordered_map<std::string, user_command> commandMap = {
{"quitsimulation", user_command::quitsimulation},
{"wiperswitchincrease", user_command::wiperswitchincrease},
{"wiperswitchdecrease", user_command::wiperswitchdecrease},
{"lightsset", user_command::lightsset},
{"none", user_command::none}};
} // namespace simulation