mirror of https://github.com/ArduPilot/ardupilot
AP_Math: Replace deprecated benchmark function
* Been deprecated since 1.2.0 Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
This commit is contained in:
parent
2ee48dea29
commit
3965c7e4bf
|
@ -86,7 +86,7 @@ static bool section_triangle(unsigned int section_index,
|
|||
static void BM_GeodesicGridSections(benchmark::State& state)
|
||||
{
|
||||
Vector3f v, a, b, c;
|
||||
int section = state.range_x();
|
||||
int section = state.range(0);
|
||||
|
||||
section_triangle(section, a, b, c);
|
||||
v = (a + b + c) / 3.0f;
|
||||
|
|
Loading…
Reference in New Issue