Flight controller with Arduino due

Started by ghoshatanu56, June 23, 2015, 03:47:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ghoshatanu56

I want to know if anybody has tried to port mutiwii or ardupilot to more capable,32 bit arduino due.i say it is more capable because it has more powerful interrupt handling capabilities than atmega 328 or atmega 2560.if yes then can somebody please give me some link to the code.and i choose ardupilot or multiwii because they have gcs

SP-KART

Hi Shantanu.. If you need any adruino products please feel free to go through our website. http://sp-kart.com. You will find many types of adruino products and parts.  ;)

saikat

multiwii has been ported to 32 bit - check out baseflight and cleanflight.
the  platform used is stm32 which is quite a bit cheaper than the Atmel SAM platform used
in the arduino due.


jayeshjain88

Rather port Pixhawk's PX4. It would give you much more advantage and would be really easy to port.

PX4 run on NuttX. px4 has support for lot of processors. Even Intel. Pixhawk has ARM Cortex M4, and arduino due M3.

NuttX has a ready port available for Arduino Due. So i don't think porting Pixhawk would be that difficult. Though i haven't seen entire PX4 code.
http://sourceforge.net/p/nuttx/git/ci/master/tree/nuttx/configs/arduino-due/README.txt

Though what you are talking about is done by some people. But none has able to show much advantage over arduino mega.
https://github.com/Jake-S/ArDuePilot <- this code runs at 150hz

saikat

Good link Jayesh - I did not know about the 2nd one

ghoshatanu56

THANKS EVERYBODY,BUT THESE WERE NOT THE WORK I WAS LOOKING FOR.WHAT I WAS EXACTLY LOOKING FOR IS SOME THING WHICH HAS BEEN WRITTEN IN ARDUINO LANGUAGE .
@saikat  BOTH BASEFLIGHT AND CLEARFLIGHT SEEMS TO HAVE BEEN WRITTEN IN STM STUDIO OR OTHER NON ARDUINO LANGUAGE,WHICH I AM NOT FAMILIAR WITH.
@jayeshjain88 AGAIN PX4 SEEMS ALIEN TO ME

akshay550

Pix hawk is my favorite. Its crisp n clear , but at same time frustrating to compile

akshay550

Quote from: ghoshatanu56 on June 23, 2015, 03:47:09 PM
I want to know if anybody has tried to port mutiwii or ardupilot to more capable,32 bit arduino due.i say it is more capable because it has more powerful interrupt handling capabilities than atmega 328 or atmega 2560.if yes then can somebody please give me some link to the code.and i choose ardupilot or multiwii because they have gcs


I would say no, never seem to know anyone else.
For gcs part many other options are there.
Due cortex m3 is OLD. Cortex m4 (f) is new try for it n let me know

jayeshjain88

https://github.com/Jake-S/ArDuePilot
Last link i shared is a arduino sketch port of ardupilot

Btw arduino is no language. It's c only. Arduino is nothing but a gcc c compilor. Setup and loop functions that you use in arduino are actually called in main() funtion. it would be very difficult to port code if you are not aware with detail working of gcc. Ardupilot code is not as simple writing a arduino sketch.

Having said that, it's not that difficult to port. It would just need your time. And in the process you will learn lot of things.

You should first study about details of how arduino works and how code for atmega is written in gcc.