Skip to content Skip to sidebar Skip to footer

Pushing Accelerometer Data Into An Array

I'm having trouble recording the Z-axis data from the accelerometer in an array. I think I'm probably failing on some basic java rules, but here's what I'm trying to do: privat

Solution 1:

Its because your ArrayList of Float[] type.

Replace the following,

private ArrayList<Float[]> z = new ArrayList<Float[]>();

with

 ArrayList<Float> z = new ArrayList<Float>();

Post a Comment for "Pushing Accelerometer Data Into An Array"