Thanks I am now getting all the data is it possible to smooth the data as it still has a lot of noiseby violino - Coding
I tried yaw= atan2(gforce.x, gforce.z); and got no values for yaw also have no values for gforce.x the code I used is as follows WPAD_Orientation(WPAD_CHAN_0, &orient); struct expansion_t data; WPAD_Expansion(WPAD_CHAN_0, &data); data.nunchuk.orient_threshold = 0.5f; rquadnunchuklateral= atan2(data.nunchuk.gforce.x,data.nunchuk.gforce.z); also tried rquadnunby violino - Coding
orient.yaw is read only and the problem is that when I look at the data by using the code below I am getting values for orient.pitch and orient.roll but nothing for orient.yaw WPAD_Orientation(WPAD_CHAN_0, &orient); struct expansion_t data; WPAD_Expansion(WPAD_CHAN_0, &data); data.nunchuk.orient_threshold = 0.5f; rquadnunchuklateral = data.nunchuk.orient.yaw *by violino - Coding
I am aware that it does not have any infra red sensor but what I need to get is the orientation angle for yaw I am able to get values for orient.pitch and values for orient.roll but the orient.yaw value is always 0 is it ever possible to get a value for the orient.yaw and if so how?by violino - Coding
OK but how do I enable the Ir Tracking of the Nunchuk so that the orient.yaw is not always giving me 0by violino - Coding
I am trying to use the orient.yaw, orient.pitch and orient.roll data from the nunchuk to track the movements of the nunchuk but have two problems pitch and roll both work but by default the yaw data is always set to 0 The second issue is that I need to set a threshold so that not every change in the angles is an event. So I am after the orientation data of the nunchuk Hope that is clearerby violino - Coding
I need help about enabling the ir tracking for the nunchuk I have tried // wiiuse_set_nunchuk_orient_threshold(WPAD_CHAN_0, 1.0f); but no luck. Many thanks in advanceby violino - Coding