mirror of
https://github.com/okalachev/flix.git
synced 2026-02-17 15:41:32 +00:00
Add cli commands for switching mode
Make mode variable int instead of enum, which is more convinient.
This commit is contained in:
@@ -34,8 +34,8 @@
|
||||
#define TILT_MAX radians(30)
|
||||
#define RATES_D_LPF_ALPHA 0.2 // cutoff frequency ~ 40 Hz
|
||||
|
||||
enum { MANUAL, ACRO, STAB } mode = STAB;
|
||||
enum { YAW, YAW_RATE } yawMode = YAW;
|
||||
const int MANUAL = 0, ACRO = 1, STAB = 2; // flight modes
|
||||
int mode = STAB;
|
||||
bool armed = false;
|
||||
|
||||
PID rollRatePID(ROLLRATE_P, ROLLRATE_I, ROLLRATE_D, ROLLRATE_I_LIM, RATES_D_LPF_ALPHA);
|
||||
|
||||
Reference in New Issue
Block a user