更新了一些代码
This commit is contained in:
+11
-10
@@ -28,11 +28,10 @@
|
||||
#define NRF_BINDING 1 /* 3Hz - 对频中 */
|
||||
#define CONNECTED 2 /* 常亮 - 已连接 */
|
||||
#define NRF_ERROR 4 /* 双闪 - NRF硬件错误 */
|
||||
|
||||
/* UART运行模式 */
|
||||
#define UART_UART 0
|
||||
#define UART_CMD 0
|
||||
#define UART_SBUS 1
|
||||
#define UART_CRFS 2
|
||||
#define UART_CRSF 2
|
||||
|
||||
/* ========================================================================
|
||||
* 全局变量
|
||||
@@ -42,18 +41,20 @@
|
||||
struct CONFIG
|
||||
{
|
||||
// 运行模式
|
||||
uint8 runModel;
|
||||
uint8 RunMode;
|
||||
// nrf24使用的通道
|
||||
uint8 nrf_ch;
|
||||
uint8 NrfCH;
|
||||
// nrf24使用的对频短语
|
||||
uint8 nrf_bindphr[6];
|
||||
uint8 BindPhr[6];
|
||||
// nrf24地址,40位
|
||||
uint8 nrf_addr[5];
|
||||
uint8 RxAddr[5];
|
||||
// 对频标志
|
||||
uint8 tx_magic;
|
||||
uint8 BindMagic;
|
||||
// 记录的发射机地址
|
||||
uint8 tx_addr[5];
|
||||
} config;
|
||||
uint8 TxAddr[5];
|
||||
// 回传频率
|
||||
uint8 TelemRate;
|
||||
} Config;
|
||||
|
||||
// nrf24l01接收的数据
|
||||
struct RFDATA
|
||||
|
||||
Reference in New Issue
Block a user