Shad0wbreaker / megapirateng

Automatically exported from code.google.com/p/megapirateng
0 stars 0 forks source link

Request to port Arduplane 2.68 #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Alex Sir,

Pls. port your code to Arduplane 2.68, lot of people would love to use.

BR

VU2AT

Original issue reported on code.google.com by vu2...@gmail.com on 20 Dec 2012 at 2:31

GoogleCodeExporter commented 9 years ago
I'm one of those people.  ArduPlaneNG seems to work OK for me, but it's based 
on 2.4 and is becoming outdated.

TODO: Grab ArduPlane directory from ardupilot-mega, apply attached patch, 
resolve any merge conflicts, and, hopefully, it will work!

The effort required to add Arduplane to MegaPirateNG doesn't seem to be that 
big.  It's a matter of pulling ArduPlane directory from ardupilot-mega and 
applying fixes to make it work, most of which are already in ArduPlaneNG.

The attached patch is a diff between ArduPlane 2.4 and ArduPlaneNG, which is 
derived from it.  The libraries/ directory in ArduPlaneNG is almost a carbon 
copy of that in megapirateng 2.4.

Original comment by maxim.ku...@gmail.com on 25 Dec 2012 at 2:34

Attachments:

GoogleCodeExporter commented 9 years ago
FWIW, latest ArduPlaneNG (ver 2.x R5) is based on megapirateng rev. 192 and 
ardupilot-mega revision fce0992a8298a9b9dc8b4591344a1e9d27cefe55 .

Original comment by maxim.ku...@gmail.com on 25 Dec 2012 at 2:38

GoogleCodeExporter commented 9 years ago
Sorry, but I'm not interested in ArduPlane. Maybe someone will port it later...

Original comment by Alexey.K...@gmail.com on 25 Dec 2012 at 5:37

GoogleCodeExporter commented 9 years ago
Fair enough.  I took a shot at it today, but it turned out to be a 
longer-than-hour project.  I'll poke on it later, and I'm happy to test it if 
anyone else picks this up.

Original comment by maxim.ku...@gmail.com on 25 Dec 2012 at 5:41

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi Maxim ! I have no words to thank you !
I have also flight tested ArduPlaneNG v2.x R5 for All In One Pro v1.0 (AIOP), 
ported by Mr. JLN. He has done great job for the benefit of the RC Community, 
his code works well but Arduplane 2.68 have many bug fixes and many good 
features, so porting the latest released code of Arduplane is highly 
recommended and desired.

Aside to Alex Sir: Some time people do things not only for themselves but for 
the benefit of the society. You might not be interested in Arduplane but there 
is huge RC community which would love to use it. And that is because the price 
of MPNG AIOP board is almost 1/4 th the price of APM. They can get MPNG AIOP 
board much cheaper as compared with APM.

Pls give a thought to it again, your efforts will always be good for RC 
community.

Best Regards

VU2ATX

Original comment by vu2...@gmail.com on 27 Dec 2012 at 12:15

GoogleCodeExporter commented 9 years ago
Vu2,
You are not fair to Alex, he's already doing a great job for RC community by 
working on MegaPirateNG.

Alex,
Do I understand correctly that you are not against having ArduPlane/ directory 
in MegaPirateNG if someone else (i.e., JLN and/or myself) maintains it?

Original comment by maxim.ku...@gmail.com on 27 Dec 2012 at 6:47

GoogleCodeExporter commented 9 years ago
Sorry guys, but I'm cannot port code which I can't verify. I'm have no RC 
planes and don't know how it works. I'm really newbie in RC world and started 
from Quadcopters :)

Original comment by Alexey.K...@gmail.com on 28 Dec 2012 at 11:50

GoogleCodeExporter commented 9 years ago
OK, ArduPlaneNG2xR5 is now on arduplane branch of megapirateng repository: 
https://code.google.com/p/megapirateng/source/browse/#svn%2Fbranches%2Farduplane
 .

Original comment by maxim.ku...@gmail.com on 30 Dec 2012 at 2:25

GoogleCodeExporter commented 9 years ago
Update of libraries/ to current MegaPirateNG's version is done.  ArduPlane 
compiles.  Have no idea if it works.

Original comment by maxim.ku...@gmail.com on 30 Dec 2012 at 2:46

GoogleCodeExporter commented 9 years ago
So nice of you Maxim, many many thanks for your efforts !

