You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
928 B
29 lines
928 B
/**
|
|
* GPS定位类型
|
|
*/
|
|
|
|
// 适用于GPS_INPUT(https://mavlink.io/en/messages/common.html#GPS_INPUT)
|
|
export const GPS_FIX_TYPE = {
|
|
0: '无GPS',
|
|
1: '无定位',
|
|
2: '经纬定位',
|
|
3: '经纬高定位',
|
|
4: '差分GPS',
|
|
5: 'RTK定位',
|
|
};
|
|
|
|
// 适用于GPS2_RAW(https://mavlink.io/en/messages/common.html#GPS2_RAW)
|
|
// 依据https://mavlink.io/en/messages/common.html#GPS_FIX_TYPE
|
|
export const GPS_FIX_TYPE2 = new Map([
|
|
['GPS_FIX_TYPE_NO_GPS', '无GPS'],
|
|
['GPS_FIX_TYPE_NO_FIX', '无定位'],
|
|
['GPS_FIX_TYPE_2D_FIX', '经纬定位'],
|
|
['GPS_FIX_TYPE_3D_FIX', '经纬高定位'],
|
|
['GPS_FIX_TYPE_DGPS', '差分GPS'],
|
|
['GPS_FIX_TYPE_RTK_FLOAT', 'RTK浮点解'],
|
|
['GPS_FIX_TYPE_RTK_FIXED', 'RTK固定解'],
|
|
['GPS_FIX_TYPE_STATIC', '静态固定定位'],
|
|
['GPS_FIX_TYPE_PPP', '精密单点定位'],
|
|
]);
|
|
|
|
export const GPS_FIX_TYPE2_LABEL = [...GPS_FIX_TYPE2.values()];
|
|
|