21 lines
702 B
C
21 lines
702 B
C
|
#ifndef COMMSER_H
|
||
|
#define COMMSER_H
|
||
|
|
||
|
#include "Arduino.h"
|
||
|
#include <Ticker.h> //调用Ticker.h库
|
||
|
#include "FoodDeliveryBase.h"
|
||
|
#include "config.h"
|
||
|
|
||
|
void mqtt_receiveCallback(char* topic, byte* payload, unsigned int length);
|
||
|
void mavThread();
|
||
|
void pubThread();
|
||
|
void flashThread() ;
|
||
|
void writeRoute(String topicStr);
|
||
|
void mavlink_receiveCallback(uint8_t c) ;
|
||
|
extern String topicPub[];
|
||
|
extern int topicPubCount;
|
||
|
extern FoodCube fc; //创建项目对象
|
||
|
extern Ticker pubTicker; //定时发布主题 线程
|
||
|
extern Ticker mavTicker; //定时 指定飞控mavlink 串口返回的数据类别 防止飞控启动滞后
|
||
|
extern Ticker flashTicker; //单片机主动 按钮主动发布主题 线程
|
||
|
#endif
|