#Realistic Quadcopter

1 messages · Page 1 of 1 (latest)

vague gorge
vocal bluff
#

nice

#

did you use pids or did you use something else?

vague gorge
#

well... i now understand what pids are, but then i realized. i accidentally discovered pids while testing stuff like:

local thrust = (target_pos - ship_pos) * 2 - ship_vel * 4

so i basically did use pids

#

just without the integral

#

i instead replaced it with constants like mass, gravity, etc

#

i used the cpml library for vector3s and quaternions

agile saffron
#

Nice

vague gorge
vocal bluff
#

you re technically using using 2 pids without the I and D terms

vague gorge
vocal bluff
#

not really

#

it's the derivative of the error

#

not the derivative of the state

#

the D term i mean

vague gorge
#

now i just have to figure out how to configure most of my constants in my code

vocal bluff
#

you can make a genetic algorithm to do it for you

#

works pretty well

vague gorge
#

thats too much effort tho

#

and how am i going to make that in minecraft

vocal bluff
#

command computers

#

you define a cost function that just tests one thing you want to optimise and then you do that with some variations of your parameters and chose the best ones

#

and you do that until you're happy

#

so it could be for exemple: set some parameters for your drone, tp drone to some point, tell it to move to a different random point and at every frame and have the score be the sum of the errors squared, do the same configuration for a batch of drones with slightly different parameters and then choose the best one and repeat