Giter VIP home page Giter VIP logo

stronnag / mwptools Goto Github PK

View Code? Open in Web Editor NEW
184.0 21.0 34.0 294.07 MB

ground station, mission planner and tools for inav and multiwii-nav

Home Page: http://stronnag.github.io/mwptools/

License: GNU General Public License v3.0

Makefile 0.53% Shell 0.76% Vala 75.57% C 6.06% Ruby 8.04% Gnuplot 0.07% CSS 0.03% Go 6.90% Meson 1.06% Python 0.11% Rust 0.88%
msp ltm smartport mwp inav mission-planner multiwii replay blackbox

mwptools's Introduction

mwptools

"A mission planner for the rest of us"

Overview

mwptools provides a mission planner, terrain analysis, line of sight analysis, ground control station, real time flight logger and log replay / blackbox replay functions for the INAV FC firmware.

mwptools supports the full set of INAV and Multiwii WP types.

mwp

mwp supports the following telemetry protocols:

  • MSP (MultiWii Serial Protocol)
  • LTM (Lightweight Telemetry)
  • MAVLink (INAV subset)
  • Smartport (direct / via inverter / or from Multi-protocol Module)
  • Crossfire (CRSF)
  • Flysky AA (via Multi-protocol Module)
  • BulletGCCS MQTT

mwp also supports the real-time display of adjacent aircraft using:

  • INAV-radar (INAV UAS)
  • MAVlink Traffic Report (e.g. full-size aviation, typically ADS-B via a device such as uAvionix PingRX)
  • ADS-B using Dump1090 / SBS-1 Basestation streaming TCP protocol.
  • Any other mwp supported telemetry protocol

mwp also provides logging and the replay of:

  • mwp log files
  • Blackbox logs
  • OpenTX CSV (sdcard) logs
  • BulletGCSS logs
  • Ardupilot (.bin) log

Log replay requires tools from the flightlog2x project.

There is also an INAV Safehome editor.

In addition, mwp proivdes legacy suport for multiwii navigation functions.

User Guide

Searchable online user guide.

Tools

  • mwp : "A mission planner for the rest of us". Simple mission planning and monitoring. Mission Planning is provided for INAV and MW-NAV (MW 2.4+). Monitoring, logging and recording for INAV and MultiWii
  • Many standalone tools to manage flight logs, maintain CLI diffs, analyse logs etc.

Platforms and OS

The tools are designed to be portable and as far as possible platform and architecture agnostic. The suite is developed on Arch Linux and is tested on Debian (Bullseye, Sid), Ubuntu (latest and most recent LTS), Fedora (current) and FreeBSD (current release). mwp also runs on MS Windows, with Windows 11 / WSL-g is is pretty almost on feature parity with Linux / FreeBSD. Other (older) OS are unsupported, but may work (i.e. Debian 10).

mwp should build and run on any platform that supports (recent versions of):

  • gtk+3.0
  • meson / ninja
  • vala and gcc or clang
  • Clutter (software GL is fine)
  • libchamplain
  • libespeak
  • libgdl
  • POSIX API
  • Go (golang) > 1.17. Please install the latest vendor release on older Linux distros.

mwptools is tested on x86_64, ia32, aarch64 and riscv64 architectures (Linux / FreeBSD).

  • There is a "Release" Debian package (x86_64, Debian and derivatives, including WSL-G) Github Releases. This is build on the previous Debiab stable ("bullseye") in order to maximise compatibility across Debian derived distros.
  • Simple, "one stop shop" build and install script
  • AUR package 'mwptools-git' for Arch Linux.

It is also possible to build and run mwp on MS Windows using:

The user guide and wiki provides further guidance.

Other OS / See also

For OS not supported by mwp, see also impload for a mission format converter and upload application.

Manual / User Guide

mwp manual / user guide

Installation

