문제

I am sort of confused on how to access gyroscope data from the wiimotion plus using the wiimote lib beta 1.8. I know for the accelerometer you would do something like this:

Wiimote.WiimoteState.AccelState.Values.X;

For the wiimotion plus, I first need to initialise it by:

Wiimote.InitializeMotionPlus();

After that, I am unsure on how to access the gyro values.

Any help is greatly appreciated.

도움이 되었습니까?

해결책

I made a stupid mistake. This is how it is done:

double x = Wiimote.WiimoteState.MotionPlusState.Values.X;
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top