
flags: target_altitude target_longitude target_latitude target_inclination target_velocity goal_altitude goal_longitude goal_latitude goal_velocity goal_inclination goal_deltav

=== alt ===
name: [ALT]
short: [ALT]

=== lon ===
name: [LON]
short: [LON]

=== lat ===
name: [LAT]
short: [LAT]

=== inc ===
name: [INC]
short: [INC]

=== vel ===
name: [VEL]
short: [VEL]

=== ags ===
name: [AGS]
short: [AGS]

=== rdv ===
name: [RDV]
short: [RDV]

=== dv ===
name: [D-V]
short: [D-V]

=== avd ===
name: [AVD]
short: [AVD]

=== cockpit_target ===
img: target.tga
txt: The targetting panel.

act: drop 0
act: drop 1
act: drop 2
act: drop 3
act: drop 4
act: drop 5
act: drop 6
act: drop 7
act: drop 8
act: drop 9
act: drop ~

act: drop Altitude
act: drop Longitude
act: drop Latitude
act: drop Inclination
act: drop Velocity
act: drop Function

altitude_item ? act: get Altitude
longitude_item ? act: get Longitude
latitude_item ? act: get Latitude
inclination_item ? act: get Inclination
velocity_item ? act: get Velocity
function_item ? act: get Function

act: clear valid_altitude
d1_6 ? d2_3 ? d3_7 ? d4_1 ? d5_3 ? d6_2 ? act: set valid_altitude
confirm_pressed ? target_altitude ? valid_altitude ? act: set goal_altitude
confirm_pressed ? target_altitude ? not valid_altitude ? act: clear goal_altitude
// goal_altitude ? txt: alt_ok

act: clear valid_longitude
d1_0 ? d2_0 ? d3_0 ? d4_1 ? d5_4 ? d6_3 ? act: set valid_longitude
confirm_pressed ? target_longitude ? valid_longitude ? act: set goal_longitude
confirm_pressed ? target_longitude ? not valid_longitude ? act: clear goal_longitude
// goal_longitude ? txt: lon_ok

act: clear valid_latitude
d1_0 ? d2_0 ? d3_0 ? d4_0 ? d5_3 ? d6_3 ? act: set valid_latitude
confirm_pressed ? target_latitude ? valid_latitude ? act: set goal_latitude
confirm_pressed ? target_latitude ? not valid_latitude ? act: clear goal_latitude
// goal_latitude ? txt: lat_ok

act: clear valid_inclination
d1_0 ? d2_0 ? d3_0 ? d4_1 ? d5_2 ? d6_6 ? act: set valid_inclination
confirm_pressed ? target_inclination ? valid_inclination ? act: set goal_inclination
confirm_pressed ? target_inclination ? not valid_inclination ? act: clear goal_inclination
// goal_inclination ? txt: inc_ok

act: clear valid_velocity
d1_0 ? d2_0 ? d3_5 ? d4_3 ? d5_9 ? d6_1 ? act: set valid_velocity
confirm_pressed ? target_velocity ? valid_velocity ? act: set goal_velocity
confirm_pressed ? target_velocity ? not valid_velocity ? act: clear goal_velocity
// goal_velocity ? txt: vel_ok

altitude_item ? target_altitude ? confirm_pressed ? act: set altitude_set
longitude_item ? target_longitude ? confirm_pressed ? act: set longitude_set
latitude_item ? target_latitude ? confirm_pressed ? act: set latitude_set
inclination_item ? target_inclination ? confirm_pressed ? act: set inclination_set
velocity_item ? target_velocity ? confirm_pressed ? act: set velocity_set

act: clear confirm_pressed

// Checklists
// Target

altitude_set ? use: Altitude
    act: cockpit_target

longitude_set ? use: Longitude
    act: cockpit_target

latitude_set ? use: Latitude
    act: cockpit_target

inclination_set ? use: Inclination
    act: cockpit_target

velocity_set ? use: Velocity
    act: cockpit_target

function_set ? use: Function
    act: cockpit_target

// Rendez-vous

unlock_set ? use: Unlock
    act: cockpit_target

orient_set ? use: Orient
    act: cockpit_target

lock_set ? use: Lock
    act: cockpit_target

burn_set ? use: Burn
    act: cockpit_target

chr: alt
    act: clear target_altitude
    act: clear target_longitude
    act: clear target_latitude
    act: clear target_inclination
    act: clear target_velocity
    act: set target_altitude
    act: numpad_1

chr: lon
    act: clear target_altitude
    act: clear target_longitude
    act: clear target_latitude
    act: clear target_inclination
    act: clear target_velocity
    act: set target_longitude
    act: numpad_1

chr: lat
    act: clear target_altitude
    act: clear target_longitude
    act: clear target_latitude
    act: clear target_inclination
    act: clear target_velocity
    act: set target_latitude
    act: numpad_1

chr: inc
    act: clear target_altitude
    act: clear target_longitude
    act: clear target_latitude
    act: clear target_inclination
    act: clear target_velocity
    act: set target_inclination
    act: numpad_1

chr: vel
    act: clear target_altitude
    act: clear target_longitude
    act: clear target_latitude
    act: clear target_inclination
    act: clear target_velocity
    act: set target_velocity
    act: numpad_1

chr: ags
    act: set function_set
    act: set AGSL_on
    act: clear goal_deltav

chr: rdv
    act: set function_set
    act: clear goal_deltav

chr: dv
    act: set function_set
    act: set goal_deltav

chr: avd
    act: set function_set
    act: clear goal_deltav

obj_set_target ? altitude_set ? longitude_set ? latitude_set ? inclination_set ? velocity_set ? function_set ?
    opt: [COMMS] Target set.
    act: diag_003

obj_set_target ?
    opt: [COMMS] Could you repeat ?
        act: diag_002_content

opt: < Main console <
    act: cockpit_001