获取可用的地面站列表
()
| 1632 | |
| 1633 | # ⭐ 获取可用的地面站列表(优先使用用户选定的,否则使用所有地面站) |
| 1634 | def get_available_ground_stations(): |
| 1635 | """获取可用的地面站列表""" |
| 1636 | if req.selected_ground_stations and len(req.selected_ground_stations) > 0: |
| 1637 | # 使用用户选定的地面站列表 |
| 1638 | return [gs for gs in self.ground_stations if gs["id"] in req.selected_ground_stations] |
| 1639 | else: |
| 1640 | # 使用所有地面站 |
| 1641 | return self.ground_stations |
| 1642 | |
| 1643 | available_ground_stations = get_available_ground_stations() |
| 1644 |
nothing calls this directly
no outgoing calls
no test coverage detected