diff options
author | Michael Turvey <mwturvey@users.noreply.github.com> | 2018-01-06 11:24:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-06 11:24:57 -0700 |
commit | 6b565075dd0d48e663fbac5291387ed0dde46be6 (patch) | |
tree | e3a6ae909454f42285bbf4e0101df27d00afb991 /src | |
parent | 2b68b58bc55ffc4a08440b11558aa83974ae73d7 (diff) | |
parent | e642395e61691a6dab749c2085410117d88956f5 (diff) | |
download | libsurvive-6b565075dd0d48e663fbac5291387ed0dde46be6.tar.gz libsurvive-6b565075dd0d48e663fbac5291387ed0dde46be6.tar.bz2 |
Merge pull request #93 from mwturvey/MakeTrackingGood
A few changes to test.c
Diffstat (limited to 'src')
-rw-r--r-- | src/survive_process.c | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/src/survive_process.c b/src/survive_process.c index 1df24e9..0f19007 100644 --- a/src/survive_process.c +++ b/src/survive_process.c @@ -66,45 +66,45 @@ void survive_default_angle_process( SurviveObject * so, int sensor_id, int acode void survive_default_button_process(SurviveObject * so, uint8_t eventType, uint8_t buttonId, uint8_t axis1Id, uint16_t axis1Val, uint8_t axis2Id, uint16_t axis2Val) { // do nothing. - printf("ButtonEntry: eventType:%x, buttonId:%d, axis1:%d, axis1Val:%8.8x, axis2:%d, axis2Val:%8.8x\n", - eventType, - buttonId, - axis1Id, - axis1Val, - axis2Id, - axis2Val); - if (buttonId == 24 && eventType == 1) // trigger engage - { - for (int j = 0; j < 6; j++) - { - for (int i = 0; i < 0x5; i++) - { - survive_haptic(so, 0, 0xf401, 0xb5a2, 0x0100); - //survive_haptic(so, 0, 0xf401, 0xb5a2, 0x0100); - OGUSleep(1000); - } - OGUSleep(20000); - } - } - if (buttonId == 2 && eventType == 1) // trigger engage - { - for (int j = 0; j < 6; j++) - { - for (int i = 0; i < 0x1; i++) - { - survive_haptic(so, 0, 0xf401, 0x05a2, 0xf100); - //survive_haptic(so, 0, 0xf401, 0xb5a2, 0x0100); - OGUSleep(5000); - } - OGUSleep(20000); - } - } + //printf("ButtonEntry: eventType:%x, buttonId:%d, axis1:%d, axis1Val:%8.8x, axis2:%d, axis2Val:%8.8x\n", + // eventType, + // buttonId, + // axis1Id, + // axis1Val, + // axis2Id, + // axis2Val); + //if (buttonId == 24 && eventType == 1) // trigger engage + //{ + // for (int j = 0; j < 6; j++) + // { + // for (int i = 0; i < 0x5; i++) + // { + // survive_haptic(so, 0, 0xf401, 0xb5a2, 0x0100); + // //survive_haptic(so, 0, 0xf401, 0xb5a2, 0x0100); + // OGUSleep(1000); + // } + // OGUSleep(20000); + // } + //} + //if (buttonId == 2 && eventType == 1) // trigger engage + //{ + // for (int j = 0; j < 6; j++) + // { + // for (int i = 0; i < 0x1; i++) + // { + // survive_haptic(so, 0, 0xf401, 0x05a2, 0xf100); + // //survive_haptic(so, 0, 0xf401, 0xb5a2, 0x0100); + // OGUSleep(5000); + // } + // OGUSleep(20000); + // } + //} } void survive_default_raw_pose_process(SurviveObject * so, uint8_t lighthouse, FLT *pos, FLT *quat) { // 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]); + //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]); } |