Receive Crazyflie Data

Firmware/software/electronics/mechanics
Post Reply
juju
Beginner
Posts: 7
Joined: Mon Nov 11, 2019 4:19 am

Receive Crazyflie Data

Post by juju »

hi guys! I would like to receive data from the Crazyflie through a communication program through uart1 or uart2.
Tell me how to fix the code or other ways.
thanks!
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Receive Crazyflie Data

Post by arnaud »

Hi,
This is a non-obvious task so a little bit of context would help. Are you trying to interface an external sensor to the Crazyflie or use the Crazyflie as a sensor for an extrernal system, or else?

Without knowing more about what you want to achieve, I think a deck driver is likely the best place to start: https://www.bitcraze.io/docs/crazyflie- ... ster/deck/.

You can follow this howto to get some code running in the Crazyflie: https://www.bitcraze.io/docs/crazyflie- ... ter/howto/. Then you can look at the existing deck driver for inspiration of how to organize your code. For example the gtgps deck driver starts a task that both sends and receive data from UART1: https://github.com/bitcraze/crazyflie-f ... gps.c#L235
Post Reply