summaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorMartin Miller2017-03-17 21:31:12 -0500
committerMartin Miller2017-03-17 21:31:12 -0500
commit6e0de4f0d4fac653dde826712e81cee95b470195 (patch)
treef19eb814f3f375a9a1651a223b72b4de930a4667 /src/main.h
parent622d6805689aec4f6619c5e2edd026850d8c2498 (diff)
downloadrefslam-6e0de4f0d4fac653dde826712e81cee95b470195.zip
refslam-6e0de4f0d4fac653dde826712e81cee95b470195.tar.gz
Integration is implemented. But there are problems.
The coordinates are not working correctly. When I run integration on a known dataset the body seems to turn in the opposite direction of reality. It's probably best to change it to NED and FRD. Currenty it is ENU and RFU.
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.h b/src/main.h
index e3dd911..2139248 100644
--- a/src/main.h
+++ b/src/main.h
@@ -12,6 +12,8 @@
#include <Eigen/Dense>
#include <iostream>
+#include "body.h"
+
#define MAXLINE 8192
#define MAXFILENAME 1024
@@ -70,12 +72,13 @@ typedef struct {
} message;
int parseLine(char *line, message *msg);
+timestamp update_dt(const timestamp t, timestamp *t_old);
#ifdef USE_ROS
void imuCallback();
#else /* ----- not USE_ROS ----- */
void imgCallback(const message *msg);
-void imuCallback(const message &msg, Eigen::Matrix<double,9,1> &X, Eigen::Quaternion<double> &q);
+void imuCallback(const message &msg, Eigen::Matrix<double,9,1> &X, const Eigen::Quaternion<double> &q, const timestamp dt);
void pvaCallback(const message &msg, Eigen::Matrix<double,9,1> &X, Eigen::Quaternion<double> &q);
void utmCallback(const message &msg, Eigen::Matrix<double,9,1> &X);
#endif /* ----- not USE_ROS ----- */