From 7fde753be36b92f641fe921fd98318c52f9b8a8b Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Tue, 21 Jul 2026 16:56:20 +0200 Subject: [PATCH] python/iot3/mobility/cpm: fix z_angle scale unit Angles are degrees (or sub-units thereof), not meters (or sub-units thereof). Closes #566 Signed-off-by: Yann E. MORIN --- python/iot3/src/iot3/mobility/cpm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/iot3/src/iot3/mobility/cpm.py b/python/iot3/src/iot3/mobility/cpm.py index 747570c6..d8ee6fa9 100644 --- a/python/iot3/src/iot3/mobility/cpm.py +++ b/python/iot3/src/iot3/mobility/cpm.py @@ -358,7 +358,7 @@ def add_perceived_object( "z_angle": { "value": etsi.ETSI.si2etsi( value=perceived_object.bounding_box.heading, - scale=etsi.ETSI.DECI_METER, + scale=etsi.ETSI.DECI_DEGREE, undef=3601, ), "confidence": 127, @@ -547,7 +547,7 @@ def perceived_objects(self): ) heading = etsi.ETSI.etsi2si( value=po.get("angles", {}).get("z_angle", {}).get("value"), - scale=etsi.ETSI.DECI_METER, + scale=etsi.ETSI.DECI_DEGREE, undef=3601, )