|Subject:||Re: [Paparazzi-devel] Paparazzi run on STM32F4 Discovery board|
|Date:||Sat, 20 Dec 2014 12:33:34 +0000|
|Hi Kyaw, |
I'm working on something similar. I bought the 10 dof IMU from Drotek in France, though there are apparently cheaper alternatives.
I installed paparazzi from source on a ubuntu VM, the instructions on the wiki were easy to follow. You need the paparazzi software, and an ARM toolchain and flash tool for the dev board all installed - I think the wiki covers this. Once that is complete, you can create an airframe xml file for the board, compile and upload that to the dev board (in the paparazzi centre). I have a very basic airframe file here https://github.com/cuaf/Paparazzi-Config which you could use as a basic example. It's set up for fixed wing with the STM32F4 Discovery and the 10 DoF IMU. It is mostly based on other examples, but at least compiles, provides telemetry information, data from the IMU, and expects PPM rc input.
To get telemetry from the board you need a USB-TTL converter (like the FTDI chips). These are really cheap. Hook it up to UART2 on the dev board (if you're using my example), or whatever port is specified as the MODEM_PORT in the config file. Then, in the paparazzi centre, run the "Flight-Serial USB 57600" and the ground station software will pop up. You can then run the "messages" program found under the "tools" menu of the paparazzi centre to view raw telemetry messages too. From here you can look at calibrating the IMU (look at the wiki), and setting up the board to read PPM inputs from your remote control (to read a PPM stream you need an extra 100-200 ohm resistor from the ppm input signal pin to ground - I was stuck on this for a couple of days).
That's as far as I've got, though it all seems to work so far. Next I need to put it in a plane and check servos etc. I'm going to test it with a Hobbyking Bixler 2.
Hope that helped, and good luck!
On 20 Dec 2014, at 03:07, kyaw khaing <address@hidden> wrote:
|[Prev in Thread]||Current Thread||[Next in Thread]|