Fix incorrect stop trigger trigger for BARCAP

This commit is contained in:
Raffson 2025-01-26 18:57:59 +01:00
parent f31098419e
commit 2570293416
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -72,7 +72,7 @@ class RaceTrackBuilder(PydcsWaypointBuilder):
racetrack = ControlledTask(orbit)
self.set_waypoint_tot(waypoint, flight_plan.patrol_start_time)
elapsed = int(flight_plan.patrol_duration.total_seconds())
elapsed = int((flight_plan.patrol_end_time - self.now).total_seconds())
racetrack.stop_after_time(elapsed)
# What follows is some code to cope with the broken 'stop after time' condition
create_stop_orbit_trigger(racetrack, self.package, self.mission, elapsed)