Support questions are best asked in the INAV Discord (#off-topic) or RC Groups board or Github discussions / issues.

Updating

As mwptools makes no formal releases, you can update your installation from the master branch:

cd mwptools # the initial installation directory
git pull && cd build && ninja install

Note also that there is a Current Build Debian package mwptools_X.Y.Z_amd64.deb in the Github Releases area that is updated infrequently.

Arch Linux

Arch users can install mwptools from the AUR package mwptools-git

Compatibility

As well as supporting INAV, mwp aims to be compatible with EOSBandi's WinGUI for MultiWii. It used the same XML mission file format (with INAV and mwp extensions) and aims to provide similar functionally where possible.

Licence

GPL v3 or later

Alternatives

In addition to mwp, the following INAV mission planners (and GCS in some cases) exist, in various states of usefulness, at least:

The following alternatives exist for mwp-area-planner :

mwptools's People

Contributors

dependabot[bot] avatar nmaggioni avatar snaewe avatar stronnag avatar wx4cb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mwptools's Issues

Dropdown for waypoint type in mission editor

When the FC is connected, the dropdown to change the waypoint type in the mission editor will close straight away. If the FC is disconnected, the dropdown stays open and the wpt type can be changed (e.g RTH). Right clicking on the wpt in the map view works whether the FC is connected or not.

FC = Omnibus F4 V3
Linux = Linux Mint 18.3

mwp should have a remote control (dbus) interface

Currently, mwp's dbus server only does one thing, load a buffer of XML as a mission (for mwp-area-planner 'publish').

This capability should be expanded to (e.g.)

  • Upload / verify a mission
  • start / stop serial comms
  • other stuff

replay_bbox_ltm.rb : `initialize': Bad file descriptor

I'm unable to run replay_bbox_ltm.rb on Linux Mint 17.3 with Xfce (Debian)

Tried both ruby2.0 and ruby 2.2. Every time I get

replay_bbox_ltm.rb --fd 18 -i 1 -t 3 -f /home/pawel/Downloads/BBlog sobota 2.TXT
/usr/bin/replay_bbox_ltm.rb:374:in `initialize': Bad file descriptor (Errno::EBADF)
    from /usr/bin/replay_bbox_ltm.rb:374:in `new'
    from /usr/bin/replay_bbox_ltm.rb:374:in `<main>'

All other tools seems to be working fine

mwptools shutting down by itself while trying to open a log file.

After updating mwptools by using command "git pull && make && sudo make install" ,its shutting down by itself after i try to open a log file.I am running ubuntu 18.04 LTS on a latest oracle VM virtualbox on win10.It was working fine before the update.

As i am not familiar with the Linux,please guide me how to get the log file(if needed to diagnose).Thanks

mwp crashes on raspian / RPI 3 : Review Voice API choices

As https://www.rcgroups.com/forums/showpost.php?p=38601807&postcount=197

mwp:1279): Gtk-WARNING **: Negative content width -1 (allocation 1, extents 1x1) while allocating gadget (node block, owner GtkLevelBar)
pi@raspberrypi:~/.config/mwp $ mwp
2017-11-09T04:13:16+0000 mwp startup version: mwp df508c1 / 2017-11-09 0.312.788
2017-11-09T04:13:16+0000 default options: --rings 10,20 -S 64

** (mwp:1443): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
2017-11-09T04:13:17+0000 Using speech api 2 [speechd]
2017-11-09T04:13:18+0000 libchamplain 0.12.15

(mwp:1443): Gtk-WARNING **: Negative content width -2 (allocation 0, extents 1x1) while allocating gadget (node block, owner GtkLevelBar)

(mwp:1443): Gtk-WARNING **: Negative content width -2 (allocation 0, extents 1x1) while allocating gadget (node block, owner GtkLevelBar)
Segmentation fault

mwp mission upload error

Hello stronnag, I am trying to implement mission planning using mwptool but always get error saying "number of waypoints(4) exceeds maximum(0) ". I am using naze32 rev6 board with inav 1.6 version.

mwp should provide a JSON mission file as well as XML

I hate XML with a vengeance, and for the area tool mission pass-through something lighter than XML would be nice.

So instead of:

<?xml version="1.0" encoding="UTf-8"?>
<MISSION>
  <!--mw planner 0.01-->
  <VERSION value="2.3 pre8"></VERSION>
  <mwp save-date="2017-10-15T20:29:15+0100" zoom="19" cx="-1.5345427393913269" cy="50.910435912363489"><details><distance units="m" value="596.36103414939817"></distance><nav-speed units="m/s" value="4.5"></nav-speed><fly-time units="s" value="159"></fly-time><loiter-time units="s" value="0"></loiter-time></details></mwp>
  <MISSIONITEM no="1" action="WAYPOINT" lat="50.910386895461677" lon="-1.5344465478489155" alt="17" parameter1="0" parameter2="0" parameter3="0"></MISSIONITEM>
  <MISSIONITEM no="2" action="WAYPOINT" lat="50.910128871904845" lon="-1.5352552891954474" alt="17" parameter1="0" parameter2="0" parameter3="0"></MISSIONITEM>
  <MISSIONITEM no="3" action="WAYPOINT" lat="50.910708715482706" lon="-1.5342744274471443" alt="17" parameter1="0" parameter2="0" parameter3="0"></MISSIONITEM>
  <MISSIONITEM no="4" action="WAYPOINT" lat="50.910004688986817" lon="-1.5346165652698573" alt="17" parameter1="0" parameter2="0" parameter3="0"></MISSIONITEM>
  <MISSIONITEM no="5" action="WAYPOINT" lat="50.910548514918801" lon="-1.5348936080118847" alt="17" parameter1="0" parameter2="0" parameter3="0"></MISSIONITEM>
  <MISSIONITEM no="6" action="WAYPOINT" lat="50.910610632033617" lon="-1.5338906093651872" alt="17" parameter1="0" parameter2="0" parameter3="0"></MISSIONITEM>
  <MISSIONITEM no="7" action="WAYPOINT" lat="50.910048176158909" lon="-1.5348755214262155" alt="17" parameter1="0" parameter2="0" parameter3="0"></MISSIONITEM>
  <MISSIONITEM no="8" action="WAYPOINT" lat="50.910789490276116" lon="-1.5346879457342766" alt="17" parameter1="0" parameter2="0" parameter3="0"></MISSIONITEM>
  <MISSIONITEM no="9" action="WAYPOINT" lat="50.910403683013271" lon="-1.534441241890363" alt="17" parameter1="0" parameter2="0" parameter3="0"></MISSIONITEM>
  <MISSIONITEM no="10" action="RTH" lat="0" lon="0" alt="0" parameter1="1" parameter2="0" parameter3="0"></MISSIONITEM>
