Skip to content

Commit 7e2fc4f

Browse files
authored
Merge pull request #658 from amorfinv/fix/time-to-rta-units
Add missing nm conversion in RTA leg time
2 parents 346b6b0 + 1a1acd5 commit 7e2fc4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bluesky/traffic/route.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1523,7 +1523,7 @@ def calcfp(self): # Current Flight Plan calculations, which actualize based on f
15231523
# xtorta stays the same! This leg will not be available for RTA scheduling, so distance
15241524
# is not in xtorta. Therefore we need to subtract legtime to ignore this leg for the RTA
15251525
# scheduling
1526-
legtime = self.wpdistto[i+1]/legtas
1526+
legtime = self.wpdistto[i+1] * nm / legtas
15271527
torta = torta - legtime
15281528
else:
15291529
xtorta = 0.0

0 commit comments

Comments
 (0)