We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c784033 commit 80f77c1Copy full SHA for 80f77c1
monitoring/mock_uss/f3548v21/flight_planning.py
@@ -81,6 +81,16 @@ def validate_request(op_intent: f3548_v21.OperationalIntent) -> None:
81
f"Operational intent is activated but has no volume currently active (now: {now})"
82
)
83
84
+ # Validate intent is not (entirely) in the past
85
+ now = arrow.utcnow().datetime
86
+ volumes = Volume4DCollection.from_interuss_scd_api(
87
+ op_intent.details.volumes + op_intent.details.off_nominal_volumes
88
+ )
89
+ if volumes.time_end.datetime < now:
90
+ raise PlanningError(
91
+ f"Operational intent is in the past (time_end: {volumes.time_end.datetime}; now: {now})"
92
93
+
94
95
def check_for_disallowed_conflicts(
96
new_op_intent: f3548_v21.OperationalIntent,
0 commit comments