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.

21 lines
590 B

2 years ago
  1. #pragma once
  2. #include <stdint.h>
  3. namespace iflytop {
  4. using namespace std;
  5. #define STATE_INDEX(type, subconfigindex) (type + subconfigindex)
  6. typedef enum {
  7. kstate_module_status = STATE_INDEX(0, 0), //
  8. kstate_module_errorcode = STATE_INDEX(0, 1), //
  9. kstate_motor_x_pos = STATE_INDEX(100, 0), // xƫ��
  10. kstate_motor_y_pos = STATE_INDEX(100, 1), // yƫ��
  11. kstate_motor_z_pos = STATE_INDEX(100, 2), // zƫ��
  12. kstate_motor_move = STATE_INDEX(100, 3), // �����Ƿ��ƶ�
  13. kstate_motor_enable = STATE_INDEX(100, 4), // �����Ƿ�ʹ��
  14. } state_index_t;
  15. } // namespace iflytop