Learn R Programming

mtconnectR (version 1.0.0)

map_gcode_mtc: Create a mapping between simulated and actual data

Description

Creates a timestamp based mapping to map every simulated timestamp to an actual timestamp based on real data

Usage

map_gcode_mtc(mtc_device_sim, mtc_device, elasticity = 2)

Arguments

mtc_device_sim
is the simlated version
mtc_device
is the actual log data
elasticity
is the maximum consecutive reference elements skippable (passed to dtw::mvmStepPattern())

Examples

Run this code
data("example_gcode_parsed") # Parsed gcode
data("example_mtc_device_3") # MTCDevice object of actual log data
simulated_gcode_data = na.omit(simulate_data_from_gcode(example_gcode_parsed, 
start_time = 0, data_res = 0.1, data_type = "HH"))
mtc_device_sim = create_mtc_device_from_ts(simulated_gcode_data)
mtc_sim_mapped = map_gcode_mtc(mtc_device_sim, example_mtc_device_3, elasticity = 200)

Run the code above in your browser using DataLab