45
To write a script for 'landing' and 'take-off function buttons'
B
T I P
When L1 is pressed (landed) the roll/ pitch/yow/roll value is set to
zero because the Euler values that were previously executed during
the next run can affect the flight.
If it doesn't clear up to zero, when it lands and takes off again,
The remaining values may cause the drone to fly in an unintended
direction.
Script is executed when
the controller's
button is pressed
L1 Button
: All Euler values are
set to zero before landing.
R1 button
: After takeoff, adjust the oiler
angle and run the script,
(Joystick-controlled)