</MISSION>

Let's also allow:

{
  "meta": {
    "save-date": "2017-10-15T20:29:15+0100",
    "zoom": 19,
    "cx": -1.534542739391327,
    "cy": 50.91043591236349,
    "details": {
      "distance": {
        "units": "m",
        "value": 596
      },
      "nav-speed": {
        "units": "m/s",
        "value": 4.5
      },
      "fly-time": {
        "units": "s",
        "value": 159
      },
      "loiter-time": {
        "units": "s",
        "value": 0
      }
    },
    "generator": "mwp"
  },
  "mission": [
    {
      "no": 1,
      "action": "WAYPOINT",
      "lat": 50.91038689546168,
      "lon": -1.5344465478489155,
      "alt": 17,
      "p1": 0,
      "p2": 0,
      "p3": 0
    },
    {
      "no": 2,
      "action": "WAYPOINT",
      "lat": 50.910128871904845,
      "lon": -1.5352552891954474,
      "alt": 17,
      "p1": 0,
      "p2": 0,
      "p3": 0
    },
    {
      "no": 3,
      "action": "WAYPOINT",
      "lat": 50.910708715482706,
      "lon": -1.5342744274471443,
      "alt": 17,
      "p1": 0,
      "p2": 0,
      "p3": 0
    },
    {
      "no": 4,
      "action": "WAYPOINT",
      "lat": 50.91000468898682,
      "lon": -1.5346165652698573,
      "alt": 17,
      "p1": 0,
      "p2": 0,
      "p3": 0
    },
    {
      "no": 5,
      "action": "WAYPOINT",
      "lat": 50.9105485149188,
      "lon": -1.5348936080118847,
      "alt": 17,
      "p1": 0,
      "p2": 0,
      "p3": 0
    },
    {
      "no": 6,
      "action": "WAYPOINT",
      "lat": 50.91061063203362,
      "lon": -1.5338906093651872,
      "alt": 17,
      "p1": 0,
      "p2": 0,
      "p3": 0
    },
    {
      "no": 7,
      "action": "WAYPOINT",
      "lat": 50.91004817615891,
      "lon": -1.5348755214262155,
      "alt": 17,
      "p1": 0,
      "p2": 0,
      "p3": 0
    },
    {
      "no": 8,
      "action": "WAYPOINT",
      "lat": 50.910789490276116,
      "lon": -1.5346879457342766,
      "alt": 17,
      "p1": 0,
      "p2": 0,
      "p3": 0
    },
    {
      "no": 9,
      "action": "WAYPOINT",
      "lat": 50.91040368301327,
      "lon": -1.534441241890363,
      "alt": 17,
      "p1": 0,
      "p2": 0,
      "p3": 0
    },
    {
      "no": 10,
      "action": "RTH",
      "lat": 0.0,
      "lon": 0.0,
      "alt": 0,
      "p1": 1,
      "p2": 0,
      "p3": 0
    }
  ]
}

or more compactly,

{"meta":{"save-date":"2017-10-15T20:29:15+0100","zoom":19,"cx":-1.534542739391327,"cy":50.91043591236349,"details":{"distance":{"units":"m","value":596},"nav-speed":{"units":"m/s","value":4.5},"fly-time":{"units":"s","value":159},"loiter-time":{"units":"s","value":0}},"generator":"mwp"},"mission":[{"no":1,"action":"WAYPOINT","lat":50.91038689546168,"lon":-1.5344465478489155,"alt":17,"p1":0,"p2":0,"p3":0},{"no":2,"action":"WAYPOINT","lat":50.910128871904845,"lon":-1.5352552891954474,"alt":17,"p1":0,"p2":0,"p3":0},{"no":3,"action":"WAYPOINT","lat":50.910708715482706,"lon":-1.5342744274471443,"alt":17,"p1":0,"p2":0,"p3":0},{"no":4,"action":"WAYPOINT","lat":50.91000468898682,"lon":-1.5346165652698573,"alt":17,"p1":0,"p2":0,"p3":0},{"no":5,"action":"WAYPOINT","lat":50.9105485149188,"lon":-1.5348936080118847,"alt":17,"p1":0,"p2":0,"p3":0},{"no":6,"action":"WAYPOINT","lat":50.91061063203362,"lon":-1.5338906093651872,"alt":17,"p1":0,"p2":0,"p3":0},{"no":7,"action":"WAYPOINT","lat":50.91004817615891,"lon":-1.5348755214262155,"alt":17,"p1":0,"p2":0,"p3":0},{"no":8,"action":"WAYPOINT","lat":50.910789490276116,"lon":-1.5346879457342766,"alt":17,"p1":0,"p2":0,"p3":0},{"no":9,"action":"WAYPOINT","lat":50.91040368301327,"lon":-1.534441241890363,"alt":17,"p1":0,"p2":0,"p3":0},{"no":10,"action":"RTH","lat":0.0,"lon":0.0,"alt":0,"p1":1,"p2":0,"p3":0}]}

