aboutsummaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2018-03-11 23:31:47 -0600
committerJustin Berger <j.david.berger@gmail.com>2018-03-11 23:31:47 -0600
commit7fadeeff29074520224be385ecd6c50271a07220 (patch)
tree396b1e3cbdc6472714ce4af2fec9713be5e1168e /test.c
parent4b0583e11983cf2446ccbda9b6115d506f781bca (diff)
downloadlibsurvive-7fadeeff29074520224be385ecd6c50271a07220.tar.gz
libsurvive-7fadeeff29074520224be385ecd6c50271a07220.tar.bz2
FLT* -> SurvivePose*
Diffstat (limited to 'test.c')
-rw-r--r--test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test.c b/test.c
index ef7ae45..bc9677a 100644
--- a/test.c
+++ b/test.c
@@ -84,12 +84,12 @@ void testprog_button_process(SurviveObject * so, uint8_t eventType, uint8_t butt
}
}
-void testprog_raw_pose_process(SurviveObject * so, uint8_t lighthouse, FLT *pose)
-{
+void testprog_raw_pose_process(SurviveObject *so, uint8_t lighthouse, SurvivePose *pose) {
survive_default_raw_pose_process(so, lighthouse, pose);
// print the pose;
- printf("Pose: [%1.1x][%s][% 08.8f,% 08.8f,% 08.8f] [% 08.8f,% 08.8f,% 08.8f,% 08.8f]\n", lighthouse, so->codename, pose[0], pose[1], pose[2], pose[3], pose[4], pose[5], pose[6]);
+ printf("Pose: [%1.1x][%s][% 08.8f,% 08.8f,% 08.8f] [% 08.8f,% 08.8f,% 08.8f,% 08.8f]\n", lighthouse, so->codename,
+ pose->Pos[0], pose->Pos[1], pose->Pos[2], pose->Rot[0], pose->Rot[1], pose->Rot[2], pose->Rot[3]);
}
void testprog_imu_process(SurviveObject * so, int mask, FLT * accelgyromag, uint32_t timecode, int id)