P2P Communication; how to send float Values?
Posted: Thu Dec 16, 2021 12:42 pm
Hello Guys,
I have a problem regarding the Peer to Peer Communication of my Crazyflie Drones. I want the Drones to send P2P-Messages to eachother. The messages shall contain the x,y,z Positon estimated by the Kalman-Filter. I can obtain the Positions and print them to the console by useing DEBUG_PRINT(..). My Problem is that I cannot convert the float values to strings to send them via the P2P-Payload (common functions like sprintf, snprintf aren't working). Any suggestions?
I have a problem regarding the Peer to Peer Communication of my Crazyflie Drones. I want the Drones to send P2P-Messages to eachother. The messages shall contain the x,y,z Positon estimated by the Kalman-Filter. I can obtain the Positions and print them to the console by useing DEBUG_PRINT(..). My Problem is that I cannot convert the float values to strings to send them via the P2P-Payload (common functions like sprintf, snprintf aren't working). Any suggestions?