RC India

RC Models => Self-designed, DIY and College Projects => Topic started by: ghoshatanu56 on June 23, 2015, 03:47:09 PM



Title: Flight controller with Arduino due
Post by: 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


Title: Re: Flight controller with Arduino due
Post by: SP-KART on June 23, 2015, 04:14:26 PM
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.  ;)


Title: Re: Flight controller with Arduino due
Post by: saikat on June 23, 2015, 05:25:05 PM
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.



Title: Re: Flight controller with Arduino due
Post by: jayeshjain88 on June 23, 2015, 05:57:08 PM
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


Title: Re: Flight controller with Arduino due
Post by: saikat on June 23, 2015, 06:20:38 PM
Good link Jayesh - I did not know about the 2nd one


Title: Re: Flight controller with Arduino due
Post by: ghoshatanu56 on June 23, 2015, 10:33:59 PM
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


Title: Re: Flight controller with Arduino due
Post by: akshay550 on June 23, 2015, 10:39:36 PM
Pix hawk is my favorite. Its crisp n clear , but at same time frustrating to compile


Title: Re: Flight controller with Arduino due
Post by: akshay550 on June 23, 2015, 10:42:27 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


Title: Re: Flight controller with Arduino due
Post by: jayeshjain88 on June 23, 2015, 10:52:17 PM
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.