Mission not saved in flight controller after power off

OS: Ubuntu 16.04 LTS running via VMware Player
System installed: $ sudo make install
FC: Naze32 rev6 full version
Firmware: inav 1.1
Quadcopter is flying perfectly with Alt-Hold, Pos-Hold, RTH.

Here are the steps I did:

  1. create mission
  2. upload mission
  3. message box "Mission Validated" appears
  4. click ok
  5. exit mwp, but FC remains connected to USB.
  6. rerun mwp (sudo mwp)
  7. connect to FC (successful. I can see flight view updated)
  8. download mission
  9. mission is shown in Tote

But, if I power off the FC i.e. unplug USB/battery, then reconnect USB/battery and try to download mission, nothing is shown in Tote.

It seems mission is lost after power recycled.

Thoughts please.

Can't get it to make ublox

I've been trying to get this to install and it just keeps throwing this error.

david@david-VirtualBox:/usr/bin/mwptools-master$ make
make -C samples/ublox-test
make[1]: Entering directory '/usr/bin/mwptools-master/samples/ublox-test'
glib-compile-resources --target=ublox-resources.c --generate-source ublox.gresources.xml
can't write to file ublox-resources.cMakefile:21: recipe for target 'ublox-resources.c' failed
make[1]: *** [ublox-resources.c] Error 1
make[1]: Leaving directory '/usr/bin/mwptools-master/samples/ublox-test'
Makefile:8: recipe for target 'samples/ublox-test' failed
make: *** [samples/ublox-test] Error 2

I'm running Ubuntu 16.04.3 in a VM

Compile Error

Fedora linux guest on VMWare Fusion (Mac OS X)

