This commit is contained in:
2026-07-24 18:09:36 +08:00
parent 622d721a77
commit 39b5aafd3a
+6 -2
View File
@@ -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<double> select_heading() {
GET_PRE(BDS60)
@@ -210,9 +210,13 @@ public:
return w.get_magnetic_heading();
}
RET<double> altitude_meter() {
GET_PRE(BDS05_airborne_position)
return w.get_alt_meter();
}
RET<Vortex_Type> vortex_type() {
GET_PRE(BDS08_id)
return w.get_vortex_type();