mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 07:29:20 +02:00
Add static cast
This commit is contained in:
@@ -953,7 +953,7 @@ TTrain::state_t TTrain::get_state() const
|
||||
static_cast<float>(mvPantographUnit->PantPress),
|
||||
fHVoltage,
|
||||
{fHCurrent[mvControlled->TrainType & dt_EZT ? 0 : 1], fHCurrent[2], fHCurrent[3]},
|
||||
mvOccupied->EngineVoltage,
|
||||
static_cast<uint32_t>(mvOccupied->EngineVoltage),
|
||||
ggLVoltage.GetValue(),
|
||||
mvOccupied->DistCounter,
|
||||
static_cast<std::uint8_t>(RadioChannel()),
|
||||
|
||||
@@ -108,7 +108,7 @@ class TTrain {
|
||||
float pantograph_pressure;
|
||||
float hv_voltage;
|
||||
std::array<float, 3> hv_current;
|
||||
double enginevoltage;
|
||||
std::uint32_t enginevoltage;
|
||||
float lv_voltage;
|
||||
double distance;
|
||||
std::uint8_t radio_channel;
|
||||
|
||||
Reference in New Issue
Block a user