mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-peak.git
synced 2025-09-29 06:37:33 +00:00
Updated quaternion class, added attitude from tilt, started madgwick filter
This commit is contained in:
@@ -6,15 +6,13 @@
|
||||
*/
|
||||
|
||||
#include <sta/math/algorithms/attitude/madgwick.hpp>
|
||||
#include <sta/math/linalg/matrix.hpp>
|
||||
|
||||
namespace sta
|
||||
{
|
||||
namespace math
|
||||
{
|
||||
MadgwickFilter::MadgwickFilter(Quaternion state, Quaternion direction, uint32_t n, float alpha)
|
||||
: state_{state},
|
||||
direction_{direction},
|
||||
MadgwickFilter::MadgwickFilter(Quaternion state, uint32_t n, float alpha)
|
||||
: state_{state.normalized()},
|
||||
n_{n},
|
||||
alpha_{alpha}
|
||||
{
|
||||
|
Reference in New Issue
Block a user