Content-Length: 271074 | pFad | http://github.com/DavidEGrayson/minimu9-ahrs/commit/3665a1fa90f964e05e0548b25018e34aaa56c78f

13 Remove the Python extension because it is breaking the main build and… · DavidEGrayson/minimu9-ahrs@3665a1f · GitHub
Skip to content

Commit

Permalink
Remove the Python extension because it is breaking the main build and…
Browse files Browse the repository at this point in the history
… no one uses it.
  • Loading branch information
DavidEGrayson committed Dec 30, 2017
1 parent ffcdfdf commit 3665a1f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 140 deletions.
44 changes: 0 additions & 44 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,50 +267,6 @@ and a precise description of its output format, view the man page by running
`man minimu9-ahrs`.


## Building Python bindings

This project includes a user-contributed Python extension that lets you read raw
sensor values directly into a Python program without running an external
program. This might be useful to some people because it gives you more control
over the timing of when sensor values are read, and it avoids the overhead of
string formatting and string parsing.

Note that the Python extension has some issues: I have not tested it to see how
its error handling works (so there might be no error handling), and if something
goes wrong during initialization then it will print error messages to the
standard error pipe.

If you don't like using Python or using this Python extension,
please note that you can run `minimu9-ahrs` as a command-line program from any
programming language to access raw or processed sensor readings.

To build the Python bindings, run:

```text
sudo apt-get install libboost-python-dev
pip install pkgconfig
make
sudo python setup.py install
```

Note that the default size for swap for raspberry pi is 100MB. To successfully
not enough for build Python extensions, you might need to [add more swap space]
(https://raspberrypi.stackexchange.com/questions/70/how-to-set-up-swap-space).

Here is some example code for using the Python wrapper:

```python
from minimu import Minimu
i2c_bus_name = '/dev/i2c-1'
driver = Minimu(i2c_bus_name)
driver.connect()
driver.read()
#
# [-8877, -1278, -269, -958, 3461, 2049, 4175, 4908, 4814]
#
# The values are: MX MY MZ AX AY AZ GX GY GZ
```

## Related projects

* [ahrs-visualizer] - another program by me that provides a 3D display of
Expand Down
79 changes: 0 additions & 79 deletions python_wrapper.cpp

This file was deleted.

17 changes: 0 additions & 17 deletions setup.py

This file was deleted.

0 comments on commit 3665a1f

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/DavidEGrayson/minimu9-ahrs/commit/3665a1fa90f964e05e0548b25018e34aaa56c78f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy