From 3196e129cab571cb8809d6817dec7e29339ad0ed Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Sun, 15 Oct 2023 00:14:20 +0800 Subject: [PATCH] ui: make default_face_kpts_3d constexpr (#30239) old-commit-hash: 383964cd5baba29ac46d596677e1d59689a2194f --- selfdrive/ui/ui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/ui.h b/selfdrive/ui/ui.h index bd9d059422..2ba0775676 100644 --- a/selfdrive/ui/ui.h +++ b/selfdrive/ui/ui.h @@ -26,7 +26,7 @@ typedef cereal::CarControl::HUDControl::AudibleAlert AudibleAlert; const mat3 DEFAULT_CALIBRATION = {{ 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0 }}; -const vec3 default_face_kpts_3d[] = { +constexpr vec3 default_face_kpts_3d[] = { {-5.98, -51.20, 8.00}, {-17.64, -49.14, 8.00}, {-23.81, -46.40, 8.00}, {-29.98, -40.91, 8.00}, {-32.04, -37.49, 8.00}, {-34.10, -32.00, 8.00}, {-36.16, -21.03, 8.00}, {-36.16, 6.40, 8.00}, {-35.47, 10.51, 8.00}, {-32.73, 19.43, 8.00}, {-29.30, 26.29, 8.00}, {-24.50, 33.83, 8.00}, {-19.01, 41.37, 8.00}, {-14.21, 46.17, 8.00}, {-12.16, 47.54, 8.00},