Best Regards

VU2ATX

Original comment by vu2...@gmail.com on 30 Dec 2012 at 3:07

GoogleCodeExporter commented 9 years ago
Hi,

I was looking your discussion on arduplane port for few days, and was going to 
offer my development help .. but I need some time as I am new to pirestsNG 
project as well as for ardupilot, my hardware is on the way and I am almost out 
of the net for next few days - for New Year party:)

But if Maxim needs and help on plane part I am ready to involve ... in few days 
or a week.

Have a good New Year

Paul

Original comment by pa...@kulma.pl on 31 Dec 2012 at 12:41

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi Maxim ! your AruplaneNG is getting very well compiled in Arduino 1.03. Is 
your ArduplaneNG based on latest released code of Arduplane ?

Is it possible that it could get well compiled for HIL enabled option as well ?

Best Regards

VU2ATX

Original comment by vu2...@gmail.com on 31 Dec 2012 at 2:11

GoogleCodeExporter commented 9 years ago
It seems it's base on

http://code.google.com/p/ardupilotdev/downloads/detail?name=ArduPlaneNG2xR5.zip&
can=2&q=

paku

Original comment by pa...@kulma.pl on 31 Dec 2012 at 2:52

GoogleCodeExporter commented 9 years ago
The code that is currently on arduplane branch is ArduPlaneNG2xR5 with Sir 
Alex's fix for MPU and compass initialization.

I've tried several merging strategies to merge revision-by-revision between 
ArduPlane 2.4 and ArduPlane 2.68, but things get very ugly around ArduPlane 
2.5.  I think it is less effort to port Crius AIO Pro support from 
ArduPlaneNG2xR5 (i.e., diff between ArduPlane 2.4 and ArduPlaneNG2xR5) on top 
of ArduPlane 2.68.

Original comment by maxim.ku...@gmail.com on 31 Dec 2012 at 8:44

GoogleCodeExporter commented 9 years ago
But let me understand what's going on here and correct me if I am wrong :)

megaPirateNG project, this one, is a port of latest arducopter for AIO boards 
(??) and includes all/most of hardware specific changes to the original arduxxx 
trunk libraries as well as functions outside libs.

ArduPlaneNG2xR5 is for the same HW (AIO) but:
- based on older libs version 
- for planes only
- based on quite old original plane revision

So if we would like to get working arduPlane for AIO we should look at NG2xR5 
but our work should be based on LATEST possible original arduPlane (and the 
same libs as used by Alex for copterNG)

Only that way we could deliver fully usable and manageable NG project /for both 
copters and planes/ to the community.

If our goal will not be to deliver latest plane version the project will be 
months after the original trunk.

But we can start from 2xR5 for sure ... but it seems to me to be a simplified 
solution to get working copy of ANY arduplaneNG while we should have a goal 
like latest AP, megapirateNG compatibility ??

Maybe Alex can push us at the right direction ?

paku

Original comment by pa...@kulma.pl on 1 Jan 2013 at 6:01

GoogleCodeExporter commented 9 years ago
BTW I am not able to compile rev 262 ....

Original comment by pa...@kulma.pl on 2 Jan 2013 at 12:54

GoogleCodeExporter commented 9 years ago
I am using Arduino 1.03 ( 
http://arduino.googlecode.com/files/arduino-1.0.3-windows.zip ), getting 
successful compilation of r262.

Original comment by vu2...@gmail.com on 2 Jan 2013 at 4:25

GoogleCodeExporter commented 9 years ago
The arduplane/ branch compiles and has same code as ArduPlaneNG2xR5.  I've 
created yet another branch -- arduplaneng -- and that one has updated 
libraries/, but it is work-in-progress and doesn't build.  I was a bit too rush 
in creating that branch.  I might remove it to avoid confusion.

That said, I'm considering a couple of approaches to getting ArduPlane for 
Crius AIO Pro:
1. Take ArduPlane 2.68 from ardupilot-mega; take libraries/ from MegaPirateNG; 
apply diff between ArduPlane 2.4 and ArduPlaneNG2xR5 to ArduPlane; maintain the 
result as part of MegaPirateNG.
2. Take ArduPlane 2.68 and libraries from ardupilot-mega; adjust definitions of 
PINs and hardware addresses to match Crius AIO Pro (based on definitions in 
MPNG); if required, add support for MPU6050 and any other sensors that are 
different between Crius AIO Pro and APM from MegaPirateNG.

Given that Crius AIO Pro hardware is very much like APM 2.5 (the only 
differences that I know of is MPU6000 vs MPU6050 and lack of dataflash), it may 
be easier to porting just the MPU6050 support from MPNG to ardupilot-mega.  The 
problem here is that I have no experience in debugging Arduino firmware.

Alex, do you have any pointers or notes on how you debugged MPNG when you 
ported it to new hardware?

Thanks.

Original comment by maxim.ku...@gmail.com on 2 Jan 2013 at 5:12

GoogleCodeExporter commented 9 years ago
Maxim,

If the goal is to port plane compatible with Alex copterNG, we should try to 
port latest arduplane to his NG project, what means using his libs. 

So approach No1 seems the best for me. But will not be so easy ....

Original comment by pa...@kulma.pl on 2 Jan 2013 at 9:55

GoogleCodeExporter commented 9 years ago
I'm suggest to wait when AC 2.9 will be released (Now it's in RC2 phase).

