页面显示定位质量等数据,接收到结束信号并显示机器人下发任务 执行 暂停恢复成功 控制地图是否绘制实时轨迹

This commit is contained in:
mmc
2026-06-10 17:22:55 +08:00
parent 9e6280866c
commit c9bc863354
7 changed files with 275 additions and 86 deletions

View File

@@ -39,6 +39,17 @@ export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
export const getLocationQuality = (value) => {
const map = {
0: { text: '无效', color: '#ff4d4f' },
1: { text: 'GPS 单点定位', color: '#999' },
2: { text: 'DGPS 伪距差分/SBAS', color: '#1890ff' },
4: { text: 'RTK 固定解', color: '#52c41a' }, // 最优
5: { text: 'RTK 浮点解', color: '#faad14' },
};
return map[value] || { text: '未知', color: '#999' };
};
export function getToken() {
return Cookies.get(TokenKey)