diff --git a/tools/pyflix/README.md b/tools/pyflix/README.md index 46c607d..9f77aae 100644 --- a/tools/pyflix/README.md +++ b/tools/pyflix/README.md @@ -126,6 +126,7 @@ flix.cli('reboot') # reboot the drone The flight control feature is in development. List of methods intended for automatic flight control: * `set_position` +* `set_velocity` * `set_attitude` * `set_rates` * `set_motors` diff --git a/tools/pyflix/flix.py b/tools/pyflix/flix.py index 2d55590..cb73cf1 100644 --- a/tools/pyflix/flix.py +++ b/tools/pyflix/flix.py @@ -278,6 +278,9 @@ class Flix: def set_position(self, position: List[float], yaw: Optional[float] = None, wait: bool = False, tolerance: float = 0.1): raise NotImplementedError('Position control is not implemented yet') + def set_velocity(self, velocity: List[float], yaw: Optional[float] = None): + raise NotImplementedError('Velocity control is not implemented yet') + def set_attitude(self, attitude: List[float], thrust: float): raise NotImplementedError('Automatic flight is not implemented yet')