Author Topic: Mixing PID loops  (Read 990 times)

Patrick

  • Guest
Mixing PID loops
« on: January 24, 2022, 07:28:01 AM »
Id like to control pitch and yaw using PID loops but I dont know how to "blend" them for common control surfaces. The plane ill be using has two "tailerons" both responsible for pitch and yaw seen  in the following attachment.

Can it be as simple as running two independent PID loops, then linearizing the two results in micro controller memory and output to each motor by using percentages of physical travel?

Offline TMaxElectronics

  • High Voltage Engineer
  • ****
  • Posts: 297
  • Karma: +23/-0
    • View Profile
    • My random (and very empty) electronics blog
Re: Mixing PID loops
« Reply #1 on: January 24, 2022, 12:00:50 PM »
I guess you could just add the two output results together, but you'll have to make sure the system is stable and the two loops don't throw each other off.
Calculating that hard enough for me when using simple motors with intertia and a single PID, having two PIDs and control surfaces will be even harder I assume.

Offline Twospoons

  • High Voltage Engineer
  • ****
  • Posts: 223
  • Karma: +6/-0
    • View Profile
Re: Mixing PID loops
« Reply #2 on: January 25, 2022, 09:50:41 PM »
I agree with TMaxElectronics: just add the resulting actuator signals.  A properly tuned PID should be robust enough to deal with any funnies.  I would be inclined to make one of the PID loops slower than the other though - I have no math to back this up, just a gut feeling that its going to be more stable that way.

Patrick

  • Guest
Re: Mixing PID loops
« Reply #3 on: January 26, 2022, 04:14:02 AM »
Ok Im thinking of adding and subtracting for direction then multiplying by less than 1.0 for scaling the actual throw. One website for 2.4.8 Ardupilot seems to suggest a v-tail command that does this by means means of :

