zcancmder_v2
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
923 B

#pragma once
#include <stdint.h>
namespace iflytop {
using namespace std;
#define CONFIG_CODE(type, subconfigindex) (type + subconfigindex)
typedef enum {
kcfg_motor_x_shift = CONFIG_CODE(100, 0), // x偏移
kcfg_motor_y_shift = CONFIG_CODE(100, 1), // y偏移
kcfg_motor_z_shift = CONFIG_CODE(100, 2), // z偏移
kcfg_motor_x_shaft = CONFIG_CODE(100, 3), // x轴是否反转
kcfg_motor_y_shaft = CONFIG_CODE(100, 4), // y轴是否反转
kcfg_motor_z_shaft = CONFIG_CODE(100, 5), // z轴是否反转
kcfg_motor_x_one_circle_pulse = CONFIG_CODE(100, 6), // x轴一圈脉冲数
kcfg_motor_y_one_circle_pulse = CONFIG_CODE(100, 7), // y轴一圈脉冲数
kcfg_motor_z_one_circle_pulse = CONFIG_CODE(100, 8), // z轴一圈脉冲数
k_cfg_stepmotor_ihold = CONFIG_CODE(100, 9),
k_cfg_stepmotor_irun = CONFIG_CODE(100, 10),
k_cfg_stepmotor_iholddelay = CONFIG_CODE(100, 11),
} config_index_t;
} // namespace iflytop