Skip to content
Snippets Groups Projects
Commit 9b682530 authored by burneykb's avatar burneykb
Browse files

Printing out vrpn data for testing with esp/zybo

parent bf75b6ce
No related branches found
No related tags found
No related merge requests found
......@@ -219,7 +219,6 @@ int main(int argc, char **argv)
.tv_usec = 0
};
sleep(3);
while(keepRunning)
{
fd_set rfds;
......@@ -334,7 +333,7 @@ void sendVrpnPacket(struct ucart_vrpn_TrackerData *info) {
char checksum = 0;
int i;
for(i=0; i < pSize - 1; i++)
for(i=0; i < pSize - 1; i++)
checksum ^= packet[i];
packet[pSize - 1] = checksum; //PACKET_END_BYTE;
......@@ -345,6 +344,12 @@ void sendVrpnPacket(struct ucart_vrpn_TrackerData *info) {
keepRunning = 0;
}
printf("vrpn packet : '");
for(int i = 0; i < pSize; ++i) {
printf(" %0x ");
}
printf("'\n");
struct timeval tstart;
gettimeofday(&tstart, NULL);
timeArr[currMessageID%MAX_HASH_SIZE] = tstart;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment