|
|
#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
|