Sen API
Sen Libraries
Loading...
Searching...
No Matches
settable_dead_reckoner_impl.h
Go to the documentation of this file.
1// === settable_dead_reckoner_impl.h ===================================================================================
2// Sen Infrastructure
3// Released under the Apache License v2.0 (SPDX-License-Identifier Apache-2.0).
4// See the LICENSE.txt file for more information.
5// © Airbus SAS, Airbus Helicopters, and Airbus Defence and Space SAU/GmbH/SAS.
6// =====================================================================================================================
7
8#ifndef SEN_UTIL_DR_DETAIL_SETTABLE_DEAD_RECKONER_IMPL_H
9#define SEN_UTIL_DR_DETAIL_SETTABLE_DEAD_RECKONER_IMPL_H
10
11// sen
13
14namespace sen::util::impl
15{
16
19
21[[nodiscard]] bool isMoving(const Velocity& velocity);
22
24[[nodiscard]] bool isAccelerating(const Acceleration& acceleration);
25
27[[nodiscard]] bool isRotating(const AngularVelocity& omega);
28
30[[nodiscard]] AngularVelocity nedToBody(const AngularVelocity& value, const Orientation& nedOrientation) noexcept;
31
33[[nodiscard]] bool maxDistanceExceeded(const Location& newPosition,
34 const Location& extrapolatedPosition,
35 f64 threshold);
36
38[[nodiscard]] bool maxRotationExceeded(const Orientation& newOrientation,
39 const Orientation& extrapolatedOrientation,
40 f64 threshold);
41
43
44} // namespace sen::util::impl
45
46#endif // SEN_UTIL_DR_DETAIL_SETTABLE_DEAD_RECKONER_IMPL_H
AngularVelocity nedToBody(const AngularVelocity &value, const Orientation &nedOrientation) noexcept
Translates an AngularVelocity vector from NED to body coordinates.
bool maxRotationExceeded(const Orientation &newOrientation, const Orientation &extrapolatedOrientation, f64 threshold)
Returns true when the rotation threshold has been exceeded.
bool isRotating(const AngularVelocity &omega)
Returns true when angular velocity acceleration is not null.
bool isMoving(const Velocity &velocity)
Returns true when entity velocity is not null.
bool maxDistanceExceeded(const Location &newPosition, const Location &extrapolatedPosition, f64 threshold)
Returns true when the distance threshold has been exceeded.
bool isAccelerating(const Acceleration &acceleration)
Returns true when entity acceleration is not null.
Acceleration struct.
Definition algorithms.h:119
AngularVelocity struct.
Definition algorithms.h:127
World Location struct.
Definition algorithms.h:87
Orientation struct.
Definition algorithms.h:103
Velocity struct.
Definition algorithms.h:111
@ velocity
Definition unit.h:44
@ acceleration
Definition unit.h:46
float64_t f64
Definition numbers.h:29
Definition dead_reckoner_impl.h:15