Skip to content

Commit 2436155

Browse files
author
UQ Times
committed
意味は変わらないが計算式の"()"が足りなかったので追加
1 parent b923068 commit 2436155

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UIAccelerometerSample/UIAccelerometerSample/ViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ -(void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAccelerat
8282

8383
/* High-pass filter */
8484
_highpass.x = acceleration.x - ((acceleration.x * filteringFactor) + (_highpass.x * (1.0 - filteringFactor)));
85-
_highpass.y = acceleration.y - ((acceleration.y * filteringFactor) + _highpass.y * (1.0 - filteringFactor));
86-
_highpass.z = acceleration.z - ((acceleration.z * filteringFactor) + _highpass.z * (1.0 - filteringFactor));
85+
_highpass.y = acceleration.y - ((acceleration.y * filteringFactor) + (_highpass.y * (1.0 - filteringFactor)));
86+
_highpass.z = acceleration.z - ((acceleration.z * filteringFactor) + (_highpass.z * (1.0 - filteringFactor)));
8787
[self moveLabel:self.highpassFilterLabel x:_highpass.x y:_highpass.y];
8888
}
8989

0 commit comments

Comments
 (0)