Accelerometer Calibration
kadinshino
Member Posts: 82
So iv been working on a new game that uses the accelerometer to its fullest. problem is i cant seem to get a proper calibration so the user can hold the phone or ipad how they want.
So far this is how i have the code working. The user will hold the phone how they like, then push the calibrate button. this will send the current angle of the accelerometer and use it as its base value.
Change Attribute Game.CalibrateX to Game.Calibratex+GameAccelerometer = new base angle.
Problem is the game salad dosent recognize values that are less then 1. so .90 wont work when adding it.
Any ideas how to go about calibrating this in another way?
So far this is how i have the code working. The user will hold the phone how they like, then push the calibrate button. this will send the current angle of the accelerometer and use it as its base value.
Change Attribute Game.CalibrateX to Game.Calibratex+GameAccelerometer = new base angle.
Problem is the game salad dosent recognize values that are less then 1. so .90 wont work when adding it.
Any ideas how to go about calibrating this in another way?
Comments