it can automatically change its PID settings depending on Mass and Inertia tensor (but inertia are bugged so it doesn’t matter).
oh and I now HATE Euler angles and anything rotation related
it can automatically change its PID settings depending on Mass and Inertia tensor (but inertia are bugged so it doesn’t matter).
oh and I now HATE Euler angles and anything rotation related
You shouldnt need to mess with the PID values too much since youre using the inertia tensor
I dont, its just the inertia tensor given by cc vs is a inertia tensor of a shere, so I’m not sure how much it’ll mess up things at larger scale
2nd order differential equation… you mean the acceleration? What does the greek letter Xi represent? And where do you plug in “tr5%” as a parameter to that equation? How is mass even relevant at this point to get the right value of P, I, and D?
Slr, oh IC, Sum of Forces… IC how you can get the output PID values, tho how do you get the biassing values for PID from mass?
You said it can automatically change its PID settings depending on the mass… or did I misunderstand that
Tbc, we are talking about setting these guys right? As an example:
P=0.5, I=0.01, D=0.5
My question is how would you come up with those three values using mass value…
Something Like:
...
Proportion = P * error
Derivative = D * (error-prev_err)*0.5
Integral = I * (Integral + 0.5)
...
PIDOutput=Proprtional+Integral+Derivative
Im asking how would you come up with the gain values (P,I, and D settings) using “mass”?
IC, when people say “PID settings” they usually are talking about the gain (bias) values P, I and D, not the PID output values (the returned vector3 in this case)…
Here, the mass isn’t actually used to calculate the “PID settings”, you actually multiply it with the “PID output” to get the appropriate force vector to apply on the ship, as you described.
Your “PID settings” doesn’t actually “automatically change” depending on the mass and Inertia Tensor, your PID output does.
(I really got excited reading the description. I thought somebody figured out a new way of setting these values)
As I see it, what you’re actually doing here to calculate your gain values (“PID Settings”) is use the oscillation frequency (w0) with a damping ratio (ξ) of 1 from a 2nd order system
what did you set self.PARAMETERS.tr5 ? and why did you pick rise time at 5% (tr5%)? I know it’s suppose to be critically damped with xi set to 1 but shouldn’t tr be the time between 5% to 95%?
tr5% is when the x is between 105% and 95% of it’s final value, I dont understand what is your question
This conversation is on Discord · Reply there