Change MIPH with MPH (#3128)

This commit is contained in:
Ryan 2024-05-15 18:05:51 -04:00 committed by GitHub
parent a25476d918
commit 7f8977adcf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 5 deletions

View File

@ -9,7 +9,7 @@ namespace big
{ {
class speedo_meter : looped_command class speedo_meter : looped_command
{ {
std::array<std::string_view, 3> m_speed_types = {"kmph", "miph", "mps"}; std::array<std::string_view, 3> m_speed_types = {"kmph", "mph", "mps"};
using looped_command::looped_command; using looped_command::looped_command;
@ -68,6 +68,8 @@ namespace big
}; };
speedo_meter g_speedo_meter("speedometer", "SPEEDO_METER", "SPEEDO_METER_DESC", g.vehicle.speedo_meter.enabled); speedo_meter g_speedo_meter("speedometer", "SPEEDO_METER", "SPEEDO_METER_DESC", g.vehicle.speedo_meter.enabled);
bool_command g_speedo_meter_gears("speedometergears", "BACKEND_LOOPED_VEHICLE_SPEEDO_METER_SHOW_CURRENT_GEAR", "BACKEND_LOOPED_VEHICLE_SPEEDO_METER_SHOW_CURRENT_GEAR_DESC", g.vehicle.speedo_meter.show_current_gear); bool_command g_speedo_meter_gears("speedometergears", "BACKEND_LOOPED_VEHICLE_SPEEDO_METER_SHOW_CURRENT_GEAR", "BACKEND_LOOPED_VEHICLE_SPEEDO_METER_SHOW_CURRENT_GEAR_DESC",
bool_command g_speedo_meter_left_side("speedometerleftside", "BACKEND_LOOPED_VEHICLE_SPEEDO_METER_ALIGN_TO_LEFT", "BACKEND_LOOPED_VEHICLE_SPEEDO_METER_ALIGN_TO_LEFT_DESC", g.vehicle.speedo_meter.left_side); g.vehicle.speedo_meter.show_current_gear);
bool_command g_speedo_meter_left_side("speedometerleftside", "BACKEND_LOOPED_VEHICLE_SPEEDO_METER_ALIGN_TO_LEFT", "BACKEND_LOOPED_VEHICLE_SPEEDO_METER_ALIGN_TO_LEFT_DESC",
g.vehicle.speedo_meter.left_side);
} }

View File

@ -240,7 +240,7 @@ namespace big
NLOHMANN_JSON_SERIALIZE_ENUM(SpeedUnit, NLOHMANN_JSON_SERIALIZE_ENUM(SpeedUnit,
{ {
{SpeedUnit::KMPH, "kmph"}, {SpeedUnit::KMPH, "kmph"},
{SpeedUnit::MIPH, "miph"}, {SpeedUnit::MIPH, "mph"},
{SpeedUnit::MPS, "mps"}, {SpeedUnit::MPS, "mps"},
}) })