mirror of
https://github.com/okalachev/flix.git
synced 2025-07-29 12:28:59 +00:00
Add missing set_velocity method stub to pyflix
This commit is contained in:
parent
32f417efae
commit
bb0643e8c6
@ -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:
|
The flight control feature is in development. List of methods intended for automatic flight control:
|
||||||
|
|
||||||
* `set_position`
|
* `set_position`
|
||||||
|
* `set_velocity`
|
||||||
* `set_attitude`
|
* `set_attitude`
|
||||||
* `set_rates`
|
* `set_rates`
|
||||||
* `set_motors`
|
* `set_motors`
|
||||||
|
@ -278,6 +278,9 @@ class Flix:
|
|||||||
def set_position(self, position: List[float], yaw: Optional[float] = None, wait: bool = False, tolerance: float = 0.1):
|
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')
|
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):
|
def set_attitude(self, attitude: List[float], thrust: float):
|
||||||
raise NotImplementedError('Automatic flight is not implemented yet')
|
raise NotImplementedError('Automatic flight is not implemented yet')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user