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();