diff options
author | cnlohr <lohr85@gmail.com> | 2018-03-10 23:57:58 -0500 |
---|---|---|
committer | cnlohr <lohr85@gmail.com> | 2018-03-10 23:57:58 -0500 |
commit | a2ba45f43ae02b1e39b1816fe9c1c70c54a7f046 (patch) | |
tree | b0a916dad0fb979e997d069a0f6c3184279e479a /src/survive_process.c | |
parent | 5ae3acb6d63301ac14beaebe692f5af680e65c26 (diff) | |
download | libsurvive-a2ba45f43ae02b1e39b1816fe9c1c70c54a7f046.tar.gz libsurvive-a2ba45f43ae02b1e39b1816fe9c1c70c54a7f046.tar.bz2 |
Switch from pos,quat to pose. Also change initialization order.
Diffstat (limited to 'src/survive_process.c')
-rw-r--r-- | src/survive_process.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/survive_process.c b/src/survive_process.c index 0f19007..1ea3061 100644 --- a/src/survive_process.c +++ b/src/survive_process.c @@ -59,6 +59,7 @@ void survive_default_angle_process( SurviveObject * so, int sensor_id, int acode .angle = angle, .lh = lh, }; + so->PoserFn( so, (PoserData *)&l ); } } @@ -101,7 +102,7 @@ void survive_default_button_process(SurviveObject * so, uint8_t eventType, uint8 //} } -void survive_default_raw_pose_process(SurviveObject * so, uint8_t lighthouse, FLT *pos, FLT *quat) +void survive_default_raw_pose_process(SurviveObject * so, uint8_t lighthouse, FLT *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, pos[0], pos[1], pos[2], quat[0], quat[1], quat[2], quat[3]); |