//this initializes the input variables public JoviosAccelerometer(JoviosAccelerometerStyle newAccelerometerStyle) { accelerometerStyle = newAccelerometerStyle; gyro = Quaternion.identity; acceleration = Vector3.zero; JSON = "{'type':'accelerometer', 'style':'" + newAccelerometerStyle.ToString().ToLower() + "'}"; }
public void SetAccelerometerStyle(JoviosAccelerometerStyle newStyle) { accelerometerStyle = newStyle; JSON = "{'type':'accelerometer', 'style':'" + newStyle.ToString().ToLower() + "'}"; }