autopilot#

class airtrafficsim.core.autopilot.Autopilot#

Autopilot class

Methods

add_aircraft(lat, long, alt, heading, cas, ...)

Add aircraft and init flight plan

del_aircraft(index)

Delete aircraft

update(traffic)

Update the autopilot status for each timestep

alt#

Autopilot target altitude [feet]

heading#

Autopilot target heading [deg]

track_angle#

Autopilot target track angle [deg]

ap_rate_of_turn#

Rate of turn [deg/s]

cas#

Autopilot target calibrated air speed [knots]

mach#

Autopilot target Mach number [dimensionless]

vs#

Autopilot target vertical speed (feet/min)

fpa#

Flight path angle [deg]

lat#

Autopilot target latitude [deg]

long#

Autopilot target longitude [deg]

lat_next#

Autopilot target latitude for next waypoint [deg]

long_next#

Autopilot target longitude for next waypoint [deg]

hv_next_wp#

Autupilot hv next waypoint [bool]

dist#

Distance to next waypoint [nm]

flight_plan_index#

Index of next waypoint in flight plan array [int]

flight_plan_name#

2D array to store the string of waypoints [[string]]

flight_plan_lat#

2D array to store the latitude of waypoints [[deg…]]

flight_plan_long#

2D array to store the longitude of waypoints [[deg…]]

flight_plan_target_alt#

2D array of target altitude at each waypoint [[ft…]]

flight_plan_target_speed#

2D array of target speed at each waypoint [[cas/mach…]]

procedure_speed#

Procedural target speed from BADA

speed_mode#

Autopilot speed mode [1: constant Mach, 2: constant CAS, 3: accelerate, 4: decelerate]

auto_throttle_mode#

Autothrottle mode [1: Auto, 2: Speed]

vertical_mode#

Autopilot vertical mode [1: alt hold, 2: vs mode, 3: flc mode (flight level change), 4. VNAV]

lateral_mode#

Autopilot lateral mode [1: heading, 2: LNAV] ATC only use heading, LNAV -> track angle

expedite_descent#

Autopilot expedite climb setting [bool]

add_aircraft(lat, long, alt, heading, cas, departure_airport, departure_runway, sid, arrival_airport, arrival_runway, star, approach, flight_plan, cruise_alt)#

Add aircraft and init flight plan

latfloat

Starting latitude of the aircraft

longfloat

Starting longitude of the aircraft

altfloat

Starting altitude of the aircraft

headingfloat

Starting heading of the aircraft

casfloat

Starting calibrated air speed of the aircraft

flight_planString[] (optional)

Flight plan of an aircraft

del_aircraft(index)#

Delete aircraft

Parameters:
indexfloat

The index of the aircraft to be deleted

update(traffic: Traffic)#

Update the autopilot status for each timestep

Parameters:
trafficTraffic

Traffic class