ARDrone control in C++ cross platform no SDK needed

Added by Pongsak Suvanpong 1325 days ago

Dear All

I've finally got my C++ code to control the drone working.

Screen_shot_2011-08-12_at_7.06.28_PM.png - screen shot (192.6 KB)


Replies

RE: ARDrone control in C++ cross platform no SDK needed - Added by Pongsak Suvanpong 1325 days ago

sorry the code is attached with this post

ARDrone.h (6.6 KB)

ARDrone.cpp (54.3 KB)

RE: ARDrone control in C++ cross platform no SDK needed - Added by Pongsak Suvanpong 1325 days ago

forgot another thing, code uses commonC++, can be downloaded from here http://www.hyperrealm.com/main.php?s=commoncpp

psksvp

RE: ARDrone control in C++ cross platform no SDK needed - Added by Aiden Wong 1320 days ago

Hi PSKSVP,
I am interesting in your post.
Has you come up with different problems when using commonC++?
I think it won't work to develop except for SDK.
thz,
MoMo

RE: ARDrone control in C++ cross platform no SDK needed - Added by Waqar Shahid Qureshi 1319 days ago

hi,
yo said it is based on javadrone,

so do i need that first, and then make?

regards
waqar shahid

RE: ARDrone control in C++ cross platform no SDK needed - Added by Jeremy Rand 1291 days ago

When I try to pass your cpp file to g++, it complains about a missing file "../Common/MemoryLibrary.h" . Is this file supposed to be copied from somewhere in commonc++? Or is it floating somewhere else on the Internet?

Any help on finding that file would be greatly appreciated.

Thanks.

RE: ARDrone control in C++ cross platform no SDK needed - Added by Pongsak Suvanpong 1289 days ago

Hi all

sorry for late reply, the needed MemoryLibrary.h file is attached with this post.

psksvp

MemoryLibrary.h (9.5 KB)

RE: ARDrone control in C++ cross platform no SDK needed - Added by Open UAS 475 days ago

For real control, and really realy without SDK, take a look herehttp://paparazzi.enac.fr/wiki/AR_Drone_2/getting_started

RE: ARDrone control in C++ cross platform no SDK needed - Added by cyrile talla 471 days ago

Hello PSKSVP,
please can you tell me how compiling and configuring commonc++ on visual basic 2010 expess?

best regards
Cyrile

RE: ARDrone control in C++ cross platform no SDK needed - Added by G Z 458 days ago

Hi Everybody,

I'm trying to compile the api on a Mac OSX Maverics.
The api are really great and really simple, I'd like to use them on iPhone instead of the official sdk which is really hard to include and there is really poor documentation..

Anyways..
Compiling for Mac, I have these problems

../src/ARDrone.h:27:13: error: cannot define or redeclare 'DatagramSocket' here because namespace 'ARDrone' does not enclose namespace 'ccxx'
../src/ARDrone.h:28:13: error: cannot define or redeclare 'Mutex' here because namespace 'ARDrone' does not enclose namespace 'ccxx'
../src/ARDrone.h:29:13: error: cannot define or redeclare 'Thread' here because namespace 'ARDrone' does not enclose namespace 'ccxx'

http://pastebin.com/3mNxUgQK

I'd like to port these file on standard c++ whiteout lib common, so they will be come compilable on ARM.. (iOS).
Any ideas??

Thank you
Regards

RE: ARDrone control in C++ cross platform no SDK needed - Added by B E 398 days ago

Move

class ccxx::DatagramSocket;
class ccxx::Mutex;
class ccxx::Thread;

before

namespace ARDrone {

and it compiles

Remove lines ending with /* to suppress some warnings