Author Topic: Nerd question for the coders.  (Read 1906 times)

Offline Rob52240

  • Persona Non Grata
  • Gold Member
  • *****
  • Posts: 3770
      • My AH Films
Nerd question for the coders.
« on: August 13, 2012, 02:47:48 AM »
I had my e6b open while flying bombers and wondered,

does autopilot utilize separate PID loops to self adjust the controls?
If I had a gun with 3 bullets and I was locked in a room with Bin Laden, Hitler, Saddam and Zipp...  I would shoot Zipp 3 times.

Offline Skuzzy

  • Support Member
  • Administrator
  • *****
  • Posts: 31462
      • HiTech Creations Home Page
Re: Nerd question for the coders.
« Reply #1 on: August 13, 2012, 08:59:06 AM »
What is a "PID" loop?
Roy "Skuzzy" Neese
support@hitechcreations.com

Offline Rob52240

  • Persona Non Grata
  • Gold Member
  • *****
  • Posts: 3770
      • My AH Films
Re: Nerd question for the coders.
« Reply #2 on: August 13, 2012, 12:11:16 PM »
Proportional, Integral and Derivative

It's what most mechanical control systems run on.

Depending on how far from setpoint something is, it reacts proportionally, integral refers to how fast it reacts and nobody really uses the derivative but it determines how much to factor in past performance.



From wikipedia
The response of the controller can be described in terms of the responsiveness of the controller to an error, the degree to which the controller overshoots the setpoint and the degree of system oscillation.
« Last Edit: August 13, 2012, 12:32:55 PM by Rob52240 »
If I had a gun with 3 bullets and I was locked in a room with Bin Laden, Hitler, Saddam and Zipp...  I would shoot Zipp 3 times.

Offline Skuzzy

  • Support Member
  • Administrator
  • *****
  • Posts: 31462
      • HiTech Creations Home Page
Re: Nerd question for the coders.
« Reply #3 on: August 13, 2012, 01:29:55 PM »
I am familiar with that, but I also know PID to mean;

Parent In Distress (its a parent thing)
Parent ID (its a server thing)
Poop Is Deep (do I need to explain?)
Premenstrual Indecision Disorder (ever been married?)

Now that we have that cleared up.

I have no idea how the EB6 works in the game.
Roy "Skuzzy" Neese
support@hitechcreations.com

Offline Rob52240

  • Persona Non Grata
  • Gold Member
  • *****
  • Posts: 3770
      • My AH Films
Re: Nerd question for the coders.
« Reply #4 on: August 13, 2012, 01:32:28 PM »
Actually I was asking about the autopilot / combat trim but it's ok.  I'm no longer curious.

<S>
If I had a gun with 3 bullets and I was locked in a room with Bin Laden, Hitler, Saddam and Zipp...  I would shoot Zipp 3 times.

Offline Shamus

  • Gold Member
  • *****
  • Posts: 3580
Re: Nerd question for the coders.
« Reply #5 on: August 13, 2012, 03:12:25 PM »
 :rofl
one of the cats

FSO Jagdgeschwader 11

Offline RTHolmes

  • Plutonium Member
  • *******
  • Posts: 8260
Re: Nerd question for the coders.
« Reply #6 on: August 13, 2012, 03:24:04 PM »
[what is the algorithm for the autopilot in AH?]

very unlikely HT is going to post the pseudocode for this, but nowhere near as complex as most industrial PID model controllers would be my guess, given its behaviour and the cycles needed for important aero stuff.

surely using more than one PID for a single process would result in them fighting each other? :headscratch:



(as a friend of the penguin my first thought was Process ID ;)



edit: it could use a lil tweaking though - the 262's performance is way beyond what it can handle resulting in a sector's porpoising if you havent worked out how to finesse it. in other aircraft it would be good for noobs if it went level up to climb speed, then started climbing. I see new guys all the time lift, turn, get to 1000' then hit autoclimb and auger :uhoh
« Last Edit: August 13, 2012, 03:30:50 PM by RTHolmes »
71 (Eagle) Squadron

What most of us want to do is simply shoot stuff and look good doing it - Chilli

Offline Peyton

  • Copper Member
  • **
  • Posts: 228
