Plugin Helper Interface (PI_CockpitdecksFMSBrowser)¶
G1000-style FMS layout expects the following datarefs and commands.
Current (used by fms_fpl, fms_nav, fms_load pages)¶
fms_browser (plan browser / LOAD)¶
3-row paged list (same paging model as fms_legs on FPL): show plans 1–3, then 4–6, etc.
list_row_1_filename…list_row_3_filename— file basename without.fmslist_row_1_timestamp…list_row_3_timestamp— file timestamp label used on the LOAD pagelist_row_1_index…list_row_3_index— 1-based index of that row’s plan in the full sorted list (empty if row blank)list_row_1_route…list_row_3_route— departure / destination line for the row’s planlist_row_1_wpt_count…list_row_3_wpt_count— waypoint count in filelist_row_1_max_alt_ft…list_row_3_max_alt_ft— max waypoint altitude in file (ft MSL; 0 if empty row)list_row_1_distance_nm…list_row_3_distance_nm— total great-circle distance along parsed route (nm)list_row_1_is_selected…list_row_3_is_selected— highlight when that row’s plan is selectedlist_page— e.g.1/4(current page / total pages)list_sel_count— which visible row (1–3) is selected on the current page, e.g.2/3or-/3when none; uselist_page+ rowlist_row_*_indexfor global plan orderlist_sort_key/list_sort_mode—NAMEorTIMElist_sort_direction—ASCorDESClist_snapshot— JSON for encoder binding (window + row indices + selection +sort_key+sort_desc)- Commands:
list_scroll_up,list_scroll_down— move by one page (three plans), not one-by-one (Loupedeck SR22 Load binds these to E0; deck keys may use sort orrefreshinstead) - Commands:
list_sort_toggle_key,list_sort_toggle_direction— toggle the browser sort key/direction - Commands:
list_sort_filename,list_sort_timestamp,list_sort_asc,list_sort_desc— explicit setters if you want fixed-state actions
Legacy single-selection datarefs (reflect the tapped/selected plan, not the visible page):
plan_name,plan_filename,plan_departure,plan_destinationplan_distance_nm,plan_waypoint_countplan_dep_runway,plan_dest_runway,plan_sid,plan_starindex,count,statusloaded_distance_nm— total distance of loaded route (nm)- Commands:
previous,next— move selection within the current visible 3-row page only (no page change);load,refresh
fms_browser (live FMS)¶
fms_active_ident,fms_active_index,fms_active_altitudefms_first_ident,fms_last_identfms_entry_count
fms_legs (FPL waypoint list)¶
row_1_index,row_1_ident,row_1_alt,row_1_is_active,row_1_is_selected,row_1_status- (same for row_2, row_3)
selected_index,entry_count,snapshot,window_start(read=page 1,2,3…; writable=set page)- Commands:
scroll_up,scroll_down— move by page (1–3, 4–6, 7–9…), not 1-by-1 - Commands:
direct_to,select_row_1,select_row_2,select_row_3,clear_selected
Desired additions (for full G1000 parity)¶
Per-waypoint in FPL (row_X_)¶
row_X_dtk— desired track to that waypoint (°)row_X_distance_nm— distance to that waypoint (nm)
NAV page¶
distance_to_destination_nm— remaining distance to last waypointete_to_destination_min— ETE to destinationnav_source— "GPS" | "VLOC" (for SRC tile, future toggle)
X-Plane datarefs used (verify existence)¶
sim/cockpit2/radios/indicators/gps_dme_distance_nm— dist to next WPTsim/cockpit2/radios/indicators/gps_dme_time_min— ETE to next WPTsim/cockpit2/radios/indicators/gps_bearing_deg_mag— DTKsim/cockpit2/radios/indicators/gps_nav_bearing_deg_mag— BRG to WPTsim/cockpit/radios/gps_course_deviation— XTK (nm)sim/cockpit2/gauges/indicators/ground_speed_ktsim/cockpit2/gauges/indicators/ground_track_mag_pilotsim/cockpit2/radios/indicators/fms1_act_eta_hour,fms1_act_eta_minute