private double spikeThreshold = 1.0;
private double changeThreshold = .001;
public GRTADXL345(int slot, int range, int polltime, String id) {
this.range = range;
accel = new ADXL345DigitalAccelerometer(slot);
accel.intitialize();
setRange(range);
setState("X", 0.0);
setState("Y", 0.0);
setState("Z", 0.0);