Re: Nerd question for the coders.
« Reply #7 on: August 15, 2012, 11:33:59 PM »
I am familiar with that, but I also know PID to mean;

Parent In Distress (its a parent thing)
Parent ID (its a server thing)
Poop Is Deep (do I need to explain?)
Premenstrual Indecision Disorder (ever been married?)

Now that we have that cleared up.

I have no idea how the EB6 works in the game.



you forgot Pelvic Inflamatory Disease

Offline amulford

  • Zinc Member
  • *
  • Posts: 87
Re: Nerd question for the coders.
« Reply #8 on: August 30, 2012, 04:18:24 PM »
Really?  A PID?  At the very least you would need to go more on the lines of a PLC.  A multi channel PID doesn't do multi variable comparatives and sum them for multiple output response.  
StraBult - FSO C/O ClaimJumpers

Offline Rob52240

  • Persona Non Grata
  • Gold Member
  • *****
  • Posts: 3770
      • My AH Films
Re: Nerd question for the coders.
« Reply #9 on: August 30, 2012, 07:53:29 PM »
3 PIDS could run the plane's control surfaces.
If I had a gun with 3 bullets and I was locked in a room with Bin Laden, Hitler, Saddam and Zipp...  I would shoot Zipp 3 times.

Offline JimmyD3

  • Gold Member
  • *****
  • Posts: 3931
Re: Nerd question for the coders.
« Reply #10 on: August 30, 2012, 08:30:34 PM »
Yeah throw a Low Signal Selector or High Signal Selector in there and you could Really have some fun. Woodward Governor use to use a Signal Buss on there multi channel 43027 systems ( back in the 80'S)  :O
Kenai77
CO Sic Puppies MWK
USAF 1971-76

Offline DaCoon

  • Gold Member
  • *****
  • Posts: 2793
Re: Nerd question for the coders.
« Reply #11 on: August 30, 2012, 10:10:28 PM »
I am familiar with that, but I also know PID to mean;

Parent In Distress (its a parent thing)
Parent ID (its a server thing)
Poop Is Deep (do I need to explain?)
Premenstrual Indecision Disorder (ever been married?)

Now that we have that cleared up.

I have no idea how the EB6 works in the game.

definately know 1,3,&4 real well.............
#1= :bhead

#2= :x

#3= :bolt:
AKDaCoon of the Arabian Knights

        MA & FSO 😎

Offline kvuo75

  • Gold Member
  • *****
  • Posts: 3003
Re: Nerd question for the coders.
« Reply #12 on: September 01, 2012, 07:34:46 PM »

(as a friend of the penguin my first thought was Process ID ;)


thats exactly what thought too.    :D  I started with 1.2.13   :aok
« Last Edit: September 01, 2012, 07:36:24 PM by kvuo75 »
kvuo75

Kill the manned ack.

Offline titanic3

  • Persona Non Grata
  • Platinum Member
  • ******
  • Posts: 4235
Re: Nerd question for the coders.
« Reply #13 on: September 02, 2012, 12:35:49 PM »
Just hook up the warp drive with the matter defibrillator and anti matter drive and the whachamacallit and you're good to go.  :aok  :devil

  the game is concentrated on combat, not on shaking the screen.

semp

Offline hitech

  • Administrator
  • Administrator
  • *****
  • Posts: 12384
      • http://www.hitechcreations.com
Re: Nerd question for the coders.
« Reply #14 on: September 18, 2012, 09:44:38 AM »
I had my e6b open while flying bombers and wondered,

does autopilot utilize separate PID loops to self adjust the controls?

I come from a control engineering back ground. Yes I use PID loops for a great many controls. And they are also called that, just a little piece of a pitch controller.


The constants are just normalizing the plane specific input into a unit that is close to 1 based for most planes.


   P = 2* Plane->PlaneModel.PlaneParams.TrimP[simpTI_ANGLE].Pitch * Scale / 2;
   I = 0.04 * Plane->PlaneModel.PlaneParams.TrimI[simpTI_ANGLE].Pitch * Scale;
   D = 0.1 * Plane->PlaneModel.PlaneParams.TrimD[simpTI_ANGLE].Pitch * Scale / 2;