mirror of
https://github.com/okalachev/flix.git
synced 2025-07-27 17:49:33 +00:00
Minor changes
This commit is contained in:
parent
c58a16e4df
commit
3207fdb43c
@ -24,11 +24,6 @@ public:
|
|||||||
return Quaternion(cos2, a * sinNorm, b * sinNorm, c * sinNorm);
|
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)
|
static Quaternion fromAngularRates(const Vector& rates)
|
||||||
{
|
{
|
||||||
if (rates.zero()) {
|
if (rates.zero()) {
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
#include <SBUS.h>
|
#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 channelNeutral[] = {995, 883, 200, 972, 512, 512};
|
||||||
const uint16_t channelMax[] = {1651, 1540, 1713, 1630, 1472, 1472};
|
const uint16_t channelMax[] = {1651, 1540, 1713, 1630, 1472, 1472};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user