move logger array.h -> containers/Array.hpp

This commit is contained in:
Daniel Agar 2019-01-19 12:51:04 -05:00 committed by Lorenz Meier
parent 939413fa06
commit edeb59a8c3
2 changed files with 5 additions and 7 deletions

View File

@ -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};
};
}

View File

@ -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>