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.

23 lines
755 B

2 years ago
2 years ago
2 years ago
  1. #pragma once
  2. #include <stdint.h>
  3. namespace iflytop {
  4. using namespace std;
  5. #define CONFIG_CODE(type, subconfigindex) (type + subconfigindex)
  6. typedef enum {
  7. kmotorcfg_x_shift = CONFIG_CODE(100, 0), // xƫ��
  8. kmotorcfg_y_shift = CONFIG_CODE(100, 1), // yƫ��
  9. kmotorcfg_z_shift = CONFIG_CODE(100, 2), // zƫ��
  10. kmotorcfg_x_shaft = CONFIG_CODE(100, 3), // x���Ƿ���ת
  11. kmotorcfg_y_shaft = CONFIG_CODE(100, 4), // y���Ƿ���ת
  12. kmotorcfg_z_shaft = CONFIG_CODE(100, 5), // z���Ƿ���ת
  13. kmotorcfg_x_one_circle_pulse = CONFIG_CODE(100, 6), // x��һȦ������
  14. kmotorcfg_y_one_circle_pulse = CONFIG_CODE(100, 7), // y��һȦ������
  15. kmotorcfg_z_one_circle_pulse = CONFIG_CODE(100, 8), // z��һȦ������
  16. } config_index_t;
  17. } // namespace iflytop