libsoup-2.4.vapi:955.58-955.73: error: The type name `GLib.Cancellable' could not be found
public abstract uint get_proxy_uri_sync (Soup.URI uri, GLib.Cancellable? cancellable, out Soup.URI proxy_uri);
^^^^^^^^^^^^^^^^
Compilation failed: 90 error(s), 0 warning(s)
Makefile:14: recipe for target 'qproxy' failed
make[1]: *** [qproxy] Error 1
make[1]: Leaving directory '/home/rob/mwptools/qproxy'
Makefile:9: recipe for target 'qproxy' failed
make: *** [qproxy] Error 2

mwp should support Taranis s.port telemetry

If you use a Taranis radio you may be interested to know that a collaborative effort is taking place to understand and use the telemetry that is available from a Taranis TX serial port. See https://github.com/opentx/opentx/wiki/Taranis-I-O-ports for details on how to use the serial port in your radio.

The intention is that S.port telemetry would be usable in mwp and ezgui. Currently, pretty much all we know about decoding this data can be seen the mwptools/samples/frsky directory. Frsky's proprietary (requiring an NDA) attitude is not helpful in this regard.

If you interested in using s.port telemetry source in mwp or one of the other iNav ground stations and you have a Taranis TX, you can help by providing sample data, preferable a captured data file accompanied by a blackbox log.

Suitable tools to capture the log data include the ttycap tool included with mwptools, mwptools/samples/ttycap, or putty on Windows.

Please either link your data into the issue, or PM @stronnag if you want the data to be treated as private.

mwptools should have a standlone mission uploader

Continues #36

  • New test branch muppet-test
git pull
git checkout muppet-test
make
cd samples/muploader/
make

then:

$ ./muppet -m ~/Projects/quads/missions/nm_plaid.mission 
2018-03-19T20:14:40+0000 No device given ... watching
2018-03-19T20:14:40+0000 Opening /dev/ttyUSB0
Detected iNav FC ...
mission with 28 points
2018-03-19T20:14:40+0000 WP:  1
2018-03-19T20:14:40+0000 WP:  2
2018-03-19T20:14:40+0000 WP:  3
2018-03-19T20:14:40+0000 WP:  4
2018-03-19T20:14:40+0000 WP:  5
2018-03-19T20:14:40+0000 WP:  6
2018-03-19T20:14:40+0000 WP:  7
2018-03-19T20:14:40+0000 WP:  8
2018-03-19T20:14:40+0000 WP:  9
2018-03-19T20:14:40+0000 WP: 10
2018-03-19T20:14:40+0000 WP: 11
2018-03-19T20:14:40+0000 WP: 12
2018-03-19T20:14:40+0000 WP: 13
2018-03-19T20:14:40+0000 WP: 14
2018-03-19T20:14:41+0000 WP: 15
2018-03-19T20:14:41+0000 WP: 16
2018-03-19T20:14:41+0000 WP: 17
2018-03-19T20:14:41+0000 WP: 18
2018-03-19T20:14:41+0000 WP: 19
2018-03-19T20:14:41+0000 WP: 20
2018-03-19T20:14:41+0000 WP: 21
2018-03-19T20:14:41+0000 WP: 22
2018-03-19T20:14:41+0000 WP: 23
2018-03-19T20:14:41+0000 WP: 24
2018-03-19T20:14:41+0000 WP: 25
2018-03-19T20:14:41+0000 WP: 26
2018-03-19T20:14:41+0000 WP: 27
2018-03-19T20:14:41+0000 WP: 28
2018-03-19T20:14:41+0000 Mission validated
  • serial device can be specified or auto-detected
  • Not much validation yet ...

Support for "Lighttelemetry"

Hi,

Lighttelemetry as the name implies is a lite-weight protocol for data transmission developed by KipK (mwii and other forums) for use with ground-osd and antenna tracking (ghettosd and ghettostation on github -> https://github.com/KipK/Ghettostation/wiki)

It uses either 1200 or 2400 baud to send all the info so it vastly improves the range if using OpenLRSng for both rc&telemetry, over for example using a more elaborate protocol like MSP. Same implies also for 3DR radios.

So my question is could you/would you implement it just for displaying the uav data (gps position, speed, flight modes etc.), so not bidirectional, just unidirectional..Basically a GUI for lightelemetry is missing, it would be really cool if it would be available.
Thanks!

MSP Timeouts on arming

for some reason it wasn't logging even though it was turned on, but I have it setup MSP / LTM, it works fine, I arm, it sees the switch to LTM and then just times out with MSP comm failure, it restarts the telemetry poller and then just sits there trying to get MSP_INAV_STATUS - which obviously it will never get because the aircraft is flying and sending LTM.

in the mean time for the rest of the flight until disarm, when it gets MSP again, it just keeps running the last alt/sats/voltage callouts it got.

Is there any way to revert back to the last state it was in for the telemetry poller? ie, if it's disarmed or in msp and times out it goes back to that. but if it already knows it's armed and is getting (eg LTM) telemetry, to go back and look for LTM?

This wasn't under WSL, this was under ubuntu 18.10

modify install instructions on wiki

not an "issue" par se, but an observation. Didn't want to edit the wiki directly but i can if you want me to. In the Install page, there's an easier way (single command) to install the ubuntu deps.

I would also recommend adding the "-y" switch to all the "apt install" lines that way the user doesn't get prompted for "are you sure?" :D

anyways, right now you have this:

copy the ubuntu-deps.txt file
cp docs/ubuntu-deps.txt /tmp/ubuntu-deps.sh
make it executable
chmod +x /tmp/ubuntu-deps.sh

and run the script (this will take some time). Answer Y on all questions.
sudo /tmp/ubuntu-deps.sh

You can replace it with this

cd mwptools
sudo bash docs/ubuntu-deps.txt

Telemetry broken when 6 GPS Satellites fixed

When GPS has fixed 6 or more satellites, Complete telemetry is broken. All Data modules freeze and activity light stops blinking. Reproducible with iNav 1.7.3 on SPRacing F3 Deluxe, SPRacing F3 Acro and Naze32 rev6. Same with different baud rates. Also tested on 1 PC and also one VM with Ubuntu 17.10
It seems to work with iNav 1.8-RC1 but only was able to get 7 satellite in my flat.

Should be investigated if MWP or iNav Bug.

mwp from AUR and qproxy

Hello, i have installed mwptools from AUR using yaourt and qproxy does not start when launch mwp. To have Bing Map running correctly i need manually run qproxy and then launch mwp.
From Terminal receive this:

  • (mwp:702): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-QT2hp4Vzhm: Connection refused
    2017-04-05T18:42:50+0200 mwp startup version: 3c32b1d / 2017-04-05
    2017-04-05T18:42:51+0200 libchamplain 0.12.15
    2017-04-05T18:42:51+0200 Forcing proxy offline [NMSTATE_UNKNOWN]
    2017-04-05T18:42:51+0200 Starting proxy thread (offline)

Compile fails asking for gdk >= 3.22

Version listed in the requirements is gtk >= 3.18 still when compiling it complains for a higher version.

mwp.vala:1684.23-1684.46: error: Gdk.Display.get_monitor_at_window is not available in gdk-3.0 3.18.9. Use gdk-3.0 >= 3.22
var mon = dp.get_monitor_at_window(window.get_window());
^^^^^^^^^^^^^^^^^^^^^^^^
mwp.vala:1685.24-1685.39: error: Gdk.Monitor.get_geometry is not available in gdk-3.0 3.18.9. Use gdk-3.0 >= 3.22
var rect = mon.get_geometry();
^^^^^^^^^^^^^^^^

Trying to compile in Elementary OS 0.4.1, that has 3.18 and won't receive 3.22 for quite some time.

What is the leg speed for iNav

@stronnag Hi, I met a word "leg speed" when I read the manual, but I just don't understand what does it mean. I did some search online but almost found nothing about it. So what is that speed?
The word is from "WayPoint/Action Attributes", P1 of waypoint.
Thanks~

Google Maps?

Google Maps have the most superior maps available, so is there anyway to use it, with your app? Those open maps look a bit hard to pinpoint the exact waypoint coordinates...maybe if one searched before in "Google Earth" and copy-pasted the coordinates somewhere, but thats not as straight forward as doing it in a standalone app.

MWP --forward-to second bluetooth device appears in-op TBS Crossfire source, GhettoStation receiver.

Data Source - Taranis 9XD with Crossfire transmitter. Bluetooth device on CRSF is set to MAVEmu. MWP ground station is connected to CRSF via bluetooth device (/dev/rfcomm0). MWP receives and interprets the mavlink data perfectly. "Forward-To" appears to connect to GhettoStation BT device (/dev/rfcomm1) OK, but it appears that no data is forwarded. BT device was checked outside of the data-loop for proper serial link via serial monitor using "echo and cat." BT link is 9600 baud. Multiple baud rates and settings were attempted via changes to the BT device (HC-05). Tried gsettings set org.mwptools.planner forward "minLTM." When run, logging similar to the following is output. Again, MWP receives and processes the info OK.

2018-02-04T16:55:32-0500 Connected /dev/rfcomm0
2018-02-04T16:55:32-0500 set forwarder /dev/rfcomm1
2018-02-04T16:55:32-0500 LTM/Mavlink mode
2018-02-04T16:55:32-0500 Comm error count 5
2018-02-04T16:55:32-0500 MAVCRC Fail, got b58a != 8121 [1 c8] (cmd=147, len=36)
2018-02-04T16:55:32-0500 init icon 0
2018-02-04T16:55:32-0500 Armed 0
2018-02-04T16:55:32-0500 Using espeak for speech
2018-02-04T16:55:32-0500 Comm error count 6
2018-02-04T16:55:32-0500 MAVCRC Fail, got 5709 != eced [33 44] (cmd=109, len=9)
2018-02-04T16:55:32-0500 Comm error count 7
2018-02-04T16:55:32-0500 MAVCRC Fail, got 985e != acf5 [1 c8] (cmd=147, len=36)
2018-02-04T16:55:33-0500 Comm error count 8
2018-02-04T16:55:33-0500 MAVCRC Fail, got be62 != 8ac9 [1 c8] (cmd=147, len=36)
2018-02-04T16:55:34-0500 Comm error count 9
2018-02-04T16:55:34-0500 MAVCRC Fail, got 38de != c75 [1 c8] (cmd=147, len=36)
2018-02-04T16:55:34-0500 Comm error count 10
2018-02-04T16:55:34-0500 MAVCRC Fail, got 3511 != 1ba [1 c8] (cmd=147, len=36)
2018-02-04T16:55:35-0500 Comm error count 11
2018-02-04T16:55:35-0500

Can't open mwp after rebuilding

I pulled latest changes from git (tracking github master branch)

Peformed make clean, then make, and finally sudo make install.

Now when trying to run mwp from the "Activities" list in Gnome, or from terminal, the following error shows in the system log..

[rob@localhost mwptools]$ ls -alh $(which mwp)
-rwxr-xr-x. 1 root root 484K May 2 14:57 /usr/bin/mwp
[rob@localhost mwptools]$ mwp
2016-05-02T16:35:51-0700 mwp startup

(mwp:4011): GLib-GIO-ERROR **: Settings schema 'org.mwptools.planner' does not contain a key named 'dwell-time'
Trace/breakpoint trap (core dumped)

How to setup Serial over Wifi

Because I don't need long range telemetry on all vehicles (like planes) I prefer to use a ESP8266 Wireless Module to connect with my laptop or smartphone wirelessly.

On android with INAV Mission Planner it works out of the box and absolutely perfect. With my Windows Laptop I need an extra tool to connect a virtual COM-port over WiFi but this also works fine to use INAV Configurator.

Unfortunately I was not able yet to connect this virtual COM port stable to VMWare and use it on my Ubuntu VM with mwptools. I also have another laptop (an old netbook) only with ubunto and specially configured for mwptools only but I was not able to get the Serial Port connected over Wifi and use it with mwptools.

I found this manual for all different systems that told to use "socat" for this but I just don't understand this 2-line manual. My Linux skills are like.... a Windows User? :D

It would be great if you could make a manual for Linux dummies like me to get a connection over Wifi with an ESP8266.

cf-cli fails with serial ports after COM9: under Windows

When running cf-cli on a Windows 7 laptop with a serial port is after COM9: (for example, COM15:), the program fails with a message like "07:09:16 open COM15: - The filename, directory name, or volume label syntax is incorrect. (0x7b)". The CleanFlight configuration is able to successfully reach the flight controller using the same serial port. If the serial port is renamed to a "lower" port number (for example, COM7:), then cf-cli is able to run successfully.

--ET

Ubuntu 16.04 compatibility?

Just tried to build on 16.04 LTS Desktop and got the following error:

mwp.vala:1441.23-1441.46: error: The name get_monitor_at_window' does not exist in the context of Gdk.Display?' var mon = dp.get_monitor_at_window(window.get_window()); ^^^^^^^^^^^^^^^^^^^^^^^^ mwp.vala:1441.17-1441.67: error: var declaration not allowed with non-typed initializer var mon = dp.get_monitor_at_window(window.get_window()); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mwp.vala:1442.24-1442.26: error: The name mon' does not exist in the context of MWPlanner.activate' var rect = mon.get_geometry(); ^^^ mwp.vala:1442.17-1442.41: error: var declaration not allowed with non-typed initializer var rect = mon.get_geometry(); ^^^^^^^^^^^^^^^^^^^^^^^^^ mwp.vala:1443.29-1443.32: error: The name rect' does not exist in the context of MWPlanner.activate' conf.window_p = rect.width*80/100; ^^^^

Did install all the dependencies as per the doc. Thoughts?

MultiWii 2.4 Nav 7 initial connection is ok, but how to slow down MSP communications.

I have old multiwii 2.41 nav version 7. MWPtools successfully connects to it, but it has a lot msp timeouts and freezes:

2019-05-06T00:12:35+1000 mwp startup version: mwp local / 2019-04-13 2.095.731
2019-05-06T00:12:35+1000 on Linux Mint 19.1 user-Aspire-V3 Linux 4.15.0-48-generic x86_64
2019-05-06T00:12:35+1000 Failed to find "blackbox_decode" on PATH
2019-05-06T00:12:35+1000 Using speech api 1 [espeak]
2019-05-06T00:12:35+1000 libchamplain 0.12.16
2019-05-06T00:12:37+1000 Starting Bing proxy 
2019-05-06T00:12:37+1000 BB load async map zoom : true
2019-05-06T00:12:37+1000 Delta speed 0,000000
2019-05-06T00:13:00+1000 Try connect /dev/ttyUSB0
2019-05-06T00:13:00+1000 Connected /dev/ttyUSB0
2019-05-06T00:13:00+1000 Serial ready
2019-05-06T00:13:01+1000 set mrtype=14 cap =10
2019-05-06T00:13:01+1000 Error on cmd MSP_CMDS_API_VERSION 1
2019-05-06T00:13:01+1000 Generate navconf 7
2019-05-06T00:13:01+1000 Masks arm 1 angle 2 horz 4 ph 20 rth 10 wp 80
2019-05-06T00:13:01+1000 Sensors: Acc Mag GPS  (000d)
2019-05-06T00:13:01+1000 switch val == 00000000 (00000006)
2019-05-06T00:13:01+1000 init icon 14
2019-05-06T00:13:01+1000 Timer cycle for 7 items, 42 => 102 bytes
2019-05-06T00:13:01+1000 Start poller
2019-05-06T00:13:03+1000 MSP Timeout (MSP_CMDS_ALTITUDE)
2019-05-06T00:13:06+1000 MSP Timeout (MSP_CMDS_NAV_STATUS)
2019-05-06T00:13:09+1000 MSP Timeout (MSP_CMDS_NAV_STATUS)
2019-05-06T00:13:10+1000 MSP Timeout (MSP_CMDS_NAV_STATUS)
2019-05-06T00:13:11+1000 MSP Timeout (MSP_CMDS_NAV_STATUS)
2019-05-06T00:13:12+1000 MSP Timeout (MSP_CMDS_NAV_STATUS)
2019-05-06T00:13:13+1000 MSP Timeout (MSP_CMDS_NAV_STATUS)
2019-05-06T00:13:14+1000 message => No data for 5s
2019-05-06T00:13:14+1000 Alert: beep-sound.ogg
2019-05-06T00:13:14+1000 MSP Timeout (MSP_CMDS_NAV_STATUS)
2019-05-06T00:13:15+1000 MSP Timeout (MSP_CMDS_NAV_STATUS)
2019-05-06T00:13:17+1000 MSP Timeout (MSP_CMDS_NAV_STATUS)
2019-05-06T00:13:18+1000 MSP Timeout (MSP_CMDS_STATUS)
2019-05-06T00:13:19+1000 MSP Timeout (MSP_CMDS_STATUS)
2019-05-06T00:13:20+1000 MSP Timeout (MSP_CMDS_STATUS)
2019-05-06T00:13:21+1000 MSP Timeout (MSP_CMDS_STATUS)
2019-05-06T00:13:22+1000 MSP Timeout (MSP_CMDS_STATUS)
2019-05-06T00:13:22+1000 message => No data for 5s

... and so on.

I use usb to serial converter. In EOSBandi's WinGUI for MW works better, but i need change nav version 7 to 5 and firmware version to 2.30. And it does not upload missions.

I hope on mwptools.

How to arm without the radio/ using wireless module?

Because I don't have a hand held radio controller and want to use the wireless module to do all the control, so I wonder how to arm the FC board and make it take off?

I am using a pair of xbees to do the wireless data exchange (MSP), and I am able to use xbee to get data from the FC board, upload missions, etc. In the past, I sent raw RC values to the board to replace the radio controller so that I could arm and take off.

But to make it fly with waypoints, I still need to arm it, right? Does the process look like: 1. upload waypoints/ missions with mwp; 2. use rc arm it; 3. then the quadcopter take off by itself?

Then how to do this if I don't have the rc? I tried to send raw rc values after I upload missions, but still not able to arm it.

mwp, compile error listen_all does not exist

Hello Jonathan,
Thank you for the interesting program mwp.
Unfortunately I could not compile mwp. I get the error:
mapsources.vala:278.21-278.33: error: The name listen_all' does not exist in the context ofSoupProxy'
I use Ubuntu 14.04.

Is it possible to help me please?
Regards, Rudolf

p.s.: It would be nice to mention in your README.md that the "*-dev" version of the support packages must be installed, e.g. libchamplain-0.12-dev.

Can't save preferences

via user HoChiMinh on RCG http://www.rcgroups.com/forums/showpost.php?p=35565467&postcount=80
"In Preferences/Device List, I deleted some default devices and added /dev/ttyUSB0 then Apply.
But it does not appear in the Main screen. Exit and re-run mwp makes no difference.
Did I do something wrong?"

Please tell me:

  • OS
  • How you installed e.g. make; sudo make install
  • The exact value you tried to set (may cut & paste it)
  • The output of (from a terminal)
gsettings list-recursively org.mwptools.planner

If you in a terminal enter:

gsettings set org.mwptools.planner device-names "['/dev/ttyUSB0']"

what then happens when you run mwp?

Too long timeout (UDP)

Hi!
I very much enjoy the tool you have written.
I try to integrate/make it usable with my own project called "DroneBridge" which is a communication link.
"End-user-device" (app/laptop/mwptools) to ground station communication currently is based on UDP.

If mwptools requests a message it waits for about one second for a requested message (according to Wireshark) bevor it requests a new one (timeout). As the radio link loses packets from time to time, this behaviour leads to one-second delays/interruptions. I think the user experience suffers a lot from that, for the fact that just one packet was lost.

As this is a UDP only issue (i guess) I'd like to make following suggestions:

  • Make timeout configurable (at least for UDP connections)
  • Make requests per second configurable - MSP is polled and that way users can optimize the settings for their hardware/link capacity.

Another thing that came up:
I love the fact that it auto-detects the switch from MSP to LTM. DroneBridge delivers both protocols via separate UDP streams. Would it be possible to have a second socket for LTM only? The moment LTM is detected on socket 2 you could pause/deactivate socket 1 for MSP.
I'll write a new issue if necessary. Just want to test the waters.

mspsim seems not installed

Previously I successfully installed mwp, but seems like the other tools were not installed at all.
I can start up mwp, but mspsim only gives me "mspsim: command not found".
Then I tried to make it in mspsim folder, but got some error:

/tmp/ccIjM3TF.o: In function mw_serial_setup_fd': serial-device.vala.c:(.text+0x903): undefined reference to set_fd_speed'
/tmp/ccIjM3TF.o: In function mw_serial_open': serial-device.vala.c:(.text+0xb36): undefined reference to open_serial'
serial-device.vala.c:(.text+0xc7a): undefined reference to get_error_text' /tmp/ccIjM3TF.o: In function mw_serial_close':
serial-device.vala.c:(.text+0x16ab): undefined reference to close_serial' /tmp/ccIjM3TF.o: In function mw_serial_error_counter':
serial-device.vala.c:(.text+0x392): undefined reference to `flush_serial'
collect2: error: ld returned 1 exit status
error: cc exited with status 256
Compilation failed: 1 error(s), 0 warning(s)
Makefile:13: recipe for target 'mspsim' failed
make: *** [mspsim] Error 1

