Calculate takeoff and landing performance for Cirrus SR22T at any runway. Input weather (winds, temp, altimeter) and runway data (elevation, heading, length) to get performance calculations, approach speeds, safety margins, and passenger briefing scripts. Use when evaluating runway feasibility, checking hot day performance, or analyzing unfamiliar airports.
SAFETY-CRITICAL REQUIREMENT: This skill contains actual Cirrus SR22T POH performance data. Using incorrect data could result in runway overruns, accidents, or fatalities.
STEP 1: Read the reference files FIRST
cat references/sr22t_performance_data.py
cat references/calculation_functions.py
STEP 2: Import and use ONLY the provided data
import sys
sys.path.insert(0, 'references')
from sr22t_performance_data import EMBEDDED_SR22T_PERFORMANCE
from calculation_functions import (
calculate_pressure_altitude,
calculate_isa_temperature,
calculate_density_altitude,
calculate_wind_components,
interpolate_performance
)
STEP 3: Extract performance tables - DO NOT create your own
takeoff_data = EMBEDDED_SR22T_PERFORMANCE["performance_data"]["takeoff_distance"]["conditions"]
landing_data = EMBEDDED_SR22T_PERFORMANCE["performance_data"]["landing_distance"]["conditions"]
v_speeds = EMBEDDED_SR22T_PERFORMANCE["v_speeds"]["approach_speeds"]
If you cannot access the reference files, STOP and inform the user. Do not proceed with estimated data.
Optional: Wind gusts, Operation type (takeoff/landing/both)
CRITICAL: The skill MUST analyze the user's request to determine operation type.
Automatic Detection (Priority 1): Scan the user's request for explicit keywords:
Examples:
Default Behavior:
Set Operation Mode:
# Detect from user input
if "depart" in user_input.lower() or "takeoff" in user_input.lower():
operation = "takeoff"
elif "arriv" in user_input.lower() or "landing" in user_input.lower():
operation = "landing"