Browse Search Popular Register Upload Rules User list Login:
Search:
Drone Controller

Image:
screenshot of the scene

Author: Hendrik314

Group: Technical

Filesize: 28.48 kB

Date added: 2022-01-30

Rating: 5.6

Downloads: 640

Views: 80

Comments: 0

Ratings: 2

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

A little control circuit I wanted code and try out.

The little green drone always trys to follow the red cross.
You can simply move the cross around with your mouse to control the movement of the drone.

It's a non-linear cascaded control system.
The outer loop simply calculates the necessary acceleration in x- and y-direction from the positional difference through a PID-controller.
From those the angle and geometric sum are derived.
The angle is subject of the inner control loop, which calculates an angular acceleration to steer the drone.
It's applied to the thrusters however in opposite directions to rotate the drone.
The geometric sum of the total force is split in half and applied to both thrusters.
It is however also multiplied with the cosine of the angular difference to prevent the drone from accelerating into the wrong direction.

The controller and its parameters can be found in the drone's script menu.
The parameters were found by trial-and-error.
The integral parts are set to zero in this case, the systematic error due to gravity is cancelled by a direct offset.
It can be used for unknown or inhomogeneous external forces.But in this case I left it out to reduce overshoot.
Last edited at 2022/01/31 17:40:03 by Hendrik314
Please log in to rate this scene
edit
Similar scenes
Title: The Drone
Rating: 5
Filesize: 27.96 kB
Downloads: 404
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: 480
Comments: 4
Ratings: 1
Date added: 2021/05/01 11:40:02
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: PID Controller
Rating: 6.5
Filesize: 153.38 kB
Downloads: 1810
Comments: 10
Ratings: 4
Date added: 2022/03/06 23:14:33
Made with: Algodoo v2.1.0
Rating: rated 6.5
download
Title: Neutron Drone [WORKING]
Rating: 5.25
Filesize: 60.89 kB
Downloads: 479
Comments: 7
Ratings: 2
Date added: 2015/08/22 16:36:01
Made with: Algodoo v2.1.0
Rating: rated 5.3
download
Title: drone with unfinished project cars
Rating: 5
Filesize: 1.7 MB
Downloads: 1288
Comments: 1
Ratings: 1
Date added: 2018/02/12 13:40:10
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Halo 3 ODST Drone
Rating: 5
Filesize: 44.66 kB
Downloads: 448
Comments: 0
Ratings: 1
Date added: 2015/07/29 18:31:50
Made with: Algodoo v2.1.0
Rating: rated 5
download