Manual control functions (like sticks controlling):
●
set_pitch
(
pitch_deg:
int,
pitch_only: bool = true
)
-
set pitch angle in degrees in the range [-35,
35].
pitch_only
option enables special mode: all other movements (roll, yaw or altitude) will be
stopped. Enabled by default.
●
set_roll
(
roll_deg: int
, roll_only: bool = true
)
-
set roll angle in degrees in range [-35, 35].
roll_only
option enables special mode: all other movements (pitch, yaw or altitude) will be stopped.
Enabled by default.
●
set_yaw_speed
(
speed_deg_sec:
float
)
-
set yaw rotation speed (around vertical axis) in degrees/second
●
set_altitude_speed
(
altitude_speed
: float
)
-
set vertical speed in range
[
-1.
..
1]
. Value -1 is
equivalent to downward movement with 30 cm/sec vertical speed. Value 1 is equivalent to upward
movement with the same vertical speed.
Usage example:
...\PythonForNanopix\examples\manual_control_square.py
API description
12
Important: these functions do not wait for the end of the maneuver (non-blocking) and are
active until another function is called. To stop movement call, for example:
setYawSpeed(0);