Am I missing some dependency or anything else?

Thanks~

map sources - quadkey - bing maps

CIAO! I can get some help here? thanks

"Define the “map-sources” key in the settings, this is the name of a JSON file in
~/.config/mwp defining the map sources."
this one?
org.mwptools.planner.gschema.xml
maybe : <key name="quadkeys_proxy.json" type="s">?

<key name="map-sources" type="s">
      <summary>Additional Map sources</summary>
      <default>""</default>
      <description>JSON file defining additional map sources</description>
    </key>

"3 Ensure that the gsettings key 'map-sources' is set to allow user defined map sources;" ???

"4 Ensure that the gsettings key 'quaduri' that defines the real quadkeys source is also set (there is
no default) is shown below, #Q# indicates where the per tile quadkey value goes). " ???
this one? maybe? : <key name="http://a0.ortho.tiles.virtualearth.net/tiles/a#Q#.png?g=131" type="s">

<key name="quaduri" type="s">
      <summary>URI for the quadkey proxy</summary>
      <default>""</default>
      <description>A URI for the real source of quadkey tile. Use %s
      to indicate where the actual quadkey goes.</description>
    </key>

"6. Enable “Bing Proxy” as the map source, set it as default if you wish " ???

MWP under WSL (ubuntu on windows)

just a comment....

running "ubuntu on windows" not the vm, but what comes with windows 10. it seems to compile and install fine however it looks like pkg-config doesn't like a command line argument.

Unknown option --list-package-names
Must specify package names on the command line

make[1]: Leaving directory '/home/charlesb/src/mwptools/mwp'
make -C bbox-replay
make[1]: Entering directory '/home/charlesb/src/mwptools/bbox-replay'
Unknown option --list-package-names
Must specify package names on the command line
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/charlesb/src/mwptools/bbox-replay'
make -C qproxy
make[1]: Entering directory '/home/charlesb/src/mwptools/qproxy'
Unknown option --list-package-names
Must specify package names on the command line

ETC ETC.

Installation is unnecessarily difficult / broken

This is currently being worked. As of 2016-03-04

make
sudo make sysinstall 

will install in system locations (/usr) and requires no environment variables and

make
make install 

will install locally, requiring XDG_DATA_DIRS and ~/bin on the PATH.

This will be further simplified (and documented) and the issue closed once the process is complete.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.