def __init__(self):
     self.AtDeg = 7.0
     self.maxAtDeg = 7.0
     self.minAtDeg = -7.0
     self.minVERTICALSPEED = -10.0
     self.maxVERTICALSPEED = 15.0
     self.workVERTICALSPEED = 15
     self.maxRoll = 30
     self.maxDeg = 45
     self.tALTITUDE = 1000.0
     self.tsleep = 0.3
     self.dVERTICALSPEED = 1.2
     self.KVERTSPEED = 60
     self.MaxTakeoffMass = 89100
     self.mass0 = 48600
     self.landingspeed0 = 70
     self.Klandingspeed = 1.8
     self.TrottleKp = 0.35  #0.220
     self.TrottleKi = 0.0003
     self.TrottleKd = 0.4
     self.TrottlePid = pid.AviaPID(self.TrottleKp, self.TrottleKi,
                                   self.TrottleKd)
     self.headingKp = 0.075
     self.headingKi = 0.000001
     self.headingKd = 0.150
     self.headingPid = pid.AviaPID(self.headingKp, self.headingKi,
                                   self.headingKd, -7, 7)
     self.old_met = vessel.met
Beispiel #2
0
	def __init__(self):
		self.AtDeg = 0.0
		self.maxAtDeg = self.aircraft.maxAtDeg
		self.minAtDeg = self.aircraft.minAtDeg
		self.minVERTICALSPEED = self.aircraft.minVERTICALSPEED
		self.maxVERTICALSPEED = self.aircraft.maxVERTICALSPEED
		self.workVERTICALSPEED = self.aircraft.workVERTICALSPEED
		self.tALTITUDE = 1000.0
		self.tsleep = 0.3
		self.TrottlePid=pid.AviaPID(self.aircraft.TrottleKp,self.aircraft.TrottleKi,self.aircraft.TrottleKd) 
		self.headingPid=pid.AviaPID(self.aircraft.headingKp,self.aircraft.headingKi,self.aircraft.headingKd, -7, 7)
		self.old_met=vessel.met
 def __init__(self):
     self.AtDeg = 7.0
     self.maxAtDeg = 7.0
     self.minAtDeg = -7.0
     self.minVERTICALSPEED = -10.0
     self.maxVERTICALSPEED = 15.0
     self.workVERTICALSPEED = 15
     self.maxRoll = 35
     self.maxDeg = 45
     self.tALTITUDE = 1000.0
     self.tsleep = 0.3
     self.dVERTICALSPEED = 1.2
     self.KVERTSPEED = 60  #для пустого 60 для макс массы 90
     self.MaxTakeoffMass = 89100  #0.8312985571587127 ПГ от массы снаряженного пустого
     self.mass0 = 48600
     self.landingspeed0 = 70
     self.Klandingspeed = 1.8
     self.TrottleKp = 0.35  #0.220
     self.TrottleKi = 0.0003
     self.TrottleKd = 0.4
     self.TrottlePid = pid.AviaPID(self.TrottleKp, self.TrottleKi,
                                   self.TrottleKd)
     self.headingKp = 0.075
     self.headingKi = 0.000001
     self.headingKd = 0.150
     self.headingPid = pid.PID(self.headingKp, self.headingKi,
                               self.headingKd, -7, 7)
     self.old_met = vessel.met