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.

22 lines
590 B

#pragma once
#include <stdint.h>
namespace iflytop {
using namespace std;
#define STATE_INDEX(type, subconfigindex) (type + subconfigindex)
typedef enum {
kstate_module_status = STATE_INDEX(0, 0), //
kstate_module_errorcode = STATE_INDEX(0, 1), //
kstate_motor_x_pos = STATE_INDEX(100, 0), // x偏移
kstate_motor_y_pos = STATE_INDEX(100, 1), // y偏移
kstate_motor_z_pos = STATE_INDEX(100, 2), // z偏移
kstate_motor_move = STATE_INDEX(100, 3), // 电机是否移动
kstate_motor_enable = STATE_INDEX(100, 4), // 电机是否使能
} state_index_t;
} // namespace iflytop