jdjones

About

Username
jdjones
Joined
Visits
100
Last Active
Roles
Member

Comments

  • (For anyone from the future reading this, the script has been updated.)
  • Thanks! I came to the same conclusion (and fixed the script) last night but haven't updated the repo yet. J.
  • All inertial measurement units (to my knowledge) measure quantities in the reference frame of the sensor body. This means if the orientation of the sensor changes over time, so will the reference frame in which it records acceleration readings. I'…
  • OK, I have a new question. I'm trying to log accelerometer and gyroscope data. When I download, I get the following error: Traceback (most recent call last):   File "_ctypes/callbacks.c", line 314, in 'calling callback function' TypeError: on_no…
  • Thanks! That resolved problem 1. I resolved problem 2 by waiting a little between calling teardown and disconnecting from the backend. J.
  • Thanks Eric. That's definitely what's happening. I looked into it a little more and figured out most of what's going on. I still have two issues though: 1. No matter what sample rate I set on the device, the accelerometer always samples at 6.25 Hz…
  • Hi all (especially @hbldh), I found the bug that was causing this error. Part of the __init__ file in the pymetawear root directory is out of date with the current metawear API. Specifically it's this section about 64-bit python compatibility: …
  • functions.py defines mbl_mw_datasignal_log in agreement with the API: libmetawear.mbl_mw_datasignal_log.restype= None libmetawear.mbl_mw_datasignal_log.argtypes= [c_void_p, Fn_VoidPtr]
  • Still working on logging data. When the mbientlab python unit tests for logging call mbl_mw_datasignal_log, the second argument (logger_ready) is of type Fn_VoidPtr. I noticed that I get a ctype error if I pass an argument of type Fn_VoidPtr, and th…
  • I've been trying to figure out how the example script log_acc.py works, and I'm confused by line 76: libmetawear.mbl_mw_datasignal_log(c.accelerometer.data_signal, cartesian_float_data, logger_ready) The way this function is called above doesn…
  • From what I've seen, estimating object orientation with respect to the world frame (e.g. in the form of quaternions or Euler angles) is the first step in 3D tracking. After this, people typically use the estimated orientation to convert accelerati…