( https://ardupilot.org/plane/docs/guide-vtail-plane.html )

"Mixing Gain:

The MIXING_GAIN parameter is critical for vtail aircraft. It is the gain used in mixing between yaw and pitch output and the vtail movement. For example, if MIXING_GAIN is 0.5, then the following outputs are used:

    LEFT_VTAIL = (yaw+pitch)*0.5
    RIGHT_VTAIL = (-yaw+pitch)*0.5

Adjusting the MIXING_GAIN controls the percentabe of throws from pitch vs yaw."


And pics of the real one and myself, and yes it's huge !
« Last Edit: January 26, 2022, 04:16:08 AM by Patrick »

High Voltage Forum

Re: Mixing PID loops
« Reply #3 on: January 26, 2022, 04:14:02 AM »

 


* Recent Topics and Posts

post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
Today at 06:50:47 AM
post Re: IKY150N65EH7, is it good for DRSSTC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Anders Mikkelsen
Today at 04:57:47 AM
post Re: IKY150N65EH7, is it good for DRSSTC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
ethanwu0131
Today at 03:40:53 AM
post Re: First DRSSTC SKM100
[Dual Resonant Solid State Tesla coils (DRSSTC)]
flyingperson23
Today at 01:31:17 AM
post Re: Game changing tesla coil secondary winding suggestions
[General Chat]
Michelle_
April 15, 2024, 11:19:52 PM
post 3D printed mini-slayer: world's weakest tesla coil
[Solid State Tesla Coils (SSTC)]
Michelle_
April 15, 2024, 11:10:19 PM
post Re: Game changing tesla coil secondary winding suggestions
[General Chat]
alan sailer
April 15, 2024, 11:04:19 PM
post Re: Ignitron trigger drive ideas?
[Capacitor Banks]
Twospoons
April 15, 2024, 11:02:05 PM
post Re: Game changing tesla coil secondary winding suggestions
[General Chat]
Michelle_
April 15, 2024, 10:57:59 PM
post Re: Game changing tesla coil secondary winding suggestions
[General Chat]
Michelle_
April 15, 2024, 10:55:46 PM
post Re: Return of Electronics Flea Market in "Silicon Valley"
[Sell / Buy / Trade]
klugesmith
April 15, 2024, 10:37:32 PM
post Re: First DRSSTC SKM100
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Saattvik24
April 15, 2024, 10:05:00 PM
post Re: How to get a GE Yokogawa AB40 Sync Scope to rotate without a powerplant.
[Laboratories, Equipment and Tools]
MRMILSTAR
April 15, 2024, 09:28:50 PM
post Ignitron trigger drive ideas?
[Capacitor Banks]
klugesmith
April 15, 2024, 09:06:42 PM
post Re: First DRSSTC SKM100
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Mads Barnkob
April 15, 2024, 08:46:32 PM
post Re: Game changing tesla coil secondary winding suggestions
[General Chat]
Benbmw
April 15, 2024, 08:38:39 PM
post Re: Game changing tesla coil secondary winding suggestions
[General Chat]
sky-guided
April 15, 2024, 08:23:40 PM
post How to get a GE Yokogawa AB40 Sync Scope to rotate without a powerplant.
[Laboratories, Equipment and Tools]
Bobakman
April 15, 2024, 06:43:23 PM
post Re: First DRSSTC SKM100
[Dual Resonant Solid State Tesla coils (DRSSTC)]
flyingperson23
April 15, 2024, 06:29:10 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 15, 2024, 05:21:53 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 15, 2024, 05:15:33 AM
post Re: First DRSSTC SKM100
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
April 15, 2024, 04:07:54 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
davekni
April 15, 2024, 03:49:03 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
alan sailer
April 14, 2024, 09:46:30 PM
post Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 14, 2024, 07:31:00 PM
post Re: First DRSSTC SKM100
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Saattvik24
April 14, 2024, 02:26:19 PM
post Re: mg75q2ys40 IGBT
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Mads Barnkob
April 14, 2024, 07:20:54 AM
post Re: IKY150N65EH7, is it good for DRSSTC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Mads Barnkob
April 14, 2024, 07:18:20 AM
post Re: Game changing tesla coil secondary winding suggestions
[General Chat]
Michelle_
April 13, 2024, 06:46:40 AM
post Re: Game changing tesla coil secondary winding suggestions
[General Chat]
Michelle_
April 13, 2024, 04:18:42 AM
post Re: Upper and Lower Explosive Limits on Confined Flammable Vapors at -79 C.
[General Chat]
alan sailer
April 13, 2024, 03:24:20 AM
post Re: Game changing tesla coil secondary winding suggestions
[General Chat]
alan sailer
April 13, 2024, 03:20:46 AM
post Game changing tesla coil secondary winding suggestions
[General Chat]
Michelle_
April 13, 2024, 03:13:22 AM
post Re: Capacitor Blowout
[Sell / Buy / Trade]
lbattraw
April 12, 2024, 09:14:58 PM
post mg75q2ys40 IGBT
[Dual Resonant Solid State Tesla coils (DRSSTC)]
thedark
April 12, 2024, 08:40:18 PM
post Re: UD 2.7 OCD LED stays on, no output during inital test
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
April 12, 2024, 07:20:30 PM
post Re: Mosfet Buffer Stage Questions
[Beginners]
davekni
April 12, 2024, 07:12:43 PM
post IKY150N65EH7, is it good for DRSSTC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
ethanwu0131
April 12, 2024, 04:47:33 PM
post Re: UD 2.7 OCD LED stays on, no output during inital test
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Admiral Aaron Ravensdale
April 12, 2024, 11:43:36 AM
post Mosfet Buffer Stage Questions
[Beginners]
Egg
April 12, 2024, 12:49:02 AM
post Re: UD 2.7 OCD LED stays on, no output during inital test
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
April 12, 2024, 12:41:16 AM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
April 12, 2024, 12:22:41 AM
post Re: Capacitor Blowout
[Sell / Buy / Trade]
Michelle_
April 11, 2024, 10:45:53 PM
post Re: UD 2.7 OCD LED stays on, no output during inital test
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Admiral Aaron Ravensdale
April 11, 2024, 07:39:30 PM
post Re: UD 2.7 OCD LED stays on, no output during inital test
[Dual Resonant Solid State Tesla coils (DRSSTC)]
flyingperson23
April 11, 2024, 07:24:52 PM
post Re: Tesla coil safety questions, risk analysis quantified
[Beginners]
sky-guided
April 11, 2024, 06:09:30 PM
post UD 2.7 OCD LED stays on, no output during inital test
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Admiral Aaron Ravensdale
April 11, 2024, 12:55:16 PM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
alan sailer
April 11, 2024, 03:40:00 AM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
sky-guided
April 11, 2024, 03:05:07 AM
post Re: Tesla coil safety questions, risk analysis quantified
[Beginners]
Michelle_
April 11, 2024, 02:57:33 AM
post Re: Tesla coil safety questions, risk analysis quantified
[Beginners]
alan sailer
April 11, 2024, 01:44:32 AM
post Re: Tesla coil safety questions, risk analysis quantified
[Beginners]
Michelle_
April 11, 2024, 01:31:40 AM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
OmGigaTron
April 11, 2024, 01:11:00 AM
post Re: Tesla coil safety questions, risk analysis quantified
[Beginners]
alan sailer
April 11, 2024, 12:58:52 AM
post Re: Tesla coil safety questions, risk analysis quantified
[Beginners]
Michelle_
April 11, 2024, 12:31:37 AM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
alan sailer
April 11, 2024, 12:30:21 AM
post Re: Tesla coil safety questions, risk analysis quantified
[Beginners]
alan sailer
April 10, 2024, 11:41:46 PM
post Re: Tesla coil safety questions, risk analysis quantified
[Beginners]
Mads Barnkob
April 10, 2024, 11:33:32 PM
post Re: Tesla coil safety questions, risk analysis quantified
[Beginners]
Michelle_
April 10, 2024, 10:41:33 PM
post Re: Tesla coil safety questions, risk analysis quantified
[Beginners]
MRMILSTAR
April 10, 2024, 10:31:31 PM
post Tesla coil safety questions, risk analysis quantified
[Beginners]
Michelle_
April 10, 2024, 09:56:35 PM
post Re: Drsstc voltage spike question
[Dual Resonant Solid State Tesla coils (DRSSTC)]
unrealcrafter2
April 10, 2024, 08:59:26 PM
post Re: Drsstc voltage spike question
[Dual Resonant Solid State Tesla coils (DRSSTC)]
markus
April 10, 2024, 06:35:30 PM
post Re: Drsstc voltage spike question
[Dual Resonant Solid State Tesla coils (DRSSTC)]
flyingperson23
April 10, 2024, 05:35:14 PM
post Drsstc voltage spike question
[Dual Resonant Solid State Tesla coils (DRSSTC)]
unrealcrafter2
April 10, 2024, 03:07:02 PM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Michelle_
April 10, 2024, 03:42:12 AM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Michelle_
April 10, 2024, 03:41:04 AM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
sky-guided
April 10, 2024, 02:50:23 AM
post Re: DRSSTC V1 using BSM1500
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Unrealeous
April 10, 2024, 01:32:17 AM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
OmGigaTron
April 10, 2024, 01:26:29 AM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
OmGigaTron
April 10, 2024, 01:18:35 AM
post Re: Big Coil Big Sparks
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Mads Barnkob
April 09, 2024, 07:34:19 PM
post Re: DRSSTC V1 using BSM1500
[Dual Resonant Solid State Tesla coils (DRSSTC)]
flyingperson23
April 09, 2024, 06:14:27 PM
post Re: CM400 Induction Heater
[Electronic Circuits]
markus
April 09, 2024, 06:08:53 PM
post Re: DRSSTC V1 using BSM1500
[Dual Resonant Solid State Tesla coils (DRSSTC)]
markus
April 09, 2024, 05:15:19 PM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Michelle_
April 09, 2024, 05:11:04 PM
post Re: Big Coil Big Sparks
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Benjamin Lockhart
April 09, 2024, 06:32:16 AM
post DRSSTC V1 using BSM150
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Unrealeous
April 09, 2024, 04:04:47 AM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
alan sailer
April 09, 2024, 03:27:11 AM
post Re: Big Coil Big Sparks
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
April 09, 2024, 03:25:47 AM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
OmGigaTron
April 09, 2024, 03:01:40 AM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
sky-guided
April 09, 2024, 02:46:46 AM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
OmGigaTron
April 08, 2024, 09:32:57 PM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
OmGigaTron
April 08, 2024, 09:25:11 PM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
alan sailer
April 08, 2024, 08:45:15 PM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
OmGigaTron
April 08, 2024, 08:24:13 PM
post Big Coil Big Sparks
[Dual Resonant Solid State Tesla coils (DRSSTC)]
alan sailer
April 08, 2024, 04:02:48 PM
post Re: First DRSSTC SKM100
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
April 08, 2024, 03:45:30 AM
post Re: Oversize Snubber Capacitor
[Dual Resonant Solid State Tesla coils (DRSSTC)]
thedark
April 08, 2024, 03:35:32 AM
post Re: Oversize Snubber Capacitor
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
April 08, 2024, 03:12:45 AM
post Re: Oversize Snubber Capacitor
[Dual Resonant Solid State Tesla coils (DRSSTC)]
flyingperson23
April 08, 2024, 03:03:26 AM
post Re: First DRSSTC SKM100
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Benjamin Lockhart
April 08, 2024, 02:24:41 AM
post Re: Oversize Snubber Capacitor
[Dual Resonant Solid State Tesla coils (DRSSTC)]
thedark
April 08, 2024, 01:29:53 AM
post Re: First DRSSTC SKM100
[Dual Resonant Solid State Tesla coils (DRSSTC)]
flyingperson23
April 08, 2024, 12:55:50 AM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
alan sailer
April 08, 2024, 12:38:52 AM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
alan sailer
April 07, 2024, 11:56:02 PM
post Re: Oversize Snubber Capacitor
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Mads Barnkob
April 07, 2024, 07:49:29 PM
post Re: Oversize Snubber Capacitor
[Dual Resonant Solid State Tesla coils (DRSSTC)]
thedark
April 07, 2024, 06:28:12 PM
post First DRSSTC SKM100
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Saattvik24
April 07, 2024, 06:13:59 PM
post Re: Oversize Snubber Capacitor
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Benbmw
April 07, 2024, 05:44:55 AM

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 
SimplePortal 2.3.6 © 2008-2014, SimplePortal