Hello Tello Pilot!
Join our DJI Tello community & remove this banner.
Sign up

takeoff to a specific height recommended code section

abdul.mannan.617

New member
Joined
Sep 3, 2023
Messages
2
Reaction score
0
Hello,

I want to takeoff the tello drone at a specific height, say 30 cm. I have gone through this thread. The recommendation is:

Using binary UDP commands (maybe also SDk) you can do the following:
CSC command to start motors, throttle up to take off, then adjust throttle as soon as you get stable altitude readings (around 50cm altitude).
The drone will be instable below that point as VPS is off so don't take off too slow.

I assume results will be inconsistent.

However, I am not sure about a specific Python code section. Can you please give me some minimum example code for this? Also, there is a recommendation for a PID controller as

Simple proportional control:
error = desired_h - measured_h
up_speed = Kp * error

Where Kp is a tuning gain determined by experiment!

I am a beginner in this field and am struggling to figure this out. Please guide me.

I am using the DJI Tellos, and I have to fly it inside a box due to safety constraints. Therefore, I need to change its default takeoff height.

Thank you for your help.
 

New Posts

Members online

Forum statistics

Threads
5,701
Messages
39,968
Members
17,067
Latest member
atapattu

New Posts