diff options
author | Anton Matosov <anton.matosov@gmail.com> | 2015-01-05 00:30:49 +0200 |
---|---|---|
committer | Anton Matosov <anton.matosov@gmail.com> | 2015-01-05 12:02:32 +0200 |
commit | 8fadbdcf2fee463498228abeac038260f51460b1 (patch) | |
tree | 3565012071000d69d820ec26c6f8428826feb9fb /src/modules/systemlib/mixer/mixer.h | |
parent | 388833a1fa56b40034333ba6bbef376fabcc1320 (diff) | |
download | px4-firmware-8fadbdcf2fee463498228abeac038260f51460b1.tar.gz px4-firmware-8fadbdcf2fee463498228abeac038260f51460b1.tar.bz2 px4-firmware-8fadbdcf2fee463498228abeac038260f51460b1.zip |
Automated generation of the Geometry enum to make addition of the new multirotor a really simple task
Diffstat (limited to 'src/modules/systemlib/mixer/mixer.h')
-rw-r--r-- | src/modules/systemlib/mixer/mixer.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/modules/systemlib/mixer/mixer.h b/src/modules/systemlib/mixer/mixer.h index 1fe4380ad..a0197df48 100644 --- a/src/modules/systemlib/mixer/mixer.h +++ b/src/modules/systemlib/mixer/mixer.h @@ -453,23 +453,9 @@ public: /** * Supported multirotor geometries. * - * XXX add more + * Values are generated by the multi_tables script and placed to mixer_multirotor.generated.h */ - enum Geometry { - QUAD_X = 0, /**< quad in X configuration */ - QUAD_PLUS, /**< quad in + configuration */ - QUAD_V, /**< quad in V configuration */ - QUAD_WIDE, /**< quad in wide configuration */ - HEX_X, /**< hex in X configuration */ - HEX_PLUS, /**< hex in + configuration */ - HEX_COX, - OCTA_X, - OCTA_PLUS, - OCTA_COX, - TWIN_ENGINE, /**< VTOL: one engine on each wing */ - - MAX_GEOMETRY - }; + enum Geometry : unsigned int; /** * Precalculated rotor mix. |