4G_module/custom/attr_broadcast/inc/attr_broadcast.h

46 lines
966 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef ATTR_BROADCAST_H
#define ATTR_BROADCAST_H
#include "cm_os.h"
#include "nmea/nmea.h"
#define DEBUG(fmt, arg...)
// 景点信息
typedef struct {
double longitude; // 经度
double latitude; // 纬度
char name[50]; // 景点名称
char description[200]; // 景点描述
} Attraction;
//位置信息
typedef struct {
double longitude;
double latitude;
} Location;
extern const char *park_desc[];
//多文字tts景区播报专用
void safe_tts_play(const char* segments[], int count);
// 初始化景点播报系统
void attr_broadcast_init(void);
// 添加景点
void attr_broadcast_add_attraction(double lon, double lat,
const char* name, const char* desc);
// 停止景点播报任务
void attr_broadcast_stop(void);
// 设置播报距离阈值 (米)
void attr_broadcast_set_distance_threshold(double threshold);
#endif /* ATTR_BROADCAST_H */