mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 22:43:34 +08:00
sensors : decouple maximum sensor count and allow flexible maximums
This commit is contained in:
committed by
Kabir Mohammed
parent
f0accd39f0
commit
57aa41df2c
@@ -43,6 +43,14 @@
|
||||
namespace sensors
|
||||
{
|
||||
|
||||
static const int SENSOR_COUNT_MAX = 3;
|
||||
constexpr uint8_t MAG_COUNT_MAX = 4;
|
||||
constexpr uint8_t GYRO_COUNT_MAX = 3;
|
||||
constexpr uint8_t ACCEL_COUNT_MAX = 3;
|
||||
constexpr uint8_t BARO_COUNT_MAX = 3;
|
||||
|
||||
constexpr uint8_t SENSOR_COUNT_MAX = math::max(MAG_COUNT_MAX,
|
||||
math::max(GYRO_COUNT_MAX,
|
||||
math::max(ACCEL_COUNT_MAX,
|
||||
BARO_COUNT_MAX)));
|
||||
|
||||
} /* namespace sensors */
|
||||
|
||||
Reference in New Issue
Block a user