mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:49:12 +08:00
move logger array.h -> containers/Array.hpp
This commit is contained in:
committed by
Lorenz Meier
parent
939413fa06
commit
edeb59a8c3
@@ -47,9 +47,7 @@ class Array
|
|||||||
typedef const TYPE *const_iterator;
|
typedef const TYPE *const_iterator;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Array()
|
Array() = default;
|
||||||
: _size(0), _overflow(false)
|
|
||||||
{}
|
|
||||||
|
|
||||||
bool push_back(const TYPE &x)
|
bool push_back(const TYPE &x)
|
||||||
{
|
{
|
||||||
@@ -152,9 +150,9 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
TYPE _items[N];
|
TYPE _items[N] {};
|
||||||
size_t _size;
|
size_t _size{0};
|
||||||
bool _overflow;
|
bool _overflow{false};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
#include "log_writer.h"
|
#include "log_writer.h"
|
||||||
#include "messages.h"
|
#include "messages.h"
|
||||||
#include "array.h"
|
#include <containers/Array.hpp>
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include <px4_defines.h>
|
#include <px4_defines.h>
|
||||||
#include <drivers/drv_hrt.h>
|
#include <drivers/drv_hrt.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user