#pragma once #ifdef __cplusplus extern "C" { #endif #include #include #include "device/at9s_pro.h" /* ����λ�� */ typedef enum { MODE_CMD_BREAKING_CONTROL = 0, MODE_CMD_ONLT_GIMBAL = 1, MODE_CMD_FOLLOW = 2, MODE_CMD_SPIN = 3, } COMP_CMD_MODE_t; typedef struct { bool online; bool start; bool stop; bool lockoutput; int8_t mode; float ch_l_x; /* ��ҡ�� X */ float ch_l_y; /* ��ҡ�� Y�����ţ� */ float ch_r_x; /* ��ҡ�� X */ float ch_r_y; /* ��ҡ�� Y */ } COMP_AT9S_CMD_t; int8_t COMP_AT9S_CMD_ParseRc(const DEVICE_AT9S_t *rc, COMP_AT9S_CMD_t *at9s_cmd); #ifdef __cplusplus } #endif