summaryrefslogtreecommitdiff
path: root/src/body.cpp
diff options
context:
space:
mode:
authorMartin Miller2018-01-28 11:45:53 -0500
committerMartin Miller2018-01-28 11:45:53 -0500
commit0663fb75c6bc42ccd093bed66820e92541ed419c (patch)
tree10eef681bdb46d213fad69d55b0c89553151ef61 /src/body.cpp
parent72faa54ddcd07972f250a53098b0ecfbd08363df (diff)
downloadrefslam-0663fb75c6bc42ccd093bed66820e92541ed419c.zip
refslam-0663fb75c6bc42ccd093bed66820e92541ed419c.tar.gz
Add define for FEATUREMAP
This will print the feature information in the unicsv so that the mapper Makefile can create a feature map.
Diffstat (limited to 'src/body.cpp')
-rw-r--r--src/body.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/body.cpp b/src/body.cpp
index 3000eeb..e4024ae 100644
--- a/src/body.cpp
+++ b/src/body.cpp
@@ -343,16 +343,19 @@ Body::skewSymmetric ( const Vector3d &x )
} /* ----- end of method Body::skewSymmetric ----- */
void
-Body::unicsv ( )
+Body::unicsv ( const double time )
{
+#ifdef FEATUREMAP
+ printf("0,");
+#endif
#if STATESIZE==13
- printf("%d,%c,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f", utm_i, utm_c,
+ printf("%f,%d,%c,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f", time,utm_i, utm_c,
X[0], X[1], -X[2],
X[3], X[4], X[5],
X[6], X[7], X[8],X[9],
X[10],X[11],X[12]);
#else
- printf("%d,%c,%f,%f,%f,%f,%f,%f,%f,%f,%f", utm_i, utm_c,
+ printf("%f,%d,%c,%f,%f,%f,%f,%f,%f,%f,%f,%f", time,utm_i, utm_c,
X[0], X[1], -X[2],
X[3], X[4], X[5],
X[6], X[7], X[8]);