summaryrefslogtreecommitdiff
path: root/evaluator/drag.py
diff options
context:
space:
mode:
Diffstat (limited to 'evaluator/drag.py')
-rw-r--r--evaluator/drag.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/evaluator/drag.py b/evaluator/drag.py
index df79e6a..73a26fc 100644
--- a/evaluator/drag.py
+++ b/evaluator/drag.py
@@ -1,3 +1,5 @@
+import random
+
def get_drag(aircraft, drag):
# Transform semi-span integer into list
semi_span = [x for x in range(0, aircraft.wing.semi_span)]
@@ -11,6 +13,6 @@ def get_drag(aircraft, drag):
return F_x
-def get_drag_total(self, aircraft):
+def get_drag_total(aircraft):
"""Get total drag force acting on the aircraft."""
- return 500
+ return random.random() * 100
Copyright 2019--2024 Marius PETER