@zaber/motion 2.5.1 → 2.7.0-save-load
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/binding.gyp +2 -3
- package/dist/binding/wasm/zaber-motion-lib.wasm +0 -0
- package/dist/{node → lib}/ascii/alert_event.d.ts +0 -0
- package/dist/{node → lib}/ascii/alert_event.js +0 -0
- package/dist/{node → lib}/ascii/alert_event.js.map +0 -0
- package/dist/{node → lib}/ascii/all_axes.d.ts +0 -0
- package/dist/{node → lib}/ascii/all_axes.js +0 -0
- package/dist/{node → lib}/ascii/all_axes.js.map +0 -0
- package/dist/{web → lib}/ascii/axis.d.ts +18 -0
- package/dist/{node → lib}/ascii/axis.js +40 -0
- package/dist/lib/ascii/axis.js.map +1 -0
- package/dist/{node → lib}/ascii/axis_identity.d.ts +0 -0
- package/dist/{node → lib}/ascii/axis_identity.js +0 -0
- package/dist/{node → lib}/ascii/axis_identity.js.map +0 -0
- package/dist/{node → lib}/ascii/axis_settings.d.ts +14 -0
- package/dist/{web → lib}/ascii/axis_settings.js +30 -0
- package/dist/lib/ascii/axis_settings.js.map +1 -0
- package/dist/{node → lib}/ascii/axis_type.d.ts +0 -0
- package/dist/{node → lib}/ascii/axis_type.js +0 -0
- package/dist/{node → lib}/ascii/axis_type.js.map +0 -0
- package/dist/{web → lib}/ascii/connection.d.ts +14 -2
- package/dist/{web → lib}/ascii/connection.js +22 -2
- package/dist/lib/ascii/connection.js.map +1 -0
- package/dist/{web → lib}/ascii/device.d.ts +20 -0
- package/dist/{node → lib}/ascii/device.js +40 -0
- package/dist/lib/ascii/device.js.map +1 -0
- package/dist/{node → lib}/ascii/device_identity.d.ts +0 -0
- package/dist/{node → lib}/ascii/device_identity.js +0 -0
- package/dist/{node → lib}/ascii/device_identity.js.map +0 -0
- package/dist/{node → lib}/ascii/device_io.d.ts +0 -0
- package/dist/{node → lib}/ascii/device_io.js +0 -0
- package/dist/{node → lib}/ascii/device_io.js.map +0 -0
- package/dist/{node → lib}/ascii/device_io_info.d.ts +0 -0
- package/dist/{node → lib}/ascii/device_io_info.js +0 -0
- package/dist/{node → lib}/ascii/device_io_info.js.map +0 -0
- package/dist/{web → lib}/ascii/device_settings.d.ts +14 -0
- package/dist/{web → lib}/ascii/device_settings.js +28 -0
- package/dist/lib/ascii/device_settings.js.map +1 -0
- package/dist/{node → lib}/ascii/index.d.ts +0 -0
- package/dist/{node → lib}/ascii/index.js +0 -0
- package/dist/{node → lib}/ascii/index.js.map +0 -0
- package/dist/{node → lib}/ascii/lockstep.d.ts +0 -0
- package/dist/{node → lib}/ascii/lockstep.js +0 -0
- package/dist/{node → lib}/ascii/lockstep.js.map +0 -0
- package/dist/{node → lib}/ascii/lockstep_axes.d.ts +0 -0
- package/dist/{node → lib}/ascii/lockstep_axes.js +0 -0
- package/dist/{node → lib}/ascii/lockstep_axes.js.map +0 -0
- package/dist/{node → lib}/ascii/message_type.d.ts +0 -0
- package/dist/{node → lib}/ascii/message_type.js +0 -0
- package/dist/{node → lib}/ascii/message_type.js.map +0 -0
- package/dist/{node → lib}/ascii/response.d.ts +0 -0
- package/dist/{node → lib}/ascii/response.js +0 -0
- package/dist/{node → lib}/ascii/response.js.map +0 -0
- package/dist/{web → lib}/ascii/setting_constants.d.ts +360 -0
- package/dist/{node → lib}/ascii/setting_constants.js +360 -0
- package/dist/lib/ascii/setting_constants.js.map +1 -0
- package/dist/{web → lib}/ascii/stream.d.ts +6 -0
- package/dist/{web → lib}/ascii/stream.js +13 -0
- package/dist/lib/ascii/stream.js.map +1 -0
- package/dist/{web → lib}/ascii/stream_axis_definition.d.ts +1 -1
- package/dist/{node → lib}/ascii/stream_axis_definition.js +0 -0
- package/dist/{node → lib}/ascii/stream_axis_definition.js.map +1 -1
- package/dist/{node → lib}/ascii/stream_axis_type.d.ts +0 -0
- package/dist/{node → lib}/ascii/stream_axis_type.js +0 -0
- package/dist/{node → lib}/ascii/stream_axis_type.js.map +0 -0
- package/dist/{node → lib}/ascii/stream_buffer.d.ts +1 -0
- package/dist/{node → lib}/ascii/stream_buffer.js +1 -0
- package/dist/lib/ascii/stream_buffer.js.map +1 -0
- package/dist/{node → lib}/ascii/stream_mode.d.ts +0 -0
- package/dist/{node → lib}/ascii/stream_mode.js +0 -0
- package/dist/{node → lib}/ascii/stream_mode.js.map +0 -0
- package/dist/{node → lib}/ascii/transport.d.ts +0 -0
- package/dist/{node → lib}/ascii/transport.js +0 -0
- package/dist/{node → lib}/ascii/transport.js.map +0 -0
- package/dist/{node → lib}/ascii/unknown_response_event.d.ts +0 -0
- package/dist/{node → lib}/ascii/unknown_response_event.js +0 -0
- package/dist/{node → lib}/ascii/unknown_response_event.js.map +0 -0
- package/dist/{node → lib}/ascii/warning_flags.d.ts +0 -0
- package/dist/{node → lib}/ascii/warning_flags.js +0 -0
- package/dist/{node → lib}/ascii/warning_flags.js.map +0 -0
- package/dist/{node → lib}/ascii/warnings.d.ts +0 -0
- package/dist/{node → lib}/ascii/warnings.js +0 -0
- package/dist/{node → lib}/ascii/warnings.js.map +0 -0
- package/dist/{node → lib}/ascii_ns.d.ts +0 -0
- package/dist/{node → lib}/ascii_ns.js +0 -0
- package/dist/{node → lib}/ascii_ns.js.map +0 -0
- package/dist/{node → lib}/binary/binary_settings.d.ts +0 -0
- package/dist/{node → lib}/binary/binary_settings.js +0 -0
- package/dist/{node → lib}/binary/binary_settings.js.map +0 -0
- package/dist/{node → lib}/binary/command_code.d.ts +0 -0
- package/dist/{node → lib}/binary/command_code.js +0 -0
- package/dist/{node → lib}/binary/command_code.js.map +0 -0
- package/dist/{node → lib}/binary/connection.d.ts +0 -1
- package/dist/{web → lib}/binary/connection.js +0 -1
- package/dist/lib/binary/connection.js.map +1 -0
- package/dist/{node → lib}/binary/device.d.ts +0 -0
- package/dist/{node → lib}/binary/device.js +0 -0
- package/dist/{node → lib}/binary/device.js.map +0 -0
- package/dist/{node → lib}/binary/device_identity.d.ts +0 -0
- package/dist/{node → lib}/binary/device_identity.js +0 -0
- package/dist/{node → lib}/binary/device_identity.js.map +0 -0
- package/dist/{node → lib}/binary/device_settings.d.ts +0 -0
- package/dist/{node → lib}/binary/device_settings.js +0 -0
- package/dist/{node → lib}/binary/device_settings.js.map +0 -0
- package/dist/{node → lib}/binary/device_type.d.ts +0 -0
- package/dist/{node → lib}/binary/device_type.js +0 -0
- package/dist/{node → lib}/binary/device_type.js.map +0 -0
- package/dist/{node → lib}/binary/error_code.d.ts +0 -0
- package/dist/{node → lib}/binary/error_code.js +0 -0
- package/dist/{node → lib}/binary/error_code.js.map +0 -0
- package/dist/{node → lib}/binary/index.d.ts +0 -0
- package/dist/{node → lib}/binary/index.js +0 -0
- package/dist/{node → lib}/binary/index.js.map +0 -0
- package/dist/{node → lib}/binary/message.d.ts +0 -0
- package/dist/{node → lib}/binary/message.js +0 -0
- package/dist/{node → lib}/binary/message.js.map +0 -0
- package/dist/{node → lib}/binary/reply_code.d.ts +0 -0
- package/dist/{node → lib}/binary/reply_code.js +0 -0
- package/dist/{node → lib}/binary/reply_code.js.map +0 -0
- package/dist/{node → lib}/binary/reply_only_event.d.ts +0 -0
- package/dist/{node → lib}/binary/reply_only_event.js +0 -0
- package/dist/{node → lib}/binary/reply_only_event.js.map +0 -0
- package/dist/{node → lib}/binary/unknown_response_event.d.ts +0 -0
- package/dist/{node → lib}/binary/unknown_response_event.js +0 -0
- package/dist/{node → lib}/binary/unknown_response_event.js.map +0 -0
- package/dist/{node → lib}/binary_ns.d.ts +0 -0
- package/dist/{node → lib}/binary_ns.js +0 -0
- package/dist/{node → lib}/binary_ns.js.map +0 -0
- package/dist/lib/can_set_state_axis_response.d.ts +16 -0
- package/dist/lib/can_set_state_axis_response.js +18 -0
- package/dist/lib/can_set_state_axis_response.js.map +1 -0
- package/dist/lib/can_set_state_device_response.d.ts +17 -0
- package/dist/lib/can_set_state_device_response.js +19 -0
- package/dist/lib/can_set_state_device_response.js.map +1 -0
- package/dist/{node → lib}/device_db_source_type.d.ts +0 -0
- package/dist/{node → lib}/device_db_source_type.js +0 -0
- package/dist/{node → lib}/device_db_source_type.js.map +0 -0
- package/dist/{node → lib}/exceptions/binary_command_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/binary_command_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/binary_command_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/binary_command_failed_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/binary_command_failed_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/binary_command_failed_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/command_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/command_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/command_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/command_failed_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/command_failed_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/command_failed_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/command_preempted_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/command_preempted_exception.js +0 -0
- package/dist/{node → lib}/exceptions/command_preempted_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/connection_closed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/connection_closed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/connection_closed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/connection_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/connection_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/connection_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/conversion_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/conversion_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/conversion_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/device_address_conflict_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/device_address_conflict_exception.js +0 -0
- package/dist/{node → lib}/exceptions/device_address_conflict_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/device_address_conflict_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/device_address_conflict_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/device_address_conflict_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/device_busy_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/device_busy_exception.js +0 -0
- package/dist/{node → lib}/exceptions/device_busy_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/device_db_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/device_db_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/device_db_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/device_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/device_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/device_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/device_not_identified_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/device_not_identified_exception.js +0 -0
- package/dist/{node → lib}/exceptions/device_not_identified_exception.js.map +0 -0
- package/dist/lib/exceptions/g_code_execution_exception.d.ts +14 -0
- package/dist/lib/exceptions/g_code_execution_exception.js +32 -0
- package/dist/lib/exceptions/g_code_execution_exception.js.map +1 -0
- package/dist/lib/exceptions/g_code_execution_exception_data.d.ts +17 -0
- package/dist/lib/exceptions/g_code_execution_exception_data.js +18 -0
- package/dist/lib/exceptions/g_code_execution_exception_data.js.map +1 -0
- package/dist/lib/exceptions/g_code_syntax_exception.d.ts +14 -0
- package/dist/lib/exceptions/g_code_syntax_exception.js +32 -0
- package/dist/lib/exceptions/g_code_syntax_exception.js.map +1 -0
- package/dist/lib/exceptions/g_code_syntax_exception_data.d.ts +17 -0
- package/dist/lib/exceptions/g_code_syntax_exception_data.js +18 -0
- package/dist/lib/exceptions/g_code_syntax_exception_data.js.map +1 -0
- package/dist/{web → lib}/exceptions/index.d.ts +8 -0
- package/dist/{node → lib}/exceptions/index.js +18 -1
- package/dist/lib/exceptions/index.js.map +1 -0
- package/dist/{node → lib}/exceptions/internal_error_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/internal_error_exception.js +0 -0
- package/dist/{node → lib}/exceptions/internal_error_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/invalid_argument_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/invalid_argument_exception.js +0 -0
- package/dist/{node → lib}/exceptions/invalid_argument_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/invalid_data_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/invalid_data_exception.js +0 -0
- package/dist/{node → lib}/exceptions/invalid_data_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/invalid_packet_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/invalid_packet_exception.js +0 -0
- package/dist/{node → lib}/exceptions/invalid_packet_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/invalid_packet_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/invalid_packet_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/invalid_packet_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/invalid_park_state_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/invalid_park_state_exception.js +0 -0
- package/dist/{node → lib}/exceptions/invalid_park_state_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/invalid_response_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/invalid_response_exception.js +0 -0
- package/dist/{node → lib}/exceptions/invalid_response_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/invalid_response_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/invalid_response_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/invalid_response_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/io_channel_out_of_range_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/io_channel_out_of_range_exception.js +0 -0
- package/dist/{node → lib}/exceptions/io_channel_out_of_range_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/io_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/io_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/io_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/lockstep_enabled_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/lockstep_enabled_exception.js +0 -0
- package/dist/{node → lib}/exceptions/lockstep_enabled_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/lockstep_not_enabled_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/lockstep_not_enabled_exception.js +0 -0
- package/dist/{node → lib}/exceptions/lockstep_not_enabled_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/motion_lib_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/motion_lib_exception.js +0 -0
- package/dist/{node → lib}/exceptions/motion_lib_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/movement_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/movement_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/movement_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/movement_failed_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/movement_failed_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/movement_failed_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/movement_interrupted_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/movement_interrupted_exception.js +0 -0
- package/dist/{node → lib}/exceptions/movement_interrupted_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/movement_interrupted_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/movement_interrupted_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/movement_interrupted_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/no_device_found_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/no_device_found_exception.js +0 -0
- package/dist/{node → lib}/exceptions/no_device_found_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/not_supported_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/not_supported_exception.js +0 -0
- package/dist/{node → lib}/exceptions/not_supported_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/os_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/os_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/os_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/out_of_request_ids_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/out_of_request_ids_exception.js +0 -0
- package/dist/{node → lib}/exceptions/out_of_request_ids_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/request_timeout_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/request_timeout_exception.js +0 -0
- package/dist/{node → lib}/exceptions/request_timeout_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/serial_port_busy_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/serial_port_busy_exception.js +0 -0
- package/dist/{node → lib}/exceptions/serial_port_busy_exception.js.map +0 -0
- package/dist/lib/exceptions/set_device_state_exception_data.d.ts +25 -0
- package/dist/lib/exceptions/set_device_state_exception_data.js +21 -0
- package/dist/lib/exceptions/set_device_state_exception_data.js.map +1 -0
- package/dist/lib/exceptions/set_device_state_failed_exception.d.ts +14 -0
- package/dist/lib/exceptions/set_device_state_failed_exception.js +32 -0
- package/dist/lib/exceptions/set_device_state_failed_exception.js.map +1 -0
- package/dist/lib/exceptions/set_peripheral_state_exception_data.d.ts +20 -0
- package/dist/lib/exceptions/set_peripheral_state_exception_data.js +19 -0
- package/dist/lib/exceptions/set_peripheral_state_exception_data.js.map +1 -0
- package/dist/lib/exceptions/set_peripheral_state_failed_exception.d.ts +14 -0
- package/dist/lib/exceptions/set_peripheral_state_failed_exception.js +32 -0
- package/dist/lib/exceptions/set_peripheral_state_failed_exception.js.map +1 -0
- package/dist/{node → lib}/exceptions/setting_not_found_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/setting_not_found_exception.js +0 -0
- package/dist/{node → lib}/exceptions/setting_not_found_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/stream_execution_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/stream_execution_exception.js +0 -0
- package/dist/{node → lib}/exceptions/stream_execution_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/stream_execution_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/stream_execution_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/stream_execution_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/stream_mode_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/stream_mode_exception.js +0 -0
- package/dist/{node → lib}/exceptions/stream_mode_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_failed_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_failed_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_failed_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception.js +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/stream_setup_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/stream_setup_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/stream_setup_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/transport_already_used_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/transport_already_used_exception.js +0 -0
- package/dist/{node → lib}/exceptions/transport_already_used_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/unknown_request_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/unknown_request_exception.js +0 -0
- package/dist/{node → lib}/exceptions/unknown_request_exception.js.map +0 -0
- package/dist/lib/finalizer.d.ts +5 -0
- package/dist/lib/finalizer.js +21 -0
- package/dist/lib/finalizer.js.map +1 -0
- package/dist/{node → lib}/firmware_version.d.ts +0 -0
- package/dist/{node → lib}/firmware_version.js +0 -0
- package/dist/{node → lib}/firmware_version.js.map +0 -0
- package/dist/lib/gateway/bindings.d.ts +5 -0
- package/dist/lib/gateway/bindings.js +35 -0
- package/dist/lib/gateway/bindings.js.map +1 -0
- package/dist/{node/gateway/bindings.d.ts → lib/gateway/bindings.node.d.ts} +0 -0
- package/dist/{node/gateway/bindings.js → lib/gateway/bindings.node.js} +1 -1
- package/dist/lib/gateway/bindings.node.js.map +1 -0
- package/dist/{web/gateway/bindings.d.ts → lib/gateway/bindings.wasm.d.ts} +0 -0
- package/dist/{web/gateway/bindings.js → lib/gateway/bindings.wasm.js} +2 -1
- package/dist/lib/gateway/bindings.wasm.js.map +1 -0
- package/dist/{node → lib}/gateway/call.d.ts +0 -0
- package/dist/{web → lib}/gateway/call.js +2 -2
- package/dist/lib/gateway/call.js.map +1 -0
- package/dist/{node → lib}/gateway/convert_exceptions.d.ts +0 -0
- package/dist/{node → lib}/gateway/convert_exceptions.js +4 -0
- package/dist/lib/gateway/convert_exceptions.js.map +1 -0
- package/dist/{node → lib}/gateway/events.d.ts +0 -1
- package/dist/{node → lib}/gateway/events.js +4 -7
- package/dist/lib/gateway/events.js.map +1 -0
- package/dist/{node → lib}/gateway/index.d.ts +0 -0
- package/dist/{node → lib}/gateway/index.js +0 -0
- package/dist/{node → lib}/gateway/index.js.map +0 -0
- package/dist/{node → lib}/gateway/serialization.d.ts +0 -0
- package/dist/{node → lib}/gateway/serialization.js +0 -0
- package/dist/{node → lib}/gateway/serialization.js.map +0 -0
- package/dist/lib/gateway/wasm-exec.d.ts +1 -0
- package/dist/{web/wasm → lib/gateway}/wasm-exec.js +13 -54
- package/dist/lib/gateway/wasm-exec.js.map +1 -0
- package/dist/lib/gateway/wasm.d.ts +4 -0
- package/dist/{web/wasm → lib/gateway}/wasm.js +1 -3
- package/dist/lib/gateway/wasm.js.map +1 -0
- package/dist/lib/gcode/axis_mapping.d.ts +16 -0
- package/dist/{web/measurement.js → lib/gcode/axis_mapping.js} +11 -11
- package/dist/lib/gcode/axis_mapping.js.map +1 -0
- package/dist/lib/gcode/index.d.ts +8 -0
- package/dist/lib/gcode/index.js +20 -0
- package/dist/lib/gcode/index.js.map +1 -0
- package/dist/lib/gcode/translate_message.d.ts +21 -0
- package/dist/lib/gcode/translate_message.js +19 -0
- package/dist/lib/gcode/translate_message.js.map +1 -0
- package/dist/lib/gcode/translate_result.d.ts +17 -0
- package/dist/lib/gcode/translate_result.js +19 -0
- package/dist/lib/gcode/translate_result.js.map +1 -0
- package/dist/lib/gcode/translator.d.ts +68 -0
- package/dist/lib/gcode/translator.js +144 -0
- package/dist/lib/gcode/translator.js.map +1 -0
- package/dist/lib/gcode/translator_axis_definition.d.ts +20 -0
- package/dist/lib/gcode/translator_axis_definition.js +48 -0
- package/dist/lib/gcode/translator_axis_definition.js.map +1 -0
- package/dist/lib/gcode/translator_config.d.ts +18 -0
- package/dist/lib/gcode/translator_config.js +41 -0
- package/dist/lib/gcode/translator_config.js.map +1 -0
- package/dist/lib/gcode/translator_definition.d.ts +18 -0
- package/dist/{web/ascii/stream_axis_definition.js → lib/gcode/translator_definition.js} +11 -18
- package/dist/lib/gcode/translator_definition.js.map +1 -0
- package/dist/lib/gcode/translator_live.d.ts +70 -0
- package/dist/lib/gcode/translator_live.js +147 -0
- package/dist/lib/gcode/translator_live.js.map +1 -0
- package/dist/lib/gcode_ns.d.ts +19 -0
- package/dist/{web/tools.js → lib/gcode_ns.js} +14 -20
- package/dist/lib/gcode_ns.js.map +1 -0
- package/dist/{node → lib}/index.d.ts +3 -1
- package/dist/{node → lib}/index.js +6 -2
- package/dist/lib/index.js.map +1 -0
- package/dist/{node → lib}/library.d.ts +0 -0
- package/dist/{node → lib}/library.js +0 -0
- package/dist/{node → lib}/library.js.map +0 -0
- package/dist/{node → lib}/log_output_mode.d.ts +0 -0
- package/dist/{node → lib}/log_output_mode.js +0 -0
- package/dist/{node → lib}/log_output_mode.js.map +0 -0
- package/dist/{web → lib}/measurement.d.ts +1 -1
- package/dist/{node → lib}/measurement.js +0 -0
- package/dist/{node → lib}/measurement.js.map +1 -1
- package/dist/{node → lib}/protobufs/main_pb.d.ts +785 -0
- package/dist/{node → lib}/protobufs/main_pb.js +6039 -2
- package/dist/lib/protobufs/main_pb.js.map +1 -0
- package/dist/{node → lib}/rotation_direction.d.ts +0 -0
- package/dist/{node → lib}/rotation_direction.js +0 -0
- package/dist/{node → lib}/rotation_direction.js.map +0 -0
- package/dist/{node → lib}/tools.d.ts +0 -0
- package/dist/{node → lib}/tools.js +0 -0
- package/dist/{node → lib}/tools.js.map +0 -0
- package/dist/{node → lib}/units.d.ts +0 -0
- package/dist/{node → lib}/units.js +0 -0
- package/dist/{node → lib}/units.js.map +0 -0
- package/dist/lib/wasm.d.ts +4 -0
- package/dist/{web/init.js → lib/wasm.js} +5 -4
- package/dist/lib/wasm.js.map +1 -0
- package/package.json +9 -16
- package/dist/node/ascii/axis.d.ts +0 -172
- package/dist/node/ascii/axis.js.map +0 -1
- package/dist/node/ascii/axis_settings.js +0 -107
- package/dist/node/ascii/axis_settings.js.map +0 -1
- package/dist/node/ascii/connection.d.ts +0 -203
- package/dist/node/ascii/connection.js +0 -380
- package/dist/node/ascii/connection.js.map +0 -1
- package/dist/node/ascii/device.d.ts +0 -165
- package/dist/node/ascii/device.js.map +0 -1
- package/dist/node/ascii/device_settings.d.ts +0 -41
- package/dist/node/ascii/device_settings.js +0 -103
- package/dist/node/ascii/device_settings.js.map +0 -1
- package/dist/node/ascii/setting_constants.d.ts +0 -563
- package/dist/node/ascii/setting_constants.js.map +0 -1
- package/dist/node/ascii/stream.d.ts +0 -307
- package/dist/node/ascii/stream.js +0 -659
- package/dist/node/ascii/stream.js.map +0 -1
- package/dist/node/ascii/stream_axis_definition.d.ts +0 -17
- package/dist/node/ascii/stream_buffer.js.map +0 -1
- package/dist/node/binary/connection.js +0 -211
- package/dist/node/binary/connection.js.map +0 -1
- package/dist/node/exceptions/index.d.ts +0 -48
- package/dist/node/exceptions/index.js.map +0 -1
- package/dist/node/gateway/bindings.js.map +0 -1
- package/dist/node/gateway/call.js +0 -46
- package/dist/node/gateway/call.js.map +0 -1
- package/dist/node/gateway/convert_exceptions.js.map +0 -1
- package/dist/node/gateway/events.js.map +0 -1
- package/dist/node/index.js.map +0 -1
- package/dist/node/init.d.ts +0 -1
- package/dist/node/init.js +0 -8
- package/dist/node/init.js.map +0 -1
- package/dist/node/measurement.d.ts +0 -17
- package/dist/web/ascii/alert_event.d.ts +0 -28
- package/dist/web/ascii/alert_event.js +0 -21
- package/dist/web/ascii/alert_event.js.map +0 -1
- package/dist/web/ascii/all_axes.d.ts +0 -46
- package/dist/web/ascii/all_axes.js +0 -122
- package/dist/web/ascii/all_axes.js.map +0 -1
- package/dist/web/ascii/axis.js +0 -367
- package/dist/web/ascii/axis.js.map +0 -1
- package/dist/web/ascii/axis_identity.d.ts +0 -29
- package/dist/web/ascii/axis_identity.js +0 -21
- package/dist/web/ascii/axis_identity.js.map +0 -1
- package/dist/web/ascii/axis_settings.d.ts +0 -41
- package/dist/web/ascii/axis_settings.js.map +0 -1
- package/dist/web/ascii/axis_type.d.ts +0 -8
- package/dist/web/ascii/axis_type.js +0 -15
- package/dist/web/ascii/axis_type.js.map +0 -1
- package/dist/web/ascii/connection.js.map +0 -1
- package/dist/web/ascii/device.js +0 -296
- package/dist/web/ascii/device.js.map +0 -1
- package/dist/web/ascii/device_identity.d.ts +0 -33
- package/dist/web/ascii/device_identity.js +0 -23
- package/dist/web/ascii/device_identity.js.map +0 -1
- package/dist/web/ascii/device_io.d.ts +0 -80
- package/dist/web/ascii/device_io.js +0 -199
- package/dist/web/ascii/device_io.js.map +0 -1
- package/dist/web/ascii/device_io_info.d.ts +0 -24
- package/dist/web/ascii/device_io_info.js +0 -20
- package/dist/web/ascii/device_io_info.js.map +0 -1
- package/dist/web/ascii/device_settings.js.map +0 -1
- package/dist/web/ascii/index.d.ts +0 -26
- package/dist/web/ascii/index.js +0 -56
- package/dist/web/ascii/index.js.map +0 -1
- package/dist/web/ascii/lockstep.d.ts +0 -120
- package/dist/web/ascii/lockstep.js +0 -281
- package/dist/web/ascii/lockstep.js.map +0 -1
- package/dist/web/ascii/lockstep_axes.d.ts +0 -24
- package/dist/web/ascii/lockstep_axes.js +0 -20
- package/dist/web/ascii/lockstep_axes.js.map +0 -1
- package/dist/web/ascii/message_type.d.ts +0 -10
- package/dist/web/ascii/message_type.js +0 -17
- package/dist/web/ascii/message_type.js.map +0 -1
- package/dist/web/ascii/response.d.ts +0 -37
- package/dist/web/ascii/response.js +0 -23
- package/dist/web/ascii/response.js.map +0 -1
- package/dist/web/ascii/setting_constants.js +0 -570
- package/dist/web/ascii/setting_constants.js.map +0 -1
- package/dist/web/ascii/stream.js.map +0 -1
- package/dist/web/ascii/stream_axis_definition.js.map +0 -1
- package/dist/web/ascii/stream_axis_type.d.ts +0 -7
- package/dist/web/ascii/stream_axis_type.js +0 -14
- package/dist/web/ascii/stream_axis_type.js.map +0 -1
- package/dist/web/ascii/stream_buffer.d.ts +0 -27
- package/dist/web/ascii/stream_buffer.js +0 -71
- package/dist/web/ascii/stream_buffer.js.map +0 -1
- package/dist/web/ascii/stream_mode.d.ts +0 -9
- package/dist/web/ascii/stream_mode.js +0 -16
- package/dist/web/ascii/stream_mode.js.map +0 -1
- package/dist/web/ascii/transport.d.ts +0 -38
- package/dist/web/ascii/transport.js +0 -91
- package/dist/web/ascii/transport.js.map +0 -1
- package/dist/web/ascii/unknown_response_event.d.ts +0 -37
- package/dist/web/ascii/unknown_response_event.js +0 -23
- package/dist/web/ascii/unknown_response_event.js.map +0 -1
- package/dist/web/ascii/warning_flags.d.ts +0 -137
- package/dist/web/ascii/warning_flags.js +0 -144
- package/dist/web/ascii/warning_flags.js.map +0 -1
- package/dist/web/ascii/warnings.d.ts +0 -19
- package/dist/web/ascii/warnings.js +0 -62
- package/dist/web/ascii/warnings.js.map +0 -1
- package/dist/web/ascii_ns.d.ts +0 -55
- package/dist/web/ascii_ns.js +0 -53
- package/dist/web/ascii_ns.js.map +0 -1
- package/dist/web/binary/binary_settings.d.ts +0 -70
- package/dist/web/binary/binary_settings.js +0 -77
- package/dist/web/binary/binary_settings.js.map +0 -1
- package/dist/web/binary/command_code.d.ts +0 -102
- package/dist/web/binary/command_code.js +0 -109
- package/dist/web/binary/command_code.js.map +0 -1
- package/dist/web/binary/connection.d.ts +0 -115
- package/dist/web/binary/connection.js.map +0 -1
- package/dist/web/binary/device.d.ts +0 -192
- package/dist/web/binary/device.js +0 -375
- package/dist/web/binary/device.js.map +0 -1
- package/dist/web/binary/device_identity.d.ts +0 -42
- package/dist/web/binary/device_identity.js +0 -25
- package/dist/web/binary/device_identity.js.map +0 -1
- package/dist/web/binary/device_settings.d.ts +0 -24
- package/dist/web/binary/device_settings.js +0 -66
- package/dist/web/binary/device_settings.js.map +0 -1
- package/dist/web/binary/device_type.d.ts +0 -8
- package/dist/web/binary/device_type.js +0 -15
- package/dist/web/binary/device_type.js.map +0 -1
- package/dist/web/binary/error_code.d.ts +0 -97
- package/dist/web/binary/error_code.js +0 -104
- package/dist/web/binary/error_code.js.map +0 -1
- package/dist/web/binary/index.d.ts +0 -12
- package/dist/web/binary/index.js +0 -28
- package/dist/web/binary/index.js.map +0 -1
- package/dist/web/binary/message.d.ts +0 -20
- package/dist/web/binary/message.js +0 -19
- package/dist/web/binary/message.js.map +0 -1
- package/dist/web/binary/reply_code.d.ts +0 -12
- package/dist/web/binary/reply_code.js +0 -19
- package/dist/web/binary/reply_code.js.map +0 -1
- package/dist/web/binary/reply_only_event.d.ts +0 -20
- package/dist/web/binary/reply_only_event.js +0 -19
- package/dist/web/binary/reply_only_event.js.map +0 -1
- package/dist/web/binary/unknown_response_event.d.ts +0 -20
- package/dist/web/binary/unknown_response_event.js +0 -19
- package/dist/web/binary/unknown_response_event.js.map +0 -1
- package/dist/web/binary_ns.d.ts +0 -27
- package/dist/web/binary_ns.js +0 -39
- package/dist/web/binary_ns.js.map +0 -1
- package/dist/web/device_db_source_type.d.ts +0 -7
- package/dist/web/device_db_source_type.js +0 -14
- package/dist/web/device_db_source_type.js.map +0 -1
- package/dist/web/exceptions/binary_command_failed_exception.d.ts +0 -14
- package/dist/web/exceptions/binary_command_failed_exception.js +0 -32
- package/dist/web/exceptions/binary_command_failed_exception.js.map +0 -1
- package/dist/web/exceptions/binary_command_failed_exception_data.d.ts +0 -12
- package/dist/web/exceptions/binary_command_failed_exception_data.js +0 -17
- package/dist/web/exceptions/binary_command_failed_exception_data.js.map +0 -1
- package/dist/web/exceptions/command_failed_exception.d.ts +0 -14
- package/dist/web/exceptions/command_failed_exception.js +0 -32
- package/dist/web/exceptions/command_failed_exception.js.map +0 -1
- package/dist/web/exceptions/command_failed_exception_data.d.ts +0 -24
- package/dist/web/exceptions/command_failed_exception_data.js +0 -20
- package/dist/web/exceptions/command_failed_exception_data.js.map +0 -1
- package/dist/web/exceptions/command_preempted_exception.d.ts +0 -7
- package/dist/web/exceptions/command_preempted_exception.js +0 -17
- package/dist/web/exceptions/command_preempted_exception.js.map +0 -1
- package/dist/web/exceptions/connection_closed_exception.d.ts +0 -7
- package/dist/web/exceptions/connection_closed_exception.js +0 -17
- package/dist/web/exceptions/connection_closed_exception.js.map +0 -1
- package/dist/web/exceptions/connection_failed_exception.d.ts +0 -7
- package/dist/web/exceptions/connection_failed_exception.js +0 -17
- package/dist/web/exceptions/connection_failed_exception.js.map +0 -1
- package/dist/web/exceptions/conversion_failed_exception.d.ts +0 -7
- package/dist/web/exceptions/conversion_failed_exception.js +0 -17
- package/dist/web/exceptions/conversion_failed_exception.js.map +0 -1
- package/dist/web/exceptions/device_address_conflict_exception.d.ts +0 -14
- package/dist/web/exceptions/device_address_conflict_exception.js +0 -32
- package/dist/web/exceptions/device_address_conflict_exception.js.map +0 -1
- package/dist/web/exceptions/device_address_conflict_exception_data.d.ts +0 -12
- package/dist/web/exceptions/device_address_conflict_exception_data.js +0 -17
- package/dist/web/exceptions/device_address_conflict_exception_data.js.map +0 -1
- package/dist/web/exceptions/device_busy_exception.d.ts +0 -7
- package/dist/web/exceptions/device_busy_exception.js +0 -17
- package/dist/web/exceptions/device_busy_exception.js.map +0 -1
- package/dist/web/exceptions/device_db_failed_exception.d.ts +0 -7
- package/dist/web/exceptions/device_db_failed_exception.js +0 -17
- package/dist/web/exceptions/device_db_failed_exception.js.map +0 -1
- package/dist/web/exceptions/device_failed_exception.d.ts +0 -8
- package/dist/web/exceptions/device_failed_exception.js +0 -18
- package/dist/web/exceptions/device_failed_exception.js.map +0 -1
- package/dist/web/exceptions/device_not_identified_exception.d.ts +0 -7
- package/dist/web/exceptions/device_not_identified_exception.js +0 -17
- package/dist/web/exceptions/device_not_identified_exception.js.map +0 -1
- package/dist/web/exceptions/index.js +0 -102
- package/dist/web/exceptions/index.js.map +0 -1
- package/dist/web/exceptions/internal_error_exception.d.ts +0 -7
- package/dist/web/exceptions/internal_error_exception.js +0 -17
- package/dist/web/exceptions/internal_error_exception.js.map +0 -1
- package/dist/web/exceptions/invalid_argument_exception.d.ts +0 -7
- package/dist/web/exceptions/invalid_argument_exception.js +0 -17
- package/dist/web/exceptions/invalid_argument_exception.js.map +0 -1
- package/dist/web/exceptions/invalid_data_exception.d.ts +0 -7
- package/dist/web/exceptions/invalid_data_exception.js +0 -17
- package/dist/web/exceptions/invalid_data_exception.js.map +0 -1
- package/dist/web/exceptions/invalid_packet_exception.d.ts +0 -14
- package/dist/web/exceptions/invalid_packet_exception.js +0 -32
- package/dist/web/exceptions/invalid_packet_exception.js.map +0 -1
- package/dist/web/exceptions/invalid_packet_exception_data.d.ts +0 -16
- package/dist/web/exceptions/invalid_packet_exception_data.js +0 -18
- package/dist/web/exceptions/invalid_packet_exception_data.js.map +0 -1
- package/dist/web/exceptions/invalid_park_state_exception.d.ts +0 -7
- package/dist/web/exceptions/invalid_park_state_exception.js +0 -17
- package/dist/web/exceptions/invalid_park_state_exception.js.map +0 -1
- package/dist/web/exceptions/invalid_response_exception.d.ts +0 -14
- package/dist/web/exceptions/invalid_response_exception.js +0 -32
- package/dist/web/exceptions/invalid_response_exception.js.map +0 -1
- package/dist/web/exceptions/invalid_response_exception_data.d.ts +0 -12
- package/dist/web/exceptions/invalid_response_exception_data.js +0 -17
- package/dist/web/exceptions/invalid_response_exception_data.js.map +0 -1
- package/dist/web/exceptions/io_channel_out_of_range_exception.d.ts +0 -7
- package/dist/web/exceptions/io_channel_out_of_range_exception.js +0 -17
- package/dist/web/exceptions/io_channel_out_of_range_exception.js.map +0 -1
- package/dist/web/exceptions/io_failed_exception.d.ts +0 -7
- package/dist/web/exceptions/io_failed_exception.js +0 -17
- package/dist/web/exceptions/io_failed_exception.js.map +0 -1
- package/dist/web/exceptions/lockstep_enabled_exception.d.ts +0 -7
- package/dist/web/exceptions/lockstep_enabled_exception.js +0 -17
- package/dist/web/exceptions/lockstep_enabled_exception.js.map +0 -1
- package/dist/web/exceptions/lockstep_not_enabled_exception.d.ts +0 -7
- package/dist/web/exceptions/lockstep_not_enabled_exception.js +0 -17
- package/dist/web/exceptions/lockstep_not_enabled_exception.js.map +0 -1
- package/dist/web/exceptions/motion_lib_exception.d.ts +0 -8
- package/dist/web/exceptions/motion_lib_exception.js +0 -15
- package/dist/web/exceptions/motion_lib_exception.js.map +0 -1
- package/dist/web/exceptions/movement_failed_exception.d.ts +0 -14
- package/dist/web/exceptions/movement_failed_exception.js +0 -32
- package/dist/web/exceptions/movement_failed_exception.js.map +0 -1
- package/dist/web/exceptions/movement_failed_exception_data.d.ts +0 -16
- package/dist/web/exceptions/movement_failed_exception_data.js +0 -18
- package/dist/web/exceptions/movement_failed_exception_data.js.map +0 -1
- package/dist/web/exceptions/movement_interrupted_exception.d.ts +0 -14
- package/dist/web/exceptions/movement_interrupted_exception.js +0 -32
- package/dist/web/exceptions/movement_interrupted_exception.js.map +0 -1
- package/dist/web/exceptions/movement_interrupted_exception_data.d.ts +0 -16
- package/dist/web/exceptions/movement_interrupted_exception_data.js +0 -18
- package/dist/web/exceptions/movement_interrupted_exception_data.js.map +0 -1
- package/dist/web/exceptions/no_device_found_exception.d.ts +0 -7
- package/dist/web/exceptions/no_device_found_exception.js +0 -17
- package/dist/web/exceptions/no_device_found_exception.js.map +0 -1
- package/dist/web/exceptions/not_supported_exception.d.ts +0 -7
- package/dist/web/exceptions/not_supported_exception.js +0 -17
- package/dist/web/exceptions/not_supported_exception.js.map +0 -1
- package/dist/web/exceptions/os_failed_exception.d.ts +0 -7
- package/dist/web/exceptions/os_failed_exception.js +0 -17
- package/dist/web/exceptions/os_failed_exception.js.map +0 -1
- package/dist/web/exceptions/out_of_request_ids_exception.d.ts +0 -7
- package/dist/web/exceptions/out_of_request_ids_exception.js +0 -17
- package/dist/web/exceptions/out_of_request_ids_exception.js.map +0 -1
- package/dist/web/exceptions/request_timeout_exception.d.ts +0 -7
- package/dist/web/exceptions/request_timeout_exception.js +0 -17
- package/dist/web/exceptions/request_timeout_exception.js.map +0 -1
- package/dist/web/exceptions/serial_port_busy_exception.d.ts +0 -7
- package/dist/web/exceptions/serial_port_busy_exception.js +0 -17
- package/dist/web/exceptions/serial_port_busy_exception.js.map +0 -1
- package/dist/web/exceptions/setting_not_found_exception.d.ts +0 -7
- package/dist/web/exceptions/setting_not_found_exception.js +0 -17
- package/dist/web/exceptions/setting_not_found_exception.js.map +0 -1
- package/dist/web/exceptions/stream_execution_exception.d.ts +0 -14
- package/dist/web/exceptions/stream_execution_exception.js +0 -32
- package/dist/web/exceptions/stream_execution_exception.js.map +0 -1
- package/dist/web/exceptions/stream_execution_exception_data.d.ts +0 -16
- package/dist/web/exceptions/stream_execution_exception_data.js +0 -18
- package/dist/web/exceptions/stream_execution_exception_data.js.map +0 -1
- package/dist/web/exceptions/stream_mode_exception.d.ts +0 -7
- package/dist/web/exceptions/stream_mode_exception.js +0 -17
- package/dist/web/exceptions/stream_mode_exception.js.map +0 -1
- package/dist/web/exceptions/stream_movement_failed_exception.d.ts +0 -14
- package/dist/web/exceptions/stream_movement_failed_exception.js +0 -32
- package/dist/web/exceptions/stream_movement_failed_exception.js.map +0 -1
- package/dist/web/exceptions/stream_movement_failed_exception_data.d.ts +0 -16
- package/dist/web/exceptions/stream_movement_failed_exception_data.js +0 -18
- package/dist/web/exceptions/stream_movement_failed_exception_data.js.map +0 -1
- package/dist/web/exceptions/stream_movement_interrupted_exception.d.ts +0 -14
- package/dist/web/exceptions/stream_movement_interrupted_exception.js +0 -32
- package/dist/web/exceptions/stream_movement_interrupted_exception.js.map +0 -1
- package/dist/web/exceptions/stream_movement_interrupted_exception_data.d.ts +0 -16
- package/dist/web/exceptions/stream_movement_interrupted_exception_data.js +0 -18
- package/dist/web/exceptions/stream_movement_interrupted_exception_data.js.map +0 -1
- package/dist/web/exceptions/stream_setup_failed_exception.d.ts +0 -7
- package/dist/web/exceptions/stream_setup_failed_exception.js +0 -17
- package/dist/web/exceptions/stream_setup_failed_exception.js.map +0 -1
- package/dist/web/exceptions/transport_already_used_exception.d.ts +0 -7
- package/dist/web/exceptions/transport_already_used_exception.js +0 -17
- package/dist/web/exceptions/transport_already_used_exception.js.map +0 -1
- package/dist/web/exceptions/unknown_request_exception.d.ts +0 -7
- package/dist/web/exceptions/unknown_request_exception.js +0 -17
- package/dist/web/exceptions/unknown_request_exception.js.map +0 -1
- package/dist/web/firmware_version.d.ts +0 -20
- package/dist/web/firmware_version.js +0 -19
- package/dist/web/firmware_version.js.map +0 -1
- package/dist/web/gateway/bindings.js.map +0 -1
- package/dist/web/gateway/call.d.ts +0 -6
- package/dist/web/gateway/call.js.map +0 -1
- package/dist/web/gateway/convert_exceptions.d.ts +0 -4
- package/dist/web/gateway/convert_exceptions.js +0 -74
- package/dist/web/gateway/convert_exceptions.js.map +0 -1
- package/dist/web/gateway/events.d.ts +0 -9
- package/dist/web/gateway/events.js +0 -60
- package/dist/web/gateway/events.js.map +0 -1
- package/dist/web/gateway/index.d.ts +0 -4
- package/dist/web/gateway/index.js +0 -23
- package/dist/web/gateway/index.js.map +0 -1
- package/dist/web/gateway/serialization.d.ts +0 -6
- package/dist/web/gateway/serialization.js +0 -39
- package/dist/web/gateway/serialization.js.map +0 -1
- package/dist/web/index.d.ts +0 -12
- package/dist/web/index.js +0 -33
- package/dist/web/index.js.map +0 -1
- package/dist/web/init.d.ts +0 -5
- package/dist/web/init.js.map +0 -1
- package/dist/web/library.d.ts +0 -30
- package/dist/web/library.js +0 -73
- package/dist/web/library.js.map +0 -1
- package/dist/web/log_output_mode.d.ts +0 -9
- package/dist/web/log_output_mode.js +0 -16
- package/dist/web/log_output_mode.js.map +0 -1
- package/dist/web/measurement.js.map +0 -1
- package/dist/web/protobufs/main_pb.d.ts +0 -5228
- package/dist/web/protobufs/main_pb.js +0 -39387
- package/dist/web/rotation_direction.d.ts +0 -9
- package/dist/web/rotation_direction.js +0 -16
- package/dist/web/rotation_direction.js.map +0 -1
- package/dist/web/tools.d.ts +0 -10
- package/dist/web/tools.js.map +0 -1
- package/dist/web/units.d.ts +0 -147
- package/dist/web/units.js +0 -167
- package/dist/web/units.js.map +0 -1
- package/dist/web/wasm/wasm-exec.d.ts +0 -1
- package/dist/web/wasm/wasm-exec.js.map +0 -1
- package/dist/web/wasm/wasm.d.ts +0 -14
- package/dist/web/wasm/wasm.js.map +0 -1
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Alert message received from the device.
|
|
3
|
-
*/
|
|
4
|
-
export interface AlertEvent {
|
|
5
|
-
/**
|
|
6
|
-
* Number of the device that sent the message.
|
|
7
|
-
*/
|
|
8
|
-
deviceAddress: number;
|
|
9
|
-
/**
|
|
10
|
-
* Number of the axis which the response applies to. Zero denotes device scope.
|
|
11
|
-
*/
|
|
12
|
-
axisNumber: number;
|
|
13
|
-
/**
|
|
14
|
-
* The device status contains BUSY when the axis is moving and IDLE otherwise.
|
|
15
|
-
*/
|
|
16
|
-
status: string;
|
|
17
|
-
/**
|
|
18
|
-
* The warning flag contains the highest priority warning currently active for the device or axis.
|
|
19
|
-
*/
|
|
20
|
-
warningFlag: string;
|
|
21
|
-
/**
|
|
22
|
-
* Response data which varies depending on the request.
|
|
23
|
-
*/
|
|
24
|
-
data: string;
|
|
25
|
-
}
|
|
26
|
-
export declare namespace AlertEvent {
|
|
27
|
-
const __type = "AlertEvent";
|
|
28
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
|
|
3
|
-
// ============= DO NOT EDIT DIRECTLY ============= //
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.AlertEvent = void 0;
|
|
6
|
-
var AlertEvent;
|
|
7
|
-
(function (AlertEvent) {
|
|
8
|
-
AlertEvent.__type = 'AlertEvent';
|
|
9
|
-
/** @internal */
|
|
10
|
-
function fromProtobuf(pbData) {
|
|
11
|
-
return {
|
|
12
|
-
deviceAddress: pbData.deviceAddress,
|
|
13
|
-
axisNumber: pbData.axisNumber,
|
|
14
|
-
status: pbData.status,
|
|
15
|
-
warningFlag: pbData.warningFlag,
|
|
16
|
-
data: pbData.data,
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
AlertEvent.fromProtobuf = fromProtobuf;
|
|
20
|
-
})(AlertEvent = exports.AlertEvent || (exports.AlertEvent = {}));
|
|
21
|
-
//# sourceMappingURL=alert_event.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alert_event.js","sourceRoot":"","sources":["../../../src-web/ascii/alert_event.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAmCtD,IAAiB,UAAU,CAa1B;AAbD,WAAiB,UAAU;IACZ,iBAAM,GAAG,YAAY,CAAC;IAEnC,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAmC;QAC9D,OAAO;YACL,aAAa,EAAE,MAAM,CAAC,aAAa;YACnC,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,IAAI,EAAE,MAAM,CAAC,IAAI;SAClB,CAAC;IACJ,CAAC;IARe,uBAAY,eAQ3B,CAAA;AACH,CAAC,EAbgB,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAa1B","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\n\n/**\n * Alert message received from the device.\n */\nexport interface AlertEvent {\n /**\n * Number of the device that sent the message.\n */\n deviceAddress: number;\n\n /**\n * Number of the axis which the response applies to. Zero denotes device scope.\n */\n axisNumber: number;\n\n /**\n * The device status contains BUSY when the axis is moving and IDLE otherwise.\n */\n status: string;\n\n /**\n * The warning flag contains the highest priority warning currently active for the device or axis.\n */\n warningFlag: string;\n\n /**\n * Response data which varies depending on the request.\n */\n data: string;\n\n}\n\nexport namespace AlertEvent {\n export const __type = 'AlertEvent';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.AlertEvent.AsObject): AlertEvent {\n return {\n deviceAddress: pbData.deviceAddress,\n axisNumber: pbData.axisNumber,\n status: pbData.status,\n warningFlag: pbData.warningFlag,\n data: pbData.data,\n };\n }\n}\n"]}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Device } from './device';
|
|
2
|
-
/**
|
|
3
|
-
* Represents all axes of motion associated with a device.
|
|
4
|
-
*/
|
|
5
|
-
export declare class AllAxes {
|
|
6
|
-
/**
|
|
7
|
-
* Device that controls this axis.
|
|
8
|
-
*/
|
|
9
|
-
get device(): Device;
|
|
10
|
-
private _device;
|
|
11
|
-
constructor(device: Device);
|
|
12
|
-
/**
|
|
13
|
-
* Homes all axes. Axes return to their homing positions.
|
|
14
|
-
* @param waitUntilIdle Determines whether function should return after the movement is finished or just started.
|
|
15
|
-
*/
|
|
16
|
-
home(waitUntilIdle?: boolean): Promise<void>;
|
|
17
|
-
/**
|
|
18
|
-
* Stops ongoing axes movement. Decelerates until zero speed.
|
|
19
|
-
* @param waitUntilIdle Determines whether function should return after the movement is finished or just started.
|
|
20
|
-
*/
|
|
21
|
-
stop(waitUntilIdle?: boolean): Promise<void>;
|
|
22
|
-
/**
|
|
23
|
-
* Waits until all axes of device stop moving.
|
|
24
|
-
* @param throwErrorOnFault Determines whether to throw error when fault is observed.
|
|
25
|
-
*/
|
|
26
|
-
waitUntilIdle(throwErrorOnFault?: boolean): Promise<void>;
|
|
27
|
-
/**
|
|
28
|
-
* Parks the device in anticipation of turning the power off.
|
|
29
|
-
* It can later be powered on, unparked, and moved without first having to home it.
|
|
30
|
-
*/
|
|
31
|
-
park(): Promise<void>;
|
|
32
|
-
/**
|
|
33
|
-
* Unparks the device. The device will now be able to move.
|
|
34
|
-
*/
|
|
35
|
-
unpark(): Promise<void>;
|
|
36
|
-
/**
|
|
37
|
-
* Returns bool indicating whether any axis is executing a motion command.
|
|
38
|
-
* @return True if any axis is currently executing a motion command.
|
|
39
|
-
*/
|
|
40
|
-
isBusy(): Promise<boolean>;
|
|
41
|
-
/**
|
|
42
|
-
* Returns a string that represents the axes.
|
|
43
|
-
* @return A string that represents the axes.
|
|
44
|
-
*/
|
|
45
|
-
toString(): string;
|
|
46
|
-
}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
|
|
3
|
-
// ============= DO NOT EDIT DIRECTLY ============= //
|
|
4
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
-
if (k2 === undefined) k2 = k;
|
|
6
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
7
|
-
}) : (function(o, m, k, k2) {
|
|
8
|
-
if (k2 === undefined) k2 = k;
|
|
9
|
-
o[k2] = m[k];
|
|
10
|
-
}));
|
|
11
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
12
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
13
|
-
}) : function(o, v) {
|
|
14
|
-
o["default"] = v;
|
|
15
|
-
});
|
|
16
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
17
|
-
if (mod && mod.__esModule) return mod;
|
|
18
|
-
var result = {};
|
|
19
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
20
|
-
__setModuleDefault(result, mod);
|
|
21
|
-
return result;
|
|
22
|
-
};
|
|
23
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.AllAxes = void 0;
|
|
25
|
-
const gateway = __importStar(require("../gateway"));
|
|
26
|
-
/**
|
|
27
|
-
* Represents all axes of motion associated with a device.
|
|
28
|
-
*/
|
|
29
|
-
class AllAxes {
|
|
30
|
-
constructor(device) {
|
|
31
|
-
this._device = device;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Device that controls this axis.
|
|
35
|
-
*/
|
|
36
|
-
get device() {
|
|
37
|
-
return this._device;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Homes all axes. Axes return to their homing positions.
|
|
41
|
-
* @param waitUntilIdle Determines whether function should return after the movement is finished or just started.
|
|
42
|
-
*/
|
|
43
|
-
async home(waitUntilIdle = true) {
|
|
44
|
-
const request = new gateway.DeviceHomeRequest();
|
|
45
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
46
|
-
request.setDevice(this.device.deviceAddress);
|
|
47
|
-
request.setAxis(0);
|
|
48
|
-
request.setWaitUntilIdle(waitUntilIdle);
|
|
49
|
-
await gateway.callAsync('device/home', request);
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Stops ongoing axes movement. Decelerates until zero speed.
|
|
53
|
-
* @param waitUntilIdle Determines whether function should return after the movement is finished or just started.
|
|
54
|
-
*/
|
|
55
|
-
async stop(waitUntilIdle = true) {
|
|
56
|
-
const request = new gateway.DeviceStopRequest();
|
|
57
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
58
|
-
request.setDevice(this.device.deviceAddress);
|
|
59
|
-
request.setAxis(0);
|
|
60
|
-
request.setWaitUntilIdle(waitUntilIdle);
|
|
61
|
-
await gateway.callAsync('device/stop', request);
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Waits until all axes of device stop moving.
|
|
65
|
-
* @param throwErrorOnFault Determines whether to throw error when fault is observed.
|
|
66
|
-
*/
|
|
67
|
-
async waitUntilIdle(throwErrorOnFault = true) {
|
|
68
|
-
const request = new gateway.DeviceWaitUntilIdleRequest();
|
|
69
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
70
|
-
request.setDevice(this.device.deviceAddress);
|
|
71
|
-
request.setAxis(0);
|
|
72
|
-
request.setThrowErrorOnFault(throwErrorOnFault);
|
|
73
|
-
await gateway.callAsync('device/wait_until_idle', request);
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Parks the device in anticipation of turning the power off.
|
|
77
|
-
* It can later be powered on, unparked, and moved without first having to home it.
|
|
78
|
-
*/
|
|
79
|
-
async park() {
|
|
80
|
-
const request = new gateway.DeviceParkRequest();
|
|
81
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
82
|
-
request.setDevice(this.device.deviceAddress);
|
|
83
|
-
request.setAxis(0);
|
|
84
|
-
await gateway.callAsync('device/park', request);
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Unparks the device. The device will now be able to move.
|
|
88
|
-
*/
|
|
89
|
-
async unpark() {
|
|
90
|
-
const request = new gateway.DeviceParkRequest();
|
|
91
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
92
|
-
request.setDevice(this.device.deviceAddress);
|
|
93
|
-
request.setAxis(0);
|
|
94
|
-
await gateway.callAsync('device/unpark', request);
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Returns bool indicating whether any axis is executing a motion command.
|
|
98
|
-
* @return True if any axis is currently executing a motion command.
|
|
99
|
-
*/
|
|
100
|
-
async isBusy() {
|
|
101
|
-
const request = new gateway.DeviceIsBusyRequest();
|
|
102
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
103
|
-
request.setDevice(this.device.deviceAddress);
|
|
104
|
-
request.setAxis(0);
|
|
105
|
-
const response = await gateway.callAsync('device/is_busy', request, gateway.DeviceIsBusyResponse);
|
|
106
|
-
return response.getIsBusy();
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Returns a string that represents the axes.
|
|
110
|
-
* @return A string that represents the axes.
|
|
111
|
-
*/
|
|
112
|
-
toString() {
|
|
113
|
-
const request = new gateway.ToStringRequest();
|
|
114
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
115
|
-
request.setDevice(this.device.deviceAddress);
|
|
116
|
-
request.setAxis(0);
|
|
117
|
-
const response = gateway.callSync('device/all_axes_to_string', request, gateway.ToStringResponse);
|
|
118
|
-
return response.getToStr();
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
exports.AllAxes = AllAxes;
|
|
122
|
-
//# sourceMappingURL=all_axes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"all_axes.js","sourceRoot":"","sources":["../../../src-web/ascii/all_axes.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;AAGtD,oDAAsC;AAEtC;;GAEG;AACH,MAAa,OAAO;IASlB,YAAY,MAAc;QACxB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAVD;;OAEG;IACH,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAOD;;;OAGG;IACI,KAAK,CAAC,IAAI,CACf,gBAAyB,IAAI;QAE7B,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC;QAChD,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAC3D,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAC7C,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QACnB,OAAO,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;QAExC,MAAM,OAAO,CAAC,SAAS,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,IAAI,CACf,gBAAyB,IAAI;QAE7B,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC;QAChD,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAC3D,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAC7C,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QACnB,OAAO,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;QAExC,MAAM,OAAO,CAAC,SAAS,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,aAAa,CACxB,oBAA6B,IAAI;QAEjC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,0BAA0B,EAAE,CAAC;QACzD,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAC3D,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAC7C,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QACnB,OAAO,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;QAEhD,MAAM,OAAO,CAAC,SAAS,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,IAAI;QACf,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC;QAChD,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAC3D,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAC7C,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAEnB,MAAM,OAAO,CAAC,SAAS,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,MAAM;QACjB,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC;QAChD,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAC3D,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAC7C,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAEnB,MAAM,OAAO,CAAC,SAAS,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,MAAM;QACjB,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB,EAAE,CAAC;QAClD,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAC3D,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAC7C,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAEnB,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACtC,gBAAgB,EAChB,OAAO,EACP,OAAO,CAAC,oBAAoB,CAAC,CAAC;QAChC,OAAO,QAAQ,CAAC,SAAS,EAAE,CAAC;IAC9B,CAAC;IAED;;;OAGG;IACI,QAAQ;QACb,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;QAC9C,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAC3D,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAC7C,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAEnB,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAC/B,2BAA2B,EAC3B,OAAO,EACP,OAAO,CAAC,gBAAgB,CAAC,CAAC;QAC5B,OAAO,QAAQ,CAAC,QAAQ,EAAE,CAAC;IAC7B,CAAC;CACF;AAvHD,0BAuHC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { Device } from './device';\nimport * as gateway from '../gateway';\n\n/**\n * Represents all axes of motion associated with a device.\n */\nexport class AllAxes {\n /**\n * Device that controls this axis.\n */\n public get device(): Device {\n return this._device;\n }\n private _device: Device;\n\n constructor(device: Device) {\n this._device = device;\n }\n\n /**\n * Homes all axes. Axes return to their homing positions.\n * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.\n */\n public async home(\n waitUntilIdle: boolean = true\n ): Promise<void> {\n const request = new gateway.DeviceHomeRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(0);\n request.setWaitUntilIdle(waitUntilIdle);\n\n await gateway.callAsync('device/home', request);\n }\n\n /**\n * Stops ongoing axes movement. Decelerates until zero speed.\n * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.\n */\n public async stop(\n waitUntilIdle: boolean = true\n ): Promise<void> {\n const request = new gateway.DeviceStopRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(0);\n request.setWaitUntilIdle(waitUntilIdle);\n\n await gateway.callAsync('device/stop', request);\n }\n\n /**\n * Waits until all axes of device stop moving.\n * @param throwErrorOnFault Determines whether to throw error when fault is observed.\n */\n public async waitUntilIdle(\n throwErrorOnFault: boolean = true\n ): Promise<void> {\n const request = new gateway.DeviceWaitUntilIdleRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(0);\n request.setThrowErrorOnFault(throwErrorOnFault);\n\n await gateway.callAsync('device/wait_until_idle', request);\n }\n\n /**\n * Parks the device in anticipation of turning the power off.\n * It can later be powered on, unparked, and moved without first having to home it.\n */\n public async park(): Promise<void> {\n const request = new gateway.DeviceParkRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(0);\n\n await gateway.callAsync('device/park', request);\n }\n\n /**\n * Unparks the device. The device will now be able to move.\n */\n public async unpark(): Promise<void> {\n const request = new gateway.DeviceParkRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(0);\n\n await gateway.callAsync('device/unpark', request);\n }\n\n /**\n * Returns bool indicating whether any axis is executing a motion command.\n * @return True if any axis is currently executing a motion command.\n */\n public async isBusy(): Promise<boolean> {\n const request = new gateway.DeviceIsBusyRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(0);\n\n const response = await gateway.callAsync<gateway.DeviceIsBusyResponse>(\n 'device/is_busy',\n request,\n gateway.DeviceIsBusyResponse);\n return response.getIsBusy();\n }\n\n /**\n * Returns a string that represents the axes.\n * @return A string that represents the axes.\n */\n public toString(): string {\n const request = new gateway.ToStringRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(0);\n\n const response = gateway.callSync<gateway.ToStringResponse>(\n 'device/all_axes_to_string',\n request,\n gateway.ToStringResponse);\n return response.getToStr();\n }\n}\n"]}
|
package/dist/web/ascii/axis.js
DELETED
|
@@ -1,367 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
|
|
3
|
-
// ============= DO NOT EDIT DIRECTLY ============= //
|
|
4
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
-
if (k2 === undefined) k2 = k;
|
|
6
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
7
|
-
}) : (function(o, m, k, k2) {
|
|
8
|
-
if (k2 === undefined) k2 = k;
|
|
9
|
-
o[k2] = m[k];
|
|
10
|
-
}));
|
|
11
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
12
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
13
|
-
}) : function(o, v) {
|
|
14
|
-
o["default"] = v;
|
|
15
|
-
});
|
|
16
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
17
|
-
if (mod && mod.__esModule) return mod;
|
|
18
|
-
var result = {};
|
|
19
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
20
|
-
__setModuleDefault(result, mod);
|
|
21
|
-
return result;
|
|
22
|
-
};
|
|
23
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.Axis = void 0;
|
|
25
|
-
const axis_identity_1 = require("./axis_identity");
|
|
26
|
-
const warnings_1 = require("./warnings");
|
|
27
|
-
const axis_settings_1 = require("./axis_settings");
|
|
28
|
-
const units_1 = require("../units");
|
|
29
|
-
const response_1 = require("./response");
|
|
30
|
-
const measurement_1 = require("../measurement");
|
|
31
|
-
const gateway = __importStar(require("../gateway"));
|
|
32
|
-
/**
|
|
33
|
-
* Represents an axis of motion associated with a device.
|
|
34
|
-
*/
|
|
35
|
-
class Axis {
|
|
36
|
-
constructor(device, axisNumber) {
|
|
37
|
-
this._device = device;
|
|
38
|
-
this._axisNumber = axisNumber;
|
|
39
|
-
this._settings = new axis_settings_1.AxisSettings(this);
|
|
40
|
-
this._warnings = new warnings_1.Warnings(device, axisNumber);
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Device that controls this axis.
|
|
44
|
-
*/
|
|
45
|
-
get device() {
|
|
46
|
-
return this._device;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* The axis number identifies the axis on the device.
|
|
50
|
-
* The first axis has the number one.
|
|
51
|
-
*/
|
|
52
|
-
get axisNumber() {
|
|
53
|
-
return this._axisNumber;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Settings and properties of this axis.
|
|
57
|
-
*/
|
|
58
|
-
get settings() {
|
|
59
|
-
return this._settings;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Warnings and faults of this axis.
|
|
63
|
-
*/
|
|
64
|
-
get warnings() {
|
|
65
|
-
return this._warnings;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Identity of the axis.
|
|
69
|
-
*/
|
|
70
|
-
get identity() {
|
|
71
|
-
return this._retrieveIdentity();
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Unique ID of the peripheral hardware.
|
|
75
|
-
*/
|
|
76
|
-
get peripheralId() {
|
|
77
|
-
return this.identity.peripheralId;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Name of the peripheral.
|
|
81
|
-
*/
|
|
82
|
-
get peripheralName() {
|
|
83
|
-
return this.identity.peripheralName;
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Indicates whether the axis is a peripheral or part of an integrated device.
|
|
87
|
-
*/
|
|
88
|
-
get isPeripheral() {
|
|
89
|
-
return this.identity.isPeripheral;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Determines the type of an axis and units it accepts.
|
|
93
|
-
*/
|
|
94
|
-
get axisType() {
|
|
95
|
-
return this.identity.axisType;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Homes axis. Axis returns to its homing position.
|
|
99
|
-
* @param waitUntilIdle Determines whether function should return after the movement is finished or just started.
|
|
100
|
-
*/
|
|
101
|
-
async home(waitUntilIdle = true) {
|
|
102
|
-
const request = new gateway.DeviceHomeRequest();
|
|
103
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
104
|
-
request.setDevice(this.device.deviceAddress);
|
|
105
|
-
request.setAxis(this.axisNumber);
|
|
106
|
-
request.setWaitUntilIdle(waitUntilIdle);
|
|
107
|
-
await gateway.callAsync('device/home', request);
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Stops ongoing axis movement. Decelerates until zero speed.
|
|
111
|
-
* @param waitUntilIdle Determines whether function should return after the movement is finished or just started.
|
|
112
|
-
*/
|
|
113
|
-
async stop(waitUntilIdle = true) {
|
|
114
|
-
const request = new gateway.DeviceStopRequest();
|
|
115
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
116
|
-
request.setDevice(this.device.deviceAddress);
|
|
117
|
-
request.setAxis(this.axisNumber);
|
|
118
|
-
request.setWaitUntilIdle(waitUntilIdle);
|
|
119
|
-
await gateway.callAsync('device/stop', request);
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Parks the axis in anticipation of turning the power off.
|
|
123
|
-
* It can later be powered on, unparked, and moved without first having to home it.
|
|
124
|
-
*/
|
|
125
|
-
async park() {
|
|
126
|
-
const request = new gateway.DeviceParkRequest();
|
|
127
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
128
|
-
request.setDevice(this.device.deviceAddress);
|
|
129
|
-
request.setAxis(this.axisNumber);
|
|
130
|
-
await gateway.callAsync('device/park', request);
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Unparks axis. Axis will now be able to move.
|
|
134
|
-
*/
|
|
135
|
-
async unpark() {
|
|
136
|
-
const request = new gateway.DeviceParkRequest();
|
|
137
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
138
|
-
request.setDevice(this.device.deviceAddress);
|
|
139
|
-
request.setAxis(this.axisNumber);
|
|
140
|
-
await gateway.callAsync('device/unpark', request);
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* Returns bool indicating whether the axis is parked or not.
|
|
144
|
-
* @return True if the axis is currently parked. False otherwise.
|
|
145
|
-
*/
|
|
146
|
-
async isParked() {
|
|
147
|
-
const request = new gateway.DeviceParkRequest();
|
|
148
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
149
|
-
request.setDevice(this.device.deviceAddress);
|
|
150
|
-
request.setAxis(this.axisNumber);
|
|
151
|
-
const response = await gateway.callAsync('device/is_parked', request, gateway.DeviceIsParkedResponse);
|
|
152
|
-
return response.getIsParked();
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* Waits until axis stops moving.
|
|
156
|
-
* @param throwErrorOnFault Determines whether to throw error when fault is observed.
|
|
157
|
-
*/
|
|
158
|
-
async waitUntilIdle(throwErrorOnFault = true) {
|
|
159
|
-
const request = new gateway.DeviceWaitUntilIdleRequest();
|
|
160
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
161
|
-
request.setDevice(this.device.deviceAddress);
|
|
162
|
-
request.setAxis(this.axisNumber);
|
|
163
|
-
request.setThrowErrorOnFault(throwErrorOnFault);
|
|
164
|
-
await gateway.callAsync('device/wait_until_idle', request);
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
* Returns bool indicating whether the axis is executing a motion command.
|
|
168
|
-
* @return True if the axis is currently executing a motion command.
|
|
169
|
-
*/
|
|
170
|
-
async isBusy() {
|
|
171
|
-
const request = new gateway.DeviceIsBusyRequest();
|
|
172
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
173
|
-
request.setDevice(this.device.deviceAddress);
|
|
174
|
-
request.setAxis(this.axisNumber);
|
|
175
|
-
const response = await gateway.callAsync('device/is_busy', request, gateway.DeviceIsBusyResponse);
|
|
176
|
-
return response.getIsBusy();
|
|
177
|
-
}
|
|
178
|
-
/**
|
|
179
|
-
* Move axis to absolute position.
|
|
180
|
-
* @param position Absolute position.
|
|
181
|
-
* @param unit Units of position.
|
|
182
|
-
* @param waitUntilIdle Determines whether function should return after the movement is finished or just started.
|
|
183
|
-
*/
|
|
184
|
-
async moveAbsolute(position, unit = units_1.Units.NATIVE, waitUntilIdle = true) {
|
|
185
|
-
const request = new gateway.DeviceMoveRequest();
|
|
186
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
187
|
-
request.setDevice(this.device.deviceAddress);
|
|
188
|
-
request.setAxis(this.axisNumber);
|
|
189
|
-
request.setType(gateway.DeviceMoveRequest.MoveType.ABS);
|
|
190
|
-
request.setArg(position);
|
|
191
|
-
request.setUnit(unit);
|
|
192
|
-
request.setWaitUntilIdle(waitUntilIdle);
|
|
193
|
-
await gateway.callAsync('device/move', request);
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
* Moves the axis to the maximum position as specified by limit.max.
|
|
197
|
-
* @param waitUntilIdle Determines whether function should return after the movement is finished or just started.
|
|
198
|
-
*/
|
|
199
|
-
async moveMax(waitUntilIdle = true) {
|
|
200
|
-
const request = new gateway.DeviceMoveRequest();
|
|
201
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
202
|
-
request.setDevice(this.device.deviceAddress);
|
|
203
|
-
request.setAxis(this.axisNumber);
|
|
204
|
-
request.setType(gateway.DeviceMoveRequest.MoveType.MAX);
|
|
205
|
-
request.setWaitUntilIdle(waitUntilIdle);
|
|
206
|
-
await gateway.callAsync('device/move', request);
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* Moves the axis to the minimum position as specified by limit.min.
|
|
210
|
-
* @param waitUntilIdle Determines whether function should return after the movement is finished or just started.
|
|
211
|
-
*/
|
|
212
|
-
async moveMin(waitUntilIdle = true) {
|
|
213
|
-
const request = new gateway.DeviceMoveRequest();
|
|
214
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
215
|
-
request.setDevice(this.device.deviceAddress);
|
|
216
|
-
request.setAxis(this.axisNumber);
|
|
217
|
-
request.setType(gateway.DeviceMoveRequest.MoveType.MIN);
|
|
218
|
-
request.setWaitUntilIdle(waitUntilIdle);
|
|
219
|
-
await gateway.callAsync('device/move', request);
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* Move axis to position relative to current position.
|
|
223
|
-
* @param position Relative position.
|
|
224
|
-
* @param unit Units of position.
|
|
225
|
-
* @param waitUntilIdle Determines whether function should return after the movement is finished or just started.
|
|
226
|
-
*/
|
|
227
|
-
async moveRelative(position, unit = units_1.Units.NATIVE, waitUntilIdle = true) {
|
|
228
|
-
const request = new gateway.DeviceMoveRequest();
|
|
229
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
230
|
-
request.setDevice(this.device.deviceAddress);
|
|
231
|
-
request.setAxis(this.axisNumber);
|
|
232
|
-
request.setType(gateway.DeviceMoveRequest.MoveType.REL);
|
|
233
|
-
request.setArg(position);
|
|
234
|
-
request.setUnit(unit);
|
|
235
|
-
request.setWaitUntilIdle(waitUntilIdle);
|
|
236
|
-
await gateway.callAsync('device/move', request);
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* Begins to move axis at specified speed.
|
|
240
|
-
* @param velocity Movement velocity.
|
|
241
|
-
* @param unit Units of velocity.
|
|
242
|
-
*/
|
|
243
|
-
async moveVelocity(velocity, unit = units_1.Units.NATIVE) {
|
|
244
|
-
const request = new gateway.DeviceMoveRequest();
|
|
245
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
246
|
-
request.setDevice(this.device.deviceAddress);
|
|
247
|
-
request.setAxis(this.axisNumber);
|
|
248
|
-
request.setType(gateway.DeviceMoveRequest.MoveType.VEL);
|
|
249
|
-
request.setArg(velocity);
|
|
250
|
-
request.setUnit(unit);
|
|
251
|
-
await gateway.callAsync('device/move', request);
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* Returns current axis position.
|
|
255
|
-
* @param unit Units of position.
|
|
256
|
-
* @return Axis position.
|
|
257
|
-
*/
|
|
258
|
-
async getPosition(unit = units_1.Units.NATIVE) {
|
|
259
|
-
const request = new gateway.DeviceGetSettingRequest();
|
|
260
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
261
|
-
request.setDevice(this.device.deviceAddress);
|
|
262
|
-
request.setAxis(this.axisNumber);
|
|
263
|
-
request.setSetting('pos');
|
|
264
|
-
request.setUnit(unit);
|
|
265
|
-
const response = await gateway.callAsync('device/get_setting', request, gateway.DeviceGetSettingResponse);
|
|
266
|
-
return response.getValue();
|
|
267
|
-
}
|
|
268
|
-
/**
|
|
269
|
-
* Sends a generic ASCII command to this axis.
|
|
270
|
-
* For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).
|
|
271
|
-
* @param command Command and its parameters.
|
|
272
|
-
* @param checkErrors Controls whether to throw an exception when the device rejects the command.
|
|
273
|
-
* @param timeout The timeout, in milliseconds, for a device to respond to the command.
|
|
274
|
-
* Overrides the connection default request timeout.
|
|
275
|
-
* @return A response to the command.
|
|
276
|
-
*/
|
|
277
|
-
async genericCommand(command, checkErrors = true, timeout = 0) {
|
|
278
|
-
const request = new gateway.GenericCommandRequest();
|
|
279
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
280
|
-
request.setDevice(this.device.deviceAddress);
|
|
281
|
-
request.setAxis(this.axisNumber);
|
|
282
|
-
request.setCommand(command);
|
|
283
|
-
request.setCheckErrors(checkErrors);
|
|
284
|
-
request.setTimeout(timeout);
|
|
285
|
-
const response = await gateway.callAsync('interface/generic_command', request, gateway.GenericCommandResponse);
|
|
286
|
-
return response_1.Response.fromProtobuf(response.toObject());
|
|
287
|
-
}
|
|
288
|
-
/**
|
|
289
|
-
* Sends a generic ASCII command to this axis and expect multiple responses.
|
|
290
|
-
* Responses are returned in order of arrival.
|
|
291
|
-
* For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).
|
|
292
|
-
* @param command Command and its parameters.
|
|
293
|
-
* @param checkErrors Controls whether to throw an exception when a device rejects the command.
|
|
294
|
-
* @param timeout The timeout, in milliseconds, for a device to respond to the command.
|
|
295
|
-
* Overrides the connection default request timeout.
|
|
296
|
-
* @return All responses to the command.
|
|
297
|
-
*/
|
|
298
|
-
async genericCommandMultiResponse(command, checkErrors = true, timeout = 0) {
|
|
299
|
-
const request = new gateway.GenericCommandRequest();
|
|
300
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
301
|
-
request.setDevice(this.device.deviceAddress);
|
|
302
|
-
request.setAxis(this.axisNumber);
|
|
303
|
-
request.setCommand(command);
|
|
304
|
-
request.setCheckErrors(checkErrors);
|
|
305
|
-
request.setTimeout(timeout);
|
|
306
|
-
const response = await gateway.callAsync('interface/generic_command_multi_response', request, gateway.GenericCommandResponseCollection);
|
|
307
|
-
return response.toObject().responsesList.map(resp => response_1.Response.fromProtobuf(resp));
|
|
308
|
-
}
|
|
309
|
-
/**
|
|
310
|
-
* Sends a generic ASCII command to this axis without expecting a response and without adding a message ID
|
|
311
|
-
* For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).
|
|
312
|
-
* @param command Command and its parameters.
|
|
313
|
-
*/
|
|
314
|
-
async genericCommandNoResponse(command) {
|
|
315
|
-
const request = new gateway.GenericCommandRequest();
|
|
316
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
317
|
-
request.setDevice(this.device.deviceAddress);
|
|
318
|
-
request.setAxis(this.axisNumber);
|
|
319
|
-
request.setCommand(command);
|
|
320
|
-
await gateway.callAsync('interface/generic_command_no_response', request);
|
|
321
|
-
}
|
|
322
|
-
/**
|
|
323
|
-
* Formats parameters into a command and performs unit conversions.
|
|
324
|
-
* Parameters in the command template are denoted by a question mark.
|
|
325
|
-
* Command returned is only valid for this axis and this device.
|
|
326
|
-
* For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).
|
|
327
|
-
* @param commandTemplate Template of a command to prepare. Parameters are denoted by question marks.
|
|
328
|
-
* @param parameters Variable number of command parameters.
|
|
329
|
-
* @return Command with converted parameters.
|
|
330
|
-
*/
|
|
331
|
-
prepareCommand(commandTemplate, ...parameters) {
|
|
332
|
-
const request = new gateway.PrepareCommandRequest();
|
|
333
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
334
|
-
request.setDevice(this.device.deviceAddress);
|
|
335
|
-
request.setAxis(this.axisNumber);
|
|
336
|
-
request.setCommandTemplate(commandTemplate);
|
|
337
|
-
request.setParametersList(parameters.map(measurement_1.Measurement.toProtobuf));
|
|
338
|
-
const response = gateway.callSync('device/prepare_command', request, gateway.PrepareCommandResponse);
|
|
339
|
-
return response.getCommand();
|
|
340
|
-
}
|
|
341
|
-
/**
|
|
342
|
-
* Returns a string that represents the axis.
|
|
343
|
-
* @return A string that represents the axis.
|
|
344
|
-
*/
|
|
345
|
-
toString() {
|
|
346
|
-
const request = new gateway.ToStringRequest();
|
|
347
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
348
|
-
request.setDevice(this.device.deviceAddress);
|
|
349
|
-
request.setAxis(this.axisNumber);
|
|
350
|
-
const response = gateway.callSync('device/axis_to_string', request, gateway.ToStringResponse);
|
|
351
|
-
return response.getToStr();
|
|
352
|
-
}
|
|
353
|
-
/**
|
|
354
|
-
* Returns identity.
|
|
355
|
-
* @return Axis identity.
|
|
356
|
-
*/
|
|
357
|
-
_retrieveIdentity() {
|
|
358
|
-
const request = new gateway.DeviceGetAxisIdentityRequest();
|
|
359
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
360
|
-
request.setDevice(this.device.deviceAddress);
|
|
361
|
-
request.setAxis(this.axisNumber);
|
|
362
|
-
const response = gateway.callSync('device/get_axis_identity', request, gateway.DeviceGetAxisIdentityResponse);
|
|
363
|
-
return axis_identity_1.AxisIdentity.fromProtobuf(response.getIdentity().toObject());
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
exports.Axis = Axis;
|
|
367
|
-
//# sourceMappingURL=axis.js.map
|