Skip to content

armgit / flix

Public Imported from GitHub
0

Making an ESP32-based quadcopter from scratch

Minor changes

Oleg Kalachev3207fdb43c3c
diff --git a/flix/quaternion.h b/flix/quaternion.h
index 55f183c..115eeab 100644
--- a/flix/quaternion.h
+++ b/flix/quaternion.h
@@ -24,11 +24,6 @@ public:
return Quaternion(cos2, a * sinNorm, b * sinNorm, c * sinNorm);
}
- static Quaternion fromAngularRates(float x, float y, float z)
- {
- return Quaternion::fromAxisAngle(x, y, z, sqrt(x * x + y * y + z * z));
- }
-
static Quaternion fromAngularRates(const Vector& rates)
{
if (rates.zero()) {
diff --git a/flix/rc.ino b/flix/rc.ino
index bed076d..5a49563 100644
--- a/flix/rc.ino
+++ b/flix/rc.ino
@@ -5,6 +5,7 @@
#include <SBUS.h>
+// NOTE: this should be changed to the actual calibration values
const uint16_t channelNeutral[] = {995, 883, 200, 972, 512, 512};
const uint16_t channelMax[] = {1651, 1540, 1713, 1630, 1472, 1472};