# Vineta K steering (Single Race, Vector, Feisar). tools/campaign_sweep.py reads this file.
# `follow LINE WN PREVIEW [KEY=VALUE ...]`: steer closed loop along LINE, a `dist,x,z` racing line (class Tuner:
# the line's curvature PREVIEW s ahead as a feed-forward, heading and offset feedback at WN rad/s), through
# PURE_INPUT_LIVE. The KEY=VALUE options are documented in class Tuner.
# The line is the AI ships' mean path from a PPSSPP race (`tools/pp_lines.py vineta_k`, 2026-10-05), exported with
# `tools/campaign_sweep.py single_race vineta_k --export-line config/pad_scripts/drive/vineta_k.line.csv`.
# The track coordinate wraps at about 4437 m; the grid is at 1079 m and the start line at about 1233 m. The first
# corner is a right-hander (+lx); negative lx yaws left.
#
# Why these settings (task 016, 2026-10-05; every run three laps unless it says otherwise, contacts counted by the
# sweep's rule):
# - The stick has a dead zone of about 0.3 (the host's 15% plus the game's): under it the ship does not turn, so
#   task 012's loop (wn 1.0, preview 0.3, no dead-zone mapping) ran 10 to 13 m off the line for seconds at a time,
#   43 contacts. Tuner now maps through the dead zone (deadzone 0.3, yaw 0.8 rad/s at lock).
# - With the mapping, wn 1.0 / preview 0.3 swung 15 to 20 m either side (50 contacts) and wn 1.3 / preview 0.5
#   went lock to lock: the stick-to-heading lag is about 0.8 s (a 0.3 s delay and a 0.5 s lag fitted to a run).
#   wn 0.8 with preview 0.8 is the calmest (40 contacts, PASS).
# - Not used: the predictor (lag 0.9: worse, 12.6 m mean offset in the first lap), vmax (lift and both airbrakes
#   above 360 km/h: 18 contacts in the first lap), yaw 1.0 / preview 0.5 (12 in the first lap).
# - Verify (three runs in a row, --frames 13000): PASS 182.4 s with 37 contacts, PASS 195.3 s with 47, PASS 192.9 s
#   with 39.
# - recover 60 turns the ship off a wall it hit nose first (full lock towards the line below 60 km/h); without it
#   a ship nosed square into the outer barrier at 1914 m stayed there with Cross held (STALL).
# - absorb 2 presses Square ("Absorb pickup" in the game's default controls) every 2 s, meant to turn picked-up
#   weapons into shield: a ship whose shield runs out is destroyed (Chenghou Project, Blue Ridge, Modesto Heights).
#   No shield gain was seen: in shots every 10 to 15 s the shield bar only fell, also with Square held 40 frames.
#   It is kept because the three Verify runs used it.
#
# Why not a replayed table: the second lap of a --tune run (task 012) replayed as 1825 `@DIST:axis leftx V` steps
# (open loop, keyed by distance) drifted 15 to 25 m off the line within 20 s, spun the ship round at about 2440 m
# and was still on its first lap after 101 s of race clock.
follow config/pad_scripts/drive/vineta_k.line.csv 0.8 0.8 recover=60 absorb=2
