ArduPilot/clj-ardupilot-utils

Name: clj-ardupilot-utils

Owner: ArduPilot

Description: null

Created: 2017-06-27 00:59:02.0

Updated: 2018-04-02 20:12:14.0

Pushed: 2018-04-02 20:12:12.0

Homepage: null

Size: 59446

Language: Clojure

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

clj-ardupilot-utils

Build Status

A Clojure library of helper utilities for use with Ardupilot.

Installation

clj-ardupilot-utils is available from Clojars:

upilot/clj-ardupilot-utils "0.1.0-SNAPSHOT"]
Usage
Parsing a DataFlash log

To parse an ArduPilot dataflash log, use log-analyzer/parse-bin which returns a lazy sequence of messages

require ['ardupilot-utils.log-reader :as 'log-reader]
        ['clojure.java.io :as ;io])
log-reader/parse-bin (io/input-stream (io/file "my-log.BIN")))
Analyze a DataFlash log

clj-ardupilot-utils provides a log analyzer based losely off the log analysis tool within ArduPilot.

require ['ardupilot-utils.log-analysis :as 'log-analysis]
        ['clojure.java.io :as ;io])
log-analysis/analyze-log (io/input-stream (io/file "my-log.BIN")))

analyze-log takes an input stream, which it will run all tests, or a provided subset of tests over. Any test that fails will be returned, otherwise an empty list is returned.

License

Copyright © 2017 Michael du Breuil

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.