Page 1 of 1
Receive Crazyflie Data
Posted: Tue Nov 12, 2019 9:17 am
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!
Re: Receive Crazyflie Data
Posted: Tue Nov 12, 2019 2:41 pm
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