common.h 161 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610
  1. /** @file
  2. * @brief MAVLink comm protocol generated from common.xml
  3. * @see http://mavlink.org
  4. */
  5. #pragma once
  6. #ifndef MAVLINK_COMMON_H
  7. #define MAVLINK_COMMON_H
  8. #ifndef MAVLINK_H
  9. #error Wrong include order: MAVLINK_COMMON.H MUST NOT BE DIRECTLY USED. Include mavlink.h from the same directory instead or set ALL AND EVERY defines from MAVLINK.H manually accordingly, including the #define MAVLINK_H call.
  10. #endif
  11. #define MAVLINK_COMMON_XML_HASH 8705501249757191712
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. // MESSAGE LENGTHS AND CRCS
  16. #ifndef MAVLINK_MESSAGE_LENGTHS
  17. #define MAVLINK_MESSAGE_LENGTHS {}
  18. #endif
  19. #ifndef MAVLINK_MESSAGE_CRCS
  20. #define MAVLINK_MESSAGE_CRCS {{0, 50, 9, 9, 0, 0, 0}, {1, 124, 31, 43, 0, 0, 0}, {2, 137, 12, 12, 0, 0, 0}, {4, 237, 14, 14, 3, 12, 13}, {5, 217, 28, 28, 1, 0, 0}, {6, 104, 3, 3, 0, 0, 0}, {7, 119, 32, 32, 0, 0, 0}, {8, 117, 36, 36, 0, 0, 0}, {11, 89, 6, 6, 1, 4, 0}, {20, 214, 20, 20, 3, 2, 3}, {21, 159, 2, 2, 3, 0, 1}, {22, 220, 25, 25, 0, 0, 0}, {23, 168, 23, 23, 3, 4, 5}, {24, 24, 30, 52, 0, 0, 0}, {25, 23, 101, 101, 0, 0, 0}, {26, 170, 22, 24, 0, 0, 0}, {27, 144, 26, 29, 0, 0, 0}, {28, 67, 16, 16, 0, 0, 0}, {29, 115, 14, 16, 0, 0, 0}, {30, 39, 28, 28, 0, 0, 0}, {31, 246, 32, 48, 0, 0, 0}, {32, 185, 28, 28, 0, 0, 0}, {33, 104, 28, 28, 0, 0, 0}, {34, 237, 22, 22, 0, 0, 0}, {35, 244, 22, 22, 0, 0, 0}, {36, 222, 21, 37, 0, 0, 0}, {37, 212, 6, 7, 3, 4, 5}, {38, 9, 6, 7, 3, 4, 5}, {39, 254, 37, 38, 3, 32, 33}, {40, 230, 4, 5, 3, 2, 3}, {41, 28, 4, 4, 3, 2, 3}, {42, 28, 2, 18, 0, 0, 0}, {43, 132, 2, 3, 3, 0, 1}, {44, 221, 4, 9, 3, 2, 3}, {45, 232, 2, 3, 3, 0, 1}, {46, 11, 2, 2, 0, 0, 0}, {47, 153, 3, 8, 3, 0, 1}, {48, 41, 13, 21, 1, 12, 0}, {49, 39, 12, 20, 0, 0, 0}, {50, 78, 37, 37, 3, 18, 19}, {51, 196, 4, 5, 3, 2, 3}, {54, 15, 27, 27, 3, 24, 25}, {55, 3, 25, 25, 0, 0, 0}, {61, 167, 72, 72, 0, 0, 0}, {62, 183, 26, 26, 0, 0, 0}, {63, 119, 181, 181, 0, 0, 0}, {64, 191, 225, 225, 0, 0, 0}, {65, 118, 42, 42, 0, 0, 0}, {66, 148, 6, 6, 3, 2, 3}, {67, 21, 4, 4, 0, 0, 0}, {69, 243, 11, 30, 1, 10, 0}, {70, 124, 18, 38, 3, 16, 17}, {73, 38, 37, 38, 3, 32, 33}, {74, 20, 20, 20, 0, 0, 0}, {75, 158, 35, 35, 3, 30, 31}, {76, 152, 33, 33, 3, 30, 31}, {77, 143, 3, 10, 3, 8, 9}, {80, 14, 4, 4, 3, 2, 3}, {81, 106, 22, 22, 0, 0, 0}, {82, 49, 39, 51, 3, 36, 37}, {83, 22, 37, 37, 0, 0, 0}, {84, 143, 53, 53, 3, 50, 51}, {85, 140, 51, 51, 0, 0, 0}, {86, 5, 53, 53, 3, 50, 51}, {87, 150, 51, 51, 0, 0, 0}, {89, 231, 28, 28, 0, 0, 0}, {90, 183, 56, 56, 0, 0, 0}, {91, 63, 42, 42, 0, 0, 0}, {92, 54, 33, 33, 0, 0, 0}, {93, 47, 81, 81, 0, 0, 0}, {100, 175, 26, 34, 0, 0, 0}, {101, 102, 32, 117, 0, 0, 0}, {102, 158, 32, 117, 0, 0, 0}, {103, 208, 20, 57, 0, 0, 0}, {104, 56, 32, 116, 0, 0, 0}, {105, 93, 62, 63, 0, 0, 0}, {106, 138, 44, 44, 0, 0, 0}, {107, 108, 64, 65, 0, 0, 0}, {108, 32, 84, 92, 0, 0, 0}, {109, 185, 9, 9, 0, 0, 0}, {110, 84, 254, 254, 3, 1, 2}, {111, 34, 16, 18, 3, 16, 17}, {112, 174, 12, 12, 0, 0, 0}, {113, 124, 36, 39, 0, 0, 0}, {114, 237, 44, 44, 0, 0, 0}, {115, 4, 64, 64, 0, 0, 0}, {116, 76, 22, 24, 0, 0, 0}, {117, 128, 6, 6, 3, 4, 5}, {118, 56, 14, 14, 0, 0, 0}, {119, 116, 12, 12, 3, 10, 11}, {120, 134, 97, 97, 0, 0, 0}, {121, 237, 2, 2, 3, 0, 1}, {122, 203, 2, 2, 3, 0, 1}, {123, 250, 113, 113, 3, 0, 1}, {124, 87, 35, 57, 0, 0, 0}, {125, 203, 6, 6, 0, 0, 0}, {126, 220, 79, 81, 3, 79, 80}, {127, 25, 35, 35, 0, 0, 0}, {128, 226, 35, 35, 0, 0, 0}, {129, 46, 22, 24, 0, 0, 0}, {130, 29, 13, 13, 0, 0, 0}, {131, 223, 255, 255, 0, 0, 0}, {132, 85, 14, 39, 0, 0, 0}, {133, 6, 18, 18, 0, 0, 0}, {134, 229, 43, 43, 0, 0, 0}, {135, 203, 8, 8, 0, 0, 0}, {136, 1, 22, 22, 0, 0, 0}, {137, 195, 14, 16, 0, 0, 0}, {138, 109, 36, 120, 0, 0, 0}, {139, 168, 43, 43, 3, 41, 42}, {140, 181, 41, 41, 0, 0, 0}, {141, 47, 32, 32, 0, 0, 0}, {142, 72, 243, 243, 0, 0, 0}, {143, 131, 14, 16, 0, 0, 0}, {144, 127, 93, 93, 0, 0, 0}, {146, 103, 100, 100, 0, 0, 0}, {147, 154, 36, 54, 0, 0, 0}, {148, 178, 60, 78, 0, 0, 0}, {149, 200, 30, 60, 0, 0, 0}, {162, 189, 8, 9, 0, 0, 0}, {192, 36, 44, 54, 0, 0, 0}, {225, 208, 65, 73, 0, 0, 0}, {230, 163, 42, 42, 0, 0, 0}, {231, 105, 40, 40, 0, 0, 0}, {232, 151, 63, 65, 0, 0, 0}, {233, 35, 182, 182, 0, 0, 0}, {234, 150, 40, 40, 0, 0, 0}, {235, 179, 42, 42, 0, 0, 0}, {241, 90, 32, 32, 0, 0, 0}, {242, 104, 52, 60, 0, 0, 0}, {243, 85, 53, 61, 1, 52, 0}, {244, 95, 6, 6, 0, 0, 0}, {245, 130, 2, 2, 0, 0, 0}, {246, 184, 38, 38, 0, 0, 0}, {247, 81, 19, 19, 0, 0, 0}, {248, 8, 254, 254, 3, 3, 4}, {249, 204, 36, 36, 0, 0, 0}, {250, 49, 30, 30, 0, 0, 0}, {251, 170, 18, 18, 0, 0, 0}, {252, 44, 18, 18, 0, 0, 0}, {253, 83, 51, 54, 0, 0, 0}, {254, 46, 9, 9, 0, 0, 0}, {256, 71, 42, 42, 3, 8, 9}, {257, 131, 9, 9, 0, 0, 0}, {258, 187, 32, 232, 3, 0, 1}, {259, 92, 235, 236, 0, 0, 0}, {260, 146, 5, 13, 0, 0, 0}, {261, 179, 27, 61, 0, 0, 0}, {262, 12, 18, 22, 0, 0, 0}, {263, 133, 255, 255, 0, 0, 0}, {264, 49, 28, 32, 0, 0, 0}, {265, 26, 16, 20, 0, 0, 0}, {266, 193, 255, 255, 3, 2, 3}, {267, 35, 255, 255, 3, 2, 3}, {268, 14, 4, 4, 3, 2, 3}, {269, 109, 213, 213, 0, 0, 0}, {270, 59, 19, 19, 0, 0, 0}, {271, 22, 52, 52, 0, 0, 0}, {275, 126, 31, 31, 0, 0, 0}, {276, 18, 49, 49, 0, 0, 0}, {280, 70, 33, 33, 0, 0, 0}, {281, 48, 13, 13, 0, 0, 0}, {282, 123, 35, 35, 3, 32, 33}, {283, 74, 144, 145, 0, 0, 0}, {284, 99, 32, 32, 3, 30, 31}, {285, 137, 40, 49, 3, 38, 39}, {286, 210, 53, 57, 3, 50, 51}, {287, 1, 23, 23, 3, 20, 21}, {288, 20, 23, 23, 3, 20, 21}, {290, 251, 46, 46, 0, 0, 0}, {291, 10, 57, 57, 0, 0, 0}, {299, 19, 96, 98, 0, 0, 0}, {300, 217, 22, 22, 0, 0, 0}, {301, 243, 58, 58, 0, 0, 0}, {310, 28, 17, 17, 0, 0, 0}, {311, 95, 116, 116, 0, 0, 0}, {320, 243, 20, 20, 3, 2, 3}, {321, 88, 2, 2, 3, 0, 1}, {322, 243, 149, 149, 0, 0, 0}, {323, 78, 147, 147, 3, 0, 1}, {324, 132, 146, 146, 0, 0, 0}, {330, 23, 158, 167, 0, 0, 0}, {331, 91, 230, 233, 0, 0, 0}, {332, 236, 239, 239, 0, 0, 0}, {333, 231, 109, 109, 0, 0, 0}, {334, 72, 10, 10, 0, 0, 0}, {335, 225, 24, 24, 0, 0, 0}, {336, 245, 84, 84, 0, 0, 0}, {339, 199, 5, 5, 0, 0, 0}, {340, 99, 70, 70, 0, 0, 0}, {350, 232, 20, 252, 0, 0, 0}, {360, 11, 25, 25, 0, 0, 0}, {370, 26, 140, 140, 0, 0, 0}, {373, 117, 42, 42, 0, 0, 0}, {375, 251, 140, 140, 0, 0, 0}, {380, 232, 20, 20, 0, 0, 0}, {385, 147, 133, 133, 3, 2, 3}, {386, 132, 16, 16, 3, 4, 5}, {387, 4, 72, 72, 3, 4, 5}, {388, 8, 37, 37, 3, 32, 33}, {390, 156, 238, 238, 0, 0, 0}, {395, 0, 212, 212, 0, 0, 0}, {397, 182, 108, 108, 0, 0, 0}, {400, 110, 254, 254, 3, 4, 5}, {401, 183, 6, 6, 3, 4, 5}, {410, 160, 53, 53, 0, 0, 0}, {411, 106, 3, 3, 0, 0, 0}, {412, 33, 6, 6, 3, 4, 5}, {413, 77, 7, 7, 3, 4, 5}, {9000, 113, 137, 137, 0, 0, 0}, {9005, 117, 34, 34, 0, 0, 0}, {12900, 114, 44, 44, 3, 0, 1}, {12901, 254, 59, 59, 3, 30, 31}, {12902, 140, 53, 53, 3, 4, 5}, {12903, 249, 46, 46, 3, 0, 1}, {12904, 77, 54, 54, 3, 28, 29}, {12905, 49, 43, 43, 3, 0, 1}, {12915, 94, 249, 249, 3, 0, 1}, {12918, 139, 51, 51, 0, 0, 0}, {12919, 7, 18, 18, 3, 16, 17}, {12920, 20, 5, 5, 0, 0, 0}}
  21. #endif
  22. #include "../protocol.h"
  23. #define MAVLINK_ENABLED_COMMON
  24. // ENUM DEFINITIONS
  25. /** @brief These values define the type of firmware release. These values indicate the first version or release of this type. For example the first alpha release would be 64, the second would be 65. */
  26. #ifndef HAVE_ENUM_FIRMWARE_VERSION_TYPE
  27. #define HAVE_ENUM_FIRMWARE_VERSION_TYPE
  28. typedef enum FIRMWARE_VERSION_TYPE
  29. {
  30. FIRMWARE_VERSION_TYPE_DEV=0, /* development release | */
  31. FIRMWARE_VERSION_TYPE_ALPHA=64, /* alpha release | */
  32. FIRMWARE_VERSION_TYPE_BETA=128, /* beta release | */
  33. FIRMWARE_VERSION_TYPE_RC=192, /* release candidate | */
  34. FIRMWARE_VERSION_TYPE_OFFICIAL=255, /* official stable release | */
  35. FIRMWARE_VERSION_TYPE_ENUM_END=256, /* | */
  36. } FIRMWARE_VERSION_TYPE;
  37. #endif
  38. /** @brief Flags to report failure cases over the high latency telemetry. */
  39. #ifndef HAVE_ENUM_HL_FAILURE_FLAG
  40. #define HAVE_ENUM_HL_FAILURE_FLAG
  41. typedef enum HL_FAILURE_FLAG
  42. {
  43. HL_FAILURE_FLAG_GPS=1, /* GPS failure. | */
  44. HL_FAILURE_FLAG_DIFFERENTIAL_PRESSURE=2, /* Differential pressure sensor failure. | */
  45. HL_FAILURE_FLAG_ABSOLUTE_PRESSURE=4, /* Absolute pressure sensor failure. | */
  46. HL_FAILURE_FLAG_3D_ACCEL=8, /* Accelerometer sensor failure. | */
  47. HL_FAILURE_FLAG_3D_GYRO=16, /* Gyroscope sensor failure. | */
  48. HL_FAILURE_FLAG_3D_MAG=32, /* Magnetometer sensor failure. | */
  49. HL_FAILURE_FLAG_TERRAIN=64, /* Terrain subsystem failure. | */
  50. HL_FAILURE_FLAG_BATTERY=128, /* Battery failure/critical low battery. | */
  51. HL_FAILURE_FLAG_RC_RECEIVER=256, /* RC receiver failure/no RC connection. | */
  52. HL_FAILURE_FLAG_OFFBOARD_LINK=512, /* Offboard link failure. | */
  53. HL_FAILURE_FLAG_ENGINE=1024, /* Engine failure. | */
  54. HL_FAILURE_FLAG_GEOFENCE=2048, /* Geofence violation. | */
  55. HL_FAILURE_FLAG_ESTIMATOR=4096, /* Estimator failure, for example measurement rejection or large variances. | */
  56. HL_FAILURE_FLAG_MISSION=8192, /* Mission failure. | */
  57. HL_FAILURE_FLAG_ENUM_END=8193, /* | */
  58. } HL_FAILURE_FLAG;
  59. #endif
  60. /** @brief Actions that may be specified in MAV_CMD_OVERRIDE_GOTO to override mission execution. */
  61. #ifndef HAVE_ENUM_MAV_GOTO
  62. #define HAVE_ENUM_MAV_GOTO
  63. typedef enum MAV_GOTO
  64. {
  65. MAV_GOTO_DO_HOLD=0, /* Hold at the current position. | */
  66. MAV_GOTO_DO_CONTINUE=1, /* Continue with the next item in mission execution. | */
  67. MAV_GOTO_HOLD_AT_CURRENT_POSITION=2, /* Hold at the current position of the system | */
  68. MAV_GOTO_HOLD_AT_SPECIFIED_POSITION=3, /* Hold at the position specified in the parameters of the DO_HOLD action | */
  69. MAV_GOTO_ENUM_END=4, /* | */
  70. } MAV_GOTO;
  71. #endif
  72. /** @brief These defines are predefined OR-combined mode flags. There is no need to use values from this enum, but it
  73. simplifies the use of the mode flags. Note that manual input is enabled in all modes as a safety override. */
  74. #ifndef HAVE_ENUM_MAV_MODE
  75. #define HAVE_ENUM_MAV_MODE
  76. typedef enum MAV_MODE
  77. {
  78. MAV_MODE_PREFLIGHT=0, /* System is not ready to fly, booting, calibrating, etc. No flag is set. | */
  79. MAV_MODE_MANUAL_DISARMED=64, /* System is allowed to be active, under manual (RC) control, no stabilization | */
  80. MAV_MODE_TEST_DISARMED=66, /* UNDEFINED mode. This solely depends on the autopilot - use with caution, intended for developers only. | */
  81. MAV_MODE_STABILIZE_DISARMED=80, /* System is allowed to be active, under assisted RC control. | */
  82. MAV_MODE_GUIDED_DISARMED=88, /* System is allowed to be active, under autonomous control, manual setpoint | */
  83. MAV_MODE_AUTO_DISARMED=92, /* System is allowed to be active, under autonomous control and navigation (the trajectory is decided onboard and not pre-programmed by waypoints) | */
  84. MAV_MODE_MANUAL_ARMED=192, /* System is allowed to be active, under manual (RC) control, no stabilization | */
  85. MAV_MODE_TEST_ARMED=194, /* UNDEFINED mode. This solely depends on the autopilot - use with caution, intended for developers only. | */
  86. MAV_MODE_STABILIZE_ARMED=208, /* System is allowed to be active, under assisted RC control. | */
  87. MAV_MODE_GUIDED_ARMED=216, /* System is allowed to be active, under autonomous control, manual setpoint | */
  88. MAV_MODE_AUTO_ARMED=220, /* System is allowed to be active, under autonomous control and navigation (the trajectory is decided onboard and not pre-programmed by waypoints) | */
  89. MAV_MODE_ENUM_END=221, /* | */
  90. } MAV_MODE;
  91. #endif
  92. /** @brief These encode the sensors whose status is sent as part of the SYS_STATUS message. */
  93. #ifndef HAVE_ENUM_MAV_SYS_STATUS_SENSOR
  94. #define HAVE_ENUM_MAV_SYS_STATUS_SENSOR
  95. typedef enum MAV_SYS_STATUS_SENSOR
  96. {
  97. MAV_SYS_STATUS_SENSOR_3D_GYRO=1, /* 0x01 3D gyro | */
  98. MAV_SYS_STATUS_SENSOR_3D_ACCEL=2, /* 0x02 3D accelerometer | */
  99. MAV_SYS_STATUS_SENSOR_3D_MAG=4, /* 0x04 3D magnetometer | */
  100. MAV_SYS_STATUS_SENSOR_ABSOLUTE_PRESSURE=8, /* 0x08 absolute pressure | */
  101. MAV_SYS_STATUS_SENSOR_DIFFERENTIAL_PRESSURE=16, /* 0x10 differential pressure | */
  102. MAV_SYS_STATUS_SENSOR_GPS=32, /* 0x20 GPS | */
  103. MAV_SYS_STATUS_SENSOR_OPTICAL_FLOW=64, /* 0x40 optical flow | */
  104. MAV_SYS_STATUS_SENSOR_VISION_POSITION=128, /* 0x80 computer vision position | */
  105. MAV_SYS_STATUS_SENSOR_LASER_POSITION=256, /* 0x100 laser based position | */
  106. MAV_SYS_STATUS_SENSOR_EXTERNAL_GROUND_TRUTH=512, /* 0x200 external ground truth (Vicon or Leica) | */
  107. MAV_SYS_STATUS_SENSOR_ANGULAR_RATE_CONTROL=1024, /* 0x400 3D angular rate control | */
  108. MAV_SYS_STATUS_SENSOR_ATTITUDE_STABILIZATION=2048, /* 0x800 attitude stabilization | */
  109. MAV_SYS_STATUS_SENSOR_YAW_POSITION=4096, /* 0x1000 yaw position | */
  110. MAV_SYS_STATUS_SENSOR_Z_ALTITUDE_CONTROL=8192, /* 0x2000 z/altitude control | */
  111. MAV_SYS_STATUS_SENSOR_XY_POSITION_CONTROL=16384, /* 0x4000 x/y position control | */
  112. MAV_SYS_STATUS_SENSOR_MOTOR_OUTPUTS=32768, /* 0x8000 motor outputs / control | */
  113. MAV_SYS_STATUS_SENSOR_RC_RECEIVER=65536, /* 0x10000 RC receiver | */
  114. MAV_SYS_STATUS_SENSOR_3D_GYRO2=131072, /* 0x20000 2nd 3D gyro | */
  115. MAV_SYS_STATUS_SENSOR_3D_ACCEL2=262144, /* 0x40000 2nd 3D accelerometer | */
  116. MAV_SYS_STATUS_SENSOR_3D_MAG2=524288, /* 0x80000 2nd 3D magnetometer | */
  117. MAV_SYS_STATUS_GEOFENCE=1048576, /* 0x100000 geofence | */
  118. MAV_SYS_STATUS_AHRS=2097152, /* 0x200000 AHRS subsystem health | */
  119. MAV_SYS_STATUS_TERRAIN=4194304, /* 0x400000 Terrain subsystem health | */
  120. MAV_SYS_STATUS_REVERSE_MOTOR=8388608, /* 0x800000 Motors are reversed | */
  121. MAV_SYS_STATUS_LOGGING=16777216, /* 0x1000000 Logging | */
  122. MAV_SYS_STATUS_SENSOR_BATTERY=33554432, /* 0x2000000 Battery | */
  123. MAV_SYS_STATUS_SENSOR_PROXIMITY=67108864, /* 0x4000000 Proximity | */
  124. MAV_SYS_STATUS_SENSOR_SATCOM=134217728, /* 0x8000000 Satellite Communication | */
  125. MAV_SYS_STATUS_PREARM_CHECK=268435456, /* 0x10000000 pre-arm check status. Always healthy when armed | */
  126. MAV_SYS_STATUS_OBSTACLE_AVOIDANCE=536870912, /* 0x20000000 Avoidance/collision prevention | */
  127. MAV_SYS_STATUS_SENSOR_PROPULSION=1073741824, /* 0x40000000 propulsion (actuator, esc, motor or propellor) | */
  128. MAV_SYS_STATUS_EXTENSION_USED=2147483648, /* 0x80000000 Extended bit-field are used for further sensor status bits (needs to be set in onboard_control_sensors_present only) | */
  129. MAV_SYS_STATUS_SENSOR_ENUM_END=2147483649, /* | */
  130. } MAV_SYS_STATUS_SENSOR;
  131. #endif
  132. /** @brief These encode the sensors whose status is sent as part of the SYS_STATUS message in the extended fields. */
  133. #ifndef HAVE_ENUM_MAV_SYS_STATUS_SENSOR_EXTENDED
  134. #define HAVE_ENUM_MAV_SYS_STATUS_SENSOR_EXTENDED
  135. typedef enum MAV_SYS_STATUS_SENSOR_EXTENDED
  136. {
  137. MAV_SYS_STATUS_RECOVERY_SYSTEM=1, /* 0x01 Recovery system (parachute, balloon, retracts etc) | */
  138. MAV_SYS_STATUS_SENSOR_EXTENDED_ENUM_END=2, /* | */
  139. } MAV_SYS_STATUS_SENSOR_EXTENDED;
  140. #endif
  141. /** @brief Coordinate frames used by MAVLink. Not all frames are supported by all commands, messages, or vehicles.
  142. Global frames use the following naming conventions:
  143. - "GLOBAL": Global coordinate frame with WGS84 latitude/longitude and altitude positive over mean sea level (MSL) by default.
  144. The following modifiers may be used with "GLOBAL":
  145. - "RELATIVE_ALT": Altitude is relative to the vehicle home position rather than MSL.
  146. - "TERRAIN_ALT": Altitude is relative to ground level rather than MSL.
  147. - "INT": Latitude/longitude (in degrees) are scaled by multiplying by 1E7.
  148. Local frames use the following naming conventions:
  149. - "LOCAL": Origin of local frame is fixed relative to earth. Unless otherwise specified this origin is the origin of the vehicle position-estimator ("EKF").
  150. - "BODY": Origin of local frame travels with the vehicle. NOTE, "BODY" does NOT indicate alignment of frame axis with vehicle attitude.
  151. - "OFFSET": Deprecated synonym for "BODY" (origin travels with the vehicle). Not to be used for new frames.
  152. Some deprecated frames do not follow these conventions (e.g. MAV_FRAME_BODY_NED and MAV_FRAME_BODY_OFFSET_NED).
  153. */
  154. #ifndef HAVE_ENUM_MAV_FRAME
  155. #define HAVE_ENUM_MAV_FRAME
  156. typedef enum MAV_FRAME
  157. {
  158. MAV_FRAME_GLOBAL=0, /* Global (WGS84) coordinate frame + MSL altitude. First value / x: latitude, second value / y: longitude, third value / z: positive altitude over mean sea level (MSL). | */
  159. MAV_FRAME_LOCAL_NED=1, /* NED local tangent frame (x: North, y: East, z: Down) with origin fixed relative to earth. | */
  160. MAV_FRAME_MISSION=2, /* NOT a coordinate frame, indicates a mission command. | */
  161. MAV_FRAME_GLOBAL_RELATIVE_ALT=3, /*
  162. Global (WGS84) coordinate frame + altitude relative to the home position.
  163. First value / x: latitude, second value / y: longitude, third value / z: positive altitude with 0 being at the altitude of the home position.
  164. | */
  165. MAV_FRAME_LOCAL_ENU=4, /* ENU local tangent frame (x: East, y: North, z: Up) with origin fixed relative to earth. | */
  166. MAV_FRAME_GLOBAL_INT=5, /* Global (WGS84) coordinate frame (scaled) + MSL altitude. First value / x: latitude in degrees*1E7, second value / y: longitude in degrees*1E7, third value / z: positive altitude over mean sea level (MSL). | */
  167. MAV_FRAME_GLOBAL_RELATIVE_ALT_INT=6, /*
  168. Global (WGS84) coordinate frame (scaled) + altitude relative to the home position.
  169. First value / x: latitude in degrees*1E7, second value / y: longitude in degrees*1E7, third value / z: positive altitude with 0 being at the altitude of the home position.
  170. | */
  171. MAV_FRAME_LOCAL_OFFSET_NED=7, /* NED local tangent frame (x: North, y: East, z: Down) with origin that travels with the vehicle. | */
  172. MAV_FRAME_BODY_NED=8, /* Same as MAV_FRAME_LOCAL_NED when used to represent position values. Same as MAV_FRAME_BODY_FRD when used with velocity/acceleration values. | */
  173. MAV_FRAME_BODY_OFFSET_NED=9, /* This is the same as MAV_FRAME_BODY_FRD. | */
  174. MAV_FRAME_GLOBAL_TERRAIN_ALT=10, /* Global (WGS84) coordinate frame with AGL altitude (at the waypoint coordinate). First value / x: latitude in degrees, second value / y: longitude in degrees, third value / z: positive altitude in meters with 0 being at ground level in terrain model. | */
  175. MAV_FRAME_GLOBAL_TERRAIN_ALT_INT=11, /* Global (WGS84) coordinate frame (scaled) with AGL altitude (at the waypoint coordinate). First value / x: latitude in degrees*1E7, second value / y: longitude in degrees*1E7, third value / z: positive altitude in meters with 0 being at ground level in terrain model. | */
  176. MAV_FRAME_BODY_FRD=12, /* FRD local frame aligned to the vehicle's attitude (x: Forward, y: Right, z: Down) with an origin that travels with vehicle. | */
  177. MAV_FRAME_RESERVED_13=13, /* MAV_FRAME_BODY_FLU - Body fixed frame of reference, Z-up (x: Forward, y: Left, z: Up). | */
  178. MAV_FRAME_RESERVED_14=14, /* MAV_FRAME_MOCAP_NED - Odometry local coordinate frame of data given by a motion capture system, Z-down (x: North, y: East, z: Down). | */
  179. MAV_FRAME_RESERVED_15=15, /* MAV_FRAME_MOCAP_ENU - Odometry local coordinate frame of data given by a motion capture system, Z-up (x: East, y: North, z: Up). | */
  180. MAV_FRAME_RESERVED_16=16, /* MAV_FRAME_VISION_NED - Odometry local coordinate frame of data given by a vision estimation system, Z-down (x: North, y: East, z: Down). | */
  181. MAV_FRAME_RESERVED_17=17, /* MAV_FRAME_VISION_ENU - Odometry local coordinate frame of data given by a vision estimation system, Z-up (x: East, y: North, z: Up). | */
  182. MAV_FRAME_RESERVED_18=18, /* MAV_FRAME_ESTIM_NED - Odometry local coordinate frame of data given by an estimator running onboard the vehicle, Z-down (x: North, y: East, z: Down). | */
  183. MAV_FRAME_RESERVED_19=19, /* MAV_FRAME_ESTIM_ENU - Odometry local coordinate frame of data given by an estimator running onboard the vehicle, Z-up (x: East, y: North, z: Up). | */
  184. MAV_FRAME_LOCAL_FRD=20, /* FRD local tangent frame (x: Forward, y: Right, z: Down) with origin fixed relative to earth. The forward axis is aligned to the front of the vehicle in the horizontal plane. | */
  185. MAV_FRAME_LOCAL_FLU=21, /* FLU local tangent frame (x: Forward, y: Left, z: Up) with origin fixed relative to earth. The forward axis is aligned to the front of the vehicle in the horizontal plane. | */
  186. MAV_FRAME_ENUM_END=22, /* | */
  187. } MAV_FRAME;
  188. #endif
  189. /** @brief */
  190. #ifndef HAVE_ENUM_MAVLINK_DATA_STREAM_TYPE
  191. #define HAVE_ENUM_MAVLINK_DATA_STREAM_TYPE
  192. typedef enum MAVLINK_DATA_STREAM_TYPE
  193. {
  194. MAVLINK_DATA_STREAM_IMG_JPEG=0, /* | */
  195. MAVLINK_DATA_STREAM_IMG_BMP=1, /* | */
  196. MAVLINK_DATA_STREAM_IMG_RAW8U=2, /* | */
  197. MAVLINK_DATA_STREAM_IMG_RAW32U=3, /* | */
  198. MAVLINK_DATA_STREAM_IMG_PGM=4, /* | */
  199. MAVLINK_DATA_STREAM_IMG_PNG=5, /* | */
  200. MAVLINK_DATA_STREAM_TYPE_ENUM_END=6, /* | */
  201. } MAVLINK_DATA_STREAM_TYPE;
  202. #endif
  203. /** @brief Actions following geofence breach. */
  204. #ifndef HAVE_ENUM_FENCE_ACTION
  205. #define HAVE_ENUM_FENCE_ACTION
  206. typedef enum FENCE_ACTION
  207. {
  208. FENCE_ACTION_NONE=0, /* Disable fenced mode. If used in a plan this would mean the next fence is disabled. | */
  209. FENCE_ACTION_GUIDED=1, /* Fly to geofence MAV_CMD_NAV_FENCE_RETURN_POINT in GUIDED mode. Note: This action is only supported by ArduPlane, and may not be supported in all versions. | */
  210. FENCE_ACTION_REPORT=2, /* Report fence breach, but don't take action | */
  211. FENCE_ACTION_GUIDED_THR_PASS=3, /* Fly to geofence MAV_CMD_NAV_FENCE_RETURN_POINT with manual throttle control in GUIDED mode. Note: This action is only supported by ArduPlane, and may not be supported in all versions. | */
  212. FENCE_ACTION_RTL=4, /* Return/RTL mode. | */
  213. FENCE_ACTION_HOLD=5, /* Hold at current location. | */
  214. FENCE_ACTION_TERMINATE=6, /* Termination failsafe. Motors are shut down (some flight stacks may trigger other failsafe actions). | */
  215. FENCE_ACTION_LAND=7, /* Land at current location. | */
  216. FENCE_ACTION_ENUM_END=8, /* | */
  217. } FENCE_ACTION;
  218. #endif
  219. /** @brief */
  220. #ifndef HAVE_ENUM_FENCE_BREACH
  221. #define HAVE_ENUM_FENCE_BREACH
  222. typedef enum FENCE_BREACH
  223. {
  224. FENCE_BREACH_NONE=0, /* No last fence breach | */
  225. FENCE_BREACH_MINALT=1, /* Breached minimum altitude | */
  226. FENCE_BREACH_MAXALT=2, /* Breached maximum altitude | */
  227. FENCE_BREACH_BOUNDARY=3, /* Breached fence boundary | */
  228. FENCE_BREACH_ENUM_END=4, /* | */
  229. } FENCE_BREACH;
  230. #endif
  231. /** @brief Actions being taken to mitigate/prevent fence breach */
  232. #ifndef HAVE_ENUM_FENCE_MITIGATE
  233. #define HAVE_ENUM_FENCE_MITIGATE
  234. typedef enum FENCE_MITIGATE
  235. {
  236. FENCE_MITIGATE_UNKNOWN=0, /* Unknown | */
  237. FENCE_MITIGATE_NONE=1, /* No actions being taken | */
  238. FENCE_MITIGATE_VEL_LIMIT=2, /* Velocity limiting active to prevent breach | */
  239. FENCE_MITIGATE_ENUM_END=3, /* | */
  240. } FENCE_MITIGATE;
  241. #endif
  242. /** @brief Enumeration of possible mount operation modes. This message is used by obsolete/deprecated gimbal messages. */
  243. #ifndef HAVE_ENUM_MAV_MOUNT_MODE
  244. #define HAVE_ENUM_MAV_MOUNT_MODE
  245. typedef enum MAV_MOUNT_MODE
  246. {
  247. MAV_MOUNT_MODE_RETRACT=0, /* Load and keep safe position (Roll,Pitch,Yaw) from permanent memory and stop stabilization | */
  248. MAV_MOUNT_MODE_NEUTRAL=1, /* Load and keep neutral position (Roll,Pitch,Yaw) from permanent memory. | */
  249. MAV_MOUNT_MODE_MAVLINK_TARGETING=2, /* Load neutral position and start MAVLink Roll,Pitch,Yaw control with stabilization | */
  250. MAV_MOUNT_MODE_RC_TARGETING=3, /* Load neutral position and start RC Roll,Pitch,Yaw control with stabilization | */
  251. MAV_MOUNT_MODE_GPS_POINT=4, /* Load neutral position and start to point to Lat,Lon,Alt | */
  252. MAV_MOUNT_MODE_SYSID_TARGET=5, /* Gimbal tracks system with specified system ID | */
  253. MAV_MOUNT_MODE_HOME_LOCATION=6, /* Gimbal tracks home position | */
  254. MAV_MOUNT_MODE_ENUM_END=7, /* | */
  255. } MAV_MOUNT_MODE;
  256. #endif
  257. /** @brief Gimbal device (low level) capability flags (bitmap). */
  258. #ifndef HAVE_ENUM_GIMBAL_DEVICE_CAP_FLAGS
  259. #define HAVE_ENUM_GIMBAL_DEVICE_CAP_FLAGS
  260. typedef enum GIMBAL_DEVICE_CAP_FLAGS
  261. {
  262. GIMBAL_DEVICE_CAP_FLAGS_HAS_RETRACT=1, /* Gimbal device supports a retracted position. | */
  263. GIMBAL_DEVICE_CAP_FLAGS_HAS_NEUTRAL=2, /* Gimbal device supports a horizontal, forward looking position, stabilized. | */
  264. GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_AXIS=4, /* Gimbal device supports rotating around roll axis. | */
  265. GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_FOLLOW=8, /* Gimbal device supports to follow a roll angle relative to the vehicle. | */
  266. GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_LOCK=16, /* Gimbal device supports locking to a roll angle (generally that's the default with roll stabilized). | */
  267. GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_AXIS=32, /* Gimbal device supports rotating around pitch axis. | */
  268. GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_FOLLOW=64, /* Gimbal device supports to follow a pitch angle relative to the vehicle. | */
  269. GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_LOCK=128, /* Gimbal device supports locking to a pitch angle (generally that's the default with pitch stabilized). | */
  270. GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_AXIS=256, /* Gimbal device supports rotating around yaw axis. | */
  271. GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_FOLLOW=512, /* Gimbal device supports to follow a yaw angle relative to the vehicle (generally that's the default). | */
  272. GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_LOCK=1024, /* Gimbal device supports locking to an absolute heading, i.e., yaw angle relative to North (earth frame, often this is an option available). | */
  273. GIMBAL_DEVICE_CAP_FLAGS_SUPPORTS_INFINITE_YAW=2048, /* Gimbal device supports yawing/panning infinitely (e.g. using slip disk). | */
  274. GIMBAL_DEVICE_CAP_FLAGS_SUPPORTS_YAW_IN_EARTH_FRAME=4096, /* Gimbal device supports yaw angles and angular velocities relative to North (earth frame). This usually requires support by an autopilot via AUTOPILOT_STATE_FOR_GIMBAL_DEVICE. Support can go on and off during runtime, which is reported by the flag GIMBAL_DEVICE_FLAGS_CAN_ACCEPT_YAW_IN_EARTH_FRAME. | */
  275. GIMBAL_DEVICE_CAP_FLAGS_HAS_RC_INPUTS=8192, /* Gimbal device supports radio control inputs as an alternative input for controlling the gimbal orientation. | */
  276. GIMBAL_DEVICE_CAP_FLAGS_ENUM_END=8193, /* | */
  277. } GIMBAL_DEVICE_CAP_FLAGS;
  278. #endif
  279. /** @brief Gimbal manager high level capability flags (bitmap). The first 16 bits are identical to the GIMBAL_DEVICE_CAP_FLAGS. However, the gimbal manager does not need to copy the flags from the gimbal but can also enhance the capabilities and thus add flags. */
  280. #ifndef HAVE_ENUM_GIMBAL_MANAGER_CAP_FLAGS
  281. #define HAVE_ENUM_GIMBAL_MANAGER_CAP_FLAGS
  282. typedef enum GIMBAL_MANAGER_CAP_FLAGS
  283. {
  284. GIMBAL_MANAGER_CAP_FLAGS_HAS_RETRACT=1, /* Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_RETRACT. | */
  285. GIMBAL_MANAGER_CAP_FLAGS_HAS_NEUTRAL=2, /* Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_NEUTRAL. | */
  286. GIMBAL_MANAGER_CAP_FLAGS_HAS_ROLL_AXIS=4, /* Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_AXIS. | */
  287. GIMBAL_MANAGER_CAP_FLAGS_HAS_ROLL_FOLLOW=8, /* Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_FOLLOW. | */
  288. GIMBAL_MANAGER_CAP_FLAGS_HAS_ROLL_LOCK=16, /* Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_LOCK. | */
  289. GIMBAL_MANAGER_CAP_FLAGS_HAS_PITCH_AXIS=32, /* Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_AXIS. | */
  290. GIMBAL_MANAGER_CAP_FLAGS_HAS_PITCH_FOLLOW=64, /* Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_FOLLOW. | */
  291. GIMBAL_MANAGER_CAP_FLAGS_HAS_PITCH_LOCK=128, /* Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_LOCK. | */
  292. GIMBAL_MANAGER_CAP_FLAGS_HAS_YAW_AXIS=256, /* Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_AXIS. | */
  293. GIMBAL_MANAGER_CAP_FLAGS_HAS_YAW_FOLLOW=512, /* Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_FOLLOW. | */
  294. GIMBAL_MANAGER_CAP_FLAGS_HAS_YAW_LOCK=1024, /* Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_LOCK. | */
  295. GIMBAL_MANAGER_CAP_FLAGS_SUPPORTS_INFINITE_YAW=2048, /* Based on GIMBAL_DEVICE_CAP_FLAGS_SUPPORTS_INFINITE_YAW. | */
  296. GIMBAL_MANAGER_CAP_FLAGS_SUPPORTS_YAW_IN_EARTH_FRAME=4096, /* Based on GIMBAL_DEVICE_CAP_FLAGS_SUPPORTS_YAW_IN_EARTH_FRAME. | */
  297. GIMBAL_MANAGER_CAP_FLAGS_HAS_RC_INPUTS=8192, /* Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_RC_INPUTS. | */
  298. GIMBAL_MANAGER_CAP_FLAGS_CAN_POINT_LOCATION_LOCAL=65536, /* Gimbal manager supports to point to a local position. | */
  299. GIMBAL_MANAGER_CAP_FLAGS_CAN_POINT_LOCATION_GLOBAL=131072, /* Gimbal manager supports to point to a global latitude, longitude, altitude position. | */
  300. GIMBAL_MANAGER_CAP_FLAGS_ENUM_END=131073, /* | */
  301. } GIMBAL_MANAGER_CAP_FLAGS;
  302. #endif
  303. /** @brief Flags for gimbal device (lower level) operation. */
  304. #ifndef HAVE_ENUM_GIMBAL_DEVICE_FLAGS
  305. #define HAVE_ENUM_GIMBAL_DEVICE_FLAGS
  306. typedef enum GIMBAL_DEVICE_FLAGS
  307. {
  308. GIMBAL_DEVICE_FLAGS_RETRACT=1, /* Set to retracted safe position (no stabilization), takes precedence over all other flags. | */
  309. GIMBAL_DEVICE_FLAGS_NEUTRAL=2, /* Set to neutral/default position, taking precedence over all other flags except RETRACT. Neutral is commonly forward-facing and horizontal (roll=pitch=yaw=0) but may be any orientation. | */
  310. GIMBAL_DEVICE_FLAGS_ROLL_LOCK=4, /* Lock roll angle to absolute angle relative to horizon (not relative to vehicle). This is generally the default with a stabilizing gimbal. | */
  311. GIMBAL_DEVICE_FLAGS_PITCH_LOCK=8, /* Lock pitch angle to absolute angle relative to horizon (not relative to vehicle). This is generally the default with a stabilizing gimbal. | */
  312. GIMBAL_DEVICE_FLAGS_YAW_LOCK=16, /* Lock yaw angle to absolute angle relative to North (not relative to vehicle). If this flag is set, the yaw angle and z component of angular velocity are relative to North (earth frame, x-axis pointing North), else they are relative to the vehicle heading (vehicle frame, earth frame rotated so that the x-axis is pointing forward). | */
  313. GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME=32, /* Yaw angle and z component of angular velocity are relative to the vehicle heading (vehicle frame, earth frame rotated such that the x-axis is pointing forward). | */
  314. GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME=64, /* Yaw angle and z component of angular velocity are relative to North (earth frame, x-axis is pointing North). | */
  315. GIMBAL_DEVICE_FLAGS_ACCEPTS_YAW_IN_EARTH_FRAME=128, /* Gimbal device can accept yaw angle inputs relative to North (earth frame). This flag is only for reporting (attempts to set this flag are ignored). | */
  316. GIMBAL_DEVICE_FLAGS_RC_EXCLUSIVE=256, /* The gimbal orientation is set exclusively by the RC signals feed to the gimbal's radio control inputs. MAVLink messages for setting the gimbal orientation (GIMBAL_DEVICE_SET_ATTITUDE) are ignored. | */
  317. GIMBAL_DEVICE_FLAGS_RC_MIXED=512, /* The gimbal orientation is determined by combining/mixing the RC signals feed to the gimbal's radio control inputs and the MAVLink messages for setting the gimbal orientation (GIMBAL_DEVICE_SET_ATTITUDE). How these two controls are combined or mixed is not defined by the protocol but is up to the implementation. | */
  318. GIMBAL_DEVICE_FLAGS_ENUM_END=513, /* | */
  319. } GIMBAL_DEVICE_FLAGS;
  320. #endif
  321. /** @brief Flags for high level gimbal manager operation The first 16 bits are identical to the GIMBAL_DEVICE_FLAGS. */
  322. #ifndef HAVE_ENUM_GIMBAL_MANAGER_FLAGS
  323. #define HAVE_ENUM_GIMBAL_MANAGER_FLAGS
  324. typedef enum GIMBAL_MANAGER_FLAGS
  325. {
  326. GIMBAL_MANAGER_FLAGS_RETRACT=1, /* Based on GIMBAL_DEVICE_FLAGS_RETRACT. | */
  327. GIMBAL_MANAGER_FLAGS_NEUTRAL=2, /* Based on GIMBAL_DEVICE_FLAGS_NEUTRAL. | */
  328. GIMBAL_MANAGER_FLAGS_ROLL_LOCK=4, /* Based on GIMBAL_DEVICE_FLAGS_ROLL_LOCK. | */
  329. GIMBAL_MANAGER_FLAGS_PITCH_LOCK=8, /* Based on GIMBAL_DEVICE_FLAGS_PITCH_LOCK. | */
  330. GIMBAL_MANAGER_FLAGS_YAW_LOCK=16, /* Based on GIMBAL_DEVICE_FLAGS_YAW_LOCK. | */
  331. GIMBAL_MANAGER_FLAGS_YAW_IN_VEHICLE_FRAME=32, /* Based on GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME. | */
  332. GIMBAL_MANAGER_FLAGS_YAW_IN_EARTH_FRAME=64, /* Based on GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME. | */
  333. GIMBAL_MANAGER_FLAGS_ACCEPTS_YAW_IN_EARTH_FRAME=128, /* Based on GIMBAL_DEVICE_FLAGS_ACCEPTS_YAW_IN_EARTH_FRAME. | */
  334. GIMBAL_MANAGER_FLAGS_RC_EXCLUSIVE=256, /* Based on GIMBAL_DEVICE_FLAGS_RC_EXCLUSIVE. | */
  335. GIMBAL_MANAGER_FLAGS_RC_MIXED=512, /* Based on GIMBAL_DEVICE_FLAGS_RC_MIXED. | */
  336. GIMBAL_MANAGER_FLAGS_ENUM_END=513, /* | */
  337. } GIMBAL_MANAGER_FLAGS;
  338. #endif
  339. /** @brief Gimbal device (low level) error flags (bitmap, 0 means no error) */
  340. #ifndef HAVE_ENUM_GIMBAL_DEVICE_ERROR_FLAGS
  341. #define HAVE_ENUM_GIMBAL_DEVICE_ERROR_FLAGS
  342. typedef enum GIMBAL_DEVICE_ERROR_FLAGS
  343. {
  344. GIMBAL_DEVICE_ERROR_FLAGS_AT_ROLL_LIMIT=1, /* Gimbal device is limited by hardware roll limit. | */
  345. GIMBAL_DEVICE_ERROR_FLAGS_AT_PITCH_LIMIT=2, /* Gimbal device is limited by hardware pitch limit. | */
  346. GIMBAL_DEVICE_ERROR_FLAGS_AT_YAW_LIMIT=4, /* Gimbal device is limited by hardware yaw limit. | */
  347. GIMBAL_DEVICE_ERROR_FLAGS_ENCODER_ERROR=8, /* There is an error with the gimbal encoders. | */
  348. GIMBAL_DEVICE_ERROR_FLAGS_POWER_ERROR=16, /* There is an error with the gimbal power source. | */
  349. GIMBAL_DEVICE_ERROR_FLAGS_MOTOR_ERROR=32, /* There is an error with the gimbal motors. | */
  350. GIMBAL_DEVICE_ERROR_FLAGS_SOFTWARE_ERROR=64, /* There is an error with the gimbal's software. | */
  351. GIMBAL_DEVICE_ERROR_FLAGS_COMMS_ERROR=128, /* There is an error with the gimbal's communication. | */
  352. GIMBAL_DEVICE_ERROR_FLAGS_CALIBRATION_RUNNING=256, /* Gimbal device is currently calibrating. | */
  353. GIMBAL_DEVICE_ERROR_FLAGS_NO_MANAGER=512, /* Gimbal device is not assigned to a gimbal manager. | */
  354. GIMBAL_DEVICE_ERROR_FLAGS_ENUM_END=513, /* | */
  355. } GIMBAL_DEVICE_ERROR_FLAGS;
  356. #endif
  357. /** @brief Gripper actions. */
  358. #ifndef HAVE_ENUM_GRIPPER_ACTIONS
  359. #define HAVE_ENUM_GRIPPER_ACTIONS
  360. typedef enum GRIPPER_ACTIONS
  361. {
  362. GRIPPER_ACTION_RELEASE=0, /* Gripper release cargo. | */
  363. GRIPPER_ACTION_GRAB=1, /* Gripper grab onto cargo. | */
  364. GRIPPER_ACTIONS_ENUM_END=2, /* | */
  365. } GRIPPER_ACTIONS;
  366. #endif
  367. /** @brief Winch actions. */
  368. #ifndef HAVE_ENUM_WINCH_ACTIONS
  369. #define HAVE_ENUM_WINCH_ACTIONS
  370. typedef enum WINCH_ACTIONS
  371. {
  372. WINCH_RELAXED=0, /* Allow motor to freewheel. | */
  373. WINCH_RELATIVE_LENGTH_CONTROL=1, /* Wind or unwind specified length of line, optionally using specified rate. | */
  374. WINCH_RATE_CONTROL=2, /* Wind or unwind line at specified rate. | */
  375. WINCH_LOCK=3, /* Perform the locking sequence to relieve motor while in the fully retracted position. Only action and instance command parameters are used, others are ignored. | */
  376. WINCH_DELIVER=4, /* Sequence of drop, slow down, touch down, reel up, lock. Only action and instance command parameters are used, others are ignored. | */
  377. WINCH_HOLD=5, /* Engage motor and hold current position. Only action and instance command parameters are used, others are ignored. | */
  378. WINCH_RETRACT=6, /* Return the reel to the fully retracted position. Only action and instance command parameters are used, others are ignored. | */
  379. WINCH_LOAD_LINE=7, /* Load the reel with line. The winch will calculate the total loaded length and stop when the tension exceeds a threshold. Only action and instance command parameters are used, others are ignored. | */
  380. WINCH_ABANDON_LINE=8, /* Spool out the entire length of the line. Only action and instance command parameters are used, others are ignored. | */
  381. WINCH_LOAD_PAYLOAD=9, /* Spools out just enough to present the hook to the user to load the payload. Only action and instance command parameters are used, others are ignored | */
  382. WINCH_ACTIONS_ENUM_END=10, /* | */
  383. } WINCH_ACTIONS;
  384. #endif
  385. /** @brief Generalized UAVCAN node health */
  386. #ifndef HAVE_ENUM_UAVCAN_NODE_HEALTH
  387. #define HAVE_ENUM_UAVCAN_NODE_HEALTH
  388. typedef enum UAVCAN_NODE_HEALTH
  389. {
  390. UAVCAN_NODE_HEALTH_OK=0, /* The node is functioning properly. | */
  391. UAVCAN_NODE_HEALTH_WARNING=1, /* A critical parameter went out of range or the node has encountered a minor failure. | */
  392. UAVCAN_NODE_HEALTH_ERROR=2, /* The node has encountered a major failure. | */
  393. UAVCAN_NODE_HEALTH_CRITICAL=3, /* The node has suffered a fatal malfunction. | */
  394. UAVCAN_NODE_HEALTH_ENUM_END=4, /* | */
  395. } UAVCAN_NODE_HEALTH;
  396. #endif
  397. /** @brief Generalized UAVCAN node mode */
  398. #ifndef HAVE_ENUM_UAVCAN_NODE_MODE
  399. #define HAVE_ENUM_UAVCAN_NODE_MODE
  400. typedef enum UAVCAN_NODE_MODE
  401. {
  402. UAVCAN_NODE_MODE_OPERATIONAL=0, /* The node is performing its primary functions. | */
  403. UAVCAN_NODE_MODE_INITIALIZATION=1, /* The node is initializing; this mode is entered immediately after startup. | */
  404. UAVCAN_NODE_MODE_MAINTENANCE=2, /* The node is under maintenance. | */
  405. UAVCAN_NODE_MODE_SOFTWARE_UPDATE=3, /* The node is in the process of updating its software. | */
  406. UAVCAN_NODE_MODE_OFFLINE=7, /* The node is no longer available online. | */
  407. UAVCAN_NODE_MODE_ENUM_END=8, /* | */
  408. } UAVCAN_NODE_MODE;
  409. #endif
  410. /** @brief Indicates the ESC connection type. */
  411. #ifndef HAVE_ENUM_ESC_CONNECTION_TYPE
  412. #define HAVE_ENUM_ESC_CONNECTION_TYPE
  413. typedef enum ESC_CONNECTION_TYPE
  414. {
  415. ESC_CONNECTION_TYPE_PPM=0, /* Traditional PPM ESC. | */
  416. ESC_CONNECTION_TYPE_SERIAL=1, /* Serial Bus connected ESC. | */
  417. ESC_CONNECTION_TYPE_ONESHOT=2, /* One Shot PPM ESC. | */
  418. ESC_CONNECTION_TYPE_I2C=3, /* I2C ESC. | */
  419. ESC_CONNECTION_TYPE_CAN=4, /* CAN-Bus ESC. | */
  420. ESC_CONNECTION_TYPE_DSHOT=5, /* DShot ESC. | */
  421. ESC_CONNECTION_TYPE_ENUM_END=6, /* | */
  422. } ESC_CONNECTION_TYPE;
  423. #endif
  424. /** @brief Flags to report ESC failures. */
  425. #ifndef HAVE_ENUM_ESC_FAILURE_FLAGS
  426. #define HAVE_ENUM_ESC_FAILURE_FLAGS
  427. typedef enum ESC_FAILURE_FLAGS
  428. {
  429. ESC_FAILURE_NONE=0, /* No ESC failure. | */
  430. ESC_FAILURE_OVER_CURRENT=1, /* Over current failure. | */
  431. ESC_FAILURE_OVER_VOLTAGE=2, /* Over voltage failure. | */
  432. ESC_FAILURE_OVER_TEMPERATURE=4, /* Over temperature failure. | */
  433. ESC_FAILURE_OVER_RPM=8, /* Over RPM failure. | */
  434. ESC_FAILURE_INCONSISTENT_CMD=16, /* Inconsistent command failure i.e. out of bounds. | */
  435. ESC_FAILURE_MOTOR_STUCK=32, /* Motor stuck failure. | */
  436. ESC_FAILURE_GENERIC=64, /* Generic ESC failure. | */
  437. ESC_FAILURE_FLAGS_ENUM_END=65, /* | */
  438. } ESC_FAILURE_FLAGS;
  439. #endif
  440. /** @brief Flags to indicate the status of camera storage. */
  441. #ifndef HAVE_ENUM_STORAGE_STATUS
  442. #define HAVE_ENUM_STORAGE_STATUS
  443. typedef enum STORAGE_STATUS
  444. {
  445. STORAGE_STATUS_EMPTY=0, /* Storage is missing (no microSD card loaded for example.) | */
  446. STORAGE_STATUS_UNFORMATTED=1, /* Storage present but unformatted. | */
  447. STORAGE_STATUS_READY=2, /* Storage present and ready. | */
  448. STORAGE_STATUS_NOT_SUPPORTED=3, /* Camera does not supply storage status information. Capacity information in STORAGE_INFORMATION fields will be ignored. | */
  449. STORAGE_STATUS_ENUM_END=4, /* | */
  450. } STORAGE_STATUS;
  451. #endif
  452. /** @brief Flags to indicate the type of storage. */
  453. #ifndef HAVE_ENUM_STORAGE_TYPE
  454. #define HAVE_ENUM_STORAGE_TYPE
  455. typedef enum STORAGE_TYPE
  456. {
  457. STORAGE_TYPE_UNKNOWN=0, /* Storage type is not known. | */
  458. STORAGE_TYPE_USB_STICK=1, /* Storage type is USB device. | */
  459. STORAGE_TYPE_SD=2, /* Storage type is SD card. | */
  460. STORAGE_TYPE_MICROSD=3, /* Storage type is microSD card. | */
  461. STORAGE_TYPE_CF=4, /* Storage type is CFast. | */
  462. STORAGE_TYPE_CFE=5, /* Storage type is CFexpress. | */
  463. STORAGE_TYPE_XQD=6, /* Storage type is XQD. | */
  464. STORAGE_TYPE_HD=7, /* Storage type is HD mass storage type. | */
  465. STORAGE_TYPE_OTHER=254, /* Storage type is other, not listed type. | */
  466. STORAGE_TYPE_ENUM_END=255, /* | */
  467. } STORAGE_TYPE;
  468. #endif
  469. /** @brief Flags to indicate usage for a particular storage (see STORAGE_INFORMATION.storage_usage and MAV_CMD_SET_STORAGE_USAGE). */
  470. #ifndef HAVE_ENUM_STORAGE_USAGE_FLAG
  471. #define HAVE_ENUM_STORAGE_USAGE_FLAG
  472. typedef enum STORAGE_USAGE_FLAG
  473. {
  474. STORAGE_USAGE_FLAG_SET=1, /* Always set to 1 (indicates STORAGE_INFORMATION.storage_usage is supported). | */
  475. STORAGE_USAGE_FLAG_PHOTO=2, /* Storage for saving photos. | */
  476. STORAGE_USAGE_FLAG_VIDEO=4, /* Storage for saving videos. | */
  477. STORAGE_USAGE_FLAG_LOGS=8, /* Storage for saving logs. | */
  478. STORAGE_USAGE_FLAG_ENUM_END=9, /* | */
  479. } STORAGE_USAGE_FLAG;
  480. #endif
  481. /** @brief Yaw behaviour during orbit flight. */
  482. #ifndef HAVE_ENUM_ORBIT_YAW_BEHAVIOUR
  483. #define HAVE_ENUM_ORBIT_YAW_BEHAVIOUR
  484. typedef enum ORBIT_YAW_BEHAVIOUR
  485. {
  486. ORBIT_YAW_BEHAVIOUR_HOLD_FRONT_TO_CIRCLE_CENTER=0, /* Vehicle front points to the center (default). | */
  487. ORBIT_YAW_BEHAVIOUR_HOLD_INITIAL_HEADING=1, /* Vehicle front holds heading when message received. | */
  488. ORBIT_YAW_BEHAVIOUR_UNCONTROLLED=2, /* Yaw uncontrolled. | */
  489. ORBIT_YAW_BEHAVIOUR_HOLD_FRONT_TANGENT_TO_CIRCLE=3, /* Vehicle front follows flight path (tangential to circle). | */
  490. ORBIT_YAW_BEHAVIOUR_RC_CONTROLLED=4, /* Yaw controlled by RC input. | */
  491. ORBIT_YAW_BEHAVIOUR_ENUM_END=5, /* | */
  492. } ORBIT_YAW_BEHAVIOUR;
  493. #endif
  494. /** @brief Possible responses from a WIFI_CONFIG_AP message. */
  495. #ifndef HAVE_ENUM_WIFI_CONFIG_AP_RESPONSE
  496. #define HAVE_ENUM_WIFI_CONFIG_AP_RESPONSE
  497. typedef enum WIFI_CONFIG_AP_RESPONSE
  498. {
  499. WIFI_CONFIG_AP_RESPONSE_UNDEFINED=0, /* Undefined response. Likely an indicative of a system that doesn't support this request. | */
  500. WIFI_CONFIG_AP_RESPONSE_ACCEPTED=1, /* Changes accepted. | */
  501. WIFI_CONFIG_AP_RESPONSE_REJECTED=2, /* Changes rejected. | */
  502. WIFI_CONFIG_AP_RESPONSE_MODE_ERROR=3, /* Invalid Mode. | */
  503. WIFI_CONFIG_AP_RESPONSE_SSID_ERROR=4, /* Invalid SSID. | */
  504. WIFI_CONFIG_AP_RESPONSE_PASSWORD_ERROR=5, /* Invalid Password. | */
  505. WIFI_CONFIG_AP_RESPONSE_ENUM_END=6, /* | */
  506. } WIFI_CONFIG_AP_RESPONSE;
  507. #endif
  508. /** @brief Possible responses from a CELLULAR_CONFIG message. */
  509. #ifndef HAVE_ENUM_CELLULAR_CONFIG_RESPONSE
  510. #define HAVE_ENUM_CELLULAR_CONFIG_RESPONSE
  511. typedef enum CELLULAR_CONFIG_RESPONSE
  512. {
  513. CELLULAR_CONFIG_RESPONSE_ACCEPTED=0, /* Changes accepted. | */
  514. CELLULAR_CONFIG_RESPONSE_APN_ERROR=1, /* Invalid APN. | */
  515. CELLULAR_CONFIG_RESPONSE_PIN_ERROR=2, /* Invalid PIN. | */
  516. CELLULAR_CONFIG_RESPONSE_REJECTED=3, /* Changes rejected. | */
  517. CELLULAR_CONFIG_BLOCKED_PUK_REQUIRED=4, /* PUK is required to unblock SIM card. | */
  518. CELLULAR_CONFIG_RESPONSE_ENUM_END=5, /* | */
  519. } CELLULAR_CONFIG_RESPONSE;
  520. #endif
  521. /** @brief WiFi Mode. */
  522. #ifndef HAVE_ENUM_WIFI_CONFIG_AP_MODE
  523. #define HAVE_ENUM_WIFI_CONFIG_AP_MODE
  524. typedef enum WIFI_CONFIG_AP_MODE
  525. {
  526. WIFI_CONFIG_AP_MODE_UNDEFINED=0, /* WiFi mode is undefined. | */
  527. WIFI_CONFIG_AP_MODE_AP=1, /* WiFi configured as an access point. | */
  528. WIFI_CONFIG_AP_MODE_STATION=2, /* WiFi configured as a station connected to an existing local WiFi network. | */
  529. WIFI_CONFIG_AP_MODE_DISABLED=3, /* WiFi disabled. | */
  530. WIFI_CONFIG_AP_MODE_ENUM_END=4, /* | */
  531. } WIFI_CONFIG_AP_MODE;
  532. #endif
  533. /** @brief Supported component metadata types. These are used in the "general" metadata file returned by COMPONENT_METADATA to provide information about supported metadata types. The types are not used directly in MAVLink messages. */
  534. #ifndef HAVE_ENUM_COMP_METADATA_TYPE
  535. #define HAVE_ENUM_COMP_METADATA_TYPE
  536. typedef enum COMP_METADATA_TYPE
  537. {
  538. COMP_METADATA_TYPE_GENERAL=0, /* General information about the component. General metadata includes information about other metadata types supported by the component. Files of this type must be supported, and must be downloadable from vehicle using a MAVLink FTP URI. | */
  539. COMP_METADATA_TYPE_PARAMETER=1, /* Parameter meta data. | */
  540. COMP_METADATA_TYPE_COMMANDS=2, /* Meta data that specifies which commands and command parameters the vehicle supports. (WIP) | */
  541. COMP_METADATA_TYPE_PERIPHERALS=3, /* Meta data that specifies external non-MAVLink peripherals. | */
  542. COMP_METADATA_TYPE_EVENTS=4, /* Meta data for the events interface. | */
  543. COMP_METADATA_TYPE_ACTUATORS=5, /* Meta data for actuator configuration (motors, servos and vehicle geometry) and testing. | */
  544. COMP_METADATA_TYPE_ENUM_END=6, /* | */
  545. } COMP_METADATA_TYPE;
  546. #endif
  547. /** @brief Actuator configuration, used to change a setting on an actuator. Component information metadata can be used to know which outputs support which commands. */
  548. #ifndef HAVE_ENUM_ACTUATOR_CONFIGURATION
  549. #define HAVE_ENUM_ACTUATOR_CONFIGURATION
  550. typedef enum ACTUATOR_CONFIGURATION
  551. {
  552. ACTUATOR_CONFIGURATION_NONE=0, /* Do nothing. | */
  553. ACTUATOR_CONFIGURATION_BEEP=1, /* Command the actuator to beep now. | */
  554. ACTUATOR_CONFIGURATION_3D_MODE_ON=2, /* Permanently set the actuator (ESC) to 3D mode (reversible thrust). | */
  555. ACTUATOR_CONFIGURATION_3D_MODE_OFF=3, /* Permanently set the actuator (ESC) to non 3D mode (non-reversible thrust). | */
  556. ACTUATOR_CONFIGURATION_SPIN_DIRECTION1=4, /* Permanently set the actuator (ESC) to spin direction 1 (which can be clockwise or counter-clockwise). | */
  557. ACTUATOR_CONFIGURATION_SPIN_DIRECTION2=5, /* Permanently set the actuator (ESC) to spin direction 2 (opposite of direction 1). | */
  558. ACTUATOR_CONFIGURATION_ENUM_END=6, /* | */
  559. } ACTUATOR_CONFIGURATION;
  560. #endif
  561. /** @brief Actuator output function. Values greater or equal to 1000 are autopilot-specific. */
  562. #ifndef HAVE_ENUM_ACTUATOR_OUTPUT_FUNCTION
  563. #define HAVE_ENUM_ACTUATOR_OUTPUT_FUNCTION
  564. typedef enum ACTUATOR_OUTPUT_FUNCTION
  565. {
  566. ACTUATOR_OUTPUT_FUNCTION_NONE=0, /* No function (disabled). | */
  567. ACTUATOR_OUTPUT_FUNCTION_MOTOR1=1, /* Motor 1 | */
  568. ACTUATOR_OUTPUT_FUNCTION_MOTOR2=2, /* Motor 2 | */
  569. ACTUATOR_OUTPUT_FUNCTION_MOTOR3=3, /* Motor 3 | */
  570. ACTUATOR_OUTPUT_FUNCTION_MOTOR4=4, /* Motor 4 | */
  571. ACTUATOR_OUTPUT_FUNCTION_MOTOR5=5, /* Motor 5 | */
  572. ACTUATOR_OUTPUT_FUNCTION_MOTOR6=6, /* Motor 6 | */
  573. ACTUATOR_OUTPUT_FUNCTION_MOTOR7=7, /* Motor 7 | */
  574. ACTUATOR_OUTPUT_FUNCTION_MOTOR8=8, /* Motor 8 | */
  575. ACTUATOR_OUTPUT_FUNCTION_MOTOR9=9, /* Motor 9 | */
  576. ACTUATOR_OUTPUT_FUNCTION_MOTOR10=10, /* Motor 10 | */
  577. ACTUATOR_OUTPUT_FUNCTION_MOTOR11=11, /* Motor 11 | */
  578. ACTUATOR_OUTPUT_FUNCTION_MOTOR12=12, /* Motor 12 | */
  579. ACTUATOR_OUTPUT_FUNCTION_MOTOR13=13, /* Motor 13 | */
  580. ACTUATOR_OUTPUT_FUNCTION_MOTOR14=14, /* Motor 14 | */
  581. ACTUATOR_OUTPUT_FUNCTION_MOTOR15=15, /* Motor 15 | */
  582. ACTUATOR_OUTPUT_FUNCTION_MOTOR16=16, /* Motor 16 | */
  583. ACTUATOR_OUTPUT_FUNCTION_SERVO1=33, /* Servo 1 | */
  584. ACTUATOR_OUTPUT_FUNCTION_SERVO2=34, /* Servo 2 | */
  585. ACTUATOR_OUTPUT_FUNCTION_SERVO3=35, /* Servo 3 | */
  586. ACTUATOR_OUTPUT_FUNCTION_SERVO4=36, /* Servo 4 | */
  587. ACTUATOR_OUTPUT_FUNCTION_SERVO5=37, /* Servo 5 | */
  588. ACTUATOR_OUTPUT_FUNCTION_SERVO6=38, /* Servo 6 | */
  589. ACTUATOR_OUTPUT_FUNCTION_SERVO7=39, /* Servo 7 | */
  590. ACTUATOR_OUTPUT_FUNCTION_SERVO8=40, /* Servo 8 | */
  591. ACTUATOR_OUTPUT_FUNCTION_SERVO9=41, /* Servo 9 | */
  592. ACTUATOR_OUTPUT_FUNCTION_SERVO10=42, /* Servo 10 | */
  593. ACTUATOR_OUTPUT_FUNCTION_SERVO11=43, /* Servo 11 | */
  594. ACTUATOR_OUTPUT_FUNCTION_SERVO12=44, /* Servo 12 | */
  595. ACTUATOR_OUTPUT_FUNCTION_SERVO13=45, /* Servo 13 | */
  596. ACTUATOR_OUTPUT_FUNCTION_SERVO14=46, /* Servo 14 | */
  597. ACTUATOR_OUTPUT_FUNCTION_SERVO15=47, /* Servo 15 | */
  598. ACTUATOR_OUTPUT_FUNCTION_SERVO16=48, /* Servo 16 | */
  599. ACTUATOR_OUTPUT_FUNCTION_ENUM_END=49, /* | */
  600. } ACTUATOR_OUTPUT_FUNCTION;
  601. #endif
  602. /** @brief Enable axes that will be tuned via autotuning. Used in MAV_CMD_DO_AUTOTUNE_ENABLE. */
  603. #ifndef HAVE_ENUM_AUTOTUNE_AXIS
  604. #define HAVE_ENUM_AUTOTUNE_AXIS
  605. typedef enum AUTOTUNE_AXIS
  606. {
  607. AUTOTUNE_AXIS_DEFAULT=0, /* Flight stack tunes axis according to its default settings. | */
  608. AUTOTUNE_AXIS_ROLL=1, /* Autotune roll axis. | */
  609. AUTOTUNE_AXIS_PITCH=2, /* Autotune pitch axis. | */
  610. AUTOTUNE_AXIS_YAW=4, /* Autotune yaw axis. | */
  611. AUTOTUNE_AXIS_ENUM_END=5, /* | */
  612. } AUTOTUNE_AXIS;
  613. #endif
  614. /** @brief
  615. Actions for reading/writing parameters between persistent and volatile storage when using MAV_CMD_PREFLIGHT_STORAGE.
  616. (Commonly parameters are loaded from persistent storage (flash/EEPROM) into volatile storage (RAM) on startup and written back when they are changed.)
  617. */
  618. #ifndef HAVE_ENUM_PREFLIGHT_STORAGE_PARAMETER_ACTION
  619. #define HAVE_ENUM_PREFLIGHT_STORAGE_PARAMETER_ACTION
  620. typedef enum PREFLIGHT_STORAGE_PARAMETER_ACTION
  621. {
  622. PARAM_READ_PERSISTENT=0, /* Read all parameters from persistent storage. Replaces values in volatile storage. | */
  623. PARAM_WRITE_PERSISTENT=1, /* Write all parameter values to persistent storage (flash/EEPROM) | */
  624. PARAM_RESET_CONFIG_DEFAULT=2, /* Reset all user configurable parameters to their default value (including airframe selection, sensor calibration data, safety settings, and so on). Does not reset values that contain operation counters and vehicle computed statistics. | */
  625. PARAM_RESET_SENSOR_DEFAULT=3, /* Reset only sensor calibration parameters to factory defaults (or firmware default if not available) | */
  626. PARAM_RESET_ALL_DEFAULT=4, /* Reset all parameters, including operation counters, to default values | */
  627. PREFLIGHT_STORAGE_PARAMETER_ACTION_ENUM_END=5, /* | */
  628. } PREFLIGHT_STORAGE_PARAMETER_ACTION;
  629. #endif
  630. /** @brief
  631. Actions for reading and writing plan information (mission, rally points, geofence) between persistent and volatile storage when using MAV_CMD_PREFLIGHT_STORAGE.
  632. (Commonly missions are loaded from persistent storage (flash/EEPROM) into volatile storage (RAM) on startup and written back when they are changed.)
  633. */
  634. #ifndef HAVE_ENUM_PREFLIGHT_STORAGE_MISSION_ACTION
  635. #define HAVE_ENUM_PREFLIGHT_STORAGE_MISSION_ACTION
  636. typedef enum PREFLIGHT_STORAGE_MISSION_ACTION
  637. {
  638. MISSION_READ_PERSISTENT=0, /* Read current mission data from persistent storage | */
  639. MISSION_WRITE_PERSISTENT=1, /* Write current mission data to persistent storage | */
  640. MISSION_RESET_DEFAULT=2, /* Erase all mission data stored on the vehicle (both persistent and volatile storage) | */
  641. PREFLIGHT_STORAGE_MISSION_ACTION_ENUM_END=3, /* | */
  642. } PREFLIGHT_STORAGE_MISSION_ACTION;
  643. #endif
  644. /** @brief A data stream is not a fixed set of messages, but rather a
  645. recommendation to the autopilot software. Individual autopilots may or may not obey
  646. the recommended messages. */
  647. #ifndef HAVE_ENUM_MAV_DATA_STREAM
  648. #define HAVE_ENUM_MAV_DATA_STREAM
  649. typedef enum MAV_DATA_STREAM
  650. {
  651. MAV_DATA_STREAM_ALL=0, /* Enable all data streams | */
  652. MAV_DATA_STREAM_RAW_SENSORS=1, /* Enable IMU_RAW, GPS_RAW, GPS_STATUS packets. | */
  653. MAV_DATA_STREAM_EXTENDED_STATUS=2, /* Enable GPS_STATUS, CONTROL_STATUS, AUX_STATUS | */
  654. MAV_DATA_STREAM_RC_CHANNELS=3, /* Enable RC_CHANNELS_SCALED, RC_CHANNELS_RAW, SERVO_OUTPUT_RAW | */
  655. MAV_DATA_STREAM_RAW_CONTROLLER=4, /* Enable ATTITUDE_CONTROLLER_OUTPUT, POSITION_CONTROLLER_OUTPUT, NAV_CONTROLLER_OUTPUT. | */
  656. MAV_DATA_STREAM_POSITION=6, /* Enable LOCAL_POSITION, GLOBAL_POSITION_INT messages. | */
  657. MAV_DATA_STREAM_EXTRA1=10, /* Dependent on the autopilot | */
  658. MAV_DATA_STREAM_EXTRA2=11, /* Dependent on the autopilot | */
  659. MAV_DATA_STREAM_EXTRA3=12, /* Dependent on the autopilot | */
  660. MAV_DATA_STREAM_ENUM_END=13, /* | */
  661. } MAV_DATA_STREAM;
  662. #endif
  663. /** @brief The ROI (region of interest) for the vehicle. This can be
  664. be used by the vehicle for camera/vehicle attitude alignment (see
  665. MAV_CMD_NAV_ROI). */
  666. #ifndef HAVE_ENUM_MAV_ROI
  667. #define HAVE_ENUM_MAV_ROI
  668. typedef enum MAV_ROI
  669. {
  670. MAV_ROI_NONE=0, /* No region of interest. | */
  671. MAV_ROI_WPNEXT=1, /* Point toward next waypoint, with optional pitch/roll/yaw offset. | */
  672. MAV_ROI_WPINDEX=2, /* Point toward given waypoint. | */
  673. MAV_ROI_LOCATION=3, /* Point toward fixed location. | */
  674. MAV_ROI_TARGET=4, /* Point toward of given id. | */
  675. MAV_ROI_ENUM_END=5, /* | */
  676. } MAV_ROI;
  677. #endif
  678. /** @brief Specifies the datatype of a MAVLink parameter. */
  679. #ifndef HAVE_ENUM_MAV_PARAM_TYPE
  680. #define HAVE_ENUM_MAV_PARAM_TYPE
  681. typedef enum MAV_PARAM_TYPE
  682. {
  683. MAV_PARAM_TYPE_UINT8=1, /* 8-bit unsigned integer | */
  684. MAV_PARAM_TYPE_INT8=2, /* 8-bit signed integer | */
  685. MAV_PARAM_TYPE_UINT16=3, /* 16-bit unsigned integer | */
  686. MAV_PARAM_TYPE_INT16=4, /* 16-bit signed integer | */
  687. MAV_PARAM_TYPE_UINT32=5, /* 32-bit unsigned integer | */
  688. MAV_PARAM_TYPE_INT32=6, /* 32-bit signed integer | */
  689. MAV_PARAM_TYPE_UINT64=7, /* 64-bit unsigned integer | */
  690. MAV_PARAM_TYPE_INT64=8, /* 64-bit signed integer | */
  691. MAV_PARAM_TYPE_REAL32=9, /* 32-bit floating-point | */
  692. MAV_PARAM_TYPE_REAL64=10, /* 64-bit floating-point | */
  693. MAV_PARAM_TYPE_ENUM_END=11, /* | */
  694. } MAV_PARAM_TYPE;
  695. #endif
  696. /** @brief Specifies the datatype of a MAVLink extended parameter. */
  697. #ifndef HAVE_ENUM_MAV_PARAM_EXT_TYPE
  698. #define HAVE_ENUM_MAV_PARAM_EXT_TYPE
  699. typedef enum MAV_PARAM_EXT_TYPE
  700. {
  701. MAV_PARAM_EXT_TYPE_UINT8=1, /* 8-bit unsigned integer | */
  702. MAV_PARAM_EXT_TYPE_INT8=2, /* 8-bit signed integer | */
  703. MAV_PARAM_EXT_TYPE_UINT16=3, /* 16-bit unsigned integer | */
  704. MAV_PARAM_EXT_TYPE_INT16=4, /* 16-bit signed integer | */
  705. MAV_PARAM_EXT_TYPE_UINT32=5, /* 32-bit unsigned integer | */
  706. MAV_PARAM_EXT_TYPE_INT32=6, /* 32-bit signed integer | */
  707. MAV_PARAM_EXT_TYPE_UINT64=7, /* 64-bit unsigned integer | */
  708. MAV_PARAM_EXT_TYPE_INT64=8, /* 64-bit signed integer | */
  709. MAV_PARAM_EXT_TYPE_REAL32=9, /* 32-bit floating-point | */
  710. MAV_PARAM_EXT_TYPE_REAL64=10, /* 64-bit floating-point | */
  711. MAV_PARAM_EXT_TYPE_CUSTOM=11, /* Custom Type | */
  712. MAV_PARAM_EXT_TYPE_ENUM_END=12, /* | */
  713. } MAV_PARAM_EXT_TYPE;
  714. #endif
  715. /** @brief Result from a MAVLink command (MAV_CMD) */
  716. #ifndef HAVE_ENUM_MAV_RESULT
  717. #define HAVE_ENUM_MAV_RESULT
  718. typedef enum MAV_RESULT
  719. {
  720. MAV_RESULT_ACCEPTED=0, /* Command is valid (is supported and has valid parameters), and was executed. | */
  721. MAV_RESULT_TEMPORARILY_REJECTED=1, /* Command is valid, but cannot be executed at this time. This is used to indicate a problem that should be fixed just by waiting (e.g. a state machine is busy, can't arm because have not got GPS lock, etc.). Retrying later should work. | */
  722. MAV_RESULT_DENIED=2, /* Command is invalid (is supported but has invalid parameters). Retrying same command and parameters will not work. | */
  723. MAV_RESULT_UNSUPPORTED=3, /* Command is not supported (unknown). | */
  724. MAV_RESULT_FAILED=4, /* Command is valid, but execution has failed. This is used to indicate any non-temporary or unexpected problem, i.e. any problem that must be fixed before the command can succeed/be retried. For example, attempting to write a file when out of memory, attempting to arm when sensors are not calibrated, etc. | */
  725. MAV_RESULT_IN_PROGRESS=5, /* Command is valid and is being executed. This will be followed by further progress updates, i.e. the component may send further COMMAND_ACK messages with result MAV_RESULT_IN_PROGRESS (at a rate decided by the implementation), and must terminate by sending a COMMAND_ACK message with final result of the operation. The COMMAND_ACK.progress field can be used to indicate the progress of the operation. | */
  726. MAV_RESULT_CANCELLED=6, /* Command has been cancelled (as a result of receiving a COMMAND_CANCEL message). | */
  727. MAV_RESULT_COMMAND_LONG_ONLY=7, /* Command is only accepted when sent as a COMMAND_LONG. | */
  728. MAV_RESULT_COMMAND_INT_ONLY=8, /* Command is only accepted when sent as a COMMAND_INT. | */
  729. MAV_RESULT_COMMAND_UNSUPPORTED_MAV_FRAME=9, /* Command is invalid because a frame is required and the specified frame is not supported. | */
  730. MAV_RESULT_ENUM_END=10, /* | */
  731. } MAV_RESULT;
  732. #endif
  733. /** @brief Result of mission operation (in a MISSION_ACK message). */
  734. #ifndef HAVE_ENUM_MAV_MISSION_RESULT
  735. #define HAVE_ENUM_MAV_MISSION_RESULT
  736. typedef enum MAV_MISSION_RESULT
  737. {
  738. MAV_MISSION_ACCEPTED=0, /* mission accepted OK | */
  739. MAV_MISSION_ERROR=1, /* Generic error / not accepting mission commands at all right now. | */
  740. MAV_MISSION_UNSUPPORTED_FRAME=2, /* Coordinate frame is not supported. | */
  741. MAV_MISSION_UNSUPPORTED=3, /* Command is not supported. | */
  742. MAV_MISSION_NO_SPACE=4, /* Mission items exceed storage space. | */
  743. MAV_MISSION_INVALID=5, /* One of the parameters has an invalid value. | */
  744. MAV_MISSION_INVALID_PARAM1=6, /* param1 has an invalid value. | */
  745. MAV_MISSION_INVALID_PARAM2=7, /* param2 has an invalid value. | */
  746. MAV_MISSION_INVALID_PARAM3=8, /* param3 has an invalid value. | */
  747. MAV_MISSION_INVALID_PARAM4=9, /* param4 has an invalid value. | */
  748. MAV_MISSION_INVALID_PARAM5_X=10, /* x / param5 has an invalid value. | */
  749. MAV_MISSION_INVALID_PARAM6_Y=11, /* y / param6 has an invalid value. | */
  750. MAV_MISSION_INVALID_PARAM7=12, /* z / param7 has an invalid value. | */
  751. MAV_MISSION_INVALID_SEQUENCE=13, /* Mission item received out of sequence | */
  752. MAV_MISSION_DENIED=14, /* Not accepting any mission commands from this communication partner. | */
  753. MAV_MISSION_OPERATION_CANCELLED=15, /* Current mission operation cancelled (e.g. mission upload, mission download). | */
  754. MAV_MISSION_RESULT_ENUM_END=16, /* | */
  755. } MAV_MISSION_RESULT;
  756. #endif
  757. /** @brief Indicates the severity level, generally used for status messages to indicate their relative urgency. Based on RFC-5424 using expanded definitions at: http://www.kiwisyslog.com/kb/info:-syslog-message-levels/. */
  758. #ifndef HAVE_ENUM_MAV_SEVERITY
  759. #define HAVE_ENUM_MAV_SEVERITY
  760. typedef enum MAV_SEVERITY
  761. {
  762. MAV_SEVERITY_EMERGENCY=0, /* System is unusable. This is a "panic" condition. | */
  763. MAV_SEVERITY_ALERT=1, /* Action should be taken immediately. Indicates error in non-critical systems. | */
  764. MAV_SEVERITY_CRITICAL=2, /* Action must be taken immediately. Indicates failure in a primary system. | */
  765. MAV_SEVERITY_ERROR=3, /* Indicates an error in secondary/redundant systems. | */
  766. MAV_SEVERITY_WARNING=4, /* Indicates about a possible future error if this is not resolved within a given timeframe. Example would be a low battery warning. | */
  767. MAV_SEVERITY_NOTICE=5, /* An unusual event has occurred, though not an error condition. This should be investigated for the root cause. | */
  768. MAV_SEVERITY_INFO=6, /* Normal operational messages. Useful for logging. No action is required for these messages. | */
  769. MAV_SEVERITY_DEBUG=7, /* Useful non-operational messages that can assist in debugging. These should not occur during normal operation. | */
  770. MAV_SEVERITY_ENUM_END=8, /* | */
  771. } MAV_SEVERITY;
  772. #endif
  773. /** @brief Power supply status flags (bitmask) */
  774. #ifndef HAVE_ENUM_MAV_POWER_STATUS
  775. #define HAVE_ENUM_MAV_POWER_STATUS
  776. typedef enum MAV_POWER_STATUS
  777. {
  778. MAV_POWER_STATUS_BRICK_VALID=1, /* main brick power supply valid | */
  779. MAV_POWER_STATUS_SERVO_VALID=2, /* main servo power supply valid for FMU | */
  780. MAV_POWER_STATUS_USB_CONNECTED=4, /* USB power is connected | */
  781. MAV_POWER_STATUS_PERIPH_OVERCURRENT=8, /* peripheral supply is in over-current state | */
  782. MAV_POWER_STATUS_PERIPH_HIPOWER_OVERCURRENT=16, /* hi-power peripheral supply is in over-current state | */
  783. MAV_POWER_STATUS_CHANGED=32, /* Power status has changed since boot | */
  784. MAV_POWER_STATUS_ENUM_END=33, /* | */
  785. } MAV_POWER_STATUS;
  786. #endif
  787. /** @brief SERIAL_CONTROL device types */
  788. #ifndef HAVE_ENUM_SERIAL_CONTROL_DEV
  789. #define HAVE_ENUM_SERIAL_CONTROL_DEV
  790. typedef enum SERIAL_CONTROL_DEV
  791. {
  792. SERIAL_CONTROL_DEV_TELEM1=0, /* First telemetry port | */
  793. SERIAL_CONTROL_DEV_TELEM2=1, /* Second telemetry port | */
  794. SERIAL_CONTROL_DEV_GPS1=2, /* First GPS port | */
  795. SERIAL_CONTROL_DEV_GPS2=3, /* Second GPS port | */
  796. SERIAL_CONTROL_DEV_SHELL=10, /* system shell | */
  797. SERIAL_CONTROL_SERIAL0=100, /* SERIAL0 | */
  798. SERIAL_CONTROL_SERIAL1=101, /* SERIAL1 | */
  799. SERIAL_CONTROL_SERIAL2=102, /* SERIAL2 | */
  800. SERIAL_CONTROL_SERIAL3=103, /* SERIAL3 | */
  801. SERIAL_CONTROL_SERIAL4=104, /* SERIAL4 | */
  802. SERIAL_CONTROL_SERIAL5=105, /* SERIAL5 | */
  803. SERIAL_CONTROL_SERIAL6=106, /* SERIAL6 | */
  804. SERIAL_CONTROL_SERIAL7=107, /* SERIAL7 | */
  805. SERIAL_CONTROL_SERIAL8=108, /* SERIAL8 | */
  806. SERIAL_CONTROL_SERIAL9=109, /* SERIAL9 | */
  807. SERIAL_CONTROL_DEV_ENUM_END=110, /* | */
  808. } SERIAL_CONTROL_DEV;
  809. #endif
  810. /** @brief SERIAL_CONTROL flags (bitmask) */
  811. #ifndef HAVE_ENUM_SERIAL_CONTROL_FLAG
  812. #define HAVE_ENUM_SERIAL_CONTROL_FLAG
  813. typedef enum SERIAL_CONTROL_FLAG
  814. {
  815. SERIAL_CONTROL_FLAG_REPLY=1, /* Set if this is a reply | */
  816. SERIAL_CONTROL_FLAG_RESPOND=2, /* Set if the sender wants the receiver to send a response as another SERIAL_CONTROL message | */
  817. SERIAL_CONTROL_FLAG_EXCLUSIVE=4, /* Set if access to the serial port should be removed from whatever driver is currently using it, giving exclusive access to the SERIAL_CONTROL protocol. The port can be handed back by sending a request without this flag set | */
  818. SERIAL_CONTROL_FLAG_BLOCKING=8, /* Block on writes to the serial port | */
  819. SERIAL_CONTROL_FLAG_MULTI=16, /* Send multiple replies until port is drained | */
  820. SERIAL_CONTROL_FLAG_ENUM_END=17, /* | */
  821. } SERIAL_CONTROL_FLAG;
  822. #endif
  823. /** @brief Enumeration of distance sensor types */
  824. #ifndef HAVE_ENUM_MAV_DISTANCE_SENSOR
  825. #define HAVE_ENUM_MAV_DISTANCE_SENSOR
  826. typedef enum MAV_DISTANCE_SENSOR
  827. {
  828. MAV_DISTANCE_SENSOR_LASER=0, /* Laser rangefinder, e.g. LightWare SF02/F or PulsedLight units | */
  829. MAV_DISTANCE_SENSOR_ULTRASOUND=1, /* Ultrasound rangefinder, e.g. MaxBotix units | */
  830. MAV_DISTANCE_SENSOR_INFRARED=2, /* Infrared rangefinder, e.g. Sharp units | */
  831. MAV_DISTANCE_SENSOR_RADAR=3, /* Radar type, e.g. uLanding units | */
  832. MAV_DISTANCE_SENSOR_UNKNOWN=4, /* Broken or unknown type, e.g. analog units | */
  833. MAV_DISTANCE_SENSOR_ENUM_END=5, /* | */
  834. } MAV_DISTANCE_SENSOR;
  835. #endif
  836. /** @brief Enumeration of sensor orientation, according to its rotations */
  837. #ifndef HAVE_ENUM_MAV_SENSOR_ORIENTATION
  838. #define HAVE_ENUM_MAV_SENSOR_ORIENTATION
  839. typedef enum MAV_SENSOR_ORIENTATION
  840. {
  841. MAV_SENSOR_ROTATION_NONE=0, /* Roll: 0, Pitch: 0, Yaw: 0 | */
  842. MAV_SENSOR_ROTATION_YAW_45=1, /* Roll: 0, Pitch: 0, Yaw: 45 | */
  843. MAV_SENSOR_ROTATION_YAW_90=2, /* Roll: 0, Pitch: 0, Yaw: 90 | */
  844. MAV_SENSOR_ROTATION_YAW_135=3, /* Roll: 0, Pitch: 0, Yaw: 135 | */
  845. MAV_SENSOR_ROTATION_YAW_180=4, /* Roll: 0, Pitch: 0, Yaw: 180 | */
  846. MAV_SENSOR_ROTATION_YAW_225=5, /* Roll: 0, Pitch: 0, Yaw: 225 | */
  847. MAV_SENSOR_ROTATION_YAW_270=6, /* Roll: 0, Pitch: 0, Yaw: 270 | */
  848. MAV_SENSOR_ROTATION_YAW_315=7, /* Roll: 0, Pitch: 0, Yaw: 315 | */
  849. MAV_SENSOR_ROTATION_ROLL_180=8, /* Roll: 180, Pitch: 0, Yaw: 0 | */
  850. MAV_SENSOR_ROTATION_ROLL_180_YAW_45=9, /* Roll: 180, Pitch: 0, Yaw: 45 | */
  851. MAV_SENSOR_ROTATION_ROLL_180_YAW_90=10, /* Roll: 180, Pitch: 0, Yaw: 90 | */
  852. MAV_SENSOR_ROTATION_ROLL_180_YAW_135=11, /* Roll: 180, Pitch: 0, Yaw: 135 | */
  853. MAV_SENSOR_ROTATION_PITCH_180=12, /* Roll: 0, Pitch: 180, Yaw: 0 | */
  854. MAV_SENSOR_ROTATION_ROLL_180_YAW_225=13, /* Roll: 180, Pitch: 0, Yaw: 225 | */
  855. MAV_SENSOR_ROTATION_ROLL_180_YAW_270=14, /* Roll: 180, Pitch: 0, Yaw: 270 | */
  856. MAV_SENSOR_ROTATION_ROLL_180_YAW_315=15, /* Roll: 180, Pitch: 0, Yaw: 315 | */
  857. MAV_SENSOR_ROTATION_ROLL_90=16, /* Roll: 90, Pitch: 0, Yaw: 0 | */
  858. MAV_SENSOR_ROTATION_ROLL_90_YAW_45=17, /* Roll: 90, Pitch: 0, Yaw: 45 | */
  859. MAV_SENSOR_ROTATION_ROLL_90_YAW_90=18, /* Roll: 90, Pitch: 0, Yaw: 90 | */
  860. MAV_SENSOR_ROTATION_ROLL_90_YAW_135=19, /* Roll: 90, Pitch: 0, Yaw: 135 | */
  861. MAV_SENSOR_ROTATION_ROLL_270=20, /* Roll: 270, Pitch: 0, Yaw: 0 | */
  862. MAV_SENSOR_ROTATION_ROLL_270_YAW_45=21, /* Roll: 270, Pitch: 0, Yaw: 45 | */
  863. MAV_SENSOR_ROTATION_ROLL_270_YAW_90=22, /* Roll: 270, Pitch: 0, Yaw: 90 | */
  864. MAV_SENSOR_ROTATION_ROLL_270_YAW_135=23, /* Roll: 270, Pitch: 0, Yaw: 135 | */
  865. MAV_SENSOR_ROTATION_PITCH_90=24, /* Roll: 0, Pitch: 90, Yaw: 0 | */
  866. MAV_SENSOR_ROTATION_PITCH_270=25, /* Roll: 0, Pitch: 270, Yaw: 0 | */
  867. MAV_SENSOR_ROTATION_PITCH_180_YAW_90=26, /* Roll: 0, Pitch: 180, Yaw: 90 | */
  868. MAV_SENSOR_ROTATION_PITCH_180_YAW_270=27, /* Roll: 0, Pitch: 180, Yaw: 270 | */
  869. MAV_SENSOR_ROTATION_ROLL_90_PITCH_90=28, /* Roll: 90, Pitch: 90, Yaw: 0 | */
  870. MAV_SENSOR_ROTATION_ROLL_180_PITCH_90=29, /* Roll: 180, Pitch: 90, Yaw: 0 | */
  871. MAV_SENSOR_ROTATION_ROLL_270_PITCH_90=30, /* Roll: 270, Pitch: 90, Yaw: 0 | */
  872. MAV_SENSOR_ROTATION_ROLL_90_PITCH_180=31, /* Roll: 90, Pitch: 180, Yaw: 0 | */
  873. MAV_SENSOR_ROTATION_ROLL_270_PITCH_180=32, /* Roll: 270, Pitch: 180, Yaw: 0 | */
  874. MAV_SENSOR_ROTATION_ROLL_90_PITCH_270=33, /* Roll: 90, Pitch: 270, Yaw: 0 | */
  875. MAV_SENSOR_ROTATION_ROLL_180_PITCH_270=34, /* Roll: 180, Pitch: 270, Yaw: 0 | */
  876. MAV_SENSOR_ROTATION_ROLL_270_PITCH_270=35, /* Roll: 270, Pitch: 270, Yaw: 0 | */
  877. MAV_SENSOR_ROTATION_ROLL_90_PITCH_180_YAW_90=36, /* Roll: 90, Pitch: 180, Yaw: 90 | */
  878. MAV_SENSOR_ROTATION_ROLL_90_YAW_270=37, /* Roll: 90, Pitch: 0, Yaw: 270 | */
  879. MAV_SENSOR_ROTATION_ROLL_90_PITCH_68_YAW_293=38, /* Roll: 90, Pitch: 68, Yaw: 293 | */
  880. MAV_SENSOR_ROTATION_PITCH_315=39, /* Pitch: 315 | */
  881. MAV_SENSOR_ROTATION_ROLL_90_PITCH_315=40, /* Roll: 90, Pitch: 315 | */
  882. MAV_SENSOR_ROTATION_CUSTOM=100, /* Custom orientation | */
  883. MAV_SENSOR_ORIENTATION_ENUM_END=101, /* | */
  884. } MAV_SENSOR_ORIENTATION;
  885. #endif
  886. /** @brief Bitmask of (optional) autopilot capabilities (64 bit). If a bit is set, the autopilot supports this capability. */
  887. #ifndef HAVE_ENUM_MAV_PROTOCOL_CAPABILITY
  888. #define HAVE_ENUM_MAV_PROTOCOL_CAPABILITY
  889. typedef enum MAV_PROTOCOL_CAPABILITY
  890. {
  891. MAV_PROTOCOL_CAPABILITY_MISSION_FLOAT=1, /* Autopilot supports the MISSION_ITEM float message type.
  892. Note that MISSION_ITEM is deprecated, and autopilots should use MISSION_INT instead.
  893. | */
  894. MAV_PROTOCOL_CAPABILITY_PARAM_FLOAT=2, /* Autopilot supports the new param float message type. | */
  895. MAV_PROTOCOL_CAPABILITY_MISSION_INT=4, /* Autopilot supports MISSION_ITEM_INT scaled integer message type.
  896. Note that this flag must always be set if missions are supported, because missions must always use MISSION_ITEM_INT (rather than MISSION_ITEM, which is deprecated).
  897. | */
  898. MAV_PROTOCOL_CAPABILITY_COMMAND_INT=8, /* Autopilot supports COMMAND_INT scaled integer message type. | */
  899. MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_BYTEWISE=16, /* Parameter protocol uses byte-wise encoding of parameter values into param_value (float) fields: https://mavlink.io/en/services/parameter.html#parameter-encoding.
  900. Note that either this flag or MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_C_CAST should be set if the parameter protocol is supported.
  901. | */
  902. MAV_PROTOCOL_CAPABILITY_FTP=32, /* Autopilot supports the File Transfer Protocol v1: https://mavlink.io/en/services/ftp.html. | */
  903. MAV_PROTOCOL_CAPABILITY_SET_ATTITUDE_TARGET=64, /* Autopilot supports commanding attitude offboard. | */
  904. MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_LOCAL_NED=128, /* Autopilot supports commanding position and velocity targets in local NED frame. | */
  905. MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_GLOBAL_INT=256, /* Autopilot supports commanding position and velocity targets in global scaled integers. | */
  906. MAV_PROTOCOL_CAPABILITY_TERRAIN=512, /* Autopilot supports terrain protocol / data handling. | */
  907. MAV_PROTOCOL_CAPABILITY_RESERVED3=1024, /* Reserved for future use. | */
  908. MAV_PROTOCOL_CAPABILITY_FLIGHT_TERMINATION=2048, /* Autopilot supports the MAV_CMD_DO_FLIGHTTERMINATION command (flight termination). | */
  909. MAV_PROTOCOL_CAPABILITY_COMPASS_CALIBRATION=4096, /* Autopilot supports onboard compass calibration. | */
  910. MAV_PROTOCOL_CAPABILITY_MAVLINK2=8192, /* Autopilot supports MAVLink version 2. | */
  911. MAV_PROTOCOL_CAPABILITY_MISSION_FENCE=16384, /* Autopilot supports mission fence protocol. | */
  912. MAV_PROTOCOL_CAPABILITY_MISSION_RALLY=32768, /* Autopilot supports mission rally point protocol. | */
  913. MAV_PROTOCOL_CAPABILITY_RESERVED2=65536, /* Reserved for future use. | */
  914. MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_C_CAST=131072, /* Parameter protocol uses C-cast of parameter values to set the param_value (float) fields: https://mavlink.io/en/services/parameter.html#parameter-encoding.
  915. Note that either this flag or MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_BYTEWISE should be set if the parameter protocol is supported.
  916. | */
  917. MAV_PROTOCOL_CAPABILITY_ENUM_END=131073, /* | */
  918. } MAV_PROTOCOL_CAPABILITY;
  919. #endif
  920. /** @brief Type of mission items being requested/sent in mission protocol. */
  921. #ifndef HAVE_ENUM_MAV_MISSION_TYPE
  922. #define HAVE_ENUM_MAV_MISSION_TYPE
  923. typedef enum MAV_MISSION_TYPE
  924. {
  925. MAV_MISSION_TYPE_MISSION=0, /* Items are mission commands for main mission. | */
  926. MAV_MISSION_TYPE_FENCE=1, /* Specifies GeoFence area(s). Items are MAV_CMD_NAV_FENCE_ GeoFence items. | */
  927. MAV_MISSION_TYPE_RALLY=2, /* Specifies the rally points for the vehicle. Rally points are alternative RTL points. Items are MAV_CMD_NAV_RALLY_POINT rally point items. | */
  928. MAV_MISSION_TYPE_ALL=255, /* Only used in MISSION_CLEAR_ALL to clear all mission types. | */
  929. MAV_MISSION_TYPE_ENUM_END=256, /* | */
  930. } MAV_MISSION_TYPE;
  931. #endif
  932. /** @brief Enumeration of estimator types */
  933. #ifndef HAVE_ENUM_MAV_ESTIMATOR_TYPE
  934. #define HAVE_ENUM_MAV_ESTIMATOR_TYPE
  935. typedef enum MAV_ESTIMATOR_TYPE
  936. {
  937. MAV_ESTIMATOR_TYPE_UNKNOWN=0, /* Unknown type of the estimator. | */
  938. MAV_ESTIMATOR_TYPE_NAIVE=1, /* This is a naive estimator without any real covariance feedback. | */
  939. MAV_ESTIMATOR_TYPE_VISION=2, /* Computer vision based estimate. Might be up to scale. | */
  940. MAV_ESTIMATOR_TYPE_VIO=3, /* Visual-inertial estimate. | */
  941. MAV_ESTIMATOR_TYPE_GPS=4, /* Plain GPS estimate. | */
  942. MAV_ESTIMATOR_TYPE_GPS_INS=5, /* Estimator integrating GPS and inertial sensing. | */
  943. MAV_ESTIMATOR_TYPE_MOCAP=6, /* Estimate from external motion capturing system. | */
  944. MAV_ESTIMATOR_TYPE_LIDAR=7, /* Estimator based on lidar sensor input. | */
  945. MAV_ESTIMATOR_TYPE_AUTOPILOT=8, /* Estimator on autopilot. | */
  946. MAV_ESTIMATOR_TYPE_ENUM_END=9, /* | */
  947. } MAV_ESTIMATOR_TYPE;
  948. #endif
  949. /** @brief Enumeration of battery types */
  950. #ifndef HAVE_ENUM_MAV_BATTERY_TYPE
  951. #define HAVE_ENUM_MAV_BATTERY_TYPE
  952. typedef enum MAV_BATTERY_TYPE
  953. {
  954. MAV_BATTERY_TYPE_UNKNOWN=0, /* Not specified. | */
  955. MAV_BATTERY_TYPE_LIPO=1, /* Lithium polymer battery | */
  956. MAV_BATTERY_TYPE_LIFE=2, /* Lithium-iron-phosphate battery | */
  957. MAV_BATTERY_TYPE_LION=3, /* Lithium-ION battery | */
  958. MAV_BATTERY_TYPE_NIMH=4, /* Nickel metal hydride battery | */
  959. MAV_BATTERY_TYPE_ENUM_END=5, /* | */
  960. } MAV_BATTERY_TYPE;
  961. #endif
  962. /** @brief Enumeration of battery functions */
  963. #ifndef HAVE_ENUM_MAV_BATTERY_FUNCTION
  964. #define HAVE_ENUM_MAV_BATTERY_FUNCTION
  965. typedef enum MAV_BATTERY_FUNCTION
  966. {
  967. MAV_BATTERY_FUNCTION_UNKNOWN=0, /* Battery function is unknown | */
  968. MAV_BATTERY_FUNCTION_ALL=1, /* Battery supports all flight systems | */
  969. MAV_BATTERY_FUNCTION_PROPULSION=2, /* Battery for the propulsion system | */
  970. MAV_BATTERY_FUNCTION_AVIONICS=3, /* Avionics battery | */
  971. MAV_BATTERY_FUNCTION_PAYLOAD=4, /* Payload battery | */
  972. MAV_BATTERY_FUNCTION_ENUM_END=5, /* | */
  973. } MAV_BATTERY_FUNCTION;
  974. #endif
  975. /** @brief Enumeration for battery charge states. */
  976. #ifndef HAVE_ENUM_MAV_BATTERY_CHARGE_STATE
  977. #define HAVE_ENUM_MAV_BATTERY_CHARGE_STATE
  978. typedef enum MAV_BATTERY_CHARGE_STATE
  979. {
  980. MAV_BATTERY_CHARGE_STATE_UNDEFINED=0, /* Low battery state is not provided | */
  981. MAV_BATTERY_CHARGE_STATE_OK=1, /* Battery is not in low state. Normal operation. | */
  982. MAV_BATTERY_CHARGE_STATE_LOW=2, /* Battery state is low, warn and monitor close. | */
  983. MAV_BATTERY_CHARGE_STATE_CRITICAL=3, /* Battery state is critical, return or abort immediately. | */
  984. MAV_BATTERY_CHARGE_STATE_EMERGENCY=4, /* Battery state is too low for ordinary abort sequence. Perform fastest possible emergency stop to prevent damage. | */
  985. MAV_BATTERY_CHARGE_STATE_FAILED=5, /* Battery failed, damage unavoidable. Possible causes (faults) are listed in MAV_BATTERY_FAULT. | */
  986. MAV_BATTERY_CHARGE_STATE_UNHEALTHY=6, /* Battery is diagnosed to be defective or an error occurred, usage is discouraged / prohibited. Possible causes (faults) are listed in MAV_BATTERY_FAULT. | */
  987. MAV_BATTERY_CHARGE_STATE_CHARGING=7, /* Battery is charging. | */
  988. MAV_BATTERY_CHARGE_STATE_ENUM_END=8, /* | */
  989. } MAV_BATTERY_CHARGE_STATE;
  990. #endif
  991. /** @brief Battery mode. Note, the normal operation mode (i.e. when flying) should be reported as MAV_BATTERY_MODE_UNKNOWN to allow message trimming in normal flight. */
  992. #ifndef HAVE_ENUM_MAV_BATTERY_MODE
  993. #define HAVE_ENUM_MAV_BATTERY_MODE
  994. typedef enum MAV_BATTERY_MODE
  995. {
  996. MAV_BATTERY_MODE_UNKNOWN=0, /* Battery mode not supported/unknown battery mode/normal operation. | */
  997. MAV_BATTERY_MODE_AUTO_DISCHARGING=1, /* Battery is auto discharging (towards storage level). | */
  998. MAV_BATTERY_MODE_HOT_SWAP=2, /* Battery in hot-swap mode (current limited to prevent spikes that might damage sensitive electrical circuits). | */
  999. MAV_BATTERY_MODE_ENUM_END=3, /* | */
  1000. } MAV_BATTERY_MODE;
  1001. #endif
  1002. /** @brief Smart battery supply status/fault flags (bitmask) for health indication. The battery must also report either MAV_BATTERY_CHARGE_STATE_FAILED or MAV_BATTERY_CHARGE_STATE_UNHEALTHY if any of these are set. */
  1003. #ifndef HAVE_ENUM_MAV_BATTERY_FAULT
  1004. #define HAVE_ENUM_MAV_BATTERY_FAULT
  1005. typedef enum MAV_BATTERY_FAULT
  1006. {
  1007. MAV_BATTERY_FAULT_DEEP_DISCHARGE=1, /* Battery has deep discharged. | */
  1008. MAV_BATTERY_FAULT_SPIKES=2, /* Voltage spikes. | */
  1009. MAV_BATTERY_FAULT_CELL_FAIL=4, /* One or more cells have failed. Battery should also report MAV_BATTERY_CHARGE_STATE_FAILE (and should not be used). | */
  1010. MAV_BATTERY_FAULT_OVER_CURRENT=8, /* Over-current fault. | */
  1011. MAV_BATTERY_FAULT_OVER_TEMPERATURE=16, /* Over-temperature fault. | */
  1012. MAV_BATTERY_FAULT_UNDER_TEMPERATURE=32, /* Under-temperature fault. | */
  1013. MAV_BATTERY_FAULT_INCOMPATIBLE_VOLTAGE=64, /* Vehicle voltage is not compatible with this battery (batteries on same power rail should have similar voltage). | */
  1014. MAV_BATTERY_FAULT_INCOMPATIBLE_FIRMWARE=128, /* Battery firmware is not compatible with current autopilot firmware. | */
  1015. BATTERY_FAULT_INCOMPATIBLE_CELLS_CONFIGURATION=256, /* Battery is not compatible due to cell configuration (e.g. 5s1p when vehicle requires 6s). | */
  1016. MAV_BATTERY_FAULT_ENUM_END=257, /* | */
  1017. } MAV_BATTERY_FAULT;
  1018. #endif
  1019. /** @brief Flags to report status/failure cases for a power generator (used in GENERATOR_STATUS). Note that FAULTS are conditions that cause the generator to fail. Warnings are conditions that require attention before the next use (they indicate the system is not operating properly). */
  1020. #ifndef HAVE_ENUM_MAV_GENERATOR_STATUS_FLAG
  1021. #define HAVE_ENUM_MAV_GENERATOR_STATUS_FLAG
  1022. typedef enum MAV_GENERATOR_STATUS_FLAG
  1023. {
  1024. MAV_GENERATOR_STATUS_FLAG_OFF=1, /* Generator is off. | */
  1025. MAV_GENERATOR_STATUS_FLAG_READY=2, /* Generator is ready to start generating power. | */
  1026. MAV_GENERATOR_STATUS_FLAG_GENERATING=4, /* Generator is generating power. | */
  1027. MAV_GENERATOR_STATUS_FLAG_CHARGING=8, /* Generator is charging the batteries (generating enough power to charge and provide the load). | */
  1028. MAV_GENERATOR_STATUS_FLAG_REDUCED_POWER=16, /* Generator is operating at a reduced maximum power. | */
  1029. MAV_GENERATOR_STATUS_FLAG_MAXPOWER=32, /* Generator is providing the maximum output. | */
  1030. MAV_GENERATOR_STATUS_FLAG_OVERTEMP_WARNING=64, /* Generator is near the maximum operating temperature, cooling is insufficient. | */
  1031. MAV_GENERATOR_STATUS_FLAG_OVERTEMP_FAULT=128, /* Generator hit the maximum operating temperature and shutdown. | */
  1032. MAV_GENERATOR_STATUS_FLAG_ELECTRONICS_OVERTEMP_WARNING=256, /* Power electronics are near the maximum operating temperature, cooling is insufficient. | */
  1033. MAV_GENERATOR_STATUS_FLAG_ELECTRONICS_OVERTEMP_FAULT=512, /* Power electronics hit the maximum operating temperature and shutdown. | */
  1034. MAV_GENERATOR_STATUS_FLAG_ELECTRONICS_FAULT=1024, /* Power electronics experienced a fault and shutdown. | */
  1035. MAV_GENERATOR_STATUS_FLAG_POWERSOURCE_FAULT=2048, /* The power source supplying the generator failed e.g. mechanical generator stopped, tether is no longer providing power, solar cell is in shade, hydrogen reaction no longer happening. | */
  1036. MAV_GENERATOR_STATUS_FLAG_COMMUNICATION_WARNING=4096, /* Generator controller having communication problems. | */
  1037. MAV_GENERATOR_STATUS_FLAG_COOLING_WARNING=8192, /* Power electronic or generator cooling system error. | */
  1038. MAV_GENERATOR_STATUS_FLAG_POWER_RAIL_FAULT=16384, /* Generator controller power rail experienced a fault. | */
  1039. MAV_GENERATOR_STATUS_FLAG_OVERCURRENT_FAULT=32768, /* Generator controller exceeded the overcurrent threshold and shutdown to prevent damage. | */
  1040. MAV_GENERATOR_STATUS_FLAG_BATTERY_OVERCHARGE_CURRENT_FAULT=65536, /* Generator controller detected a high current going into the batteries and shutdown to prevent battery damage. | */
  1041. MAV_GENERATOR_STATUS_FLAG_OVERVOLTAGE_FAULT=131072, /* Generator controller exceeded it's overvoltage threshold and shutdown to prevent it exceeding the voltage rating. | */
  1042. MAV_GENERATOR_STATUS_FLAG_BATTERY_UNDERVOLT_FAULT=262144, /* Batteries are under voltage (generator will not start). | */
  1043. MAV_GENERATOR_STATUS_FLAG_START_INHIBITED=524288, /* Generator start is inhibited by e.g. a safety switch. | */
  1044. MAV_GENERATOR_STATUS_FLAG_MAINTENANCE_REQUIRED=1048576, /* Generator requires maintenance. | */
  1045. MAV_GENERATOR_STATUS_FLAG_WARMING_UP=2097152, /* Generator is not ready to generate yet. | */
  1046. MAV_GENERATOR_STATUS_FLAG_IDLE=4194304, /* Generator is idle. | */
  1047. MAV_GENERATOR_STATUS_FLAG_ENUM_END=4194305, /* | */
  1048. } MAV_GENERATOR_STATUS_FLAG;
  1049. #endif
  1050. /** @brief Enumeration of VTOL states */
  1051. #ifndef HAVE_ENUM_MAV_VTOL_STATE
  1052. #define HAVE_ENUM_MAV_VTOL_STATE
  1053. typedef enum MAV_VTOL_STATE
  1054. {
  1055. MAV_VTOL_STATE_UNDEFINED=0, /* MAV is not configured as VTOL | */
  1056. MAV_VTOL_STATE_TRANSITION_TO_FW=1, /* VTOL is in transition from multicopter to fixed-wing | */
  1057. MAV_VTOL_STATE_TRANSITION_TO_MC=2, /* VTOL is in transition from fixed-wing to multicopter | */
  1058. MAV_VTOL_STATE_MC=3, /* VTOL is in multicopter state | */
  1059. MAV_VTOL_STATE_FW=4, /* VTOL is in fixed-wing state | */
  1060. MAV_VTOL_STATE_ENUM_END=5, /* | */
  1061. } MAV_VTOL_STATE;
  1062. #endif
  1063. /** @brief Enumeration of landed detector states */
  1064. #ifndef HAVE_ENUM_MAV_LANDED_STATE
  1065. #define HAVE_ENUM_MAV_LANDED_STATE
  1066. typedef enum MAV_LANDED_STATE
  1067. {
  1068. MAV_LANDED_STATE_UNDEFINED=0, /* MAV landed state is unknown | */
  1069. MAV_LANDED_STATE_ON_GROUND=1, /* MAV is landed (on ground) | */
  1070. MAV_LANDED_STATE_IN_AIR=2, /* MAV is in air | */
  1071. MAV_LANDED_STATE_TAKEOFF=3, /* MAV currently taking off | */
  1072. MAV_LANDED_STATE_LANDING=4, /* MAV currently landing | */
  1073. MAV_LANDED_STATE_ENUM_END=5, /* | */
  1074. } MAV_LANDED_STATE;
  1075. #endif
  1076. /** @brief Enumeration of the ADSB altimeter types */
  1077. #ifndef HAVE_ENUM_ADSB_ALTITUDE_TYPE
  1078. #define HAVE_ENUM_ADSB_ALTITUDE_TYPE
  1079. typedef enum ADSB_ALTITUDE_TYPE
  1080. {
  1081. ADSB_ALTITUDE_TYPE_PRESSURE_QNH=0, /* Altitude reported from a Baro source using QNH reference | */
  1082. ADSB_ALTITUDE_TYPE_GEOMETRIC=1, /* Altitude reported from a GNSS source | */
  1083. ADSB_ALTITUDE_TYPE_ENUM_END=2, /* | */
  1084. } ADSB_ALTITUDE_TYPE;
  1085. #endif
  1086. /** @brief ADSB classification for the type of vehicle emitting the transponder signal */
  1087. #ifndef HAVE_ENUM_ADSB_EMITTER_TYPE
  1088. #define HAVE_ENUM_ADSB_EMITTER_TYPE
  1089. typedef enum ADSB_EMITTER_TYPE
  1090. {
  1091. ADSB_EMITTER_TYPE_NO_INFO=0, /* | */
  1092. ADSB_EMITTER_TYPE_LIGHT=1, /* | */
  1093. ADSB_EMITTER_TYPE_SMALL=2, /* | */
  1094. ADSB_EMITTER_TYPE_LARGE=3, /* | */
  1095. ADSB_EMITTER_TYPE_HIGH_VORTEX_LARGE=4, /* | */
  1096. ADSB_EMITTER_TYPE_HEAVY=5, /* | */
  1097. ADSB_EMITTER_TYPE_HIGHLY_MANUV=6, /* | */
  1098. ADSB_EMITTER_TYPE_ROTOCRAFT=7, /* | */
  1099. ADSB_EMITTER_TYPE_UNASSIGNED=8, /* | */
  1100. ADSB_EMITTER_TYPE_GLIDER=9, /* | */
  1101. ADSB_EMITTER_TYPE_LIGHTER_AIR=10, /* | */
  1102. ADSB_EMITTER_TYPE_PARACHUTE=11, /* | */
  1103. ADSB_EMITTER_TYPE_ULTRA_LIGHT=12, /* | */
  1104. ADSB_EMITTER_TYPE_UNASSIGNED2=13, /* | */
  1105. ADSB_EMITTER_TYPE_UAV=14, /* | */
  1106. ADSB_EMITTER_TYPE_SPACE=15, /* | */
  1107. ADSB_EMITTER_TYPE_UNASSGINED3=16, /* | */
  1108. ADSB_EMITTER_TYPE_EMERGENCY_SURFACE=17, /* | */
  1109. ADSB_EMITTER_TYPE_SERVICE_SURFACE=18, /* | */
  1110. ADSB_EMITTER_TYPE_POINT_OBSTACLE=19, /* | */
  1111. ADSB_EMITTER_TYPE_ENUM_END=20, /* | */
  1112. } ADSB_EMITTER_TYPE;
  1113. #endif
  1114. /** @brief These flags indicate status such as data validity of each data source. Set = data valid */
  1115. #ifndef HAVE_ENUM_ADSB_FLAGS
  1116. #define HAVE_ENUM_ADSB_FLAGS
  1117. typedef enum ADSB_FLAGS
  1118. {
  1119. ADSB_FLAGS_VALID_COORDS=1, /* | */
  1120. ADSB_FLAGS_VALID_ALTITUDE=2, /* | */
  1121. ADSB_FLAGS_VALID_HEADING=4, /* | */
  1122. ADSB_FLAGS_VALID_VELOCITY=8, /* | */
  1123. ADSB_FLAGS_VALID_CALLSIGN=16, /* | */
  1124. ADSB_FLAGS_VALID_SQUAWK=32, /* | */
  1125. ADSB_FLAGS_SIMULATED=64, /* | */
  1126. ADSB_FLAGS_VERTICAL_VELOCITY_VALID=128, /* | */
  1127. ADSB_FLAGS_BARO_VALID=256, /* | */
  1128. ADSB_FLAGS_SOURCE_UAT=32768, /* | */
  1129. ADSB_FLAGS_ENUM_END=32769, /* | */
  1130. } ADSB_FLAGS;
  1131. #endif
  1132. /** @brief Bitmap of options for the MAV_CMD_DO_REPOSITION */
  1133. #ifndef HAVE_ENUM_MAV_DO_REPOSITION_FLAGS
  1134. #define HAVE_ENUM_MAV_DO_REPOSITION_FLAGS
  1135. typedef enum MAV_DO_REPOSITION_FLAGS
  1136. {
  1137. MAV_DO_REPOSITION_FLAGS_CHANGE_MODE=1, /* The aircraft should immediately transition into guided. This should not be set for follow me applications | */
  1138. MAV_DO_REPOSITION_FLAGS_ENUM_END=2, /* | */
  1139. } MAV_DO_REPOSITION_FLAGS;
  1140. #endif
  1141. /** @brief Speed setpoint types used in MAV_CMD_DO_CHANGE_SPEED */
  1142. #ifndef HAVE_ENUM_SPEED_TYPE
  1143. #define HAVE_ENUM_SPEED_TYPE
  1144. typedef enum SPEED_TYPE
  1145. {
  1146. SPEED_TYPE_AIRSPEED=0, /* Airspeed | */
  1147. SPEED_TYPE_GROUNDSPEED=1, /* Groundspeed | */
  1148. SPEED_TYPE_CLIMB_SPEED=2, /* Climb speed | */
  1149. SPEED_TYPE_DESCENT_SPEED=3, /* Descent speed | */
  1150. SPEED_TYPE_ENUM_END=4, /* | */
  1151. } SPEED_TYPE;
  1152. #endif
  1153. /** @brief Flags in ESTIMATOR_STATUS message */
  1154. #ifndef HAVE_ENUM_ESTIMATOR_STATUS_FLAGS
  1155. #define HAVE_ENUM_ESTIMATOR_STATUS_FLAGS
  1156. typedef enum ESTIMATOR_STATUS_FLAGS
  1157. {
  1158. ESTIMATOR_ATTITUDE=1, /* True if the attitude estimate is good | */
  1159. ESTIMATOR_VELOCITY_HORIZ=2, /* True if the horizontal velocity estimate is good | */
  1160. ESTIMATOR_VELOCITY_VERT=4, /* True if the vertical velocity estimate is good | */
  1161. ESTIMATOR_POS_HORIZ_REL=8, /* True if the horizontal position (relative) estimate is good | */
  1162. ESTIMATOR_POS_HORIZ_ABS=16, /* True if the horizontal position (absolute) estimate is good | */
  1163. ESTIMATOR_POS_VERT_ABS=32, /* True if the vertical position (absolute) estimate is good | */
  1164. ESTIMATOR_POS_VERT_AGL=64, /* True if the vertical position (above ground) estimate is good | */
  1165. ESTIMATOR_CONST_POS_MODE=128, /* True if the EKF is in a constant position mode and is not using external measurements (eg GPS or optical flow) | */
  1166. ESTIMATOR_PRED_POS_HORIZ_REL=256, /* True if the EKF has sufficient data to enter a mode that will provide a (relative) position estimate | */
  1167. ESTIMATOR_PRED_POS_HORIZ_ABS=512, /* True if the EKF has sufficient data to enter a mode that will provide a (absolute) position estimate | */
  1168. ESTIMATOR_GPS_GLITCH=1024, /* True if the EKF has detected a GPS glitch | */
  1169. ESTIMATOR_ACCEL_ERROR=2048, /* True if the EKF has detected bad accelerometer data | */
  1170. ESTIMATOR_STATUS_FLAGS_ENUM_END=2049, /* | */
  1171. } ESTIMATOR_STATUS_FLAGS;
  1172. #endif
  1173. /** @brief Sequence that motors are tested when using MAV_CMD_DO_MOTOR_TEST. */
  1174. #ifndef HAVE_ENUM_MOTOR_TEST_ORDER
  1175. #define HAVE_ENUM_MOTOR_TEST_ORDER
  1176. typedef enum MOTOR_TEST_ORDER
  1177. {
  1178. MOTOR_TEST_ORDER_DEFAULT=0, /* Default autopilot motor test method. | */
  1179. MOTOR_TEST_ORDER_SEQUENCE=1, /* Motor numbers are specified as their index in a predefined vehicle-specific sequence. | */
  1180. MOTOR_TEST_ORDER_BOARD=2, /* Motor numbers are specified as the output as labeled on the board. | */
  1181. MOTOR_TEST_ORDER_ENUM_END=3, /* | */
  1182. } MOTOR_TEST_ORDER;
  1183. #endif
  1184. /** @brief Defines how throttle value is represented in MAV_CMD_DO_MOTOR_TEST. */
  1185. #ifndef HAVE_ENUM_MOTOR_TEST_THROTTLE_TYPE
  1186. #define HAVE_ENUM_MOTOR_TEST_THROTTLE_TYPE
  1187. typedef enum MOTOR_TEST_THROTTLE_TYPE
  1188. {
  1189. MOTOR_TEST_THROTTLE_PERCENT=0, /* Throttle as a percentage (0 ~ 100) | */
  1190. MOTOR_TEST_THROTTLE_PWM=1, /* Throttle as an absolute PWM value (normally in range of 1000~2000). | */
  1191. MOTOR_TEST_THROTTLE_PILOT=2, /* Throttle pass-through from pilot's transmitter. | */
  1192. MOTOR_TEST_COMPASS_CAL=3, /* Per-motor compass calibration test. | */
  1193. MOTOR_TEST_THROTTLE_TYPE_ENUM_END=4, /* | */
  1194. } MOTOR_TEST_THROTTLE_TYPE;
  1195. #endif
  1196. /** @brief */
  1197. #ifndef HAVE_ENUM_GPS_INPUT_IGNORE_FLAGS
  1198. #define HAVE_ENUM_GPS_INPUT_IGNORE_FLAGS
  1199. typedef enum GPS_INPUT_IGNORE_FLAGS
  1200. {
  1201. GPS_INPUT_IGNORE_FLAG_ALT=1, /* ignore altitude field | */
  1202. GPS_INPUT_IGNORE_FLAG_HDOP=2, /* ignore hdop field | */
  1203. GPS_INPUT_IGNORE_FLAG_VDOP=4, /* ignore vdop field | */
  1204. GPS_INPUT_IGNORE_FLAG_VEL_HORIZ=8, /* ignore horizontal velocity field (vn and ve) | */
  1205. GPS_INPUT_IGNORE_FLAG_VEL_VERT=16, /* ignore vertical velocity field (vd) | */
  1206. GPS_INPUT_IGNORE_FLAG_SPEED_ACCURACY=32, /* ignore speed accuracy field | */
  1207. GPS_INPUT_IGNORE_FLAG_HORIZONTAL_ACCURACY=64, /* ignore horizontal accuracy field | */
  1208. GPS_INPUT_IGNORE_FLAG_VERTICAL_ACCURACY=128, /* ignore vertical accuracy field | */
  1209. GPS_INPUT_IGNORE_FLAGS_ENUM_END=129, /* | */
  1210. } GPS_INPUT_IGNORE_FLAGS;
  1211. #endif
  1212. /** @brief Possible actions an aircraft can take to avoid a collision. */
  1213. #ifndef HAVE_ENUM_MAV_COLLISION_ACTION
  1214. #define HAVE_ENUM_MAV_COLLISION_ACTION
  1215. typedef enum MAV_COLLISION_ACTION
  1216. {
  1217. MAV_COLLISION_ACTION_NONE=0, /* Ignore any potential collisions | */
  1218. MAV_COLLISION_ACTION_REPORT=1, /* Report potential collision | */
  1219. MAV_COLLISION_ACTION_ASCEND_OR_DESCEND=2, /* Ascend or Descend to avoid threat | */
  1220. MAV_COLLISION_ACTION_MOVE_HORIZONTALLY=3, /* Move horizontally to avoid threat | */
  1221. MAV_COLLISION_ACTION_MOVE_PERPENDICULAR=4, /* Aircraft to move perpendicular to the collision's velocity vector | */
  1222. MAV_COLLISION_ACTION_RTL=5, /* Aircraft to fly directly back to its launch point | */
  1223. MAV_COLLISION_ACTION_HOVER=6, /* Aircraft to stop in place | */
  1224. MAV_COLLISION_ACTION_ENUM_END=7, /* | */
  1225. } MAV_COLLISION_ACTION;
  1226. #endif
  1227. /** @brief Aircraft-rated danger from this threat. */
  1228. #ifndef HAVE_ENUM_MAV_COLLISION_THREAT_LEVEL
  1229. #define HAVE_ENUM_MAV_COLLISION_THREAT_LEVEL
  1230. typedef enum MAV_COLLISION_THREAT_LEVEL
  1231. {
  1232. MAV_COLLISION_THREAT_LEVEL_NONE=0, /* Not a threat | */
  1233. MAV_COLLISION_THREAT_LEVEL_LOW=1, /* Craft is mildly concerned about this threat | */
  1234. MAV_COLLISION_THREAT_LEVEL_HIGH=2, /* Craft is panicking, and may take actions to avoid threat | */
  1235. MAV_COLLISION_THREAT_LEVEL_ENUM_END=3, /* | */
  1236. } MAV_COLLISION_THREAT_LEVEL;
  1237. #endif
  1238. /** @brief Source of information about this collision. */
  1239. #ifndef HAVE_ENUM_MAV_COLLISION_SRC
  1240. #define HAVE_ENUM_MAV_COLLISION_SRC
  1241. typedef enum MAV_COLLISION_SRC
  1242. {
  1243. MAV_COLLISION_SRC_ADSB=0, /* ID field references ADSB_VEHICLE packets | */
  1244. MAV_COLLISION_SRC_MAVLINK_GPS_GLOBAL_INT=1, /* ID field references MAVLink SRC ID | */
  1245. MAV_COLLISION_SRC_ENUM_END=2, /* | */
  1246. } MAV_COLLISION_SRC;
  1247. #endif
  1248. /** @brief Type of GPS fix */
  1249. #ifndef HAVE_ENUM_GPS_FIX_TYPE
  1250. #define HAVE_ENUM_GPS_FIX_TYPE
  1251. typedef enum GPS_FIX_TYPE
  1252. {
  1253. GPS_FIX_TYPE_NO_GPS=0, /* No GPS connected | */
  1254. GPS_FIX_TYPE_NO_FIX=1, /* No position information, GPS is connected | */
  1255. GPS_FIX_TYPE_2D_FIX=2, /* 2D position | */
  1256. GPS_FIX_TYPE_3D_FIX=3, /* 3D position | */
  1257. GPS_FIX_TYPE_DGPS=4, /* DGPS/SBAS aided 3D position | */
  1258. GPS_FIX_TYPE_RTK_FLOAT=5, /* RTK float, 3D position | */
  1259. GPS_FIX_TYPE_RTK_FIXED=6, /* RTK Fixed, 3D position | */
  1260. GPS_FIX_TYPE_STATIC=7, /* Static fixed, typically used for base stations | */
  1261. GPS_FIX_TYPE_PPP=8, /* PPP, 3D position. | */
  1262. GPS_FIX_TYPE_ENUM_END=9, /* | */
  1263. } GPS_FIX_TYPE;
  1264. #endif
  1265. /** @brief RTK GPS baseline coordinate system, used for RTK corrections */
  1266. #ifndef HAVE_ENUM_RTK_BASELINE_COORDINATE_SYSTEM
  1267. #define HAVE_ENUM_RTK_BASELINE_COORDINATE_SYSTEM
  1268. typedef enum RTK_BASELINE_COORDINATE_SYSTEM
  1269. {
  1270. RTK_BASELINE_COORDINATE_SYSTEM_ECEF=0, /* Earth-centered, Earth-fixed | */
  1271. RTK_BASELINE_COORDINATE_SYSTEM_NED=1, /* RTK basestation centered, north, east, down | */
  1272. RTK_BASELINE_COORDINATE_SYSTEM_ENUM_END=2, /* | */
  1273. } RTK_BASELINE_COORDINATE_SYSTEM;
  1274. #endif
  1275. /** @brief Type of landing target */
  1276. #ifndef HAVE_ENUM_LANDING_TARGET_TYPE
  1277. #define HAVE_ENUM_LANDING_TARGET_TYPE
  1278. typedef enum LANDING_TARGET_TYPE
  1279. {
  1280. LANDING_TARGET_TYPE_LIGHT_BEACON=0, /* Landing target signaled by light beacon (ex: IR-LOCK) | */
  1281. LANDING_TARGET_TYPE_RADIO_BEACON=1, /* Landing target signaled by radio beacon (ex: ILS, NDB) | */
  1282. LANDING_TARGET_TYPE_VISION_FIDUCIAL=2, /* Landing target represented by a fiducial marker (ex: ARTag) | */
  1283. LANDING_TARGET_TYPE_VISION_OTHER=3, /* Landing target represented by a pre-defined visual shape/feature (ex: X-marker, H-marker, square) | */
  1284. LANDING_TARGET_TYPE_ENUM_END=4, /* | */
  1285. } LANDING_TARGET_TYPE;
  1286. #endif
  1287. /** @brief Direction of VTOL transition */
  1288. #ifndef HAVE_ENUM_VTOL_TRANSITION_HEADING
  1289. #define HAVE_ENUM_VTOL_TRANSITION_HEADING
  1290. typedef enum VTOL_TRANSITION_HEADING
  1291. {
  1292. VTOL_TRANSITION_HEADING_VEHICLE_DEFAULT=0, /* Respect the heading configuration of the vehicle. | */
  1293. VTOL_TRANSITION_HEADING_NEXT_WAYPOINT=1, /* Use the heading pointing towards the next waypoint. | */
  1294. VTOL_TRANSITION_HEADING_TAKEOFF=2, /* Use the heading on takeoff (while sitting on the ground). | */
  1295. VTOL_TRANSITION_HEADING_SPECIFIED=3, /* Use the specified heading in parameter 4. | */
  1296. VTOL_TRANSITION_HEADING_ANY=4, /* Use the current heading when reaching takeoff altitude (potentially facing the wind when weather-vaning is active). | */
  1297. VTOL_TRANSITION_HEADING_ENUM_END=5, /* | */
  1298. } VTOL_TRANSITION_HEADING;
  1299. #endif
  1300. /** @brief Camera capability flags (Bitmap) */
  1301. #ifndef HAVE_ENUM_CAMERA_CAP_FLAGS
  1302. #define HAVE_ENUM_CAMERA_CAP_FLAGS
  1303. typedef enum CAMERA_CAP_FLAGS
  1304. {
  1305. CAMERA_CAP_FLAGS_CAPTURE_VIDEO=1, /* Camera is able to record video | */
  1306. CAMERA_CAP_FLAGS_CAPTURE_IMAGE=2, /* Camera is able to capture images | */
  1307. CAMERA_CAP_FLAGS_HAS_MODES=4, /* Camera has separate Video and Image/Photo modes (MAV_CMD_SET_CAMERA_MODE) | */
  1308. CAMERA_CAP_FLAGS_CAN_CAPTURE_IMAGE_IN_VIDEO_MODE=8, /* Camera can capture images while in video mode | */
  1309. CAMERA_CAP_FLAGS_CAN_CAPTURE_VIDEO_IN_IMAGE_MODE=16, /* Camera can capture videos while in Photo/Image mode | */
  1310. CAMERA_CAP_FLAGS_HAS_IMAGE_SURVEY_MODE=32, /* Camera has image survey mode (MAV_CMD_SET_CAMERA_MODE) | */
  1311. CAMERA_CAP_FLAGS_HAS_BASIC_ZOOM=64, /* Camera has basic zoom control (MAV_CMD_SET_CAMERA_ZOOM) | */
  1312. CAMERA_CAP_FLAGS_HAS_BASIC_FOCUS=128, /* Camera has basic focus control (MAV_CMD_SET_CAMERA_FOCUS) | */
  1313. CAMERA_CAP_FLAGS_HAS_VIDEO_STREAM=256, /* Camera has video streaming capabilities (request VIDEO_STREAM_INFORMATION with MAV_CMD_REQUEST_MESSAGE for video streaming info) | */
  1314. CAMERA_CAP_FLAGS_HAS_TRACKING_POINT=512, /* Camera supports tracking of a point on the camera view. | */
  1315. CAMERA_CAP_FLAGS_HAS_TRACKING_RECTANGLE=1024, /* Camera supports tracking of a selection rectangle on the camera view. | */
  1316. CAMERA_CAP_FLAGS_HAS_TRACKING_GEO_STATUS=2048, /* Camera supports tracking geo status (CAMERA_TRACKING_GEO_STATUS). | */
  1317. CAMERA_CAP_FLAGS_ENUM_END=2049, /* | */
  1318. } CAMERA_CAP_FLAGS;
  1319. #endif
  1320. /** @brief Stream status flags (Bitmap) */
  1321. #ifndef HAVE_ENUM_VIDEO_STREAM_STATUS_FLAGS
  1322. #define HAVE_ENUM_VIDEO_STREAM_STATUS_FLAGS
  1323. typedef enum VIDEO_STREAM_STATUS_FLAGS
  1324. {
  1325. VIDEO_STREAM_STATUS_FLAGS_RUNNING=1, /* Stream is active (running) | */
  1326. VIDEO_STREAM_STATUS_FLAGS_THERMAL=2, /* Stream is thermal imaging | */
  1327. VIDEO_STREAM_STATUS_FLAGS_ENUM_END=3, /* | */
  1328. } VIDEO_STREAM_STATUS_FLAGS;
  1329. #endif
  1330. /** @brief Video stream types */
  1331. #ifndef HAVE_ENUM_VIDEO_STREAM_TYPE
  1332. #define HAVE_ENUM_VIDEO_STREAM_TYPE
  1333. typedef enum VIDEO_STREAM_TYPE
  1334. {
  1335. VIDEO_STREAM_TYPE_RTSP=0, /* Stream is RTSP | */
  1336. VIDEO_STREAM_TYPE_RTPUDP=1, /* Stream is RTP UDP (URI gives the port number) | */
  1337. VIDEO_STREAM_TYPE_TCP_MPEG=2, /* Stream is MPEG on TCP | */
  1338. VIDEO_STREAM_TYPE_MPEG_TS_H264=3, /* Stream is h.264 on MPEG TS (URI gives the port number) | */
  1339. VIDEO_STREAM_TYPE_ENUM_END=4, /* | */
  1340. } VIDEO_STREAM_TYPE;
  1341. #endif
  1342. /** @brief Camera tracking status flags */
  1343. #ifndef HAVE_ENUM_CAMERA_TRACKING_STATUS_FLAGS
  1344. #define HAVE_ENUM_CAMERA_TRACKING_STATUS_FLAGS
  1345. typedef enum CAMERA_TRACKING_STATUS_FLAGS
  1346. {
  1347. CAMERA_TRACKING_STATUS_FLAGS_IDLE=0, /* Camera is not tracking | */
  1348. CAMERA_TRACKING_STATUS_FLAGS_ACTIVE=1, /* Camera is tracking | */
  1349. CAMERA_TRACKING_STATUS_FLAGS_ERROR=2, /* Camera tracking in error state | */
  1350. CAMERA_TRACKING_STATUS_FLAGS_ENUM_END=3, /* | */
  1351. } CAMERA_TRACKING_STATUS_FLAGS;
  1352. #endif
  1353. /** @brief Camera tracking modes */
  1354. #ifndef HAVE_ENUM_CAMERA_TRACKING_MODE
  1355. #define HAVE_ENUM_CAMERA_TRACKING_MODE
  1356. typedef enum CAMERA_TRACKING_MODE
  1357. {
  1358. CAMERA_TRACKING_MODE_NONE=0, /* Not tracking | */
  1359. CAMERA_TRACKING_MODE_POINT=1, /* Target is a point | */
  1360. CAMERA_TRACKING_MODE_RECTANGLE=2, /* Target is a rectangle | */
  1361. CAMERA_TRACKING_MODE_ENUM_END=3, /* | */
  1362. } CAMERA_TRACKING_MODE;
  1363. #endif
  1364. /** @brief Camera tracking target data (shows where tracked target is within image) */
  1365. #ifndef HAVE_ENUM_CAMERA_TRACKING_TARGET_DATA
  1366. #define HAVE_ENUM_CAMERA_TRACKING_TARGET_DATA
  1367. typedef enum CAMERA_TRACKING_TARGET_DATA
  1368. {
  1369. CAMERA_TRACKING_TARGET_DATA_NONE=0, /* No target data | */
  1370. CAMERA_TRACKING_TARGET_DATA_EMBEDDED=1, /* Target data embedded in image data (proprietary) | */
  1371. CAMERA_TRACKING_TARGET_DATA_RENDERED=2, /* Target data rendered in image | */
  1372. CAMERA_TRACKING_TARGET_DATA_IN_STATUS=4, /* Target data within status message (Point or Rectangle) | */
  1373. CAMERA_TRACKING_TARGET_DATA_ENUM_END=5, /* | */
  1374. } CAMERA_TRACKING_TARGET_DATA;
  1375. #endif
  1376. /** @brief Zoom types for MAV_CMD_SET_CAMERA_ZOOM */
  1377. #ifndef HAVE_ENUM_CAMERA_ZOOM_TYPE
  1378. #define HAVE_ENUM_CAMERA_ZOOM_TYPE
  1379. typedef enum CAMERA_ZOOM_TYPE
  1380. {
  1381. ZOOM_TYPE_STEP=0, /* Zoom one step increment (-1 for wide, 1 for tele) | */
  1382. ZOOM_TYPE_CONTINUOUS=1, /* Continuous zoom up/down until stopped (-1 for wide, 1 for tele, 0 to stop zooming) | */
  1383. ZOOM_TYPE_RANGE=2, /* Zoom value as proportion of full camera range (a percentage value between 0.0 and 100.0) | */
  1384. ZOOM_TYPE_FOCAL_LENGTH=3, /* Zoom value/variable focal length in millimetres. Note that there is no message to get the valid zoom range of the camera, so this can type can only be used for cameras where the zoom range is known (implying that this cannot reliably be used in a GCS for an arbitrary camera) | */
  1385. ZOOM_TYPE_HORIZONTAL_FOV=4, /* Zoom value as horizontal field of view in degrees. | */
  1386. CAMERA_ZOOM_TYPE_ENUM_END=5, /* | */
  1387. } CAMERA_ZOOM_TYPE;
  1388. #endif
  1389. /** @brief Focus types for MAV_CMD_SET_CAMERA_FOCUS */
  1390. #ifndef HAVE_ENUM_SET_FOCUS_TYPE
  1391. #define HAVE_ENUM_SET_FOCUS_TYPE
  1392. typedef enum SET_FOCUS_TYPE
  1393. {
  1394. FOCUS_TYPE_STEP=0, /* Focus one step increment (-1 for focusing in, 1 for focusing out towards infinity). | */
  1395. FOCUS_TYPE_CONTINUOUS=1, /* Continuous focus up/down until stopped (-1 for focusing in, 1 for focusing out towards infinity, 0 to stop focusing) | */
  1396. FOCUS_TYPE_RANGE=2, /* Focus value as proportion of full camera focus range (a value between 0.0 and 100.0) | */
  1397. FOCUS_TYPE_METERS=3, /* Focus value in metres. Note that there is no message to get the valid focus range of the camera, so this can type can only be used for cameras where the range is known (implying that this cannot reliably be used in a GCS for an arbitrary camera). | */
  1398. FOCUS_TYPE_AUTO=4, /* Focus automatically. | */
  1399. FOCUS_TYPE_AUTO_SINGLE=5, /* Single auto focus. Mainly used for still pictures. Usually abbreviated as AF-S. | */
  1400. FOCUS_TYPE_AUTO_CONTINUOUS=6, /* Continuous auto focus. Mainly used for dynamic scenes. Abbreviated as AF-C. | */
  1401. SET_FOCUS_TYPE_ENUM_END=7, /* | */
  1402. } SET_FOCUS_TYPE;
  1403. #endif
  1404. /** @brief Result from PARAM_EXT_SET message (or a PARAM_SET within a transaction). */
  1405. #ifndef HAVE_ENUM_PARAM_ACK
  1406. #define HAVE_ENUM_PARAM_ACK
  1407. typedef enum PARAM_ACK
  1408. {
  1409. PARAM_ACK_ACCEPTED=0, /* Parameter value ACCEPTED and SET | */
  1410. PARAM_ACK_VALUE_UNSUPPORTED=1, /* Parameter value UNKNOWN/UNSUPPORTED | */
  1411. PARAM_ACK_FAILED=2, /* Parameter failed to set | */
  1412. PARAM_ACK_IN_PROGRESS=3, /* Parameter value received but not yet set/accepted. A subsequent PARAM_ACK_TRANSACTION or PARAM_EXT_ACK with the final result will follow once operation is completed. This is returned immediately for parameters that take longer to set, indicating that the the parameter was received and does not need to be resent. | */
  1413. PARAM_ACK_ENUM_END=4, /* | */
  1414. } PARAM_ACK;
  1415. #endif
  1416. /** @brief Camera Modes. */
  1417. #ifndef HAVE_ENUM_CAMERA_MODE
  1418. #define HAVE_ENUM_CAMERA_MODE
  1419. typedef enum CAMERA_MODE
  1420. {
  1421. CAMERA_MODE_IMAGE=0, /* Camera is in image/photo capture mode. | */
  1422. CAMERA_MODE_VIDEO=1, /* Camera is in video capture mode. | */
  1423. CAMERA_MODE_IMAGE_SURVEY=2, /* Camera is in image survey capture mode. It allows for camera controller to do specific settings for surveys. | */
  1424. CAMERA_MODE_ENUM_END=3, /* | */
  1425. } CAMERA_MODE;
  1426. #endif
  1427. /** @brief */
  1428. #ifndef HAVE_ENUM_MAV_ARM_AUTH_DENIED_REASON
  1429. #define HAVE_ENUM_MAV_ARM_AUTH_DENIED_REASON
  1430. typedef enum MAV_ARM_AUTH_DENIED_REASON
  1431. {
  1432. MAV_ARM_AUTH_DENIED_REASON_GENERIC=0, /* Not a specific reason | */
  1433. MAV_ARM_AUTH_DENIED_REASON_NONE=1, /* Authorizer will send the error as string to GCS | */
  1434. MAV_ARM_AUTH_DENIED_REASON_INVALID_WAYPOINT=2, /* At least one waypoint have a invalid value | */
  1435. MAV_ARM_AUTH_DENIED_REASON_TIMEOUT=3, /* Timeout in the authorizer process(in case it depends on network) | */
  1436. MAV_ARM_AUTH_DENIED_REASON_AIRSPACE_IN_USE=4, /* Airspace of the mission in use by another vehicle, second result parameter can have the waypoint id that caused it to be denied. | */
  1437. MAV_ARM_AUTH_DENIED_REASON_BAD_WEATHER=5, /* Weather is not good to fly | */
  1438. MAV_ARM_AUTH_DENIED_REASON_ENUM_END=6, /* | */
  1439. } MAV_ARM_AUTH_DENIED_REASON;
  1440. #endif
  1441. /** @brief RC type */
  1442. #ifndef HAVE_ENUM_RC_TYPE
  1443. #define HAVE_ENUM_RC_TYPE
  1444. typedef enum RC_TYPE
  1445. {
  1446. RC_TYPE_SPEKTRUM_DSM2=0, /* Spektrum DSM2 | */
  1447. RC_TYPE_SPEKTRUM_DSMX=1, /* Spektrum DSMX | */
  1448. RC_TYPE_ENUM_END=2, /* | */
  1449. } RC_TYPE;
  1450. #endif
  1451. /** @brief Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 or 0b0000001000000000 indicates that none of the setpoint dimensions should be ignored. If bit 9 is set the floats afx afy afz should be interpreted as force instead of acceleration. */
  1452. #ifndef HAVE_ENUM_POSITION_TARGET_TYPEMASK
  1453. #define HAVE_ENUM_POSITION_TARGET_TYPEMASK
  1454. typedef enum POSITION_TARGET_TYPEMASK
  1455. {
  1456. POSITION_TARGET_TYPEMASK_X_IGNORE=1, /* Ignore position x | */
  1457. POSITION_TARGET_TYPEMASK_Y_IGNORE=2, /* Ignore position y | */
  1458. POSITION_TARGET_TYPEMASK_Z_IGNORE=4, /* Ignore position z | */
  1459. POSITION_TARGET_TYPEMASK_VX_IGNORE=8, /* Ignore velocity x | */
  1460. POSITION_TARGET_TYPEMASK_VY_IGNORE=16, /* Ignore velocity y | */
  1461. POSITION_TARGET_TYPEMASK_VZ_IGNORE=32, /* Ignore velocity z | */
  1462. POSITION_TARGET_TYPEMASK_AX_IGNORE=64, /* Ignore acceleration x | */
  1463. POSITION_TARGET_TYPEMASK_AY_IGNORE=128, /* Ignore acceleration y | */
  1464. POSITION_TARGET_TYPEMASK_AZ_IGNORE=256, /* Ignore acceleration z | */
  1465. POSITION_TARGET_TYPEMASK_FORCE_SET=512, /* Use force instead of acceleration | */
  1466. POSITION_TARGET_TYPEMASK_YAW_IGNORE=1024, /* Ignore yaw | */
  1467. POSITION_TARGET_TYPEMASK_YAW_RATE_IGNORE=2048, /* Ignore yaw rate | */
  1468. POSITION_TARGET_TYPEMASK_ENUM_END=2049, /* | */
  1469. } POSITION_TARGET_TYPEMASK;
  1470. #endif
  1471. /** @brief Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b00000000 indicates that none of the setpoint dimensions should be ignored. */
  1472. #ifndef HAVE_ENUM_ATTITUDE_TARGET_TYPEMASK
  1473. #define HAVE_ENUM_ATTITUDE_TARGET_TYPEMASK
  1474. typedef enum ATTITUDE_TARGET_TYPEMASK
  1475. {
  1476. ATTITUDE_TARGET_TYPEMASK_BODY_ROLL_RATE_IGNORE=1, /* Ignore body roll rate | */
  1477. ATTITUDE_TARGET_TYPEMASK_BODY_PITCH_RATE_IGNORE=2, /* Ignore body pitch rate | */
  1478. ATTITUDE_TARGET_TYPEMASK_BODY_YAW_RATE_IGNORE=4, /* Ignore body yaw rate | */
  1479. ATTITUDE_TARGET_TYPEMASK_THRUST_BODY_SET=32, /* Use 3D body thrust setpoint instead of throttle | */
  1480. ATTITUDE_TARGET_TYPEMASK_THROTTLE_IGNORE=64, /* Ignore throttle | */
  1481. ATTITUDE_TARGET_TYPEMASK_ATTITUDE_IGNORE=128, /* Ignore attitude | */
  1482. ATTITUDE_TARGET_TYPEMASK_ENUM_END=129, /* | */
  1483. } ATTITUDE_TARGET_TYPEMASK;
  1484. #endif
  1485. /** @brief Airborne status of UAS. */
  1486. #ifndef HAVE_ENUM_UTM_FLIGHT_STATE
  1487. #define HAVE_ENUM_UTM_FLIGHT_STATE
  1488. typedef enum UTM_FLIGHT_STATE
  1489. {
  1490. UTM_FLIGHT_STATE_UNKNOWN=1, /* The flight state can't be determined. | */
  1491. UTM_FLIGHT_STATE_GROUND=2, /* UAS on ground. | */
  1492. UTM_FLIGHT_STATE_AIRBORNE=3, /* UAS airborne. | */
  1493. UTM_FLIGHT_STATE_EMERGENCY=16, /* UAS is in an emergency flight state. | */
  1494. UTM_FLIGHT_STATE_NOCTRL=32, /* UAS has no active controls. | */
  1495. UTM_FLIGHT_STATE_ENUM_END=33, /* | */
  1496. } UTM_FLIGHT_STATE;
  1497. #endif
  1498. /** @brief Flags for the global position report. */
  1499. #ifndef HAVE_ENUM_UTM_DATA_AVAIL_FLAGS
  1500. #define HAVE_ENUM_UTM_DATA_AVAIL_FLAGS
  1501. typedef enum UTM_DATA_AVAIL_FLAGS
  1502. {
  1503. UTM_DATA_AVAIL_FLAGS_TIME_VALID=1, /* The field time contains valid data. | */
  1504. UTM_DATA_AVAIL_FLAGS_UAS_ID_AVAILABLE=2, /* The field uas_id contains valid data. | */
  1505. UTM_DATA_AVAIL_FLAGS_POSITION_AVAILABLE=4, /* The fields lat, lon and h_acc contain valid data. | */
  1506. UTM_DATA_AVAIL_FLAGS_ALTITUDE_AVAILABLE=8, /* The fields alt and v_acc contain valid data. | */
  1507. UTM_DATA_AVAIL_FLAGS_RELATIVE_ALTITUDE_AVAILABLE=16, /* The field relative_alt contains valid data. | */
  1508. UTM_DATA_AVAIL_FLAGS_HORIZONTAL_VELO_AVAILABLE=32, /* The fields vx and vy contain valid data. | */
  1509. UTM_DATA_AVAIL_FLAGS_VERTICAL_VELO_AVAILABLE=64, /* The field vz contains valid data. | */
  1510. UTM_DATA_AVAIL_FLAGS_NEXT_WAYPOINT_AVAILABLE=128, /* The fields next_lat, next_lon and next_alt contain valid data. | */
  1511. UTM_DATA_AVAIL_FLAGS_ENUM_END=129, /* | */
  1512. } UTM_DATA_AVAIL_FLAGS;
  1513. #endif
  1514. /** @brief These flags encode the cellular network status */
  1515. #ifndef HAVE_ENUM_CELLULAR_STATUS_FLAG
  1516. #define HAVE_ENUM_CELLULAR_STATUS_FLAG
  1517. typedef enum CELLULAR_STATUS_FLAG
  1518. {
  1519. CELLULAR_STATUS_FLAG_UNKNOWN=0, /* State unknown or not reportable. | */
  1520. CELLULAR_STATUS_FLAG_FAILED=1, /* Modem is unusable | */
  1521. CELLULAR_STATUS_FLAG_INITIALIZING=2, /* Modem is being initialized | */
  1522. CELLULAR_STATUS_FLAG_LOCKED=3, /* Modem is locked | */
  1523. CELLULAR_STATUS_FLAG_DISABLED=4, /* Modem is not enabled and is powered down | */
  1524. CELLULAR_STATUS_FLAG_DISABLING=5, /* Modem is currently transitioning to the CELLULAR_STATUS_FLAG_DISABLED state | */
  1525. CELLULAR_STATUS_FLAG_ENABLING=6, /* Modem is currently transitioning to the CELLULAR_STATUS_FLAG_ENABLED state | */
  1526. CELLULAR_STATUS_FLAG_ENABLED=7, /* Modem is enabled and powered on but not registered with a network provider and not available for data connections | */
  1527. CELLULAR_STATUS_FLAG_SEARCHING=8, /* Modem is searching for a network provider to register | */
  1528. CELLULAR_STATUS_FLAG_REGISTERED=9, /* Modem is registered with a network provider, and data connections and messaging may be available for use | */
  1529. CELLULAR_STATUS_FLAG_DISCONNECTING=10, /* Modem is disconnecting and deactivating the last active packet data bearer. This state will not be entered if more than one packet data bearer is active and one of the active bearers is deactivated | */
  1530. CELLULAR_STATUS_FLAG_CONNECTING=11, /* Modem is activating and connecting the first packet data bearer. Subsequent bearer activations when another bearer is already active do not cause this state to be entered | */
  1531. CELLULAR_STATUS_FLAG_CONNECTED=12, /* One or more packet data bearers is active and connected | */
  1532. CELLULAR_STATUS_FLAG_ENUM_END=13, /* | */
  1533. } CELLULAR_STATUS_FLAG;
  1534. #endif
  1535. /** @brief These flags are used to diagnose the failure state of CELLULAR_STATUS */
  1536. #ifndef HAVE_ENUM_CELLULAR_NETWORK_FAILED_REASON
  1537. #define HAVE_ENUM_CELLULAR_NETWORK_FAILED_REASON
  1538. typedef enum CELLULAR_NETWORK_FAILED_REASON
  1539. {
  1540. CELLULAR_NETWORK_FAILED_REASON_NONE=0, /* No error | */
  1541. CELLULAR_NETWORK_FAILED_REASON_UNKNOWN=1, /* Error state is unknown | */
  1542. CELLULAR_NETWORK_FAILED_REASON_SIM_MISSING=2, /* SIM is required for the modem but missing | */
  1543. CELLULAR_NETWORK_FAILED_REASON_SIM_ERROR=3, /* SIM is available, but not usable for connection | */
  1544. CELLULAR_NETWORK_FAILED_REASON_ENUM_END=4, /* | */
  1545. } CELLULAR_NETWORK_FAILED_REASON;
  1546. #endif
  1547. /** @brief Cellular network radio type */
  1548. #ifndef HAVE_ENUM_CELLULAR_NETWORK_RADIO_TYPE
  1549. #define HAVE_ENUM_CELLULAR_NETWORK_RADIO_TYPE
  1550. typedef enum CELLULAR_NETWORK_RADIO_TYPE
  1551. {
  1552. CELLULAR_NETWORK_RADIO_TYPE_NONE=0, /* | */
  1553. CELLULAR_NETWORK_RADIO_TYPE_GSM=1, /* | */
  1554. CELLULAR_NETWORK_RADIO_TYPE_CDMA=2, /* | */
  1555. CELLULAR_NETWORK_RADIO_TYPE_WCDMA=3, /* | */
  1556. CELLULAR_NETWORK_RADIO_TYPE_LTE=4, /* | */
  1557. CELLULAR_NETWORK_RADIO_TYPE_ENUM_END=5, /* | */
  1558. } CELLULAR_NETWORK_RADIO_TYPE;
  1559. #endif
  1560. /** @brief Precision land modes (used in MAV_CMD_NAV_LAND). */
  1561. #ifndef HAVE_ENUM_PRECISION_LAND_MODE
  1562. #define HAVE_ENUM_PRECISION_LAND_MODE
  1563. typedef enum PRECISION_LAND_MODE
  1564. {
  1565. PRECISION_LAND_MODE_DISABLED=0, /* Normal (non-precision) landing. | */
  1566. PRECISION_LAND_MODE_OPPORTUNISTIC=1, /* Use precision landing if beacon detected when land command accepted, otherwise land normally. | */
  1567. PRECISION_LAND_MODE_REQUIRED=2, /* Use precision landing, searching for beacon if not found when land command accepted (land normally if beacon cannot be found). | */
  1568. PRECISION_LAND_MODE_ENUM_END=3, /* | */
  1569. } PRECISION_LAND_MODE;
  1570. #endif
  1571. /** @brief Parachute actions. Trigger release and enable/disable auto-release. */
  1572. #ifndef HAVE_ENUM_PARACHUTE_ACTION
  1573. #define HAVE_ENUM_PARACHUTE_ACTION
  1574. typedef enum PARACHUTE_ACTION
  1575. {
  1576. PARACHUTE_DISABLE=0, /* Disable auto-release of parachute (i.e. release triggered by crash detectors). | */
  1577. PARACHUTE_ENABLE=1, /* Enable auto-release of parachute. | */
  1578. PARACHUTE_RELEASE=2, /* Release parachute and kill motors. | */
  1579. PARACHUTE_ACTION_ENUM_END=3, /* | */
  1580. } PARACHUTE_ACTION;
  1581. #endif
  1582. /** @brief */
  1583. #ifndef HAVE_ENUM_MAV_TUNNEL_PAYLOAD_TYPE
  1584. #define HAVE_ENUM_MAV_TUNNEL_PAYLOAD_TYPE
  1585. typedef enum MAV_TUNNEL_PAYLOAD_TYPE
  1586. {
  1587. MAV_TUNNEL_PAYLOAD_TYPE_UNKNOWN=0, /* Encoding of payload unknown. | */
  1588. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED0=200, /* Registered for STorM32 gimbal controller. | */
  1589. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED1=201, /* Registered for STorM32 gimbal controller. | */
  1590. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED2=202, /* Registered for STorM32 gimbal controller. | */
  1591. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED3=203, /* Registered for STorM32 gimbal controller. | */
  1592. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED4=204, /* Registered for STorM32 gimbal controller. | */
  1593. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED5=205, /* Registered for STorM32 gimbal controller. | */
  1594. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED6=206, /* Registered for STorM32 gimbal controller. | */
  1595. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED7=207, /* Registered for STorM32 gimbal controller. | */
  1596. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED8=208, /* Registered for STorM32 gimbal controller. | */
  1597. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED9=209, /* Registered for STorM32 gimbal controller. | */
  1598. MAV_TUNNEL_PAYLOAD_TYPE_ENUM_END=210, /* | */
  1599. } MAV_TUNNEL_PAYLOAD_TYPE;
  1600. #endif
  1601. /** @brief */
  1602. #ifndef HAVE_ENUM_MAV_ODID_ID_TYPE
  1603. #define HAVE_ENUM_MAV_ODID_ID_TYPE
  1604. typedef enum MAV_ODID_ID_TYPE
  1605. {
  1606. MAV_ODID_ID_TYPE_NONE=0, /* No type defined. | */
  1607. MAV_ODID_ID_TYPE_SERIAL_NUMBER=1, /* Manufacturer Serial Number (ANSI/CTA-2063 format). | */
  1608. MAV_ODID_ID_TYPE_CAA_REGISTRATION_ID=2, /* CAA (Civil Aviation Authority) registered ID. Format: [ICAO Country Code].[CAA Assigned ID]. | */
  1609. MAV_ODID_ID_TYPE_UTM_ASSIGNED_UUID=3, /* UTM (Unmanned Traffic Management) assigned UUID (RFC4122). | */
  1610. MAV_ODID_ID_TYPE_SPECIFIC_SESSION_ID=4, /* A 20 byte ID for a specific flight/session. The exact ID type is indicated by the first byte of uas_id and these type values are managed by ICAO. | */
  1611. MAV_ODID_ID_TYPE_ENUM_END=5, /* | */
  1612. } MAV_ODID_ID_TYPE;
  1613. #endif
  1614. /** @brief */
  1615. #ifndef HAVE_ENUM_MAV_ODID_UA_TYPE
  1616. #define HAVE_ENUM_MAV_ODID_UA_TYPE
  1617. typedef enum MAV_ODID_UA_TYPE
  1618. {
  1619. MAV_ODID_UA_TYPE_NONE=0, /* No UA (Unmanned Aircraft) type defined. | */
  1620. MAV_ODID_UA_TYPE_AEROPLANE=1, /* Aeroplane/Airplane. Fixed wing. | */
  1621. MAV_ODID_UA_TYPE_HELICOPTER_OR_MULTIROTOR=2, /* Helicopter or multirotor. | */
  1622. MAV_ODID_UA_TYPE_GYROPLANE=3, /* Gyroplane. | */
  1623. MAV_ODID_UA_TYPE_HYBRID_LIFT=4, /* VTOL (Vertical Take-Off and Landing). Fixed wing aircraft that can take off vertically. | */
  1624. MAV_ODID_UA_TYPE_ORNITHOPTER=5, /* Ornithopter. | */
  1625. MAV_ODID_UA_TYPE_GLIDER=6, /* Glider. | */
  1626. MAV_ODID_UA_TYPE_KITE=7, /* Kite. | */
  1627. MAV_ODID_UA_TYPE_FREE_BALLOON=8, /* Free Balloon. | */
  1628. MAV_ODID_UA_TYPE_CAPTIVE_BALLOON=9, /* Captive Balloon. | */
  1629. MAV_ODID_UA_TYPE_AIRSHIP=10, /* Airship. E.g. a blimp. | */
  1630. MAV_ODID_UA_TYPE_FREE_FALL_PARACHUTE=11, /* Free Fall/Parachute (unpowered). | */
  1631. MAV_ODID_UA_TYPE_ROCKET=12, /* Rocket. | */
  1632. MAV_ODID_UA_TYPE_TETHERED_POWERED_AIRCRAFT=13, /* Tethered powered aircraft. | */
  1633. MAV_ODID_UA_TYPE_GROUND_OBSTACLE=14, /* Ground Obstacle. | */
  1634. MAV_ODID_UA_TYPE_OTHER=15, /* Other type of aircraft not listed earlier. | */
  1635. MAV_ODID_UA_TYPE_ENUM_END=16, /* | */
  1636. } MAV_ODID_UA_TYPE;
  1637. #endif
  1638. /** @brief */
  1639. #ifndef HAVE_ENUM_MAV_ODID_STATUS
  1640. #define HAVE_ENUM_MAV_ODID_STATUS
  1641. typedef enum MAV_ODID_STATUS
  1642. {
  1643. MAV_ODID_STATUS_UNDECLARED=0, /* The status of the (UA) Unmanned Aircraft is undefined. | */
  1644. MAV_ODID_STATUS_GROUND=1, /* The UA is on the ground. | */
  1645. MAV_ODID_STATUS_AIRBORNE=2, /* The UA is in the air. | */
  1646. MAV_ODID_STATUS_EMERGENCY=3, /* The UA is having an emergency. | */
  1647. MAV_ODID_STATUS_REMOTE_ID_SYSTEM_FAILURE=4, /* The remote ID system is failing or unreliable in some way. | */
  1648. MAV_ODID_STATUS_ENUM_END=5, /* | */
  1649. } MAV_ODID_STATUS;
  1650. #endif
  1651. /** @brief */
  1652. #ifndef HAVE_ENUM_MAV_ODID_HEIGHT_REF
  1653. #define HAVE_ENUM_MAV_ODID_HEIGHT_REF
  1654. typedef enum MAV_ODID_HEIGHT_REF
  1655. {
  1656. MAV_ODID_HEIGHT_REF_OVER_TAKEOFF=0, /* The height field is relative to the take-off location. | */
  1657. MAV_ODID_HEIGHT_REF_OVER_GROUND=1, /* The height field is relative to ground. | */
  1658. MAV_ODID_HEIGHT_REF_ENUM_END=2, /* | */
  1659. } MAV_ODID_HEIGHT_REF;
  1660. #endif
  1661. /** @brief */
  1662. #ifndef HAVE_ENUM_MAV_ODID_HOR_ACC
  1663. #define HAVE_ENUM_MAV_ODID_HOR_ACC
  1664. typedef enum MAV_ODID_HOR_ACC
  1665. {
  1666. MAV_ODID_HOR_ACC_UNKNOWN=0, /* The horizontal accuracy is unknown. | */
  1667. MAV_ODID_HOR_ACC_10NM=1, /* The horizontal accuracy is smaller than 10 Nautical Miles. 18.52 km. | */
  1668. MAV_ODID_HOR_ACC_4NM=2, /* The horizontal accuracy is smaller than 4 Nautical Miles. 7.408 km. | */
  1669. MAV_ODID_HOR_ACC_2NM=3, /* The horizontal accuracy is smaller than 2 Nautical Miles. 3.704 km. | */
  1670. MAV_ODID_HOR_ACC_1NM=4, /* The horizontal accuracy is smaller than 1 Nautical Miles. 1.852 km. | */
  1671. MAV_ODID_HOR_ACC_0_5NM=5, /* The horizontal accuracy is smaller than 0.5 Nautical Miles. 926 m. | */
  1672. MAV_ODID_HOR_ACC_0_3NM=6, /* The horizontal accuracy is smaller than 0.3 Nautical Miles. 555.6 m. | */
  1673. MAV_ODID_HOR_ACC_0_1NM=7, /* The horizontal accuracy is smaller than 0.1 Nautical Miles. 185.2 m. | */
  1674. MAV_ODID_HOR_ACC_0_05NM=8, /* The horizontal accuracy is smaller than 0.05 Nautical Miles. 92.6 m. | */
  1675. MAV_ODID_HOR_ACC_30_METER=9, /* The horizontal accuracy is smaller than 30 meter. | */
  1676. MAV_ODID_HOR_ACC_10_METER=10, /* The horizontal accuracy is smaller than 10 meter. | */
  1677. MAV_ODID_HOR_ACC_3_METER=11, /* The horizontal accuracy is smaller than 3 meter. | */
  1678. MAV_ODID_HOR_ACC_1_METER=12, /* The horizontal accuracy is smaller than 1 meter. | */
  1679. MAV_ODID_HOR_ACC_ENUM_END=13, /* | */
  1680. } MAV_ODID_HOR_ACC;
  1681. #endif
  1682. /** @brief */
  1683. #ifndef HAVE_ENUM_MAV_ODID_VER_ACC
  1684. #define HAVE_ENUM_MAV_ODID_VER_ACC
  1685. typedef enum MAV_ODID_VER_ACC
  1686. {
  1687. MAV_ODID_VER_ACC_UNKNOWN=0, /* The vertical accuracy is unknown. | */
  1688. MAV_ODID_VER_ACC_150_METER=1, /* The vertical accuracy is smaller than 150 meter. | */
  1689. MAV_ODID_VER_ACC_45_METER=2, /* The vertical accuracy is smaller than 45 meter. | */
  1690. MAV_ODID_VER_ACC_25_METER=3, /* The vertical accuracy is smaller than 25 meter. | */
  1691. MAV_ODID_VER_ACC_10_METER=4, /* The vertical accuracy is smaller than 10 meter. | */
  1692. MAV_ODID_VER_ACC_3_METER=5, /* The vertical accuracy is smaller than 3 meter. | */
  1693. MAV_ODID_VER_ACC_1_METER=6, /* The vertical accuracy is smaller than 1 meter. | */
  1694. MAV_ODID_VER_ACC_ENUM_END=7, /* | */
  1695. } MAV_ODID_VER_ACC;
  1696. #endif
  1697. /** @brief */
  1698. #ifndef HAVE_ENUM_MAV_ODID_SPEED_ACC
  1699. #define HAVE_ENUM_MAV_ODID_SPEED_ACC
  1700. typedef enum MAV_ODID_SPEED_ACC
  1701. {
  1702. MAV_ODID_SPEED_ACC_UNKNOWN=0, /* The speed accuracy is unknown. | */
  1703. MAV_ODID_SPEED_ACC_10_METERS_PER_SECOND=1, /* The speed accuracy is smaller than 10 meters per second. | */
  1704. MAV_ODID_SPEED_ACC_3_METERS_PER_SECOND=2, /* The speed accuracy is smaller than 3 meters per second. | */
  1705. MAV_ODID_SPEED_ACC_1_METERS_PER_SECOND=3, /* The speed accuracy is smaller than 1 meters per second. | */
  1706. MAV_ODID_SPEED_ACC_0_3_METERS_PER_SECOND=4, /* The speed accuracy is smaller than 0.3 meters per second. | */
  1707. MAV_ODID_SPEED_ACC_ENUM_END=5, /* | */
  1708. } MAV_ODID_SPEED_ACC;
  1709. #endif
  1710. /** @brief */
  1711. #ifndef HAVE_ENUM_MAV_ODID_TIME_ACC
  1712. #define HAVE_ENUM_MAV_ODID_TIME_ACC
  1713. typedef enum MAV_ODID_TIME_ACC
  1714. {
  1715. MAV_ODID_TIME_ACC_UNKNOWN=0, /* The timestamp accuracy is unknown. | */
  1716. MAV_ODID_TIME_ACC_0_1_SECOND=1, /* The timestamp accuracy is smaller than or equal to 0.1 second. | */
  1717. MAV_ODID_TIME_ACC_0_2_SECOND=2, /* The timestamp accuracy is smaller than or equal to 0.2 second. | */
  1718. MAV_ODID_TIME_ACC_0_3_SECOND=3, /* The timestamp accuracy is smaller than or equal to 0.3 second. | */
  1719. MAV_ODID_TIME_ACC_0_4_SECOND=4, /* The timestamp accuracy is smaller than or equal to 0.4 second. | */
  1720. MAV_ODID_TIME_ACC_0_5_SECOND=5, /* The timestamp accuracy is smaller than or equal to 0.5 second. | */
  1721. MAV_ODID_TIME_ACC_0_6_SECOND=6, /* The timestamp accuracy is smaller than or equal to 0.6 second. | */
  1722. MAV_ODID_TIME_ACC_0_7_SECOND=7, /* The timestamp accuracy is smaller than or equal to 0.7 second. | */
  1723. MAV_ODID_TIME_ACC_0_8_SECOND=8, /* The timestamp accuracy is smaller than or equal to 0.8 second. | */
  1724. MAV_ODID_TIME_ACC_0_9_SECOND=9, /* The timestamp accuracy is smaller than or equal to 0.9 second. | */
  1725. MAV_ODID_TIME_ACC_1_0_SECOND=10, /* The timestamp accuracy is smaller than or equal to 1.0 second. | */
  1726. MAV_ODID_TIME_ACC_1_1_SECOND=11, /* The timestamp accuracy is smaller than or equal to 1.1 second. | */
  1727. MAV_ODID_TIME_ACC_1_2_SECOND=12, /* The timestamp accuracy is smaller than or equal to 1.2 second. | */
  1728. MAV_ODID_TIME_ACC_1_3_SECOND=13, /* The timestamp accuracy is smaller than or equal to 1.3 second. | */
  1729. MAV_ODID_TIME_ACC_1_4_SECOND=14, /* The timestamp accuracy is smaller than or equal to 1.4 second. | */
  1730. MAV_ODID_TIME_ACC_1_5_SECOND=15, /* The timestamp accuracy is smaller than or equal to 1.5 second. | */
  1731. MAV_ODID_TIME_ACC_ENUM_END=16, /* | */
  1732. } MAV_ODID_TIME_ACC;
  1733. #endif
  1734. /** @brief */
  1735. #ifndef HAVE_ENUM_MAV_ODID_AUTH_TYPE
  1736. #define HAVE_ENUM_MAV_ODID_AUTH_TYPE
  1737. typedef enum MAV_ODID_AUTH_TYPE
  1738. {
  1739. MAV_ODID_AUTH_TYPE_NONE=0, /* No authentication type is specified. | */
  1740. MAV_ODID_AUTH_TYPE_UAS_ID_SIGNATURE=1, /* Signature for the UAS (Unmanned Aircraft System) ID. | */
  1741. MAV_ODID_AUTH_TYPE_OPERATOR_ID_SIGNATURE=2, /* Signature for the Operator ID. | */
  1742. MAV_ODID_AUTH_TYPE_MESSAGE_SET_SIGNATURE=3, /* Signature for the entire message set. | */
  1743. MAV_ODID_AUTH_TYPE_NETWORK_REMOTE_ID=4, /* Authentication is provided by Network Remote ID. | */
  1744. MAV_ODID_AUTH_TYPE_SPECIFIC_AUTHENTICATION=5, /* The exact authentication type is indicated by the first byte of authentication_data and these type values are managed by ICAO. | */
  1745. MAV_ODID_AUTH_TYPE_ENUM_END=6, /* | */
  1746. } MAV_ODID_AUTH_TYPE;
  1747. #endif
  1748. /** @brief */
  1749. #ifndef HAVE_ENUM_MAV_ODID_DESC_TYPE
  1750. #define HAVE_ENUM_MAV_ODID_DESC_TYPE
  1751. typedef enum MAV_ODID_DESC_TYPE
  1752. {
  1753. MAV_ODID_DESC_TYPE_TEXT=0, /* Optional free-form text description of the purpose of the flight. | */
  1754. MAV_ODID_DESC_TYPE_EMERGENCY=1, /* Optional additional clarification when status == MAV_ODID_STATUS_EMERGENCY. | */
  1755. MAV_ODID_DESC_TYPE_EXTENDED_STATUS=2, /* Optional additional clarification when status != MAV_ODID_STATUS_EMERGENCY. | */
  1756. MAV_ODID_DESC_TYPE_ENUM_END=3, /* | */
  1757. } MAV_ODID_DESC_TYPE;
  1758. #endif
  1759. /** @brief */
  1760. #ifndef HAVE_ENUM_MAV_ODID_OPERATOR_LOCATION_TYPE
  1761. #define HAVE_ENUM_MAV_ODID_OPERATOR_LOCATION_TYPE
  1762. typedef enum MAV_ODID_OPERATOR_LOCATION_TYPE
  1763. {
  1764. MAV_ODID_OPERATOR_LOCATION_TYPE_TAKEOFF=0, /* The location/altitude of the operator is the same as the take-off location. | */
  1765. MAV_ODID_OPERATOR_LOCATION_TYPE_LIVE_GNSS=1, /* The location/altitude of the operator is dynamic. E.g. based on live GNSS data. | */
  1766. MAV_ODID_OPERATOR_LOCATION_TYPE_FIXED=2, /* The location/altitude of the operator are fixed values. | */
  1767. MAV_ODID_OPERATOR_LOCATION_TYPE_ENUM_END=3, /* | */
  1768. } MAV_ODID_OPERATOR_LOCATION_TYPE;
  1769. #endif
  1770. /** @brief */
  1771. #ifndef HAVE_ENUM_MAV_ODID_CLASSIFICATION_TYPE
  1772. #define HAVE_ENUM_MAV_ODID_CLASSIFICATION_TYPE
  1773. typedef enum MAV_ODID_CLASSIFICATION_TYPE
  1774. {
  1775. MAV_ODID_CLASSIFICATION_TYPE_UNDECLARED=0, /* The classification type for the UA is undeclared. | */
  1776. MAV_ODID_CLASSIFICATION_TYPE_EU=1, /* The classification type for the UA follows EU (European Union) specifications. | */
  1777. MAV_ODID_CLASSIFICATION_TYPE_ENUM_END=2, /* | */
  1778. } MAV_ODID_CLASSIFICATION_TYPE;
  1779. #endif
  1780. /** @brief */
  1781. #ifndef HAVE_ENUM_MAV_ODID_CATEGORY_EU
  1782. #define HAVE_ENUM_MAV_ODID_CATEGORY_EU
  1783. typedef enum MAV_ODID_CATEGORY_EU
  1784. {
  1785. MAV_ODID_CATEGORY_EU_UNDECLARED=0, /* The category for the UA, according to the EU specification, is undeclared. | */
  1786. MAV_ODID_CATEGORY_EU_OPEN=1, /* The category for the UA, according to the EU specification, is the Open category. | */
  1787. MAV_ODID_CATEGORY_EU_SPECIFIC=2, /* The category for the UA, according to the EU specification, is the Specific category. | */
  1788. MAV_ODID_CATEGORY_EU_CERTIFIED=3, /* The category for the UA, according to the EU specification, is the Certified category. | */
  1789. MAV_ODID_CATEGORY_EU_ENUM_END=4, /* | */
  1790. } MAV_ODID_CATEGORY_EU;
  1791. #endif
  1792. /** @brief */
  1793. #ifndef HAVE_ENUM_MAV_ODID_CLASS_EU
  1794. #define HAVE_ENUM_MAV_ODID_CLASS_EU
  1795. typedef enum MAV_ODID_CLASS_EU
  1796. {
  1797. MAV_ODID_CLASS_EU_UNDECLARED=0, /* The class for the UA, according to the EU specification, is undeclared. | */
  1798. MAV_ODID_CLASS_EU_CLASS_0=1, /* The class for the UA, according to the EU specification, is Class 0. | */
  1799. MAV_ODID_CLASS_EU_CLASS_1=2, /* The class for the UA, according to the EU specification, is Class 1. | */
  1800. MAV_ODID_CLASS_EU_CLASS_2=3, /* The class for the UA, according to the EU specification, is Class 2. | */
  1801. MAV_ODID_CLASS_EU_CLASS_3=4, /* The class for the UA, according to the EU specification, is Class 3. | */
  1802. MAV_ODID_CLASS_EU_CLASS_4=5, /* The class for the UA, according to the EU specification, is Class 4. | */
  1803. MAV_ODID_CLASS_EU_CLASS_5=6, /* The class for the UA, according to the EU specification, is Class 5. | */
  1804. MAV_ODID_CLASS_EU_CLASS_6=7, /* The class for the UA, according to the EU specification, is Class 6. | */
  1805. MAV_ODID_CLASS_EU_ENUM_END=8, /* | */
  1806. } MAV_ODID_CLASS_EU;
  1807. #endif
  1808. /** @brief */
  1809. #ifndef HAVE_ENUM_MAV_ODID_OPERATOR_ID_TYPE
  1810. #define HAVE_ENUM_MAV_ODID_OPERATOR_ID_TYPE
  1811. typedef enum MAV_ODID_OPERATOR_ID_TYPE
  1812. {
  1813. MAV_ODID_OPERATOR_ID_TYPE_CAA=0, /* CAA (Civil Aviation Authority) registered operator ID. | */
  1814. MAV_ODID_OPERATOR_ID_TYPE_ENUM_END=1, /* | */
  1815. } MAV_ODID_OPERATOR_ID_TYPE;
  1816. #endif
  1817. /** @brief */
  1818. #ifndef HAVE_ENUM_MAV_ODID_ARM_STATUS
  1819. #define HAVE_ENUM_MAV_ODID_ARM_STATUS
  1820. typedef enum MAV_ODID_ARM_STATUS
  1821. {
  1822. MAV_ODID_ARM_STATUS_GOOD_TO_ARM=0, /* Passing arming checks. | */
  1823. MAV_ODID_ARM_STATUS_PRE_ARM_FAIL_GENERIC=1, /* Generic arming failure, see error string for details. | */
  1824. MAV_ODID_ARM_STATUS_ENUM_END=2, /* | */
  1825. } MAV_ODID_ARM_STATUS;
  1826. #endif
  1827. /** @brief Tune formats (used for vehicle buzzer/tone generation). */
  1828. #ifndef HAVE_ENUM_TUNE_FORMAT
  1829. #define HAVE_ENUM_TUNE_FORMAT
  1830. typedef enum TUNE_FORMAT
  1831. {
  1832. TUNE_FORMAT_QBASIC1_1=1, /* Format is QBasic 1.1 Play: https://www.qbasic.net/en/reference/qb11/Statement/PLAY-006.htm. | */
  1833. TUNE_FORMAT_MML_MODERN=2, /* Format is Modern Music Markup Language (MML): https://en.wikipedia.org/wiki/Music_Macro_Language#Modern_MML. | */
  1834. TUNE_FORMAT_ENUM_END=3, /* | */
  1835. } TUNE_FORMAT;
  1836. #endif
  1837. /** @brief Type of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html */
  1838. #ifndef HAVE_ENUM_AIS_TYPE
  1839. #define HAVE_ENUM_AIS_TYPE
  1840. typedef enum AIS_TYPE
  1841. {
  1842. AIS_TYPE_UNKNOWN=0, /* Not available (default). | */
  1843. AIS_TYPE_RESERVED_1=1, /* | */
  1844. AIS_TYPE_RESERVED_2=2, /* | */
  1845. AIS_TYPE_RESERVED_3=3, /* | */
  1846. AIS_TYPE_RESERVED_4=4, /* | */
  1847. AIS_TYPE_RESERVED_5=5, /* | */
  1848. AIS_TYPE_RESERVED_6=6, /* | */
  1849. AIS_TYPE_RESERVED_7=7, /* | */
  1850. AIS_TYPE_RESERVED_8=8, /* | */
  1851. AIS_TYPE_RESERVED_9=9, /* | */
  1852. AIS_TYPE_RESERVED_10=10, /* | */
  1853. AIS_TYPE_RESERVED_11=11, /* | */
  1854. AIS_TYPE_RESERVED_12=12, /* | */
  1855. AIS_TYPE_RESERVED_13=13, /* | */
  1856. AIS_TYPE_RESERVED_14=14, /* | */
  1857. AIS_TYPE_RESERVED_15=15, /* | */
  1858. AIS_TYPE_RESERVED_16=16, /* | */
  1859. AIS_TYPE_RESERVED_17=17, /* | */
  1860. AIS_TYPE_RESERVED_18=18, /* | */
  1861. AIS_TYPE_RESERVED_19=19, /* | */
  1862. AIS_TYPE_WIG=20, /* Wing In Ground effect. | */
  1863. AIS_TYPE_WIG_HAZARDOUS_A=21, /* | */
  1864. AIS_TYPE_WIG_HAZARDOUS_B=22, /* | */
  1865. AIS_TYPE_WIG_HAZARDOUS_C=23, /* | */
  1866. AIS_TYPE_WIG_HAZARDOUS_D=24, /* | */
  1867. AIS_TYPE_WIG_RESERVED_1=25, /* | */
  1868. AIS_TYPE_WIG_RESERVED_2=26, /* | */
  1869. AIS_TYPE_WIG_RESERVED_3=27, /* | */
  1870. AIS_TYPE_WIG_RESERVED_4=28, /* | */
  1871. AIS_TYPE_WIG_RESERVED_5=29, /* | */
  1872. AIS_TYPE_FISHING=30, /* | */
  1873. AIS_TYPE_TOWING=31, /* | */
  1874. AIS_TYPE_TOWING_LARGE=32, /* Towing: length exceeds 200m or breadth exceeds 25m. | */
  1875. AIS_TYPE_DREDGING=33, /* Dredging or other underwater ops. | */
  1876. AIS_TYPE_DIVING=34, /* | */
  1877. AIS_TYPE_MILITARY=35, /* | */
  1878. AIS_TYPE_SAILING=36, /* | */
  1879. AIS_TYPE_PLEASURE=37, /* | */
  1880. AIS_TYPE_RESERVED_20=38, /* | */
  1881. AIS_TYPE_RESERVED_21=39, /* | */
  1882. AIS_TYPE_HSC=40, /* High Speed Craft. | */
  1883. AIS_TYPE_HSC_HAZARDOUS_A=41, /* | */
  1884. AIS_TYPE_HSC_HAZARDOUS_B=42, /* | */
  1885. AIS_TYPE_HSC_HAZARDOUS_C=43, /* | */
  1886. AIS_TYPE_HSC_HAZARDOUS_D=44, /* | */
  1887. AIS_TYPE_HSC_RESERVED_1=45, /* | */
  1888. AIS_TYPE_HSC_RESERVED_2=46, /* | */
  1889. AIS_TYPE_HSC_RESERVED_3=47, /* | */
  1890. AIS_TYPE_HSC_RESERVED_4=48, /* | */
  1891. AIS_TYPE_HSC_UNKNOWN=49, /* | */
  1892. AIS_TYPE_PILOT=50, /* | */
  1893. AIS_TYPE_SAR=51, /* Search And Rescue vessel. | */
  1894. AIS_TYPE_TUG=52, /* | */
  1895. AIS_TYPE_PORT_TENDER=53, /* | */
  1896. AIS_TYPE_ANTI_POLLUTION=54, /* Anti-pollution equipment. | */
  1897. AIS_TYPE_LAW_ENFORCEMENT=55, /* | */
  1898. AIS_TYPE_SPARE_LOCAL_1=56, /* | */
  1899. AIS_TYPE_SPARE_LOCAL_2=57, /* | */
  1900. AIS_TYPE_MEDICAL_TRANSPORT=58, /* | */
  1901. AIS_TYPE_NONECOMBATANT=59, /* Noncombatant ship according to RR Resolution No. 18. | */
  1902. AIS_TYPE_PASSENGER=60, /* | */
  1903. AIS_TYPE_PASSENGER_HAZARDOUS_A=61, /* | */
  1904. AIS_TYPE_PASSENGER_HAZARDOUS_B=62, /* | */
  1905. AIS_TYPE_PASSENGER_HAZARDOUS_C=63, /* | */
  1906. AIS_TYPE_PASSENGER_HAZARDOUS_D=64, /* | */
  1907. AIS_TYPE_PASSENGER_RESERVED_1=65, /* | */
  1908. AIS_TYPE_PASSENGER_RESERVED_2=66, /* | */
  1909. AIS_TYPE_PASSENGER_RESERVED_3=67, /* | */
  1910. AIS_TYPE_PASSENGER_RESERVED_4=68, /* | */
  1911. AIS_TYPE_PASSENGER_UNKNOWN=69, /* | */
  1912. AIS_TYPE_CARGO=70, /* | */
  1913. AIS_TYPE_CARGO_HAZARDOUS_A=71, /* | */
  1914. AIS_TYPE_CARGO_HAZARDOUS_B=72, /* | */
  1915. AIS_TYPE_CARGO_HAZARDOUS_C=73, /* | */
  1916. AIS_TYPE_CARGO_HAZARDOUS_D=74, /* | */
  1917. AIS_TYPE_CARGO_RESERVED_1=75, /* | */
  1918. AIS_TYPE_CARGO_RESERVED_2=76, /* | */
  1919. AIS_TYPE_CARGO_RESERVED_3=77, /* | */
  1920. AIS_TYPE_CARGO_RESERVED_4=78, /* | */
  1921. AIS_TYPE_CARGO_UNKNOWN=79, /* | */
  1922. AIS_TYPE_TANKER=80, /* | */
  1923. AIS_TYPE_TANKER_HAZARDOUS_A=81, /* | */
  1924. AIS_TYPE_TANKER_HAZARDOUS_B=82, /* | */
  1925. AIS_TYPE_TANKER_HAZARDOUS_C=83, /* | */
  1926. AIS_TYPE_TANKER_HAZARDOUS_D=84, /* | */
  1927. AIS_TYPE_TANKER_RESERVED_1=85, /* | */
  1928. AIS_TYPE_TANKER_RESERVED_2=86, /* | */
  1929. AIS_TYPE_TANKER_RESERVED_3=87, /* | */
  1930. AIS_TYPE_TANKER_RESERVED_4=88, /* | */
  1931. AIS_TYPE_TANKER_UNKNOWN=89, /* | */
  1932. AIS_TYPE_OTHER=90, /* | */
  1933. AIS_TYPE_OTHER_HAZARDOUS_A=91, /* | */
  1934. AIS_TYPE_OTHER_HAZARDOUS_B=92, /* | */
  1935. AIS_TYPE_OTHER_HAZARDOUS_C=93, /* | */
  1936. AIS_TYPE_OTHER_HAZARDOUS_D=94, /* | */
  1937. AIS_TYPE_OTHER_RESERVED_1=95, /* | */
  1938. AIS_TYPE_OTHER_RESERVED_2=96, /* | */
  1939. AIS_TYPE_OTHER_RESERVED_3=97, /* | */
  1940. AIS_TYPE_OTHER_RESERVED_4=98, /* | */
  1941. AIS_TYPE_OTHER_UNKNOWN=99, /* | */
  1942. AIS_TYPE_ENUM_END=100, /* | */
  1943. } AIS_TYPE;
  1944. #endif
  1945. /** @brief Navigational status of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html */
  1946. #ifndef HAVE_ENUM_AIS_NAV_STATUS
  1947. #define HAVE_ENUM_AIS_NAV_STATUS
  1948. typedef enum AIS_NAV_STATUS
  1949. {
  1950. UNDER_WAY=0, /* Under way using engine. | */
  1951. AIS_NAV_ANCHORED=1, /* | */
  1952. AIS_NAV_UN_COMMANDED=2, /* | */
  1953. AIS_NAV_RESTRICTED_MANOEUVERABILITY=3, /* | */
  1954. AIS_NAV_DRAUGHT_CONSTRAINED=4, /* | */
  1955. AIS_NAV_MOORED=5, /* | */
  1956. AIS_NAV_AGROUND=6, /* | */
  1957. AIS_NAV_FISHING=7, /* | */
  1958. AIS_NAV_SAILING=8, /* | */
  1959. AIS_NAV_RESERVED_HSC=9, /* | */
  1960. AIS_NAV_RESERVED_WIG=10, /* | */
  1961. AIS_NAV_RESERVED_1=11, /* | */
  1962. AIS_NAV_RESERVED_2=12, /* | */
  1963. AIS_NAV_RESERVED_3=13, /* | */
  1964. AIS_NAV_AIS_SART=14, /* Search And Rescue Transponder. | */
  1965. AIS_NAV_UNKNOWN=15, /* Not available (default). | */
  1966. AIS_NAV_STATUS_ENUM_END=16, /* | */
  1967. } AIS_NAV_STATUS;
  1968. #endif
  1969. /** @brief These flags are used in the AIS_VESSEL.fields bitmask to indicate validity of data in the other message fields. When set, the data is valid. */
  1970. #ifndef HAVE_ENUM_AIS_FLAGS
  1971. #define HAVE_ENUM_AIS_FLAGS
  1972. typedef enum AIS_FLAGS
  1973. {
  1974. AIS_FLAGS_POSITION_ACCURACY=1, /* 1 = Position accuracy less than 10m, 0 = position accuracy greater than 10m. | */
  1975. AIS_FLAGS_VALID_COG=2, /* | */
  1976. AIS_FLAGS_VALID_VELOCITY=4, /* | */
  1977. AIS_FLAGS_HIGH_VELOCITY=8, /* 1 = Velocity over 52.5765m/s (102.2 knots) | */
  1978. AIS_FLAGS_VALID_TURN_RATE=16, /* | */
  1979. AIS_FLAGS_TURN_RATE_SIGN_ONLY=32, /* Only the sign of the returned turn rate value is valid, either greater than 5deg/30s or less than -5deg/30s | */
  1980. AIS_FLAGS_VALID_DIMENSIONS=64, /* | */
  1981. AIS_FLAGS_LARGE_BOW_DIMENSION=128, /* Distance to bow is larger than 511m | */
  1982. AIS_FLAGS_LARGE_STERN_DIMENSION=256, /* Distance to stern is larger than 511m | */
  1983. AIS_FLAGS_LARGE_PORT_DIMENSION=512, /* Distance to port side is larger than 63m | */
  1984. AIS_FLAGS_LARGE_STARBOARD_DIMENSION=1024, /* Distance to starboard side is larger than 63m | */
  1985. AIS_FLAGS_VALID_CALLSIGN=2048, /* | */
  1986. AIS_FLAGS_VALID_NAME=4096, /* | */
  1987. AIS_FLAGS_ENUM_END=4097, /* | */
  1988. } AIS_FLAGS;
  1989. #endif
  1990. /** @brief List of possible units where failures can be injected. */
  1991. #ifndef HAVE_ENUM_FAILURE_UNIT
  1992. #define HAVE_ENUM_FAILURE_UNIT
  1993. typedef enum FAILURE_UNIT
  1994. {
  1995. FAILURE_UNIT_SENSOR_GYRO=0, /* | */
  1996. FAILURE_UNIT_SENSOR_ACCEL=1, /* | */
  1997. FAILURE_UNIT_SENSOR_MAG=2, /* | */
  1998. FAILURE_UNIT_SENSOR_BARO=3, /* | */
  1999. FAILURE_UNIT_SENSOR_GPS=4, /* | */
  2000. FAILURE_UNIT_SENSOR_OPTICAL_FLOW=5, /* | */
  2001. FAILURE_UNIT_SENSOR_VIO=6, /* | */
  2002. FAILURE_UNIT_SENSOR_DISTANCE_SENSOR=7, /* | */
  2003. FAILURE_UNIT_SENSOR_AIRSPEED=8, /* | */
  2004. FAILURE_UNIT_SYSTEM_BATTERY=100, /* | */
  2005. FAILURE_UNIT_SYSTEM_MOTOR=101, /* | */
  2006. FAILURE_UNIT_SYSTEM_SERVO=102, /* | */
  2007. FAILURE_UNIT_SYSTEM_AVOIDANCE=103, /* | */
  2008. FAILURE_UNIT_SYSTEM_RC_SIGNAL=104, /* | */
  2009. FAILURE_UNIT_SYSTEM_MAVLINK_SIGNAL=105, /* | */
  2010. FAILURE_UNIT_ENUM_END=106, /* | */
  2011. } FAILURE_UNIT;
  2012. #endif
  2013. /** @brief List of possible failure type to inject. */
  2014. #ifndef HAVE_ENUM_FAILURE_TYPE
  2015. #define HAVE_ENUM_FAILURE_TYPE
  2016. typedef enum FAILURE_TYPE
  2017. {
  2018. FAILURE_TYPE_OK=0, /* No failure injected, used to reset a previous failure. | */
  2019. FAILURE_TYPE_OFF=1, /* Sets unit off, so completely non-responsive. | */
  2020. FAILURE_TYPE_STUCK=2, /* Unit is stuck e.g. keeps reporting the same value. | */
  2021. FAILURE_TYPE_GARBAGE=3, /* Unit is reporting complete garbage. | */
  2022. FAILURE_TYPE_WRONG=4, /* Unit is consistently wrong. | */
  2023. FAILURE_TYPE_SLOW=5, /* Unit is slow, so e.g. reporting at slower than expected rate. | */
  2024. FAILURE_TYPE_DELAYED=6, /* Data of unit is delayed in time. | */
  2025. FAILURE_TYPE_INTERMITTENT=7, /* Unit is sometimes working, sometimes not. | */
  2026. FAILURE_TYPE_ENUM_END=8, /* | */
  2027. } FAILURE_TYPE;
  2028. #endif
  2029. /** @brief */
  2030. #ifndef HAVE_ENUM_NAV_VTOL_LAND_OPTIONS
  2031. #define HAVE_ENUM_NAV_VTOL_LAND_OPTIONS
  2032. typedef enum NAV_VTOL_LAND_OPTIONS
  2033. {
  2034. NAV_VTOL_LAND_OPTIONS_DEFAULT=0, /* Default autopilot landing behaviour. | */
  2035. NAV_VTOL_LAND_OPTIONS_FW_DESCENT=1, /* Descend in fixed wing mode, transitioning to multicopter mode for vertical landing when close to the ground.
  2036. The fixed wing descent pattern is at the discretion of the vehicle (e.g. transition altitude, loiter direction, radius, and speed, etc.).
  2037. | */
  2038. NAV_VTOL_LAND_OPTIONS_HOVER_DESCENT=2, /* Land in multicopter mode on reaching the landing coordinates (the whole landing is by "hover descent"). | */
  2039. NAV_VTOL_LAND_OPTIONS_ENUM_END=3, /* | */
  2040. } NAV_VTOL_LAND_OPTIONS;
  2041. #endif
  2042. /** @brief Winch status flags used in WINCH_STATUS */
  2043. #ifndef HAVE_ENUM_MAV_WINCH_STATUS_FLAG
  2044. #define HAVE_ENUM_MAV_WINCH_STATUS_FLAG
  2045. typedef enum MAV_WINCH_STATUS_FLAG
  2046. {
  2047. MAV_WINCH_STATUS_HEALTHY=1, /* Winch is healthy | */
  2048. MAV_WINCH_STATUS_FULLY_RETRACTED=2, /* Winch line is fully retracted | */
  2049. MAV_WINCH_STATUS_MOVING=4, /* Winch motor is moving | */
  2050. MAV_WINCH_STATUS_CLUTCH_ENGAGED=8, /* Winch clutch is engaged allowing motor to move freely. | */
  2051. MAV_WINCH_STATUS_LOCKED=16, /* Winch is locked by locking mechanism. | */
  2052. MAV_WINCH_STATUS_DROPPING=32, /* Winch is gravity dropping payload. | */
  2053. MAV_WINCH_STATUS_ARRESTING=64, /* Winch is arresting payload descent. | */
  2054. MAV_WINCH_STATUS_GROUND_SENSE=128, /* Winch is using torque measurements to sense the ground. | */
  2055. MAV_WINCH_STATUS_RETRACTING=256, /* Winch is returning to the fully retracted position. | */
  2056. MAV_WINCH_STATUS_REDELIVER=512, /* Winch is redelivering the payload. This is a failover state if the line tension goes above a threshold during RETRACTING. | */
  2057. MAV_WINCH_STATUS_ABANDON_LINE=1024, /* Winch is abandoning the line and possibly payload. Winch unspools the entire calculated line length. This is a failover state from REDELIVER if the number of attempts exceeds a threshold. | */
  2058. MAV_WINCH_STATUS_LOCKING=2048, /* Winch is engaging the locking mechanism. | */
  2059. MAV_WINCH_STATUS_LOAD_LINE=4096, /* Winch is spooling on line. | */
  2060. MAV_WINCH_STATUS_LOAD_PAYLOAD=8192, /* Winch is loading a payload. | */
  2061. MAV_WINCH_STATUS_FLAG_ENUM_END=8193, /* | */
  2062. } MAV_WINCH_STATUS_FLAG;
  2063. #endif
  2064. /** @brief */
  2065. #ifndef HAVE_ENUM_MAG_CAL_STATUS
  2066. #define HAVE_ENUM_MAG_CAL_STATUS
  2067. typedef enum MAG_CAL_STATUS
  2068. {
  2069. MAG_CAL_NOT_STARTED=0, /* | */
  2070. MAG_CAL_WAITING_TO_START=1, /* | */
  2071. MAG_CAL_RUNNING_STEP_ONE=2, /* | */
  2072. MAG_CAL_RUNNING_STEP_TWO=3, /* | */
  2073. MAG_CAL_SUCCESS=4, /* | */
  2074. MAG_CAL_FAILED=5, /* | */
  2075. MAG_CAL_BAD_ORIENTATION=6, /* | */
  2076. MAG_CAL_BAD_RADIUS=7, /* | */
  2077. MAG_CAL_STATUS_ENUM_END=8, /* | */
  2078. } MAG_CAL_STATUS;
  2079. #endif
  2080. /** @brief Reason for an event error response. */
  2081. #ifndef HAVE_ENUM_MAV_EVENT_ERROR_REASON
  2082. #define HAVE_ENUM_MAV_EVENT_ERROR_REASON
  2083. typedef enum MAV_EVENT_ERROR_REASON
  2084. {
  2085. MAV_EVENT_ERROR_REASON_UNAVAILABLE=0, /* The requested event is not available (anymore). | */
  2086. MAV_EVENT_ERROR_REASON_ENUM_END=1, /* | */
  2087. } MAV_EVENT_ERROR_REASON;
  2088. #endif
  2089. /** @brief Flags for CURRENT_EVENT_SEQUENCE. */
  2090. #ifndef HAVE_ENUM_MAV_EVENT_CURRENT_SEQUENCE_FLAGS
  2091. #define HAVE_ENUM_MAV_EVENT_CURRENT_SEQUENCE_FLAGS
  2092. typedef enum MAV_EVENT_CURRENT_SEQUENCE_FLAGS
  2093. {
  2094. MAV_EVENT_CURRENT_SEQUENCE_FLAGS_RESET=1, /* A sequence reset has happened (e.g. vehicle reboot). | */
  2095. MAV_EVENT_CURRENT_SEQUENCE_FLAGS_ENUM_END=2, /* | */
  2096. } MAV_EVENT_CURRENT_SEQUENCE_FLAGS;
  2097. #endif
  2098. /** @brief Flags in the HIL_SENSOR message indicate which fields have updated since the last message */
  2099. #ifndef HAVE_ENUM_HIL_SENSOR_UPDATED_FLAGS
  2100. #define HAVE_ENUM_HIL_SENSOR_UPDATED_FLAGS
  2101. typedef enum HIL_SENSOR_UPDATED_FLAGS
  2102. {
  2103. HIL_SENSOR_UPDATED_NONE=0, /* None of the fields in HIL_SENSOR have been updated | */
  2104. HIL_SENSOR_UPDATED_XACC=1, /* The value in the xacc field has been updated | */
  2105. HIL_SENSOR_UPDATED_YACC=2, /* The value in the yacc field has been updated | */
  2106. HIL_SENSOR_UPDATED_ZACC=4, /* The value in the zacc field has been updated | */
  2107. HIL_SENSOR_UPDATED_XGYRO=8, /* The value in the xgyro field has been updated | */
  2108. HIL_SENSOR_UPDATED_YGYRO=16, /* The value in the ygyro field has been updated | */
  2109. HIL_SENSOR_UPDATED_ZGYRO=32, /* The value in the zgyro field has been updated | */
  2110. HIL_SENSOR_UPDATED_XMAG=64, /* The value in the xmag field has been updated | */
  2111. HIL_SENSOR_UPDATED_YMAG=128, /* The value in the ymag field has been updated | */
  2112. HIL_SENSOR_UPDATED_ZMAG=256, /* The value in the zmag field has been updated | */
  2113. HIL_SENSOR_UPDATED_ABS_PRESSURE=512, /* The value in the abs_pressure field has been updated | */
  2114. HIL_SENSOR_UPDATED_DIFF_PRESSURE=1024, /* The value in the diff_pressure field has been updated | */
  2115. HIL_SENSOR_UPDATED_PRESSURE_ALT=2048, /* The value in the pressure_alt field has been updated | */
  2116. HIL_SENSOR_UPDATED_TEMPERATURE=4096, /* The value in the temperature field has been updated | */
  2117. HIL_SENSOR_UPDATED_RESET=2147483648, /* Full reset of attitude/position/velocities/etc was performed in sim (Bit 31). | */
  2118. HIL_SENSOR_UPDATED_FLAGS_ENUM_END=2147483649, /* | */
  2119. } HIL_SENSOR_UPDATED_FLAGS;
  2120. #endif
  2121. /** @brief Flags in the HIGHRES_IMU message indicate which fields have updated since the last message */
  2122. #ifndef HAVE_ENUM_HIGHRES_IMU_UPDATED_FLAGS
  2123. #define HAVE_ENUM_HIGHRES_IMU_UPDATED_FLAGS
  2124. typedef enum HIGHRES_IMU_UPDATED_FLAGS
  2125. {
  2126. HIGHRES_IMU_UPDATED_NONE=0, /* None of the fields in HIGHRES_IMU have been updated | */
  2127. HIGHRES_IMU_UPDATED_XACC=1, /* The value in the xacc field has been updated | */
  2128. HIGHRES_IMU_UPDATED_YACC=2, /* The value in the yacc field has been updated | */
  2129. HIGHRES_IMU_UPDATED_ZACC=4, /* The value in the zacc field has been updated since | */
  2130. HIGHRES_IMU_UPDATED_XGYRO=8, /* The value in the xgyro field has been updated | */
  2131. HIGHRES_IMU_UPDATED_YGYRO=16, /* The value in the ygyro field has been updated | */
  2132. HIGHRES_IMU_UPDATED_ZGYRO=32, /* The value in the zgyro field has been updated | */
  2133. HIGHRES_IMU_UPDATED_XMAG=64, /* The value in the xmag field has been updated | */
  2134. HIGHRES_IMU_UPDATED_YMAG=128, /* The value in the ymag field has been updated | */
  2135. HIGHRES_IMU_UPDATED_ZMAG=256, /* The value in the zmag field has been updated | */
  2136. HIGHRES_IMU_UPDATED_ABS_PRESSURE=512, /* The value in the abs_pressure field has been updated | */
  2137. HIGHRES_IMU_UPDATED_DIFF_PRESSURE=1024, /* The value in the diff_pressure field has been updated | */
  2138. HIGHRES_IMU_UPDATED_PRESSURE_ALT=2048, /* The value in the pressure_alt field has been updated | */
  2139. HIGHRES_IMU_UPDATED_TEMPERATURE=4096, /* The value in the temperature field has been updated | */
  2140. HIGHRES_IMU_UPDATED_ALL=65535, /* All fields in HIGHRES_IMU have been updated. | */
  2141. HIGHRES_IMU_UPDATED_FLAGS_ENUM_END=65536, /* | */
  2142. } HIGHRES_IMU_UPDATED_FLAGS;
  2143. #endif
  2144. /** @brief */
  2145. #ifndef HAVE_ENUM_CAN_FILTER_OP
  2146. #define HAVE_ENUM_CAN_FILTER_OP
  2147. typedef enum CAN_FILTER_OP
  2148. {
  2149. CAN_FILTER_REPLACE=0, /* | */
  2150. CAN_FILTER_ADD=1, /* | */
  2151. CAN_FILTER_REMOVE=2, /* | */
  2152. CAN_FILTER_OP_ENUM_END=3, /* | */
  2153. } CAN_FILTER_OP;
  2154. #endif
  2155. /** @brief MAV FTP error codes (https://mavlink.io/en/services/ftp.html) */
  2156. #ifndef HAVE_ENUM_MAV_FTP_ERR
  2157. #define HAVE_ENUM_MAV_FTP_ERR
  2158. typedef enum MAV_FTP_ERR
  2159. {
  2160. MAV_FTP_ERR_NONE=0, /* None: No error | */
  2161. MAV_FTP_ERR_FAIL=1, /* Fail: Unknown failure | */
  2162. MAV_FTP_ERR_FAILERRNO=2, /* FailErrno: Command failed, Err number sent back in PayloadHeader.data[1].
  2163. This is a file-system error number understood by the server operating system. | */
  2164. MAV_FTP_ERR_INVALIDDATASIZE=3, /* InvalidDataSize: Payload size is invalid | */
  2165. MAV_FTP_ERR_INVALIDSESSION=4, /* InvalidSession: Session is not currently open | */
  2166. MAV_FTP_ERR_NOSESSIONSAVAILABLE=5, /* NoSessionsAvailable: All available sessions are already in use | */
  2167. MAV_FTP_ERR_EOF=6, /* EOF: Offset past end of file for ListDirectory and ReadFile commands | */
  2168. MAV_FTP_ERR_UNKNOWNCOMMAND=7, /* UnknownCommand: Unknown command / opcode | */
  2169. MAV_FTP_ERR_FILEEXISTS=8, /* FileExists: File/directory already exists | */
  2170. MAV_FTP_ERR_FILEPROTECTED=9, /* FileProtected: File/directory is write protected | */
  2171. MAV_FTP_ERR_FILENOTFOUND=10, /* FileNotFound: File/directory not found | */
  2172. MAV_FTP_ERR_ENUM_END=11, /* | */
  2173. } MAV_FTP_ERR;
  2174. #endif
  2175. /** @brief MAV FTP opcodes: https://mavlink.io/en/services/ftp.html */
  2176. #ifndef HAVE_ENUM_MAV_FTP_OPCODE
  2177. #define HAVE_ENUM_MAV_FTP_OPCODE
  2178. typedef enum MAV_FTP_OPCODE
  2179. {
  2180. MAV_FTP_OPCODE_NONE=0, /* None. Ignored, always ACKed | */
  2181. MAV_FTP_OPCODE_TERMINATESESSION=1, /* TerminateSession: Terminates open Read session | */
  2182. MAV_FTP_OPCODE_RESETSESSION=2, /* ResetSessions: Terminates all open read sessions | */
  2183. MAV_FTP_OPCODE_LISTDIRECTORY=3, /* ListDirectory. List files and directories in path from offset | */
  2184. MAV_FTP_OPCODE_OPENFILERO=4, /* OpenFileRO: Opens file at path for reading, returns session | */
  2185. MAV_FTP_OPCODE_READFILE=5, /* ReadFile: Reads size bytes from offset in session | */
  2186. MAV_FTP_OPCODE_CREATEFILE=6, /* CreateFile: Creates file at path for writing, returns session | */
  2187. MAV_FTP_OPCODE_WRITEFILE=7, /* WriteFile: Writes size bytes to offset in session | */
  2188. MAV_FTP_OPCODE_REMOVEFILE=8, /* RemoveFile: Remove file at path | */
  2189. MAV_FTP_OPCODE_CREATEDIRECTORY=9, /* CreateDirectory: Creates directory at path | */
  2190. MAV_FTP_OPCODE_REMOVEDIRECTORY=10, /* RemoveDirectory: Removes directory at path. The directory must be empty. | */
  2191. MAV_FTP_OPCODE_OPENFILEWO=11, /* OpenFileWO: Opens file at path for writing, returns session | */
  2192. MAV_FTP_OPCODE_TRUNCATEFILE=12, /* TruncateFile: Truncate file at path to offset length | */
  2193. MAV_FTP_OPCODE_RENAME=13, /* Rename: Rename path1 to path2 | */
  2194. MAV_FTP_OPCODE_CALCFILECRC=14, /* CalcFileCRC32: Calculate CRC32 for file at path | */
  2195. MAV_FTP_OPCODE_BURSTREADFILE=15, /* BurstReadFile: Burst download session file | */
  2196. MAV_FTP_OPCODE_ACK=128, /* ACK: ACK response | */
  2197. MAV_FTP_OPCODE_NAK=129, /* NAK: NAK response | */
  2198. MAV_FTP_OPCODE_ENUM_END=130, /* | */
  2199. } MAV_FTP_OPCODE;
  2200. #endif
  2201. /** @brief
  2202. States of the mission state machine.
  2203. Note that these states are independent of whether the mission is in a mode that can execute mission items or not (is suspended).
  2204. They may not all be relevant on all vehicles.
  2205. */
  2206. #ifndef HAVE_ENUM_MISSION_STATE
  2207. #define HAVE_ENUM_MISSION_STATE
  2208. typedef enum MISSION_STATE
  2209. {
  2210. MISSION_STATE_UNKNOWN=0, /* The mission status reporting is not supported. | */
  2211. MISSION_STATE_NO_MISSION=1, /* No mission on the vehicle. | */
  2212. MISSION_STATE_NOT_STARTED=2, /* Mission has not started. This is the case after a mission has uploaded but not yet started executing. | */
  2213. MISSION_STATE_ACTIVE=3, /* Mission is active, and will execute mission items when in auto mode. | */
  2214. MISSION_STATE_PAUSED=4, /* Mission is paused when in auto mode. | */
  2215. MISSION_STATE_COMPLETE=5, /* Mission has executed all mission items. | */
  2216. MISSION_STATE_ENUM_END=6, /* | */
  2217. } MISSION_STATE;
  2218. #endif
  2219. // MAVLINK VERSION
  2220. #ifndef MAVLINK_VERSION
  2221. #define MAVLINK_VERSION 3
  2222. #endif
  2223. #if (MAVLINK_VERSION == 0)
  2224. #undef MAVLINK_VERSION
  2225. #define MAVLINK_VERSION 3
  2226. #endif
  2227. // MESSAGE DEFINITIONS
  2228. #include "./mavlink_msg_sys_status.h"
  2229. #include "./mavlink_msg_system_time.h"
  2230. #include "./mavlink_msg_ping.h"
  2231. #include "./mavlink_msg_change_operator_control.h"
  2232. #include "./mavlink_msg_change_operator_control_ack.h"
  2233. #include "./mavlink_msg_auth_key.h"
  2234. #include "./mavlink_msg_link_node_status.h"
  2235. #include "./mavlink_msg_set_mode.h"
  2236. #include "./mavlink_msg_param_request_read.h"
  2237. #include "./mavlink_msg_param_request_list.h"
  2238. #include "./mavlink_msg_param_value.h"
  2239. #include "./mavlink_msg_param_set.h"
  2240. #include "./mavlink_msg_gps_raw_int.h"
  2241. #include "./mavlink_msg_gps_status.h"
  2242. #include "./mavlink_msg_scaled_imu.h"
  2243. #include "./mavlink_msg_raw_imu.h"
  2244. #include "./mavlink_msg_raw_pressure.h"
  2245. #include "./mavlink_msg_scaled_pressure.h"
  2246. #include "./mavlink_msg_attitude.h"
  2247. #include "./mavlink_msg_attitude_quaternion.h"
  2248. #include "./mavlink_msg_local_position_ned.h"
  2249. #include "./mavlink_msg_global_position_int.h"
  2250. #include "./mavlink_msg_rc_channels_scaled.h"
  2251. #include "./mavlink_msg_rc_channels_raw.h"
  2252. #include "./mavlink_msg_servo_output_raw.h"
  2253. #include "./mavlink_msg_mission_request_partial_list.h"
  2254. #include "./mavlink_msg_mission_write_partial_list.h"
  2255. #include "./mavlink_msg_mission_item.h"
  2256. #include "./mavlink_msg_mission_request.h"
  2257. #include "./mavlink_msg_mission_set_current.h"
  2258. #include "./mavlink_msg_mission_current.h"
  2259. #include "./mavlink_msg_mission_request_list.h"
  2260. #include "./mavlink_msg_mission_count.h"
  2261. #include "./mavlink_msg_mission_clear_all.h"
  2262. #include "./mavlink_msg_mission_item_reached.h"
  2263. #include "./mavlink_msg_mission_ack.h"
  2264. #include "./mavlink_msg_set_gps_global_origin.h"
  2265. #include "./mavlink_msg_gps_global_origin.h"
  2266. #include "./mavlink_msg_param_map_rc.h"
  2267. #include "./mavlink_msg_mission_request_int.h"
  2268. #include "./mavlink_msg_safety_set_allowed_area.h"
  2269. #include "./mavlink_msg_safety_allowed_area.h"
  2270. #include "./mavlink_msg_attitude_quaternion_cov.h"
  2271. #include "./mavlink_msg_nav_controller_output.h"
  2272. #include "./mavlink_msg_global_position_int_cov.h"
  2273. #include "./mavlink_msg_local_position_ned_cov.h"
  2274. #include "./mavlink_msg_rc_channels.h"
  2275. #include "./mavlink_msg_request_data_stream.h"
  2276. #include "./mavlink_msg_data_stream.h"
  2277. #include "./mavlink_msg_manual_control.h"
  2278. #include "./mavlink_msg_rc_channels_override.h"
  2279. #include "./mavlink_msg_mission_item_int.h"
  2280. #include "./mavlink_msg_vfr_hud.h"
  2281. #include "./mavlink_msg_command_int.h"
  2282. #include "./mavlink_msg_command_long.h"
  2283. #include "./mavlink_msg_command_ack.h"
  2284. #include "./mavlink_msg_command_cancel.h"
  2285. #include "./mavlink_msg_manual_setpoint.h"
  2286. #include "./mavlink_msg_set_attitude_target.h"
  2287. #include "./mavlink_msg_attitude_target.h"
  2288. #include "./mavlink_msg_set_position_target_local_ned.h"
  2289. #include "./mavlink_msg_position_target_local_ned.h"
  2290. #include "./mavlink_msg_set_position_target_global_int.h"
  2291. #include "./mavlink_msg_position_target_global_int.h"
  2292. #include "./mavlink_msg_local_position_ned_system_global_offset.h"
  2293. #include "./mavlink_msg_hil_state.h"
  2294. #include "./mavlink_msg_hil_controls.h"
  2295. #include "./mavlink_msg_hil_rc_inputs_raw.h"
  2296. #include "./mavlink_msg_hil_actuator_controls.h"
  2297. #include "./mavlink_msg_optical_flow.h"
  2298. #include "./mavlink_msg_global_vision_position_estimate.h"
  2299. #include "./mavlink_msg_vision_position_estimate.h"
  2300. #include "./mavlink_msg_vision_speed_estimate.h"
  2301. #include "./mavlink_msg_vicon_position_estimate.h"
  2302. #include "./mavlink_msg_highres_imu.h"
  2303. #include "./mavlink_msg_optical_flow_rad.h"
  2304. #include "./mavlink_msg_hil_sensor.h"
  2305. #include "./mavlink_msg_sim_state.h"
  2306. #include "./mavlink_msg_radio_status.h"
  2307. #include "./mavlink_msg_file_transfer_protocol.h"
  2308. #include "./mavlink_msg_timesync.h"
  2309. #include "./mavlink_msg_camera_trigger.h"
  2310. #include "./mavlink_msg_hil_gps.h"
  2311. #include "./mavlink_msg_hil_optical_flow.h"
  2312. #include "./mavlink_msg_hil_state_quaternion.h"
  2313. #include "./mavlink_msg_scaled_imu2.h"
  2314. #include "./mavlink_msg_log_request_list.h"
  2315. #include "./mavlink_msg_log_entry.h"
  2316. #include "./mavlink_msg_log_request_data.h"
  2317. #include "./mavlink_msg_log_data.h"
  2318. #include "./mavlink_msg_log_erase.h"
  2319. #include "./mavlink_msg_log_request_end.h"
  2320. #include "./mavlink_msg_gps_inject_data.h"
  2321. #include "./mavlink_msg_gps2_raw.h"
  2322. #include "./mavlink_msg_power_status.h"
  2323. #include "./mavlink_msg_serial_control.h"
  2324. #include "./mavlink_msg_gps_rtk.h"
  2325. #include "./mavlink_msg_gps2_rtk.h"
  2326. #include "./mavlink_msg_scaled_imu3.h"
  2327. #include "./mavlink_msg_data_transmission_handshake.h"
  2328. #include "./mavlink_msg_encapsulated_data.h"
  2329. #include "./mavlink_msg_distance_sensor.h"
  2330. #include "./mavlink_msg_terrain_request.h"
  2331. #include "./mavlink_msg_terrain_data.h"
  2332. #include "./mavlink_msg_terrain_check.h"
  2333. #include "./mavlink_msg_terrain_report.h"
  2334. #include "./mavlink_msg_scaled_pressure2.h"
  2335. #include "./mavlink_msg_att_pos_mocap.h"
  2336. #include "./mavlink_msg_set_actuator_control_target.h"
  2337. #include "./mavlink_msg_actuator_control_target.h"
  2338. #include "./mavlink_msg_altitude.h"
  2339. #include "./mavlink_msg_resource_request.h"
  2340. #include "./mavlink_msg_scaled_pressure3.h"
  2341. #include "./mavlink_msg_follow_target.h"
  2342. #include "./mavlink_msg_control_system_state.h"
  2343. #include "./mavlink_msg_battery_status.h"
  2344. #include "./mavlink_msg_autopilot_version.h"
  2345. #include "./mavlink_msg_landing_target.h"
  2346. #include "./mavlink_msg_fence_status.h"
  2347. #include "./mavlink_msg_mag_cal_report.h"
  2348. #include "./mavlink_msg_efi_status.h"
  2349. #include "./mavlink_msg_estimator_status.h"
  2350. #include "./mavlink_msg_wind_cov.h"
  2351. #include "./mavlink_msg_gps_input.h"
  2352. #include "./mavlink_msg_gps_rtcm_data.h"
  2353. #include "./mavlink_msg_high_latency.h"
  2354. #include "./mavlink_msg_high_latency2.h"
  2355. #include "./mavlink_msg_vibration.h"
  2356. #include "./mavlink_msg_home_position.h"
  2357. #include "./mavlink_msg_set_home_position.h"
  2358. #include "./mavlink_msg_message_interval.h"
  2359. #include "./mavlink_msg_extended_sys_state.h"
  2360. #include "./mavlink_msg_adsb_vehicle.h"
  2361. #include "./mavlink_msg_collision.h"
  2362. #include "./mavlink_msg_v2_extension.h"
  2363. #include "./mavlink_msg_memory_vect.h"
  2364. #include "./mavlink_msg_debug_vect.h"
  2365. #include "./mavlink_msg_named_value_float.h"
  2366. #include "./mavlink_msg_named_value_int.h"
  2367. #include "./mavlink_msg_statustext.h"
  2368. #include "./mavlink_msg_debug.h"
  2369. #include "./mavlink_msg_setup_signing.h"
  2370. #include "./mavlink_msg_button_change.h"
  2371. #include "./mavlink_msg_play_tune.h"
  2372. #include "./mavlink_msg_camera_information.h"
  2373. #include "./mavlink_msg_camera_settings.h"
  2374. #include "./mavlink_msg_storage_information.h"
  2375. #include "./mavlink_msg_camera_capture_status.h"
  2376. #include "./mavlink_msg_camera_image_captured.h"
  2377. #include "./mavlink_msg_flight_information.h"
  2378. #include "./mavlink_msg_mount_orientation.h"
  2379. #include "./mavlink_msg_logging_data.h"
  2380. #include "./mavlink_msg_logging_data_acked.h"
  2381. #include "./mavlink_msg_logging_ack.h"
  2382. #include "./mavlink_msg_video_stream_information.h"
  2383. #include "./mavlink_msg_video_stream_status.h"
  2384. #include "./mavlink_msg_camera_fov_status.h"
  2385. #include "./mavlink_msg_camera_tracking_image_status.h"
  2386. #include "./mavlink_msg_camera_tracking_geo_status.h"
  2387. #include "./mavlink_msg_gimbal_manager_information.h"
  2388. #include "./mavlink_msg_gimbal_manager_status.h"
  2389. #include "./mavlink_msg_gimbal_manager_set_attitude.h"
  2390. #include "./mavlink_msg_gimbal_device_information.h"
  2391. #include "./mavlink_msg_gimbal_device_set_attitude.h"
  2392. #include "./mavlink_msg_gimbal_device_attitude_status.h"
  2393. #include "./mavlink_msg_autopilot_state_for_gimbal_device.h"
  2394. #include "./mavlink_msg_gimbal_manager_set_pitchyaw.h"
  2395. #include "./mavlink_msg_gimbal_manager_set_manual_control.h"
  2396. #include "./mavlink_msg_esc_info.h"
  2397. #include "./mavlink_msg_esc_status.h"
  2398. #include "./mavlink_msg_wifi_config_ap.h"
  2399. #include "./mavlink_msg_ais_vessel.h"
  2400. #include "./mavlink_msg_uavcan_node_status.h"
  2401. #include "./mavlink_msg_uavcan_node_info.h"
  2402. #include "./mavlink_msg_param_ext_request_read.h"
  2403. #include "./mavlink_msg_param_ext_request_list.h"
  2404. #include "./mavlink_msg_param_ext_value.h"
  2405. #include "./mavlink_msg_param_ext_set.h"
  2406. #include "./mavlink_msg_param_ext_ack.h"
  2407. #include "./mavlink_msg_obstacle_distance.h"
  2408. #include "./mavlink_msg_odometry.h"
  2409. #include "./mavlink_msg_trajectory_representation_waypoints.h"
  2410. #include "./mavlink_msg_trajectory_representation_bezier.h"
  2411. #include "./mavlink_msg_cellular_status.h"
  2412. #include "./mavlink_msg_isbd_link_status.h"
  2413. #include "./mavlink_msg_cellular_config.h"
  2414. #include "./mavlink_msg_raw_rpm.h"
  2415. #include "./mavlink_msg_utm_global_position.h"
  2416. #include "./mavlink_msg_debug_float_array.h"
  2417. #include "./mavlink_msg_orbit_execution_status.h"
  2418. #include "./mavlink_msg_battery_info.h"
  2419. #include "./mavlink_msg_generator_status.h"
  2420. #include "./mavlink_msg_actuator_output_status.h"
  2421. #include "./mavlink_msg_time_estimate_to_target.h"
  2422. #include "./mavlink_msg_tunnel.h"
  2423. #include "./mavlink_msg_can_frame.h"
  2424. #include "./mavlink_msg_onboard_computer_status.h"
  2425. #include "./mavlink_msg_component_information.h"
  2426. #include "./mavlink_msg_component_metadata.h"
  2427. #include "./mavlink_msg_play_tune_v2.h"
  2428. #include "./mavlink_msg_supported_tunes.h"
  2429. #include "./mavlink_msg_event.h"
  2430. #include "./mavlink_msg_current_event_sequence.h"
  2431. #include "./mavlink_msg_request_event.h"
  2432. #include "./mavlink_msg_response_event_error.h"
  2433. #include "./mavlink_msg_canfd_frame.h"
  2434. #include "./mavlink_msg_can_filter_modify.h"
  2435. #include "./mavlink_msg_wheel_distance.h"
  2436. #include "./mavlink_msg_winch_status.h"
  2437. #include "./mavlink_msg_open_drone_id_basic_id.h"
  2438. #include "./mavlink_msg_open_drone_id_location.h"
  2439. #include "./mavlink_msg_open_drone_id_authentication.h"
  2440. #include "./mavlink_msg_open_drone_id_self_id.h"
  2441. #include "./mavlink_msg_open_drone_id_system.h"
  2442. #include "./mavlink_msg_open_drone_id_operator_id.h"
  2443. #include "./mavlink_msg_open_drone_id_message_pack.h"
  2444. #include "./mavlink_msg_open_drone_id_arm_status.h"
  2445. #include "./mavlink_msg_open_drone_id_system_update.h"
  2446. #include "./mavlink_msg_hygrometer_sensor.h"
  2447. // base include
  2448. #include "../standard/standard.h"
  2449. #if MAVLINK_COMMON_XML_HASH == MAVLINK_PRIMARY_XML_HASH
  2450. # define MAVLINK_MESSAGE_INFO {MAVLINK_MESSAGE_INFO_HEARTBEAT, MAVLINK_MESSAGE_INFO_SYS_STATUS, MAVLINK_MESSAGE_INFO_SYSTEM_TIME, MAVLINK_MESSAGE_INFO_PING, MAVLINK_MESSAGE_INFO_CHANGE_OPERATOR_CONTROL, MAVLINK_MESSAGE_INFO_CHANGE_OPERATOR_CONTROL_ACK, MAVLINK_MESSAGE_INFO_AUTH_KEY, MAVLINK_MESSAGE_INFO_LINK_NODE_STATUS, MAVLINK_MESSAGE_INFO_SET_MODE, MAVLINK_MESSAGE_INFO_PARAM_REQUEST_READ, MAVLINK_MESSAGE_INFO_PARAM_REQUEST_LIST, MAVLINK_MESSAGE_INFO_PARAM_VALUE, MAVLINK_MESSAGE_INFO_PARAM_SET, MAVLINK_MESSAGE_INFO_GPS_RAW_INT, MAVLINK_MESSAGE_INFO_GPS_STATUS, MAVLINK_MESSAGE_INFO_SCALED_IMU, MAVLINK_MESSAGE_INFO_RAW_IMU, MAVLINK_MESSAGE_INFO_RAW_PRESSURE, MAVLINK_MESSAGE_INFO_SCALED_PRESSURE, MAVLINK_MESSAGE_INFO_ATTITUDE, MAVLINK_MESSAGE_INFO_ATTITUDE_QUATERNION, MAVLINK_MESSAGE_INFO_LOCAL_POSITION_NED, MAVLINK_MESSAGE_INFO_GLOBAL_POSITION_INT, MAVLINK_MESSAGE_INFO_RC_CHANNELS_SCALED, MAVLINK_MESSAGE_INFO_RC_CHANNELS_RAW, MAVLINK_MESSAGE_INFO_SERVO_OUTPUT_RAW, MAVLINK_MESSAGE_INFO_MISSION_REQUEST_PARTIAL_LIST, MAVLINK_MESSAGE_INFO_MISSION_WRITE_PARTIAL_LIST, MAVLINK_MESSAGE_INFO_MISSION_ITEM, MAVLINK_MESSAGE_INFO_MISSION_REQUEST, MAVLINK_MESSAGE_INFO_MISSION_SET_CURRENT, MAVLINK_MESSAGE_INFO_MISSION_CURRENT, MAVLINK_MESSAGE_INFO_MISSION_REQUEST_LIST, MAVLINK_MESSAGE_INFO_MISSION_COUNT, MAVLINK_MESSAGE_INFO_MISSION_CLEAR_ALL, MAVLINK_MESSAGE_INFO_MISSION_ITEM_REACHED, MAVLINK_MESSAGE_INFO_MISSION_ACK, MAVLINK_MESSAGE_INFO_SET_GPS_GLOBAL_ORIGIN, MAVLINK_MESSAGE_INFO_GPS_GLOBAL_ORIGIN, MAVLINK_MESSAGE_INFO_PARAM_MAP_RC, MAVLINK_MESSAGE_INFO_MISSION_REQUEST_INT, MAVLINK_MESSAGE_INFO_SAFETY_SET_ALLOWED_AREA, MAVLINK_MESSAGE_INFO_SAFETY_ALLOWED_AREA, MAVLINK_MESSAGE_INFO_ATTITUDE_QUATERNION_COV, MAVLINK_MESSAGE_INFO_NAV_CONTROLLER_OUTPUT, MAVLINK_MESSAGE_INFO_GLOBAL_POSITION_INT_COV, MAVLINK_MESSAGE_INFO_LOCAL_POSITION_NED_COV, MAVLINK_MESSAGE_INFO_RC_CHANNELS, MAVLINK_MESSAGE_INFO_REQUEST_DATA_STREAM, MAVLINK_MESSAGE_INFO_DATA_STREAM, MAVLINK_MESSAGE_INFO_MANUAL_CONTROL, MAVLINK_MESSAGE_INFO_RC_CHANNELS_OVERRIDE, MAVLINK_MESSAGE_INFO_MISSION_ITEM_INT, MAVLINK_MESSAGE_INFO_VFR_HUD, MAVLINK_MESSAGE_INFO_COMMAND_INT, MAVLINK_MESSAGE_INFO_COMMAND_LONG, MAVLINK_MESSAGE_INFO_COMMAND_ACK, MAVLINK_MESSAGE_INFO_COMMAND_CANCEL, MAVLINK_MESSAGE_INFO_MANUAL_SETPOINT, MAVLINK_MESSAGE_INFO_SET_ATTITUDE_TARGET, MAVLINK_MESSAGE_INFO_ATTITUDE_TARGET, MAVLINK_MESSAGE_INFO_SET_POSITION_TARGET_LOCAL_NED, MAVLINK_MESSAGE_INFO_POSITION_TARGET_LOCAL_NED, MAVLINK_MESSAGE_INFO_SET_POSITION_TARGET_GLOBAL_INT, MAVLINK_MESSAGE_INFO_POSITION_TARGET_GLOBAL_INT, MAVLINK_MESSAGE_INFO_LOCAL_POSITION_NED_SYSTEM_GLOBAL_OFFSET, MAVLINK_MESSAGE_INFO_HIL_STATE, MAVLINK_MESSAGE_INFO_HIL_CONTROLS, MAVLINK_MESSAGE_INFO_HIL_RC_INPUTS_RAW, MAVLINK_MESSAGE_INFO_HIL_ACTUATOR_CONTROLS, MAVLINK_MESSAGE_INFO_OPTICAL_FLOW, MAVLINK_MESSAGE_INFO_GLOBAL_VISION_POSITION_ESTIMATE, MAVLINK_MESSAGE_INFO_VISION_POSITION_ESTIMATE, MAVLINK_MESSAGE_INFO_VISION_SPEED_ESTIMATE, MAVLINK_MESSAGE_INFO_VICON_POSITION_ESTIMATE, MAVLINK_MESSAGE_INFO_HIGHRES_IMU, MAVLINK_MESSAGE_INFO_OPTICAL_FLOW_RAD, MAVLINK_MESSAGE_INFO_HIL_SENSOR, MAVLINK_MESSAGE_INFO_SIM_STATE, MAVLINK_MESSAGE_INFO_RADIO_STATUS, MAVLINK_MESSAGE_INFO_FILE_TRANSFER_PROTOCOL, MAVLINK_MESSAGE_INFO_TIMESYNC, MAVLINK_MESSAGE_INFO_CAMERA_TRIGGER, MAVLINK_MESSAGE_INFO_HIL_GPS, MAVLINK_MESSAGE_INFO_HIL_OPTICAL_FLOW, MAVLINK_MESSAGE_INFO_HIL_STATE_QUATERNION, MAVLINK_MESSAGE_INFO_SCALED_IMU2, MAVLINK_MESSAGE_INFO_LOG_REQUEST_LIST, MAVLINK_MESSAGE_INFO_LOG_ENTRY, MAVLINK_MESSAGE_INFO_LOG_REQUEST_DATA, MAVLINK_MESSAGE_INFO_LOG_DATA, MAVLINK_MESSAGE_INFO_LOG_ERASE, MAVLINK_MESSAGE_INFO_LOG_REQUEST_END, MAVLINK_MESSAGE_INFO_GPS_INJECT_DATA, MAVLINK_MESSAGE_INFO_GPS2_RAW, MAVLINK_MESSAGE_INFO_POWER_STATUS, MAVLINK_MESSAGE_INFO_SERIAL_CONTROL, MAVLINK_MESSAGE_INFO_GPS_RTK, MAVLINK_MESSAGE_INFO_GPS2_RTK, MAVLINK_MESSAGE_INFO_SCALED_IMU3, MAVLINK_MESSAGE_INFO_DATA_TRANSMISSION_HANDSHAKE, MAVLINK_MESSAGE_INFO_ENCAPSULATED_DATA, MAVLINK_MESSAGE_INFO_DISTANCE_SENSOR, MAVLINK_MESSAGE_INFO_TERRAIN_REQUEST, MAVLINK_MESSAGE_INFO_TERRAIN_DATA, MAVLINK_MESSAGE_INFO_TERRAIN_CHECK, MAVLINK_MESSAGE_INFO_TERRAIN_REPORT, MAVLINK_MESSAGE_INFO_SCALED_PRESSURE2, MAVLINK_MESSAGE_INFO_ATT_POS_MOCAP, MAVLINK_MESSAGE_INFO_SET_ACTUATOR_CONTROL_TARGET, MAVLINK_MESSAGE_INFO_ACTUATOR_CONTROL_TARGET, MAVLINK_MESSAGE_INFO_ALTITUDE, MAVLINK_MESSAGE_INFO_RESOURCE_REQUEST, MAVLINK_MESSAGE_INFO_SCALED_PRESSURE3, MAVLINK_MESSAGE_INFO_FOLLOW_TARGET, MAVLINK_MESSAGE_INFO_CONTROL_SYSTEM_STATE, MAVLINK_MESSAGE_INFO_BATTERY_STATUS, MAVLINK_MESSAGE_INFO_AUTOPILOT_VERSION, MAVLINK_MESSAGE_INFO_LANDING_TARGET, MAVLINK_MESSAGE_INFO_FENCE_STATUS, MAVLINK_MESSAGE_INFO_MAG_CAL_REPORT, MAVLINK_MESSAGE_INFO_EFI_STATUS, MAVLINK_MESSAGE_INFO_ESTIMATOR_STATUS, MAVLINK_MESSAGE_INFO_WIND_COV, MAVLINK_MESSAGE_INFO_GPS_INPUT, MAVLINK_MESSAGE_INFO_GPS_RTCM_DATA, MAVLINK_MESSAGE_INFO_HIGH_LATENCY, MAVLINK_MESSAGE_INFO_HIGH_LATENCY2, MAVLINK_MESSAGE_INFO_VIBRATION, MAVLINK_MESSAGE_INFO_HOME_POSITION, MAVLINK_MESSAGE_INFO_SET_HOME_POSITION, MAVLINK_MESSAGE_INFO_MESSAGE_INTERVAL, MAVLINK_MESSAGE_INFO_EXTENDED_SYS_STATE, MAVLINK_MESSAGE_INFO_ADSB_VEHICLE, MAVLINK_MESSAGE_INFO_COLLISION, MAVLINK_MESSAGE_INFO_V2_EXTENSION, MAVLINK_MESSAGE_INFO_MEMORY_VECT, MAVLINK_MESSAGE_INFO_DEBUG_VECT, MAVLINK_MESSAGE_INFO_NAMED_VALUE_FLOAT, MAVLINK_MESSAGE_INFO_NAMED_VALUE_INT, MAVLINK_MESSAGE_INFO_STATUSTEXT, MAVLINK_MESSAGE_INFO_DEBUG, MAVLINK_MESSAGE_INFO_SETUP_SIGNING, MAVLINK_MESSAGE_INFO_BUTTON_CHANGE, MAVLINK_MESSAGE_INFO_PLAY_TUNE, MAVLINK_MESSAGE_INFO_CAMERA_INFORMATION, MAVLINK_MESSAGE_INFO_CAMERA_SETTINGS, MAVLINK_MESSAGE_INFO_STORAGE_INFORMATION, MAVLINK_MESSAGE_INFO_CAMERA_CAPTURE_STATUS, MAVLINK_MESSAGE_INFO_CAMERA_IMAGE_CAPTURED, MAVLINK_MESSAGE_INFO_FLIGHT_INFORMATION, MAVLINK_MESSAGE_INFO_MOUNT_ORIENTATION, MAVLINK_MESSAGE_INFO_LOGGING_DATA, MAVLINK_MESSAGE_INFO_LOGGING_DATA_ACKED, MAVLINK_MESSAGE_INFO_LOGGING_ACK, MAVLINK_MESSAGE_INFO_VIDEO_STREAM_INFORMATION, MAVLINK_MESSAGE_INFO_VIDEO_STREAM_STATUS, MAVLINK_MESSAGE_INFO_CAMERA_FOV_STATUS, MAVLINK_MESSAGE_INFO_CAMERA_TRACKING_IMAGE_STATUS, MAVLINK_MESSAGE_INFO_CAMERA_TRACKING_GEO_STATUS, MAVLINK_MESSAGE_INFO_GIMBAL_MANAGER_INFORMATION, MAVLINK_MESSAGE_INFO_GIMBAL_MANAGER_STATUS, MAVLINK_MESSAGE_INFO_GIMBAL_MANAGER_SET_ATTITUDE, MAVLINK_MESSAGE_INFO_GIMBAL_DEVICE_INFORMATION, MAVLINK_MESSAGE_INFO_GIMBAL_DEVICE_SET_ATTITUDE, MAVLINK_MESSAGE_INFO_GIMBAL_DEVICE_ATTITUDE_STATUS, MAVLINK_MESSAGE_INFO_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE, MAVLINK_MESSAGE_INFO_GIMBAL_MANAGER_SET_PITCHYAW, MAVLINK_MESSAGE_INFO_GIMBAL_MANAGER_SET_MANUAL_CONTROL, MAVLINK_MESSAGE_INFO_ESC_INFO, MAVLINK_MESSAGE_INFO_ESC_STATUS, MAVLINK_MESSAGE_INFO_WIFI_CONFIG_AP, MAVLINK_MESSAGE_INFO_PROTOCOL_VERSION, MAVLINK_MESSAGE_INFO_AIS_VESSEL, MAVLINK_MESSAGE_INFO_UAVCAN_NODE_STATUS, MAVLINK_MESSAGE_INFO_UAVCAN_NODE_INFO, MAVLINK_MESSAGE_INFO_PARAM_EXT_REQUEST_READ, MAVLINK_MESSAGE_INFO_PARAM_EXT_REQUEST_LIST, MAVLINK_MESSAGE_INFO_PARAM_EXT_VALUE, MAVLINK_MESSAGE_INFO_PARAM_EXT_SET, MAVLINK_MESSAGE_INFO_PARAM_EXT_ACK, MAVLINK_MESSAGE_INFO_OBSTACLE_DISTANCE, MAVLINK_MESSAGE_INFO_ODOMETRY, MAVLINK_MESSAGE_INFO_TRAJECTORY_REPRESENTATION_WAYPOINTS, MAVLINK_MESSAGE_INFO_TRAJECTORY_REPRESENTATION_BEZIER, MAVLINK_MESSAGE_INFO_CELLULAR_STATUS, MAVLINK_MESSAGE_INFO_ISBD_LINK_STATUS, MAVLINK_MESSAGE_INFO_CELLULAR_CONFIG, MAVLINK_MESSAGE_INFO_RAW_RPM, MAVLINK_MESSAGE_INFO_UTM_GLOBAL_POSITION, MAVLINK_MESSAGE_INFO_DEBUG_FLOAT_ARRAY, MAVLINK_MESSAGE_INFO_ORBIT_EXECUTION_STATUS, MAVLINK_MESSAGE_INFO_BATTERY_INFO, MAVLINK_MESSAGE_INFO_GENERATOR_STATUS, MAVLINK_MESSAGE_INFO_ACTUATOR_OUTPUT_STATUS, MAVLINK_MESSAGE_INFO_TIME_ESTIMATE_TO_TARGET, MAVLINK_MESSAGE_INFO_TUNNEL, MAVLINK_MESSAGE_INFO_CAN_FRAME, MAVLINK_MESSAGE_INFO_CANFD_FRAME, MAVLINK_MESSAGE_INFO_CAN_FILTER_MODIFY, MAVLINK_MESSAGE_INFO_ONBOARD_COMPUTER_STATUS, MAVLINK_MESSAGE_INFO_COMPONENT_INFORMATION, MAVLINK_MESSAGE_INFO_COMPONENT_METADATA, MAVLINK_MESSAGE_INFO_PLAY_TUNE_V2, MAVLINK_MESSAGE_INFO_SUPPORTED_TUNES, MAVLINK_MESSAGE_INFO_EVENT, MAVLINK_MESSAGE_INFO_CURRENT_EVENT_SEQUENCE, MAVLINK_MESSAGE_INFO_REQUEST_EVENT, MAVLINK_MESSAGE_INFO_RESPONSE_EVENT_ERROR, MAVLINK_MESSAGE_INFO_WHEEL_DISTANCE, MAVLINK_MESSAGE_INFO_WINCH_STATUS, MAVLINK_MESSAGE_INFO_OPEN_DRONE_ID_BASIC_ID, MAVLINK_MESSAGE_INFO_OPEN_DRONE_ID_LOCATION, MAVLINK_MESSAGE_INFO_OPEN_DRONE_ID_AUTHENTICATION, MAVLINK_MESSAGE_INFO_OPEN_DRONE_ID_SELF_ID, MAVLINK_MESSAGE_INFO_OPEN_DRONE_ID_SYSTEM, MAVLINK_MESSAGE_INFO_OPEN_DRONE_ID_OPERATOR_ID, MAVLINK_MESSAGE_INFO_OPEN_DRONE_ID_MESSAGE_PACK, MAVLINK_MESSAGE_INFO_OPEN_DRONE_ID_ARM_STATUS, MAVLINK_MESSAGE_INFO_OPEN_DRONE_ID_SYSTEM_UPDATE, MAVLINK_MESSAGE_INFO_HYGROMETER_SENSOR}
  2451. # define MAVLINK_MESSAGE_NAMES {{ "ACTUATOR_CONTROL_TARGET", 140 }, { "ACTUATOR_OUTPUT_STATUS", 375 }, { "ADSB_VEHICLE", 246 }, { "AIS_VESSEL", 301 }, { "ALTITUDE", 141 }, { "ATTITUDE", 30 }, { "ATTITUDE_QUATERNION", 31 }, { "ATTITUDE_QUATERNION_COV", 61 }, { "ATTITUDE_TARGET", 83 }, { "ATT_POS_MOCAP", 138 }, { "AUTH_KEY", 7 }, { "AUTOPILOT_STATE_FOR_GIMBAL_DEVICE", 286 }, { "AUTOPILOT_VERSION", 148 }, { "BATTERY_INFO", 370 }, { "BATTERY_STATUS", 147 }, { "BUTTON_CHANGE", 257 }, { "CAMERA_CAPTURE_STATUS", 262 }, { "CAMERA_FOV_STATUS", 271 }, { "CAMERA_IMAGE_CAPTURED", 263 }, { "CAMERA_INFORMATION", 259 }, { "CAMERA_SETTINGS", 260 }, { "CAMERA_TRACKING_GEO_STATUS", 276 }, { "CAMERA_TRACKING_IMAGE_STATUS", 275 }, { "CAMERA_TRIGGER", 112 }, { "CANFD_FRAME", 387 }, { "CAN_FILTER_MODIFY", 388 }, { "CAN_FRAME", 386 }, { "CELLULAR_CONFIG", 336 }, { "CELLULAR_STATUS", 334 }, { "CHANGE_OPERATOR_CONTROL", 5 }, { "CHANGE_OPERATOR_CONTROL_ACK", 6 }, { "COLLISION", 247 }, { "COMMAND_ACK", 77 }, { "COMMAND_CANCEL", 80 }, { "COMMAND_INT", 75 }, { "COMMAND_LONG", 76 }, { "COMPONENT_INFORMATION", 395 }, { "COMPONENT_METADATA", 397 }, { "CONTROL_SYSTEM_STATE", 146 }, { "CURRENT_EVENT_SEQUENCE", 411 }, { "DATA_STREAM", 67 }, { "DATA_TRANSMISSION_HANDSHAKE", 130 }, { "DEBUG", 254 }, { "DEBUG_FLOAT_ARRAY", 350 }, { "DEBUG_VECT", 250 }, { "DISTANCE_SENSOR", 132 }, { "EFI_STATUS", 225 }, { "ENCAPSULATED_DATA", 131 }, { "ESC_INFO", 290 }, { "ESC_STATUS", 291 }, { "ESTIMATOR_STATUS", 230 }, { "EVENT", 410 }, { "EXTENDED_SYS_STATE", 245 }, { "FENCE_STATUS", 162 }, { "FILE_TRANSFER_PROTOCOL", 110 }, { "FLIGHT_INFORMATION", 264 }, { "FOLLOW_TARGET", 144 }, { "GENERATOR_STATUS", 373 }, { "GIMBAL_DEVICE_ATTITUDE_STATUS", 285 }, { "GIMBAL_DEVICE_INFORMATION", 283 }, { "GIMBAL_DEVICE_SET_ATTITUDE", 284 }, { "GIMBAL_MANAGER_INFORMATION", 280 }, { "GIMBAL_MANAGER_SET_ATTITUDE", 282 }, { "GIMBAL_MANAGER_SET_MANUAL_CONTROL", 288 }, { "GIMBAL_MANAGER_SET_PITCHYAW", 287 }, { "GIMBAL_MANAGER_STATUS", 281 }, { "GLOBAL_POSITION_INT", 33 }, { "GLOBAL_POSITION_INT_COV", 63 }, { "GLOBAL_VISION_POSITION_ESTIMATE", 101 }, { "GPS2_RAW", 124 }, { "GPS2_RTK", 128 }, { "GPS_GLOBAL_ORIGIN", 49 }, { "GPS_INJECT_DATA", 123 }, { "GPS_INPUT", 232 }, { "GPS_RAW_INT", 24 }, { "GPS_RTCM_DATA", 233 }, { "GPS_RTK", 127 }, { "GPS_STATUS", 25 }, { "HEARTBEAT", 0 }, { "HIGHRES_IMU", 105 }, { "HIGH_LATENCY", 234 }, { "HIGH_LATENCY2", 235 }, { "HIL_ACTUATOR_CONTROLS", 93 }, { "HIL_CONTROLS", 91 }, { "HIL_GPS", 113 }, { "HIL_OPTICAL_FLOW", 114 }, { "HIL_RC_INPUTS_RAW", 92 }, { "HIL_SENSOR", 107 }, { "HIL_STATE", 90 }, { "HIL_STATE_QUATERNION", 115 }, { "HOME_POSITION", 242 }, { "HYGROMETER_SENSOR", 12920 }, { "ISBD_LINK_STATUS", 335 }, { "LANDING_TARGET", 149 }, { "LINK_NODE_STATUS", 8 }, { "LOCAL_POSITION_NED", 32 }, { "LOCAL_POSITION_NED_COV", 64 }, { "LOCAL_POSITION_NED_SYSTEM_GLOBAL_OFFSET", 89 }, { "LOGGING_ACK", 268 }, { "LOGGING_DATA", 266 }, { "LOGGING_DATA_ACKED", 267 }, { "LOG_DATA", 120 }, { "LOG_ENTRY", 118 }, { "LOG_ERASE", 121 }, { "LOG_REQUEST_DATA", 119 }, { "LOG_REQUEST_END", 122 }, { "LOG_REQUEST_LIST", 117 }, { "MAG_CAL_REPORT", 192 }, { "MANUAL_CONTROL", 69 }, { "MANUAL_SETPOINT", 81 }, { "MEMORY_VECT", 249 }, { "MESSAGE_INTERVAL", 244 }, { "MISSION_ACK", 47 }, { "MISSION_CLEAR_ALL", 45 }, { "MISSION_COUNT", 44 }, { "MISSION_CURRENT", 42 }, { "MISSION_ITEM", 39 }, { "MISSION_ITEM_INT", 73 }, { "MISSION_ITEM_REACHED", 46 }, { "MISSION_REQUEST", 40 }, { "MISSION_REQUEST_INT", 51 }, { "MISSION_REQUEST_LIST", 43 }, { "MISSION_REQUEST_PARTIAL_LIST", 37 }, { "MISSION_SET_CURRENT", 41 }, { "MISSION_WRITE_PARTIAL_LIST", 38 }, { "MOUNT_ORIENTATION", 265 }, { "NAMED_VALUE_FLOAT", 251 }, { "NAMED_VALUE_INT", 252 }, { "NAV_CONTROLLER_OUTPUT", 62 }, { "OBSTACLE_DISTANCE", 330 }, { "ODOMETRY", 331 }, { "ONBOARD_COMPUTER_STATUS", 390 }, { "OPEN_DRONE_ID_ARM_STATUS", 12918 }, { "OPEN_DRONE_ID_AUTHENTICATION", 12902 }, { "OPEN_DRONE_ID_BASIC_ID", 12900 }, { "OPEN_DRONE_ID_LOCATION", 12901 }, { "OPEN_DRONE_ID_MESSAGE_PACK", 12915 }, { "OPEN_DRONE_ID_OPERATOR_ID", 12905 }, { "OPEN_DRONE_ID_SELF_ID", 12903 }, { "OPEN_DRONE_ID_SYSTEM", 12904 }, { "OPEN_DRONE_ID_SYSTEM_UPDATE", 12919 }, { "OPTICAL_FLOW", 100 }, { "OPTICAL_FLOW_RAD", 106 }, { "ORBIT_EXECUTION_STATUS", 360 }, { "PARAM_EXT_ACK", 324 }, { "PARAM_EXT_REQUEST_LIST", 321 }, { "PARAM_EXT_REQUEST_READ", 320 }, { "PARAM_EXT_SET", 323 }, { "PARAM_EXT_VALUE", 322 }, { "PARAM_MAP_RC", 50 }, { "PARAM_REQUEST_LIST", 21 }, { "PARAM_REQUEST_READ", 20 }, { "PARAM_SET", 23 }, { "PARAM_VALUE", 22 }, { "PING", 4 }, { "PLAY_TUNE", 258 }, { "PLAY_TUNE_V2", 400 }, { "POSITION_TARGET_GLOBAL_INT", 87 }, { "POSITION_TARGET_LOCAL_NED", 85 }, { "POWER_STATUS", 125 }, { "PROTOCOL_VERSION", 300 }, { "RADIO_STATUS", 109 }, { "RAW_IMU", 27 }, { "RAW_PRESSURE", 28 }, { "RAW_RPM", 339 }, { "RC_CHANNELS", 65 }, { "RC_CHANNELS_OVERRIDE", 70 }, { "RC_CHANNELS_RAW", 35 }, { "RC_CHANNELS_SCALED", 34 }, { "REQUEST_DATA_STREAM", 66 }, { "REQUEST_EVENT", 412 }, { "RESOURCE_REQUEST", 142 }, { "RESPONSE_EVENT_ERROR", 413 }, { "SAFETY_ALLOWED_AREA", 55 }, { "SAFETY_SET_ALLOWED_AREA", 54 }, { "SCALED_IMU", 26 }, { "SCALED_IMU2", 116 }, { "SCALED_IMU3", 129 }, { "SCALED_PRESSURE", 29 }, { "SCALED_PRESSURE2", 137 }, { "SCALED_PRESSURE3", 143 }, { "SERIAL_CONTROL", 126 }, { "SERVO_OUTPUT_RAW", 36 }, { "SETUP_SIGNING", 256 }, { "SET_ACTUATOR_CONTROL_TARGET", 139 }, { "SET_ATTITUDE_TARGET", 82 }, { "SET_GPS_GLOBAL_ORIGIN", 48 }, { "SET_HOME_POSITION", 243 }, { "SET_MODE", 11 }, { "SET_POSITION_TARGET_GLOBAL_INT", 86 }, { "SET_POSITION_TARGET_LOCAL_NED", 84 }, { "SIM_STATE", 108 }, { "STATUSTEXT", 253 }, { "STORAGE_INFORMATION", 261 }, { "SUPPORTED_TUNES", 401 }, { "SYSTEM_TIME", 2 }, { "SYS_STATUS", 1 }, { "TERRAIN_CHECK", 135 }, { "TERRAIN_DATA", 134 }, { "TERRAIN_REPORT", 136 }, { "TERRAIN_REQUEST", 133 }, { "TIMESYNC", 111 }, { "TIME_ESTIMATE_TO_TARGET", 380 }, { "TRAJECTORY_REPRESENTATION_BEZIER", 333 }, { "TRAJECTORY_REPRESENTATION_WAYPOINTS", 332 }, { "TUNNEL", 385 }, { "UAVCAN_NODE_INFO", 311 }, { "UAVCAN_NODE_STATUS", 310 }, { "UTM_GLOBAL_POSITION", 340 }, { "V2_EXTENSION", 248 }, { "VFR_HUD", 74 }, { "VIBRATION", 241 }, { "VICON_POSITION_ESTIMATE", 104 }, { "VIDEO_STREAM_INFORMATION", 269 }, { "VIDEO_STREAM_STATUS", 270 }, { "VISION_POSITION_ESTIMATE", 102 }, { "VISION_SPEED_ESTIMATE", 103 }, { "WHEEL_DISTANCE", 9000 }, { "WIFI_CONFIG_AP", 299 }, { "WINCH_STATUS", 9005 }, { "WIND_COV", 231 }}
  2452. # if MAVLINK_COMMAND_24BIT
  2453. # include "../mavlink_get_info.h"
  2454. # endif
  2455. #endif
  2456. #ifdef __cplusplus
  2457. }
  2458. #endif // __cplusplus
  2459. #endif // MAVLINK_COMMON_H