summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorMartin Miller2017-03-31 16:36:05 -0500
committerMartin Miller2017-03-31 16:36:05 -0500
commit1c219e64d7e98cc622b4fbae8662a578ffc57053 (patch)
tree2976ba814515062f3b04aa7153e1f008d1bd5808 /src/main.cpp
parent57bc3c5b99406e2dfa04ce38de12ac2f4e749248 (diff)
downloadrefslam-1c219e64d7e98cc622b4fbae8662a578ffc57053.zip
refslam-1c219e64d7e98cc622b4fbae8662a578ffc57053.tar.gz
height measurement flags
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 1de5b29..c7ed177 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -31,12 +31,12 @@ double
aboveWater(const Quaterniond &q)
{
Vector3d tip;
-#ifdef DOHEIGHT
+#ifdef HEIGHT_FROM_ATTITUDE
tip << CANOECENTER*3.43, 0, CANOEHEIGHT;
tip = q._transformVector(tip);
-#else /* ----- not DOHEIGHT ----- */
+#else /* ----- not HEIGHT_FROM_ATTITUDE ----- */
tip[2] = CANOEHEIGHT;
-#endif /* ----- not DOHEIGHT ----- */
+#endif /* ----- not HEIGHT_FROM_ATTITUDE ----- */
return tip[2];
}
@@ -78,11 +78,12 @@ imgCallback(message &msg, State &mu, Camera &cam, const Quaterniond &q)
{
if (seenutm && seenpva && seencov) {
std::vector<measurement_t> z;
-
+#ifdef MEASURE_HEIGHT
measurement_t height;
height.z_type = HEIGHT;
height.height = aboveWater(q);
z.push_back(height);
+#endif
strcat(msg.image_names[0],".txt");
FILE *fin;