Pointcloud while flying

Discussions about all things Bitcraze
Post Reply
5ahif
Beginner
Posts: 4
Joined: Tue Nov 30, 2021 9:46 am

Pointcloud while flying

Post by 5ahif »

We have trouble using the Pointcloud mapping while flying with our custom code, we tried threading as you can see in the attachment. The Pointcloud window opens but it isnt showing any dots.
Attachments
sbs_motion_commander.py
(17.61 KiB) Downloaded 84 times
kimberly
Bitcraze
Posts: 1050
Joined: Fri Jul 06, 2018 11:13 am

Re: Pointcloud while flying

Post by kimberly »

Hi!

So I assume that you are using the flowdeck + multiranger combo right? Have you tried the standard pointcloud script before and does that work for you?

Your script is quite big so we can't really determine where it really goes wrong. It might be that you need the update the vispy canvas regularly while flying, but that is perhaps an more general python library question I would say.

A good thing to start out with, is to make a much simpler script than this, where you just have the crazyflie take off and plot random points at the same time.
Post Reply