mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 16:48:52 +08:00
parameters use bitset for mark_unsaved
This commit is contained in:
@@ -76,6 +76,14 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void reset()
|
||||
{
|
||||
// set bits to false
|
||||
for (auto &d : _data) {
|
||||
d = 0;
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
static constexpr uint8_t BITS_PER_ELEMENT = 8;
|
||||
static constexpr size_t ARRAY_SIZE = (N % BITS_PER_ELEMENT == 0) ? N / BITS_PER_ELEMENT : N / BITS_PER_ELEMENT + 1;
|
||||
|
||||
Reference in New Issue
Block a user