From 6ee23267c108cdc3ca70354f65f89a96ebaca62a Mon Sep 17 00:00:00 2001 From: Hirek193 Date: Thu, 10 Sep 2026 23:07:38 +0200 Subject: [PATCH] Revert "Change float64 to uint32" This reverts commit c5825db20838d7587811ba6d1abcf5af50be8666. --- hardware/registry/state_registry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardware/registry/state_registry.cpp b/hardware/registry/state_registry.cpp index d2231f24..bace0d34 100644 --- a/hardware/registry/state_registry.cpp +++ b/hardware/registry/state_registry.cpp @@ -125,7 +125,7 @@ state_registry::state_registry() add( "hv_current_1", value_type::float32, "A", -5000.0, 5000.0, []( state_snapshot const &s ) { return make_value( s, value_type::float32, s.train.hv_current[ 0 ], s.electric ); } ); add( "hv_current_2", value_type::float32, "A", -5000.0, 5000.0, []( state_snapshot const &s ) { return make_value( s, value_type::float32, s.train.hv_current[ 1 ], s.electric ); } ); add( "hv_current_3", value_type::float32, "A", -5000.0, 5000.0, []( state_snapshot const &s ) { return make_value( s, value_type::float32, s.train.hv_current[ 2 ], s.electric ); } ); - add( "engine_voltage", value_type::uint32, "V", 0, 40000.0, []( state_snapshot const &s ) { return make_value( s, value_type::uint32, s.train.enginevoltage, s.electric ); } ); + add( "engine_voltage", value_type::float64, "V", 0, 40000.0, []( state_snapshot const &s ) { return make_value( s, value_type::float64, s.train.enginevoltage, s.electric ); } ); add( "lv_voltage", value_type::float32, "V", 0.0, 200.0, []( state_snapshot const &s ) { return make_value( s, value_type::float32, s.train.lv_voltage ); } ); add( "distance", value_type::float64, "m", {}, {}, []( state_snapshot const &s ) { return make_value( s, value_type::float64, s.train.distance ); } );