mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-peak.git
synced 2025-08-05 21:21:55 +00:00
Added attitude determination
This commit is contained in:
37
include/sta/math/algorithms/attitude/integrate.hpp
Normal file
37
include/sta/math/algorithms/attitude/integrate.hpp
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* integrate.hpp
|
||||
*
|
||||
* Created on: Jun 17, 2024
|
||||
* Author: Dario
|
||||
*/
|
||||
|
||||
#ifndef STA_MATHS_ATTITUDE_INTEGRATE_HPP
|
||||
#define STA_MATHS_ATTITUDE_INTEGRATE_HPP
|
||||
|
||||
#include <sta/math/quaternion.hpp>
|
||||
#include <sta/time.hpp>
|
||||
|
||||
|
||||
namespace sta
|
||||
{
|
||||
namespace math
|
||||
{
|
||||
class AttitudeModel
|
||||
{
|
||||
public:
|
||||
AttitudeModel(Quaternion state, float alpha = 1.0f);
|
||||
|
||||
Quaternion update(float dt, float ox, float oy, float oz);
|
||||
|
||||
Quaternion update(float ox, float oy, float oz);
|
||||
|
||||
Quaternion getAttitude();
|
||||
private:
|
||||
Quaternion state_;
|
||||
float alpha_;
|
||||
float time_;
|
||||
};
|
||||
} // namespace math
|
||||
} // namespace sta
|
||||
|
||||
#endif // STA_MATHS_ATTITUDE_INTEGRATE_HPP
|
Reference in New Issue
Block a user