Latest API and JavaDrone

146 views
Skip to first unread message

Scooter Willis

unread,
Jun 28, 2014, 6:00:35 PM6/28/14
to java...@googlegroups.com
I have a ARDrone 1.0 that I updated the firware to the latest using the iphone app. Able to control the ARDrone from the iphone or android app and see video.

In the process of testing JavaDrone and trying to run TakeOffAndLand.java and get the following error where it appears the header info is different.

Jun 28, 2014 5:56:00 PM com.codeminders.ardrone.data.decoder.ardrone10.ARDrone10NavDataDecoder run
SEVERE: Failed to decode receivd navdata information
com.codeminders.ardrone.data.navdata.NavDataFormatException: Error parsing NavData 1432778633
at com.codeminders.ardrone.data.decoder.ardrone10.navdata.ARDrone10NavData.createFromData(ARDrone10NavData.java:366)
at com.codeminders.ardrone.data.decoder.ardrone10.ARDrone10NavDataDecoder.run(ARDrone10NavDataDecoder.java:42)

I modified the exception to list the new header value which now equals 1432778633

Can you provide any guidance on what firmware javadrone should work with?

Any thoughts on the changed header as an indicator that the communication API is now different?


Scooter Willis

unread,
Jun 30, 2014, 9:10:56 PM6/30/14
to java...@googlegroups.com
Found the same problem fixed by other source code supporting AR Drone with a note that the version of the header changed but they couldn't find any difference in the data stream. I added the following in ARDrone10NavData. I also had to disable the video and was able to get takeoff working.

 if(header != 0x55667788 && header != 0x55667789)
Reply all
Reply to author
Forward
0 new messages