From cb46f259fe82a59ddfe33f1a5727444733a4fafa Mon Sep 17 00:00:00 2001 From: cs-powell <142438185+cs-powell@users.noreply.github.com> Date: Mon, 24 Feb 2025 16:40:14 -0500 Subject: [PATCH] preliminary descent and basic flare Python Client testplatform.py & cognitiveModel.py --- Python3/src/cognitiveModel.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Python3/src/cognitiveModel.py b/Python3/src/cognitiveModel.py index 14ae401..988387f 100644 --- a/Python3/src/cognitiveModel.py +++ b/Python3/src/cognitiveModel.py @@ -51,8 +51,9 @@ class AircraftLandingModel(pyactr.ACTRModel): # Integral gains (tune these values for performance) self.Kp = 0.1 # Proportional gain - # self.Ki = 0.01 # Integral gain - self.Ki = 0.001 # Integral gain + # self.Ki = 0.01 # Integral gain + self.Ki = 0 # Integral gain + def printControls(self,calculated,errors,yokePull,yokeSteer,rudder,throttle): @@ -164,16 +165,16 @@ class AircraftLandingModel(pyactr.ACTRModel): throttle = 0.15 - if(self.altitude < 350): ## Integrate using the control equations;; A goal state update + if(self.altitude < 100): ## Integrate using the control equations;; A goal state update throttle = 0.1 yoke_pull = 0.3 - if(self.altitude < 200): ## Integrate using the control equations;; A goal state update + if(self.altitude < 70): ## Integrate using the control equations;; A goal state update throttle = 0.05 yoke_pull = 0.4 - if(self.altitude < 150): ## Integrate using the control equations;; A goal state update + if(self.altitude < 50): ## Integrate using the control equations;; A goal state update throttle = 0 yoke_pull = 0.4