Skip to content
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

Fix 'findMambo' leftovers, currently the file is called findMinidrone #210

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/quickstartminidrone.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ To run this, from the bin directory for your python installation, type:

This will identify all BLE devices within hearing of the Pi. The Minidrone's specific address will be printed at the end.
Save the address and use it in your connection code (discussed below). If findMinidrone does not
report "FOUND A MAMBO!" or "FOUND A SWING!", then be sure your minidrone is turned on when you run the findMambo code and that your Pi
report "FOUND A MAMBO!" or "FOUND A SWING!", then be sure your minidrone is turned on when you run the findMinidrone code and that your Pi
(or other linux box) has its BLE interface turned on.

The output should look something like this. I removed my own BLE addresses from my network for security but I am
showing the address of the mambo that I use for all the demo scripts.

.. code-block:: console

~/miniconda3/bin $ sudo ./find_mambo
~/miniconda3/bin $ sudo ./find_minidrone
Discovered device <address removed>
Discovered device <address removed>
Discovered device <address removed>
Expand Down
2 changes: 1 addition & 1 deletion pyparrot/Minidrone.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def _delete_file(self, filename):
class Minidrone:
def __init__(self, address="", use_wifi=False):
"""
If you need BLE: Initialize with its BLE address - if you don't know the address, call findMambo
If you need BLE: Initialize with its BLE address - if you don't know the address, call findMinidrone
and that will discover it for you.
You can also connect to the wifi on the FPV camera. Do not use this if the camera is not connected. Also,
ensure you have connected your machine to the wifi on the camera before attempting this or it will not work.
Expand Down
4 changes: 2 additions & 2 deletions pyparrot/scripts/findMinidrone.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Find the BLE address for a mambo. To run this,
Find the BLE address for a drone (Mambo or Swing). To run this,

sudo python findMambo.py
sudo python findMinidrone.py

Note that the sudo is necessary for BLE permissions on linux. It is only needed on
this program and nothing else.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
# executes the function `main` from this package when invoked:
entry_points={ # Optional
'console_scripts': [
'find_mambo=pyparrot.scripts.findMambo:main',
'find_minidrone=pyparrot.scripts.findMinidrone:main',
],
},

Expand Down