Change MIPH with MPH (#3128)
This commit is contained in:
parent
a25476d918
commit
7f8977adcf
@ -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);
|
||||||
}
|
}
|
@ -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"},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user