Hi,

I am trying to get Accelerometer / Gyroscope data through Zigbee. One
sensor is set to Basestation and the other sensor is used as a sensor node.
I modified the SimpleAccel code such that it adds Gyroscope data and data
is transferred through Zigbee. I programmed 12 sensors with this code.
And, I am running into two issues.

1. All the sensors output gyroscope data correctly except two. One of these
two sensors seems outputting both Accelerometer and gyroscope data
correctly, but the other one outputs gyroscope data fine, and only one of
the three axis of accelerometer looks correct and not the other two axis
for accelerometer.

2.
===========================================================
      call shimmerAnalogSetup.addAccelnputs();
      call shimmerAnalogSetup.addGyroInputs();
      call shimmerAnalogSetup.finishADCSetup(sbuf0);

      NBR_ADC_CHANS = call shimmerAnalogSetup.getNumberOfChannels();
===========================================================

The lines that show the commands above are the part where it gets
Accelerometer and Gyroscope data and store into a buffer. When I got rid of
"call shimmerAnalogSetup.addGyroInputs();" line and added another line of
"call shimmerAnalogSetup.addAcceInputs();", I was expecting to get two sets
of accelerometer data(duplicated data). However, it gave me two sets of
gyroscope data. So, When I got rid of "call
shimmerAnalogSetup.addAccelnputs();"
line and added another line of "call shimmerAnalogSetup.addGyroInputs();",
it gave me accelerometer data. it looks like the data is reversed.

I am wondering if anyone ran into the similar issue and how you overcame
the issue.

Thanks,

Jay
_______________________________________________
Shimmer-users mailing list
[email protected]
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users

Reply via email to