Loco Positioning System and Python API #1547
Replies: 2 comments 1 reply
-
Hi! This sounds like a fun experiment! It sounds like what you are struggling with is how to turn on the beacons from the script. Is this correct? Unfortunately this is not possible, and you need in that case to connect them to a power source which you can control via the script. Maybe a scriptable USB-hub or remote controlled power plug or something similar could work? Once the nodes are configured once, they will keep their configuration until its removed. You have already found a suitable way to configure them right? If the Crazyflie has a loco deck on board it will detect the beacons when it starts up and will then fly using this positioning. So you can use any positioning example as a base. Hope this answer helps you to solve your issue! |
Beta Was this translation helpful? Give feedback.
-
Good morning, Thank you very much for your answer, it has been a great help, I think I can start the experiment. From the Python API I am trying to do the following: Define the position of the anchors def set_anchors(cf): But the following error is displayed: raise KeyError(‘{} not in param TOC’.format(complete_name)) Maybe you are not setting the correct variables to set the initial positions? Thanks again. |
Beta Was this translation helpful? Give feedback.
-
Good morning, everyone,
I'm trying to do an experiment with Loco Node Positioning.
The idea is, once the 8 positioning beacons are configured, the idea is to turn them on, turn on the Crazyflie and then initialize the positions of each one of them and be able to do a controlled flight with positioning inside the flight rectangle provided by the positioners.
I want to do all this from the Python API but I can't find a clear example, I only see an example that sets the beacons in bootloader mode.
The configuration specifications of the 8 beacons I have acquired from: https://www.bitcraze.io/documentation/tutorials/getting-started-with-loco-positioning-system/#update-the-nodes
Thank you very much for everything in advance.
Best regards :-)
Beta Was this translation helpful? Give feedback.
All reactions