#Realistic Quadcopter
1 messages · Page 1 of 1 (latest)
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
here is the code if anyone wants to try
i used the cpml library for vector3s and quaternions
Nice
drone fpv camera
lol
you re technically using using 2 pids without the I and D terms
well, the Derivative is just the velocity so...
not really
it's the derivative of the error
not the derivative of the state
the D term i mean
now i just have to figure out how to configure most of my constants in my code
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