id: apollo_uplink_encoder label: Apollo Uplink Encoder category: '[Apollo USB]' flags: [python] parameters: - id: channel label: INLINK Channel dtype: int default: '37' inputs: - label: command domain: message outputs: - label: uplink_words domain: message templates: imports: from apollo import uplink_encoder make: >- apollo.uplink_encoder.uplink_encoder( channel=${channel}) documentation: |- Apollo Uplink Command Encoder Converts high-level DSKY commands into AGC INLINK word sequences suitable for delivery via the AGC Bridge block. Accepts command PDUs with metadata containing: "type": "VERB", "NOUN", "DATA", or "PROCEED" "data": integer value (verb/noun number or data word) Emits one PDU per keystroke in the encoded sequence. For example, V37 emits 3 PDUs: VERB key, digit 3, digit 7. Connect the uplink_words output to the AGC Bridge uplink_data input. Parameters: channel: AGC I/O channel for uplink (default 37 = octal 045 INLINK) file_format: 1