Latest API and JavaDrone

瀏覽次數:146 次
跳到第一則未讀訊息

Scooter Willis

未讀,
2014年6月28日 下午6:00:352014/6/28
收件者: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

未讀,
2014年6月30日 晚上9:10:562014/6/30
收件者: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)
回覆所有人
回覆作者
轉寄
0 則新訊息