Streaming multiple crazyflie positions from LPS over UDP

All discussions related to the Loco Positioning system
Post Reply
mad
Beginner
Posts: 1
Joined: Wed Jul 03, 2019 2:45 pm

Streaming multiple crazyflie positions from LPS over UDP

Post by mad »

I want to broadcast the current positions (and states) of several crazyflies over UDP as they are flying. My two critical parameters are:
  • Absolute Position Estimate
  • Battery Level
I see these parameters being visualized when I'm running cfclient, but I can't find the callbacks in the source code. Can someone point me in the right direction?
kimberly
Bitcraze
Posts: 1050
Joined: Fri Jul 06, 2018 11:13 am

Re: Streaming multiple crazyflie positions from LPS over UDP

Post by kimberly »

Hi!

The cfclient is build upon the cflib library, from which you can find the source code in the repository crazyflie-lib-python here: https://github.com/bitcraze/crazyflie-clients-python. In examples you have the basiclog.py and basiclogsync.py which explains how to get log data.

These are the logs you should look at, which you can double check with the cflient:
Absolute Position Estimate:
- kalman.stateX
-kalman.stateY
-kalman.stateZ
BatteryLevel:
-pm.vbat
Post Reply