bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
fixed_wing_trim.cpp File Reference
#include "bitsim/dynamics/fixed_wing_trim.h"
#include "bitsim/bitsim_consts.h"
#include <algorithm>
#include <array>
#include <cmath>
#include <stdexcept>
Include dependency graph for fixed_wing_trim.cpp:

Namespaces

namespace  bitsim
namespace  bitsim::dynamics
 Models of how things move: wheeled robots, a bicycle, a quadrotor and a fixed wing aircraft, with the trim and linearisation of the aircraft.

Functions

FixedWingTrim bitsim::dynamics::trim_level_flight (const FixedWingParameters &parameters, real_t airspeed, real_t altitude=100.0, real_t heading=0.0)
 Find the controls for straight and level flight at the given airspeed, with no wind. The unknowns are the angle of attack and the sideslip, and the elevator, aileron, rudder and throttle; the pitch equals the angle of attack and the roll is 0. The search ignores the limits of the controls; converged says whether it found a trim, and the controls are within them.
FixedWingLinearModel bitsim::dynamics::linearise (const FixedWingParameters &parameters, const FixedWingTrim &trim)
 Linearise the dynamics about a trim, by central differences.
std::vector< FlightMode > bitsim::dynamics::flight_modes (const FixedWingLinearModel &model)
 The classical modes: short period and phugoid from the longitudinal states (u, w, q, theta), and roll, spiral and Dutch roll from the lateral ones (v, p, r, phi).