The takeoff and the landing, below 25 m, at twice the speed they ran. The yellow line is the path flown, the cyan one the line the autopilot follows: the climb out along the runway, and the glide slope down to the aim point.
Nothing for the flight itself; bitsim built with Chrono and Irrlicht to watch it, see Installing bitsim. Chrono only draws: the flight is FixedWingDynamics.
It integrates with fourth order Runge-Kutta, in steps of 2 ms on the stiff gear.
Slower, the wing needs a larger angle of attack, and the elevator more up to hold it. Below 16 m/s the elevator cannot, and above 32 m/s the motor cannot pull the aircraft fast enough: between them is the speed range of the aircraft.
The spiral of the Aerosonde grows by \(e\) in 16 s: left alone, it would slowly tip into a turn. The autopilot is what keeps its wings level.
Every gain comes from the linear model at 25 m/s: the roll loop, for example, has \(\dot p = -a_1 p + a_2 \delta_a\) with \(a_1\) and \(a_2\) read from \(A\) and \(B\), and its gains give it a chosen damping when the aileron reaches its limit at a 20 degree error.
It returns 0 if the aircraft stopped on the runway after a touchdown at less than 1.5 m/s.
In a wind, the autopilot flies the course over the ground, so it crabs into a crosswind; the rudder keeps the sideslip at 0 and the wheels straighten the aircraft at the touchdown:
A headwind shortens the takeoff and the rollout, as it should: the aircraft reaches its airspeed at a lower speed over the ground.
#include "bitsim/bitsim_config.h"
#if defined(BITSIM_CHRONO) && defined(BITSIM_IRRLICHT)
#include <chrono/assets/ChVisualShapeBox.h>
#include <chrono/physics/ChBody.h>
#include <chrono/physics/ChBodyEasy.h>
#include <chrono/physics/ChSystemNSC.h>
#include <chrono_irrlicht/ChVisualSystemIrrlicht.h>
#define FIXED_WING_RENDER
#endif
#include <algorithm>
#include <chrono>
#include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <memory>
#include <optional>
#include <sstream>
#include <string>
#include <thread>
#include <vector>
{
const std::vector<MissionWaypoint>
ROUTE{
{700.0, 0.0, 60.0}, {700.0, 500.0, 80.0}, {-450.0, 500.0, 80.0}, {-700.0, 250.0, 50.0}};
{
};
{
std::cout << " Va [m/s] alpha [deg] elevator [deg] throttle trim\n";
for (
real_t Va = 14.0; Va <= 34.0 + 1e-9; Va += 4.0)
{
std::string why = "yes";
if (!t.converged)
{
why = t.controls.throttle > 1.0 ? "no: needs more than full throttle"
? "no: needs more elevator than it has"
: "no";
}
std::cout << std::fixed << std::setprecision(1) << std::setw(10) << Va << std::setw(13)
<< t.alpha /
DEG << std::setw(16) << t.controls.elevator /
DEG
<< std::setprecision(2) << std::setw(10) << t.controls.throttle << " " << why
<< "\n";
}
}
{
std::cout << " mode eigenvalue wn [rad/s] damping period [s] "
"time constant [s]\n";
for (const auto &m : modes)
{
std::ostringstream eig;
eig << std::fixed << std::setprecision(3) << m.eigenvalue.real();
if (std::abs(m.eigenvalue.imag()) > 1e-9)
{
eig << " +/- " << std::abs(m.eigenvalue.imag()) << "i";
}
std::ostringstream period;
if (m.period > 0.0)
{
period << std::fixed << std::setprecision(2) << m.period;
}
else
{
period << "-";
}
std::cout << " " << std::left << std::setw(14) << m.name << std::setw(20) << eig.str()
<< std::right << std::fixed << std::setprecision(3) << std::setw(10)
<< m.natural_frequency << std::setw(9) << m.damping << std::setw(12)
<< period.str() << std::setprecision(2) << std::setw(15) << m.time_constant
<< (m.time_constant < 0 ? " it grows" : "") << "\n";
}
}
{
print_title(
"3. Autopilot gains, from the linear model at 25 m/s");
const auto &g = autopilot.
gains();
std::cout << std::fixed << std::setprecision(3) <<
" roll: kp " << g.
roll_kp <<
", kd "
<< g.roll_kd << "\n"
<< " course: kp " << g.course_kp << ", ki " << g.course_ki << "\n"
<< " sideslip: kp " << g.sideslip_kp << ", ki " << g.sideslip_ki << "\n"
<< " pitch: kp " << g.pitch_kp << ", kd " << g.pitch_kd << ", DC gain "
<< g.pitch_dc_gain << "\n"
<< " altitude: kp " << g.altitude_kp << ", ki " << g.altitude_ki << "\n"
<< " airspeed: kp " << g.throttle_kp << ", ki " << g.throttle_ki
<< " with the throttle; kp " << g.airspeed_pitch_kp << ", ki " << g.airspeed_pitch_ki
<< " with the pitch\n";
}
#ifdef FIXED_WING_RENDER
using chrono::ChColor;
using chrono::ChVector3d;
const chrono::ChMatrix33d
NED_TO_Z_UP(ChVector3d(1, 0, 0), ChVector3d(0, -1, 0),
ChVector3d(0, 0, -1));
{
public:
Display(
const FixedWingMission &mission,
const FixedWingParameters &p,
const std::string &record)
{
system_.SetGravitationalAcceleration(ChVector3d(0, 0, 0));
add_box_({0, 0, -0.05}, {4000, 4000, 0.1}, ChColor(0.42f, 0.55f, 0.36f));
add_box_({L / 2, 0, 0.005}, {L,
RUNWAY.
width, 0.01}, ChColor(0.28f, 0.28f, 0.30f));
for (
real_t x = 20.0; x < L - 10.0; x += 25.0)
{
add_box_({x, 0, 0.012}, {12, 0.4, 0.01}, ChColor(0.92f, 0.92f, 0.92f));
}
for (
real_t y = -7.5; y <= 7.5; y += 2.5)
{
add_box_({5, y, 0.012}, {8, 1.0, 0.01}, ChColor(0.92f, 0.92f, 0.92f));
}
for (std::size_t i = 1; i + 1 < mission.
points().size(); ++i)
{
const auto &w = mission.
points()[i];
add_box_(
to_z_up(w.north, w.east, -0.5 * w.altitude), {1.5, 1.5, w.altitude},
ChColor(0.9f, 0.55f, 0.15f));
}
aircraft_ = make_aircraft_(p);
system_.Add(aircraft_);
vis_.AttachSystem(&system_);
vis_.SetWindowSize(1280, 720);
vis_.SetWindowTitle("A fixed wing UAV: takeoff, circuit and landing");
vis_.SetCameraVertical(chrono::CameraVerticalDir::Z);
vis_.Initialize();
vis_.AddCamera({-12, 4, 4}, {0, 0, 0});
vis_.GetActiveCamera()->setFarValue(5000.0f);
vis_.AddLightDirectional(60.0, 60.0, ChColor(0.5f, 0.5f, 0.5f),
ChColor(0.05f, 0.05f, 0.05f), ChColor(0.55f, 0.55f, 0.55f));
}
bool show(
const FixedWingDynamics &aircraft,
const FixedWingMission &mission,
const std::string &status, bool record)
{
if (!vis_.Run())
{
return false;
}
const auto &x = aircraft.
state();
chrono::ChMatrix33d Rc;
for (int i = 0; i < 3; ++i)
{
for (int j = 0; j < 3; ++j)
{
}
}
aircraft_->SetPos(position);
trail_.add(position);
const ChVector3d ahead(std::cos(chi), -std::sin(chi), 0.0);
const ChVector3d right(-std::sin(chi), -std::cos(chi), 0.0);
vis_.UpdateCamera(position - ahead * 7.0 + right * 4.0 + ChVector3d(0, 0, 2.0), position);
vis_.BeginScene();
vis_.Render();
const auto &pts = mission.
points();
for (std::size_t i = 1; i < pts.size(); ++i)
{
const bool now = i == mission.
leg() + 1;
vis_,
to_z_up(pts[i - 1].north, pts[i - 1].east, -pts[i - 1].altitude),
to_z_up(pts[i].north, pts[i].east, -pts[i].altitude),
now ? ChColor(0.2f, 0.9f, 1.0f) : ChColor(0.6f, 0.75f, 0.8f), now ? 2.0 : 1.0);
}
trail_.draw(vis_, ChColor(1.0f, 0.85f, 0.2f), 2.0);
ChVector3d(position.x(), position.y(), 0.0),
ChColor(0.2f, 0.2f, 0.2f), 1.0);
vis_.EndScene();
if (record)
{
recorder_.record(vis_, aircraft.
time());
}
return true;
}
private:
void add_box_(const ChVector3d &at, const ChVector3d &size, const ChColor &colour)
{
auto box = chrono_types::make_shared<chrono::ChBodyEasyBox>(size.x(), size.y(), size.z(),
100.0, true, false);
box->SetPos(at);
box->SetFixed(true);
box->GetVisualShape(0)->SetColor(colour);
system_.Add(box);
}
std::shared_ptr<chrono::ChBody> make_aircraft_(const FixedWingParameters &p)
{
auto body = chrono_types::make_shared<chrono::ChBody>();
body->SetFixed(true);
const auto add = [&](
const ChVector3d &size,
const ChVector3d &at,
const ChColor &colour)
{
auto shape =
chrono_types::make_shared<chrono::ChVisualShapeBox>(size.x(), size.y(), size.z());
shape->SetColor(colour);
body->AddVisualShape(shape, chrono::ChFrame<>(at));
};
const ChColor white(0.92f, 0.92f, 0.95f);
const ChColor red(0.85f, 0.15f, 0.12f);
add({1.7, 0.18, 0.18}, {0.05, 0, 0}, white);
add({0.30, p.
b, 0.03}, {0.0, 0, 0.06}, white);
add({0.22, 0.95, 0.02}, {-0.85, 0, 0.04}, white);
add({0.26, 0.02, 0.34}, {-0.88, 0, 0.21}, red);
add({0.04, 0.05, 0.05}, {0.05, p.
b / 2, 0.06}, red);
add({0.04, 0.05, 0.05}, {0.05, -p.
b / 2, 0.06}, ChColor(0.1f, 0.7f, 0.2f));
add({0.02, 0.55, 0.05}, {0.92, 0, 0}, ChColor(0.2f, 0.2f, 0.2f));
for (
const auto &w : p.
gear)
{
add({0.1, 0.04, 0.1}, {w.position[0], -w.position[1], -w.position[2] + 0.05},
ChColor(0.1f, 0.1f, 0.1f));
}
return body;
}
chrono::ChSystemNSC system_;
std::shared_ptr<chrono::ChBody> aircraft_;
chrono::irrlicht::ChVisualSystemIrrlicht vis_;
bitsim::utils::render::FrameRecorder recorder_;
bitsim::utils::render::Trail trail_{1.0, 0.0};
};
#endif
{
std::cout << std::fixed << std::setprecision(0) <<
" Runway " <<
RUNWAY.length
<<
" m long, heading " <<
RUNWAY.heading /
DEG
<< " deg. The route, north, east and altitude [m]:\n";
for (std::size_t i = 1; i < mission.
points().size(); ++i)
{
const auto &w = mission.
points()[i];
const char *what = i + 2 == mission.
points().size() ?
" final approach fix"
: i + 1 == mission.
points().size() ?
" aim point"
: "";
std::cout << std::fixed << std::setprecision(0) << " " << std::setw(6) << w.north
<< std::setw(7) << w.east << std::setw(5) << w.altitude << what << "\n";
}
std::cout << std::setprecision(1) << " Wind towards the north " << options.wind_north
<< " m/s and the east " << options.wind_east << " m/s\n\n";
aircraft.
set_wind({options.wind_north, options.wind_east, 0.0});
for (int k = 0; k < 100; ++k)
{
}
#ifdef FIXED_WING_RENDER
std::optional<Display> display;
if (options.render)
{
display.emplace(mission, p, options.record);
}
#else
if (options.render)
{
std::cerr << "--render and --record need bitsim built with Chrono and Irrlicht\n";
return 1;
}
#endif
std::cout << " t [s] phase leg north [m] east [m] alt [m] Va [m/s] "
"bank [deg] off the line [m]\n";
const auto print = [&](
const std::string ¬e)
{
const auto &s = aircraft.
state();
std::cout << std::fixed << std::setprecision(1) << std::setw(9) << aircraft.
time() <<
" "
<< std::left << std::setw(12) <<
to_string(mission.
phase()) << std::right
<< std::setw(5) << mission.
leg() << std::setw(11) << s[
fw::PN] << std::setw(10)
};
std::optional<real_t> liftoff_distance;
real_t liftoff_airspeed = 0.0;
real_t max_approach_off = 0.0;
const auto wall_start = std::chrono::steady_clock::now();
{
if (!liftoff_distance && mission.
phase() == MissionPhase::ROTATE && !aircraft.
on_ground())
{
liftoff_distance = aircraft.
state()[
fw::PN] - start_north;
}
if (mission.
phase() == MissionPhase::APPROACH)
{
const auto rc =
if (rc[0] > -300.0)
{
max_approach_off = std::max(max_approach_off, std::abs(mission.
cross_track()));
max_glide_off = std::max(
}
}
if (mission.
phase() != phase)
{
}
else if (aircraft.
time() + 1e-9 >= next_print)
{
}
if (aircraft.
time() + 1e-9 >= next_print)
{
}
#ifdef FIXED_WING_RENDER
if (display && aircraft.
time() + 1e-9 >= next_frame)
{
std::ostringstream status;
status << std::fixed << std::setprecision(1) <<
"t = " << aircraft.
time() <<
" s "
<<
" m airspeed " << aircraft.
airspeed() <<
" m/s bank "
<< aircraft.
state()[
fw::PHI] /
DEG <<
" deg throttle " << std::setprecision(2)
<< u.throttle <<
" leg " << mission.
leg() <<
" yellow: flown, cyan: the "
<< "line it follows";
const bool climbing_out = mission.
phase() == MissionPhase::ENROUTE &&
const bool landing =
(mission.
phase() == MissionPhase::APPROACH && aircraft.
altitude() < 25.0) ||
mission.
phase() == MissionPhase::FLARE || mission.
phase() == MissionPhase::ROLLOUT;
const bool record = mission.
phase() == MissionPhase::TAKEOFF_ROLL ||
mission.
phase() == MissionPhase::ROTATE || climbing_out || landing;
if (!display->show(aircraft, mission, status.str(), record))
{
return 0;
}
std::chrono::duration<real_t>(std::chrono::steady_clock::now() - wall_start)
.count();
if (ahead > 0.0)
{
std::this_thread::sleep_for(std::chrono::duration<real_t>(ahead));
}
}
#else
(void)next_frame;
#endif
}
const auto &s = aircraft.
state();
std::cout << std::fixed << std::setprecision(1) << "\n";
if (liftoff_distance)
{
std::cout << " Lift-off after a roll of " << *liftoff_distance << " m, at "
<< liftoff_airspeed << " m/s\n";
}
std::cout << std::setprecision(2) << " On the last 300 m of the approach: at most "
<< max_approach_off << " m off the centre line and " << max_glide_off
<< " m off the glide slope\n";
if (td)
{
std::cout << std::setprecision(1) << " Touchdown at t = " << td->time << " s, "
<< td->along << " m past the threshold, " << std::setprecision(2) << td->across
<< " m off the centre line, sinking at " << td->sink_rate << " m/s, at "
<< std::setprecision(1) << td->airspeed << " m/s\n";
}
std::cout <<
" " << (mission.
phase() == MissionPhase::STOPPED ?
"Stopped" :
"Still going")
<<
" at t = " << aircraft.
time() <<
" s, " << end[0] <<
" m past the threshold, "
<< std::setprecision(2) << end[1] << " m off the centre line\n";
const bool on_runway =
end[0] >= 0.0 && end[0] <=
RUNWAY.length && std::abs(end[1]) < 0.5 *
RUNWAY.width;
return mission.
phase() == MissionPhase::STOPPED && on_runway && td && td->sink_rate < 1.5 ? 0
: 1;
}
}
int main(
int argc,
char **argv)
{
for (int i = 1; i < argc; ++i)
{
const std::string arg = argv[i];
if (arg == "--wind" && i + 2 < argc)
{
options.wind_north = std::atof(argv[++i]);
options.wind_east = std::atof(argv[++i]);
}
else if (arg == "--render")
{
options.render = true;
}
else if (arg == "--record" && i + 1 < argc)
{
options.render = true;
options.record = argv[++i];
}
else
{
std::cerr << "Usage: fixed_wing_flight [--wind N E] [--render] [--record DIR]\n";
return 1;
}
}
return fly(p, autopilot, options);
}
The basic types of bitsim. Code outside this file names Eigen's matrix and vector types only through ...
Holds airspeed, altitude and course with loops closed one inside the other, as in Beard and McLain,...
Definition fixed_wing_autopilot.h:78
const FixedWingAutopilotGains & gains() const noexcept
Definition fixed_wing_autopilot.h:103
Takes off from a runway, flies a route of waypoints and lands back on the runway.
Definition fixed_wing_mission.h:101
std::size_t leg() const noexcept
The line being followed: from points()[leg()] to points()[leg() + 1].
Definition fixed_wing_mission.h:116
real_t cross_track() const noexcept
Definition fixed_wing_mission.h:118
const std::vector< MissionWaypoint > & points() const noexcept
Definition fixed_wing_mission.h:117
MissionPhase phase() const noexcept
Definition fixed_wing_mission.h:112
dynamics::FixedWingControls update(const dynamics::FixedWingDynamics &aircraft, real_t dt)
The controls for the aircraft now, after dt [s].
Definition fixed_wing_mission.cpp:134
const std::optional< Touchdown > & touchdown() const noexcept
Definition fixed_wing_mission.h:120
const FixedWingCommands & commands() const noexcept
Definition fixed_wing_mission.h:119
std::array< real_t, 2 > runway_coordinates(real_t north, real_t east) const
Definition fixed_wing_mission.cpp:76
The 6-DOF flight dynamics of a fixed wing aircraft, with its landing gear on a flat ground at down = ...
Definition fixed_wing_dynamics.h:176
bool on_ground() const
whether a wheel touches the ground
Definition fixed_wing_dynamics.cpp:270
real_t course() const
the direction of the velocity over the ground [rad]
Definition fixed_wing_dynamics.cpp:256
void step(const FixedWingControls &controls, real_t dt)
Advance by dt [s] with the given controls, which are first limited.
Definition fixed_wing_dynamics.cpp:223
const FixedWingState & state() const noexcept
Definition fixed_wing_dynamics.h:206
real_t altitude() const
Definition fixed_wing_dynamics.h:215
real_t time() const noexcept
Definition fixed_wing_dynamics.h:209
void set_wind(const RealColVec3d &wind_ned)
The wind, in the world [m/s]; the direction it blows towards.
Definition fixed_wing_dynamics.h:203
static RealMat3d rotation(real_t phi, real_t theta, real_t psi)
Definition fixed_wing_dynamics.cpp:55
real_t airspeed() const
Definition fixed_wing_dynamics.cpp:245
Definition fixed_wing_flight.cpp:167
bool show(const FixedWingDynamics &aircraft, const FixedWingMission &mission, const std::string &status, bool record)
Definition fixed_wing_flight.cpp:209
Display(const FixedWingMission &mission, const FixedWingParameters &p, const std::string &record)
Definition fixed_wing_flight.cpp:169
int main()
Definition discounted_returns.cpp:19
The trim of a fixed wing aircraft for level flight, its linear model about a trim,...
Pieces of an Irrlicht window for a robot simulation: a texture on the floor, a path drawn behind a ro...
Vec & add(Vec &v1, const Vec &v2)
Definition vector_math.h:248
const real_t PI
The PI constant.
Definition bitsim_consts.h:63
Controllers: PID controllers, line following, a quadrotor flight controller, a fixed wing autopilot,...
Definition control_module.h:18
std::string to_string(MissionPhase phase)
Definition fixed_wing_mission.cpp:31
MissionPhase
Definition fixed_wing_mission.h:59
@ THETA
Definition fixed_wing_dynamics.h:35
@ PE
Definition fixed_wing_dynamics.h:29
@ PD
Definition fixed_wing_dynamics.h:30
@ PN
Definition fixed_wing_dynamics.h:28
@ PSI
Definition fixed_wing_dynamics.h:36
@ PHI
Definition fixed_wing_dynamics.h:34
@ R
Definition fixed_wing_dynamics.h:39
Models of how things move: wheeled robots, a bicycle, a quadrotor and a fixed wing aircraft,...
Definition bicycle_vehicle_model_dynamics.cpp:10
FixedWingTrim trim_level_flight(const FixedWingParameters ¶meters, real_t airspeed, real_t altitude, real_t heading)
Find the controls for straight and level flight at the given airspeed, with no wind....
Definition fixed_wing_trim.cpp:108
UnalignedMat< real_t, 12, 1 > FixedWingState
The 12 values of the state of a fixed wing aircraft, in this order: the position (north,...
Definition fixed_wing_dynamics.h:19
FixedWingLinearModel linearise(const FixedWingParameters ¶meters, const FixedWingTrim &trim)
Linearise the dynamics about a trim, by central differences.
Definition fixed_wing_trim.cpp:194
std::vector< FlightMode > flight_modes(const FixedWingLinearModel &model)
The classical modes: short period and phugoid from the longitudinal states (u, w, q,...
Definition fixed_wing_trim.cpp:218
void print_title(const std::string &title, std::ostream &out)
An empty line and then the title.
Definition print_utils.cpp:17
void irr_draw_line(chrono::irrlicht::ChVisualSystemIrrlicht &vis, const chrono::ChVector3d &start, const chrono::ChVector3d &end, const chrono::ChColor &color, real_t thickness)
Definition irrlicht_utils.cpp:19
void draw_status_bar(chrono::irrlicht::ChVisualSystemIrrlicht &vis, const std::string &text)
Write text on a light bar along the bottom of the window. Call this between Render() and EndScene().
Definition irrlicht_scene.cpp:151
std::size_t uint_t
uint_t
Definition bitsim_types.h:40
Eigen::Matrix3< real_t > RealMat3d
3×3 matrix of type double.
Definition bitsim_types.h:86
double real_t
real_t
Definition bitsim_types.h:20
void print(const Run &run)
Definition cart_pole_lqr_mpc.cpp:101
void record(const std::vector< Run > &runs, const std::string &directory)
Definition cart_pole_lqr_mpc.cpp:194
Definition fixed_wing_flight.cpp:46
int fly(const FixedWingParameters &p, FixedWingAutopilot &autopilot, const Options &options)
Definition fixed_wing_flight.cpp:316
const real_t TIME_LIMIT
Definition fixed_wing_flight.cpp:60
const real_t STEP
Definition fixed_wing_flight.cpp:58
const chrono::ChMatrix33d NED_TO_Z_UP(ChVector3d(1, 0, 0), ChVector3d(0, -1, 0), ChVector3d(0, 0, -1))
void show_modes(const FixedWingParameters &p)
Definition fixed_wing_flight.cpp:105
void show_trims(const FixedWingParameters &p)
Definition fixed_wing_flight.cpp:83
const real_t PI
Definition fixed_wing_flight.cpp:55
const real_t DEG
Definition fixed_wing_flight.cpp:56
void show_gains(const FixedWingAutopilot &autopilot)
Definition fixed_wing_flight.cpp:137
const real_t RECORD_RATE
Definition fixed_wing_flight.cpp:62
const Runway RUNWAY
Definition fixed_wing_flight.cpp:67
ChVector3d to_z_up(real_t n, real_t e, real_t d)
Definition fixed_wing_flight.cpp:164
const real_t DESIGN_AIRSPEED
Definition fixed_wing_flight.cpp:63
const real_t RENDER_RATE
Definition fixed_wing_flight.cpp:61
void print_title(const std::string &title, std::ostream &out)
An empty line and then the title.
Definition print_utils.cpp:17
const std::vector< MissionWaypoint > ROUTE
Definition fixed_wing_flight.cpp:68
const real_t PRINT_PERIOD
Definition fixed_wing_flight.cpp:59
Print labelled values, one per line, as the examples do: two spaces, the label padded to a width,...
How the loops are designed, and the limits of what they command.
Definition fixed_wing_autopilot.h:39
real_t airspeed
the trim the gains are designed at [m/s]
Definition fixed_wing_autopilot.h:40
real_t roll_kp
Definition fixed_wing_autopilot.h:26
real_t altitude
[m]
Definition fixed_wing_autopilot.h:17
A runway on the ground: it starts at its threshold and runs along its heading.
Definition fixed_wing_mission.h:19
real_t length
[m]
Definition fixed_wing_mission.h:23
real_t width
[m]
Definition fixed_wing_mission.h:24
The aircraft: its mass, its geometry, its aerodynamic coefficients, its propeller and motor,...
Definition fixed_wing_dynamics.h:73
std::vector< LandingGearWheel > gear
Definition fixed_wing_dynamics.h:116
static FixedWingParameters aerosonde()
The Aerosonde of Beard and McLain, Small Unmanned Aircraft, 2nd edition, with a tricycle landing gear...
Definition fixed_wing_dynamics.h:130
real_t max_elevator
Definition fixed_wing_dynamics.h:110
real_t b
the wing span [m]
Definition fixed_wing_dynamics.h:83
Definition fixed_wing_flight.cpp:72
std::string record
Definition fixed_wing_flight.cpp:76
bool render
Definition fixed_wing_flight.cpp:75
real_t wind_east
Definition fixed_wing_flight.cpp:74
real_t wind_north
Definition fixed_wing_flight.cpp:73