Just got my iPhone back from repairs and noticed something was not quite right... The Z axis from UDPWii were inverted... oops... X_X ...hopefully I got it right this time... Homebrew doesn't work and I don't have any way to test it... I did some improvements on the IR pointer math, but they are on my desktop and I'm away on vacation for a few weeks... X_X ... next time... WOL

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6112 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
dapetcu21 2010-08-20 14:14:27 +00:00
parent 168136a219
commit d5647ce997
2 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ void Nunchuk::GetState(u8* const data, const bool focus)
m_udpWrap->inst->getNunchuckAccel(x,y,z); m_udpWrap->inst->getNunchuckAccel(x,y,z);
accel->x=u8(x*(calib->one_g.x-calib->zero_g.x)+calib->zero_g.x); accel->x=u8(x*(calib->one_g.x-calib->zero_g.x)+calib->zero_g.x);
accel->y=u8(y*(calib->one_g.y-calib->zero_g.y)+calib->zero_g.y); accel->y=u8(y*(calib->one_g.y-calib->zero_g.y)+calib->zero_g.y);
accel->z=u8(z*(calib->one_g.z-calib->zero_g.z)+calib->zero_g.z); accel->z=u8(-z*(calib->one_g.z-calib->zero_g.z)+calib->zero_g.z);
} }
} }
//End UDPNunchuck //End UDPNunchuck

View File

@ -36,7 +36,7 @@ namespace UDPTLayer
m->inst->getAccel(x,y,z); m->inst->getAccel(x,y,z);
data->x=u8(x*(calib->one_g.x-calib->zero_g.x)+calib->zero_g.x); data->x=u8(x*(calib->one_g.x-calib->zero_g.x)+calib->zero_g.x);
data->y=u8(y*(calib->one_g.y-calib->zero_g.y)+calib->zero_g.y); data->y=u8(y*(calib->one_g.y-calib->zero_g.y)+calib->zero_g.y);
data->z=u8(z*(calib->one_g.z-calib->zero_g.z)+calib->zero_g.z); data->z=u8(-z*(calib->one_g.z-calib->zero_g.z)+calib->zero_g.z);
} }
void GetIR( UDPWrapper * m, float * x, float * y, float * z) void GetIR( UDPWrapper * m, float * x, float * y, float * z)