PID-Analyzer icon indicating copy to clipboard operation
PID-Analyzer copied to clipboard

How to Use - MacOSX

Open Bradw-17 opened this issue 6 years ago • 9 comments

HOW TO RUN PLASMATREE (MAC-OSX)

#Install: Python 2.7(https://www.python.org/downloads/release/python-2715/ PIP: (https://pip.pypa.io/en/stable/installing/) Homebrew + Git: (https://gist.github.com/derhuerst/1b15ff4652a867391f03…) Xcode: (https://itunes.apple.com/us/app/xcode/id497799835)

#Open Terminal - Do:

git clone https://github.com/cleanflight/blackbox-tools.git

cd blackbox-tools

brew install cairo --without-x11 pkg-config

make

cd ..

git clone https://github.com/Plasmatree/PID-Analyzer.git

cd PID-Analyzer

pip install -r requirements.txt

#Normal Use in Terminal:

cd PID-Analyzer

python PID-Analyzer.py --blackbox_decode ../blackbox-tools/obj/blackbox_decode -l (path_to_the_file.BBL)

#path_to_the_file.BBL > Drag and drop log to TERMINAL window

#Hit enter and boom!

Credit: Martin Hapl

Bradw-17 avatar May 10 '18 21:05 Bradw-17

Great! Will add to the wiki :)

Plasmatree avatar May 11 '18 06:05 Plasmatree

Brad, I was going to do the same thing (open an issue with this), and saw you did it already, and even cleaned up our conversation. Thanks man!

haplm avatar May 11 '18 16:05 haplm

@haplm you deserve the credit! thanks for teaching me

Bradw-17 avatar May 11 '18 21:05 Bradw-17

Installing python and running the .py works on every platform. On Linux you don't even need to install python since it's already there! The reason for a win executable is to enable at least for some people a solution without all this.

If you just install anaconda with python 2.7 everything should be there! (and you can also start programming your own stuff, which is awsome! ) https://www.anaconda.com/download/

If you also need an editor, try PyCharm ;)

Plasmatree avatar May 12 '18 15:05 Plasmatree

The convo on FB was deleted, what were the command lines for updating again?

Bradw-17 avatar May 20 '18 12:05 Bradw-17

cd PID-Analyzer
git pull

optionally 'pip install -r requirements.txt'

haplm avatar May 21 '18 08:05 haplm

From Kevin on the BF Slack:

"At least on Linux the problem is, that the check in line 365 "if str(np.shape(l))=='(4L, 2L)'" fails since the string seems to be different on Windows than on Linux (and probably Mac too). Changing this line to "if np.shape(l) == (4,2):" should fix the problem and you'll have the exact same scale as on Windows."

Bradw-17 avatar Mar 07 '19 15:03 Bradw-17

Hi, in my case, this application not generate png image on tmp folder :-( Any solution ?

sjpagna avatar Mar 05 '20 18:03 sjpagna

@sjpagna just use PIDToolBox: https://github.com/bw1129/PIDtoolbox

Plasmatree unfortunately is dead.

Bradw-17 avatar Mar 06 '20 13:03 Bradw-17