amymcgovern / pyparrot

Python interface for Parrot Drones
MIT License
274 stars 128 forks source link

demoMamboGroundcam.py throws this error #131

Open piyushnariani opened 5 years ago

piyushnariani commented 5 years ago

Hello, I have been trying to use groundcam to take some pictures, however, I am getting this error.

Traceback (most recent call last): File "/pyparrot/examples/demoMamboGroundcam.py", line 25, in pic_success = mambo.take_picture() File "\pyparrot\pyparrot\Minidrone.py", line 551, in take_picture list = self.groundcam.get_groundcam_pictures_names() File "\pyparrot\pyparrot\Minidrone.py", line 268, in get_groundcam_pictures_names return list() UnboundLocalError: local variable 'list' referenced before assignment

I appreciate your guidance regarding the same.

amymcgovern commented 5 years ago

Parrot broke the interface to the ground camera in the latest firmware. What firmware are you running? It should still work if you are several versions old. I can debug on my end if I know what firmware you have. Thanks.

piyushnariani commented 5 years ago

How do I find the firmware version of the parrot mambo drone?

amymcgovern commented 5 years ago

Your mobile app (phone) will tell you.

piyushnariani commented 5 years ago

Its 3.0.25

amymcgovern commented 5 years ago

Ok that is the version where the groundcamera is completely broken. If you can downgrade a version, that would be best. 3.0.26 still has issues also.

piyushnariani commented 5 years ago

Do we have any manual available to downgrade the version? and which version should I downgrade it to?

aaryswastaken commented 5 years ago

How can I downgrade? Because I don't see anything in the app for version management

amymcgovern commented 5 years ago

They used to have all the firmwares on the parrot support page. Alas, they broke that recently. I would post here:

https://forum.developer.parrot.com

and see if someone from parrot can post a link to a downgraded firmware. Or if they have fixed the bugs in the latest version. SIGH.

aaryswastaken commented 5 years ago

I tried to find the previous mambo version (version 3.0.24) but this didn't work does someone have an idea to find this version and how to upload it to the mambo ? I'm working on a school project for augmented reality and I would finish as quickly as possible.

Anyway, thank you for your library, it's really helpful.

PS : I'm not sure that the functional version is this one

amymcgovern commented 5 years ago

Parrot took all their old firmware off their webpage, alas. What is your error? The library should be working just fine with the current firmware (except for the downward camera issue, which I cannot fix due to parrot breaking it)

aaryswastaken commented 5 years ago

Exactly like piyushnariani, the file demoMomboGroundcam.py has thrown this error :

Traceback (most recent call last): File "/pyparrot/examples/demoMamboGroundcam.py", line 25, in pic_success = mambo.take_picture() File "\pyparrot\pyparrot\Minidrone.py", line 551, in take_picture list = self.groundcam.get_groundcam_pictures_names() File "\pyparrot\pyparrot\Minidrone.py", line 268, in get_groundcam_pictures_names return list() UnboundLocalError: local variable 'list' referenced before assignment

But this error was at the end of 2018. So I searched and I found this issue and I begin searching for an older firmware to apply to the mambo

amymcgovern commented 5 years ago

Are you using the latest pyparrot? I don't see that error with the current parrot firmware and the pyparrot library.

featureg commented 5 years ago

I have the same issue with firmware 3.0.26.

limsm3 commented 5 years ago

It could be simply solved by changing the every assignments of 'list' except for 'function' list() into some other variable. You will also have to uncomment the part in Minidrone.py where it enables the ftp connection with the drone.