mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 00:31:36 +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;
|
||||
|
||||
public:
|
||||
Array()
|
||||
: _size(0), _overflow(false)
|
||||
{}
|
||||
Array() = default;
|
||||
|
||||
bool push_back(const TYPE &x)
|
||||
{
|
||||
@@ -152,9 +150,9 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
TYPE _items[N];
|
||||
size_t _size;
|
||||
bool _overflow;
|
||||
TYPE _items[N] {};
|
||||
size_t _size{0};
|
||||
bool _overflow{false};
|
||||
};
|
||||
|
||||
}
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
#include "log_writer.h"
|
||||
#include "messages.h"
|
||||
#include "array.h"
|
||||
#include <containers/Array.hpp>
|
||||
#include "util.h"
|
||||
#include <px4_defines.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
|
||||
Reference in New Issue
Block a user