impload

command module
v0.145.663 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2018 License: GPL-2.0 Imports: 14 Imported by: 0

README

impload - iNav Mission Plan uploader

Introduction

impload is a cross-platform command line application to upload missions in a number of formats to an iNav flight controller. Supported formats include:

  • MW XML mission files (as used by mwp, ezgui, mission planner for inav)
  • apmplanner / qgroundcontrol mission files
  • GPX waypoint files
  • Plain, simple CSV files

Please see the wiki user guide for more information and CSV format

$ ./impload --help
Usage of ./impload [options] command [files ...]
  -a int
    	Default altitude (m) (default 20)
  -b int
    	Baud rate (default 115200)
  -d string
    	Serial Device
  -force-land
    	Adds RTH / Land for 'external' formats
  -force-rth
    	Adds RTH for 'external' formats
  -s int
    	Default speed (m/s)
  command
	Action required (upload|download|store|restore|convert|test)

Use Cases

  • Plan missions in apm / qpc, upload (& save) to iNav
  • Plan missions an any GPX creating GIS tool
  • Backup missions made in the configurator (as MW XML mission files)

Install

From source: go get github.com/stronnag/impload, binaries endup in go/bin, source in go/src/github.com/stronnag/impload. Requires go and git.

Binaries in the Release area (linux ia32/x86_64/arm7, Win32) if you don't want it build it locally.

Examples

# Linux, detect serial device, test communications
# Linux tries /dev/ttyACM0 and /dev/ttyUSB0 (in that order)
$ ./impload test
2018/05/24 18:08:11 Using device /dev/ttyUSB0 115200
INAV v2.0.0 SPRACINGF3 (e7ca7944) API 2.2 "vtail"
Waypoints: 0 of 60, valid 0

# Linux, detect serial device and upload a qpc /apm mission file
$ ./impload upload samples/qpc_0.txt
2018/05/24 18:09:10 Using device /dev/ttyUSB0 115200
INAV v2.0.0 SPRACINGF3 (e7ca7944) API 2.2 "vtail"
Waypoints: 0 of 60, valid 0
upload 12, save false
Waypoints: 12 of 60, valid 1

#
# Convert a GPX file for tracks (trkpt) to waypoints, and upload
# The converted GPX output is piped into impload
$ gpsbabel -i gpx -f samples/qpc_1_trk.gpx -x transform,wpt=trk -o gpx -F-  | ./impload store -
2018/05/24 18:34:49 Using device /dev/ttyUSB0 115200
INAV v2.0.0 SPRACINGF3 (e7ca7944) API 2.2 "vtail"
Waypoints: 11 of 60, valid 1
upload 11, save true
Saved mission
Waypoints: 11 of 60, valid 1

> REM  Windows, needs a named device to be given
> impload -d COM17 upload qpc_0.txt

Postscript

The author knows how to spell "implode".

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL