diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2015-02-23 23:27:51 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-02-23 23:27:51 +0100 |
commit | 9d8651c10c7cd431e78757dd465ba30f723d16e2 (patch) | |
tree | 0bf3f8e51e72284fb55a43d1edcf16e02c2c89e0 /src/systemcmds | |
parent | 71a5351deb4662e28f5b684d61aede930ba524e6 (diff) | |
download | px4-firmware-9d8651c10c7cd431e78757dd465ba30f723d16e2.tar.gz px4-firmware-9d8651c10c7cd431e78757dd465ba30f723d16e2.tar.bz2 px4-firmware-9d8651c10c7cd431e78757dd465ba30f723d16e2.zip |
mathlib test: Print all test types which are actually performed
Diffstat (limited to 'src/systemcmds')
-rw-r--r-- | src/systemcmds/tests/test_mathlib.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/systemcmds/tests/test_mathlib.cpp b/src/systemcmds/tests/test_mathlib.cpp index d78be4826..0519a55a9 100644 --- a/src/systemcmds/tests/test_mathlib.cpp +++ b/src/systemcmds/tests/test_mathlib.cpp @@ -1,6 +1,6 @@ /**************************************************************************** * - * Copyright (c) 2013 PX4 Development Team. All rights reserved. + * Copyright (c) 2013-2015 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -158,6 +158,7 @@ int test_mathlib(int argc, char *argv[]) } { + warnx("Nonsymmetric matrix operations test") // test nonsymmetric +, -, +=, -= float data1[2][3] = {{1, 2, 3}, {4, 5, 6}}; @@ -215,6 +216,8 @@ int test_mathlib(int argc, char *argv[]) float diff = 0.1f; float tol = 0.00001f; + warnx("Quaternion transformation methods test."); + for (float roll = -M_PI_F; roll <= M_PI_F; roll += diff) { for (float pitch = -M_PI_2_F; pitch <= M_PI_2_F; pitch += diff) { for (float yaw = -M_PI_F; yaw <= M_PI_F; yaw += diff) { |