Small cleanup

This commit is contained in:
Raffson 2024-12-24 05:13:23 +01:00
parent 020281bf80
commit c75bf23701
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -67,8 +67,7 @@ class RaceTrackBuilder(PydcsWaypointBuilder):
racetrack = ControlledTask(orbit)
self.set_waypoint_tot(waypoint, flight_plan.patrol_start_time)
loiter_duration = flight_plan.patrol_end_time - self.now
elapsed = int(loiter_duration.total_seconds())
elapsed = int(flight_plan.patrol_duration.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)