RPi2 + Spectrum DX6i + Spectrum DSMX

Hi Guys

I´m currently struggling with one of my own projects for the university.
I found during my research a python script reading the DSMX-Receiver via UART on the Raspberry Pi 2.

The Link to the mentioned code can be found here.

I need to port this Code to C/C++ to integrate it into my software running on the Raspberry Pi.

We use the Rpi2 in combination with a PiCam to ensure autonomous flight via Computer Vision.

Reading the data from the DSMX-Module is only necessary during take off and landing. Once reached the desired height we change to autonomous flightmode.

I have tested the python-script and it seems to work for my needs. However, I have no clue about python and so I´m unable to port this Code to C/C++.

Analysing the Python-Code my first Question might be...what does unpack() exactly do? The doc about that function was not realy helpful to me.

I appreciate your help.

Thanks in advance!


Daniel

PS: If you need parts of my C/C++ Code let me know.

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Activity