Sequencer LED ring effect

Firmware/software/electronics/mechanics
Post Reply
maxmart
Beginner
Posts: 13
Joined: Thu Jan 07, 2021 2:28 am

Sequencer LED ring effect

Post by maxmart »

Hi,

I would like to ask regarding how the "17: Sequencer" LED ring effect works? I have seen the code, but unfortunately, I am not that good in understanding how it works. Will it only work when I use this effect using a Python script? If yes, can I ask how to do this. Thank you very much.
kristoffer
Bitcraze
Posts: 630
Joined: Tue Jun 30, 2015 7:47 am

Re: Sequencer LED ring effect

Post by kristoffer »

Hi!

There is a pyton example here: https://github.com/bitcraze/crazyflie-l ... dTiming.py

As far as I know the functionality is
1. Upload a sequence to the RAM of the Crazyflie. In the python example this is done in https://github.com/bitcraze/crazyflie-l ... py#L54-L65. I'm unfortunately not aware of the details for the sequence definition.
2. Switch to LED-ring effect 17. This is done in the final lines of the script
3. At this point everything is happening in the CF and the python side is not doing anything.

If you want the sequence to be available at startup of the CF you will have to modify the firmware instead. The easiest way is probably
to add an app, you can read more about the app layer here https://www.bitcraze.io/documentation/r ... app_layer/. Your app should pretty much do what the python script is doing: define the sequence and switch to LED-ring effect 17
maxmart
Beginner
Posts: 13
Joined: Thu Jan 07, 2021 2:28 am

Re: Sequencer LED ring effect

Post by maxmart »

Hi!

Thank you for this! I think I understand better because of the link you sent. I can try to play around with this more.

By any chance, would you know about this LED effect: "16: Location Server Status" ? Does this refer to the status of the Loco positioning system when it is set up with the anchors and deck?
kristoffer
Bitcraze
Posts: 630
Joined: Tue Jun 30, 2015 7:47 am

Re: Sequencer LED ring effect

Post by kristoffer »

"16: Location Server Status" is showing the status of the location service which is used by external positioning systems such as mocap systems.

Effect 18 is showing the reception of the lighthouse system, it is currently only implemented for lighthouse V1 systems
maxmart
Beginner
Posts: 13
Joined: Thu Jan 07, 2021 2:28 am

Re: Sequencer LED ring effect

Post by maxmart »

Thank you very much for this!
Post Reply