-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem after adding new function to Bebop file #201
Comments
everything I did was indoors so I never implemented the GPS functions. In theory, they should work just fine. I am guessing you broke something fundamental with the edits (though it isn't clear what it is!) so I would reinstall and start there (but keep your old code around). Python is odd sometimes that way! Others on the discussion board have discussed GPS movements and I would also look at those. |
I'm guessing too, but yes it's not clear, cause we only added function... |
Hi, apologies for reviving this old issue. I was wondering if you were able to solve this @Adrials? I'm stuck here too. I send the move_to command and receive the acknowledgement, but the bebop2 doesn't move. |
Hi @faweigend, I'm sorry. The COVID crisis forced me to stop the project, so I've never had a chance to look at the problem again (insofar as the drone wasn't mine...). Here are the only two things I can tell you:
Hope you find the solution (by the way, let me know if you do, I'm still interested)! |
Sorry, I haven't had working bebops for awhile and haven't got a reason to buy a new one (no longer part of my research program). If there is a solution and I need to accept a change, I will though! |
Thanks for the replies @Adrials @amymcgovern, I found a solution and successfully tested it on bebop2. It is not fully integrated though, because I had to work around the convenience
|
Hi @amymcgovern ,
Im a young french student, and I have, with a friend, a school programming project with the bebop2 drone.
We need to move the drone to several points (with GPS coordinates). It seems there is no function for this in your pyparrot code, although bebop2 has the ability to move to a GPS coordinate point, judging by the xml file of the drone.
That's why I've created one (here below), based on your work and reusing your functions. But, after testing it, a problem arise, that my friend and I can't solve (although we've gone through your pyparrot files...).
We have implemented this 'move_to' function in the Bebop.py file (just after your 'flat_trim' function). Then, we tried a simple script to see if the function worked, by calling the 'move_to' function. And an error was raised by python, with a large traceback. Or, more accurately, I think two errors raised, one that it is intercepted and then displayed, and one that is not intercepted. Both are AttributeError: 'tuple' object has no attribute 'update' and 'tuple' object has no attribute 'set_max_altitude'. The tuple object in question is the sensors object in the Bebop.py file.
So the program obviously crashed. But even more surprisingly, the scripts that worked before, don't work anymore, even after the original Bebop.py file has been restored...!
So, I have 2 questions :
-First one : is the function correct, at least theoretically? Is there an error, something to replace or add?
-Second one : I don't know how this problem can occur, nor how to solve it. Therefore, Im wondering if you could help us to solve this problem (cause we can't use the bebop2 right now)?
Hoping that you can understand why this error appeared, and that you will agree to help us,
Thank you so much in advance!
CODE created by ourselves with move_to function :
The text was updated successfully, but these errors were encountered: