mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 20:00:35 +08:00
Fix tests and re-introduce tests into build
Code style fix
This commit is contained in:
committed by
Lorenz Meier
parent
1909f2b02f
commit
cf671b5134
@@ -54,6 +54,8 @@
|
||||
#include <systemlib/err.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
|
||||
#include "tests_main.h"
|
||||
|
||||
class MathlibTest : public UnitTest
|
||||
{
|
||||
public:
|
||||
@@ -73,8 +75,6 @@ private:
|
||||
bool testQuaternionRotate();
|
||||
};
|
||||
|
||||
#include "tests.h"
|
||||
|
||||
#define TEST_OP(_title, _op) { unsigned int n = 30000; hrt_abstime t0, t1; t0 = hrt_absolute_time(); for (unsigned int j = 0; j < n; j++) { _op; }; t1 = hrt_absolute_time(); PX4_INFO(_title ": %.6fus", (double)(t1 - t0) / n); }
|
||||
|
||||
using namespace math;
|
||||
|
||||
Reference in New Issue
Block a user