#Self-made Fly Control VS self-made cannon control and self-made Anti-air Shells

1 messages · Page 1 of 1 (latest)

plucky thicket
proud crater
#

I don’t understand how but I think this is really cool

acoustic adder
#

bros in the thick of it right now 😭 🙏

worldly vector
#

With create radars anyone will be able to do this

#

Once it gets a few updates

#

Which should be veeěęeery soon

plucky thicket
worldly vector
plucky thicket
worldly vector
#

but theres stuff missing like lead prediction and more settings for targeting

plucky thicket
worldly vector
#

not auto plane controls

#

wait tell me how u did auto plane flying

#

we might do that

plucky thicket
#

it is a real control system

worldly vector
#

uhh what

plucky thicket
#

there is a few purturbation in vs planes so PID is quite enough

worldly vector
#

whats cimulink form control craft?

plucky thicket
#

and you can link them and compile to build a circut

worldly vector
plucky thicket
#

that is the mod

worldly vector
#

an addon for cc?

plucky thicket
#

for valkyrien skies

#

also provides interface to cc

#

but not necessary when using

#

also I wonder how you implement auto targeting for AA stuff, the function of shell trajectory is bit complex

worldly vector
#

im still puzzled at how u made auto planes tho

#

all i understood was to use control craft

plucky thicket
#

I used polynomial fit instead of iterators so it does not work for the enitre field defined by possible hit points

worldly vector
plucky thicket
#

for plane, sense the pose first, then input to a PID controller

#

and it generates a control to the bearing, so it got controller

#

controlled

#

for example, you need to roll +5 degs, and currently at -2 deg

worldly vector
#

oh u mean for leading the targets. yeah we plan to iterate it, but whats a polynomial fit, havent heard of it

worldly vector
plucky thicket
#

then you can draw the figure first, and use polynomial to draw a cruve that close to it

#

so it is faking another function but you can calculate a similar result in a valid interval

worldly vector
#

man that sounds complex. but im guessing this would make the guns account for constant dodging, right?

#

sorry for not understand all the technical yap. but i am interested in understanding it

plucky thicket
#

then you have 3 numbers from p, i and d of the error

#

multiply them with gains and add together

#

that is the input to the bearing

worldly vector
#

what about the poly fit stuff. i didnt quite understand it

plucky thicket
#

for example you have seen the function of cannon trajectory right?

#

when you have distant d, angle theta, height difference dy and set dy and d as known, you will find it not possible to directly calculate an angle based on what you have

#

then you need to use a iterative method to solve this like bisection

worldly vector
#

ohh this is for the trajectory

#

i thought this was for hitting moving targets

plucky thicket
#

trajectory is easier than prediction

worldly vector
#

yes i know. we solved trajectory by looking at how others did it, which was some really complex math function that we copied lol

plucky thicket
#

well polyfit is that you solve the funcion with an iterative method first, and draw them in a curve, then use a polynomial to have a function like y = 1 + x^1 + x^2 +x^3 + x^4 to instead the original function

#

then you don't need to iterate each time it calculates

#

it is less accurate but faster

worldly vector
#

quite handy

#

what about hitting moving targets

plucky thicket
worldly vector
#

did u just iterate angle by target velocity * time to target at x target position?

plucky thicket
#

you can use a time gap to calculate for average velocity

#

also you can use cubic spline to predict the trail

#

but mostly time* vel is enough

worldly vector
plucky thicket
#

also these methods is only one side of prediction, probability also works but that is outside of my knowledge

worldly vector
#

probability?

plucky thicket
plucky thicket
#

but that is outside of my knowledge, I just know there is a field

plucky thicket
#

I forgot the deriving progress from runge-kutta but the result is use the average velcocity of current tick and previous tick instead

worldly vector
#

ive heard of runge kutta but that was from orbital mechanics, and not sure what that was. also dont know eulers method

plucky thicket
#

which is the method you are using I think

worldly vector
#

well, its the method we plan to use. ive only used it in unity before

plucky thicket
#

anyway, if the time is short, euler's is enough

#

but time is kind of hard to calculate from cannon trajectory

#

for example, you don't know the time first so you cannot calculate for a prediction, so it is tend to start from the current position without predicting, but once you calculate the time and add for prediction, that distance from you to the hit point of shell changes

#

then there is a slight change in time

worldly vector
#

yes so u iterate

#

time to target on where it will be

#

3 iterations is enough but i do 2

carmine sphinx
#

tell me how this works RIGHT NOW

#

also does this work on ships too?