LPS Node as Tag and Anchor

All discussions related to the Loco Positioning system
Post Reply
HuzayfaaN
Beginner
Posts: 2
Joined: Mon Nov 26, 2018 2:20 pm

LPS Node as Tag and Anchor

Post by HuzayfaaN » Mon Dec 03, 2018 12:07 pm

Hi All,

I'm currently working on a Final-Year Project at University and using the Crazyflie 2.0 along with its decks and primarily the LPS. I wanted some insight on if whether what we have in mind is feasible and can be achieved.

We are looking to interchange the configuration mode of the LPS Nodes (between an Anchor and Tag) during flight with the Crayflie 2.0, so that we can achieve a moving LPS environment.

So, to explain this further and for clarity, we intend to start with a specific configuration (as we would with the LPS) and provide manoeuvrability to each of the six anchors. All six nodes would never move together, but rather each one would move in turn respectively - to either expand the defined space or shift the boundaries (i.e. move the LPS defined environment along a corridor or room). As of my current understanding, to move a LPS node it would now need to be configured as a tag, so that it can reference the other anchors and move accurately within the initially configured LPS environment. Once it has reached its new location, I would like it to hold position and now behave as an Anchor. This process would be repeated with the next LPS Node and so on, and all this would be happening whilst the Crazyflie 2.0 is in flight (using the LPS configuration to progress with that flight).

Any help or guidance would be very much appreciated!

Thanks in advance for your support! :D

Huzayfaa

arnaud
Bitcraze
Posts: 1826
Joined: Tue Feb 06, 2007 12:36 pm

Re: LPS Node as Tag and Anchor

Post by arnaud » Wed Dec 05, 2018 9:04 am

Hi Huzayfaa,

This should be technically feasible, though I can think of a couple of things to look at/think about.

The first one is that you need two tag to work simultaneously in your system. For this you will need either one of the TDoA mode or TWR-TDMA (a TWR mode that uses TDMA timeslots to avoid collision). If you only have 6 anchors and you want to switch one off some time TWR would seem better though TWR-TDMA is not the most tested things now that TDoA2/3 is stable. The problem of TDoA is that you need to be within the anchor convex hull to get good performance, one way could be to add a Z-Ranger to the Crazyflie which allows to get good performance as long as you are in the horizontal convex hull (Z is estimated from the z-ranger and X/Y from the LPS), the Crazyflie EKF should handle that pretty much out of the box.

Then, to switch the anchors in tag mode you need a tag implementation in the nodes. For TWR there is a tag implementation that does not support TDMA (could be ported from Crazyflie easily) and outputs ranges. For TDoA the sniffer mode can be use to implement a tag. The problem is that there is no position estimation implemented in the LPS nodes and so you will need to implement a full tag and the position algorithm for it. To some extent it can be ported from the Crazyflie but the nodes have a much weaker CPU so it should be made carefully (maybe accumulating readings and then estimating position out of them as a batch rather than real time positioning). In that sense the easiest would be to use Crazyflies as Anchor and switching them to tag when they need to move (as a bonus they might even be able to move by themselves ;). Porting the anchor code to the Crazyflie would be much easier and straightforward than porting the tag code to the nodes.

I hope that helps you get going, do not hesitate if you have mode questions. Also please update us of your progress if you can, this is a really interesting concept :).

/Arnaud

HuzayfaaN
Beginner
Posts: 2
Joined: Mon Nov 26, 2018 2:20 pm

Re: LPS Node as Tag and Anchor

Post by HuzayfaaN » Wed Dec 05, 2018 12:31 pm

Hi Arnaud,

Thanks a lot for the detailed reply.

Most of it I understand and will now start looking into the concept in more detail.

And sure, I will keep you guys posted :)

Huzayfaa

Post Reply