From 4d89eb6848d013b2b6982ec4d821e6a39e802486 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristram=20Gr=C3=A4bener?= Date: Fri, 10 Jan 2025 18:00:10 +0100 Subject: [PATCH] editoast: fixtures: add a TODO to set more realistic rolling stock resistance MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tristram Gräbener --- editoast/src/models/fixtures.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/editoast/src/models/fixtures.rs b/editoast/src/models/fixtures.rs index 9f9832522a3..717ef2600e6 100644 --- a/editoast/src/models/fixtures.rs +++ b/editoast/src/models/fixtures.rs @@ -235,6 +235,11 @@ pub fn create_towed_rolling_stock() -> TowedRollingStock { inertia_coefficient: basis_point::new(1.05), rolling_resistance: RollingResistancePerWeight { rolling_resistance_type: "davis".to_string(), + // TODO those values are wrong, they correspond to daN/T, (daN/T)/(km/h), and (daN/T)/(km/h)² per weight + // We should use more realistic values and fix the tests + A: meter_per_second_squared::new(1.0), + B: hertz::new(0.01), + C: per_meter::new(0.0002), }, const_gamma: meter_per_second_squared::new(0.5), max_speed: Some(meter_per_second::new(35.0)), @@ -264,6 +269,11 @@ pub fn create_simple_rolling_stock() -> RollingStock { railjson_version: "12".to_string(), rolling_resistance: RollingResistance { rolling_resistance_type: "davis".to_string(), + // TODO those values are wrong, they correspond to daN/T, (daN/T)/(km/h), and (daN/T)/(km/h)² + // We should use more realistic values and fix the tests + A: newton::new(1.0), + B: kilogram_per_second::new(0.01), + C: kilogram_per_meter::new(0.0005), }, length: meter::new(140.0), mass: kilogram::new(15000.0),