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.
24 lines
755 B
24 lines
755 B
#pragma once
|
|
#include <stdint.h>
|
|
|
|
namespace iflytop {
|
|
using namespace std;
|
|
|
|
#define CONFIG_CODE(type, subconfigindex) (type + subconfigindex)
|
|
typedef enum {
|
|
|
|
kmotorcfg_x_shift = CONFIG_CODE(100, 0), // x偏移
|
|
kmotorcfg_y_shift = CONFIG_CODE(100, 1), // y偏移
|
|
kmotorcfg_z_shift = CONFIG_CODE(100, 2), // z偏移
|
|
|
|
kmotorcfg_x_shaft = CONFIG_CODE(100, 3), // x轴是否反转
|
|
kmotorcfg_y_shaft = CONFIG_CODE(100, 4), // y轴是否反转
|
|
kmotorcfg_z_shaft = CONFIG_CODE(100, 5), // z轴是否反转
|
|
|
|
kmotorcfg_x_one_circle_pulse = CONFIG_CODE(100, 6), // x轴一圈脉冲数
|
|
kmotorcfg_y_one_circle_pulse = CONFIG_CODE(100, 7), // y轴一圈脉冲数
|
|
kmotorcfg_z_one_circle_pulse = CONFIG_CODE(100, 8), // z轴一圈脉冲数
|
|
|
|
} config_index_t;
|
|
|
|
} // namespace iflytop
|