pub fn gcode_to_ydd_bytes(
gcode: &String,
precision: usize,
data_version: u8,
tolerance: f32,
interval: f32,
le: bool,
) -> Vec<u8> ⓘExpand description
将GCode转换成ydd数据
- [gcode] gcode文本
- [precision] 数值精度, 默认为100
- [data_version] 输出数据版本, 默认1
- 0x01 :坐标使用u16类型数据
- 0x02 :坐标使用f32类型数据
- [tolerance] 公差, 默认为0.01
- [interval] 是否间隔采样, >0生效
- [le] 字节序.
- 1: 小端模式
- 其它: 大端模式