I will start to port new HAL drivers and when completed we can sync ArduCopter 
and ArduPilot up to latest APM sources.
I'm will start from current GIT revision: 
0162559b6cb5312651099c85e814b82ae1ad1996

Original comment by Alexey.K...@gmail.com on 2 Jan 2013 at 11:22

GoogleCodeExporter commented 9 years ago
... and it will solve all/most problems :)

Do you know if HAL drivers/structure is going to be fully functional from 2.9 
???

Original comment by pa...@kulma.pl on 2 Jan 2013 at 1:51

GoogleCodeExporter commented 9 years ago
Hi Maxim !
I Like both the approaches you suggested but the second approach seems quick 
one.
There is one more difference between APM2.0 / APM2.5 &  Crius AIO Pro and that 
is Fail Safe chip which is not present in Crius AIO Pro.

Best Regards
VU2ATX

Original comment by vu2...@gmail.com on 2 Jan 2013 at 4:03

GoogleCodeExporter commented 9 years ago
Hi Alex !

That's really so nice to hear from your side, waiting to hear some good news !

Best Regards
VU2ATX

Original comment by vu2...@gmail.com on 2 Jan 2013 at 4:05

GoogleCodeExporter commented 9 years ago
@VU2ATX
Failsafe chip? This chip is just PPM Encoder.

Original comment by Alexey.K...@gmail.com on 2 Jan 2013 at 4:18

GoogleCodeExporter commented 9 years ago
... I have spent last 6h trying to build AC2.9RC2 on windows ... failed on any 
platform.

Original comment by pa...@kulma.pl on 2 Jan 2013 at 9:31

GoogleCodeExporter commented 9 years ago
BTW, to automate builds I've made the following changes to Arduino IDE to 
enable building projects from command line.  I.e., "arduino -b <full path to 
.pde>" will build a given PDE.

You also need to adjust "arduino" file, which a script to pass through command 
line arguments to java vm.  On Linux this is done by appending $@ to the end of 
command line.

Original comment by maxim.ku...@gmail.com on 2 Jan 2013 at 9:39

Attachments:

GoogleCodeExporter commented 9 years ago
Paku, There seems some serious trouble in your PC. Just for re-confirmation, I 
have just downloaded 
http://arducopter.googlecode.com/files/ArduCopter-2.9-rc2.zip and successfully 
compiled using Arduino 1.03

Regards
Rana

Original comment by narpat...@gmail.com on 3 Jan 2013 at 11:32

Attachments:

GoogleCodeExporter commented 9 years ago
I did not ...

I know I have a mess on my machine but .... have to ...  I use a lot of dev 
tools.

The main problem is winavr libs and Atmel AVR studio which seems to mess paths, 
but they are working and I do not want to change this situation as I need AVR 
Studio.

As for now I switched to Ubuntu virt machine and trying this way ....

If u know to "isolate" Arduino from other AVR tools on wimdows, that would help 
:)

Original comment by pa...@kulma.pl on 3 Jan 2013 at 11:47

GoogleCodeExporter commented 9 years ago
BTW should I use "standard" Arduino or "modified" for ArduPilot ??
As for now none builds ....

Original comment by pa...@kulma.pl on 3 Jan 2013 at 11:50

