mirror of
https://github.com/okalachev/flix.git
synced 2026-01-10 13:06:56 +00:00
Compare commits
2 Commits
e88888baeb
...
4c89b10767
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4c89b10767 | ||
|
|
a79df52959 |
@@ -107,7 +107,7 @@ void doCommand(String str, bool echo = false) {
|
|||||||
Vector a = attitude.toEuler();
|
Vector a = attitude.toEuler();
|
||||||
print("roll: %f pitch: %f yaw: %f\n", degrees(a.x), degrees(a.y), degrees(a.z));
|
print("roll: %f pitch: %f yaw: %f\n", degrees(a.x), degrees(a.y), degrees(a.z));
|
||||||
} else if (command == "psq") {
|
} else if (command == "psq") {
|
||||||
print("qx: %f qy: %f qz: %f qw: %f\n", attitude.x, attitude.y, attitude.z, attitude.w);
|
print("qw: %f qx: %f qy: %f qz: %f\n", attitude.w, attitude.x, attitude.y, attitude.z);
|
||||||
} else if (command == "imu") {
|
} else if (command == "imu") {
|
||||||
printIMUInfo();
|
printIMUInfo();
|
||||||
printIMUCalibration();
|
printIMUCalibration();
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ void failsafe() {
|
|||||||
|
|
||||||
// RC loss failsafe
|
// RC loss failsafe
|
||||||
void rcLossFailsafe() {
|
void rcLossFailsafe() {
|
||||||
|
if (mode == AUTO) return;
|
||||||
|
if (!armed) return;
|
||||||
if (t - controlTime > RC_LOSS_TIMEOUT) {
|
if (t - controlTime > RC_LOSS_TIMEOUT) {
|
||||||
descend();
|
descend();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user