Browse Search Popular Register Upload Rules User list Login:
Search:
PID drone (but no I)

Image:
screenshot of the scene

Author: UnityDogGaming04

Group: Default

Filesize: 11.4 kB

Date added: 2021-03-26

Rating: 5

Downloads: 784

Views: 175

Comments: 0

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

This drone which only has 2 thrusters can automatically fly to a given location in a very stable manner.
Using what I understood from an article on PID (Proportional, Integral, Derivative) controllers,
I assembled this drone with fully customizable settings based on PID math.
However, I have yet to understsnd the math behind the integral part, and it isn't necessary for this demonstration.
The underscore variables in the box are entirely customizable. They mean as follows:

ang - relating to the angle and angvel of the box
x - relating to the horizontal position and speed of the box
y - relating to the vertical position and speed of the box

Tar - the target value
Err - the Tar value minus the actual value, the change needed
P - proportional component multiplier (directly proportional to Err, pushes the value in the direction of Tar)
D - Derivative component multiplier (negatively proportional to the velocity of the value, eliminates oscillation and overcorrection)

_tilt - the tilt multiplier (determines how far to tilt to correct for horizontal error, shouldnt mess with it)
_hover - the force added to ensure the drone doesnt fall into the ground (shouldnt mess with this either)
_maxErr - the bounding number for the value's error (ensures extreme corrections are not possible, keeps the internal error between -maxERR and +maxErr)
_throttle - the upward force the drone applies
_torque - the rotary force the drone applies


Feel free to move the whitedot around and watch the drone follow it, but if the dot moves really far away the drone can malfunction
Thamks bai
Last edited at 2021/03/27 03:32:52 by UnityDogGaming04
Please log in to rate this scene
edit
Similar scenes
Title: The Drone
Rating: 5
Filesize: 27.96 kB
Downloads: 538
Comments: 0
Ratings: 1
Date added: 2022/05/10 07:31:14
Made with: Algodoo v2.1.3
Rating: rated 5
download
Title: My Drone
Rating: 5
Filesize: 45.7 kB
Downloads: 579
Comments: 4
Ratings: 1
Date added: 2021/05/01 11:40:02
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Drone and Car
Rating: 5
Filesize: 10.82 kB
Downloads: 342
Comments: 0
Ratings: 1
Date added: 2021/10/03 06:22:40
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Acrobatic Drone!
Rating: 5
Filesize: 39.34 kB
Downloads: 496
Comments: 0
Ratings: 1
Date added: 2018/04/20 21:19:38
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Controlable drone
Rating: 5
Filesize: 23.56 kB
Downloads: 123
Comments: 1
Ratings: 1
Date added: 2025/07/09 22:46:57
Made with: Algodoo v2.2.3
Rating: rated 5
download
Title: Halo 3 ODST Drone
Rating: 5
Filesize: 44.66 kB
Downloads: 526
Comments: 0
Ratings: 1
Date added: 2015/07/29 18:31:50
Made with: Algodoo v2.1.0
Rating: rated 5
download