Lighthouse positioning for F1/10 vehicles #218
-
Hi, we are planning on switching to lighthouse positioning from motion capture in our lab. For the crazyflie drones the transition seem to be straight forward. However, we also use autonomous f1tenth cars equipped with an Nvidia Jetson TX2 computer board. We would like to connect the lighthouse deck to this board as it has UART and I2C communication ports. In your opinion what is the easiest way to retrieve the position data from the deck? Which part(s) of the crazyflie firmware could we use or do you have any sample code snippets that would help? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi, What you want to do will require some work, but I think it will be doable. I will try to outline what the code is doing, to help you understand what you need to do if you want to connect the lighthouse deck to some other device than a Crazyflie.
Files that are located in You can choose how much of this process you want to reuse, but you will probably need most of steps 1-4 to get any useful data (sweep angles). After that you can chose how to process them, depending on your setup. Another option is to use a Crazyflie (or Bolt) on your platform as an intermediate step and extract data at an appropriate level for further processing in your platform. |
Beta Was this translation helpful? Give feedback.
Hi,
this sounds like an exciting project!
What you want to do will require some work, but I think it will be doable. I will try to outline what the code is doing, to help you understand what you need to do if you want to connect the lighthouse deck to some other device than a Crazyflie.
lighthouseCoreInit()
. This will get data from the persistent storage and initialize the memory mapping system that is used to read/write data from a PC.lighthouseDeckFlasherCheckVersionAndBoot()
boots the deck via i2c.