Closed huanghuayh closed 9 years ago
I'd really like to see that done, as I'm trying to get data from both the accelerometer and gyroscope to perform some sensor fusion algorithms
Sure, I have implement that in the following way:
Wow, it looks nice, can you send the whole code to ricardo.trindade743@gmail.com? Thanks in advance!
On Wed, Jul 15, 2015 at 5:22 PM, jingzhong1233 notifications@github.com wrote:
Sure, I have implement that in the following way:
- A pair of buttons start and stop are added to the mobile module.
- When the start button is pushed, a message is sent to the wear side, which turns on the sensor filter.
- the sensor filter is implemented using a member variable "is_filter_on" in the DeviceClient class. The corresponding code is attached.
- Currently, when the sensor filter is turned off, all data collected will be recorded to the folder /sdcard/sensor_data. I think you can pick the accelerator and gyroscope there.
[image: image] https://cloud.githubusercontent.com/assets/3975954/8703580/efcb999e-2aeb-11e5-8a80-f78ce780195b.png
— Reply to this email directly or view it on GitHub https://github.com/pocmo/SensorDashboard/issues/12#issuecomment-121667365 .
Currently, the mobile end revives only one type of sensor data at a time. However, when recording data into files, it is expected that all types sensor data being recorded at the same time.
To achieve this goal, I plan to implement a switch function to either turn on or turn off the sensor filter. When the data record button is pushed, the sensor filter will be disabled. When the stop button is pushed, the sensor filter will be enabled again.