2 Commits

Author SHA1 Message Date
Oleg Kalachev
7e8bd3e834 Minor updates 2025-07-28 22:07:33 +03:00
Oleg Kalachev
bb0643e8c6 Add missing set_velocity method stub to pyflix 2025-07-28 22:06:30 +03:00
4 changed files with 5 additions and 2 deletions

View File

@@ -32,7 +32,6 @@
#define ROLLRATE_MAX radians(360)
#define YAWRATE_MAX radians(300)
#define TILT_MAX radians(30)
#define RATES_D_LPF_ALPHA 0.2 // cutoff frequency ~ 40 Hz
enum { MANUAL, ACRO, STAB, USER } mode = STAB;

View File

@@ -13,7 +13,7 @@ extern float mavlinkControlScale;
Preferences storage;
struct Parameter {
const char *name;
const char *name; // max length is 16
float *variable;
float value; // cache
};

View File

@@ -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`

View File

@@ -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')