PX4 Firmware
PX4 Autopilot Software http://px4.io
dual.cpp File Reference
#include "test_macros.hpp"
#include <matrix/math.hpp>
#include <iostream>
Include dependency graph for dual.cpp:

Go to the source code of this file.

Functions

template<typename Scalar , size_t N>
bool isEqualAll (Dual< Scalar, N > a, Dual< Scalar, N > b)
 
template<typename T >
testFunction (const Vector< T, 3 > &point)
 
template<typename Scalar >
Vector< Scalar, 3 > positionError (const Vector< Scalar, 3 > &positionState, const Vector< Scalar, 3 > &velocityStateBody, const Quaternion< Scalar > &bodyOrientation, const Vector< Scalar, 3 > &positionMeasurement, Scalar dt)
 
int main ()
 

Function Documentation

◆ isEqualAll()

template<typename Scalar , size_t N>
bool isEqualAll ( Dual< Scalar, N >  a,
Dual< Scalar, N >  b 
)

Definition at line 8 of file dual.cpp.

References matrix::Dual< Scalar, N >::derivative, matrix::isEqualF(), and matrix::Dual< Scalar, N >::value.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

◆ positionError()

template<typename Scalar >
Vector<Scalar, 3> positionError ( const Vector< Scalar, 3 > &  positionState,
const Vector< Scalar, 3 > &  velocityStateBody,
const Quaternion< Scalar > &  bodyOrientation,
const Vector< Scalar, 3 > &  positionMeasurement,
Scalar  dt 
)

Definition at line 23 of file dual.cpp.

References matrix::Quaternion< Type >::conjugate(), and dt.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ testFunction()

template<typename T >
T testFunction ( const Vector< T, 3 > &  point)

Definition at line 14 of file dual.cpp.

Referenced by main().

Here is the caller graph for this function: