New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access accelerometer without bridge.m #13

wants to merge 1 commit into
base: master


None yet
1 participant
Copy link

trivedigaurav commented Aug 1, 2014

No description provided.

def values(self):
if self.motion_manager.accelerometerData:
acceleration = self.motion_manager.accelerometerData.acceleration;

This comment has been minimized.


trivedigaurav Aug 1, 2014


This line causes a memory leak!

self.ball.velocity_x = self.bridge.ac_x * self.sensitivity
self.ball.velocity_y = self.bridge.ac_y * self.sensitivity

val = self.accelerometer.values

This comment has been minimized.


trivedigaurav Aug 4, 2014


Need to think about how to make this atomic. But here it doesn't really matter since we are using realtime updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment