I'm looking for clues, pointers (no pun), and search term suggestions on where to start looking for a way to record accelerometer data to a csv file and possibly email/ftp it out. I'm new to Obj C so I'm not quite sure where to start.
I found this simple accelerometer tutorial that displays the data I want to record.
http://www.switchonthecode.com/tutorials/iphone-tutorial-reading-the-accelerometer
In MainViewController.m starting at line 44 I found this:
I'm guessing that somewhere in that method I could capture the accelerometer data and write to a file.
Thanks for any ideas,
Robert
I found this simple accelerometer tutorial that displays the data I want to record.
http://www.switchonthecode.com/tutorials/iphone-tutorial-reading-the-accelerometer
In MainViewController.m starting at line 44 I found this:
Code:
- (void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration {
labelX.text = [NSString stringWithFormat:@"%@%f", @"X: ", acceleration.x];
labelY.text = [NSString stringWithFormat:@"%@%f", @"Y: ", acceleration.y];
labelZ.text = [NSString stringWithFormat:@"%@%f", @"Z: ", acceleration.z];
self.progressX.progress = ABS(acceleration.x);
self.progressY.progress = ABS(acceleration.y);
self.progressZ.progress = ABS(acceleration.z);
}
I'm guessing that somewhere in that method I could capture the accelerometer data and write to a file.
Thanks for any ideas,
Robert