weechat group
This commit is contained in:
parent
f3ad87f0f9
commit
80abce0756
164
analyse_serial_gps_info/1fps.txt
Normal file
164
analyse_serial_gps_info/1fps.txt
Normal file
@ -0,0 +1,164 @@
|
|||||||
|
[-66181],01/14 12:27:39 [INFO] agnss_fsm: FSM: waitfornext
|
||||||
|
|
||||||
|
[-66182],01/14 12:27:39 [INFO] qxwz_mem_get_max_alloc_size:308328
|
||||||
|
|
||||||
|
[-66183],01/14 12:27:39 [INFO] qxwz_mem_get_total_left_size:308496
|
||||||
|
|
||||||
|
[-66184],01/14 12:27:39 [INFO] decode_ubx: type=0215 len=184
|
||||||
|
|
||||||
|
[-66185],01/14 12:27:39 [INFO] decode_ubx: type=0107 len=100
|
||||||
|
|
||||||
|
[-66186],01/14 12:27:39 [INFO] error msg=RAW_PVTDATA:131278.000,2019,1,14,12,27,40,
|
||||||
|
|
||||||
|
|
||||||
|
[-66187],01/14 12:27:39 [INFO] error msg=RAW_PVTDATA:-293301,3,1,5,67.238,12.350,
|
||||||
|
|
||||||
|
|
||||||
|
[-66188],01/14 12:27:39 [INFO] error msg=RAW_PVTDATA:1.971186982004709,0.491821731713517,12.458,25.179,
|
||||||
|
|
||||||
|
|
||||||
|
[-66189],01/14 12:27:39 [INFO] error msg=RAW_PVTDATA:-0.0900,-0.1040,0.0670,0.8430,
|
||||||
|
|
||||||
|
|
||||||
|
[-66190],01/14 12:27:39 [INFO] error msg=RAW_PVTDATA_END:55,1
|
||||||
|
|
||||||
|
|
||||||
|
[-66191],01/14 12:27:39 [INFO] error msg=RAW_POS:-2193059.891455,5181392.423894,2994065.497433
|
||||||
|
|
||||||
|
|
||||||
|
[-66192],01/14 12:27:39 [INFO] error msg=RAW_OBSDATA:8,0,1,114131310.402990,21718466.399124,-1521.475586,34,0,3
|
||||||
|
|
||||||
|
|
||||||
|
[-66193],01/14 12:27:39 [INFO] error msg=RAW_OBSDATA:27,0,1,120940697.647435,23014247.385646,-3122.029785,50,0,0
|
||||||
|
|
||||||
|
|
||||||
|
[-66194],01/14 12:27:39 [INFO] error msg=RAW_OBSDATA:16,0,1,129547163.597146,24652007.565955,-2375.634521,43,0,0
|
||||||
|
|
||||||
|
|
||||||
|
[-66195],01/14 12:27:39 [INFO] error msg=RAW_OBSDATA:167,2,1,195710835.318496,37584217.522629,-101.132812,41,0,0
|
||||||
|
|
||||||
|
|
||||||
|
[-66196],01/14 12:27:39 [INFO] error msg=RAW_OBSDATA:189,2,1,124330790.133640,23876426.030732,-2317.595947,49,0,0
|
||||||
|
|
||||||
|
|
||||||
|
[-66197],01/14 12:27:39 [INFO] error msg=RAW_OBSDATA_END:5,2036, 131278.004000
|
||||||
|
|
||||||
|
|
||||||
|
[-66198],01/14 12:27:39 [INFO] error msg=~~~rtk_start
|
||||||
|
|
||||||
|
[-66199],01/14 12:27:39 [INFO] error msg=RAW_NETWORK:1
|
||||||
|
|
||||||
|
[-66200],01/14 12:27:39 [INFO] error msg=01187708 I 90[RE ]inject meas count=802 dgnss record=649 network=0
|
||||||
|
|
||||||
|
|
||||||
|
[-66201],01/14 12:27:39 [INFO] error msg=01187717 E 1616[ALGO ]sat error
|
||||||
|
|
||||||
|
|
||||||
|
[-66202],01/14 12:27:39 [INFO] error msg=01187717 E 1616[ALGO ]sat error
|
||||||
|
|
||||||
|
|
||||||
|
[-66203],01/14 12:27:39 [INFO] error msg=01187717 E 1616[ALGO ]sat error
|
||||||
|
|
||||||
|
|
||||||
|
[-66204],01/14 12:27:39 [INFO] error msg=01187717 E 1616[ALGO ]sat error
|
||||||
|
|
||||||
|
|
||||||
|
[-66205],01/14 12:27:39 [INFO] error msg=01187717 E 1616[ALGO ]sat error
|
||||||
|
|
||||||
|
|
||||||
|
[-66206],01/14 12:27:39 [INFO] error msg=01187717 E 1616[ALGO ]sat error
|
||||||
|
|
||||||
|
|
||||||
|
[-66207],01/14 12:27:39 [INFO] error msg=01187717 E 1616[ALGO ]sat error
|
||||||
|
|
||||||
|
|
||||||
|
[-66208],01/14 12:27:39 [INFO] error msg=01187717 E 1616[ALGO ]sat error
|
||||||
|
|
||||||
|
|
||||||
|
[-66209],01/14 12:27:39 [INFO] error msg=01187717 E 1616[ALGO ]sat error
|
||||||
|
|
||||||
|
|
||||||
|
[-66210],01/14 12:27:39 [INFO] error msg=01187717 E 1616[ALGO ]sat error
|
||||||
|
|
||||||
|
|
||||||
|
[-66211],01/14 12:27:39 [INFO] error msg=01187717 E 1616[ALGO ]sat error
|
||||||
|
|
||||||
|
|
||||||
|
[-66212],01/14 12:27:39 [INFO] error msg=01187717 E 1616[ALGO ]sat error
|
||||||
|
|
||||||
|
|
||||||
|
[-66213],01/14 12:27:39 [INFO] error msg=01187717 E 1616[ALGO ]sat error
|
||||||
|
|
||||||
|
|
||||||
|
[-66214],01/14 12:27:39 [INFO] error msg=01187717 E 1616[ALGO ]sat error
|
||||||
|
|
||||||
|
|
||||||
|
[-66215],01/14 12:27:39 [INFO] error msg=01187717 E 1616[ALGO ]sat error
|
||||||
|
|
||||||
|
|
||||||
|
[-66216],01/14 12:27:39 [INFO] error msg=01187717 E 1616[ALGO ]sat error
|
||||||
|
|
||||||
|
|
||||||
|
[-66217],01/14 12:27:39 [INFO] error msg=01187717 E 1616[ALGO ]sat error
|
||||||
|
|
||||||
|
|
||||||
|
[-66218],01/14 12:27:39 [INFO] error msg=01187722 E 1616[ALGO ]sat error
|
||||||
|
|
||||||
|
|
||||||
|
[-66219],01/14 12:27:39 [INFO] error msg=01187722 E 1616[ALGO ]sat error
|
||||||
|
|
||||||
|
|
||||||
|
[-66220],01/14 12:27:39 [INFO] error msg=01187722 E 1616[ALGO ]sat error
|
||||||
|
|
||||||
|
|
||||||
|
[-66221],01/14 12:27:39 [INFO] error msg=01187726 E 1616[ALGO ]sat error
|
||||||
|
|
||||||
|
|
||||||
|
[-66222],01/14 12:27:39 [INFO] error msg=01187726 E 1616[ALGO ]sat error
|
||||||
|
|
||||||
|
|
||||||
|
[-66223],01/14 12:27:39 [INFO] error msg=01187726 E 1616[ALGO ]sat error
|
||||||
|
|
||||||
|
|
||||||
|
[-66224],01/14 12:27:39 [INFO] error msg=01187731 E 1616[ALGO ]sat error
|
||||||
|
|
||||||
|
|
||||||
|
[-66225],01/14 12:27:39 [INFO] error msg=01187731 E 1616[ALGO ]sat error
|
||||||
|
|
||||||
|
|
||||||
|
[-66226],01/14 12:27:39 [INFO] error msg=01187736 E 1616[ALGO ]sat error
|
||||||
|
|
||||||
|
|
||||||
|
[-66227],01/14 12:27:39 [INFO] error msg=01187736 I 1764[ALGO ]rov obs=4, ref obs=0
|
||||||
|
|
||||||
|
|
||||||
|
[-66228],01/14 12:27:39 [INFO] error msg=01187736 I 2308[ALGO ]tor=131278.004000 GPST=131278.0040 UTC=2019/01/14 12:27:40.004 n=4 nu=4 nr=0 tt=1.000000
|
||||||
|
|
||||||
|
|
||||||
|
[-66229],01/14 12:27:39 [INFO] error msg=01187741 E 525[SYS ]rtkrmc=$GNRMC,122740.00,A,11256.441682,N,2810.758570,E,0.1,211.6,140119,,,A*44
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[-66230],01/14 12:27:39 [INFO] error msg=01187745 E 526[SYS ]rtkgga=$GNGGA,122740.00,11256.441682,N,2810.758570,E,1,05,67.2,12.458,M,0.0,M,,*43
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[-66231],01/14 12:27:39 [INFO] error msg=01187745 I 72[SYS ]request AGNSS data:(0x0)
|
||||||
|
|
||||||
|
|
||||||
|
[-66232],01/14 12:27:39 [INFO] qxwz mrtk algo success,rtkgga=$GNGGA,122740.00,11256.441682,N,2810.758570,E,1,05,67.2,12.458,M,0.0,M,,*43
|
||||||
|
|
||||||
|
|
||||||
|
[-66233],01/14 12:27:39 [INFO] rtkrmc=$GNRMC,122740.00,A,11256.441682,N,2810.758570,E,0.1,211.6,140119,,,A*44
|
||||||
|
|
||||||
|
|
||||||
|
[-66234],01/14 12:27:39 [INFO] send msg to qxwz rtk
|
||||||
|
|
||||||
|
[-66235],01/14 12:27:39 [INFO] qxwz_report_gga, flag = 1
|
||||||
|
|
||||||
|
[-66236],01/14 12:27:39 [INFO] qxwz_response, fusiongga=$GNGGA,122740.00,11256.441682,N,2810.758570,E,1,05,67.2,12.458,M,0.0,M,,*43
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[-66237],01/14 12:27:39 [INFO] qxwz_response fusionrmc=$GNRMC,122740.00,A,11256.441682,N,2810.758570,E,0.1,211.6,140119,,,A*44
|
||||||
|
|
63
analyse_serial_gps_info/v.cpp
Normal file
63
analyse_serial_gps_info/v.cpp
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
#include <iostream>
|
||||||
|
#include <fstream>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
bool match(const string &str)
|
||||||
|
{
|
||||||
|
return str.find("qxwz_response") < str.length();
|
||||||
|
}
|
||||||
|
|
||||||
|
string sub(const string &str)
|
||||||
|
{
|
||||||
|
string::size_type dolar = str.find("$");
|
||||||
|
if (dolar > str.length()) return "";
|
||||||
|
string ret = str.substr(dolar + 1);
|
||||||
|
while (ret.back() == '\r' || ret.back() == '\n' || ret.back() == ' ' || ret.back() == '\t') {
|
||||||
|
ret.pop_back();
|
||||||
|
}
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
vector<string> split(const string &str, const char ch)
|
||||||
|
{
|
||||||
|
vector<string> ret;
|
||||||
|
string::size_type pos = 0;
|
||||||
|
if (str.length()) {
|
||||||
|
for (;;) {
|
||||||
|
string::size_type next_pos = str.find(ch, pos);
|
||||||
|
if (next_pos > pos) {
|
||||||
|
ret.push_back(str.substr(pos, next_pos - pos));
|
||||||
|
} else {
|
||||||
|
ret.push_back("");
|
||||||
|
}
|
||||||
|
pos = next_pos + 1;
|
||||||
|
if (!pos) break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
void chk(const vector<string> &v)
|
||||||
|
{
|
||||||
|
cout << "###: ";
|
||||||
|
for (int i = 0; i < v.size(); i++) {
|
||||||
|
cout << "[" << v[i] << "], ";
|
||||||
|
}
|
||||||
|
cout << endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
ifstream fs("1fps.txt");
|
||||||
|
string line;
|
||||||
|
while (getline(fs, line)) {
|
||||||
|
if (match(line)) {
|
||||||
|
string target = sub(line);
|
||||||
|
vector<string> v = split(target, ',');
|
||||||
|
chk(v);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user