Coordinates based movement:
●
offset_xy_pos
(
dx_meters:
float,
dy_meters:
float
)
-
relative movement
(in range [-5.0, 5.0]) based on
current position with target speed (in range [0.1, 1.0]). Default speed: 0.4 m/s.
●
set_xy_pos
(
x_meters:
float,
y_meters:
float
)
-
set absolute position in meters with target speed (in range
[0.1, 1.0]). Default speed: 0.4 m/s.
●
move_forward
(
meters:
float
) - high level function, moves the drone forward (using offsetTargetPos inside)
Same simple functions: moveBackward, moveLeft, moveRight.
●
get_pos_x() ->
float
- returns current X frame-based coordinate system position in meters
●
get_pos_y() ->
float
- returns current Y frame-based coordinate system position in meters
Usage example:
...\PythonForNanopix\examples\one_meter_square.py
API description
11