From dac08643c37e0f045061413d027a99e4aacc04f2 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Thu, 7 Jul 2022 12:03:18 -0700 Subject: [PATCH] Update Altium SCH QA with rounding factors --- .../altium/test_altium_parser_sch.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/qa/eeschema/sch_plugins/altium/test_altium_parser_sch.cpp b/qa/eeschema/sch_plugins/altium/test_altium_parser_sch.cpp index c9f2f82c8a..80e6e0e5f6 100644 --- a/qa/eeschema/sch_plugins/altium/test_altium_parser_sch.cpp +++ b/qa/eeschema/sch_plugins/altium/test_altium_parser_sch.cpp @@ -66,16 +66,16 @@ static const std::vector altium_to_kicad_unit_fr // Decimal Places { "0", "1", 0 }, { "0", "10", 0 }, - { "0", "100", 2 }, - { "0", "1000", 25 }, - { "0", "10000", 254 }, - { "1", "10000", 2794 }, + { "0", "100", 0 }, + { "0", "1000", 30 }, + { "0", "10000", 250 }, + { "1", "10000", 2790 }, { "0", "-1", 0 }, { "0", "-10", 0 }, - { "0", "-100", -2 }, - { "0", "-1000", -25 }, - { "0", "-10000", -254 }, - { "-1", "-10000", -2794 }, + { "0", "-100", 0 }, + { "0", "-1000", -30 }, + { "0", "-10000", -250 }, + { "-1", "-10000", -2790 }, // Edge Cases // Clamp bigger values // imperial rounded units as input