diff --git a/libraries/AP_Math/benchmarks/benchmark_geodesic_grid.cpp b/libraries/AP_Math/benchmarks/benchmark_geodesic_grid.cpp index 357998eb0b..71da640b0a 100644 --- a/libraries/AP_Math/benchmarks/benchmark_geodesic_grid.cpp +++ b/libraries/AP_Math/benchmarks/benchmark_geodesic_grid.cpp @@ -18,6 +18,8 @@ #include +const AP_HAL::HAL& hal = AP_HAL::get_HAL(); + static const Vector3f triangles[20][3] = { {{-M_GOLDEN, 1, 0}, {-1, 0,-M_GOLDEN}, {-M_GOLDEN,-1, 0}}, {{-1, 0,-M_GOLDEN}, {-M_GOLDEN,-1, 0}, { 0,-M_GOLDEN,-1}}, diff --git a/libraries/AP_Math/benchmarks/benchmark_matrix.cpp b/libraries/AP_Math/benchmarks/benchmark_matrix.cpp index 01c04dd783..d14b3cbbe0 100644 --- a/libraries/AP_Math/benchmarks/benchmark_matrix.cpp +++ b/libraries/AP_Math/benchmarks/benchmark_matrix.cpp @@ -2,6 +2,8 @@ #include +const AP_HAL::HAL& hal = AP_HAL::get_HAL(); + static void BM_MatrixMultiplication(benchmark::State& state) { Matrix3f m1(Vector3f(1.0f, 2.0f, 3.0f),