# Comp sci grads and Drone Experts! Watch

1. Hi there,
What kind of famous algorithims are present in drones?
Furthermore, could anyone tell me if PCB's, microcontrollers and communication shields are taught in a comp sci degree??
2. (Original post by computerscience9)
Hi there,
What kind of famous algorithims are present in drones?
Furthermore, could anyone tell me if PCB's, microcontrollers and communication shields are taught in a comp sci degree??
There aren't 'famous' algorithms, but there are popular ones but people are always experimenting new ideas. First you need to get state of the drone, such as its speed, Euler angles (pitch, yaw, roll), etc. You get these sort of data from electronic components such as gyroscopes, accelerometer, magnetometer, etc. However these electronics do not give you real values because they're not prefect. So if it tells you the drone is tilted 3 degrees it's probably off by a bit. So the first thing you need to do is use some algorithms to process/filter the data to try to get the true values. Filtering algorithms by itself is super hard to do. Common ones include high/low pass filter and another popular one is know as the Kalman filter, which is one of the best filtering algorithms, but again super difficult to make/code. Once you have the state of the drone and filtered out all errors from sensor data, you need to decide what the drone should do next, ie how much power to put into the motors in order to stabilise or move forwards etc. This requires knowledge of some control theory, but the common control algorithms, people use on drones is the PID algorithm. PID is one of "classical control" algorithms and is proven to work well. There are other ones such as Fuzzy Logic controllers. You might be thought how to program micro controllers but I doubt you will study anything to do with control theory, this is mainly thought in engineering. At best you will learn about some filters as that's required for mobile development (because sensors in phones are crap too) but you will not learn an algorithm to control a drone.

tldr: use Kalman filter for filtering out data and PID control to control the drone

Posted from TSR Mobile

TSR Support Team

We have a brilliant team of more than 60 Support Team members looking after discussions on The Student Room, helping to make it a fun, safe and useful place to hang out.

This forum is supported by:
Updated: August 10, 2016
Today on TSR

### Am I pregnant?

...or just paranoid?

### A robot wrote Harry Potter?

Discussions on TSR

• Latest
• ## See more of what you like on The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

• Poll
Discussions on TSR

• Latest
• ## See more of what you like on The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

• The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.