diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 9 | ||||
-rw-r--r-- | src/main.h | 2 |
2 files changed, 5 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp index f1f2cd8..f1f192c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -43,7 +43,7 @@ covCallback(const message &msg, State &mu, const Quaterniond &q) } void -imgCallback(const message *msg) +imgCallback(const message &msg) { return; } @@ -127,11 +127,10 @@ parseLine(char *line, message *data) &data->utm.up); } else if (!strcmp(msg_type,"IMG")) { data->msg_type = IMG; - char *lfn,*rfn; + char *lfn; lfn = strsep(&line, ","); sscanf(lfn, "%s", &data->image_names); - rfn = strsep(&line, ","); - sscanf(rfn, "%s", &data->image_names+1); + sscanf(line, "%s", &data->image_names[1]); } else if (!strcmp(msg_type,"inscovs")) { double pos[9]; double att[9]; @@ -242,7 +241,7 @@ while (scanf("%s", line)!=EOF) { break; case IMG: - imgCallback(&msg); + imgCallback(msg); break; case INSPVAS: @@ -21,7 +21,7 @@ int parseLine(char *line, message *msg); timestamp update_dt(const timestamp t, timestamp *t_old); void covCallback(const message &msg, Matrix<double,9,9> &P, const Quaterniond &q); -void imgCallback(const message *msg); +void imgCallback(const message &msg); void imuCallback(const message &msg, State &mu, const Quaterniond &q, const timestamp dt); void pvaCallback(const message &msg, Matrix<double,9,1> &X, Quaterniond &q); void utmCallback(const message &msg, State &mu); |