From 39b5aafd3adecbdc8f726b3f85e0d36d8d975161 Mon Sep 17 00:00:00 2001 From: wyc <1104749580@qq.com> Date: Fri, 24 Jul 2026 18:09:36 +0800 Subject: [PATCH] 3D --- SSR/Aircraft_Info.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/SSR/Aircraft_Info.h b/SSR/Aircraft_Info.h index a44eb4f..44a5e76 100644 --- a/SSR/Aircraft_Info.h +++ b/SSR/Aircraft_Info.h @@ -194,8 +194,8 @@ public: // if (it.get_lat().has_value() && it.get_lon().has_value()) { // return CPR::Position{it.get_lat().value(), it.get_lon().value()}; // } - if (air_pos_track_list.empty()) return std::nullopt; - return air_pos_track_list.last(); + if (surface_pos_track_list.empty()) return std::nullopt; + return surface_pos_track_list.last(); } RET select_heading() { GET_PRE(BDS60) @@ -210,9 +210,13 @@ public: return w.get_magnetic_heading(); } RET altitude_meter() { + + + GET_PRE(BDS05_airborne_position) return w.get_alt_meter(); } + RET vortex_type() { GET_PRE(BDS08_id) return w.get_vortex_type();