Jump to content

BrickletIMUV3.set_status_led_config


Groudaut

Recommended Posts

Hello,

First of all, I'm beginner with python and tinkerforge brick/briklet.

I have a system with hat brick + 2 IMU V3 Bricklet + 1 GPS V3 bricklet. My script run well to acquire data and do what I want, which is a good thing. But, I can't manage to set the status led config for IMU(s). I would like to set the led to heartbeat when my system is recording but I can't manage to do it.

I tried this after ipcon.connect(...) :

BrickletIMUV3.set_status_led_config(2)

It gives me this error :

TypeError: set_status_led_config() missing 1 required positional argument: 'config'

Does some one could help me for this ?

Thanks in advance

Link to comment
Share on other sites

You have to call "set_status_led_config(2)" on the IMU object you created before.

You probably have something like this in your code:

imu = BrickletIMUV3(UID, ipcon)

Afterwards, set the LED config like this:

imu.set_status_led_config(2)

Have a look at one of the IMU examples and note how "get_quaternion()" is used on the "imu" object.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...