aboutsummaryrefslogtreecommitdiff
path: root/Tools/tests-host/autodeclination_test.cpp
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-12-25 09:48:15 +0100
committerThomas Gubler <thomasgubler@gmail.com>2014-12-25 09:48:15 +0100
commit25af4b266ca48b183a1ad375856396f67d6ab30f (patch)
tree64e031ec3747ab706e5ae8ed9fd052e12ee3248b /Tools/tests-host/autodeclination_test.cpp
parentad189cf7d69b8de16244b90d398e1d84ed6d0f4b (diff)
parent9b535f6553944f3468bbec9203301623412524ad (diff)
downloadpx4-firmware-25af4b266ca48b183a1ad375856396f67d6ab30f.tar.gz
px4-firmware-25af4b266ca48b183a1ad375856396f67d6ab30f.tar.bz2
px4-firmware-25af4b266ca48b183a1ad375856396f67d6ab30f.zip
Merge remote-tracking branch 'upstream/master' into dev_ros
Conflicts: .gitignore src/lib/uavcan
Diffstat (limited to 'Tools/tests-host/autodeclination_test.cpp')
-rw-r--r--Tools/tests-host/autodeclination_test.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/Tools/tests-host/autodeclination_test.cpp b/Tools/tests-host/autodeclination_test.cpp
deleted file mode 100644
index 93bc340bb..000000000
--- a/Tools/tests-host/autodeclination_test.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <string.h>
-#include <systemlib/mixer/mixer.h>
-#include <systemlib/err.h>
-#include <drivers/drv_hrt.h>
-#include <px4iofirmware/px4io.h>
-#include "../../src/systemcmds/tests/tests.h"
-#include <geo/geo.h>
-
-int main(int argc, char *argv[]) {
- warnx("autodeclination test started");
-
- if (argc < 3)
- errx(1, "Need lat/lon!");
-
- char* p_end;
-
- float lat = strtod(argv[1], &p_end);
- float lon = strtod(argv[2], &p_end);
-
- float declination = get_mag_declination(lat, lon);
-
- printf("lat: %f lon: %f, dec: %f\n", lat, lon, declination);
-
-}