bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
bitsim::control::FixedWingMission Class Reference

Takes off from a runway, flies a route of waypoints and lands back on the runway. More...

#include <fixed_wing_mission.h>

Public Member Functions

 FixedWingMission (FixedWingAutopilot &autopilot, const Runway &runway, const std::vector< MissionWaypoint > &route, const FixedWingMissionSettings &settings={})
dynamics::FixedWingControls update (const dynamics::FixedWingDynamics &aircraft, real_t dt)
 The controls for the aircraft now, after dt [s].
MissionPhase phase () const noexcept
std::size_t leg () const noexcept
 The line being followed: from points()[leg()] to points()[leg() + 1].
const std::vector< MissionWaypoint > & points () const noexcept
real_t cross_track () const noexcept
const FixedWingCommands & commands () const noexcept
const std::optional< Touchdown > & touchdown () const noexcept
std::array< real_t, 2 > runway_coordinates (real_t north, real_t east) const
real_t wheel_height (const dynamics::FixedWingDynamics &aircraft) const

Detailed Description

Takes off from a runway, flies a route of waypoints and lands back on the runway.

  • Takeoff roll: full throttle, the wings level, the nose wheel steering along the centre line. At the rotate airspeed it pitches up to climb_pitch.
  • Enroute: from clear_height it follows straight lines from the runway to each waypoint in turn, then to the final approach fix, final_length before the aim point on the extended centre line. Each line is followed by commanding a course \(\chi_q - \chi_\infty \frac{2}{\pi} \arctan(k e)\) with \(e\) the distance right of it, and the next line starts when the aircraft crosses the half plane that bisects the corner (Beard and McLain, chapters 10, 11).
  • Approach: down the glide slope to the aim point at the approach airspeed.
  • Flare: below flare_height the pitch holds a sink rate that falls with the height, to flare_sink_rate at touchdown, and the throttle closes with the height.
  • Rollout: on the wheels it steers along the centre line and brakes below brake_airspeed, until it stops.

Constructor & Destructor Documentation

◆ FixedWingMission()

bitsim::control::FixedWingMission::FixedWingMission ( FixedWingAutopilot & autopilot,
const Runway & runway,
const std::vector< MissionWaypoint > & route,
const FixedWingMissionSettings & settings = {} )

Member Function Documentation

◆ commands()

const FixedWingCommands & bitsim::control::FixedWingMission::commands ( ) const
inlinenoexcept

◆ cross_track()

real_t bitsim::control::FixedWingMission::cross_track ( ) const
inlinenoexcept

◆ leg()

std::size_t bitsim::control::FixedWingMission::leg ( ) const
inlinenoexcept

The line being followed: from points()[leg()] to points()[leg() + 1].

◆ phase()

MissionPhase bitsim::control::FixedWingMission::phase ( ) const
inlinenoexcept

◆ points()

const std::vector< MissionWaypoint > & bitsim::control::FixedWingMission::points ( ) const
inlinenoexcept

◆ runway_coordinates()

std::array< real_t, 2 > bitsim::control::FixedWingMission::runway_coordinates ( real_t north,
real_t east ) const
Returns
The point on the runway's centre line, along it from the threshold and right of it

◆ touchdown()

const std::optional< Touchdown > & bitsim::control::FixedWingMission::touchdown ( ) const
inlinenoexcept

◆ update()

dynamics::FixedWingControls bitsim::control::FixedWingMission::update ( const dynamics::FixedWingDynamics & aircraft,
real_t dt )

The controls for the aircraft now, after dt [s].

◆ wheel_height()

real_t bitsim::control::FixedWingMission::wheel_height ( const dynamics::FixedWingDynamics & aircraft) const
Returns
The height of the lowest wheel above the ground [m]

The documentation for this class was generated from the following files: