Thread Tools
This thread is privately moderated by stronnag, who may elect to delete unwanted replies.
Mar 27, 2016, 11:24 AM
sweet dreams & flying machines
stronnag's Avatar
Discussion

mwp


mwp https://github.com/stronnag/mwptools is a Linux (& freebsd) tool to support navigation functions on flight controllers supporting the multiwii serial protocol, including:
  • iNavFlight (primary target)
  • Cleanflight
  • Multiwii Nav (mw 2.4)
Functions include:
  • Mission Planner
  • Ground Control Stations (GCS)
  • Real time mission logging and geospatial display
  • Post flight replay
    • mwp JSON logs
    • blackbox logs

(3 min 51 sec)


mwp support questions and suggestions may be discussed via comments.

Initial Installation on a modern linux distro takes around 10 minutes, including installing all dependencies.

(11 min 36 sec)


wilco1967's easy install page in the mwp wiki provides a step by step guide using an Ubuntu VM in Virtualbox on a Windows host.

Setup, preferences and other configuration tips

(31 min 52 sec)
Last edited by stronnag; May 16, 2018 at 07:33 AM. Reason: added installation video and wiki link
Sign up now
to remove ads between posts
Mar 27, 2016, 11:27 AM
sweet dreams & flying machines
stronnag's Avatar

mwp on Ubuntu LTS now requires ruby2.0


In order to support some additional functionality in iNav bbox logs, it is necessary to use have a minimum of ruby 2.0 installed.

Code:
sudo apt install ruby2.0
sudo update-alternatives --install /usr/bin/ruby ruby /usr/bin/ruby2.0 10
sudo update-alternatives --install /usr/bin/gem gem /usr/bin/gem2.0 10
Mar 27, 2016, 11:59 AM

Hi stronnag


I havenít got the necessary telemetry link yet but I think its time to install mwp reddy for then.

I am using Debian Jessie 64bit so am I correct to assume I also need ruby2?
Mar 27, 2016, 12:07 PM
sweet dreams & flying machines
stronnag's Avatar
Yes, you will to replay bbox logs. It may already be there or even default. Ubuntu LTS is almost 2 years old.
Mar 27, 2016, 12:16 PM
Quote:
Originally Posted by stronnag
Yes, you will to replay bbox logs. It may already be there or even default. Ubuntu LTS is almost 2 years old.
OK thanks
I may start bugging you on this as its my first install by compiling, what could possibly go wrong
Mar 27, 2016, 12:21 PM
sweet dreams & flying machines
stronnag's Avatar
No problem. As long as you have the dependencies installed, it might be fairly painless.
Mar 27, 2016, 01:16 PM
I attempted a ruby2 install and it seems it already there.
by the way this is a fresh install of Debian to try and keep things simple.

I ran make in he mwptools-master directory and got this?

Code:
nick@NicksThin:~/mwptools-master$ make
make -C mspsim
make[1]: Entering directory '/home/nick/mwptools-master/mspsim'
/bin/sh: 1: pkg-config: not found
/bin/sh: 1: pkg-config: not found
/bin/sh: 1: pkg-config: not found
valac -D HAVE_FIONREAD -D BADSOUP -D NOBB -D NOPUSHFRONT -X -O2 -X -s --thread --target-glib=2.36 --pkg posix --pkg linux --pkg gio-2.0 --pkg gtk+-3.0 --pkg libxml-2.0 --pkg json-glib-1.0 -o mspsim  mspsim.vala ../common/mwp_xml.vala ../common/serial-device.vala ../common/geocalc.vala ../common/utils.vala ../common/mspcmd.vala ../common/mspmsg.vala ../common/get_locale_double.c ../common/mwplog.vala -X -lm
make[1]: valac: Command not found
Makefile:13: recipe for target 'mspsim' failed
make[1]: *** [mspsim] Error 127
make[1]: Leaving directory '/home/nick/mwptools-master/mspsim'
Makefile:9: recipe for target 'mspsim' failed
make: *** [mspsim] Error 2
nick@NicksThin:~/mwptools-master$
any thing obvious to you?
Mar 27, 2016, 01:18 PM
dependency's yes ?

RTFM :-)
Mar 27, 2016, 01:19 PM
sweet dreams & flying machines
stronnag's Avatar
missing dependencies, see mwptools/docs/ubuntu-deps.txt
Code:
Starting point for Ubuntu / Debian packages ...

libgdl-3-dev
libchamplain-gtk-0.12-dev
libchamplain-0.12-dev
libclutter-1.0-dev
libclutter-gtk-1.0-dev
libgtk-3-dev
valac
pkg-config
build-essential
libbluetooth-dev
libespeak-dev
libgudev-1.0-dev
libgstreamer0.10-dev

and for the artificial horizon

libgtk2.0-dev
libpango1.0-dev
libcairo2-dev
libxml2-dev

and for replay_bbox_ltm.rb

ruby version 2 or later, e.g.

ruby2.0 (14.04)
ruby2.2 (15.10)
Mar 27, 2016, 02:13 PM
Thanks stronnag that worked a treat
I will have a monkey around with it and see how to drive this thing.
Mar 28, 2016, 04:15 AM
Registered User

Segmentation fault after starting mwp.


Hello!
I have a problem with mwp-tools.
I am trying to use mwp-tools on my DIY laptop with OrangePi PC H3.
Processor is Allwinner H3 and GPU Mali400. OS - Debian Jessie with installed EGLES2 drivers for GPU.
MWP-Tools compilation is OK. Mspsim, pidedit, swithedit, horizon working fine. But starting mwp and ublog-geo stopped with "Segmentation fault".
Same notifications on Ubuntu 14 in "Linux deploy" over android 4.4 on my NOOK HD+ tablet.
I thing problem is GPU drivers.
Any suggestions?
I am using older versions mwp-tools.
Thanks in advance.

PS. Sorry for my bad english.
Mar 28, 2016, 04:39 AM
sweet dreams & flying machines
stronnag's Avatar
Quote:
Originally Posted by chwory
Hello!
I have a problem with mwp-tools.
I am trying to use mwp-tools on my DIY laptop with OrangePi PC H3.
Processor is Allwinner H3 and GPU Mali400. OS - Debian Jessie with installed EGLES2 drivers for GPU.
MWP-Tools compilation is OK. Mspsim, pidedit, swithedit, horizon working fine. But starting mwp and ublog-geo stopped with "Segmentation fault".
Same notifications on Ubuntu 14 in "Linux deploy" over android 4.4 on my NOOK HD+ tablet.
I thing problem is GPU drivers.
Any suggestions?
I am using older versions mwp-tools.
Thanks in advance.

PS. Sorry for my bad english.
I think it is a GPU problem (I don't directly access the GPU directly, but mwp & ublox-geo both use the clutter library that does use the GPU). You could try using a different Xorg driver (fb, turbo-fb). I use armsoc and turbo-fb on my ARM chromebook; even with software rendering it is usable on the chromebook (but far too slow on a first edition Raspberry Pi).
Mar 28, 2016, 06:39 AM
Registered User
Thanks.
I must try without GPU acceleration.
Apr 05, 2016, 11:18 PM
Registered User
I had a bit of trouble getting the dependencies installed on Fedora.

To decode a blackbox log, you need ruby and rubyserial gem..

But that fails to install on Fedora, until you find a page[1] telling you to install some esoteric redhat package..

Code:
sudo dnf install redhat-rpm-config
Then the standard blackbox tools clone & make; And I copied obj/blackbox_decode to /usr/local/sbin

So, now I have my blackbox log replayed into MWP, and can see my heading dancing all over the compass

[1]: https://developer.fedoraproject.org/...tallation.html
Apr 06, 2016, 02:33 PM
sweet dreams & flying machines
stronnag's Avatar
Quote:
Originally Posted by ohhorob
I had a bit of trouble getting the dependencies installed on Fedora.

To decode a blackbox log, you need ruby and rubyserial gem..

But that fails to install on Fedora, until you find a page[1] telling you to install some esoteric redhat package..

Code:
sudo dnf install redhat-rpm-config
Then the standard blackbox tools clone & make; And I copied obj/blackbox_decode to /usr/local/sbin

So, now I have my blackbox log replayed into MWP, and can see my heading dancing all over the compass

[1]: https://developer.fedoraproject.org/...tallation.html
Thanks, I'll update the fedora doc.

However, you only need the rubyserial gem if you want to send LTM over a serial device (e.g. BT to ezgui); it will run without it in mwp.


Quick Reply
Message:
Thread Tools