You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,17 +23,17 @@ The development in this repository aims to follow the [Git flow](http://nvie.com
23
23
- Test your changes and note what OS/version you have tested on
24
24
- Describe the change
25
25
- Refer to any issues it effects
26
-
27
-
Out goal is to comply with PEP-8, but there's lots of code that's not up to standard. We try our best to comply but since we slack sometimes we can't really enforce it, but at least there's a few things we want to stick to:
26
+
27
+
In your code
28
28
29
29
- Don't include name, date or information about the change in the code. That's what Git is for.
30
30
- CamelCase classes, but not functions and variables
31
31
- Private variables and functions should start with _
32
32
- 4 spaces indentation
33
33
- When catching exceptions try to make it as specific as possible, it makes it harder for bugs to hide
34
34
- Short variable and function names are ok if the scope is small
35
+
- PEP8/flake8 compliant
35
36
36
37
## CI-server
37
38
38
39
We use https://travis-ci.org/bitcraze/crazyflie-clients-python for continuous integration.
39
-
Initially we only check some PEP-8 properties, but the goal is to also add unit testing and integration testing. This is an ongoing effort.
# Crazyflie PC client [](https://travis-ci.org/bitcraze/crazyflie-clients-python)
1
+
# Crazyflie PC client [](https://travis-ci.org/bitcraze/crazyflie-clients-python)[](https://ci.appveyor.com/project/bitcraze/crazyflie-clients-python)
2
+
2
3
3
4
The Crazyflie PC client enables flashing and controlling the Crazyflie.
4
5
There's also a Python library that can be integrated into other applications
5
6
where you would like to use the Crazyflie.
6
7
7
8
For more info see our [wiki](http://wiki.bitcraze.se/"Bitcraze Wiki").
8
9
9
-
Installation
10
-
------------
11
-
12
-
## Linux
10
+
Note. The project is currently being reorganized, which means that This
11
+
documentation might become inacurate. You can track the reorganisation work in
12
+
the ticket #227.
13
13
14
-
To install the Crazyflie PC client in Linux, you can run the setup script with:
14
+
Running from source
15
+
-------------------
15
16
16
-
```sudo setup_linux.sh```
17
+
The Crazyflie client requires [cflib](https://github.com/bitcraze/crazyflie-lib-python).
18
+
Follow the cflib readme to install it.
17
19
18
-
This will install the Crazyflie PC client systemwide, create a udev entry for
19
-
the Crazyradio and setup the permissions so that the current user can use the
20
-
radio without root permissions after restarting the computer. For further
21
-
instructions on how to run from source and [install dependencies](https://github.com/SteveClement/crazyflie-clients-python#dependencies) see bellow.
20
+
## Windows (7/8/10)
22
21
23
-
## Windows
22
+
Running from source on Windows is tested using the [miniconda](http://conda.pydata.org/miniconda.html) python distribution. It is possible to run from any distribution as long as the required packages are installed. Building the windows installer requires Python 3.4 (because ```py2exe``` is not distributed for Python 3.5 yet). The following instructions assumes **Miniconda 32-bit** is installed.
24
23
25
-
Follow these steps to install the binary distribution on Windows 7/8/10.
26
-
- Download the latest release [here](https://github.com/bitcraze/crazyflie-clients-python/releases) (named cfclient-win32-install-*.exe)
27
-
- Execute the installer. After the install the application will be added to the Start menu.
28
-
- Install the Crazyradio drivers by following [these instructions](https://wiki.bitcraze.io/doc:crazyradio:install_windows_zadig)
24
+
Open a command line windows and move to the crazyflie clients folder (the exact command depends of where the project is cloned):
25
+
```
26
+
cd crazyflie-clients-python
27
+
```
29
28
30
-
Running from source
31
-
-------------------
29
+
Create and activate a Python 3.4 environment with numpy pyqt and pyqtgraph from conda (it is the packages we cannot easily install with pip):
0 commit comments