|
bitsim
Model, simulate, estimate and control robots in C++
|
The 6-DOF flight dynamics of a fixed wing aircraft, with its landing gear on a flat ground at down = 0. More...
#include <fixed_wing_dynamics.h>
Public Member Functions | |
| FixedWingDynamics (const FixedWingParameters ¶meters, const FixedWingState &state) | |
| void | step (const FixedWingControls &controls, real_t dt) |
| Advance by dt [s] with the given controls, which are first limited. | |
| FixedWingState | derivative (const FixedWingState &x, const FixedWingControls &controls) const |
| FixedWingForces | forces (const FixedWingState &x, const FixedWingControls &controls) const |
| FixedWingControls | limit (const FixedWingControls &controls) const |
| void | set_wind (const RealColVec3d &wind_ned) |
| The wind, in the world [m/s]; the direction it blows towards. | |
| const RealColVec3d & | wind () const noexcept |
| const FixedWingState & | state () const noexcept |
| FixedWingState & | state () noexcept |
| const FixedWingParameters & | parameters () const noexcept |
| real_t | time () const noexcept |
| real_t | airspeed () const |
| real_t | alpha () const |
| real_t | beta () const |
| real_t | altitude () const |
| real_t | ground_speed () const |
| real_t | course () const |
| the direction of the velocity over the ground [rad] | |
| real_t | climb_rate () const |
| [m/s], positive up | |
| bool | on_ground () const |
| whether a wheel touches the ground | |
Static Public Member Functions | |
| static RealMat3d | rotation (real_t phi, real_t theta, real_t psi) |
The 6-DOF flight dynamics of a fixed wing aircraft, with its landing gear on a flat ground at down = 0.
The world is NED and the body frame has x forward, y right and z down; the body is turned from the world by \(R = R_z(\psi) R_y(\theta) R_x(\phi)\). The model follows Beard and McLain, Small Unmanned Aircraft: Theory and Practice:
step() integrates with fourth order Runge-Kutta, in substeps of at most 2 ms for the stiff landing gear.
| bitsim::dynamics::FixedWingDynamics::FixedWingDynamics | ( | const FixedWingParameters & | parameters, |
| const FixedWingState & | state ) |
|
inline |
[m/s], positive up
the direction of the velocity over the ground [rad]
| FixedWingState bitsim::dynamics::FixedWingDynamics::derivative | ( | const FixedWingState & | x, |
| const FixedWingControls & | controls ) const |
| FixedWingForces bitsim::dynamics::FixedWingDynamics::forces | ( | const FixedWingState & | x, |
| const FixedWingControls & | controls ) const |
| FixedWingControls bitsim::dynamics::FixedWingDynamics::limit | ( | const FixedWingControls & | controls | ) | const |
| bool bitsim::dynamics::FixedWingDynamics::on_ground | ( | ) | const |
whether a wheel touches the ground
|
inlinenoexcept |
|
static |
|
inline |
The wind, in the world [m/s]; the direction it blows towards.
|
inlinenoexcept |
|
inlinenoexcept |
| void bitsim::dynamics::FixedWingDynamics::step | ( | const FixedWingControls & | controls, |
| real_t | dt ) |
Advance by dt [s] with the given controls, which are first limited.
|
inlinenoexcept |
|
inlinenoexcept |