添加文件1和文件2

This commit is contained in:
2025-11-27 20:08:38 +08:00
parent 5d4099938c
commit edc427c423
1675 changed files with 1068907 additions and 2830 deletions

87
PTZ/Core/Inc/Remote.h Normal file
View File

@@ -0,0 +1,87 @@
#ifndef __Remote_H
#define __Remote_H
#include "main.h"
#define DBUS_MAX_LEN (50)
#define DBUS_BUFLEN (18)
#define DBUS_HUART huart3
typedef __packed struct
{
int16_t ch0;
int16_t ch1;
int16_t ch2;
int16_t ch3;
int16_t roll;
uint8_t sw1;
uint8_t sw2;
} rc_info_t;
#define rc_Init \
{ \
0, \
0, \
0, \
0, \
0, \
0, \
0, \
}
typedef struct
{
uint16_t Remote_R_RL;
uint16_t Remote_R_UD;
uint16_t Remote_L_RL;
uint16_t Remote_L_UD;
uint8_t Remote_LS;
uint8_t Remote_RS;
int16_t Remote_Mouse_RL;
int16_t Remote_Mouse_DU;
int16_t Remote_Mouse_Wheel;
uint8_t Remote_Mouse_KeyL;
uint8_t Remote_Mouse_KeyR;
uint8_t Remote_Key_W;
uint8_t Remote_Key_S;
uint8_t Remote_Key_A;
uint8_t Remote_Key_D;
uint8_t Remote_Key_Q;
uint8_t Remote_Key_E;
uint8_t Remote_Key_Shift;
uint8_t Remote_Key_Ctrl;
uint8_t Remote_Key_Alpha1;
uint8_t Remote_Key_Alpha2;
uint8_t Remote_KeyLast_Alpha1;
uint8_t Remote_KeyLast_Alpha2;
uint8_t Remote_Mouse_KeyLastR;
uint8_t Remote_KeyLast_Q;
uint8_t Remote_KeyLast_E;
uint8_t Remote_KeyLast_Shift;
uint8_t Remote_KeyLast_Ctrl;
uint8_t Remote_Mouse_KeyPushR;
uint8_t Remote_KeyPush_Q;
uint8_t Remote_KeyPush_E;
uint8_t Remote_KeyPush_Shift;
uint8_t Remote_KeyPush_Ctrl;
int16_t Remote_ThumbWheel;
}Remote_Data;
extern uint8_t Remote_Status;
extern uint8_t Remote_StartFlag;
extern Remote_Data Remote_RxData;
extern rc_info_t rc;
extern uint8_t dbus_buf[];
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
extern void dbus_uart_init(void);
extern void uart_receive_handler(UART_HandleTypeDef *huart);
#endif