36 #include <board_config.h> 40 #define TAP_ESC_DEVICE_PATH "/dev/tap_esc" 43 #define ESC_HAVE_CURRENT_SENSOR 45 #define TAP_ESC_MAX_PACKET_LEN 20 46 #define TAP_ESC_MAX_MOTOR_NUM 8 48 #define PACKET_HEAD 0xfe 67 #define ESC_POS {0, 1, 4, 3, 2, 5, 7, 8} 69 #define ESC_DIR {0, 1, 0, 1, 0, 1, 0, 1} 73 #define RPMSTOPPED (RPMMIN - 10) 76 #define MAX_BOOT_TIME_MS (550) // Minimum time to wait after Power on before sending commands 82 #define RUN_CHANNEL_VALUE_MASK (uint16_t)0x07ff 83 #define RUN_RED_LED_ON_MASK (uint16_t)0x0800 84 #define RUN_GREEN_LED_ON_MASK (uint16_t)0x1000 85 #define RUN_BLUE_LED_ON_MASK (uint16_t)0x2000 86 #define RUN_LED_ON_MASK (uint16_t)0x3800 87 #define RUN_FEEDBACK_ENABLE_MASK (uint16_t)0x4000 88 #define RUN_REVERSE_MASK (uint16_t)0x8000 99 #if defined(ESC_HAVE_VOLTAGE_SENSOR) 102 #if defined(ESC_HAVE_CURRENT_SENSOR) 105 #if defined(ESC_HAVE_TEMPERATURE_SENSOR) 126 #define ESC_MASK_MAP_CHANNEL 0x0f 127 #define ESC_MASK_MAP_RUNNING_DIRECTION 0xf0 163 #define UART_BUFFER_SIZE 128
RunInfoRepsonse rspRunInfo
ConfigInfoBasicResponse rspConfigInfoBasic
ConfigInfoBasicRequest resp
ConfigInfoBasicRequest reqConfigInfoBasic
#define TAP_ESC_MAX_MOTOR_NUM