Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - JPannetier

Pages: [1]
General Discussion / Re: IMU Brick 2.0 + Wifi
« on: October 23, 2018, 11:29:18 »
Ok, thank.
I'll order this.

General Discussion / IMU Brick 2.0 + Wifi
« on: October 22, 2018, 20:17:24 »
Hello ,

I'm writing you about your IMU Brick 2.0.
I could use this module alone with a Wifi master Brick or I need to add a Master Brick ?

Thank you

Hello everybody,

I'm trying to implement a code (Python) to get position x y z from IMU Brick 2.0 accelerometer, in live mode.
In the first step, I implemented the rotate accelerometer by quaternion to remove the gravity and rotation of my sensor.
After i integrate directly to have velocity and position :
example :
Vx(k) = Vx(k-1)+Ax(k)*dt
X(k) = X(k-1) + Vx(k)*dt 

Nevertheless, into my accel. data I have an offset.

Somebody would have already implemented this type of code to remove the offset (drift) ? to get the position

I don't know if i must a kalman filter or other....

Thank you

General Discussion / Re: Pb IMU Brick 2.0 with Python 3.6
« on: July 17, 2018, 21:29:32 »

It's working now.
Sorry for my mistake.
Thank you very much for your support.

Best regard Jérôme

General Discussion / Re: Pb IMU Brick 2.0 with Python 3.6
« on: July 17, 2018, 11:50:06 »
I'm using a Brick IMU 2.0 with its example :

When I opened the source of Brick IMU 2.0, i can notice :
Into communication.c :

void get_quaternion(const ComType com, const GetQuaternion *data) {
   GetQuaternionReturn gqr;

   gqr.header        = data->header;
   gqr.header.length = sizeof(GetQuaternionReturn);
   gqr.x             = sensor_data.qua_x;
   gqr.y             = sensor_data.qua_y;
   gqr.z             = sensor_data.qua_z;
   gqr.w             = sensor_data.qua_w;

   send_blocking_with_timeout(&gqr, sizeof(GetQuaternionReturn), com);

And into communication.h

typedef struct {
   MessageHeader header;
   int16_t w;
   int16_t x;
   int16_t y;
   int16_t z;
} __attribute__((__packed__)) GetQuaternionReturn;


General Discussion / Re: Pb IMU Brick 2.0 with Python 3.6
« on: July 16, 2018, 12:08:57 »
Hi Photron,

I have a IMU Brick 2.0.
And I have this error when i'm using your example of IMU Brick 2.0....

Best regard

General Discussion / Pb IMU Brick 2.0 with Python 3.6
« on: July 15, 2018, 13:00:31 »
Hello ,

I'm using Python 3.6.

I can run the example to emunerate my device.
When I'm using from IMU brick 2.0.
I have an error message from  imu.get_quaternion()

 in get_quaternion
    return GetQuaternion(*self.ipcon.send_request(self, BrickIMU.FUNCTION_GET_QUATERNION, (), '', 'f f f f'))

  File "C:\Users\JPannetier\Anaconda3\lib\site-packages\tinkerforge\", line 1194, in send_request
    return unpack_payload(response[8:], form_ret)

  File "C:\Users\JPannetier\Anaconda3\lib\site-packages\tinkerforge\", line 251, in unpack_payload
    x = struct.unpack(f, data[:length])

error: unpack requires a buffer of 4 bytes

Thank you
Best regard

Pages: [1]