From d7b5ecbcc8b0d2066d0c0282a70dd88e5196f0c8 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 29 Jan 2016 14:31:27 +1100 Subject: [PATCH 1/5] Use x86_64 on Windows --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 90494f5..52a14bf 100644 --- a/Makefile +++ b/Makefile @@ -11,8 +11,8 @@ INCS += -I. # for in MsgHandler WARNFLAGS= -Wall -Werror -Wextra -Wunused -Wredundant-decls -D_FORTIFY_SOURCE=2 -Wfloat-equal -fstack-protector -Wformat -Werror=format-security -Werror=pointer-arith -Wpedantic ifeq ($(OS),Windows_NT) - CXX=i686-w64-mingw32-g++.exe - CC=i686-w64-mingw32-gcc.exe + CXX=x86_64-w64-mingw32-g++.exe + CC=x86_64-w64-mingw32-gcc.exe LIBS += -lws2_32 LIBS += -lpthread # for clock_gettime/clock_settime on Windows STATIC=-static @@ -114,3 +114,7 @@ install-dronekit-la: dronekit-la install -D dronekit-la $(DESTDIR)/usr/bin/dronekit-la install: install-dronekit-la + +VERSION=0.5 +windows-zip: dronekit-la + zip dronekit-la-$(VERSION).zip dronekit-la.exe README.md LICENSE From 3dd75623d384a5262a2af1fc8fe89206a0088700 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 29 Jan 2016 14:35:33 +1100 Subject: [PATCH 2/5] Bump version to 0.5 --- loganalyzer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loganalyzer.h b/loganalyzer.h index 337e8ab..1b91852 100644 --- a/loganalyzer.h +++ b/loganalyzer.h @@ -12,7 +12,7 @@ // if you modify this, modify the debian metadata using e.g. // debchange -r -e (FIXME) -#define DRONEKIT_LA_VERSION "0.3" +#define DRONEKIT_LA_VERSION "0.5" #include "INIReader.h" From 8aad2a626d00154cdabc76044b0a8e92d2b3c69e Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Fri, 29 Jan 2016 16:21:05 +1100 Subject: [PATCH 3/5] Update docs to use Truncated Log rather than Brownout --- docs/guide/other_features.rst | 2 +- docs/reference/analyzers.rst | 46 +++++++++++++++++------------------ 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/docs/guide/other_features.rst b/docs/guide/other_features.rst index 97f48ab..69b34a4 100644 --- a/docs/guide/other_features.rst +++ b/docs/guide/other_features.rst @@ -56,7 +56,7 @@ You can list them using the ``-l`` flag. At time of writing (DroneKit-LA 0.3) th Attitude Control AutoPilot Health Battery - Brownout + Truncated Log Position Estimate Divergence Crash Test Sensor Health diff --git a/docs/reference/analyzers.rst b/docs/reference/analyzers.rst index abf56eb..c71922e 100644 --- a/docs/reference/analyzers.rst +++ b/docs/reference/analyzers.rst @@ -157,29 +157,6 @@ threshold level, or if a battery failsafe event is received. -Brownout -======== - -A log should not end while the vehicle appears to be moving under its own power. -This test will FAIL if the vehicle still appears to be moving when the log ends. - -* Fail: Log ended while craft still flying -* Warn: Altitude never changed -* Pass: No brownout detected - -.. note:: - - There are several possible causes for a truncated log (including power failure due to brownout, - running out of memory for the log file, or failure of the logging sub-system). Failing this test - does not necessarily mean a brownout actually occurred. - - -.. internalnotes - - - defined in: - https://github.com/dronekit/dronekit-la/blob/master/analyzer/analyzer_brownout.cpp - https://github.com/dronekit/dronekit-la/blob/master/analyzer/analyzer_brownout.h - Compass Offsets @@ -387,6 +364,29 @@ A UAV can self-assess its sensors' health. This test will FAIL if any sensor is https://github.com/dronekit/dronekit-la/blob/master/analyzer/analyzer_sensor_health.h +Truncated Log +============= + +A log should not end while the vehicle appears to be moving under its own power. +This test will FAIL if the vehicle still appears to be moving when the log ends. + +* Fail: Log ended while craft still flying +* Warn: Altitude never changed + + +.. note:: + + There are several possible causes for a truncated log (including power failure due to brownout, + running out of memory for the log file, or failure of the logging sub-system). + + +.. internalnotes + + - defined in: + https://github.com/dronekit/dronekit-la/blob/prep-for-0.5/analyzer/analyzer_truncated_log.cpp + https://github.com/dronekit/dronekit-la/blob/prep-for-0.5/analyzer/analyzer_truncated_log.h + + .. _analyzer_listing_vehicle_definition: Vehicle Definition From 1d15f589cef991f980e1e5b38cd576232f30c182 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Fri, 29 Jan 2016 16:25:30 +1100 Subject: [PATCH 4/5] Update sphinx config build number to 0.5 --- docs/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index ddb029b..b67a362 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -61,9 +61,9 @@ # built documents. # # The short X.Y version. -version = '0.4' +version = '0.5' # The full version, including alpha/beta/rc tags. -release = '0.4' +release = '0.5' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. From 9ae8abba5837a9c987be3ae8ecc0bce052554525 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Fri, 29 Jan 2016 17:01:58 +1100 Subject: [PATCH 5/5] Update docs test data to version that matches this commit --- docs/_tests/analysis_summary.txt | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/_tests/analysis_summary.txt b/docs/_tests/analysis_summary.txt index cf86bd7..40886c4 100644 --- a/docs/_tests/analysis_summary.txt +++ b/docs/_tests/analysis_summary.txt @@ -1,5 +1,5 @@ -DK-LA Version: Version: 0.3 -Git-Version: v0.1-200-g2d60 +DK-LA Version: Version: 0.5 +Git-Version: v0.1-221-g67b8 DK-LA HELP: @@ -40,7 +40,7 @@ Gyro Drift Attitude Control AutoPilot Health Battery -Brownout +Truncated Log Position Estimate Divergence Crash Test Sensor Health @@ -77,6 +77,10 @@ Description: The autopilot reports both the craft's attitude and the attitude th * Fail: Desired attitude not achieved * Warn: Desired attitude not achieved +TEST: Truncated Log +Description: A log should not end while the vehicle appears to be moving under its own power. This test will FAIL if the vehicle still appears to be moving when the log ends. +* Fail: Log ended while craft still flying + TEST: Battery Description: Many autopilots are capable of monitoring their flight batteries. This test will FAIL if the battery level falls below the battery failsafe threshold level, or if a battery failsafe event is received. * Pass: Battery never below failsafe @@ -93,9 +97,8 @@ TEST: Ever Flew Description: Determining whether a vehicle has ever flown in a log is done heuristically based on things like motor speeds. This test will FAIL if the craft did not ever seem to fly. * Pass: The vehicle appeared to fly -TEST: Sensor Health -Description: A UAV can self-assess its sensors' health. This test will FAIL if any sensor is detected as failed. -* Fail: The craft's assessment of its sensors indicate a problem +TEST: Velocity Estimate Divergence +Description: A UAV typically has several estimates of its velocity. This test will FAIL if the craft's velocity estimates diverge. TEST: Crash Test Description: Crashes are detected both heuristically and by explicit log messages. This test will FAIL if the vehicle appears to crash. @@ -108,10 +111,6 @@ TEST: Vehicle Definition Description: The vehicle type is normally automatically detected by dronekit-la from the log. Sometimes the log does not contain sufficient information to make this determination. This test will FAIL if the craft type is never defined * Pass: Vehicle was appropriately defined -TEST: Brownout -Description: A log should not end while the vehicle appears to be moving under its own power. This test will FAIL if the vehicle still appears to be moving when the log ends. -* Fail: Log ended while craft still flying - TEST: Position Estimate Divergence Description: A UAV often has several estimates of its position. This test will FAIL or WARN if the various vehicle's position estimates diverge. * Fail: This position estimate differs from the canonical craft position @@ -122,8 +121,9 @@ Description: The strength and direction of the Earth's magnetic field should be TEST: Arming Checks Description: An autopilot checks many aspects of the aircraft's state before allowing it to be armed - for example, that it has a good GPS fix. This test will FAIL if the craft ever arms when some arming checks are disabled. -TEST: Velocity Estimate Divergence -Description: A UAV typically has several estimates of its velocity. This test will FAIL if the craft's velocity estimates diverge. +TEST: Sensor Health +Description: A UAV can self-assess its sensors' health. This test will FAIL if any sensor is detected as failed. +* Fail: The craft's assessment of its sensors indicate a problem TEST: Attitude Estimate Divergence Description: A UAV often has several estimates of its attitude. This test will FAIL or WARN if the various vehicle's attitude estimates diverge. @@ -131,4 +131,4 @@ Description: A UAV often has several estimates of its attitude. This test will TEST: Compass Offsets Description: Compass calibration produces a set of parameters that specify expected compass discrepancies. This test will WARN or FAIL depending on the degree that these compass offset parameters exceed specified thresholds. -* Fail: Compass offsets in parameters are out of bounds \ No newline at end of file +* Fail: Compass offsets in parameters are out of bounds