Line 95:
Line 95:
printf("\x1b[1;0HWii Remote Info \n");
printf("\x1b[1;0HWii Remote Info \n");
−
//print gforce data for x, y, and z
+
//print gforce data for x, y, and z
printf("\x1b[2;0HGForce x: %1.3f \n", data.gforce.x);
printf("\x1b[2;0HGForce x: %1.3f \n", data.gforce.x);
printf("\x1b[3;0HGForce y: %1.3f \n", data.gforce.y);
printf("\x1b[3;0HGForce y: %1.3f \n", data.gforce.y);
Line 103:
Line 103:
//get and print the rotation orientation
//get and print the rotation orientation
xRotation = (int)data.orient.roll;
xRotation = (int)data.orient.roll;
−
yRotation = (int)data.orient.pitch;
+
yRotation = (int)data.orient.pitch;
−
zRotation = (int)data.orient.yaw;
+
zRotation = (int)data.orient.yaw;
if(xRotation<0){
if(xRotation<0){