GoogleCodeExporter commented 9 years ago
Made one more test .. paths seems to be ok :(

used "mods" Arduino

Original comment by pa...@kulma.pl on 3 Jan 2013 at 12:04

Attachments:

GoogleCodeExporter commented 9 years ago
AC2.9RC2 build solved by creating new user profile on Win7 and building on that 
profile.
It seems it was a temp files problem ... or paths ...

Original comment by pa...@kulma.pl on 3 Jan 2013 at 12:55

GoogleCodeExporter commented 9 years ago
Congrats Paku !

regards
Rana

Original comment by narpat...@gmail.com on 3 Jan 2013 at 4:31

GoogleCodeExporter commented 9 years ago
Hi,

I have a short and off-topic question :)

I am just working on using Atmel AVR Studio as IDE for ArduPilot and mpNG 
environment.
As I fighting some cross compiler version problems I need some help from 
experience ardu code developers could you pls point me to the proper forum 
where can I ask some questions ??

Original comment by pa...@kulma.pl on 5 Jan 2013 at 10:17

GoogleCodeExporter commented 9 years ago
I'm just created Google Group forum to discuss MPNG development:
https://groups.google.com/forum/?fromgroups#!forum/megapirateng

Original comment by Alexey.K...@gmail.com on 6 Jan 2013 at 12:15

GoogleCodeExporter commented 9 years ago
Super, I just wanted to contact you by PM on RcGroups :)

Original comment by pa...@kulma.pl on 6 Jan 2013 at 1:00

GoogleCodeExporter commented 9 years ago
I have got:  Your membership is pending :)

Original comment by pa...@kulma.pl on 6 Jan 2013 at 1:41

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi Alex !

In the Google group forum of MPNG, you asked Paku to download Arducopter latest 
GIT and see if it is compiling well. 

I downloaded latest GIT repsitory "efd412fbee72" just now and getting 
successful build using "ArduPilot-Arduino-1.0.3-windows"
( 
http://ardupilot-mega.googlecode.com/files/ArduPilot-Arduino-1.0.3-windows.zip )

However NO successful build using "arduino-1.0.3-windows"
http://arduino.googlecode.com/files/arduino-1.0.3-windows.zip

Regards
Rana

Original comment by narpat...@gmail.com on 6 Jan 2013 at 11:51

GoogleCodeExporter commented 9 years ago
It's working using Arduino. 
The problem is compaling it under other IDE or using make /CLI/.

Original comment by pa...@kulma.pl on 6 Jan 2013 at 11:53

GoogleCodeExporter commented 9 years ago
BTW it's compiling on windows using both but if you change version it's a good 
idea to log out and in again as there are some temp files issues ... as for me 
at least.

Original comment by pa...@kulma.pl on 6 Jan 2013 at 11:57

GoogleCodeExporter commented 9 years ago
currently im also working on porting APM to APNG esp for aiop2 board since I 
will be using it for research project... my approach is 

1. laying down old APNG(the one support aiop v1), MPNG and latest APM in 
parallel...
2. compare the code line by line.. 
   the ones that MPNG and APNG in common but not in APM put into port file.
   the ones in APM but not in MPNG/APNG leaves
   others will be pending
3. using latest MPNG lib since.. i believe they use a common lib

but .. except of not supporting flash chip on aiop v2 board... what kind of 
improvement on performance are we expecting between current APNG and latest APM?

Original comment by jy0...@gmail.com on 27 Jan 2013 at 9:39

GoogleCodeExporter commented 9 years ago
Arduplane 2.69 has also come which is very much like Arducopter 2.91, which has 
already been ported by Sir Alex. I am really waiting desperately to see the 
Arduplane 2.69 ported to MPNG  

Original comment by vu2...@gmail.com on 13 Feb 2013 at 1:30

GoogleCodeExporter commented 9 years ago
why has this forum died?
I would really like arduplaneNG for the multiwii PRo with MTK gps but i cannot 
find code that compiles

Original comment by ox14...@googlemail.com on 11 May 2013 at 9:14

GoogleCodeExporter commented 9 years ago
I am too ! I find code for the multiwii PRO MTK to use with Planner. Do you 
have any idea ?

Original comment by framo...@gmail.com on 10 Jun 2013 at 2:06

GoogleCodeExporter commented 9 years ago
Still no updates? =(

Original comment by YuryMon...@gmail.com on 19 Jul 2013 at 10:58