mirror of
https://github.com/okalachev/flix.git
synced 2026-01-11 13:36:43 +00:00
Compare commits
2 Commits
32f417efae
...
7e8bd3e834
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7e8bd3e834 | ||
|
|
bb0643e8c6 |
@@ -32,7 +32,6 @@
|
|||||||
#define ROLLRATE_MAX radians(360)
|
#define ROLLRATE_MAX radians(360)
|
||||||
#define YAWRATE_MAX radians(300)
|
#define YAWRATE_MAX radians(300)
|
||||||
#define TILT_MAX radians(30)
|
#define TILT_MAX radians(30)
|
||||||
|
|
||||||
#define RATES_D_LPF_ALPHA 0.2 // cutoff frequency ~ 40 Hz
|
#define RATES_D_LPF_ALPHA 0.2 // cutoff frequency ~ 40 Hz
|
||||||
|
|
||||||
enum { MANUAL, ACRO, STAB, USER } mode = STAB;
|
enum { MANUAL, ACRO, STAB, USER } mode = STAB;
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ extern float mavlinkControlScale;
|
|||||||
Preferences storage;
|
Preferences storage;
|
||||||
|
|
||||||
struct Parameter {
|
struct Parameter {
|
||||||
const char *name;
|
const char *name; // max length is 16
|
||||||
float *variable;
|
float *variable;
|
||||||
float value; // cache
|
float value; // cache
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user