VKFly.py 2.0 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621
  1. """
  2. MAVLink protocol implementation (auto-generated by mavgen.py)
  3. Generated from: ('VKFly.xml,common.xml,standard.xml,minimal.xml',)
  4. Note: this file has been auto-generated. DO NOT EDIT
  5. """
  6. import hashlib
  7. import json
  8. import logging
  9. import os
  10. import struct
  11. import sys
  12. import time
  13. from builtins import object, range
  14. from typing import Any, Callable, Dict, Iterable, List, Mapping, Optional, Sequence, Tuple, Type, Union
  15. WIRE_PROTOCOL_VERSION = "2.0"
  16. DIALECT = "VKFly"
  17. PROTOCOL_MARKER_V1 = 0xFE
  18. PROTOCOL_MARKER_V2 = 0xFD
  19. HEADER_LEN_V1 = 6
  20. HEADER_LEN_V2 = 10
  21. MAVLINK_SIGNATURE_BLOCK_LEN = 13
  22. MAVLINK_IFLAG_SIGNED = 0x01
  23. logger = logging.getLogger(__name__)
  24. # allow MAV_IGNORE_CRC=1 to ignore CRC, allowing some
  25. # corrupted msgs to be seen
  26. MAVLINK_IGNORE_CRC = os.environ.get("MAV_IGNORE_CRC", 0)
  27. # some base types from mavlink_types.h
  28. MAVLINK_TYPE_CHAR = 0
  29. MAVLINK_TYPE_UINT8_T = 1
  30. MAVLINK_TYPE_INT8_T = 2
  31. MAVLINK_TYPE_UINT16_T = 3
  32. MAVLINK_TYPE_INT16_T = 4
  33. MAVLINK_TYPE_UINT32_T = 5
  34. MAVLINK_TYPE_INT32_T = 6
  35. MAVLINK_TYPE_UINT64_T = 7
  36. MAVLINK_TYPE_INT64_T = 8
  37. MAVLINK_TYPE_FLOAT = 9
  38. MAVLINK_TYPE_DOUBLE = 10
  39. # CRC calculation using fastcrc, falling back to a pure Python implementation
  40. # if fastcrc is not available
  41. try:
  42. import fastcrc
  43. mcrf4xx = fastcrc.crc16.mcrf4xx
  44. except Exception:
  45. mcrf4xx = None # type: ignore
  46. BytesLike = Union[List[int], Tuple[int], bytes, bytearray, str]
  47. class _x25crc_slow(object):
  48. """CRC-16/MCRF4XX - based on checksum.h from mavlink library"""
  49. crc: int
  50. def __init__(self, buf: Optional[BytesLike] = None):
  51. self.crc = 0xFFFF
  52. if buf is not None:
  53. self.accumulate(buf)
  54. def accumulate(self, buf: BytesLike) -> None:
  55. """add in some more bytes (it also accepts strings)"""
  56. if isinstance(buf, str):
  57. buf = buf.encode()
  58. accum = self.crc
  59. for b in buf:
  60. tmp = b ^ (accum & 0xFF)
  61. tmp = (tmp ^ (tmp << 4)) & 0xFF
  62. accum = (accum >> 8) ^ (tmp << 8) ^ (tmp << 3) ^ (tmp >> 4)
  63. self.crc = accum
  64. class _x25crc_fast(object):
  65. """CRC-16/MCRF4XX - based on checksum.h from mavlink library"""
  66. def __init__(self, buf: Optional[BytesLike] = None):
  67. self.crc = 0xFFFF
  68. if buf is not None:
  69. self.accumulate(buf)
  70. def accumulate(self, buf: BytesLike) -> None:
  71. """add in some more bytes (it also accepts strings)"""
  72. if isinstance(buf, str):
  73. buf_as_bytes = bytes(buf.encode())
  74. elif isinstance(buf, (list, tuple, bytearray)):
  75. buf_as_bytes = bytes(buf)
  76. else:
  77. buf_as_bytes = buf
  78. self.crc = mcrf4xx(buf_as_bytes, self.crc)
  79. x25crc = _x25crc_fast if mcrf4xx is not None else _x25crc_slow
  80. class MAVLink_header(object):
  81. """MAVLink message header"""
  82. def __init__(self, msgId: int, incompat_flags: int = 0, compat_flags: int = 0, mlen: int = 0, seq: int = 0, srcSystem: int = 0, srcComponent: int = 0) -> None:
  83. self.mlen = mlen
  84. self.seq = seq
  85. self.srcSystem = srcSystem
  86. self.srcComponent = srcComponent
  87. self.msgId = msgId
  88. self.incompat_flags = incompat_flags
  89. self.compat_flags = compat_flags
  90. def pack(self, force_mavlink1: bool = False) -> bytes:
  91. if float(WIRE_PROTOCOL_VERSION) == 2.0 and not force_mavlink1:
  92. return struct.pack(
  93. "<BBBBBBBHB",
  94. 253,
  95. self.mlen,
  96. self.incompat_flags,
  97. self.compat_flags,
  98. self.seq,
  99. self.srcSystem,
  100. self.srcComponent,
  101. self.msgId & 0xFFFF,
  102. self.msgId >> 16,
  103. )
  104. return struct.pack(
  105. "<BBBBBB",
  106. PROTOCOL_MARKER_V1,
  107. self.mlen,
  108. self.seq,
  109. self.srcSystem,
  110. self.srcComponent,
  111. self.msgId,
  112. )
  113. class MAVLink_message(object):
  114. """base MAVLink message class"""
  115. id = 0
  116. msgname = ""
  117. fieldnames: List[str] = []
  118. ordered_fieldnames: List[str] = []
  119. fieldtypes: List[str] = []
  120. fielddisplays_by_name: Dict[str, str] = {}
  121. fieldenums_by_name: Dict[str, str] = {}
  122. fieldunits_by_name: Dict[str, str] = {}
  123. native_format = bytearray(b"")
  124. orders: List[int] = []
  125. lengths: List[int] = []
  126. array_lengths: List[int] = []
  127. crc_extra = 0
  128. unpacker = struct.Struct("")
  129. instance_field: Optional[str] = None
  130. instance_offset = -1
  131. def __init__(self, msgId: int, name: str) -> None:
  132. self._header = MAVLink_header(msgId)
  133. self._payload: Optional[Union[bytes, bytearray]] = None
  134. self._msgbuf = bytearray(b"")
  135. self._crc: Optional[int] = None
  136. self._fieldnames: List[str] = []
  137. self._type = name
  138. self._signed = False
  139. self._link_id: Optional[int] = None
  140. self._instances: Optional[Dict[str, str]] = None
  141. self._instance_field: Optional[str] = None
  142. def format_attr(self, field: str) -> Union[str, float, int]:
  143. """override field getter"""
  144. raw_attr: Union[bytes, float, int] = getattr(self, field)
  145. if isinstance(raw_attr, bytes):
  146. return raw_attr.decode(errors="backslashreplace").rstrip("\x00")
  147. return raw_attr
  148. def get_msgbuf(self) -> bytearray:
  149. return self._msgbuf
  150. def get_header(self) -> MAVLink_header:
  151. return self._header
  152. def get_payload(self) -> Optional[Union[bytes, bytearray]]:
  153. return self._payload
  154. def get_crc(self) -> Optional[int]:
  155. return self._crc
  156. def get_fieldnames(self) -> List[str]:
  157. return self._fieldnames
  158. def get_type(self) -> str:
  159. return self._type
  160. def get_msgId(self) -> int:
  161. return self._header.msgId
  162. def get_srcSystem(self) -> int:
  163. return self._header.srcSystem
  164. def get_srcComponent(self) -> int:
  165. return self._header.srcComponent
  166. def get_seq(self) -> int:
  167. return self._header.seq
  168. def get_signed(self) -> bool:
  169. return self._signed
  170. def get_link_id(self) -> Optional[int]:
  171. return self._link_id
  172. def __str__(self) -> str:
  173. ret = "%s {" % self._type
  174. for a in self._fieldnames:
  175. v = self.format_attr(a)
  176. ret += "%s : %s, " % (a, v)
  177. ret = ret[0:-2] + "}"
  178. return ret
  179. def __ne__(self, other: object) -> bool:
  180. return not self.__eq__(other)
  181. def __eq__(self, other: object) -> bool:
  182. if other is None:
  183. return False
  184. if not isinstance(other, MAVLink_message):
  185. return False
  186. if self.get_type() != other.get_type():
  187. return False
  188. if self.get_crc() != other.get_crc():
  189. return False
  190. if self.get_seq() != other.get_seq():
  191. return False
  192. if self.get_srcSystem() != other.get_srcSystem():
  193. return False
  194. if self.get_srcComponent() != other.get_srcComponent():
  195. return False
  196. for a in self._fieldnames:
  197. if self.format_attr(a) != other.format_attr(a):
  198. return False
  199. return True
  200. def to_dict(self) -> Dict[str, Union[str, float, int]]:
  201. d: Dict[str, Union[str, float, int]] = {}
  202. d["mavpackettype"] = self._type
  203. for a in self._fieldnames:
  204. d[a] = self.format_attr(a)
  205. return d
  206. def to_json(self) -> str:
  207. return json.dumps(self.to_dict())
  208. def sign_packet(self, mav: "MAVLink") -> None:
  209. assert mav.signing.secret_key is not None
  210. h = hashlib.new("sha256")
  211. self._msgbuf += struct.pack("<BQ", mav.signing.link_id, mav.signing.timestamp)[:7]
  212. h.update(mav.signing.secret_key)
  213. h.update(self._msgbuf)
  214. sig = h.digest()[:6]
  215. self._msgbuf += sig
  216. mav.signing.timestamp += 1
  217. def _pack(self, mav: "MAVLink", crc_extra: int, payload: bytes, force_mavlink1: bool = False) -> bytes:
  218. plen = len(payload)
  219. if float(WIRE_PROTOCOL_VERSION) == 2.0 and not force_mavlink1:
  220. # in MAVLink2 we can strip trailing zeros off payloads. This allows for simple
  221. # variable length arrays and smaller packets
  222. nullbyte = 0
  223. while plen > 1 and payload[plen - 1] == nullbyte:
  224. plen -= 1
  225. self._payload = payload[:plen]
  226. incompat_flags = 0
  227. if mav.signing.sign_outgoing:
  228. incompat_flags |= MAVLINK_IFLAG_SIGNED
  229. self._header = MAVLink_header(
  230. self._header.msgId,
  231. incompat_flags=incompat_flags,
  232. compat_flags=0,
  233. mlen=len(self._payload),
  234. seq=mav.seq,
  235. srcSystem=mav.srcSystem,
  236. srcComponent=mav.srcComponent,
  237. )
  238. self._msgbuf = bytearray(self._header.pack(force_mavlink1=force_mavlink1))
  239. self._msgbuf += self._payload
  240. crc = x25crc(self._msgbuf[1:])
  241. # we are using CRC extra
  242. crc.accumulate(struct.pack("B", crc_extra))
  243. self._crc = crc.crc
  244. self._msgbuf += struct.pack("<H", self._crc)
  245. if mav.signing.sign_outgoing and not force_mavlink1:
  246. self.sign_packet(mav)
  247. return bytes(self._msgbuf)
  248. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  249. raise NotImplementedError("MAVLink_message cannot be serialized directly")
  250. def __getitem__(self, key: str) -> str:
  251. """support indexing, allowing for multi-instance sensors in one message"""
  252. if self._instances is None:
  253. raise IndexError()
  254. if key not in self._instances:
  255. raise IndexError()
  256. return self._instances[key]
  257. class mavlink_msg_deprecated_name_property(object):
  258. """
  259. This handles the class variable name change from name to msgname for
  260. subclasses of MAVLink_message during a transition period.
  261. This is used by setting the class variable to
  262. `mavlink_msg_deprecated_name_property()`.
  263. """
  264. def __get__(self, instance: Optional[MAVLink_message], owner: Type[MAVLink_message]) -> str:
  265. if instance is not None:
  266. logger.error("Using .name on a MAVLink_message is not supported, use .get_type() instead.")
  267. raise AttributeError("Class {} has no attribute 'name'".format(owner.__name__))
  268. logger.warning(
  269. """Using .name on a MAVLink_message class is deprecated, consider using .msgname instead.
  270. Note that if compatibility with pymavlink 2.4.30 and earlier is desired, use something like this:
  271. msg_name = msg.msgname if hasattr(msg, "msgname") else msg.name"""
  272. )
  273. return owner.msgname
  274. # enums
  275. class EnumEntry(object):
  276. def __init__(self, name: str, description: str) -> None:
  277. self.name = name
  278. self.description = description
  279. self.param: Dict[int, str] = {}
  280. self.label: Dict[int, str] = {}
  281. self.has_location = False
  282. class Enum(Dict[int, EnumEntry]):
  283. def __init__(self) -> None:
  284. self.bitmask = False
  285. enums: Dict[str, Enum] = {}
  286. # VKFLY_AP_TYPE
  287. enums["VKFLY_AP_TYPE"] = Enum()
  288. enums["VKFLY_AP_TYPE"].bitmask = False
  289. VKFLY_AP_TYPE_I4 = 41
  290. enums["VKFLY_AP_TYPE"][41] = EnumEntry("VKFLY_AP_TYPE_I4", """Quadrotor I4""")
  291. VKFLY_AP_TYPE_X4 = 42
  292. enums["VKFLY_AP_TYPE"][42] = EnumEntry("VKFLY_AP_TYPE_X4", """Quadrotor X4""")
  293. VKFLY_AP_TYPE_X4R = 43
  294. enums["VKFLY_AP_TYPE"][43] = EnumEntry("VKFLY_AP_TYPE_X4R", """Quadrotor X4 reverse""")
  295. VKFLY_AP_TYPE_I4R = 44
  296. enums["VKFLY_AP_TYPE"][44] = EnumEntry("VKFLY_AP_TYPE_I4R", """Quadrotor I4 reverse""")
  297. VKFLY_AP_TYPE_I6 = 61
  298. enums["VKFLY_AP_TYPE"][61] = EnumEntry("VKFLY_AP_TYPE_I6", """Hexarotor I6""")
  299. VKFLY_AP_TYPE_X6 = 62
  300. enums["VKFLY_AP_TYPE"][62] = EnumEntry("VKFLY_AP_TYPE_X6", """Hexarotor X6""")
  301. VKFLY_AP_TYPE_YI6D = 63
  302. enums["VKFLY_AP_TYPE"][63] = EnumEntry("VKFLY_AP_TYPE_YI6D", """Three axis hexarotor YI6D""")
  303. VKFLY_AP_TYPE_Y6D = 64
  304. enums["VKFLY_AP_TYPE"][64] = EnumEntry("VKFLY_AP_TYPE_Y6D", """Three axis hexarotor Y6D""")
  305. VKFLY_AP_TYPE_H6 = 65
  306. enums["VKFLY_AP_TYPE"][65] = EnumEntry("VKFLY_AP_TYPE_H6", """Hexarotor H6""")
  307. VKFLY_AP_TYPE_I6R = 66
  308. enums["VKFLY_AP_TYPE"][66] = EnumEntry("VKFLY_AP_TYPE_I6R", """Hexarotor I6 reverse""")
  309. VKFLY_AP_TYPE_X6R = 67
  310. enums["VKFLY_AP_TYPE"][67] = EnumEntry("VKFLY_AP_TYPE_X6R", """Hexarotor X6 reverse""")
  311. VKFLY_AP_TYPE_I8 = 81
  312. enums["VKFLY_AP_TYPE"][81] = EnumEntry("VKFLY_AP_TYPE_I8", """Octorotor I8""")
  313. VKFLY_AP_TYPE_X8 = 82
  314. enums["VKFLY_AP_TYPE"][82] = EnumEntry("VKFLY_AP_TYPE_X8", """Octorotor X8""")
  315. VKFLY_AP_TYPE_4X8M = 83
  316. enums["VKFLY_AP_TYPE"][83] = EnumEntry("VKFLY_AP_TYPE_4X8M", """Four axis octorotor, upper level X4, lower level reversed X4.""")
  317. VKFLY_AP_TYPE_4X8D = 84
  318. enums["VKFLY_AP_TYPE"][84] = EnumEntry("VKFLY_AP_TYPE_4X8D", """Four axis octorotor, upper level clockwise, lower level anticlockwise""")
  319. VKFLY_AP_TYPE_4X8MR = 85
  320. enums["VKFLY_AP_TYPE"][85] = EnumEntry("VKFLY_AP_TYPE_4X8MR", """Four axis octorotor, all rotors are opposite of 4X8M.""")
  321. VKFLY_AP_TYPE_4X8DR = 86
  322. enums["VKFLY_AP_TYPE"][86] = EnumEntry("VKFLY_AP_TYPE_4X8DR", """Four axis octorotor, all rotors are opposite of 4X8M.""")
  323. VKFLY_AP_TYPE_I8R = 87
  324. enums["VKFLY_AP_TYPE"][87] = EnumEntry("VKFLY_AP_TYPE_I8R", """Octorotor I8 reverse""")
  325. VKFLY_AP_TYPE_X8R = 88
  326. enums["VKFLY_AP_TYPE"][88] = EnumEntry("VKFLY_AP_TYPE_X8R", """Octorotor X8 reverse""")
  327. VKFLY_AP_TYPE_6I12 = 121
  328. enums["VKFLY_AP_TYPE"][121] = EnumEntry("VKFLY_AP_TYPE_6I12", """Six axis twelve rotor, upper level I6, lower lever opposite with I6.""")
  329. VKFLY_AP_TYPE_6X12 = 122
  330. enums["VKFLY_AP_TYPE"][122] = EnumEntry("VKFLY_AP_TYPE_6X12", """Six axis twelve rotor, upper level X6, lower lever opposite with X6.""")
  331. VKFLY_AP_TYPE_6H12 = 123
  332. enums["VKFLY_AP_TYPE"][123] = EnumEntry("VKFLY_AP_TYPE_6H12", """Six axis twelve rotor, upper level H6, lower lever opposite with H6.""")
  333. VKFLY_AP_TYPE_8I16 = 161
  334. enums["VKFLY_AP_TYPE"][161] = EnumEntry("VKFLY_AP_TYPE_8I16", """8 axis 16 rotor, upper level I8, lower lever opposite with I8""")
  335. VKFLY_AP_TYPE_8X16 = 162
  336. enums["VKFLY_AP_TYPE"][162] = EnumEntry("VKFLY_AP_TYPE_8X16", """8 axis 16 rotor, upper level X8, lower lever opposite with X8""")
  337. VKFLY_AP_TYPE_ENUM_END = 163
  338. enums["VKFLY_AP_TYPE"][163] = EnumEntry("VKFLY_AP_TYPE_ENUM_END", """""")
  339. # VKFLY_FIXEDWING_AP_TYPE
  340. enums["VKFLY_FIXEDWING_AP_TYPE"] = Enum()
  341. enums["VKFLY_FIXEDWING_AP_TYPE"].bitmask = False
  342. VKFLY_FIXEDWING_AP_TYPE_T_TAIL = 0
  343. enums["VKFLY_FIXEDWING_AP_TYPE"][0] = EnumEntry("VKFLY_FIXEDWING_AP_TYPE_T_TAIL", """""")
  344. VKFLY_FIXEDWING_AP_TYPE_V_TAIL = 1
  345. enums["VKFLY_FIXEDWING_AP_TYPE"][1] = EnumEntry("VKFLY_FIXEDWING_AP_TYPE_V_TAIL", """""")
  346. VKFLY_FIXEDWING_AP_TYPE_TRIANGLE = 2
  347. enums["VKFLY_FIXEDWING_AP_TYPE"][2] = EnumEntry("VKFLY_FIXEDWING_AP_TYPE_TRIANGLE", """""")
  348. VKFLY_FIXEDWING_AP_TYPE_TANDEM = 3
  349. enums["VKFLY_FIXEDWING_AP_TYPE"][3] = EnumEntry("VKFLY_FIXEDWING_AP_TYPE_TANDEM", """""")
  350. VKFLY_FIXEDWING_AP_TYPE_V_TAIL_REV = 4
  351. enums["VKFLY_FIXEDWING_AP_TYPE"][4] = EnumEntry("VKFLY_FIXEDWING_AP_TYPE_V_TAIL_REV", """""")
  352. VKFLY_FIXEDWING_AP_TYPE_CUSTOM1 = 5
  353. enums["VKFLY_FIXEDWING_AP_TYPE"][5] = EnumEntry("VKFLY_FIXEDWING_AP_TYPE_CUSTOM1", """""")
  354. VKFLY_FIXEDWING_AP_TYPE_CUSTOM2 = 6
  355. enums["VKFLY_FIXEDWING_AP_TYPE"][6] = EnumEntry("VKFLY_FIXEDWING_AP_TYPE_CUSTOM2", """""")
  356. VKFLY_FIXEDWING_AP_TYPE_CUSTOM3 = 7
  357. enums["VKFLY_FIXEDWING_AP_TYPE"][7] = EnumEntry("VKFLY_FIXEDWING_AP_TYPE_CUSTOM3", """""")
  358. VKFLY_FIXEDWING_AP_TYPE_ENUM_END = 8
  359. enums["VKFLY_FIXEDWING_AP_TYPE"][8] = EnumEntry("VKFLY_FIXEDWING_AP_TYPE_ENUM_END", """""")
  360. # VKFLY_USER_COMP_ID
  361. enums["VKFLY_USER_COMP_ID"] = Enum()
  362. enums["VKFLY_USER_COMP_ID"].bitmask = False
  363. VKFLY_COMP_ID_VKGPSA = 3
  364. enums["VKFLY_USER_COMP_ID"][3] = EnumEntry("VKFLY_COMP_ID_VKGPSA", """""")
  365. VKFLY_COMP_ID_VKGPSB = 4
  366. enums["VKFLY_USER_COMP_ID"][4] = EnumEntry("VKFLY_COMP_ID_VKGPSB", """""")
  367. VKFLY_COMP_ID_RFD_F = 5
  368. enums["VKFLY_USER_COMP_ID"][5] = EnumEntry("VKFLY_COMP_ID_RFD_F", """""")
  369. VKFLY_COMP_ID_RFD_B = 6
  370. enums["VKFLY_USER_COMP_ID"][6] = EnumEntry("VKFLY_COMP_ID_RFD_B", """""")
  371. VKFLY_COMP_ID_RFD_D = 7
  372. enums["VKFLY_USER_COMP_ID"][7] = EnumEntry("VKFLY_COMP_ID_RFD_D", """""")
  373. VKFLY_COMP_ID_RFD_360 = 8
  374. enums["VKFLY_USER_COMP_ID"][8] = EnumEntry("VKFLY_COMP_ID_RFD_360", """""")
  375. VKFLY_COMP_ID_RTK = 9
  376. enums["VKFLY_USER_COMP_ID"][9] = EnumEntry("VKFLY_COMP_ID_RTK", """""")
  377. VKFLY_COMP_ID_BAT0 = 10
  378. enums["VKFLY_USER_COMP_ID"][10] = EnumEntry("VKFLY_COMP_ID_BAT0", """""")
  379. VKFLY_COMP_ID_BAT1 = 11
  380. enums["VKFLY_USER_COMP_ID"][11] = EnumEntry("VKFLY_COMP_ID_BAT1", """""")
  381. VKFLY_COMP_ID_BAT2 = 12
  382. enums["VKFLY_USER_COMP_ID"][12] = EnumEntry("VKFLY_COMP_ID_BAT2", """""")
  383. VKFLY_COMP_ID_BAT3 = 13
  384. enums["VKFLY_USER_COMP_ID"][13] = EnumEntry("VKFLY_COMP_ID_BAT3", """""")
  385. VKFLY_COMP_ID_BAT4 = 14
  386. enums["VKFLY_USER_COMP_ID"][14] = EnumEntry("VKFLY_COMP_ID_BAT4", """""")
  387. VKFLY_COMP_ID_BAT5 = 15
  388. enums["VKFLY_USER_COMP_ID"][15] = EnumEntry("VKFLY_COMP_ID_BAT5", """""")
  389. VKFLY_COMP_ID_ECU0 = 16
  390. enums["VKFLY_USER_COMP_ID"][16] = EnumEntry("VKFLY_COMP_ID_ECU0", """""")
  391. VKFLY_COMP_ID_ECU1 = 17
  392. enums["VKFLY_USER_COMP_ID"][17] = EnumEntry("VKFLY_COMP_ID_ECU1", """""")
  393. VKFLY_COMP_ID_ECU2 = 18
  394. enums["VKFLY_USER_COMP_ID"][18] = EnumEntry("VKFLY_COMP_ID_ECU2", """""")
  395. VKFLY_COMP_ID_ECU3 = 19
  396. enums["VKFLY_USER_COMP_ID"][19] = EnumEntry("VKFLY_COMP_ID_ECU3", """""")
  397. VKFLY_COMP_ID_WEIGHER = 20
  398. enums["VKFLY_USER_COMP_ID"][20] = EnumEntry("VKFLY_COMP_ID_WEIGHER", """""")
  399. VKFLY_COMP_ID_PARACHUTE = 21
  400. enums["VKFLY_USER_COMP_ID"][21] = EnumEntry("VKFLY_COMP_ID_PARACHUTE", """""")
  401. VKFLY_COMP_ID_BAT6 = 22
  402. enums["VKFLY_USER_COMP_ID"][22] = EnumEntry("VKFLY_COMP_ID_BAT6", """""")
  403. VKFLY_COMP_ID_BAT7 = 23
  404. enums["VKFLY_USER_COMP_ID"][23] = EnumEntry("VKFLY_COMP_ID_BAT7", """""")
  405. VKFLY_COMP_ID_BAT8 = 24
  406. enums["VKFLY_USER_COMP_ID"][24] = EnumEntry("VKFLY_COMP_ID_BAT8", """""")
  407. VKFLY_COMP_ID_BAT9 = 25
  408. enums["VKFLY_USER_COMP_ID"][25] = EnumEntry("VKFLY_COMP_ID_BAT9", """""")
  409. VKFLY_COMP_ID_ASPD0 = 30
  410. enums["VKFLY_USER_COMP_ID"][30] = EnumEntry("VKFLY_COMP_ID_ASPD0", """""")
  411. VKFLY_COMP_ID_ASPD1 = 31
  412. enums["VKFLY_USER_COMP_ID"][31] = EnumEntry("VKFLY_COMP_ID_ASPD1", """""")
  413. VKFLY_COMP_ID_EV2FMUB = 32
  414. enums["VKFLY_USER_COMP_ID"][32] = EnumEntry("VKFLY_COMP_ID_EV2FMUB", """""")
  415. VKFLY_COMP_ID_RFD_L = 33
  416. enums["VKFLY_USER_COMP_ID"][33] = EnumEntry("VKFLY_COMP_ID_RFD_L", """""")
  417. VKFLY_COMP_ID_RFD_R = 34
  418. enums["VKFLY_USER_COMP_ID"][34] = EnumEntry("VKFLY_COMP_ID_RFD_R", """""")
  419. VKFLY_USER_COMP_ID_ENUM_END = 35
  420. enums["VKFLY_USER_COMP_ID"][35] = EnumEntry("VKFLY_USER_COMP_ID_ENUM_END", """""")
  421. # VKFLY_FS_ACTION
  422. enums["VKFLY_FS_ACTION"] = Enum()
  423. enums["VKFLY_FS_ACTION"].bitmask = False
  424. FAIL_SAFE_ACT_NONE = 0
  425. enums["VKFLY_FS_ACTION"][0] = EnumEntry("FAIL_SAFE_ACT_NONE", """Do nothing""")
  426. FAIL_SAFE_ACT_LOITER = 1
  427. enums["VKFLY_FS_ACTION"][1] = EnumEntry("FAIL_SAFE_ACT_LOITER", """Hold position for rotor wing. Loiter for fixedwing.""")
  428. FAIL_SAFE_ACT_RTL = 2
  429. enums["VKFLY_FS_ACTION"][2] = EnumEntry("FAIL_SAFE_ACT_RTL", """Return to lauch.""")
  430. FAIL_SAFE_ACT_RTR = 3
  431. enums["VKFLY_FS_ACTION"][3] = EnumEntry("FAIL_SAFE_ACT_RTR", """Go to the nearest rally point.""")
  432. FAIL_SAFE_ACT_LAND = 4
  433. enums["VKFLY_FS_ACTION"][4] = EnumEntry("FAIL_SAFE_ACT_LAND", """Landing in place.""")
  434. FAIL_SAFE_ACT_LOCK = 5
  435. enums["VKFLY_FS_ACTION"][5] = EnumEntry("FAIL_SAFE_ACT_LOCK", """Terminate servo output and disarm the drone.""")
  436. VKFLY_FS_ACTION_ENUM_END = 6
  437. enums["VKFLY_FS_ACTION"][6] = EnumEntry("VKFLY_FS_ACTION_ENUM_END", """""")
  438. # VKFLY_ROI_STATE
  439. enums["VKFLY_ROI_STATE"] = Enum()
  440. enums["VKFLY_ROI_STATE"].bitmask = True
  441. VKFLY_ROI_GIMBAL = 1
  442. enums["VKFLY_ROI_STATE"][1] = EnumEntry("VKFLY_ROI_GIMBAL", """Do nothing""")
  443. VKFLY_ROI_DRONE_HEAD = 2
  444. enums["VKFLY_ROI_STATE"][2] = EnumEntry("VKFLY_ROI_DRONE_HEAD", """Do nothing""")
  445. VKFLY_ROI_STATE_ENUM_END = 3
  446. enums["VKFLY_ROI_STATE"][3] = EnumEntry("VKFLY_ROI_STATE_ENUM_END", """""")
  447. # VKFLY_ARM_DENIED_REASON
  448. enums["VKFLY_ARM_DENIED_REASON"] = Enum()
  449. enums["VKFLY_ARM_DENIED_REASON"].bitmask = False
  450. VKFLY_ARM_DENIED_REASON_NONE = 0
  451. enums["VKFLY_ARM_DENIED_REASON"][0] = EnumEntry("VKFLY_ARM_DENIED_REASON_NONE", """""")
  452. VKFLY_ARM_DENIED_NO_INS = 1
  453. enums["VKFLY_ARM_DENIED_REASON"][1] = EnumEntry("VKFLY_ARM_DENIED_NO_INS", """""")
  454. VKFLY_ARM_DENIED_SPD_OVER_LIM = 2
  455. enums["VKFLY_ARM_DENIED_REASON"][2] = EnumEntry("VKFLY_ARM_DENIED_SPD_OVER_LIM", """""")
  456. VKFLY_ARM_DENIED_ACC_OVER_LIM = 3
  457. enums["VKFLY_ARM_DENIED_REASON"][3] = EnumEntry("VKFLY_ARM_DENIED_ACC_OVER_LIM", """""")
  458. VKFLY_ARM_DENIED_GYR_OVER_LIM = 4
  459. enums["VKFLY_ARM_DENIED_REASON"][4] = EnumEntry("VKFLY_ARM_DENIED_GYR_OVER_LIM", """""")
  460. VKFLY_ARM_DENIED_GPS_ERR = 5
  461. enums["VKFLY_ARM_DENIED_REASON"][5] = EnumEntry("VKFLY_ARM_DENIED_GPS_ERR", """""")
  462. VKFLY_ARM_DENIED_IMU_ERR = 6
  463. enums["VKFLY_ARM_DENIED_REASON"][6] = EnumEntry("VKFLY_ARM_DENIED_IMU_ERR", """""")
  464. VKFLY_ARM_DENIED_POS_NOT_FIXED = 7
  465. enums["VKFLY_ARM_DENIED_REASON"][7] = EnumEntry("VKFLY_ARM_DENIED_POS_NOT_FIXED", """""")
  466. VKFLY_ARM_DENIED_RTK_NOT_FIXED = 8
  467. enums["VKFLY_ARM_DENIED_REASON"][8] = EnumEntry("VKFLY_ARM_DENIED_RTK_NOT_FIXED", """""")
  468. VKFLY_ARM_DENIED_MAG_ERR = 9
  469. enums["VKFLY_ARM_DENIED_REASON"][9] = EnumEntry("VKFLY_ARM_DENIED_MAG_ERR", """""")
  470. VKFLY_ARM_DENIED_RESERVE = 10
  471. enums["VKFLY_ARM_DENIED_REASON"][10] = EnumEntry("VKFLY_ARM_DENIED_RESERVE", """""")
  472. VKFLY_ARM_DENIED_TEMP_OVER_LIM = 11
  473. enums["VKFLY_ARM_DENIED_REASON"][11] = EnumEntry("VKFLY_ARM_DENIED_TEMP_OVER_LIM", """""")
  474. VKFLY_ARM_DENIED_OUT_FENCE = 13
  475. enums["VKFLY_ARM_DENIED_REASON"][13] = EnumEntry("VKFLY_ARM_DENIED_OUT_FENCE", """""")
  476. VKFLY_ARM_DENIED_LOW_BAT_VOLT = 14
  477. enums["VKFLY_ARM_DENIED_REASON"][14] = EnumEntry("VKFLY_ARM_DENIED_LOW_BAT_VOLT", """""")
  478. VKFLY_ARM_DENIED_LOW_BAT_CAP = 15
  479. enums["VKFLY_ARM_DENIED_REASON"][15] = EnumEntry("VKFLY_ARM_DENIED_LOW_BAT_CAP", """""")
  480. VKFLY_ARM_DENIED_BAT_BMS_FAULT = 16
  481. enums["VKFLY_ARM_DENIED_REASON"][16] = EnumEntry("VKFLY_ARM_DENIED_BAT_BMS_FAULT", """""")
  482. VKFLY_ARM_DENIED_SERVO_FAULT = 17
  483. enums["VKFLY_ARM_DENIED_REASON"][17] = EnumEntry("VKFLY_ARM_DENIED_SERVO_FAULT", """""")
  484. VKFLY_ARM_DENIED_LEAN_ANG = 18
  485. enums["VKFLY_ARM_DENIED_REASON"][18] = EnumEntry("VKFLY_ARM_DENIED_LEAN_ANG", """""")
  486. VKFLY_ARM_DENIED_IN_CALIBRATION = 19
  487. enums["VKFLY_ARM_DENIED_REASON"][19] = EnumEntry("VKFLY_ARM_DENIED_IN_CALIBRATION", """""")
  488. VKFLY_ARM_DENIED_HYDRO_BMS_CHECK_ERR = 20
  489. enums["VKFLY_ARM_DENIED_REASON"][20] = EnumEntry("VKFLY_ARM_DENIED_HYDRO_BMS_CHECK_ERR", """""")
  490. VKFLY_ARM_DENIED_FUEL_LOW = 21
  491. enums["VKFLY_ARM_DENIED_REASON"][21] = EnumEntry("VKFLY_ARM_DENIED_FUEL_LOW", """""")
  492. VKFLY_ARM_DENIED_H2P_LOW = 22
  493. enums["VKFLY_ARM_DENIED_REASON"][22] = EnumEntry("VKFLY_ARM_DENIED_H2P_LOW", """""")
  494. VKFLY_ARM_DENIED_EXT_NAV_ERR = 23
  495. enums["VKFLY_ARM_DENIED_REASON"][23] = EnumEntry("VKFLY_ARM_DENIED_EXT_NAV_ERR", """""")
  496. VKFLY_ARM_DENIED_ESC_CHECK_ERR = 24
  497. enums["VKFLY_ARM_DENIED_REASON"][24] = EnumEntry("VKFLY_ARM_DENIED_ESC_CHECK_ERR", """""")
  498. VKFLY_ARM_DENIED_REMOTE_LOCK = 25
  499. enums["VKFLY_ARM_DENIED_REASON"][25] = EnumEntry("VKFLY_ARM_DENIED_REMOTE_LOCK", """""")
  500. VKFLY_ARM_DENIED_REASON_ENUM_END = 26
  501. enums["VKFLY_ARM_DENIED_REASON"][26] = EnumEntry("VKFLY_ARM_DENIED_REASON_ENUM_END", """""")
  502. # VKFLY_MAGCALIB_STAGE
  503. enums["VKFLY_MAGCALIB_STAGE"] = Enum()
  504. enums["VKFLY_MAGCALIB_STAGE"].bitmask = False
  505. VK_MAGCALIB_NONE = 0
  506. enums["VKFLY_MAGCALIB_STAGE"][0] = EnumEntry("VK_MAGCALIB_NONE", """Not in calibration.""")
  507. VK_MAGCALIB_XY = 1
  508. enums["VKFLY_MAGCALIB_STAGE"][1] = EnumEntry("VK_MAGCALIB_XY", """Calibrating X-Y level.""")
  509. VK_MAGCALIB_XZ = 2
  510. enums["VKFLY_MAGCALIB_STAGE"][2] = EnumEntry("VK_MAGCALIB_XZ", """Calibrating X-Z level.""")
  511. VK_MAGCALIB_DONE = 3
  512. enums["VKFLY_MAGCALIB_STAGE"][3] = EnumEntry("VK_MAGCALIB_DONE", """Calibrating successfully done.""")
  513. VK_MAGCALIB_FAIL = 4
  514. enums["VKFLY_MAGCALIB_STAGE"][4] = EnumEntry("VK_MAGCALIB_FAIL", """Calibrating failed.""")
  515. VKFLY_MAGCALIB_STAGE_ENUM_END = 5
  516. enums["VKFLY_MAGCALIB_STAGE"][5] = EnumEntry("VKFLY_MAGCALIB_STAGE_ENUM_END", """""")
  517. # VKFLY_SYS_STATUS_SENSOR_EXTEND
  518. enums["VKFLY_SYS_STATUS_SENSOR_EXTEND"] = Enum()
  519. enums["VKFLY_SYS_STATUS_SENSOR_EXTEND"].bitmask = True
  520. VKFLY_SYS_STATUS_SENSOR_GPS2 = 4
  521. enums["VKFLY_SYS_STATUS_SENSOR_EXTEND"][4] = EnumEntry("VKFLY_SYS_STATUS_SENSOR_GPS2", """GPS2""")
  522. VKFLY_SYS_STATUS_SENSOR_RTK_GPS = 8
  523. enums["VKFLY_SYS_STATUS_SENSOR_EXTEND"][8] = EnumEntry("VKFLY_SYS_STATUS_SENSOR_RTK_GPS", """RTK GPS""")
  524. VKFLY_SYS_STATUS_SDCARD = 16
  525. enums["VKFLY_SYS_STATUS_SENSOR_EXTEND"][16] = EnumEntry("VKFLY_SYS_STATUS_SDCARD", """Onboard SD card""")
  526. VKFLY_SYS_STATUS_SENSOR_EXTEND_ENUM_END = 17
  527. enums["VKFLY_SYS_STATUS_SENSOR_EXTEND"][17] = EnumEntry("VKFLY_SYS_STATUS_SENSOR_EXTEND_ENUM_END", """""")
  528. # VKFLY_SYS_ERROR1
  529. enums["VKFLY_SYS_ERROR1"] = Enum()
  530. enums["VKFLY_SYS_ERROR1"].bitmask = True
  531. VKFLY_SYS_ERROR1_GCS_LINK_LOST = 1
  532. enums["VKFLY_SYS_ERROR1"][1] = EnumEntry("VKFLY_SYS_ERROR1_GCS_LINK_LOST", """Gcs link lost.""")
  533. VKFLY_SYS_ERROR1_VOLTAGE_LOW = 2
  534. enums["VKFLY_SYS_ERROR1"][2] = EnumEntry("VKFLY_SYS_ERROR1_VOLTAGE_LOW", """Battery voltage low.""")
  535. VKFLY_SYS_ERROR1_MOTOR_BALANCE = 4
  536. enums["VKFLY_SYS_ERROR1"][4] = EnumEntry("VKFLY_SYS_ERROR1_MOTOR_BALANCE", """Servo output balance bad.""")
  537. VKFLY_SYS_ERROR1_MOTOR_FAIL = 8
  538. enums["VKFLY_SYS_ERROR1"][8] = EnumEntry("VKFLY_SYS_ERROR1_MOTOR_FAIL", """Servo ouput fault.""")
  539. VKFLY_SYS_ERROR1_OVERHEAT = 16
  540. enums["VKFLY_SYS_ERROR1"][16] = EnumEntry("VKFLY_SYS_ERROR1_OVERHEAT", """Autopilot system temperature too high.""")
  541. VKFLY_SYS_ERROR1_INS_INVALID = 32
  542. enums["VKFLY_SYS_ERROR1"][32] = EnumEntry("VKFLY_SYS_ERROR1_INS_INVALID", """Autopilot system solved positioning not ready.""")
  543. VKFLY_SYS_ERROR1_OUT_FENCE = 64
  544. enums["VKFLY_SYS_ERROR1"][64] = EnumEntry("VKFLY_SYS_ERROR1_OUT_FENCE", """Position out of fence range.""")
  545. VKFLY_SYS_ERROR1_OBV_LINK_LOST = 128
  546. enums["VKFLY_SYS_ERROR1"][128] = EnumEntry("VKFLY_SYS_ERROR1_OBV_LINK_LOST", """Obv mavlink com link lost.""")
  547. VKFLY_SYS_ERROR1_BATBMS_LINK_LOST = 256
  548. enums["VKFLY_SYS_ERROR1"][256] = EnumEntry("VKFLY_SYS_ERROR1_BATBMS_LINK_LOST", """Battery bms link lost.""")
  549. VKFLY_SYS_ERROR1_ECU_FUEL_LOW = 512
  550. enums["VKFLY_SYS_ERROR1"][512] = EnumEntry("VKFLY_SYS_ERROR1_ECU_FUEL_LOW", """ECU fuel percentage low.""")
  551. VKFLY_SYS_ERROR1_ECU_LINK_LOST = 1024
  552. enums["VKFLY_SYS_ERROR1"][1024] = EnumEntry("VKFLY_SYS_ERROR1_ECU_LINK_LOST", """ECU linklost.""")
  553. VKFLY_SYS_ERROR1_H2P_LOW = 2048
  554. enums["VKFLY_SYS_ERROR1"][2048] = EnumEntry("VKFLY_SYS_ERROR1_H2P_LOW", """H2 pressure low.""")
  555. VKFLY_SYS_ERROR1_OVER_WEIGHT = 4096
  556. enums["VKFLY_SYS_ERROR1"][4096] = EnumEntry("VKFLY_SYS_ERROR1_OVER_WEIGHT", """Over weight.""")
  557. VKFLY_SYS_ERROR1_OBSTACLE_AVOID = 8192
  558. enums["VKFLY_SYS_ERROR1"][8192] = EnumEntry("VKFLY_SYS_ERROR1_OBSTACLE_AVOID", """Obstacle avoid.""")
  559. VKFLY_SYS_ERROR1_FENCE_LIMITED = 16384
  560. enums["VKFLY_SYS_ERROR1"][16384] = EnumEntry("VKFLY_SYS_ERROR1_FENCE_LIMITED", """Fence motion limited.""")
  561. VKFLY_SYS_ERROR1_ENUM_END = 16385
  562. enums["VKFLY_SYS_ERROR1"][16385] = EnumEntry("VKFLY_SYS_ERROR1_ENUM_END", """""")
  563. # VKFLY_SYS_ERROR3
  564. enums["VKFLY_SYS_ERROR3"] = Enum()
  565. enums["VKFLY_SYS_ERROR3"].bitmask = True
  566. VKFLY_SYS_ERROR3_MAG0_DISTURB = 1
  567. enums["VKFLY_SYS_ERROR3"][1] = EnumEntry("VKFLY_SYS_ERROR3_MAG0_DISTURB", """""")
  568. VKFLY_SYS_ERROR3_MAG1_DISTURB = 2
  569. enums["VKFLY_SYS_ERROR3"][2] = EnumEntry("VKFLY_SYS_ERROR3_MAG1_DISTURB", """""")
  570. VKFLY_SYS_ERROR3_IMU0_ERROR = 4
  571. enums["VKFLY_SYS_ERROR3"][4] = EnumEntry("VKFLY_SYS_ERROR3_IMU0_ERROR", """""")
  572. VKFLY_SYS_ERROR3_IMU1_ERROR = 8
  573. enums["VKFLY_SYS_ERROR3"][8] = EnumEntry("VKFLY_SYS_ERROR3_IMU1_ERROR", """""")
  574. VKFLY_SYS_ERROR3_BARO0_ERROR = 16
  575. enums["VKFLY_SYS_ERROR3"][16] = EnumEntry("VKFLY_SYS_ERROR3_BARO0_ERROR", """""")
  576. VKFLY_SYS_ERROR3_GPS0_ERROR = 32
  577. enums["VKFLY_SYS_ERROR3"][32] = EnumEntry("VKFLY_SYS_ERROR3_GPS0_ERROR", """""")
  578. VKFLY_SYS_ERROR3_GPS1_ERROR = 64
  579. enums["VKFLY_SYS_ERROR3"][64] = EnumEntry("VKFLY_SYS_ERROR3_GPS1_ERROR", """""")
  580. VKFLY_SYS_ERROR3_RTK_ERROR = 128
  581. enums["VKFLY_SYS_ERROR3"][128] = EnumEntry("VKFLY_SYS_ERROR3_RTK_ERROR", """""")
  582. VKFLY_SYS_ERROR3_YAW_DIFF = 256
  583. enums["VKFLY_SYS_ERROR3"][256] = EnumEntry("VKFLY_SYS_ERROR3_YAW_DIFF", """""")
  584. VKFLY_SYS_ERROR3_ASPD_LINK_LOST = 512
  585. enums["VKFLY_SYS_ERROR3"][512] = EnumEntry("VKFLY_SYS_ERROR3_ASPD_LINK_LOST", """""")
  586. VKFLY_SYS_ERROR3_ENUM_END = 513
  587. enums["VKFLY_SYS_ERROR3"][513] = EnumEntry("VKFLY_SYS_ERROR3_ENUM_END", """""")
  588. # VKFLY_CUSTOM_MODE
  589. enums["VKFLY_CUSTOM_MODE"] = Enum()
  590. enums["VKFLY_CUSTOM_MODE"].bitmask = False
  591. VKFLY_CUSTOM_MODE_STANDBY = 1
  592. enums["VKFLY_CUSTOM_MODE"][1] = EnumEntry("VKFLY_CUSTOM_MODE_STANDBY", """Standby mode""")
  593. VKFLY_CUSTOM_MODE_ACRO = 2
  594. enums["VKFLY_CUSTOM_MODE"][2] = EnumEntry("VKFLY_CUSTOM_MODE_ACRO", """Acro mode""")
  595. VKFLY_CUSTOM_MODE_ATTITUDE = 3
  596. enums["VKFLY_CUSTOM_MODE"][3] = EnumEntry("VKFLY_CUSTOM_MODE_ATTITUDE", """Attitude mode""")
  597. VKFLY_CUSTOM_MODE_POSHOLD = 4
  598. enums["VKFLY_CUSTOM_MODE"][4] = EnumEntry("VKFLY_CUSTOM_MODE_POSHOLD", """Poshold mode""")
  599. VKFLY_CUSTOM_MODE_TAKEOFF = 10
  600. enums["VKFLY_CUSTOM_MODE"][10] = EnumEntry("VKFLY_CUSTOM_MODE_TAKEOFF", """Auto takeoff.""")
  601. VKFLY_CUSTOM_MODE_LOITER = 11
  602. enums["VKFLY_CUSTOM_MODE"][11] = EnumEntry("VKFLY_CUSTOM_MODE_LOITER", """Auto loiter.""")
  603. VKFLY_CUSTOM_MODE_RTL = 12
  604. enums["VKFLY_CUSTOM_MODE"][12] = EnumEntry("VKFLY_CUSTOM_MODE_RTL", """Auto return.""")
  605. VKFLY_CUSTOM_MODE_FLY_TO_WP = 13
  606. enums["VKFLY_CUSTOM_MODE"][13] = EnumEntry("VKFLY_CUSTOM_MODE_FLY_TO_WP", """Auto fly to wp.""")
  607. VKFLY_CUSTOM_MODE_CRUISE = 15
  608. enums["VKFLY_CUSTOM_MODE"][15] = EnumEntry("VKFLY_CUSTOM_MODE_CRUISE", """Auto cruise.""")
  609. VKFLY_CUSTOM_MODE_GUIDE = 18
  610. enums["VKFLY_CUSTOM_MODE"][18] = EnumEntry("VKFLY_CUSTOM_MODE_GUIDE", """Guide to point.""")
  611. VKFLY_CUSTOM_MODE_LAND = 19
  612. enums["VKFLY_CUSTOM_MODE"][19] = EnumEntry("VKFLY_CUSTOM_MODE_LAND", """Land.""")
  613. VKFLY_CUSTOM_MODE_FSLAND = 20
  614. enums["VKFLY_CUSTOM_MODE"][20] = EnumEntry("VKFLY_CUSTOM_MODE_FSLAND", """Force land.""")
  615. VKFLY_CUSTOM_MODE_FOLLOW = 21
  616. enums["VKFLY_CUSTOM_MODE"][21] = EnumEntry("VKFLY_CUSTOM_MODE_FOLLOW", """Follow.""")
  617. VKFLY_CUSTOM_MODE_WP_ORBIT = 23
  618. enums["VKFLY_CUSTOM_MODE"][23] = EnumEntry("VKFLY_CUSTOM_MODE_WP_ORBIT", """Waypoint orbit""")
  619. VKFLY_CUSTOM_MODE_DYN_TAKEOFF = 24
  620. enums["VKFLY_CUSTOM_MODE"][24] = EnumEntry("VKFLY_CUSTOM_MODE_DYN_TAKEOFF", """Dynamic takeoff""")
  621. VKFLY_CUSTOM_MODE_DYN_LAND = 25
  622. enums["VKFLY_CUSTOM_MODE"][25] = EnumEntry("VKFLY_CUSTOM_MODE_DYN_LAND", """Dyn_Land""")
  623. VKFLY_CUSTOM_MODE_OBAVOID = 26
  624. enums["VKFLY_CUSTOM_MODE"][26] = EnumEntry("VKFLY_CUSTOM_MODE_OBAVOID", """Obavoid """)
  625. VKFLY_CUSTOM_MODE_OFFBOARD = 27
  626. enums["VKFLY_CUSTOM_MODE"][27] = EnumEntry("VKFLY_CUSTOM_MODE_OFFBOARD", """Offboard command control.""")
  627. VKFLY_CUSTOM_MODE_FORMATION = 28
  628. enums["VKFLY_CUSTOM_MODE"][28] = EnumEntry("VKFLY_CUSTOM_MODE_FORMATION", """Formation fly mode""")
  629. VKFLY_CUSTOM_MODE_FW_MANUL = 51
  630. enums["VKFLY_CUSTOM_MODE"][51] = EnumEntry("VKFLY_CUSTOM_MODE_FW_MANUL", """Fixedwing manul mode""")
  631. VKFLY_CUSTOM_MODE_FW_ATTITUDE = 52
  632. enums["VKFLY_CUSTOM_MODE"][52] = EnumEntry("VKFLY_CUSTOM_MODE_FW_ATTITUDE", """Fixedwing attitude mode""")
  633. VKFLY_CUSTOM_MODE_FW_CRUISE = 53
  634. enums["VKFLY_CUSTOM_MODE"][53] = EnumEntry("VKFLY_CUSTOM_MODE_FW_CRUISE", """Fixedwing cruise mode""")
  635. VKFLY_CUSTOM_MODE_FW_CIRCLE = 54
  636. enums["VKFLY_CUSTOM_MODE"][54] = EnumEntry("VKFLY_CUSTOM_MODE_FW_CIRCLE", """Fixedwing circle mode""")
  637. VKFLY_CUSTOM_MODE_FW_TAKEOFF = 55
  638. enums["VKFLY_CUSTOM_MODE"][55] = EnumEntry("VKFLY_CUSTOM_MODE_FW_TAKEOFF", """Fixedwing circle mode""")
  639. VKFLY_CUSTOM_MODE_FW_GUIDE = 56
  640. enums["VKFLY_CUSTOM_MODE"][56] = EnumEntry("VKFLY_CUSTOM_MODE_FW_GUIDE", """Fixedwing guide mode""")
  641. VKFLY_CUSTOM_MODE_FW_LAND = 57
  642. enums["VKFLY_CUSTOM_MODE"][57] = EnumEntry("VKFLY_CUSTOM_MODE_FW_LAND", """Fixedwing land mode""")
  643. VKFLY_CUSTOM_MODE_FW_RTL = 58
  644. enums["VKFLY_CUSTOM_MODE"][58] = EnumEntry("VKFLY_CUSTOM_MODE_FW_RTL", """Fixedwing return to launch mode""")
  645. VKFLY_CUSTOM_MODE_FW_GPS_FS = 59
  646. enums["VKFLY_CUSTOM_MODE"][59] = EnumEntry("VKFLY_CUSTOM_MODE_FW_GPS_FS", """Fixedwing GPS fail safe mode""")
  647. VKFLY_CUSTOM_MODE_PARACHUTE = 60
  648. enums["VKFLY_CUSTOM_MODE"][60] = EnumEntry("VKFLY_CUSTOM_MODE_PARACHUTE", """Open parachute mode""")
  649. VKFLY_CUSTOM_MODE_ENUM_END = 61
  650. enums["VKFLY_CUSTOM_MODE"][61] = EnumEntry("VKFLY_CUSTOM_MODE_ENUM_END", """""")
  651. # VKFLY_VKINS_NAV_STATUS
  652. enums["VKFLY_VKINS_NAV_STATUS"] = Enum()
  653. enums["VKFLY_VKINS_NAV_STATUS"].bitmask = True
  654. VKFLY_VKINS_NAV_INSGPS = 1
  655. enums["VKFLY_VKINS_NAV_STATUS"][1] = EnumEntry("VKFLY_VKINS_NAV_INSGPS", """INS status. 0 means no INS. 1 means INS ok.""")
  656. VKFLY_VKINS_NAV_ALT_GPS = 2
  657. enums["VKFLY_VKINS_NAV_STATUS"][2] = EnumEntry("VKFLY_VKINS_NAV_ALT_GPS", """GPS altitude in data fusion. 0 gps altitude not used. 1 gps altitude used.""")
  658. VKFLY_VKINS_NAV_HEADING_RTK = 4
  659. enums["VKFLY_VKINS_NAV_STATUS"][4] = EnumEntry("VKFLY_VKINS_NAV_HEADING_RTK", """RTK heading data. 0 use mag, 1 use rtk dual ant heading.""")
  660. VKFLY_VKINS_NAV_RTK = 16
  661. enums["VKFLY_VKINS_NAV_STATUS"][16] = EnumEntry("VKFLY_VKINS_NAV_RTK", """RTK pos data. 0 no RTK, 1 RTK. """)
  662. VKFLY_VKINS_NAV_STATUS_ENUM_END = 17
  663. enums["VKFLY_VKINS_NAV_STATUS"][17] = EnumEntry("VKFLY_VKINS_NAV_STATUS_ENUM_END", """""")
  664. # VKFLY_YAW_CTRL_MODE
  665. enums["VKFLY_YAW_CTRL_MODE"] = Enum()
  666. enums["VKFLY_YAW_CTRL_MODE"].bitmask = False
  667. VKFLY_YAW_KEEP_CURRENT = 0
  668. enums["VKFLY_YAW_CTRL_MODE"][0] = EnumEntry("VKFLY_YAW_KEEP_CURRENT", """Yaw do not change. Keep current yaw.""")
  669. VKFLY_YAW_TO_NEXT_WP = 1
  670. enums["VKFLY_YAW_CTRL_MODE"][1] = EnumEntry("VKFLY_YAW_TO_NEXT_WP", """Yaw towards next waypoint or circle center.""")
  671. VKFLY_YAW_TO_TRACE_COURSE = 2
  672. enums["VKFLY_YAW_CTRL_MODE"][2] = EnumEntry("VKFLY_YAW_TO_TRACE_COURSE", """Yaw towards moving course heading.""")
  673. VKFLY_YAW_TO_SET_VALUE = 3
  674. enums["VKFLY_YAW_CTRL_MODE"][3] = EnumEntry("VKFLY_YAW_TO_SET_VALUE", """Yaw towards spacific value.""")
  675. VKFLY_YAW_TO_HOME = 4
  676. enums["VKFLY_YAW_CTRL_MODE"][4] = EnumEntry("VKFLY_YAW_TO_HOME", """Yaw towards home point.""")
  677. VKFLY_YAW_TO_INTEREST = 5
  678. enums["VKFLY_YAW_CTRL_MODE"][5] = EnumEntry("VKFLY_YAW_TO_INTEREST", """Yaw towards interest point.""")
  679. VKFLY_YAW_TO_OTHER_MAV_SYS = 6
  680. enums["VKFLY_YAW_CTRL_MODE"][6] = EnumEntry("VKFLY_YAW_TO_OTHER_MAV_SYS", """Yaw towards interest point.""")
  681. VKFLY_YAW_TO_SET_VALUE_ONLY_ON_LANDING = 7
  682. enums["VKFLY_YAW_CTRL_MODE"][7] = EnumEntry("VKFLY_YAW_TO_SET_VALUE_ONLY_ON_LANDING", """Yaw towards interest point.""")
  683. VKFLY_YAW_CTRL_MODE_ENUM_END = 8
  684. enums["VKFLY_YAW_CTRL_MODE"][8] = EnumEntry("VKFLY_YAW_CTRL_MODE_ENUM_END", """""")
  685. # VKFLY_PHOTO_CTRL_MODE
  686. enums["VKFLY_PHOTO_CTRL_MODE"] = Enum()
  687. enums["VKFLY_PHOTO_CTRL_MODE"].bitmask = False
  688. VKFLY_AUTO_PHO_KEEP_CURRENT = 0
  689. enums["VKFLY_PHOTO_CTRL_MODE"][0] = EnumEntry("VKFLY_AUTO_PHO_KEEP_CURRENT", """Do not take photo automatically.""")
  690. VKFLY_AUTO_PHO_STOP = 1
  691. enums["VKFLY_PHOTO_CTRL_MODE"][1] = EnumEntry("VKFLY_AUTO_PHO_STOP", """Do not take photo automatically.""")
  692. VKFLY_AUTO_PHO_AUTO_BY_TIME = 2
  693. enums["VKFLY_PHOTO_CTRL_MODE"][2] = EnumEntry("VKFLY_AUTO_PHO_AUTO_BY_TIME", """Automatically take photo by tiem.""")
  694. VKFLY_AUTO_PHO_BY_DIST_XY = 3
  695. enums["VKFLY_PHOTO_CTRL_MODE"][3] = EnumEntry("VKFLY_AUTO_PHO_BY_DIST_XY", """Automatically take photo by distance.""")
  696. VKFLY_AUTO_PHO_BY_DIST_Z = 4
  697. enums["VKFLY_PHOTO_CTRL_MODE"][4] = EnumEntry("VKFLY_AUTO_PHO_BY_DIST_Z", """Automatically take photo by input trigger signal or command.""")
  698. VKFLY_AUTO_PHO_BY_DIST_XYZ = 5
  699. enums["VKFLY_PHOTO_CTRL_MODE"][5] = EnumEntry("VKFLY_AUTO_PHO_BY_DIST_XYZ", """Automatically take photo by input trigger signal or command.""")
  700. VKFLY_PHOTO_CTRL_MODE_ENUM_END = 6
  701. enums["VKFLY_PHOTO_CTRL_MODE"][6] = EnumEntry("VKFLY_PHOTO_CTRL_MODE_ENUM_END", """""")
  702. # VKFLY_RTL_REASON
  703. enums["VKFLY_RTL_REASON"] = Enum()
  704. enums["VKFLY_RTL_REASON"].bitmask = False
  705. VKFLY_RTL_REASON_NONE = 0
  706. enums["VKFLY_RTL_REASON"][0] = EnumEntry("VKFLY_RTL_REASON_NONE", """Rtl mode not triggered.""")
  707. VKFLY_RTL_REASON_GCSCMD = 1
  708. enums["VKFLY_RTL_REASON"][1] = EnumEntry("VKFLY_RTL_REASON_GCSCMD", """Trigger rtl mode by gcs command.""")
  709. VKFLY_RTL_REASON_RCCMD = 2
  710. enums["VKFLY_RTL_REASON"][2] = EnumEntry("VKFLY_RTL_REASON_RCCMD", """Trigger rtl mode by remote controller command.""")
  711. VKFLY_RTL_REASON_GCSLOST = 3
  712. enums["VKFLY_RTL_REASON"][3] = EnumEntry("VKFLY_RTL_REASON_GCSLOST", """Trigger rtl mode by gcs link lost.""")
  713. VKFLY_RTL_REASON_RCFAIL = 4
  714. enums["VKFLY_RTL_REASON"][4] = EnumEntry("VKFLY_RTL_REASON_RCFAIL", """Trigger rtl mode by remote controller signal fail.""")
  715. VKFLY_RTL_REASON_RCLOST = 5
  716. enums["VKFLY_RTL_REASON"][5] = EnumEntry("VKFLY_RTL_REASON_RCLOST", """Trigger rtl mode by remote controller signal lost.""")
  717. VKFLY_RTL_REASON_LOWVOLT = 6
  718. enums["VKFLY_RTL_REASON"][6] = EnumEntry("VKFLY_RTL_REASON_LOWVOLT", """Trigger rtl mode by battery volt low.""")
  719. VKFLY_RTL_REASON_OFFBOARD = 7
  720. enums["VKFLY_RTL_REASON"][7] = EnumEntry("VKFLY_RTL_REASON_OFFBOARD", """Trigger rtl mode by offboard command.""")
  721. VKFLY_RTL_REASON_ALTLIM = 8
  722. enums["VKFLY_RTL_REASON"][8] = EnumEntry("VKFLY_RTL_REASON_ALTLIM", """Trigger rtl mode by altitude limit.""")
  723. VKFLY_RTL_REASON_OUT_FENCE = 9
  724. enums["VKFLY_RTL_REASON"][9] = EnumEntry("VKFLY_RTL_REASON_OUT_FENCE", """Trigger rtl mode by out range of fence.""")
  725. VKFLY_RTL_REASON_BMS_LOWCAP = 10
  726. enums["VKFLY_RTL_REASON"][10] = EnumEntry("VKFLY_RTL_REASON_BMS_LOWCAP", """Trigger rtl mode by battery manager system low capacity.""")
  727. VKFLY_RTL_REASON_BMS_LINKLOST = 11
  728. enums["VKFLY_RTL_REASON"][11] = EnumEntry("VKFLY_RTL_REASON_BMS_LINKLOST", """Trigger rtl mode by battery manager link lost.""")
  729. VKFLY_RTL_REASON_SERVO_FAULT = 12
  730. enums["VKFLY_RTL_REASON"][12] = EnumEntry("VKFLY_RTL_REASON_SERVO_FAULT", """Trigger rtl mode by servo fault.""")
  731. VKFLY_RTL_REASON_WP_FINISH = 13
  732. enums["VKFLY_RTL_REASON"][13] = EnumEntry("VKFLY_RTL_REASON_WP_FINISH", """Trigger rtl mode by servo fault.""")
  733. VKFLY_RTL_REASON_H2P_LOW = 14
  734. enums["VKFLY_RTL_REASON"][14] = EnumEntry("VKFLY_RTL_REASON_H2P_LOW", """Trigger rtl mode by servo fault.""")
  735. VKFLY_RTL_REASON_ECU_FUEL_LOW = 15
  736. enums["VKFLY_RTL_REASON"][15] = EnumEntry("VKFLY_RTL_REASON_ECU_FUEL_LOW", """Trigger rtl mode by servo fault.""")
  737. VKFLY_RTL_REASON_ATTITUDE_FS = 16
  738. enums["VKFLY_RTL_REASON"][16] = EnumEntry("VKFLY_RTL_REASON_ATTITUDE_FS", """Trigger rtl mode by attitude failsafe.""")
  739. VKFLY_RTL_REASON_TRANS_TMO = 17
  740. enums["VKFLY_RTL_REASON"][17] = EnumEntry("VKFLY_RTL_REASON_TRANS_TMO", """Trigger rtl mode by transform time out.""")
  741. VKFLY_RTL_REASON_ASPD_LOW = 18
  742. enums["VKFLY_RTL_REASON"][18] = EnumEntry("VKFLY_RTL_REASON_ASPD_LOW", """Trigger rtl mode by transform time out.""")
  743. VKFLY_RTL_REASON_FMUB_TAKEOVER = 19
  744. enums["VKFLY_RTL_REASON"][19] = EnumEntry("VKFLY_RTL_REASON_FMUB_TAKEOVER", """Trigger rtl mode by fmub takeover.""")
  745. VKFLY_RTL_REASON_ENUM_END = 20
  746. enums["VKFLY_RTL_REASON"][20] = EnumEntry("VKFLY_RTL_REASON_ENUM_END", """""")
  747. # VKFLY_LOITER_REASON
  748. enums["VKFLY_LOITER_REASON"] = Enum()
  749. enums["VKFLY_LOITER_REASON"].bitmask = False
  750. VLFLY_LOITER_REASON_DEFAULT = 1
  751. enums["VKFLY_LOITER_REASON"][1] = EnumEntry("VLFLY_LOITER_REASON_DEFAULT", """""")
  752. VLFLY_LOITER_REASON_GCS_CMD = 2
  753. enums["VKFLY_LOITER_REASON"][2] = EnumEntry("VLFLY_LOITER_REASON_GCS_CMD", """""")
  754. VLFLY_LOITER_REASON_MISSION_DONE = 3
  755. enums["VKFLY_LOITER_REASON"][3] = EnumEntry("VLFLY_LOITER_REASON_MISSION_DONE", """""")
  756. VLFLY_LOITER_REASON_GPS_REABLE = 5
  757. enums["VKFLY_LOITER_REASON"][5] = EnumEntry("VLFLY_LOITER_REASON_GPS_REABLE", """""")
  758. VLFLY_LOITER_REASON_RC_CMD = 6
  759. enums["VKFLY_LOITER_REASON"][6] = EnumEntry("VLFLY_LOITER_REASON_RC_CMD", """""")
  760. VLFLY_LOITER_REASON_FOLLOW_FAIL = 7
  761. enums["VKFLY_LOITER_REASON"][7] = EnumEntry("VLFLY_LOITER_REASON_FOLLOW_FAIL", """""")
  762. VLFLY_LOITER_REASON_TAKEOFF_DONE = 9
  763. enums["VKFLY_LOITER_REASON"][9] = EnumEntry("VLFLY_LOITER_REASON_TAKEOFF_DONE", """""")
  764. VLFLY_LOITER_REASON_BAT_VOLT_LOW = 10
  765. enums["VKFLY_LOITER_REASON"][10] = EnumEntry("VLFLY_LOITER_REASON_BAT_VOLT_LOW", """""")
  766. VLFLY_LOITER_REASON_RC_FAIL = 11
  767. enums["VKFLY_LOITER_REASON"][11] = EnumEntry("VLFLY_LOITER_REASON_RC_FAIL", """""")
  768. VLFLY_LOITER_REASON_RC_LOST = 12
  769. enums["VKFLY_LOITER_REASON"][12] = EnumEntry("VLFLY_LOITER_REASON_RC_LOST", """""")
  770. VLFLY_LOITER_REASON_RC_BAD = 13
  771. enums["VKFLY_LOITER_REASON"][13] = EnumEntry("VLFLY_LOITER_REASON_RC_BAD", """""")
  772. VLFLY_LOITER_REASON_BAT_CAP_LOW = 14
  773. enums["VKFLY_LOITER_REASON"][14] = EnumEntry("VLFLY_LOITER_REASON_BAT_CAP_LOW", """""")
  774. VLFLY_LOITER_REASON_OFFBOARD = 15
  775. enums["VKFLY_LOITER_REASON"][15] = EnumEntry("VLFLY_LOITER_REASON_OFFBOARD", """""")
  776. VLFLY_LOITER_REASON_QUIT_FORMATION = 16
  777. enums["VKFLY_LOITER_REASON"][16] = EnumEntry("VLFLY_LOITER_REASON_QUIT_FORMATION", """""")
  778. VLFLY_LOITER_REASON_H2P_LOW = 17
  779. enums["VKFLY_LOITER_REASON"][17] = EnumEntry("VLFLY_LOITER_REASON_H2P_LOW", """""")
  780. VLFLY_LOITER_REASON_ECU_FUEL_LOW = 18
  781. enums["VKFLY_LOITER_REASON"][18] = EnumEntry("VLFLY_LOITER_REASON_ECU_FUEL_LOW", """""")
  782. VLFLY_LOITER_REASON_FMUB_TAKEOVER = 19
  783. enums["VKFLY_LOITER_REASON"][19] = EnumEntry("VLFLY_LOITER_REASON_FMUB_TAKEOVER", """""")
  784. VLFLY_LOITER_REASON_WPDATA_ERR = 21
  785. enums["VKFLY_LOITER_REASON"][21] = EnumEntry("VLFLY_LOITER_REASON_WPDATA_ERR", """""")
  786. VKFLY_LOITER_REASON_ENUM_END = 22
  787. enums["VKFLY_LOITER_REASON"][22] = EnumEntry("VKFLY_LOITER_REASON_ENUM_END", """""")
  788. # VKFLY_DIGICAM_WP_ACT
  789. enums["VKFLY_DIGICAM_WP_ACT"] = Enum()
  790. enums["VKFLY_DIGICAM_WP_ACT"].bitmask = False
  791. VKFLY_DIGICAM_WP_ACT_NONE = 0
  792. enums["VKFLY_DIGICAM_WP_ACT"][0] = EnumEntry("VKFLY_DIGICAM_WP_ACT_NONE", """Do nothing.""")
  793. VKFLY_DIGICAM_WP_ACT_PHO = 1
  794. enums["VKFLY_DIGICAM_WP_ACT"][1] = EnumEntry("VKFLY_DIGICAM_WP_ACT_PHO", """Do take photo.""")
  795. VKFLY_DIGICAM_WP_ACT_VEDIO_ON = 2
  796. enums["VKFLY_DIGICAM_WP_ACT"][2] = EnumEntry("VKFLY_DIGICAM_WP_ACT_VEDIO_ON", """Do vedio recording on.""")
  797. VKFLY_DIGICAM_WP_ACT_VEDIO_OFF = 3
  798. enums["VKFLY_DIGICAM_WP_ACT"][3] = EnumEntry("VKFLY_DIGICAM_WP_ACT_VEDIO_OFF", """Do vedio recording off.""")
  799. VKFLY_DIGICAM_WP_ACT_ENUM_END = 4
  800. enums["VKFLY_DIGICAM_WP_ACT"][4] = EnumEntry("VKFLY_DIGICAM_WP_ACT_ENUM_END", """""")
  801. # VKFLY_GIMBAL_WP_ACT
  802. enums["VKFLY_GIMBAL_WP_ACT"] = Enum()
  803. enums["VKFLY_GIMBAL_WP_ACT"].bitmask = False
  804. VKFLY_GIMBAL_WP_ACT_NONE = 0
  805. enums["VKFLY_GIMBAL_WP_ACT"][0] = EnumEntry("VKFLY_GIMBAL_WP_ACT_NONE", """Do nothing.""")
  806. VKFLY_GIMBAL_WP_ACT_SET_ANG = 1
  807. enums["VKFLY_GIMBAL_WP_ACT"][1] = EnumEntry("VKFLY_GIMBAL_WP_ACT_SET_ANG", """Do set gimbal pitch and yaw angle value.""")
  808. VKFLY_GIMBAL_WP_ACT_SET_PITCH_YAW_FOLLOW = 2
  809. enums["VKFLY_GIMBAL_WP_ACT"][2] = EnumEntry("VKFLY_GIMBAL_WP_ACT_SET_PITCH_YAW_FOLLOW", """Do set gimbla pitch value, yaw follow drone head.""")
  810. VKFLY_GIMBAL_WP_SET_ZOOM = 3
  811. enums["VKFLY_GIMBAL_WP_ACT"][3] = EnumEntry("VKFLY_GIMBAL_WP_SET_ZOOM", """Do set gimbla Zoom.""")
  812. VKFLY_GIMBAL_WP_ACT_ENUM_END = 4
  813. enums["VKFLY_GIMBAL_WP_ACT"][4] = EnumEntry("VKFLY_GIMBAL_WP_ACT_ENUM_END", """""")
  814. # VKFLY_THROW_CHAN_TYPE
  815. enums["VKFLY_THROW_CHAN_TYPE"] = Enum()
  816. enums["VKFLY_THROW_CHAN_TYPE"].bitmask = True
  817. VKFLY_THROW_CHAN_1 = 1
  818. enums["VKFLY_THROW_CHAN_TYPE"][1] = EnumEntry("VKFLY_THROW_CHAN_1", """throwing channel1""")
  819. VKFLY_THROW_CHAN_2 = 2
  820. enums["VKFLY_THROW_CHAN_TYPE"][2] = EnumEntry("VKFLY_THROW_CHAN_2", """throwing channel2""")
  821. VKFLY_THROW_CHAN_3 = 4
  822. enums["VKFLY_THROW_CHAN_TYPE"][4] = EnumEntry("VKFLY_THROW_CHAN_3", """throwing channel3""")
  823. VKFLY_THROW_CHAN_4 = 8
  824. enums["VKFLY_THROW_CHAN_TYPE"][8] = EnumEntry("VKFLY_THROW_CHAN_4", """throwing channel4""")
  825. VKFLY_THROW_CHAN_5 = 16
  826. enums["VKFLY_THROW_CHAN_TYPE"][16] = EnumEntry("VKFLY_THROW_CHAN_5", """throwing channel5""")
  827. VKFLY_THROW_CHAN_6 = 32
  828. enums["VKFLY_THROW_CHAN_TYPE"][32] = EnumEntry("VKFLY_THROW_CHAN_6", """throwing channel6""")
  829. VKFLY_THROW_CHAN_7 = 64
  830. enums["VKFLY_THROW_CHAN_TYPE"][64] = EnumEntry("VKFLY_THROW_CHAN_7", """throwing channel7""")
  831. VKFLY_THROW_CHAN_8 = 128
  832. enums["VKFLY_THROW_CHAN_TYPE"][128] = EnumEntry("VKFLY_THROW_CHAN_8", """throwing channel8""")
  833. VKFLY_THROW_CHAN_9 = 256
  834. enums["VKFLY_THROW_CHAN_TYPE"][256] = EnumEntry("VKFLY_THROW_CHAN_9", """throwing channel9""")
  835. VKFLY_THROW_CHAN_10 = 512
  836. enums["VKFLY_THROW_CHAN_TYPE"][512] = EnumEntry("VKFLY_THROW_CHAN_10", """throwing channel10""")
  837. VKFLY_THROW_CHAN_11 = 1024
  838. enums["VKFLY_THROW_CHAN_TYPE"][1024] = EnumEntry("VKFLY_THROW_CHAN_11", """throwing channel11""")
  839. VKFLY_THROW_CHAN_12 = 2048
  840. enums["VKFLY_THROW_CHAN_TYPE"][2048] = EnumEntry("VKFLY_THROW_CHAN_12", """throwing channel12""")
  841. VKFLY_THROW_CHAN_13 = 4096
  842. enums["VKFLY_THROW_CHAN_TYPE"][4096] = EnumEntry("VKFLY_THROW_CHAN_13", """throwing channel12""")
  843. VKFLY_THROW_CHAN_14 = 8192
  844. enums["VKFLY_THROW_CHAN_TYPE"][8192] = EnumEntry("VKFLY_THROW_CHAN_14", """throwing channel12""")
  845. VKFLY_THROW_CHAN_15 = 16384
  846. enums["VKFLY_THROW_CHAN_TYPE"][16384] = EnumEntry("VKFLY_THROW_CHAN_15", """throwing channel12""")
  847. VKFLY_THROW_CHAN_16 = 32768
  848. enums["VKFLY_THROW_CHAN_TYPE"][32768] = EnumEntry("VKFLY_THROW_CHAN_16", """throwing channel12""")
  849. VKFLY_THROW_CHAN_ALL = 65535
  850. enums["VKFLY_THROW_CHAN_TYPE"][65535] = EnumEntry("VKFLY_THROW_CHAN_ALL", """throwing channel12""")
  851. VKFLY_THROW_CHAN_TYPE_ENUM_END = 65536
  852. enums["VKFLY_THROW_CHAN_TYPE"][65536] = EnumEntry("VKFLY_THROW_CHAN_TYPE_ENUM_END", """""")
  853. # VKFLY_MISSION_EXEC_MODE
  854. enums["VKFLY_MISSION_EXEC_MODE"] = Enum()
  855. enums["VKFLY_MISSION_EXEC_MODE"].bitmask = False
  856. VKFLY_MISSION_EXEC_MODE_NORMAL = 0
  857. enums["VKFLY_MISSION_EXEC_MODE"][0] = EnumEntry("VKFLY_MISSION_EXEC_MODE_NORMAL", """""")
  858. VKFLY_MISSION_EXEC_MODE_NO_ACT = 1
  859. enums["VKFLY_MISSION_EXEC_MODE"][1] = EnumEntry("VKFLY_MISSION_EXEC_MODE_NO_ACT", """""")
  860. VKFLY_MISSION_EXEC_MODE_REVERSE = 2
  861. enums["VKFLY_MISSION_EXEC_MODE"][2] = EnumEntry("VKFLY_MISSION_EXEC_MODE_REVERSE", """""")
  862. VKFLY_MISSION_EXEC_MODE_REVERSE_NO_ACT = 3
  863. enums["VKFLY_MISSION_EXEC_MODE"][3] = EnumEntry("VKFLY_MISSION_EXEC_MODE_REVERSE_NO_ACT", """""")
  864. VKFLY_MISSION_EXEC_MODE_ENUM_END = 4
  865. enums["VKFLY_MISSION_EXEC_MODE"][4] = EnumEntry("VKFLY_MISSION_EXEC_MODE_ENUM_END", """""")
  866. # VKFLY_MISSION_DONE_ACT
  867. enums["VKFLY_MISSION_DONE_ACT"] = Enum()
  868. enums["VKFLY_MISSION_DONE_ACT"].bitmask = False
  869. VKFLY_MISSION_DONE_LOITER = 0
  870. enums["VKFLY_MISSION_DONE_ACT"][0] = EnumEntry("VKFLY_MISSION_DONE_LOITER", """""")
  871. VKFLY_MISSION_DONE_RETURN_TO_LAUNCH = 1
  872. enums["VKFLY_MISSION_DONE_ACT"][1] = EnumEntry("VKFLY_MISSION_DONE_RETURN_TO_LAUNCH", """""")
  873. VKFLY_MISSION_DONE_LAND = 2
  874. enums["VKFLY_MISSION_DONE_ACT"][2] = EnumEntry("VKFLY_MISSION_DONE_LAND", """""")
  875. VKFLY_MISSION_DONE_RETURN_TO_RALLY = 3
  876. enums["VKFLY_MISSION_DONE_ACT"][3] = EnumEntry("VKFLY_MISSION_DONE_RETURN_TO_RALLY", """""")
  877. VKFLY_MISSION_DONE_RETURN_TO_LAUNCH_AB_WP = 4
  878. enums["VKFLY_MISSION_DONE_ACT"][4] = EnumEntry("VKFLY_MISSION_DONE_RETURN_TO_LAUNCH_AB_WP", """""")
  879. VKFLY_MISSION_DONE_RETURN_TO_LAUNCH_BA_WP = 5
  880. enums["VKFLY_MISSION_DONE_ACT"][5] = EnumEntry("VKFLY_MISSION_DONE_RETURN_TO_LAUNCH_BA_WP", """""")
  881. VKFLY_MISSION_DONE_THEN_REDO = 6
  882. enums["VKFLY_MISSION_DONE_ACT"][6] = EnumEntry("VKFLY_MISSION_DONE_THEN_REDO", """""")
  883. VKFLY_MISSION_DONE_THEN_DEPLOY_PARACHUTE = 7
  884. enums["VKFLY_MISSION_DONE_ACT"][7] = EnumEntry("VKFLY_MISSION_DONE_THEN_DEPLOY_PARACHUTE", """""")
  885. VKFLY_MISSION_DONE_ACT_ENUM_END = 8
  886. enums["VKFLY_MISSION_DONE_ACT"][8] = EnumEntry("VKFLY_MISSION_DONE_ACT_ENUM_END", """""")
  887. # VKFLY_RTL_EXEC_MODE
  888. enums["VKFLY_RTL_EXEC_MODE"] = Enum()
  889. enums["VKFLY_RTL_EXEC_MODE"].bitmask = False
  890. VKFLY_RTL_EXEC_MODE_NORMAL = 0
  891. enums["VKFLY_RTL_EXEC_MODE"][0] = EnumEntry("VKFLY_RTL_EXEC_MODE_NORMAL", """""")
  892. VKFLY_RTL_EXEC_MODE_BY_MISSION_SEQ = 1
  893. enums["VKFLY_RTL_EXEC_MODE"][1] = EnumEntry("VKFLY_RTL_EXEC_MODE_BY_MISSION_SEQ", """""")
  894. VKFLY_RTL_EXEC_MODE_BY_MISSION_SEQ_REVERSE = 2
  895. enums["VKFLY_RTL_EXEC_MODE"][2] = EnumEntry("VKFLY_RTL_EXEC_MODE_BY_MISSION_SEQ_REVERSE", """""")
  896. VKFLY_RTL_EXEC_MODE_ENUM_END = 3
  897. enums["VKFLY_RTL_EXEC_MODE"][3] = EnumEntry("VKFLY_RTL_EXEC_MODE_ENUM_END", """""")
  898. # VKFLY_FORMATION_TYPE
  899. enums["VKFLY_FORMATION_TYPE"] = Enum()
  900. enums["VKFLY_FORMATION_TYPE"].bitmask = False
  901. VKFLY_FORMATION_ROW = 0
  902. enums["VKFLY_FORMATION_TYPE"][0] = EnumEntry("VKFLY_FORMATION_ROW", """""")
  903. VKFLY_FORMATION_COLUM = 1
  904. enums["VKFLY_FORMATION_TYPE"][1] = EnumEntry("VKFLY_FORMATION_COLUM", """""")
  905. VKFLY_FORMATION_TRIANGLE = 2
  906. enums["VKFLY_FORMATION_TYPE"][2] = EnumEntry("VKFLY_FORMATION_TRIANGLE", """""")
  907. VKFLY_FORMATION_RECTANGLE = 3
  908. enums["VKFLY_FORMATION_TYPE"][3] = EnumEntry("VKFLY_FORMATION_RECTANGLE", """""")
  909. VKFLY_FORMATION_CUSTOM = 4
  910. enums["VKFLY_FORMATION_TYPE"][4] = EnumEntry("VKFLY_FORMATION_CUSTOM", """""")
  911. VKFLY_FORMATION_VERTICLE_LINE = 5
  912. enums["VKFLY_FORMATION_TYPE"][5] = EnumEntry("VKFLY_FORMATION_VERTICLE_LINE", """""")
  913. VKFLY_FORMATION_TYPE_ENUM_END = 6
  914. enums["VKFLY_FORMATION_TYPE"][6] = EnumEntry("VKFLY_FORMATION_TYPE_ENUM_END", """""")
  915. # VKFLY_VINS_CONFIG_ACT
  916. enums["VKFLY_VINS_CONFIG_ACT"] = Enum()
  917. enums["VKFLY_VINS_CONFIG_ACT"].bitmask = False
  918. VKFLY_VINS_CONFIG_ACT_NONE = 0
  919. enums["VKFLY_VINS_CONFIG_ACT"][0] = EnumEntry("VKFLY_VINS_CONFIG_ACT_NONE", """Do nothing""")
  920. VKFLY_VINS_CONFIG_DO_RESET = 1
  921. enums["VKFLY_VINS_CONFIG_ACT"][1] = EnumEntry("VKFLY_VINS_CONFIG_DO_RESET", """Reset VINS algorithm""")
  922. VKFLY_VINS_CONFIG_RESERVE1 = 2
  923. enums["VKFLY_VINS_CONFIG_ACT"][2] = EnumEntry("VKFLY_VINS_CONFIG_RESERVE1", """""")
  924. VKFLY_VINS_CONFIG_RESERVE2 = 3
  925. enums["VKFLY_VINS_CONFIG_ACT"][3] = EnumEntry("VKFLY_VINS_CONFIG_RESERVE2", """""")
  926. VKFLY_VINS_CONFIG_RESERVE3 = 4
  927. enums["VKFLY_VINS_CONFIG_ACT"][4] = EnumEntry("VKFLY_VINS_CONFIG_RESERVE3", """""")
  928. VKFLY_VINS_CONFIG_RESERVE4 = 5
  929. enums["VKFLY_VINS_CONFIG_ACT"][5] = EnumEntry("VKFLY_VINS_CONFIG_RESERVE4", """""")
  930. VKFLY_VINS_CONFIG_RESERVE5 = 6
  931. enums["VKFLY_VINS_CONFIG_ACT"][6] = EnumEntry("VKFLY_VINS_CONFIG_RESERVE5", """""")
  932. VKFLY_VINS_CONFIG_RESERVE6 = 7
  933. enums["VKFLY_VINS_CONFIG_ACT"][7] = EnumEntry("VKFLY_VINS_CONFIG_RESERVE6", """""")
  934. VKFLY_VINS_CONFIG_RESERVE7 = 8
  935. enums["VKFLY_VINS_CONFIG_ACT"][8] = EnumEntry("VKFLY_VINS_CONFIG_RESERVE7", """""")
  936. VKFLY_VINS_CONFIG_RESERVE8 = 9
  937. enums["VKFLY_VINS_CONFIG_ACT"][9] = EnumEntry("VKFLY_VINS_CONFIG_RESERVE8", """""")
  938. VKFLY_VINS_CONFIG_RESERVE9 = 10
  939. enums["VKFLY_VINS_CONFIG_ACT"][10] = EnumEntry("VKFLY_VINS_CONFIG_RESERVE9", """""")
  940. VKFLY_VINS_CONFIG_SET_PRIME_GINS = 11
  941. enums["VKFLY_VINS_CONFIG_ACT"][11] = EnumEntry("VKFLY_VINS_CONFIG_SET_PRIME_GINS", """""")
  942. VKFLY_VINS_CONFIG_SET_PRIME_VINS = 12
  943. enums["VKFLY_VINS_CONFIG_ACT"][12] = EnumEntry("VKFLY_VINS_CONFIG_SET_PRIME_VINS", """""")
  944. VKFLY_VINS_CONFIG_ACT_ENUM_END = 13
  945. enums["VKFLY_VINS_CONFIG_ACT"][13] = EnumEntry("VKFLY_VINS_CONFIG_ACT_ENUM_END", """""")
  946. # VKFLY_GUIDE_PATH_TYPE
  947. enums["VKFLY_GUIDE_PATH_TYPE"] = Enum()
  948. enums["VKFLY_GUIDE_PATH_TYPE"].bitmask = False
  949. VKFLY_GUIDE_PATH_ALT_THEN_XY = 0
  950. enums["VKFLY_GUIDE_PATH_TYPE"][0] = EnumEntry("VKFLY_GUIDE_PATH_ALT_THEN_XY", """Reach the target altitude at the starting horizontal position, then fly horizontally to the target.""")
  951. VKFLY_GUIDE_PATH_XY_THEN_ALT = 1
  952. enums["VKFLY_GUIDE_PATH_TYPE"][1] = EnumEntry("VKFLY_GUIDE_PATH_XY_THEN_ALT", """Fly horizontally at the starting altitude, then change altitude at the target horizontal position.""")
  953. VKFLY_GUIDE_PATH_LINEAR = 2
  954. enums["VKFLY_GUIDE_PATH_TYPE"][2] = EnumEntry("VKFLY_GUIDE_PATH_LINEAR", """Move along a straight three-dimensional path with coordinated horizontal and vertical progress.""")
  955. VKFLY_GUIDE_PATH_TYPE_ENUM_END = 3
  956. enums["VKFLY_GUIDE_PATH_TYPE"][3] = EnumEntry("VKFLY_GUIDE_PATH_TYPE_ENUM_END", """""")
  957. # VKFLY_GUIDE_YAW_MODE
  958. enums["VKFLY_GUIDE_YAW_MODE"] = Enum()
  959. enums["VKFLY_GUIDE_YAW_MODE"].bitmask = False
  960. VKFLY_GUIDE_YAW_FACE_TARGET = 0
  961. enums["VKFLY_GUIDE_YAW_MODE"][0] = EnumEntry("VKFLY_GUIDE_YAW_FACE_TARGET", """Face the target. For targets within 5 m, keep the current heading.""")
  962. VKFLY_GUIDE_YAW_HOLD = 1
  963. enums["VKFLY_GUIDE_YAW_MODE"][1] = EnumEntry("VKFLY_GUIDE_YAW_HOLD", """Keep the vehicle heading captured when this command is accepted throughout the approach.""")
  964. VKFLY_GUIDE_YAW_MODE_ENUM_END = 2
  965. enums["VKFLY_GUIDE_YAW_MODE"][2] = EnumEntry("VKFLY_GUIDE_YAW_MODE_ENUM_END", """""")
  966. # MAV_CMD
  967. enums["MAV_CMD"] = Enum()
  968. enums["MAV_CMD"].bitmask = False
  969. MAV_CMD_NAV_WAYPOINT = 16
  970. enums["MAV_CMD"][16] = EnumEntry("MAV_CMD_NAV_WAYPOINT", """Navigate to waypoint. This is intended for use in missions (for guided commands outside of missions use MAV_CMD_DO_REPOSITION).""")
  971. enums["MAV_CMD"][16].has_location = True
  972. enums["MAV_CMD"][16].param[1] = """Hold time. (ignored by fixed wing, time to stay at waypoint for rotary wing)"""
  973. enums["MAV_CMD"][16].label[1] = """Hold"""
  974. enums["MAV_CMD"][16].param[2] = """Acceptance radius (if the sphere with this radius is hit, the waypoint counts as reached)"""
  975. enums["MAV_CMD"][16].label[2] = """Accept Radius"""
  976. enums["MAV_CMD"][16].param[3] = """0 to pass through the WP, if > 0 radius to pass by WP. Positive value for clockwise orbit, negative value for counter-clockwise orbit. Allows trajectory control."""
  977. enums["MAV_CMD"][16].label[3] = """Pass Radius"""
  978. enums["MAV_CMD"][16].param[4] = """Desired yaw angle at waypoint (rotary wing). NaN to use the current system yaw heading mode (e.g. yaw towards next waypoint, yaw to home, etc.)."""
  979. enums["MAV_CMD"][16].label[4] = """Yaw"""
  980. enums["MAV_CMD"][16].param[5] = """Latitude"""
  981. enums["MAV_CMD"][16].label[5] = """Latitude"""
  982. enums["MAV_CMD"][16].param[6] = """Longitude"""
  983. enums["MAV_CMD"][16].label[6] = """Longitude"""
  984. enums["MAV_CMD"][16].param[7] = """Altitude"""
  985. enums["MAV_CMD"][16].label[7] = """Altitude"""
  986. MAV_CMD_NAV_LOITER_UNLIM = 17
  987. enums["MAV_CMD"][17] = EnumEntry("MAV_CMD_NAV_LOITER_UNLIM", """Loiter around this waypoint an unlimited amount of time""")
  988. enums["MAV_CMD"][17].has_location = True
  989. enums["MAV_CMD"][17].param[1] = """Empty"""
  990. enums["MAV_CMD"][17].param[2] = """Empty"""
  991. enums["MAV_CMD"][17].param[3] = """Loiter radius around waypoint for forward-only moving vehicles (not multicopters). If positive loiter clockwise, else counter-clockwise"""
  992. enums["MAV_CMD"][17].label[3] = """Radius"""
  993. enums["MAV_CMD"][17].param[4] = """Desired yaw angle. NaN to use the current system yaw heading mode (e.g. yaw towards next waypoint, yaw to home, etc.)."""
  994. enums["MAV_CMD"][17].label[4] = """Yaw"""
  995. enums["MAV_CMD"][17].param[5] = """Latitude"""
  996. enums["MAV_CMD"][17].label[5] = """Latitude"""
  997. enums["MAV_CMD"][17].param[6] = """Longitude"""
  998. enums["MAV_CMD"][17].label[6] = """Longitude"""
  999. enums["MAV_CMD"][17].param[7] = """Altitude"""
  1000. enums["MAV_CMD"][17].label[7] = """Altitude"""
  1001. MAV_CMD_NAV_LOITER_TURNS = 18
  1002. enums["MAV_CMD"][18] = EnumEntry("MAV_CMD_NAV_LOITER_TURNS", """Loiter around this waypoint for X turns""")
  1003. enums["MAV_CMD"][18].has_location = True
  1004. enums["MAV_CMD"][18].param[1] = """Number of turns."""
  1005. enums["MAV_CMD"][18].label[1] = """Turns"""
  1006. enums["MAV_CMD"][18].param[2] = """Leave loiter circle only once heading towards the next waypoint (0 = False)"""
  1007. enums["MAV_CMD"][18].label[2] = """Heading Required"""
  1008. enums["MAV_CMD"][18].param[3] = """Loiter radius around waypoint for forward-only moving vehicles (not multicopters). If positive loiter clockwise, else counter-clockwise"""
  1009. enums["MAV_CMD"][18].label[3] = """Radius"""
  1010. enums["MAV_CMD"][18].param[4] = """Loiter circle exit location and/or path to next waypoint ("xtrack") for forward-only moving vehicles (not multicopters). 0 for the vehicle to converge towards the center xtrack when it leaves the loiter (the line between the centers of the current and next waypoint), 1 to converge to the direct line between the location that the vehicle exits the loiter radius and the next waypoint. Otherwise the angle (in degrees) between the tangent of the loiter circle and the center xtrack at which the vehicle must leave the loiter (and converge to the center xtrack). NaN to use the current system default xtrack behaviour."""
  1011. enums["MAV_CMD"][18].label[4] = """Xtrack Location"""
  1012. enums["MAV_CMD"][18].param[5] = """Latitude"""
  1013. enums["MAV_CMD"][18].label[5] = """Latitude"""
  1014. enums["MAV_CMD"][18].param[6] = """Longitude"""
  1015. enums["MAV_CMD"][18].label[6] = """Longitude"""
  1016. enums["MAV_CMD"][18].param[7] = """Altitude"""
  1017. enums["MAV_CMD"][18].label[7] = """Altitude"""
  1018. MAV_CMD_NAV_LOITER_TIME = 19
  1019. enums["MAV_CMD"][19] = EnumEntry("MAV_CMD_NAV_LOITER_TIME", """Loiter at the specified latitude, longitude and altitude for a certain amount of time. Multicopter vehicles stop at the point (within a vehicle-specific acceptance radius). Forward-only moving vehicles (e.g. fixed-wing) circle the point with the specified radius/direction. If the Heading Required parameter (2) is non-zero forward moving aircraft will only leave the loiter circle once heading towards the next waypoint.""")
  1020. enums["MAV_CMD"][19].has_location = True
  1021. enums["MAV_CMD"][19].param[1] = """Loiter time (only starts once Lat, Lon and Alt is reached)."""
  1022. enums["MAV_CMD"][19].label[1] = """Time"""
  1023. enums["MAV_CMD"][19].param[2] = """Leave loiter circle only once heading towards the next waypoint (0 = False)"""
  1024. enums["MAV_CMD"][19].label[2] = """Heading Required"""
  1025. enums["MAV_CMD"][19].param[3] = """Loiter radius around waypoint for forward-only moving vehicles (not multicopters). If positive loiter clockwise, else counter-clockwise."""
  1026. enums["MAV_CMD"][19].label[3] = """Radius"""
  1027. enums["MAV_CMD"][19].param[4] = """Loiter circle exit location and/or path to next waypoint ("xtrack") for forward-only moving vehicles (not multicopters). 0 for the vehicle to converge towards the center xtrack when it leaves the loiter (the line between the centers of the current and next waypoint), 1 to converge to the direct line between the location that the vehicle exits the loiter radius and the next waypoint. Otherwise the angle (in degrees) between the tangent of the loiter circle and the center xtrack at which the vehicle must leave the loiter (and converge to the center xtrack). NaN to use the current system default xtrack behaviour."""
  1028. enums["MAV_CMD"][19].label[4] = """Xtrack Location"""
  1029. enums["MAV_CMD"][19].param[5] = """Latitude"""
  1030. enums["MAV_CMD"][19].label[5] = """Latitude"""
  1031. enums["MAV_CMD"][19].param[6] = """Longitude"""
  1032. enums["MAV_CMD"][19].label[6] = """Longitude"""
  1033. enums["MAV_CMD"][19].param[7] = """Altitude"""
  1034. enums["MAV_CMD"][19].label[7] = """Altitude"""
  1035. MAV_CMD_NAV_RETURN_TO_LAUNCH = 20
  1036. enums["MAV_CMD"][20] = EnumEntry("MAV_CMD_NAV_RETURN_TO_LAUNCH", """Return to launch location""")
  1037. enums["MAV_CMD"][20].param[1] = """Empty"""
  1038. enums["MAV_CMD"][20].param[2] = """Empty"""
  1039. enums["MAV_CMD"][20].param[3] = """Empty"""
  1040. enums["MAV_CMD"][20].param[4] = """Empty"""
  1041. enums["MAV_CMD"][20].param[5] = """Empty"""
  1042. enums["MAV_CMD"][20].param[6] = """Empty"""
  1043. enums["MAV_CMD"][20].param[7] = """Empty"""
  1044. MAV_CMD_NAV_LAND = 21
  1045. enums["MAV_CMD"][21] = EnumEntry("MAV_CMD_NAV_LAND", """Land at location.""")
  1046. enums["MAV_CMD"][21].has_location = True
  1047. enums["MAV_CMD"][21].param[1] = """Minimum target altitude if landing is aborted (0 = undefined/use system default)."""
  1048. enums["MAV_CMD"][21].label[1] = """Abort Alt"""
  1049. enums["MAV_CMD"][21].param[2] = """Precision land mode."""
  1050. enums["MAV_CMD"][21].label[2] = """Land Mode"""
  1051. enums["MAV_CMD"][21].param[3] = """Empty."""
  1052. enums["MAV_CMD"][21].param[4] = """Desired yaw angle. NaN to use the current system yaw heading mode (e.g. yaw towards next waypoint, yaw to home, etc.)."""
  1053. enums["MAV_CMD"][21].label[4] = """Yaw Angle"""
  1054. enums["MAV_CMD"][21].param[5] = """Latitude."""
  1055. enums["MAV_CMD"][21].label[5] = """Latitude"""
  1056. enums["MAV_CMD"][21].param[6] = """Longitude."""
  1057. enums["MAV_CMD"][21].label[6] = """Longitude"""
  1058. enums["MAV_CMD"][21].param[7] = """Landing altitude (ground level in current frame)."""
  1059. enums["MAV_CMD"][21].label[7] = """Altitude"""
  1060. MAV_CMD_NAV_TAKEOFF = 22
  1061. enums["MAV_CMD"][22] = EnumEntry("MAV_CMD_NAV_TAKEOFF", """Takeoff from ground / hand. Vehicles that support multiple takeoff modes (e.g. VTOL quadplane) should take off using the currently configured mode.""")
  1062. enums["MAV_CMD"][22].has_location = True
  1063. enums["MAV_CMD"][22].param[1] = """Minimum pitch (if airspeed sensor present), desired pitch without sensor"""
  1064. enums["MAV_CMD"][22].label[1] = """Pitch"""
  1065. enums["MAV_CMD"][22].param[2] = """Empty"""
  1066. enums["MAV_CMD"][22].param[3] = """Empty"""
  1067. enums["MAV_CMD"][22].param[4] = """Yaw angle (if magnetometer present), ignored without magnetometer. NaN to use the current system yaw heading mode (e.g. yaw towards next waypoint, yaw to home, etc.)."""
  1068. enums["MAV_CMD"][22].label[4] = """Yaw"""
  1069. enums["MAV_CMD"][22].param[5] = """Latitude"""
  1070. enums["MAV_CMD"][22].label[5] = """Latitude"""
  1071. enums["MAV_CMD"][22].param[6] = """Longitude"""
  1072. enums["MAV_CMD"][22].label[6] = """Longitude"""
  1073. enums["MAV_CMD"][22].param[7] = """Altitude"""
  1074. enums["MAV_CMD"][22].label[7] = """Altitude"""
  1075. MAV_CMD_NAV_LAND_LOCAL = 23
  1076. enums["MAV_CMD"][23] = EnumEntry("MAV_CMD_NAV_LAND_LOCAL", """Land at local position (local frame only)""")
  1077. enums["MAV_CMD"][23].has_location = True
  1078. enums["MAV_CMD"][23].param[1] = """Landing target number (if available)"""
  1079. enums["MAV_CMD"][23].label[1] = """Target"""
  1080. enums["MAV_CMD"][23].param[2] = """Maximum accepted offset from desired landing position - computed magnitude from spherical coordinates: d = sqrt(x^2 + y^2 + z^2), which gives the maximum accepted distance between the desired landing position and the position where the vehicle is about to land"""
  1081. enums["MAV_CMD"][23].label[2] = """Offset"""
  1082. enums["MAV_CMD"][23].param[3] = """Landing descend rate"""
  1083. enums["MAV_CMD"][23].label[3] = """Descend Rate"""
  1084. enums["MAV_CMD"][23].param[4] = """Desired yaw angle"""
  1085. enums["MAV_CMD"][23].label[4] = """Yaw"""
  1086. enums["MAV_CMD"][23].param[5] = """Y-axis position"""
  1087. enums["MAV_CMD"][23].label[5] = """Y Position"""
  1088. enums["MAV_CMD"][23].param[6] = """X-axis position"""
  1089. enums["MAV_CMD"][23].label[6] = """X Position"""
  1090. enums["MAV_CMD"][23].param[7] = """Z-axis / ground level position"""
  1091. enums["MAV_CMD"][23].label[7] = """Z Position"""
  1092. MAV_CMD_NAV_TAKEOFF_LOCAL = 24
  1093. enums["MAV_CMD"][24] = EnumEntry("MAV_CMD_NAV_TAKEOFF_LOCAL", """Takeoff from local position (local frame only)""")
  1094. enums["MAV_CMD"][24].has_location = True
  1095. enums["MAV_CMD"][24].param[1] = """Minimum pitch (if airspeed sensor present), desired pitch without sensor"""
  1096. enums["MAV_CMD"][24].label[1] = """Pitch"""
  1097. enums["MAV_CMD"][24].param[2] = """Empty"""
  1098. enums["MAV_CMD"][24].param[3] = """Takeoff ascend rate"""
  1099. enums["MAV_CMD"][24].label[3] = """Ascend Rate"""
  1100. enums["MAV_CMD"][24].param[4] = """Yaw angle (if magnetometer or another yaw estimation source present), ignored without one of these"""
  1101. enums["MAV_CMD"][24].label[4] = """Yaw"""
  1102. enums["MAV_CMD"][24].param[5] = """Y-axis position"""
  1103. enums["MAV_CMD"][24].label[5] = """Y Position"""
  1104. enums["MAV_CMD"][24].param[6] = """X-axis position"""
  1105. enums["MAV_CMD"][24].label[6] = """X Position"""
  1106. enums["MAV_CMD"][24].param[7] = """Z-axis position"""
  1107. enums["MAV_CMD"][24].label[7] = """Z Position"""
  1108. MAV_CMD_NAV_FOLLOW = 25
  1109. enums["MAV_CMD"][25] = EnumEntry("MAV_CMD_NAV_FOLLOW", """Vehicle following, i.e. this waypoint represents the position of a moving vehicle""")
  1110. enums["MAV_CMD"][25].has_location = True
  1111. enums["MAV_CMD"][25].param[1] = """Following logic to use (e.g. loitering or sinusoidal following) - depends on specific autopilot implementation"""
  1112. enums["MAV_CMD"][25].label[1] = """Following"""
  1113. enums["MAV_CMD"][25].param[2] = """Ground speed of vehicle to be followed"""
  1114. enums["MAV_CMD"][25].label[2] = """Ground Speed"""
  1115. enums["MAV_CMD"][25].param[3] = """Radius around waypoint. If positive loiter clockwise, else counter-clockwise"""
  1116. enums["MAV_CMD"][25].label[3] = """Radius"""
  1117. enums["MAV_CMD"][25].param[4] = """Desired yaw angle."""
  1118. enums["MAV_CMD"][25].label[4] = """Yaw"""
  1119. enums["MAV_CMD"][25].param[5] = """Latitude"""
  1120. enums["MAV_CMD"][25].label[5] = """Latitude"""
  1121. enums["MAV_CMD"][25].param[6] = """Longitude"""
  1122. enums["MAV_CMD"][25].label[6] = """Longitude"""
  1123. enums["MAV_CMD"][25].param[7] = """Altitude"""
  1124. enums["MAV_CMD"][25].label[7] = """Altitude"""
  1125. MAV_CMD_NAV_CONTINUE_AND_CHANGE_ALT = 30
  1126. enums["MAV_CMD"][30] = EnumEntry("MAV_CMD_NAV_CONTINUE_AND_CHANGE_ALT", """Continue on the current course and climb/descend to specified altitude. When the altitude is reached continue to the next command (i.e., don't proceed to the next command until the desired altitude is reached.""")
  1127. enums["MAV_CMD"][30].param[1] = """Climb or Descend (0 = Neutral, command completes when within 5m of this command's altitude, 1 = Climbing, command completes when at or above this command's altitude, 2 = Descending, command completes when at or below this command's altitude."""
  1128. enums["MAV_CMD"][30].label[1] = """Action"""
  1129. enums["MAV_CMD"][30].param[2] = """Empty"""
  1130. enums["MAV_CMD"][30].param[3] = """Empty"""
  1131. enums["MAV_CMD"][30].param[4] = """Empty"""
  1132. enums["MAV_CMD"][30].param[5] = """Empty"""
  1133. enums["MAV_CMD"][30].param[6] = """Empty"""
  1134. enums["MAV_CMD"][30].param[7] = """Desired altitude"""
  1135. enums["MAV_CMD"][30].label[7] = """Altitude"""
  1136. MAV_CMD_NAV_LOITER_TO_ALT = 31
  1137. enums["MAV_CMD"][31] = EnumEntry("MAV_CMD_NAV_LOITER_TO_ALT", """Begin loiter at the specified Latitude and Longitude. If Lat=Lon=0, then loiter at the current position. Don't consider the navigation command complete (don't leave loiter) until the altitude has been reached. Additionally, if the Heading Required parameter is non-zero the aircraft will not leave the loiter until heading toward the next waypoint.""")
  1138. enums["MAV_CMD"][31].has_location = True
  1139. enums["MAV_CMD"][31].param[1] = """Leave loiter circle only once heading towards the next waypoint (0 = False)"""
  1140. enums["MAV_CMD"][31].label[1] = """Heading Required"""
  1141. enums["MAV_CMD"][31].param[2] = """Loiter radius around waypoint for forward-only moving vehicles (not multicopters). If positive loiter clockwise, negative counter-clockwise, 0 means no change to standard loiter."""
  1142. enums["MAV_CMD"][31].label[2] = """Radius"""
  1143. enums["MAV_CMD"][31].param[3] = """Empty"""
  1144. enums["MAV_CMD"][31].param[4] = """Loiter circle exit location and/or path to next waypoint ("xtrack") for forward-only moving vehicles (not multicopters). 0 for the vehicle to converge towards the center xtrack when it leaves the loiter (the line between the centers of the current and next waypoint), 1 to converge to the direct line between the location that the vehicle exits the loiter radius and the next waypoint. Otherwise the angle (in degrees) between the tangent of the loiter circle and the center xtrack at which the vehicle must leave the loiter (and converge to the center xtrack). NaN to use the current system default xtrack behaviour."""
  1145. enums["MAV_CMD"][31].label[4] = """Xtrack Location"""
  1146. enums["MAV_CMD"][31].param[5] = """Latitude"""
  1147. enums["MAV_CMD"][31].label[5] = """Latitude"""
  1148. enums["MAV_CMD"][31].param[6] = """Longitude"""
  1149. enums["MAV_CMD"][31].label[6] = """Longitude"""
  1150. enums["MAV_CMD"][31].param[7] = """Altitude"""
  1151. enums["MAV_CMD"][31].label[7] = """Altitude"""
  1152. MAV_CMD_DO_FOLLOW = 32
  1153. enums["MAV_CMD"][32] = EnumEntry("MAV_CMD_DO_FOLLOW", """Begin following a target""")
  1154. enums["MAV_CMD"][32].param[1] = """System ID (of the FOLLOW_TARGET beacon). Send 0 to disable follow-me and return to the default position hold mode."""
  1155. enums["MAV_CMD"][32].label[1] = """System ID"""
  1156. enums["MAV_CMD"][32].param[2] = """Reserved"""
  1157. enums["MAV_CMD"][32].param[3] = """Reserved"""
  1158. enums["MAV_CMD"][32].param[4] = """Altitude mode: 0: Keep current altitude, 1: keep altitude difference to target, 2: go to a fixed altitude above home."""
  1159. enums["MAV_CMD"][32].label[4] = """Altitude Mode"""
  1160. enums["MAV_CMD"][32].param[5] = """Altitude above home. (used if mode=2)"""
  1161. enums["MAV_CMD"][32].label[5] = """Altitude"""
  1162. enums["MAV_CMD"][32].param[6] = """Reserved"""
  1163. enums["MAV_CMD"][32].param[7] = """Time to land in which the MAV should go to the default position hold mode after a message RX timeout."""
  1164. enums["MAV_CMD"][32].label[7] = """Time to Land"""
  1165. MAV_CMD_DO_FOLLOW_REPOSITION = 33
  1166. enums["MAV_CMD"][33] = EnumEntry("MAV_CMD_DO_FOLLOW_REPOSITION", """Reposition the MAV after a follow target command has been sent""")
  1167. enums["MAV_CMD"][33].param[1] = """Camera q1 (where 0 is on the ray from the camera to the tracking device)"""
  1168. enums["MAV_CMD"][33].label[1] = """Camera Q1"""
  1169. enums["MAV_CMD"][33].param[2] = """Camera q2"""
  1170. enums["MAV_CMD"][33].label[2] = """Camera Q2"""
  1171. enums["MAV_CMD"][33].param[3] = """Camera q3"""
  1172. enums["MAV_CMD"][33].label[3] = """Camera Q3"""
  1173. enums["MAV_CMD"][33].param[4] = """Camera q4"""
  1174. enums["MAV_CMD"][33].label[4] = """Camera Q4"""
  1175. enums["MAV_CMD"][33].param[5] = """altitude offset from target"""
  1176. enums["MAV_CMD"][33].label[5] = """Altitude Offset"""
  1177. enums["MAV_CMD"][33].param[6] = """X offset from target"""
  1178. enums["MAV_CMD"][33].label[6] = """X Offset"""
  1179. enums["MAV_CMD"][33].param[7] = """Y offset from target"""
  1180. enums["MAV_CMD"][33].label[7] = """Y Offset"""
  1181. MAV_CMD_DO_ORBIT = 34
  1182. enums["MAV_CMD"][34] = EnumEntry("MAV_CMD_DO_ORBIT", """Start orbiting on the circumference of a circle defined by the parameters. Setting values to NaN/INT32_MAX (as appropriate) results in using defaults.""")
  1183. enums["MAV_CMD"][34].has_location = True
  1184. enums["MAV_CMD"][34].param[1] = """Radius of the circle. Positive: orbit clockwise. Negative: orbit counter-clockwise. NaN: Use vehicle default radius, or current radius if already orbiting."""
  1185. enums["MAV_CMD"][34].label[1] = """Radius"""
  1186. enums["MAV_CMD"][34].param[2] = """Tangential Velocity. NaN: Use vehicle default velocity, or current velocity if already orbiting."""
  1187. enums["MAV_CMD"][34].label[2] = """Velocity"""
  1188. enums["MAV_CMD"][34].param[3] = """Yaw behavior of the vehicle."""
  1189. enums["MAV_CMD"][34].label[3] = """Yaw Behavior"""
  1190. enums["MAV_CMD"][34].param[4] = """Orbit around the centre point for this many radians (i.e. for a three-quarter orbit set 270*Pi/180). 0: Orbit forever. NaN: Use vehicle default, or current value if already orbiting."""
  1191. enums["MAV_CMD"][34].label[4] = """Orbits"""
  1192. enums["MAV_CMD"][34].param[5] = """Center point latitude (if no MAV_FRAME specified) / X coordinate according to MAV_FRAME. INT32_MAX (or NaN if sent in COMMAND_LONG): Use current vehicle position, or current center if already orbiting."""
  1193. enums["MAV_CMD"][34].label[5] = """Latitude/X"""
  1194. enums["MAV_CMD"][34].param[6] = """Center point longitude (if no MAV_FRAME specified) / Y coordinate according to MAV_FRAME. INT32_MAX (or NaN if sent in COMMAND_LONG): Use current vehicle position, or current center if already orbiting."""
  1195. enums["MAV_CMD"][34].label[6] = """Longitude/Y"""
  1196. enums["MAV_CMD"][34].param[7] = """Center point altitude (MSL) (if no MAV_FRAME specified) / Z coordinate according to MAV_FRAME. NaN: Use current vehicle altitude."""
  1197. enums["MAV_CMD"][34].label[7] = """Altitude/Z"""
  1198. MAV_CMD_NAV_ROI = 80
  1199. enums["MAV_CMD"][80] = EnumEntry("MAV_CMD_NAV_ROI", """Sets the region of interest (ROI) for a sensor set or the vehicle itself. This can then be used by the vehicle's control system to control the vehicle attitude and the attitude of various sensors such as cameras.""")
  1200. enums["MAV_CMD"][80].has_location = True
  1201. enums["MAV_CMD"][80].param[1] = """Region of interest mode."""
  1202. enums["MAV_CMD"][80].label[1] = """ROI Mode"""
  1203. enums["MAV_CMD"][80].param[2] = """Waypoint index/ target ID. (see MAV_ROI enum)"""
  1204. enums["MAV_CMD"][80].label[2] = """WP Index"""
  1205. enums["MAV_CMD"][80].param[3] = """ROI index (allows a vehicle to manage multiple ROI's)"""
  1206. enums["MAV_CMD"][80].label[3] = """ROI Index"""
  1207. enums["MAV_CMD"][80].param[4] = """Empty"""
  1208. enums["MAV_CMD"][80].param[5] = """x the location of the fixed ROI (see MAV_FRAME)"""
  1209. enums["MAV_CMD"][80].label[5] = """X"""
  1210. enums["MAV_CMD"][80].param[6] = """y"""
  1211. enums["MAV_CMD"][80].label[6] = """Y"""
  1212. enums["MAV_CMD"][80].param[7] = """z"""
  1213. enums["MAV_CMD"][80].label[7] = """Z"""
  1214. MAV_CMD_NAV_PATHPLANNING = 81
  1215. enums["MAV_CMD"][81] = EnumEntry("MAV_CMD_NAV_PATHPLANNING", """Control autonomous path planning on the MAV.""")
  1216. enums["MAV_CMD"][81].has_location = True
  1217. enums["MAV_CMD"][81].param[1] = """0: Disable local obstacle avoidance / local path planning (without resetting map), 1: Enable local path planning, 2: Enable and reset local path planning"""
  1218. enums["MAV_CMD"][81].label[1] = """Local Ctrl"""
  1219. enums["MAV_CMD"][81].param[2] = """0: Disable full path planning (without resetting map), 1: Enable, 2: Enable and reset map/occupancy grid, 3: Enable and reset planned route, but not occupancy grid"""
  1220. enums["MAV_CMD"][81].label[2] = """Global Ctrl"""
  1221. enums["MAV_CMD"][81].param[3] = """Empty"""
  1222. enums["MAV_CMD"][81].param[4] = """Yaw angle at goal"""
  1223. enums["MAV_CMD"][81].label[4] = """Yaw"""
  1224. enums["MAV_CMD"][81].param[5] = """Latitude/X of goal"""
  1225. enums["MAV_CMD"][81].label[5] = """Latitude/X"""
  1226. enums["MAV_CMD"][81].param[6] = """Longitude/Y of goal"""
  1227. enums["MAV_CMD"][81].label[6] = """Longitude/Y"""
  1228. enums["MAV_CMD"][81].param[7] = """Altitude/Z of goal"""
  1229. enums["MAV_CMD"][81].label[7] = """Altitude/Z"""
  1230. MAV_CMD_NAV_SPLINE_WAYPOINT = 82
  1231. enums["MAV_CMD"][82] = EnumEntry("MAV_CMD_NAV_SPLINE_WAYPOINT", """Navigate to waypoint using a spline path.""")
  1232. enums["MAV_CMD"][82].has_location = True
  1233. enums["MAV_CMD"][82].param[1] = """Hold time. (ignored by fixed wing, time to stay at waypoint for rotary wing)"""
  1234. enums["MAV_CMD"][82].label[1] = """Hold"""
  1235. enums["MAV_CMD"][82].param[2] = """Empty"""
  1236. enums["MAV_CMD"][82].param[3] = """Empty"""
  1237. enums["MAV_CMD"][82].param[4] = """Empty"""
  1238. enums["MAV_CMD"][82].param[5] = """Latitude/X of goal"""
  1239. enums["MAV_CMD"][82].label[5] = """Latitude/X"""
  1240. enums["MAV_CMD"][82].param[6] = """Longitude/Y of goal"""
  1241. enums["MAV_CMD"][82].label[6] = """Longitude/Y"""
  1242. enums["MAV_CMD"][82].param[7] = """Altitude/Z of goal"""
  1243. enums["MAV_CMD"][82].label[7] = """Altitude/Z"""
  1244. MAV_CMD_NAV_VTOL_TAKEOFF = 84
  1245. enums["MAV_CMD"][84] = EnumEntry("MAV_CMD_NAV_VTOL_TAKEOFF", """Takeoff from ground using VTOL mode, and transition to forward flight with specified heading. The command should be ignored by vehicles that dont support both VTOL and fixed-wing flight (multicopters, boats,etc.).""")
  1246. enums["MAV_CMD"][84].has_location = True
  1247. enums["MAV_CMD"][84].param[1] = """Empty"""
  1248. enums["MAV_CMD"][84].param[2] = """Front transition heading."""
  1249. enums["MAV_CMD"][84].label[2] = """Transition Heading"""
  1250. enums["MAV_CMD"][84].param[3] = """Empty"""
  1251. enums["MAV_CMD"][84].param[4] = """Yaw angle. NaN to use the current system yaw heading mode (e.g. yaw towards next waypoint, yaw to home, etc.)."""
  1252. enums["MAV_CMD"][84].label[4] = """Yaw Angle"""
  1253. enums["MAV_CMD"][84].param[5] = """Latitude"""
  1254. enums["MAV_CMD"][84].label[5] = """Latitude"""
  1255. enums["MAV_CMD"][84].param[6] = """Longitude"""
  1256. enums["MAV_CMD"][84].label[6] = """Longitude"""
  1257. enums["MAV_CMD"][84].param[7] = """Altitude"""
  1258. enums["MAV_CMD"][84].label[7] = """Altitude"""
  1259. MAV_CMD_NAV_VTOL_LAND = 85
  1260. enums["MAV_CMD"][85] = EnumEntry("MAV_CMD_NAV_VTOL_LAND", """Land using VTOL mode""")
  1261. enums["MAV_CMD"][85].has_location = True
  1262. enums["MAV_CMD"][85].param[1] = """Landing behaviour."""
  1263. enums["MAV_CMD"][85].label[1] = """Land Options"""
  1264. enums["MAV_CMD"][85].param[2] = """Empty"""
  1265. enums["MAV_CMD"][85].param[3] = """Approach altitude (with the same reference as the Altitude field). NaN if unspecified."""
  1266. enums["MAV_CMD"][85].label[3] = """Approach Altitude"""
  1267. enums["MAV_CMD"][85].param[4] = """Yaw angle. NaN to use the current system yaw heading mode (e.g. yaw towards next waypoint, yaw to home, etc.)."""
  1268. enums["MAV_CMD"][85].label[4] = """Yaw"""
  1269. enums["MAV_CMD"][85].param[5] = """Latitude"""
  1270. enums["MAV_CMD"][85].label[5] = """Latitude"""
  1271. enums["MAV_CMD"][85].param[6] = """Longitude"""
  1272. enums["MAV_CMD"][85].label[6] = """Longitude"""
  1273. enums["MAV_CMD"][85].param[7] = """Altitude (ground level) relative to the current coordinate frame. NaN to use system default landing altitude (ignore value)."""
  1274. enums["MAV_CMD"][85].label[7] = """Ground Altitude"""
  1275. MAV_CMD_NAV_GUIDED_ENABLE = 92
  1276. enums["MAV_CMD"][92] = EnumEntry("MAV_CMD_NAV_GUIDED_ENABLE", """hand control over to an external controller""")
  1277. enums["MAV_CMD"][92].param[1] = """On / Off (> 0.5f on)"""
  1278. enums["MAV_CMD"][92].label[1] = """Enable"""
  1279. enums["MAV_CMD"][92].param[2] = """Empty"""
  1280. enums["MAV_CMD"][92].param[3] = """Empty"""
  1281. enums["MAV_CMD"][92].param[4] = """Empty"""
  1282. enums["MAV_CMD"][92].param[5] = """Empty"""
  1283. enums["MAV_CMD"][92].param[6] = """Empty"""
  1284. enums["MAV_CMD"][92].param[7] = """Empty"""
  1285. MAV_CMD_NAV_DELAY = 93
  1286. enums["MAV_CMD"][93] = EnumEntry("MAV_CMD_NAV_DELAY", """Delay the next navigation command a number of seconds or until a specified time""")
  1287. enums["MAV_CMD"][93].param[1] = """Delay (-1 to enable time-of-day fields)"""
  1288. enums["MAV_CMD"][93].label[1] = """Delay"""
  1289. enums["MAV_CMD"][93].param[2] = """hour (24h format, UTC, -1 to ignore)"""
  1290. enums["MAV_CMD"][93].label[2] = """Hour"""
  1291. enums["MAV_CMD"][93].param[3] = """minute (24h format, UTC, -1 to ignore)"""
  1292. enums["MAV_CMD"][93].label[3] = """Minute"""
  1293. enums["MAV_CMD"][93].param[4] = """second (24h format, UTC, -1 to ignore)"""
  1294. enums["MAV_CMD"][93].label[4] = """Second"""
  1295. enums["MAV_CMD"][93].param[5] = """Empty"""
  1296. enums["MAV_CMD"][93].param[6] = """Empty"""
  1297. enums["MAV_CMD"][93].param[7] = """Empty"""
  1298. MAV_CMD_NAV_PAYLOAD_PLACE = 94
  1299. enums["MAV_CMD"][94] = EnumEntry("MAV_CMD_NAV_PAYLOAD_PLACE", """Descend and place payload. Vehicle moves to specified location, descends until it detects a hanging payload has reached the ground, and then releases the payload. If ground is not detected before the reaching the maximum descent value (param1), the command will complete without releasing the payload.""")
  1300. enums["MAV_CMD"][94].has_location = True
  1301. enums["MAV_CMD"][94].param[1] = """Maximum distance to descend."""
  1302. enums["MAV_CMD"][94].label[1] = """Max Descent"""
  1303. enums["MAV_CMD"][94].param[2] = """Empty"""
  1304. enums["MAV_CMD"][94].param[3] = """Empty"""
  1305. enums["MAV_CMD"][94].param[4] = """Empty"""
  1306. enums["MAV_CMD"][94].param[5] = """Latitude"""
  1307. enums["MAV_CMD"][94].label[5] = """Latitude"""
  1308. enums["MAV_CMD"][94].param[6] = """Longitude"""
  1309. enums["MAV_CMD"][94].label[6] = """Longitude"""
  1310. enums["MAV_CMD"][94].param[7] = """Altitude"""
  1311. enums["MAV_CMD"][94].label[7] = """Altitude"""
  1312. MAV_CMD_NAV_LAST = 95
  1313. enums["MAV_CMD"][95] = EnumEntry("MAV_CMD_NAV_LAST", """NOP - This command is only used to mark the upper limit of the NAV/ACTION commands in the enumeration""")
  1314. enums["MAV_CMD"][95].param[1] = """Empty"""
  1315. enums["MAV_CMD"][95].param[2] = """Empty"""
  1316. enums["MAV_CMD"][95].param[3] = """Empty"""
  1317. enums["MAV_CMD"][95].param[4] = """Empty"""
  1318. enums["MAV_CMD"][95].param[5] = """Empty"""
  1319. enums["MAV_CMD"][95].param[6] = """Empty"""
  1320. enums["MAV_CMD"][95].param[7] = """Empty"""
  1321. MAV_CMD_CONDITION_DELAY = 112
  1322. enums["MAV_CMD"][112] = EnumEntry("MAV_CMD_CONDITION_DELAY", """Delay mission state machine.""")
  1323. enums["MAV_CMD"][112].param[1] = """Delay"""
  1324. enums["MAV_CMD"][112].label[1] = """Delay"""
  1325. enums["MAV_CMD"][112].param[2] = """Empty"""
  1326. enums["MAV_CMD"][112].param[3] = """Empty"""
  1327. enums["MAV_CMD"][112].param[4] = """Empty"""
  1328. enums["MAV_CMD"][112].param[5] = """Empty"""
  1329. enums["MAV_CMD"][112].param[6] = """Empty"""
  1330. enums["MAV_CMD"][112].param[7] = """Empty"""
  1331. MAV_CMD_CONDITION_CHANGE_ALT = 113
  1332. enums["MAV_CMD"][113] = EnumEntry("MAV_CMD_CONDITION_CHANGE_ALT", """Ascend/descend to target altitude at specified rate. Delay mission state machine until desired altitude reached.""")
  1333. enums["MAV_CMD"][113].param[1] = """Descent / Ascend rate."""
  1334. enums["MAV_CMD"][113].label[1] = """Rate"""
  1335. enums["MAV_CMD"][113].param[2] = """Empty"""
  1336. enums["MAV_CMD"][113].param[3] = """Empty"""
  1337. enums["MAV_CMD"][113].param[4] = """Empty"""
  1338. enums["MAV_CMD"][113].param[5] = """Empty"""
  1339. enums["MAV_CMD"][113].param[6] = """Empty"""
  1340. enums["MAV_CMD"][113].param[7] = """Target Altitude"""
  1341. enums["MAV_CMD"][113].label[7] = """Altitude"""
  1342. MAV_CMD_CONDITION_DISTANCE = 114
  1343. enums["MAV_CMD"][114] = EnumEntry("MAV_CMD_CONDITION_DISTANCE", """Delay mission state machine until within desired distance of next NAV point.""")
  1344. enums["MAV_CMD"][114].param[1] = """Distance."""
  1345. enums["MAV_CMD"][114].label[1] = """Distance"""
  1346. enums["MAV_CMD"][114].param[2] = """Empty"""
  1347. enums["MAV_CMD"][114].param[3] = """Empty"""
  1348. enums["MAV_CMD"][114].param[4] = """Empty"""
  1349. enums["MAV_CMD"][114].param[5] = """Empty"""
  1350. enums["MAV_CMD"][114].param[6] = """Empty"""
  1351. enums["MAV_CMD"][114].param[7] = """Empty"""
  1352. MAV_CMD_CONDITION_YAW = 115
  1353. enums["MAV_CMD"][115] = EnumEntry("MAV_CMD_CONDITION_YAW", """Reach a certain target angle.""")
  1354. enums["MAV_CMD"][115].param[1] = """target angle [0-360]. Absolute angles: 0 is north. Relative angle: 0 is initial yaw. Direction set by param3."""
  1355. enums["MAV_CMD"][115].label[1] = """Angle"""
  1356. enums["MAV_CMD"][115].param[2] = """angular speed"""
  1357. enums["MAV_CMD"][115].label[2] = """Angular Speed"""
  1358. enums["MAV_CMD"][115].param[3] = """direction: -1: counter clockwise, 0: shortest direction, 1: clockwise"""
  1359. enums["MAV_CMD"][115].label[3] = """Direction"""
  1360. enums["MAV_CMD"][115].param[4] = """0: absolute angle, 1: relative offset"""
  1361. enums["MAV_CMD"][115].label[4] = """Relative"""
  1362. enums["MAV_CMD"][115].param[5] = """Empty"""
  1363. enums["MAV_CMD"][115].param[6] = """Empty"""
  1364. enums["MAV_CMD"][115].param[7] = """Empty"""
  1365. MAV_CMD_CONDITION_LAST = 159
  1366. enums["MAV_CMD"][159] = EnumEntry("MAV_CMD_CONDITION_LAST", """NOP - This command is only used to mark the upper limit of the CONDITION commands in the enumeration""")
  1367. enums["MAV_CMD"][159].param[1] = """Empty"""
  1368. enums["MAV_CMD"][159].param[2] = """Empty"""
  1369. enums["MAV_CMD"][159].param[3] = """Empty"""
  1370. enums["MAV_CMD"][159].param[4] = """Empty"""
  1371. enums["MAV_CMD"][159].param[5] = """Empty"""
  1372. enums["MAV_CMD"][159].param[6] = """Empty"""
  1373. enums["MAV_CMD"][159].param[7] = """Empty"""
  1374. MAV_CMD_DO_SET_MODE = 176
  1375. enums["MAV_CMD"][176] = EnumEntry("MAV_CMD_DO_SET_MODE", """Set system mode.""")
  1376. enums["MAV_CMD"][176].param[1] = """Mode"""
  1377. enums["MAV_CMD"][176].label[1] = """Mode"""
  1378. enums["MAV_CMD"][176].param[2] = """Custom mode - this is system specific, please refer to the individual autopilot specifications for details."""
  1379. enums["MAV_CMD"][176].label[2] = """Custom Mode"""
  1380. enums["MAV_CMD"][176].param[3] = """Custom sub mode - this is system specific, please refer to the individual autopilot specifications for details."""
  1381. enums["MAV_CMD"][176].label[3] = """Custom Submode"""
  1382. enums["MAV_CMD"][176].param[4] = """Empty"""
  1383. enums["MAV_CMD"][176].param[5] = """Empty"""
  1384. enums["MAV_CMD"][176].param[6] = """Empty"""
  1385. enums["MAV_CMD"][176].param[7] = """Empty"""
  1386. MAV_CMD_DO_JUMP = 177
  1387. enums["MAV_CMD"][177] = EnumEntry("MAV_CMD_DO_JUMP", """Jump to the desired command in the mission list. Repeat this action only the specified number of times""")
  1388. enums["MAV_CMD"][177].param[1] = """Sequence number"""
  1389. enums["MAV_CMD"][177].label[1] = """Number"""
  1390. enums["MAV_CMD"][177].param[2] = """Repeat count"""
  1391. enums["MAV_CMD"][177].label[2] = """Repeat"""
  1392. enums["MAV_CMD"][177].param[3] = """Empty"""
  1393. enums["MAV_CMD"][177].param[4] = """Empty"""
  1394. enums["MAV_CMD"][177].param[5] = """Empty"""
  1395. enums["MAV_CMD"][177].param[6] = """Empty"""
  1396. enums["MAV_CMD"][177].param[7] = """Empty"""
  1397. MAV_CMD_DO_CHANGE_SPEED = 178
  1398. enums["MAV_CMD"][178] = EnumEntry("MAV_CMD_DO_CHANGE_SPEED", """Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change""")
  1399. enums["MAV_CMD"][178].param[1] = """Speed type of value set in param2 (such as airspeed, ground speed, and so on)"""
  1400. enums["MAV_CMD"][178].label[1] = """Speed Type"""
  1401. enums["MAV_CMD"][178].param[2] = """Speed (-1 indicates no change, -2 indicates return to default vehicle speed)"""
  1402. enums["MAV_CMD"][178].label[2] = """Speed"""
  1403. enums["MAV_CMD"][178].param[3] = """Throttle (-1 indicates no change, -2 indicates return to default vehicle throttle value)"""
  1404. enums["MAV_CMD"][178].label[3] = """Throttle"""
  1405. enums["MAV_CMD"][178].param[4] = """Reserved (default:0)"""
  1406. enums["MAV_CMD"][178].param[5] = """Reserved (default:0)"""
  1407. enums["MAV_CMD"][178].param[6] = """Reserved (default:0)"""
  1408. enums["MAV_CMD"][178].param[7] = """Reserved (default:0)"""
  1409. MAV_CMD_DO_SET_HOME = 179
  1410. enums["MAV_CMD"][179] = EnumEntry(
  1411. "MAV_CMD_DO_SET_HOME",
  1412. """
  1413. Sets the home position to either to the current position or a specified position.
  1414. The home position is the default position that the system will return to and land on.
  1415. The position is set automatically by the system during the takeoff (and may also be set using this command).
  1416. Note: the current home position may be emitted in a HOME_POSITION message on request (using MAV_CMD_REQUEST_MESSAGE with param1=242).
  1417. """,
  1418. )
  1419. enums["MAV_CMD"][179].has_location = True
  1420. enums["MAV_CMD"][179].param[1] = """Use current (1=use current location, 0=use specified location)"""
  1421. enums["MAV_CMD"][179].label[1] = """Use Current"""
  1422. enums["MAV_CMD"][179].param[2] = """Roll angle (of surface). Range: -180..180 degrees. NAN or 0 means value not set. 0.01 indicates zero roll."""
  1423. enums["MAV_CMD"][179].label[2] = """Roll"""
  1424. enums["MAV_CMD"][179].param[3] = """Pitch angle (of surface). Range: -90..90 degrees. NAN or 0 means value not set. 0.01 means zero pitch."""
  1425. enums["MAV_CMD"][179].label[3] = """Pitch"""
  1426. enums["MAV_CMD"][179].param[4] = """Yaw angle. NaN to use default heading. Range: -180..180 degrees."""
  1427. enums["MAV_CMD"][179].label[4] = """Yaw"""
  1428. enums["MAV_CMD"][179].param[5] = """Latitude"""
  1429. enums["MAV_CMD"][179].label[5] = """Latitude"""
  1430. enums["MAV_CMD"][179].param[6] = """Longitude"""
  1431. enums["MAV_CMD"][179].label[6] = """Longitude"""
  1432. enums["MAV_CMD"][179].param[7] = """Altitude"""
  1433. enums["MAV_CMD"][179].label[7] = """Altitude"""
  1434. MAV_CMD_DO_SET_PARAMETER = 180
  1435. enums["MAV_CMD"][180] = EnumEntry("MAV_CMD_DO_SET_PARAMETER", """Set a system parameter. Caution! Use of this command requires knowledge of the numeric enumeration value of the parameter.""")
  1436. enums["MAV_CMD"][180].param[1] = """Parameter number"""
  1437. enums["MAV_CMD"][180].label[1] = """Number"""
  1438. enums["MAV_CMD"][180].param[2] = """Parameter value"""
  1439. enums["MAV_CMD"][180].label[2] = """Value"""
  1440. enums["MAV_CMD"][180].param[3] = """Empty"""
  1441. enums["MAV_CMD"][180].param[4] = """Empty"""
  1442. enums["MAV_CMD"][180].param[5] = """Empty"""
  1443. enums["MAV_CMD"][180].param[6] = """Empty"""
  1444. enums["MAV_CMD"][180].param[7] = """Empty"""
  1445. MAV_CMD_DO_SET_RELAY = 181
  1446. enums["MAV_CMD"][181] = EnumEntry("MAV_CMD_DO_SET_RELAY", """Set a relay to a condition.""")
  1447. enums["MAV_CMD"][181].param[1] = """Relay instance number."""
  1448. enums["MAV_CMD"][181].label[1] = """Instance"""
  1449. enums["MAV_CMD"][181].param[2] = """Setting. (1=on, 0=off, others possible depending on system hardware)"""
  1450. enums["MAV_CMD"][181].label[2] = """Setting"""
  1451. enums["MAV_CMD"][181].param[3] = """Empty"""
  1452. enums["MAV_CMD"][181].param[4] = """Empty"""
  1453. enums["MAV_CMD"][181].param[5] = """Empty"""
  1454. enums["MAV_CMD"][181].param[6] = """Empty"""
  1455. enums["MAV_CMD"][181].param[7] = """Empty"""
  1456. MAV_CMD_DO_REPEAT_RELAY = 182
  1457. enums["MAV_CMD"][182] = EnumEntry("MAV_CMD_DO_REPEAT_RELAY", """Cycle a relay on and off for a desired number of cycles with a desired period.""")
  1458. enums["MAV_CMD"][182].param[1] = """Relay instance number."""
  1459. enums["MAV_CMD"][182].label[1] = """Instance"""
  1460. enums["MAV_CMD"][182].param[2] = """Cycle count."""
  1461. enums["MAV_CMD"][182].label[2] = """Count"""
  1462. enums["MAV_CMD"][182].param[3] = """Cycle time."""
  1463. enums["MAV_CMD"][182].label[3] = """Time"""
  1464. enums["MAV_CMD"][182].param[4] = """Empty"""
  1465. enums["MAV_CMD"][182].param[5] = """Empty"""
  1466. enums["MAV_CMD"][182].param[6] = """Empty"""
  1467. enums["MAV_CMD"][182].param[7] = """Empty"""
  1468. MAV_CMD_DO_SET_SERVO = 183
  1469. enums["MAV_CMD"][183] = EnumEntry("MAV_CMD_DO_SET_SERVO", """Set a servo to a desired PWM value.""")
  1470. enums["MAV_CMD"][183].param[1] = """Servo instance number."""
  1471. enums["MAV_CMD"][183].label[1] = """Instance"""
  1472. enums["MAV_CMD"][183].param[2] = """Pulse Width Modulation."""
  1473. enums["MAV_CMD"][183].label[2] = """PWM"""
  1474. enums["MAV_CMD"][183].param[3] = """Empty"""
  1475. enums["MAV_CMD"][183].param[4] = """Empty"""
  1476. enums["MAV_CMD"][183].param[5] = """Empty"""
  1477. enums["MAV_CMD"][183].param[6] = """Empty"""
  1478. enums["MAV_CMD"][183].param[7] = """Empty"""
  1479. MAV_CMD_DO_REPEAT_SERVO = 184
  1480. enums["MAV_CMD"][184] = EnumEntry("MAV_CMD_DO_REPEAT_SERVO", """Cycle a between its nominal setting and a desired PWM for a desired number of cycles with a desired period.""")
  1481. enums["MAV_CMD"][184].param[1] = """Servo instance number."""
  1482. enums["MAV_CMD"][184].label[1] = """Instance"""
  1483. enums["MAV_CMD"][184].param[2] = """Pulse Width Modulation."""
  1484. enums["MAV_CMD"][184].label[2] = """PWM"""
  1485. enums["MAV_CMD"][184].param[3] = """Cycle count."""
  1486. enums["MAV_CMD"][184].label[3] = """Count"""
  1487. enums["MAV_CMD"][184].param[4] = """Cycle time."""
  1488. enums["MAV_CMD"][184].label[4] = """Time"""
  1489. enums["MAV_CMD"][184].param[5] = """Empty"""
  1490. enums["MAV_CMD"][184].param[6] = """Empty"""
  1491. enums["MAV_CMD"][184].param[7] = """Empty"""
  1492. MAV_CMD_DO_FLIGHTTERMINATION = 185
  1493. enums["MAV_CMD"][185] = EnumEntry(
  1494. "MAV_CMD_DO_FLIGHTTERMINATION",
  1495. """Terminate flight immediately.
  1496. Flight termination immediately and irreversibly terminates the current flight, returning the vehicle to ground.
  1497. The vehicle will ignore RC or other input until it has been power-cycled.
  1498. Termination may trigger safety measures, including: disabling motors and deployment of parachute on multicopters, and setting flight surfaces to initiate a landing pattern on fixed-wing).
  1499. On multicopters without a parachute it may trigger a crash landing.
  1500. Support for this command can be tested using the protocol bit: MAV_PROTOCOL_CAPABILITY_FLIGHT_TERMINATION.
  1501. Support for this command can also be tested by sending the command with param1=0 (< 0.5); the ACK should be either MAV_RESULT_FAILED or MAV_RESULT_UNSUPPORTED.
  1502. """,
  1503. )
  1504. enums["MAV_CMD"][185].param[1] = """Flight termination activated if > 0.5. Otherwise not activated and ACK with MAV_RESULT_FAILED."""
  1505. enums["MAV_CMD"][185].label[1] = """Terminate"""
  1506. enums["MAV_CMD"][185].param[2] = """Empty"""
  1507. enums["MAV_CMD"][185].param[3] = """Empty"""
  1508. enums["MAV_CMD"][185].param[4] = """Empty"""
  1509. enums["MAV_CMD"][185].param[5] = """Empty"""
  1510. enums["MAV_CMD"][185].param[6] = """Empty"""
  1511. enums["MAV_CMD"][185].param[7] = """Empty"""
  1512. MAV_CMD_DO_CHANGE_ALTITUDE = 186
  1513. enums["MAV_CMD"][186] = EnumEntry("MAV_CMD_DO_CHANGE_ALTITUDE", """Change altitude set point.""")
  1514. enums["MAV_CMD"][186].param[1] = """Altitude."""
  1515. enums["MAV_CMD"][186].label[1] = """Altitude"""
  1516. enums["MAV_CMD"][186].param[2] = """Frame of new altitude."""
  1517. enums["MAV_CMD"][186].label[2] = """Frame"""
  1518. enums["MAV_CMD"][186].param[3] = """Empty"""
  1519. enums["MAV_CMD"][186].param[4] = """Empty"""
  1520. enums["MAV_CMD"][186].param[5] = """Empty"""
  1521. enums["MAV_CMD"][186].param[6] = """Empty"""
  1522. enums["MAV_CMD"][186].param[7] = """Empty"""
  1523. MAV_CMD_DO_SET_ACTUATOR = 187
  1524. enums["MAV_CMD"][187] = EnumEntry("MAV_CMD_DO_SET_ACTUATOR", """Sets actuators (e.g. servos) to a desired value. The actuator numbers are mapped to specific outputs (e.g. on any MAIN or AUX PWM or UAVCAN) using a flight-stack specific mechanism (i.e. a parameter).""")
  1525. enums["MAV_CMD"][187].param[1] = """Actuator 1 value, scaled from [-1 to 1]. NaN to ignore."""
  1526. enums["MAV_CMD"][187].label[1] = """Actuator 1"""
  1527. enums["MAV_CMD"][187].param[2] = """Actuator 2 value, scaled from [-1 to 1]. NaN to ignore."""
  1528. enums["MAV_CMD"][187].label[2] = """Actuator 2"""
  1529. enums["MAV_CMD"][187].param[3] = """Actuator 3 value, scaled from [-1 to 1]. NaN to ignore."""
  1530. enums["MAV_CMD"][187].label[3] = """Actuator 3"""
  1531. enums["MAV_CMD"][187].param[4] = """Actuator 4 value, scaled from [-1 to 1]. NaN to ignore."""
  1532. enums["MAV_CMD"][187].label[4] = """Actuator 4"""
  1533. enums["MAV_CMD"][187].param[5] = """Actuator 5 value, scaled from [-1 to 1]. NaN to ignore."""
  1534. enums["MAV_CMD"][187].label[5] = """Actuator 5"""
  1535. enums["MAV_CMD"][187].param[6] = """Actuator 6 value, scaled from [-1 to 1]. NaN to ignore."""
  1536. enums["MAV_CMD"][187].label[6] = """Actuator 6"""
  1537. enums["MAV_CMD"][187].param[7] = """Index of actuator set (i.e if set to 1, Actuator 1 becomes Actuator 7)"""
  1538. enums["MAV_CMD"][187].label[7] = """Index"""
  1539. MAV_CMD_DO_LAND_START = 189
  1540. enums["MAV_CMD"][189] = EnumEntry(
  1541. "MAV_CMD_DO_LAND_START",
  1542. """Mission command to perform a landing. This is used as a marker in a mission to tell the autopilot where a sequence of mission items that represents a landing starts.
  1543. It may also be sent via a COMMAND_LONG to trigger a landing, in which case the nearest (geographically) landing sequence in the mission will be used.
  1544. The Latitude/Longitude/Altitude is optional, and may be set to 0 if not needed. If specified then it will be used to help find the closest landing sequence.
  1545. """,
  1546. )
  1547. enums["MAV_CMD"][189].has_location = True
  1548. enums["MAV_CMD"][189].param[1] = """Empty"""
  1549. enums["MAV_CMD"][189].param[2] = """Empty"""
  1550. enums["MAV_CMD"][189].param[3] = """Empty"""
  1551. enums["MAV_CMD"][189].param[4] = """Empty"""
  1552. enums["MAV_CMD"][189].param[5] = """Latitude"""
  1553. enums["MAV_CMD"][189].label[5] = """Latitude"""
  1554. enums["MAV_CMD"][189].param[6] = """Longitude"""
  1555. enums["MAV_CMD"][189].label[6] = """Longitude"""
  1556. enums["MAV_CMD"][189].param[7] = """Altitude"""
  1557. enums["MAV_CMD"][189].label[7] = """Altitude"""
  1558. MAV_CMD_DO_RALLY_LAND = 190
  1559. enums["MAV_CMD"][190] = EnumEntry("MAV_CMD_DO_RALLY_LAND", """Mission command to perform a landing from a rally point.""")
  1560. enums["MAV_CMD"][190].param[1] = """Break altitude"""
  1561. enums["MAV_CMD"][190].label[1] = """Altitude"""
  1562. enums["MAV_CMD"][190].param[2] = """Landing speed"""
  1563. enums["MAV_CMD"][190].label[2] = """Speed"""
  1564. enums["MAV_CMD"][190].param[3] = """Empty"""
  1565. enums["MAV_CMD"][190].param[4] = """Empty"""
  1566. enums["MAV_CMD"][190].param[5] = """Empty"""
  1567. enums["MAV_CMD"][190].param[6] = """Empty"""
  1568. enums["MAV_CMD"][190].param[7] = """Empty"""
  1569. MAV_CMD_DO_GO_AROUND = 191
  1570. enums["MAV_CMD"][191] = EnumEntry("MAV_CMD_DO_GO_AROUND", """Mission command to safely abort an autonomous landing.""")
  1571. enums["MAV_CMD"][191].param[1] = """Altitude"""
  1572. enums["MAV_CMD"][191].label[1] = """Altitude"""
  1573. enums["MAV_CMD"][191].param[2] = """Empty"""
  1574. enums["MAV_CMD"][191].param[3] = """Empty"""
  1575. enums["MAV_CMD"][191].param[4] = """Empty"""
  1576. enums["MAV_CMD"][191].param[5] = """Empty"""
  1577. enums["MAV_CMD"][191].param[6] = """Empty"""
  1578. enums["MAV_CMD"][191].param[7] = """Empty"""
  1579. MAV_CMD_DO_REPOSITION = 192
  1580. enums["MAV_CMD"][192] = EnumEntry("MAV_CMD_DO_REPOSITION", """Reposition the vehicle to a specific WGS84 global position. This command is intended for guided commands (for missions use MAV_CMD_NAV_WAYPOINT instead).""")
  1581. enums["MAV_CMD"][192].has_location = True
  1582. enums["MAV_CMD"][192].param[1] = """Ground speed, less than 0 (-1) for default"""
  1583. enums["MAV_CMD"][192].label[1] = """Speed"""
  1584. enums["MAV_CMD"][192].param[2] = """Bitmask of option flags."""
  1585. enums["MAV_CMD"][192].label[2] = """Bitmask"""
  1586. enums["MAV_CMD"][192].param[3] = """Loiter radius for planes. Positive values only, direction is controlled by Yaw value. A value of zero or NaN is ignored. """
  1587. enums["MAV_CMD"][192].label[3] = """Radius"""
  1588. enums["MAV_CMD"][192].param[4] = """Yaw heading. NaN to use the current system yaw heading mode (e.g. yaw towards next waypoint, yaw to home, etc.). For planes indicates loiter direction (0: clockwise, 1: counter clockwise)"""
  1589. enums["MAV_CMD"][192].label[4] = """Yaw"""
  1590. enums["MAV_CMD"][192].param[5] = """Latitude"""
  1591. enums["MAV_CMD"][192].label[5] = """Latitude"""
  1592. enums["MAV_CMD"][192].param[6] = """Longitude"""
  1593. enums["MAV_CMD"][192].label[6] = """Longitude"""
  1594. enums["MAV_CMD"][192].param[7] = """Altitude"""
  1595. enums["MAV_CMD"][192].label[7] = """Altitude"""
  1596. MAV_CMD_DO_PAUSE_CONTINUE = 193
  1597. enums["MAV_CMD"][193] = EnumEntry("MAV_CMD_DO_PAUSE_CONTINUE", """If in a GPS controlled position mode, hold the current position or continue.""")
  1598. enums["MAV_CMD"][193].param[1] = """0: Pause current mission or reposition command, hold current position. 1: Continue mission. A VTOL capable vehicle should enter hover mode (multicopter and VTOL planes). A plane should loiter with the default loiter radius."""
  1599. enums["MAV_CMD"][193].label[1] = """Continue"""
  1600. enums["MAV_CMD"][193].param[2] = """Reserved"""
  1601. enums["MAV_CMD"][193].param[3] = """Reserved"""
  1602. enums["MAV_CMD"][193].param[4] = """Reserved"""
  1603. enums["MAV_CMD"][193].param[5] = """Reserved"""
  1604. enums["MAV_CMD"][193].param[6] = """Reserved"""
  1605. enums["MAV_CMD"][193].param[7] = """Reserved"""
  1606. MAV_CMD_DO_SET_REVERSE = 194
  1607. enums["MAV_CMD"][194] = EnumEntry("MAV_CMD_DO_SET_REVERSE", """Set moving direction to forward or reverse.""")
  1608. enums["MAV_CMD"][194].param[1] = """Direction (0=Forward, 1=Reverse)"""
  1609. enums["MAV_CMD"][194].label[1] = """Reverse"""
  1610. enums["MAV_CMD"][194].param[2] = """Empty"""
  1611. enums["MAV_CMD"][194].param[3] = """Empty"""
  1612. enums["MAV_CMD"][194].param[4] = """Empty"""
  1613. enums["MAV_CMD"][194].param[5] = """Empty"""
  1614. enums["MAV_CMD"][194].param[6] = """Empty"""
  1615. enums["MAV_CMD"][194].param[7] = """Empty"""
  1616. MAV_CMD_DO_SET_ROI_LOCATION = 195
  1617. enums["MAV_CMD"][195] = EnumEntry("MAV_CMD_DO_SET_ROI_LOCATION", """Sets the region of interest (ROI) to a location. This can then be used by the vehicle's control system to control the vehicle attitude and the attitude of various sensors such as cameras. This command can be sent to a gimbal manager but not to a gimbal device. A gimbal is not to react to this message.""")
  1618. enums["MAV_CMD"][195].has_location = True
  1619. enums["MAV_CMD"][195].param[1] = """Component ID of gimbal device to address (or 1-6 for non-MAVLink gimbal), 0 for all gimbal device components. Send command multiple times for more than one gimbal (but not all gimbals)."""
  1620. enums["MAV_CMD"][195].label[1] = """Gimbal device ID"""
  1621. enums["MAV_CMD"][195].param[2] = """Empty"""
  1622. enums["MAV_CMD"][195].param[3] = """Empty"""
  1623. enums["MAV_CMD"][195].param[4] = """Empty"""
  1624. enums["MAV_CMD"][195].param[5] = """Latitude of ROI location"""
  1625. enums["MAV_CMD"][195].label[5] = """Latitude"""
  1626. enums["MAV_CMD"][195].param[6] = """Longitude of ROI location"""
  1627. enums["MAV_CMD"][195].label[6] = """Longitude"""
  1628. enums["MAV_CMD"][195].param[7] = """Altitude of ROI location"""
  1629. enums["MAV_CMD"][195].label[7] = """Altitude"""
  1630. MAV_CMD_DO_SET_ROI_WPNEXT_OFFSET = 196
  1631. enums["MAV_CMD"][196] = EnumEntry("MAV_CMD_DO_SET_ROI_WPNEXT_OFFSET", """Sets the region of interest (ROI) to be toward next waypoint, with optional pitch/roll/yaw offset. This can then be used by the vehicle's control system to control the vehicle attitude and the attitude of various sensors such as cameras. This command can be sent to a gimbal manager but not to a gimbal device. A gimbal device is not to react to this message.""")
  1632. enums["MAV_CMD"][196].param[1] = """Component ID of gimbal device to address (or 1-6 for non-MAVLink gimbal), 0 for all gimbal device components. Send command multiple times for more than one gimbal (but not all gimbals)."""
  1633. enums["MAV_CMD"][196].label[1] = """Gimbal device ID"""
  1634. enums["MAV_CMD"][196].param[2] = """Empty"""
  1635. enums["MAV_CMD"][196].param[3] = """Empty"""
  1636. enums["MAV_CMD"][196].param[4] = """Empty"""
  1637. enums["MAV_CMD"][196].param[5] = """Pitch offset from next waypoint, positive pitching up"""
  1638. enums["MAV_CMD"][196].label[5] = """Pitch Offset"""
  1639. enums["MAV_CMD"][196].param[6] = """Roll offset from next waypoint, positive rolling to the right"""
  1640. enums["MAV_CMD"][196].label[6] = """Roll Offset"""
  1641. enums["MAV_CMD"][196].param[7] = """Yaw offset from next waypoint, positive yawing to the right"""
  1642. enums["MAV_CMD"][196].label[7] = """Yaw Offset"""
  1643. MAV_CMD_DO_SET_ROI_NONE = 197
  1644. enums["MAV_CMD"][197] = EnumEntry("MAV_CMD_DO_SET_ROI_NONE", """Cancels any previous ROI command returning the vehicle/sensors to default flight characteristics. This can then be used by the vehicle's control system to control the vehicle attitude and the attitude of various sensors such as cameras. This command can be sent to a gimbal manager but not to a gimbal device. A gimbal device is not to react to this message. After this command the gimbal manager should go back to manual input if available, and otherwise assume a neutral position.""")
  1645. enums["MAV_CMD"][197].param[1] = """Component ID of gimbal device to address (or 1-6 for non-MAVLink gimbal), 0 for all gimbal device components. Send command multiple times for more than one gimbal (but not all gimbals)."""
  1646. enums["MAV_CMD"][197].label[1] = """Gimbal device ID"""
  1647. enums["MAV_CMD"][197].param[2] = """Empty"""
  1648. enums["MAV_CMD"][197].param[3] = """Empty"""
  1649. enums["MAV_CMD"][197].param[4] = """Empty"""
  1650. enums["MAV_CMD"][197].param[5] = """Empty"""
  1651. enums["MAV_CMD"][197].param[6] = """Empty"""
  1652. enums["MAV_CMD"][197].param[7] = """Empty"""
  1653. MAV_CMD_DO_SET_ROI_SYSID = 198
  1654. enums["MAV_CMD"][198] = EnumEntry("MAV_CMD_DO_SET_ROI_SYSID", """Mount tracks system with specified system ID. Determination of target vehicle position may be done with GLOBAL_POSITION_INT or any other means. This command can be sent to a gimbal manager but not to a gimbal device. A gimbal device is not to react to this message.""")
  1655. enums["MAV_CMD"][198].param[1] = """System ID"""
  1656. enums["MAV_CMD"][198].label[1] = """System ID"""
  1657. enums["MAV_CMD"][198].param[2] = """Component ID of gimbal device to address (or 1-6 for non-MAVLink gimbal), 0 for all gimbal device components. Send command multiple times for more than one gimbal (but not all gimbals)."""
  1658. enums["MAV_CMD"][198].label[2] = """Gimbal device ID"""
  1659. enums["MAV_CMD"][198].param[3] = """Reserved (default:0)"""
  1660. enums["MAV_CMD"][198].param[4] = """Reserved (default:0)"""
  1661. enums["MAV_CMD"][198].param[5] = """Reserved (default:0)"""
  1662. enums["MAV_CMD"][198].param[6] = """Reserved (default:0)"""
  1663. enums["MAV_CMD"][198].param[7] = """Reserved (default:0)"""
  1664. MAV_CMD_DO_CONTROL_VIDEO = 200
  1665. enums["MAV_CMD"][200] = EnumEntry("MAV_CMD_DO_CONTROL_VIDEO", """Control onboard camera system.""")
  1666. enums["MAV_CMD"][200].param[1] = """Camera ID (-1 for all)"""
  1667. enums["MAV_CMD"][200].label[1] = """ID"""
  1668. enums["MAV_CMD"][200].param[2] = """Transmission: 0: disabled, 1: enabled compressed, 2: enabled raw"""
  1669. enums["MAV_CMD"][200].label[2] = """Transmission"""
  1670. enums["MAV_CMD"][200].param[3] = """Transmission mode: 0: video stream, >0: single images every n seconds"""
  1671. enums["MAV_CMD"][200].label[3] = """Interval"""
  1672. enums["MAV_CMD"][200].param[4] = """Recording: 0: disabled, 1: enabled compressed, 2: enabled raw"""
  1673. enums["MAV_CMD"][200].label[4] = """Recording"""
  1674. enums["MAV_CMD"][200].param[5] = """Empty"""
  1675. enums["MAV_CMD"][200].param[6] = """Empty"""
  1676. enums["MAV_CMD"][200].param[7] = """Empty"""
  1677. MAV_CMD_DO_SET_ROI = 201
  1678. enums["MAV_CMD"][201] = EnumEntry("MAV_CMD_DO_SET_ROI", """Sets the region of interest (ROI) for a sensor set or the vehicle itself. This can then be used by the vehicle's control system to control the vehicle attitude and the attitude of various sensors such as cameras.""")
  1679. enums["MAV_CMD"][201].has_location = True
  1680. enums["MAV_CMD"][201].param[1] = """Region of interest mode."""
  1681. enums["MAV_CMD"][201].label[1] = """ROI Mode"""
  1682. enums["MAV_CMD"][201].param[2] = """Waypoint index/ target ID (depends on param 1)."""
  1683. enums["MAV_CMD"][201].label[2] = """WP Index"""
  1684. enums["MAV_CMD"][201].param[3] = """Region of interest index. (allows a vehicle to manage multiple ROI's)"""
  1685. enums["MAV_CMD"][201].label[3] = """ROI Index"""
  1686. enums["MAV_CMD"][201].param[4] = """Empty"""
  1687. enums["MAV_CMD"][201].param[5] = """MAV_ROI_WPNEXT: pitch offset from next waypoint, MAV_ROI_LOCATION: latitude"""
  1688. enums["MAV_CMD"][201].param[6] = """MAV_ROI_WPNEXT: roll offset from next waypoint, MAV_ROI_LOCATION: longitude"""
  1689. enums["MAV_CMD"][201].param[7] = """MAV_ROI_WPNEXT: yaw offset from next waypoint, MAV_ROI_LOCATION: altitude"""
  1690. MAV_CMD_DO_DIGICAM_CONFIGURE = 202
  1691. enums["MAV_CMD"][202] = EnumEntry("MAV_CMD_DO_DIGICAM_CONFIGURE", """Configure digital camera. This is a fallback message for systems that have not yet implemented PARAM_EXT_XXX messages and camera definition files (see https://mavlink.io/en/services/camera_def.html ).""")
  1692. enums["MAV_CMD"][202].param[1] = """Modes: P, TV, AV, M, Etc."""
  1693. enums["MAV_CMD"][202].label[1] = """Mode"""
  1694. enums["MAV_CMD"][202].param[2] = """Shutter speed: Divisor number for one second."""
  1695. enums["MAV_CMD"][202].label[2] = """Shutter Speed"""
  1696. enums["MAV_CMD"][202].param[3] = """Aperture: F stop number."""
  1697. enums["MAV_CMD"][202].label[3] = """Aperture"""
  1698. enums["MAV_CMD"][202].param[4] = """ISO number e.g. 80, 100, 200, Etc."""
  1699. enums["MAV_CMD"][202].label[4] = """ISO"""
  1700. enums["MAV_CMD"][202].param[5] = """Exposure type enumerator."""
  1701. enums["MAV_CMD"][202].label[5] = """Exposure"""
  1702. enums["MAV_CMD"][202].param[6] = """Command Identity."""
  1703. enums["MAV_CMD"][202].label[6] = """Command Identity"""
  1704. enums["MAV_CMD"][202].param[7] = """Main engine cut-off time before camera trigger. (0 means no cut-off)"""
  1705. enums["MAV_CMD"][202].label[7] = """Engine Cut-off"""
  1706. MAV_CMD_DO_DIGICAM_CONTROL = 203
  1707. enums["MAV_CMD"][203] = EnumEntry("MAV_CMD_DO_DIGICAM_CONTROL", """Control digital camera. This is a fallback message for systems that have not yet implemented PARAM_EXT_XXX messages and camera definition files (see https://mavlink.io/en/services/camera_def.html ).""")
  1708. enums["MAV_CMD"][203].param[1] = """Session control e.g. show/hide lens"""
  1709. enums["MAV_CMD"][203].label[1] = """Session Control"""
  1710. enums["MAV_CMD"][203].param[2] = """Zoom's absolute position"""
  1711. enums["MAV_CMD"][203].label[2] = """Zoom Absolute"""
  1712. enums["MAV_CMD"][203].param[3] = """Zooming step value to offset zoom from the current position"""
  1713. enums["MAV_CMD"][203].label[3] = """Zoom Relative"""
  1714. enums["MAV_CMD"][203].param[4] = """Focus Locking, Unlocking or Re-locking"""
  1715. enums["MAV_CMD"][203].label[4] = """Focus"""
  1716. enums["MAV_CMD"][203].param[5] = """Shooting Command"""
  1717. enums["MAV_CMD"][203].label[5] = """Shoot Command"""
  1718. enums["MAV_CMD"][203].param[6] = """Command Identity"""
  1719. enums["MAV_CMD"][203].label[6] = """Command Identity"""
  1720. enums["MAV_CMD"][203].param[7] = """Test shot identifier. If set to 1, image will only be captured, but not counted towards internal frame count."""
  1721. enums["MAV_CMD"][203].label[7] = """Shot ID"""
  1722. MAV_CMD_DO_MOUNT_CONFIGURE = 204
  1723. enums["MAV_CMD"][204] = EnumEntry("MAV_CMD_DO_MOUNT_CONFIGURE", """Mission command to configure a camera or antenna mount""")
  1724. enums["MAV_CMD"][204].param[1] = """Mount operation mode"""
  1725. enums["MAV_CMD"][204].label[1] = """Mode"""
  1726. enums["MAV_CMD"][204].param[2] = """stabilize roll? (1 = yes, 0 = no)"""
  1727. enums["MAV_CMD"][204].label[2] = """Stabilize Roll"""
  1728. enums["MAV_CMD"][204].param[3] = """stabilize pitch? (1 = yes, 0 = no)"""
  1729. enums["MAV_CMD"][204].label[3] = """Stabilize Pitch"""
  1730. enums["MAV_CMD"][204].param[4] = """stabilize yaw? (1 = yes, 0 = no)"""
  1731. enums["MAV_CMD"][204].label[4] = """Stabilize Yaw"""
  1732. enums["MAV_CMD"][204].param[5] = """roll input (0 = angle body frame, 1 = angular rate, 2 = angle absolute frame)"""
  1733. enums["MAV_CMD"][204].label[5] = """Roll Input Mode"""
  1734. enums["MAV_CMD"][204].param[6] = """pitch input (0 = angle body frame, 1 = angular rate, 2 = angle absolute frame)"""
  1735. enums["MAV_CMD"][204].label[6] = """Pitch Input Mode"""
  1736. enums["MAV_CMD"][204].param[7] = """yaw input (0 = angle body frame, 1 = angular rate, 2 = angle absolute frame)"""
  1737. enums["MAV_CMD"][204].label[7] = """Yaw Input Mode"""
  1738. MAV_CMD_DO_MOUNT_CONTROL = 205
  1739. enums["MAV_CMD"][205] = EnumEntry("MAV_CMD_DO_MOUNT_CONTROL", """Mission command to control a camera or antenna mount""")
  1740. enums["MAV_CMD"][205].param[1] = """pitch depending on mount mode (degrees or degrees/second depending on pitch input)."""
  1741. enums["MAV_CMD"][205].label[1] = """Pitch"""
  1742. enums["MAV_CMD"][205].param[2] = """roll depending on mount mode (degrees or degrees/second depending on roll input)."""
  1743. enums["MAV_CMD"][205].label[2] = """Roll"""
  1744. enums["MAV_CMD"][205].param[3] = """yaw depending on mount mode (degrees or degrees/second depending on yaw input)."""
  1745. enums["MAV_CMD"][205].label[3] = """Yaw"""
  1746. enums["MAV_CMD"][205].param[4] = """altitude depending on mount mode."""
  1747. enums["MAV_CMD"][205].label[4] = """Altitude"""
  1748. enums["MAV_CMD"][205].param[5] = """latitude, set if appropriate mount mode."""
  1749. enums["MAV_CMD"][205].label[5] = """Latitude"""
  1750. enums["MAV_CMD"][205].param[6] = """longitude, set if appropriate mount mode."""
  1751. enums["MAV_CMD"][205].label[6] = """Longitude"""
  1752. enums["MAV_CMD"][205].param[7] = """Mount mode."""
  1753. enums["MAV_CMD"][205].label[7] = """Mode"""
  1754. MAV_CMD_DO_SET_CAM_TRIGG_DIST = 206
  1755. enums["MAV_CMD"][206] = EnumEntry("MAV_CMD_DO_SET_CAM_TRIGG_DIST", """Mission command to set camera trigger distance for this flight. The camera is triggered each time this distance is exceeded. This command can also be used to set the shutter integration time for the camera.""")
  1756. enums["MAV_CMD"][206].param[1] = """Camera trigger distance. 0 to stop triggering."""
  1757. enums["MAV_CMD"][206].label[1] = """Distance"""
  1758. enums["MAV_CMD"][206].param[2] = """Camera shutter integration time. -1 or 0 to ignore"""
  1759. enums["MAV_CMD"][206].label[2] = """Shutter"""
  1760. enums["MAV_CMD"][206].param[3] = """Trigger camera once immediately. (0 = no trigger, 1 = trigger)"""
  1761. enums["MAV_CMD"][206].label[3] = """Trigger"""
  1762. enums["MAV_CMD"][206].param[4] = """Empty"""
  1763. enums["MAV_CMD"][206].param[5] = """Empty"""
  1764. enums["MAV_CMD"][206].param[6] = """Empty"""
  1765. enums["MAV_CMD"][206].param[7] = """Empty"""
  1766. MAV_CMD_DO_FENCE_ENABLE = 207
  1767. enums["MAV_CMD"][207] = EnumEntry("MAV_CMD_DO_FENCE_ENABLE", """Mission command to enable the geofence""")
  1768. enums["MAV_CMD"][207].param[1] = """enable? (0=disable, 1=enable, 2=disable_floor_only)"""
  1769. enums["MAV_CMD"][207].label[1] = """Enable"""
  1770. enums["MAV_CMD"][207].param[2] = """Empty"""
  1771. enums["MAV_CMD"][207].param[3] = """Empty"""
  1772. enums["MAV_CMD"][207].param[4] = """Empty"""
  1773. enums["MAV_CMD"][207].param[5] = """Empty"""
  1774. enums["MAV_CMD"][207].param[6] = """Empty"""
  1775. enums["MAV_CMD"][207].param[7] = """Empty"""
  1776. MAV_CMD_DO_PARACHUTE = 208
  1777. enums["MAV_CMD"][208] = EnumEntry("MAV_CMD_DO_PARACHUTE", """Mission item/command to release a parachute or enable/disable auto release.""")
  1778. enums["MAV_CMD"][208].param[1] = """Action"""
  1779. enums["MAV_CMD"][208].label[1] = """Action"""
  1780. enums["MAV_CMD"][208].param[2] = """Empty"""
  1781. enums["MAV_CMD"][208].param[3] = """Empty"""
  1782. enums["MAV_CMD"][208].param[4] = """Empty"""
  1783. enums["MAV_CMD"][208].param[5] = """Empty"""
  1784. enums["MAV_CMD"][208].param[6] = """Empty"""
  1785. enums["MAV_CMD"][208].param[7] = """Empty"""
  1786. MAV_CMD_DO_MOTOR_TEST = 209
  1787. enums["MAV_CMD"][209] = EnumEntry("MAV_CMD_DO_MOTOR_TEST", """Command to perform motor test.""")
  1788. enums["MAV_CMD"][209].param[1] = """Motor instance number (from 1 to max number of motors on the vehicle)."""
  1789. enums["MAV_CMD"][209].label[1] = """Instance"""
  1790. enums["MAV_CMD"][209].param[2] = """Throttle type (whether the Throttle Value in param3 is a percentage, PWM value, etc.)"""
  1791. enums["MAV_CMD"][209].label[2] = """Throttle Type"""
  1792. enums["MAV_CMD"][209].param[3] = """Throttle value."""
  1793. enums["MAV_CMD"][209].label[3] = """Throttle"""
  1794. enums["MAV_CMD"][209].param[4] = """Timeout between tests that are run in sequence."""
  1795. enums["MAV_CMD"][209].label[4] = """Timeout"""
  1796. enums["MAV_CMD"][209].param[5] = """Motor count. Number of motors to test in sequence: 0/1=one motor, 2= two motors, etc. The Timeout (param4) is used between tests."""
  1797. enums["MAV_CMD"][209].label[5] = """Motor Count"""
  1798. enums["MAV_CMD"][209].param[6] = """Motor test order."""
  1799. enums["MAV_CMD"][209].label[6] = """Test Order"""
  1800. enums["MAV_CMD"][209].param[7] = """Empty"""
  1801. MAV_CMD_DO_INVERTED_FLIGHT = 210
  1802. enums["MAV_CMD"][210] = EnumEntry("MAV_CMD_DO_INVERTED_FLIGHT", """Change to/from inverted flight.""")
  1803. enums["MAV_CMD"][210].param[1] = """Inverted flight. (0=normal, 1=inverted)"""
  1804. enums["MAV_CMD"][210].label[1] = """Inverted"""
  1805. enums["MAV_CMD"][210].param[2] = """Empty"""
  1806. enums["MAV_CMD"][210].param[3] = """Empty"""
  1807. enums["MAV_CMD"][210].param[4] = """Empty"""
  1808. enums["MAV_CMD"][210].param[5] = """Empty"""
  1809. enums["MAV_CMD"][210].param[6] = """Empty"""
  1810. enums["MAV_CMD"][210].param[7] = """Empty"""
  1811. MAV_CMD_DO_GRIPPER = 211
  1812. enums["MAV_CMD"][211] = EnumEntry("MAV_CMD_DO_GRIPPER", """Mission command to operate a gripper.""")
  1813. enums["MAV_CMD"][211].param[1] = """Gripper instance number."""
  1814. enums["MAV_CMD"][211].label[1] = """Instance"""
  1815. enums["MAV_CMD"][211].param[2] = """Gripper action to perform."""
  1816. enums["MAV_CMD"][211].label[2] = """Action"""
  1817. enums["MAV_CMD"][211].param[3] = """Empty"""
  1818. enums["MAV_CMD"][211].param[4] = """Empty"""
  1819. enums["MAV_CMD"][211].param[5] = """Empty"""
  1820. enums["MAV_CMD"][211].param[6] = """Empty"""
  1821. enums["MAV_CMD"][211].param[7] = """Empty"""
  1822. MAV_CMD_DO_AUTOTUNE_ENABLE = 212
  1823. enums["MAV_CMD"][212] = EnumEntry("MAV_CMD_DO_AUTOTUNE_ENABLE", """Enable/disable autotune.""")
  1824. enums["MAV_CMD"][212].param[1] = """Enable (1: enable, 0:disable)."""
  1825. enums["MAV_CMD"][212].label[1] = """Enable"""
  1826. enums["MAV_CMD"][212].param[2] = """Specify which axis are autotuned. 0 indicates autopilot default settings."""
  1827. enums["MAV_CMD"][212].label[2] = """Axis"""
  1828. enums["MAV_CMD"][212].param[3] = """Empty."""
  1829. enums["MAV_CMD"][212].param[4] = """Empty."""
  1830. enums["MAV_CMD"][212].param[5] = """Empty."""
  1831. enums["MAV_CMD"][212].param[6] = """Empty."""
  1832. enums["MAV_CMD"][212].param[7] = """Empty."""
  1833. MAV_CMD_NAV_SET_YAW_SPEED = 213
  1834. enums["MAV_CMD"][213] = EnumEntry("MAV_CMD_NAV_SET_YAW_SPEED", """Sets a desired vehicle turn angle and speed change.""")
  1835. enums["MAV_CMD"][213].param[1] = """Yaw angle to adjust steering by."""
  1836. enums["MAV_CMD"][213].label[1] = """Yaw"""
  1837. enums["MAV_CMD"][213].param[2] = """Speed."""
  1838. enums["MAV_CMD"][213].label[2] = """Speed"""
  1839. enums["MAV_CMD"][213].param[3] = """Final angle. (0=absolute, 1=relative)"""
  1840. enums["MAV_CMD"][213].label[3] = """Angle"""
  1841. enums["MAV_CMD"][213].param[4] = """Empty"""
  1842. enums["MAV_CMD"][213].param[5] = """Empty"""
  1843. enums["MAV_CMD"][213].param[6] = """Empty"""
  1844. enums["MAV_CMD"][213].param[7] = """Empty"""
  1845. MAV_CMD_DO_SET_CAM_TRIGG_INTERVAL = 214
  1846. enums["MAV_CMD"][214] = EnumEntry("MAV_CMD_DO_SET_CAM_TRIGG_INTERVAL", """Mission command to set camera trigger interval for this flight. If triggering is enabled, the camera is triggered each time this interval expires. This command can also be used to set the shutter integration time for the camera.""")
  1847. enums["MAV_CMD"][214].param[1] = """Camera trigger cycle time. -1 or 0 to ignore."""
  1848. enums["MAV_CMD"][214].label[1] = """Trigger Cycle"""
  1849. enums["MAV_CMD"][214].param[2] = """Camera shutter integration time. Should be less than trigger cycle time. -1 or 0 to ignore."""
  1850. enums["MAV_CMD"][214].label[2] = """Shutter Integration"""
  1851. enums["MAV_CMD"][214].param[3] = """Empty"""
  1852. enums["MAV_CMD"][214].param[4] = """Empty"""
  1853. enums["MAV_CMD"][214].param[5] = """Empty"""
  1854. enums["MAV_CMD"][214].param[6] = """Empty"""
  1855. enums["MAV_CMD"][214].param[7] = """Empty"""
  1856. MAV_CMD_DO_MOUNT_CONTROL_QUAT = 220
  1857. enums["MAV_CMD"][220] = EnumEntry("MAV_CMD_DO_MOUNT_CONTROL_QUAT", """Mission command to control a camera or antenna mount, using a quaternion as reference.""")
  1858. enums["MAV_CMD"][220].param[1] = """quaternion param q1, w (1 in null-rotation)"""
  1859. enums["MAV_CMD"][220].label[1] = """Q1"""
  1860. enums["MAV_CMD"][220].param[2] = """quaternion param q2, x (0 in null-rotation)"""
  1861. enums["MAV_CMD"][220].label[2] = """Q2"""
  1862. enums["MAV_CMD"][220].param[3] = """quaternion param q3, y (0 in null-rotation)"""
  1863. enums["MAV_CMD"][220].label[3] = """Q3"""
  1864. enums["MAV_CMD"][220].param[4] = """quaternion param q4, z (0 in null-rotation)"""
  1865. enums["MAV_CMD"][220].label[4] = """Q4"""
  1866. enums["MAV_CMD"][220].param[5] = """Empty"""
  1867. enums["MAV_CMD"][220].param[6] = """Empty"""
  1868. enums["MAV_CMD"][220].param[7] = """Empty"""
  1869. MAV_CMD_DO_GUIDED_MASTER = 221
  1870. enums["MAV_CMD"][221] = EnumEntry("MAV_CMD_DO_GUIDED_MASTER", """set id of master controller""")
  1871. enums["MAV_CMD"][221].param[1] = """System ID"""
  1872. enums["MAV_CMD"][221].label[1] = """System ID"""
  1873. enums["MAV_CMD"][221].param[2] = """Component ID"""
  1874. enums["MAV_CMD"][221].label[2] = """Component ID"""
  1875. enums["MAV_CMD"][221].param[3] = """Empty"""
  1876. enums["MAV_CMD"][221].param[4] = """Empty"""
  1877. enums["MAV_CMD"][221].param[5] = """Empty"""
  1878. enums["MAV_CMD"][221].param[6] = """Empty"""
  1879. enums["MAV_CMD"][221].param[7] = """Empty"""
  1880. MAV_CMD_DO_GUIDED_LIMITS = 222
  1881. enums["MAV_CMD"][222] = EnumEntry("MAV_CMD_DO_GUIDED_LIMITS", """Set limits for external control""")
  1882. enums["MAV_CMD"][222].param[1] = """Timeout - maximum time that external controller will be allowed to control vehicle. 0 means no timeout."""
  1883. enums["MAV_CMD"][222].label[1] = """Timeout"""
  1884. enums["MAV_CMD"][222].param[2] = """Altitude (MSL) min - if vehicle moves below this alt, the command will be aborted and the mission will continue. 0 means no lower altitude limit."""
  1885. enums["MAV_CMD"][222].label[2] = """Min Altitude"""
  1886. enums["MAV_CMD"][222].param[3] = """Altitude (MSL) max - if vehicle moves above this alt, the command will be aborted and the mission will continue. 0 means no upper altitude limit."""
  1887. enums["MAV_CMD"][222].label[3] = """Max Altitude"""
  1888. enums["MAV_CMD"][222].param[4] = """Horizontal move limit - if vehicle moves more than this distance from its location at the moment the command was executed, the command will be aborted and the mission will continue. 0 means no horizontal move limit."""
  1889. enums["MAV_CMD"][222].label[4] = """Horiz. Move Limit"""
  1890. enums["MAV_CMD"][222].param[5] = """Empty"""
  1891. enums["MAV_CMD"][222].param[6] = """Empty"""
  1892. enums["MAV_CMD"][222].param[7] = """Empty"""
  1893. MAV_CMD_DO_ENGINE_CONTROL = 223
  1894. enums["MAV_CMD"][223] = EnumEntry("MAV_CMD_DO_ENGINE_CONTROL", """Control vehicle engine. This is interpreted by the vehicles engine controller to change the target engine state. It is intended for vehicles with internal combustion engines""")
  1895. enums["MAV_CMD"][223].param[1] = """0: Stop engine, 1:Start Engine"""
  1896. enums["MAV_CMD"][223].label[1] = """Start Engine"""
  1897. enums["MAV_CMD"][223].param[2] = """0: Warm start, 1:Cold start. Controls use of choke where applicable"""
  1898. enums["MAV_CMD"][223].label[2] = """Cold Start"""
  1899. enums["MAV_CMD"][223].param[3] = """Height delay. This is for commanding engine start only after the vehicle has gained the specified height. Used in VTOL vehicles during takeoff to start engine after the aircraft is off the ground. Zero for no delay."""
  1900. enums["MAV_CMD"][223].label[3] = """Height Delay"""
  1901. enums["MAV_CMD"][223].param[4] = """Empty"""
  1902. enums["MAV_CMD"][223].param[5] = """Empty"""
  1903. enums["MAV_CMD"][223].param[6] = """Empty"""
  1904. enums["MAV_CMD"][223].param[7] = """Empty"""
  1905. MAV_CMD_DO_SET_MISSION_CURRENT = 224
  1906. enums["MAV_CMD"][224] = EnumEntry(
  1907. "MAV_CMD_DO_SET_MISSION_CURRENT",
  1908. """
  1909. Set the mission item with sequence number seq as the current item and emit MISSION_CURRENT (whether or not the mission number changed).
  1910. If a mission is currently being executed, the system will continue to this new mission item on the shortest path, skipping any intermediate mission items.
  1911. Note that mission jump repeat counters are not reset unless param2 is set (see MAV_CMD_DO_JUMP param2).
  1912. This command may trigger a mission state-machine change on some systems: for example from MISSION_STATE_NOT_STARTED or MISSION_STATE_PAUSED to MISSION_STATE_ACTIVE.
  1913. If the system is in mission mode, on those systems this command might therefore start, restart or resume the mission.
  1914. If the system is not in mission mode this command must not trigger a switch to mission mode.
  1915. The mission may be "reset" using param2.
  1916. Resetting sets jump counters to initial values (to reset counters without changing the current mission item set the param1 to `-1`).
  1917. Resetting also explicitly changes a mission state of MISSION_STATE_COMPLETE to MISSION_STATE_PAUSED or MISSION_STATE_ACTIVE, potentially allowing it to resume when it is (next) in a mission mode.
  1918. The command will ACK with MAV_RESULT_FAILED if the sequence number is out of range (including if there is no mission item).
  1919. """,
  1920. )
  1921. enums["MAV_CMD"][224].param[1] = """Mission sequence value to set. -1 for the current mission item (use to reset mission without changing current mission item)."""
  1922. enums["MAV_CMD"][224].label[1] = """Number"""
  1923. enums["MAV_CMD"][224].param[2] = """Resets mission. 1: true, 0: false. Resets jump counters to initial values and changes mission state "completed" to be "active" or "paused"."""
  1924. enums["MAV_CMD"][224].label[2] = """Reset Mission"""
  1925. enums["MAV_CMD"][224].param[3] = """Empty"""
  1926. enums["MAV_CMD"][224].param[4] = """Empty"""
  1927. enums["MAV_CMD"][224].param[5] = """Empty"""
  1928. enums["MAV_CMD"][224].param[6] = """Empty"""
  1929. enums["MAV_CMD"][224].param[7] = """Empty"""
  1930. MAV_CMD_DO_LAST = 240
  1931. enums["MAV_CMD"][240] = EnumEntry("MAV_CMD_DO_LAST", """NOP - This command is only used to mark the upper limit of the DO commands in the enumeration""")
  1932. enums["MAV_CMD"][240].param[1] = """Empty"""
  1933. enums["MAV_CMD"][240].param[2] = """Empty"""
  1934. enums["MAV_CMD"][240].param[3] = """Empty"""
  1935. enums["MAV_CMD"][240].param[4] = """Empty"""
  1936. enums["MAV_CMD"][240].param[5] = """Empty"""
  1937. enums["MAV_CMD"][240].param[6] = """Empty"""
  1938. enums["MAV_CMD"][240].param[7] = """Empty"""
  1939. MAV_CMD_PREFLIGHT_CALIBRATION = 241
  1940. enums["MAV_CMD"][241] = EnumEntry("MAV_CMD_PREFLIGHT_CALIBRATION", """Trigger calibration. This command will be only accepted if in pre-flight mode. Except for Temperature Calibration, only one sensor should be set in a single message and all others should be zero.""")
  1941. enums["MAV_CMD"][241].param[1] = """1: gyro calibration, 3: gyro temperature calibration"""
  1942. enums["MAV_CMD"][241].label[1] = """Gyro Temperature"""
  1943. enums["MAV_CMD"][241].param[2] = """1: magnetometer calibration"""
  1944. enums["MAV_CMD"][241].label[2] = """Magnetometer"""
  1945. enums["MAV_CMD"][241].param[3] = """1: ground pressure calibration"""
  1946. enums["MAV_CMD"][241].label[3] = """Ground Pressure"""
  1947. enums["MAV_CMD"][241].param[4] = """1: radio RC calibration, 2: RC trim calibration"""
  1948. enums["MAV_CMD"][241].label[4] = """Remote Control"""
  1949. enums["MAV_CMD"][241].param[5] = """1: accelerometer calibration, 2: board level calibration, 3: accelerometer temperature calibration, 4: simple accelerometer calibration"""
  1950. enums["MAV_CMD"][241].label[5] = """Accelerometer"""
  1951. enums["MAV_CMD"][241].param[6] = """1: APM: compass/motor interference calibration (PX4: airspeed calibration, deprecated), 2: airspeed calibration"""
  1952. enums["MAV_CMD"][241].label[6] = """Compmot or Airspeed"""
  1953. enums["MAV_CMD"][241].param[7] = """1: ESC calibration, 3: barometer temperature calibration"""
  1954. enums["MAV_CMD"][241].label[7] = """ESC or Baro"""
  1955. MAV_CMD_PREFLIGHT_SET_SENSOR_OFFSETS = 242
  1956. enums["MAV_CMD"][242] = EnumEntry("MAV_CMD_PREFLIGHT_SET_SENSOR_OFFSETS", """Set sensor offsets. This command will be only accepted if in pre-flight mode.""")
  1957. enums["MAV_CMD"][242].param[1] = """Sensor to adjust the offsets for: 0: gyros, 1: accelerometer, 2: magnetometer, 3: barometer, 4: optical flow, 5: second magnetometer, 6: third magnetometer"""
  1958. enums["MAV_CMD"][242].label[1] = """Sensor Type"""
  1959. enums["MAV_CMD"][242].param[2] = """X axis offset (or generic dimension 1), in the sensor's raw units"""
  1960. enums["MAV_CMD"][242].label[2] = """X Offset"""
  1961. enums["MAV_CMD"][242].param[3] = """Y axis offset (or generic dimension 2), in the sensor's raw units"""
  1962. enums["MAV_CMD"][242].label[3] = """Y Offset"""
  1963. enums["MAV_CMD"][242].param[4] = """Z axis offset (or generic dimension 3), in the sensor's raw units"""
  1964. enums["MAV_CMD"][242].label[4] = """Z Offset"""
  1965. enums["MAV_CMD"][242].param[5] = """Generic dimension 4, in the sensor's raw units"""
  1966. enums["MAV_CMD"][242].label[5] = """4th Dimension"""
  1967. enums["MAV_CMD"][242].param[6] = """Generic dimension 5, in the sensor's raw units"""
  1968. enums["MAV_CMD"][242].label[6] = """5th Dimension"""
  1969. enums["MAV_CMD"][242].param[7] = """Generic dimension 6, in the sensor's raw units"""
  1970. enums["MAV_CMD"][242].label[7] = """6th Dimension"""
  1971. MAV_CMD_PREFLIGHT_UAVCAN = 243
  1972. enums["MAV_CMD"][243] = EnumEntry("MAV_CMD_PREFLIGHT_UAVCAN", """Trigger UAVCAN configuration (actuator ID assignment and direction mapping). Note that this maps to the legacy UAVCAN v0 function UAVCAN_ENUMERATE, which is intended to be executed just once during initial vehicle configuration (it is not a normal pre-flight command and has been poorly named).""")
  1973. enums["MAV_CMD"][243].param[1] = """1: Trigger actuator ID assignment and direction mapping. 0: Cancel command."""
  1974. enums["MAV_CMD"][243].label[1] = """Actuator ID"""
  1975. enums["MAV_CMD"][243].param[2] = """Reserved"""
  1976. enums["MAV_CMD"][243].param[3] = """Reserved"""
  1977. enums["MAV_CMD"][243].param[4] = """Reserved"""
  1978. enums["MAV_CMD"][243].param[5] = """Reserved"""
  1979. enums["MAV_CMD"][243].param[6] = """Reserved"""
  1980. enums["MAV_CMD"][243].param[7] = """Reserved"""
  1981. MAV_CMD_PREFLIGHT_STORAGE = 245
  1982. enums["MAV_CMD"][245] = EnumEntry("MAV_CMD_PREFLIGHT_STORAGE", """Request storage of different parameter values and logs. This command will be only accepted if in pre-flight mode.""")
  1983. enums["MAV_CMD"][245].param[1] = """Action to perform on the persistent parameter storage"""
  1984. enums["MAV_CMD"][245].label[1] = """Parameter Storage"""
  1985. enums["MAV_CMD"][245].param[2] = """Action to perform on the persistent mission storage"""
  1986. enums["MAV_CMD"][245].label[2] = """Mission Storage"""
  1987. enums["MAV_CMD"][245].param[3] = """Onboard logging: 0: Ignore, 1: Start default rate logging, -1: Stop logging, > 1: logging rate (e.g. set to 1000 for 1000 Hz logging)"""
  1988. enums["MAV_CMD"][245].label[3] = """Logging Rate"""
  1989. enums["MAV_CMD"][245].param[4] = """Reserved"""
  1990. enums["MAV_CMD"][245].param[5] = """Empty"""
  1991. enums["MAV_CMD"][245].param[6] = """Empty"""
  1992. enums["MAV_CMD"][245].param[7] = """Empty"""
  1993. MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN = 246
  1994. enums["MAV_CMD"][246] = EnumEntry("MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN", """Request the reboot or shutdown of system components.""")
  1995. enums["MAV_CMD"][246].param[1] = """0: Do nothing for autopilot, 1: Reboot autopilot, 2: Shutdown autopilot, 3: Reboot autopilot and keep it in the bootloader until upgraded."""
  1996. enums["MAV_CMD"][246].label[1] = """Autopilot"""
  1997. enums["MAV_CMD"][246].param[2] = """0: Do nothing for onboard computer, 1: Reboot onboard computer, 2: Shutdown onboard computer, 3: Reboot onboard computer and keep it in the bootloader until upgraded."""
  1998. enums["MAV_CMD"][246].label[2] = """Companion"""
  1999. enums["MAV_CMD"][246].param[3] = """0: Do nothing for component, 1: Reboot component, 2: Shutdown component, 3: Reboot component and keep it in the bootloader until upgraded"""
  2000. enums["MAV_CMD"][246].label[3] = """Component action"""
  2001. enums["MAV_CMD"][246].param[4] = """MAVLink Component ID targeted in param3 (0 for all components)."""
  2002. enums["MAV_CMD"][246].label[4] = """Component ID"""
  2003. enums["MAV_CMD"][246].param[5] = """Reserved (set to 0)"""
  2004. enums["MAV_CMD"][246].param[6] = """Reserved (set to 0)"""
  2005. enums["MAV_CMD"][246].param[7] = """WIP: ID (e.g. camera ID -1 for all IDs)"""
  2006. MAV_CMD_OVERRIDE_GOTO = 252
  2007. enums["MAV_CMD"][252] = EnumEntry("MAV_CMD_OVERRIDE_GOTO", """Override current mission with command to pause mission, pause mission and move to position, continue/resume mission. When param 1 indicates that the mission is paused (MAV_GOTO_DO_HOLD), param 2 defines whether it holds in place or moves to another position.""")
  2008. enums["MAV_CMD"][252].has_location = True
  2009. enums["MAV_CMD"][252].param[1] = """MAV_GOTO_DO_HOLD: pause mission and either hold or move to specified position (depending on param2), MAV_GOTO_DO_CONTINUE: resume mission."""
  2010. enums["MAV_CMD"][252].label[1] = """Continue"""
  2011. enums["MAV_CMD"][252].param[2] = """MAV_GOTO_HOLD_AT_CURRENT_POSITION: hold at current position, MAV_GOTO_HOLD_AT_SPECIFIED_POSITION: hold at specified position."""
  2012. enums["MAV_CMD"][252].label[2] = """Position"""
  2013. enums["MAV_CMD"][252].param[3] = """Coordinate frame of hold point."""
  2014. enums["MAV_CMD"][252].label[3] = """Frame"""
  2015. enums["MAV_CMD"][252].param[4] = """Desired yaw angle."""
  2016. enums["MAV_CMD"][252].label[4] = """Yaw"""
  2017. enums["MAV_CMD"][252].param[5] = """Latitude/X position."""
  2018. enums["MAV_CMD"][252].label[5] = """Latitude/X"""
  2019. enums["MAV_CMD"][252].param[6] = """Longitude/Y position."""
  2020. enums["MAV_CMD"][252].label[6] = """Longitude/Y"""
  2021. enums["MAV_CMD"][252].param[7] = """Altitude/Z position."""
  2022. enums["MAV_CMD"][252].label[7] = """Altitude/Z"""
  2023. MAV_CMD_OBLIQUE_SURVEY = 260
  2024. enums["MAV_CMD"][260] = EnumEntry("MAV_CMD_OBLIQUE_SURVEY", """Mission command to set a Camera Auto Mount Pivoting Oblique Survey (Replaces CAM_TRIGG_DIST for this purpose). The camera is triggered each time this distance is exceeded, then the mount moves to the next position. Params 4~6 set-up the angle limits and number of positions for oblique survey, where mount-enabled vehicles automatically roll the camera between shots to emulate an oblique camera setup (providing an increased HFOV). This command can also be used to set the shutter integration time for the camera.""")
  2025. enums["MAV_CMD"][260].param[1] = """Camera trigger distance. 0 to stop triggering."""
  2026. enums["MAV_CMD"][260].label[1] = """Distance"""
  2027. enums["MAV_CMD"][260].param[2] = """Camera shutter integration time. 0 to ignore"""
  2028. enums["MAV_CMD"][260].label[2] = """Shutter"""
  2029. enums["MAV_CMD"][260].param[3] = """The minimum interval in which the camera is capable of taking subsequent pictures repeatedly. 0 to ignore."""
  2030. enums["MAV_CMD"][260].label[3] = """Min Interval"""
  2031. enums["MAV_CMD"][260].param[4] = """Total number of roll positions at which the camera will capture photos (images captures spread evenly across the limits defined by param5)."""
  2032. enums["MAV_CMD"][260].label[4] = """Positions"""
  2033. enums["MAV_CMD"][260].param[5] = """Angle limits that the camera can be rolled to left and right of center."""
  2034. enums["MAV_CMD"][260].label[5] = """Roll Angle"""
  2035. enums["MAV_CMD"][260].param[6] = """Fixed pitch angle that the camera will hold in oblique mode if the mount is actuated in the pitch axis."""
  2036. enums["MAV_CMD"][260].label[6] = """Pitch Angle"""
  2037. enums["MAV_CMD"][260].param[7] = """Empty"""
  2038. MAV_CMD_MISSION_START = 300
  2039. enums["MAV_CMD"][300] = EnumEntry("MAV_CMD_MISSION_START", """start running a mission""")
  2040. enums["MAV_CMD"][300].param[1] = """first_item: the first mission item to run"""
  2041. enums["MAV_CMD"][300].label[1] = """First Item"""
  2042. enums["MAV_CMD"][300].param[2] = """last_item: the last mission item to run (after this item is run, the mission ends)"""
  2043. enums["MAV_CMD"][300].label[2] = """Last Item"""
  2044. enums["MAV_CMD"][300].param[3] = """Reserved (default:0)"""
  2045. enums["MAV_CMD"][300].param[4] = """Reserved (default:0)"""
  2046. enums["MAV_CMD"][300].param[5] = """Reserved (default:0)"""
  2047. enums["MAV_CMD"][300].param[6] = """Reserved (default:0)"""
  2048. enums["MAV_CMD"][300].param[7] = """Reserved (default:0)"""
  2049. MAV_CMD_ACTUATOR_TEST = 310
  2050. enums["MAV_CMD"][310] = EnumEntry("MAV_CMD_ACTUATOR_TEST", """Actuator testing command. This is similar to MAV_CMD_DO_MOTOR_TEST but operates on the level of output functions, i.e. it is possible to test Motor1 independent from which output it is configured on. Autopilots typically refuse this command while armed.""")
  2051. enums["MAV_CMD"][310].param[1] = """Output value: 1 means maximum positive output, 0 to center servos or minimum motor thrust (expected to spin), -1 for maximum negative (if not supported by the motors, i.e. motor is not reversible, smaller than 0 maps to NaN). And NaN maps to disarmed (stop the motors)."""
  2052. enums["MAV_CMD"][310].label[1] = """Value"""
  2053. enums["MAV_CMD"][310].param[2] = """Timeout after which the test command expires and the output is restored to the previous value. A timeout has to be set for safety reasons. A timeout of 0 means to restore the previous value immediately."""
  2054. enums["MAV_CMD"][310].label[2] = """Timeout"""
  2055. enums["MAV_CMD"][310].param[3] = """Reserved (default:0)"""
  2056. enums["MAV_CMD"][310].param[4] = """Reserved (default:0)"""
  2057. enums["MAV_CMD"][310].param[5] = """Actuator Output function"""
  2058. enums["MAV_CMD"][310].label[5] = """Output Function"""
  2059. enums["MAV_CMD"][310].param[6] = """Reserved (default:0)"""
  2060. enums["MAV_CMD"][310].param[7] = """Reserved (default:0)"""
  2061. MAV_CMD_CONFIGURE_ACTUATOR = 311
  2062. enums["MAV_CMD"][311] = EnumEntry("MAV_CMD_CONFIGURE_ACTUATOR", """Actuator configuration command.""")
  2063. enums["MAV_CMD"][311].param[1] = """Actuator configuration action"""
  2064. enums["MAV_CMD"][311].label[1] = """Configuration"""
  2065. enums["MAV_CMD"][311].param[2] = """Reserved (default:0)"""
  2066. enums["MAV_CMD"][311].param[3] = """Reserved (default:0)"""
  2067. enums["MAV_CMD"][311].param[4] = """Reserved (default:0)"""
  2068. enums["MAV_CMD"][311].param[5] = """Actuator Output function"""
  2069. enums["MAV_CMD"][311].label[5] = """Output Function"""
  2070. enums["MAV_CMD"][311].param[6] = """Reserved (default:0)"""
  2071. enums["MAV_CMD"][311].param[7] = """Reserved (default:0)"""
  2072. MAV_CMD_COMPONENT_ARM_DISARM = 400
  2073. enums["MAV_CMD"][400] = EnumEntry("MAV_CMD_COMPONENT_ARM_DISARM", """Arms / Disarms a component""")
  2074. enums["MAV_CMD"][400].param[1] = """0: disarm, 1: arm"""
  2075. enums["MAV_CMD"][400].label[1] = """Arm"""
  2076. enums["MAV_CMD"][400].param[2] = """0: arm-disarm unless prevented by safety checks (i.e. when landed), 21196: force arming/disarming (e.g. allow arming to override preflight checks and disarming in flight)"""
  2077. enums["MAV_CMD"][400].label[2] = """Force"""
  2078. enums["MAV_CMD"][400].param[3] = """Reserved (default:0)"""
  2079. enums["MAV_CMD"][400].param[4] = """Reserved (default:0)"""
  2080. enums["MAV_CMD"][400].param[5] = """Reserved (default:0)"""
  2081. enums["MAV_CMD"][400].param[6] = """Reserved (default:0)"""
  2082. enums["MAV_CMD"][400].param[7] = """Reserved (default:0)"""
  2083. MAV_CMD_RUN_PREARM_CHECKS = 401
  2084. enums["MAV_CMD"][401] = EnumEntry(
  2085. "MAV_CMD_RUN_PREARM_CHECKS",
  2086. """Instructs a target system to run pre-arm checks.
  2087. This allows preflight checks to be run on demand, which may be useful on systems that normally run them at low rate, or which do not trigger checks when the armable state might have changed.
  2088. This command should return MAV_RESULT_ACCEPTED if it will run the checks.
  2089. The results of the checks are usually then reported in SYS_STATUS messages (this is system-specific).
  2090. The command should return MAV_RESULT_TEMPORARILY_REJECTED if the system is already armed.
  2091. """,
  2092. )
  2093. enums["MAV_CMD"][401].param[1] = """Reserved (default:0)"""
  2094. enums["MAV_CMD"][401].param[2] = """Reserved (default:0)"""
  2095. enums["MAV_CMD"][401].param[3] = """Reserved (default:0)"""
  2096. enums["MAV_CMD"][401].param[4] = """Reserved (default:0)"""
  2097. enums["MAV_CMD"][401].param[5] = """Reserved (default:0)"""
  2098. enums["MAV_CMD"][401].param[6] = """Reserved (default:0)"""
  2099. enums["MAV_CMD"][401].param[7] = """Reserved (default:0)"""
  2100. MAV_CMD_ILLUMINATOR_ON_OFF = 405
  2101. enums["MAV_CMD"][405] = EnumEntry("MAV_CMD_ILLUMINATOR_ON_OFF", """Turns illuminators ON/OFF. An illuminator is a light source that is used for lighting up dark areas external to the system: e.g. a torch or searchlight (as opposed to a light source for illuminating the system itself, e.g. an indicator light).""")
  2102. enums["MAV_CMD"][405].param[1] = """0: Illuminators OFF, 1: Illuminators ON"""
  2103. enums["MAV_CMD"][405].label[1] = """Enable"""
  2104. enums["MAV_CMD"][405].param[2] = """Reserved (default:0)"""
  2105. enums["MAV_CMD"][405].param[3] = """Reserved (default:0)"""
  2106. enums["MAV_CMD"][405].param[4] = """Reserved (default:0)"""
  2107. enums["MAV_CMD"][405].param[5] = """Reserved (default:0)"""
  2108. enums["MAV_CMD"][405].param[6] = """Reserved (default:0)"""
  2109. enums["MAV_CMD"][405].param[7] = """Reserved (default:0)"""
  2110. MAV_CMD_GET_HOME_POSITION = 410
  2111. enums["MAV_CMD"][410] = EnumEntry(
  2112. "MAV_CMD_GET_HOME_POSITION",
  2113. """Request the home position from the vehicle.
  2114. The vehicle will ACK the command and then emit the HOME_POSITION message.""",
  2115. )
  2116. enums["MAV_CMD"][410].param[1] = """Reserved"""
  2117. enums["MAV_CMD"][410].param[2] = """Reserved"""
  2118. enums["MAV_CMD"][410].param[3] = """Reserved"""
  2119. enums["MAV_CMD"][410].param[4] = """Reserved"""
  2120. enums["MAV_CMD"][410].param[5] = """Reserved"""
  2121. enums["MAV_CMD"][410].param[6] = """Reserved"""
  2122. enums["MAV_CMD"][410].param[7] = """Reserved"""
  2123. MAV_CMD_INJECT_FAILURE = 420
  2124. enums["MAV_CMD"][420] = EnumEntry("MAV_CMD_INJECT_FAILURE", """Inject artificial failure for testing purposes. Note that autopilots should implement an additional protection before accepting this command such as a specific param setting.""")
  2125. enums["MAV_CMD"][420].param[1] = """The unit which is affected by the failure."""
  2126. enums["MAV_CMD"][420].label[1] = """Failure unit"""
  2127. enums["MAV_CMD"][420].param[2] = """The type how the failure manifests itself."""
  2128. enums["MAV_CMD"][420].label[2] = """Failure type"""
  2129. enums["MAV_CMD"][420].param[3] = """Instance affected by failure (0 to signal all)."""
  2130. enums["MAV_CMD"][420].label[3] = """Instance"""
  2131. enums["MAV_CMD"][420].param[4] = """Reserved (default:0)"""
  2132. enums["MAV_CMD"][420].param[5] = """Reserved (default:0)"""
  2133. enums["MAV_CMD"][420].param[6] = """Reserved (default:0)"""
  2134. enums["MAV_CMD"][420].param[7] = """Reserved (default:0)"""
  2135. MAV_CMD_START_RX_PAIR = 500
  2136. enums["MAV_CMD"][500] = EnumEntry("MAV_CMD_START_RX_PAIR", """Starts receiver pairing.""")
  2137. enums["MAV_CMD"][500].param[1] = """0:Spektrum."""
  2138. enums["MAV_CMD"][500].label[1] = """Spektrum"""
  2139. enums["MAV_CMD"][500].param[2] = """RC type."""
  2140. enums["MAV_CMD"][500].label[2] = """RC Type"""
  2141. enums["MAV_CMD"][500].param[3] = """Reserved (default:0)"""
  2142. enums["MAV_CMD"][500].param[4] = """Reserved (default:0)"""
  2143. enums["MAV_CMD"][500].param[5] = """Reserved (default:0)"""
  2144. enums["MAV_CMD"][500].param[6] = """Reserved (default:0)"""
  2145. enums["MAV_CMD"][500].param[7] = """Reserved (default:0)"""
  2146. MAV_CMD_GET_MESSAGE_INTERVAL = 510
  2147. enums["MAV_CMD"][510] = EnumEntry(
  2148. "MAV_CMD_GET_MESSAGE_INTERVAL",
  2149. """
  2150. Request the interval between messages for a particular MAVLink message ID.
  2151. The receiver should ACK the command and then emit its response in a MESSAGE_INTERVAL message.
  2152. """,
  2153. )
  2154. enums["MAV_CMD"][510].param[1] = """The MAVLink message ID"""
  2155. enums["MAV_CMD"][510].label[1] = """Message ID"""
  2156. enums["MAV_CMD"][510].param[2] = """Reserved (default:0)"""
  2157. enums["MAV_CMD"][510].param[3] = """Reserved (default:0)"""
  2158. enums["MAV_CMD"][510].param[4] = """Reserved (default:0)"""
  2159. enums["MAV_CMD"][510].param[5] = """Reserved (default:0)"""
  2160. enums["MAV_CMD"][510].param[6] = """Reserved (default:0)"""
  2161. enums["MAV_CMD"][510].param[7] = """Reserved (default:0)"""
  2162. MAV_CMD_SET_MESSAGE_INTERVAL = 511
  2163. enums["MAV_CMD"][511] = EnumEntry("MAV_CMD_SET_MESSAGE_INTERVAL", """Set the interval between messages for a particular MAVLink message ID. This interface replaces REQUEST_DATA_STREAM.""")
  2164. enums["MAV_CMD"][511].param[1] = """The MAVLink message ID"""
  2165. enums["MAV_CMD"][511].label[1] = """Message ID"""
  2166. enums["MAV_CMD"][511].param[2] = """The interval between two messages. -1: disable. 0: request default rate (which may be zero)."""
  2167. enums["MAV_CMD"][511].label[2] = """Interval"""
  2168. enums["MAV_CMD"][511].param[3] = """Reserved (default:0)"""
  2169. enums["MAV_CMD"][511].param[4] = """Reserved (default:0)"""
  2170. enums["MAV_CMD"][511].param[5] = """Reserved (default:0)"""
  2171. enums["MAV_CMD"][511].param[6] = """Reserved (default:0)"""
  2172. enums["MAV_CMD"][511].param[7] = """Target address of message stream (if message has target address fields). 0: Flight-stack default (recommended), 1: address of requestor, 2: broadcast."""
  2173. enums["MAV_CMD"][511].label[7] = """Response Target"""
  2174. MAV_CMD_REQUEST_MESSAGE = 512
  2175. enums["MAV_CMD"][512] = EnumEntry("MAV_CMD_REQUEST_MESSAGE", """Request the target system(s) emit a single instance of a specified message (i.e. a "one-shot" version of MAV_CMD_SET_MESSAGE_INTERVAL).""")
  2176. enums["MAV_CMD"][512].param[1] = """The MAVLink message ID of the requested message."""
  2177. enums["MAV_CMD"][512].label[1] = """Message ID"""
  2178. enums["MAV_CMD"][512].param[2] = """Use for index ID, if required. Otherwise, the use of this parameter (if any) must be defined in the requested message. By default assumed not used (0)."""
  2179. enums["MAV_CMD"][512].label[2] = """Req Param 1"""
  2180. enums["MAV_CMD"][512].param[3] = """The use of this parameter (if any), must be defined in the requested message. By default assumed not used (0)."""
  2181. enums["MAV_CMD"][512].label[3] = """Req Param 2"""
  2182. enums["MAV_CMD"][512].param[4] = """The use of this parameter (if any), must be defined in the requested message. By default assumed not used (0)."""
  2183. enums["MAV_CMD"][512].label[4] = """Req Param 3"""
  2184. enums["MAV_CMD"][512].param[5] = """The use of this parameter (if any), must be defined in the requested message. By default assumed not used (0)."""
  2185. enums["MAV_CMD"][512].label[5] = """Req Param 4"""
  2186. enums["MAV_CMD"][512].param[6] = """The use of this parameter (if any), must be defined in the requested message. By default assumed not used (0)."""
  2187. enums["MAV_CMD"][512].label[6] = """Req Param 5"""
  2188. enums["MAV_CMD"][512].param[7] = """Target address for requested message (if message has target address fields). 0: Flight-stack default, 1: address of requestor, 2: broadcast."""
  2189. enums["MAV_CMD"][512].label[7] = """Response Target"""
  2190. MAV_CMD_REQUEST_PROTOCOL_VERSION = 519
  2191. enums["MAV_CMD"][519] = EnumEntry("MAV_CMD_REQUEST_PROTOCOL_VERSION", """Request MAVLink protocol version compatibility. All receivers should ACK the command and then emit their capabilities in an PROTOCOL_VERSION message""")
  2192. enums["MAV_CMD"][519].param[1] = """1: Request supported protocol versions by all nodes on the network"""
  2193. enums["MAV_CMD"][519].label[1] = """Protocol"""
  2194. enums["MAV_CMD"][519].param[2] = """Reserved (all remaining params)"""
  2195. enums["MAV_CMD"][519].param[3] = """Reserved (default:0)"""
  2196. enums["MAV_CMD"][519].param[4] = """Reserved (default:0)"""
  2197. enums["MAV_CMD"][519].param[5] = """Reserved (default:0)"""
  2198. enums["MAV_CMD"][519].param[6] = """Reserved (default:0)"""
  2199. enums["MAV_CMD"][519].param[7] = """Reserved (default:0)"""
  2200. MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES = 520
  2201. enums["MAV_CMD"][520] = EnumEntry("MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES", """Request autopilot capabilities. The receiver should ACK the command and then emit its capabilities in an AUTOPILOT_VERSION message""")
  2202. enums["MAV_CMD"][520].param[1] = """1: Request autopilot version"""
  2203. enums["MAV_CMD"][520].label[1] = """Version"""
  2204. enums["MAV_CMD"][520].param[2] = """Reserved (all remaining params)"""
  2205. enums["MAV_CMD"][520].param[3] = """Reserved (default:0)"""
  2206. enums["MAV_CMD"][520].param[4] = """Reserved (default:0)"""
  2207. enums["MAV_CMD"][520].param[5] = """Reserved (default:0)"""
  2208. enums["MAV_CMD"][520].param[6] = """Reserved (default:0)"""
  2209. enums["MAV_CMD"][520].param[7] = """Reserved (default:0)"""
  2210. MAV_CMD_REQUEST_CAMERA_INFORMATION = 521
  2211. enums["MAV_CMD"][521] = EnumEntry("MAV_CMD_REQUEST_CAMERA_INFORMATION", """Request camera information (CAMERA_INFORMATION).""")
  2212. enums["MAV_CMD"][521].param[1] = """0: No action 1: Request camera capabilities"""
  2213. enums["MAV_CMD"][521].label[1] = """Capabilities"""
  2214. enums["MAV_CMD"][521].param[2] = """Reserved (all remaining params)"""
  2215. enums["MAV_CMD"][521].param[3] = """Reserved (default:0)"""
  2216. enums["MAV_CMD"][521].param[4] = """Reserved (default:0)"""
  2217. enums["MAV_CMD"][521].param[5] = """Reserved (default:0)"""
  2218. enums["MAV_CMD"][521].param[6] = """Reserved (default:0)"""
  2219. enums["MAV_CMD"][521].param[7] = """Reserved (default:0)"""
  2220. MAV_CMD_REQUEST_CAMERA_SETTINGS = 522
  2221. enums["MAV_CMD"][522] = EnumEntry("MAV_CMD_REQUEST_CAMERA_SETTINGS", """Request camera settings (CAMERA_SETTINGS).""")
  2222. enums["MAV_CMD"][522].param[1] = """0: No Action 1: Request camera settings"""
  2223. enums["MAV_CMD"][522].label[1] = """Settings"""
  2224. enums["MAV_CMD"][522].param[2] = """Reserved (all remaining params)"""
  2225. enums["MAV_CMD"][522].param[3] = """Reserved (default:0)"""
  2226. enums["MAV_CMD"][522].param[4] = """Reserved (default:0)"""
  2227. enums["MAV_CMD"][522].param[5] = """Reserved (default:0)"""
  2228. enums["MAV_CMD"][522].param[6] = """Reserved (default:0)"""
  2229. enums["MAV_CMD"][522].param[7] = """Reserved (default:0)"""
  2230. MAV_CMD_REQUEST_STORAGE_INFORMATION = 525
  2231. enums["MAV_CMD"][525] = EnumEntry("MAV_CMD_REQUEST_STORAGE_INFORMATION", """Request storage information (STORAGE_INFORMATION). Use the command's target_component to target a specific component's storage.""")
  2232. enums["MAV_CMD"][525].param[1] = """Storage ID (0 for all, 1 for first, 2 for second, etc.)"""
  2233. enums["MAV_CMD"][525].label[1] = """Storage ID"""
  2234. enums["MAV_CMD"][525].param[2] = """0: No Action 1: Request storage information"""
  2235. enums["MAV_CMD"][525].label[2] = """Information"""
  2236. enums["MAV_CMD"][525].param[3] = """Reserved (all remaining params)"""
  2237. enums["MAV_CMD"][525].param[4] = """Reserved (default:0)"""
  2238. enums["MAV_CMD"][525].param[5] = """Reserved (default:0)"""
  2239. enums["MAV_CMD"][525].param[6] = """Reserved (default:0)"""
  2240. enums["MAV_CMD"][525].param[7] = """Reserved (default:0)"""
  2241. MAV_CMD_STORAGE_FORMAT = 526
  2242. enums["MAV_CMD"][526] = EnumEntry("MAV_CMD_STORAGE_FORMAT", """Format a storage medium. Once format is complete, a STORAGE_INFORMATION message is sent. Use the command's target_component to target a specific component's storage.""")
  2243. enums["MAV_CMD"][526].param[1] = """Storage ID (1 for first, 2 for second, etc.)"""
  2244. enums["MAV_CMD"][526].label[1] = """Storage ID"""
  2245. enums["MAV_CMD"][526].param[2] = """Format storage (and reset image log). 0: No action 1: Format storage"""
  2246. enums["MAV_CMD"][526].label[2] = """Format"""
  2247. enums["MAV_CMD"][526].param[3] = """Reset Image Log (without formatting storage medium). This will reset CAMERA_CAPTURE_STATUS.image_count and CAMERA_IMAGE_CAPTURED.image_index. 0: No action 1: Reset Image Log"""
  2248. enums["MAV_CMD"][526].label[3] = """Reset Image Log"""
  2249. enums["MAV_CMD"][526].param[4] = """Reserved (all remaining params)"""
  2250. enums["MAV_CMD"][526].param[5] = """Reserved (default:0)"""
  2251. enums["MAV_CMD"][526].param[6] = """Reserved (default:0)"""
  2252. enums["MAV_CMD"][526].param[7] = """Reserved (default:0)"""
  2253. MAV_CMD_REQUEST_CAMERA_CAPTURE_STATUS = 527
  2254. enums["MAV_CMD"][527] = EnumEntry("MAV_CMD_REQUEST_CAMERA_CAPTURE_STATUS", """Request camera capture status (CAMERA_CAPTURE_STATUS)""")
  2255. enums["MAV_CMD"][527].param[1] = """0: No Action 1: Request camera capture status"""
  2256. enums["MAV_CMD"][527].label[1] = """Capture Status"""
  2257. enums["MAV_CMD"][527].param[2] = """Reserved (all remaining params)"""
  2258. enums["MAV_CMD"][527].param[3] = """Reserved (default:0)"""
  2259. enums["MAV_CMD"][527].param[4] = """Reserved (default:0)"""
  2260. enums["MAV_CMD"][527].param[5] = """Reserved (default:0)"""
  2261. enums["MAV_CMD"][527].param[6] = """Reserved (default:0)"""
  2262. enums["MAV_CMD"][527].param[7] = """Reserved (default:0)"""
  2263. MAV_CMD_REQUEST_FLIGHT_INFORMATION = 528
  2264. enums["MAV_CMD"][528] = EnumEntry("MAV_CMD_REQUEST_FLIGHT_INFORMATION", """Request flight information (FLIGHT_INFORMATION)""")
  2265. enums["MAV_CMD"][528].param[1] = """1: Request flight information"""
  2266. enums["MAV_CMD"][528].label[1] = """Flight Information"""
  2267. enums["MAV_CMD"][528].param[2] = """Reserved (all remaining params)"""
  2268. enums["MAV_CMD"][528].param[3] = """Reserved (default:0)"""
  2269. enums["MAV_CMD"][528].param[4] = """Reserved (default:0)"""
  2270. enums["MAV_CMD"][528].param[5] = """Reserved (default:0)"""
  2271. enums["MAV_CMD"][528].param[6] = """Reserved (default:0)"""
  2272. enums["MAV_CMD"][528].param[7] = """Reserved (default:0)"""
  2273. MAV_CMD_RESET_CAMERA_SETTINGS = 529
  2274. enums["MAV_CMD"][529] = EnumEntry("MAV_CMD_RESET_CAMERA_SETTINGS", """Reset all camera settings to Factory Default""")
  2275. enums["MAV_CMD"][529].param[1] = """0: No Action 1: Reset all settings"""
  2276. enums["MAV_CMD"][529].label[1] = """Reset"""
  2277. enums["MAV_CMD"][529].param[2] = """Reserved (all remaining params)"""
  2278. enums["MAV_CMD"][529].param[3] = """Reserved (default:0)"""
  2279. enums["MAV_CMD"][529].param[4] = """Reserved (default:0)"""
  2280. enums["MAV_CMD"][529].param[5] = """Reserved (default:0)"""
  2281. enums["MAV_CMD"][529].param[6] = """Reserved (default:0)"""
  2282. enums["MAV_CMD"][529].param[7] = """Reserved (default:0)"""
  2283. MAV_CMD_SET_CAMERA_MODE = 530
  2284. enums["MAV_CMD"][530] = EnumEntry("MAV_CMD_SET_CAMERA_MODE", """Set camera running mode. Use NaN for reserved values. GCS will send a MAV_CMD_REQUEST_VIDEO_STREAM_STATUS command after a mode change if the camera supports video streaming.""")
  2285. enums["MAV_CMD"][530].param[1] = """Reserved (Set to 0)"""
  2286. enums["MAV_CMD"][530].param[2] = """Camera mode"""
  2287. enums["MAV_CMD"][530].label[2] = """Camera Mode"""
  2288. enums["MAV_CMD"][530].param[3] = """Reserved (default:NaN)"""
  2289. enums["MAV_CMD"][530].param[4] = """Reserved (default:NaN)"""
  2290. enums["MAV_CMD"][530].param[5] = """Reserved (default:0)"""
  2291. enums["MAV_CMD"][530].param[6] = """Reserved (default:0)"""
  2292. enums["MAV_CMD"][530].param[7] = """Reserved (default:NaN)"""
  2293. MAV_CMD_SET_CAMERA_ZOOM = 531
  2294. enums["MAV_CMD"][531] = EnumEntry("MAV_CMD_SET_CAMERA_ZOOM", """Set camera zoom. Camera must respond with a CAMERA_SETTINGS message (on success).""")
  2295. enums["MAV_CMD"][531].param[1] = """Zoom type"""
  2296. enums["MAV_CMD"][531].label[1] = """Zoom Type"""
  2297. enums["MAV_CMD"][531].param[2] = """Zoom value. The range of valid values depend on the zoom type."""
  2298. enums["MAV_CMD"][531].label[2] = """Zoom Value"""
  2299. enums["MAV_CMD"][531].param[3] = """Reserved (default:NaN)"""
  2300. enums["MAV_CMD"][531].param[4] = """Reserved (default:NaN)"""
  2301. enums["MAV_CMD"][531].param[5] = """Reserved (default:0)"""
  2302. enums["MAV_CMD"][531].param[6] = """Reserved (default:0)"""
  2303. enums["MAV_CMD"][531].param[7] = """Reserved (default:NaN)"""
  2304. MAV_CMD_SET_CAMERA_FOCUS = 532
  2305. enums["MAV_CMD"][532] = EnumEntry("MAV_CMD_SET_CAMERA_FOCUS", """Set camera focus. Camera must respond with a CAMERA_SETTINGS message (on success).""")
  2306. enums["MAV_CMD"][532].param[1] = """Focus type"""
  2307. enums["MAV_CMD"][532].label[1] = """Focus Type"""
  2308. enums["MAV_CMD"][532].param[2] = """Focus value"""
  2309. enums["MAV_CMD"][532].label[2] = """Focus Value"""
  2310. enums["MAV_CMD"][532].param[3] = """Reserved (default:NaN)"""
  2311. enums["MAV_CMD"][532].param[4] = """Reserved (default:NaN)"""
  2312. enums["MAV_CMD"][532].param[5] = """Reserved (default:0)"""
  2313. enums["MAV_CMD"][532].param[6] = """Reserved (default:0)"""
  2314. enums["MAV_CMD"][532].param[7] = """Reserved (default:NaN)"""
  2315. MAV_CMD_SET_STORAGE_USAGE = 533
  2316. enums["MAV_CMD"][533] = EnumEntry(
  2317. "MAV_CMD_SET_STORAGE_USAGE",
  2318. """Set that a particular storage is the preferred location for saving photos, videos, and/or other media (e.g. to set that an SD card is used for storing videos).
  2319. There can only be one preferred save location for each particular media type: setting a media usage flag will clear/reset that same flag if set on any other storage.
  2320. If no flag is set the system should use its default storage.
  2321. A target system can choose to always use default storage, in which case it should ACK the command with MAV_RESULT_UNSUPPORTED.
  2322. A target system can choose to not allow a particular storage to be set as preferred storage, in which case it should ACK the command with MAV_RESULT_DENIED.""",
  2323. )
  2324. enums["MAV_CMD"][533].param[1] = """Storage ID (1 for first, 2 for second, etc.)"""
  2325. enums["MAV_CMD"][533].label[1] = """Storage ID"""
  2326. enums["MAV_CMD"][533].param[2] = """Usage flags"""
  2327. enums["MAV_CMD"][533].label[2] = """Usage"""
  2328. enums["MAV_CMD"][533].param[3] = """Reserved (default:0)"""
  2329. enums["MAV_CMD"][533].param[4] = """Reserved (default:0)"""
  2330. enums["MAV_CMD"][533].param[5] = """Reserved (default:0)"""
  2331. enums["MAV_CMD"][533].param[6] = """Reserved (default:0)"""
  2332. enums["MAV_CMD"][533].param[7] = """Reserved (default:0)"""
  2333. MAV_CMD_JUMP_TAG = 600
  2334. enums["MAV_CMD"][600] = EnumEntry("MAV_CMD_JUMP_TAG", """Tagged jump target. Can be jumped to with MAV_CMD_DO_JUMP_TAG.""")
  2335. enums["MAV_CMD"][600].param[1] = """Tag."""
  2336. enums["MAV_CMD"][600].label[1] = """Tag"""
  2337. enums["MAV_CMD"][600].param[2] = """Reserved (default:0)"""
  2338. enums["MAV_CMD"][600].param[3] = """Reserved (default:0)"""
  2339. enums["MAV_CMD"][600].param[4] = """Reserved (default:0)"""
  2340. enums["MAV_CMD"][600].param[5] = """Reserved (default:0)"""
  2341. enums["MAV_CMD"][600].param[6] = """Reserved (default:0)"""
  2342. enums["MAV_CMD"][600].param[7] = """Reserved (default:0)"""
  2343. MAV_CMD_DO_JUMP_TAG = 601
  2344. enums["MAV_CMD"][601] = EnumEntry("MAV_CMD_DO_JUMP_TAG", """Jump to the matching tag in the mission list. Repeat this action for the specified number of times. A mission should contain a single matching tag for each jump. If this is not the case then a jump to a missing tag should complete the mission, and a jump where there are multiple matching tags should always select the one with the lowest mission sequence number.""")
  2345. enums["MAV_CMD"][601].param[1] = """Target tag to jump to."""
  2346. enums["MAV_CMD"][601].label[1] = """Tag"""
  2347. enums["MAV_CMD"][601].param[2] = """Repeat count."""
  2348. enums["MAV_CMD"][601].label[2] = """Repeat"""
  2349. enums["MAV_CMD"][601].param[3] = """Reserved (default:0)"""
  2350. enums["MAV_CMD"][601].param[4] = """Reserved (default:0)"""
  2351. enums["MAV_CMD"][601].param[5] = """Reserved (default:0)"""
  2352. enums["MAV_CMD"][601].param[6] = """Reserved (default:0)"""
  2353. enums["MAV_CMD"][601].param[7] = """Reserved (default:0)"""
  2354. MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW = 1000
  2355. enums["MAV_CMD"][1000] = EnumEntry("MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW", """Set gimbal manager pitch/yaw setpoints (low rate command). It is possible to set combinations of the values below. E.g. an angle as well as a desired angular rate can be used to get to this angle at a certain angular rate, or an angular rate only will result in continuous turning. NaN is to be used to signal unset. Note: only the gimbal manager will react to this command - it will be ignored by a gimbal device. Use GIMBAL_MANAGER_SET_PITCHYAW if you need to stream pitch/yaw setpoints at higher rate. """)
  2356. enums["MAV_CMD"][1000].param[1] = """Pitch angle (positive to pitch up, relative to vehicle for FOLLOW mode, relative to world horizon for LOCK mode)."""
  2357. enums["MAV_CMD"][1000].label[1] = """Pitch angle"""
  2358. enums["MAV_CMD"][1000].param[2] = """Yaw angle (positive to yaw to the right, relative to vehicle for FOLLOW mode, absolute to North for LOCK mode)."""
  2359. enums["MAV_CMD"][1000].label[2] = """Yaw angle"""
  2360. enums["MAV_CMD"][1000].param[3] = """Pitch rate (positive to pitch up)."""
  2361. enums["MAV_CMD"][1000].label[3] = """Pitch rate"""
  2362. enums["MAV_CMD"][1000].param[4] = """Yaw rate (positive to yaw to the right)."""
  2363. enums["MAV_CMD"][1000].label[4] = """Yaw rate"""
  2364. enums["MAV_CMD"][1000].param[5] = """Gimbal manager flags to use."""
  2365. enums["MAV_CMD"][1000].label[5] = """Gimbal manager flags"""
  2366. enums["MAV_CMD"][1000].param[6] = """Reserved (default:0)"""
  2367. enums["MAV_CMD"][1000].param[7] = """Component ID of gimbal device to address (or 1-6 for non-MAVLink gimbal), 0 for all gimbal device components. Send command multiple times for more than one gimbal (but not all gimbals)."""
  2368. enums["MAV_CMD"][1000].label[7] = """Gimbal device ID"""
  2369. MAV_CMD_DO_GIMBAL_MANAGER_CONFIGURE = 1001
  2370. enums["MAV_CMD"][1001] = EnumEntry("MAV_CMD_DO_GIMBAL_MANAGER_CONFIGURE", """Gimbal configuration to set which sysid/compid is in primary and secondary control.""")
  2371. enums["MAV_CMD"][1001].param[1] = """Sysid for primary control (0: no one in control, -1: leave unchanged, -2: set itself in control (for missions where the own sysid is still unknown), -3: remove control if currently in control)."""
  2372. enums["MAV_CMD"][1001].label[1] = """sysid primary control"""
  2373. enums["MAV_CMD"][1001].param[2] = """Compid for primary control (0: no one in control, -1: leave unchanged, -2: set itself in control (for missions where the own sysid is still unknown), -3: remove control if currently in control)."""
  2374. enums["MAV_CMD"][1001].label[2] = """compid primary control"""
  2375. enums["MAV_CMD"][1001].param[3] = """Sysid for secondary control (0: no one in control, -1: leave unchanged, -2: set itself in control (for missions where the own sysid is still unknown), -3: remove control if currently in control)."""
  2376. enums["MAV_CMD"][1001].label[3] = """sysid secondary control"""
  2377. enums["MAV_CMD"][1001].param[4] = """Compid for secondary control (0: no one in control, -1: leave unchanged, -2: set itself in control (for missions where the own sysid is still unknown), -3: remove control if currently in control)."""
  2378. enums["MAV_CMD"][1001].label[4] = """compid secondary control"""
  2379. enums["MAV_CMD"][1001].param[5] = """Reserved (default:0)"""
  2380. enums["MAV_CMD"][1001].param[6] = """Reserved (default:0)"""
  2381. enums["MAV_CMD"][1001].param[7] = """Component ID of gimbal device to address (or 1-6 for non-MAVLink gimbal), 0 for all gimbal device components. Send command multiple times for more than one gimbal (but not all gimbals)."""
  2382. enums["MAV_CMD"][1001].label[7] = """Gimbal device ID"""
  2383. MAV_CMD_IMAGE_START_CAPTURE = 2000
  2384. enums["MAV_CMD"][2000] = EnumEntry(
  2385. "MAV_CMD_IMAGE_START_CAPTURE",
  2386. """Start image capture sequence. CAMERA_IMAGE_CAPTURED must be emitted after each capture.
  2387. Param1 (id) may be used to specify the target camera: 0: all cameras, 1 to 6: autopilot-connected cameras, 7-255: MAVLink camera component ID.
  2388. It is needed in order to target specific cameras connected to the autopilot, or specific sensors in a multi-sensor camera (neither of which have a distinct MAVLink component ID).
  2389. It is also needed to specify the target camera in missions.
  2390. When used in a mission, an autopilot should execute the MAV_CMD for a specified local camera (param1 = 1-6), or resend it as a command if it is intended for a MAVLink camera (param1 = 7 - 255), setting the command's target_component as the param1 value (and setting param1 in the command to zero).
  2391. If the param1 is 0 the autopilot should do both.
  2392. When sent in a command the target MAVLink address is set using target_component.
  2393. If addressed specifically to an autopilot: param1 should be used in the same way as it is for missions (though command should NACK with MAV_RESULT_DENIED if a specified local camera does not exist).
  2394. If addressed to a MAVLink camera, param 1 can be used to address all cameras (0), or to separately address 1 to 7 individual sensors. Other values should be NACKed with MAV_RESULT_DENIED.
  2395. If the command is broadcast (target_component is 0) then param 1 should be set to 0 (any other value should be NACKED with MAV_RESULT_DENIED). An autopilot would trigger any local cameras and forward the command to all channels.
  2396. """,
  2397. )
  2398. enums["MAV_CMD"][2000].param[1] = """Target camera ID. 7 to 255: MAVLink camera component id. 1 to 6 for cameras that don't have a distinct component id (such as autopilot-attached cameras). 0: all cameras. This is used to specifically target autopilot-connected cameras or individual sensors in a multi-sensor MAVLink camera. It is also used to target specific cameras when the MAV_CMD is used in a mission"""
  2399. enums["MAV_CMD"][2000].label[1] = """id"""
  2400. enums["MAV_CMD"][2000].param[2] = """Desired elapsed time between two consecutive pictures (in seconds). Minimum values depend on hardware (typically greater than 2 seconds)."""
  2401. enums["MAV_CMD"][2000].label[2] = """Interval"""
  2402. enums["MAV_CMD"][2000].param[3] = """Total number of images to capture. 0 to capture forever/until MAV_CMD_IMAGE_STOP_CAPTURE."""
  2403. enums["MAV_CMD"][2000].label[3] = """Total Images"""
  2404. enums["MAV_CMD"][2000].param[4] = """Capture sequence number starting from 1. This is only valid for single-capture (param3 == 1), otherwise set to 0. Increment the capture ID for each capture command to prevent double captures when a command is re-transmitted."""
  2405. enums["MAV_CMD"][2000].label[4] = """Sequence Number"""
  2406. enums["MAV_CMD"][2000].param[5] = """Reserved (default:0)"""
  2407. enums["MAV_CMD"][2000].param[6] = """Reserved (default:0)"""
  2408. enums["MAV_CMD"][2000].param[7] = """Reserved (default:NaN)"""
  2409. MAV_CMD_IMAGE_STOP_CAPTURE = 2001
  2410. enums["MAV_CMD"][2001] = EnumEntry(
  2411. "MAV_CMD_IMAGE_STOP_CAPTURE",
  2412. """Stop image capture sequence.
  2413. Param1 (id) may be used to specify the target camera: 0: all cameras, 1 to 6: autopilot-connected cameras, 7-255: MAVLink camera component ID.
  2414. It is needed in order to target specific cameras connected to the autopilot, or specific sensors in a multi-sensor camera (neither of which have a distinct MAVLink component ID).
  2415. It is also needed to specify the target camera in missions.
  2416. When used in a mission, an autopilot should execute the MAV_CMD for a specified local camera (param1 = 1-6), or resend it as a command if it is intended for a MAVLink camera (param1 = 7 - 255), setting the command's target_component as the param1 value (and setting param1 in the command to zero).
  2417. If the param1 is 0 the autopilot should do both.
  2418. When sent in a command the target MAVLink address is set using target_component.
  2419. If addressed specifically to an autopilot: param1 should be used in the same way as it is for missions (though command should NACK with MAV_RESULT_DENIED if a specified local camera does not exist).
  2420. If addressed to a MAVLink camera, param1 can be used to address all cameras (0), or to separately address 1 to 7 individual sensors. Other values should be NACKed with MAV_RESULT_DENIED.
  2421. If the command is broadcast (target_component is 0) then param 1 should be set to 0 (any other value should be NACKED with MAV_RESULT_DENIED). An autopilot would trigger any local cameras and forward the command to all channels.
  2422. """,
  2423. )
  2424. enums["MAV_CMD"][2001].param[1] = """Target camera ID. 7 to 255: MAVLink camera component id. 1 to 6 for cameras that don't have a distinct component id (such as autopilot-attached cameras). 0: all cameras. This is used to specifically target autopilot-connected cameras or individual sensors in a multi-sensor MAVLink camera. It is also used to target specific cameras when the MAV_CMD is used in a mission"""
  2425. enums["MAV_CMD"][2001].label[1] = """id"""
  2426. enums["MAV_CMD"][2001].param[2] = """Reserved (default:NaN)"""
  2427. enums["MAV_CMD"][2001].param[3] = """Reserved (default:NaN)"""
  2428. enums["MAV_CMD"][2001].param[4] = """Reserved (default:NaN)"""
  2429. enums["MAV_CMD"][2001].param[5] = """Reserved (default:0)"""
  2430. enums["MAV_CMD"][2001].param[6] = """Reserved (default:0)"""
  2431. enums["MAV_CMD"][2001].param[7] = """Reserved (default:NaN)"""
  2432. MAV_CMD_REQUEST_CAMERA_IMAGE_CAPTURE = 2002
  2433. enums["MAV_CMD"][2002] = EnumEntry("MAV_CMD_REQUEST_CAMERA_IMAGE_CAPTURE", """Re-request a CAMERA_IMAGE_CAPTURED message.""")
  2434. enums["MAV_CMD"][2002].param[1] = """Sequence number for missing CAMERA_IMAGE_CAPTURED message"""
  2435. enums["MAV_CMD"][2002].label[1] = """Number"""
  2436. enums["MAV_CMD"][2002].param[2] = """Reserved (default:NaN)"""
  2437. enums["MAV_CMD"][2002].param[3] = """Reserved (default:NaN)"""
  2438. enums["MAV_CMD"][2002].param[4] = """Reserved (default:NaN)"""
  2439. enums["MAV_CMD"][2002].param[5] = """Reserved (default:0)"""
  2440. enums["MAV_CMD"][2002].param[6] = """Reserved (default:0)"""
  2441. enums["MAV_CMD"][2002].param[7] = """Reserved (default:NaN)"""
  2442. MAV_CMD_DO_TRIGGER_CONTROL = 2003
  2443. enums["MAV_CMD"][2003] = EnumEntry("MAV_CMD_DO_TRIGGER_CONTROL", """Enable or disable on-board camera triggering system.""")
  2444. enums["MAV_CMD"][2003].param[1] = """Trigger enable/disable (0 for disable, 1 for start), -1 to ignore"""
  2445. enums["MAV_CMD"][2003].label[1] = """Enable"""
  2446. enums["MAV_CMD"][2003].param[2] = """1 to reset the trigger sequence, -1 or 0 to ignore"""
  2447. enums["MAV_CMD"][2003].label[2] = """Reset"""
  2448. enums["MAV_CMD"][2003].param[3] = """1 to pause triggering, but without switching the camera off or retracting it. -1 to ignore"""
  2449. enums["MAV_CMD"][2003].label[3] = """Pause"""
  2450. enums["MAV_CMD"][2003].param[4] = """Reserved (default:0)"""
  2451. enums["MAV_CMD"][2003].param[5] = """Reserved (default:0)"""
  2452. enums["MAV_CMD"][2003].param[6] = """Reserved (default:0)"""
  2453. enums["MAV_CMD"][2003].param[7] = """Reserved (default:0)"""
  2454. MAV_CMD_CAMERA_TRACK_POINT = 2004
  2455. enums["MAV_CMD"][2004] = EnumEntry("MAV_CMD_CAMERA_TRACK_POINT", """If the camera supports point visual tracking (CAMERA_CAP_FLAGS_HAS_TRACKING_POINT is set), this command allows to initiate the tracking.""")
  2456. enums["MAV_CMD"][2004].param[1] = """Point to track x value (normalized 0..1, 0 is left, 1 is right)."""
  2457. enums["MAV_CMD"][2004].label[1] = """Point x"""
  2458. enums["MAV_CMD"][2004].param[2] = """Point to track y value (normalized 0..1, 0 is top, 1 is bottom)."""
  2459. enums["MAV_CMD"][2004].label[2] = """Point y"""
  2460. enums["MAV_CMD"][2004].param[3] = """Point radius (normalized 0..1, 0 is image left, 1 is image right)."""
  2461. enums["MAV_CMD"][2004].label[3] = """Radius"""
  2462. enums["MAV_CMD"][2004].param[4] = """Reserved (default:0)"""
  2463. enums["MAV_CMD"][2004].param[5] = """Reserved (default:0)"""
  2464. enums["MAV_CMD"][2004].param[6] = """Reserved (default:0)"""
  2465. enums["MAV_CMD"][2004].param[7] = """Reserved (default:0)"""
  2466. MAV_CMD_CAMERA_TRACK_RECTANGLE = 2005
  2467. enums["MAV_CMD"][2005] = EnumEntry("MAV_CMD_CAMERA_TRACK_RECTANGLE", """If the camera supports rectangle visual tracking (CAMERA_CAP_FLAGS_HAS_TRACKING_RECTANGLE is set), this command allows to initiate the tracking.""")
  2468. enums["MAV_CMD"][2005].param[1] = """Top left corner of rectangle x value (normalized 0..1, 0 is left, 1 is right)."""
  2469. enums["MAV_CMD"][2005].label[1] = """Top left corner x"""
  2470. enums["MAV_CMD"][2005].param[2] = """Top left corner of rectangle y value (normalized 0..1, 0 is top, 1 is bottom)."""
  2471. enums["MAV_CMD"][2005].label[2] = """Top left corner y"""
  2472. enums["MAV_CMD"][2005].param[3] = """Bottom right corner of rectangle x value (normalized 0..1, 0 is left, 1 is right)."""
  2473. enums["MAV_CMD"][2005].label[3] = """Bottom right corner x"""
  2474. enums["MAV_CMD"][2005].param[4] = """Bottom right corner of rectangle y value (normalized 0..1, 0 is top, 1 is bottom)."""
  2475. enums["MAV_CMD"][2005].label[4] = """Bottom right corner y"""
  2476. enums["MAV_CMD"][2005].param[5] = """Reserved (default:0)"""
  2477. enums["MAV_CMD"][2005].param[6] = """Reserved (default:0)"""
  2478. enums["MAV_CMD"][2005].param[7] = """Reserved (default:0)"""
  2479. MAV_CMD_CAMERA_STOP_TRACKING = 2010
  2480. enums["MAV_CMD"][2010] = EnumEntry("MAV_CMD_CAMERA_STOP_TRACKING", """Stops ongoing tracking.""")
  2481. enums["MAV_CMD"][2010].param[1] = """Reserved (default:0)"""
  2482. enums["MAV_CMD"][2010].param[2] = """Reserved (default:0)"""
  2483. enums["MAV_CMD"][2010].param[3] = """Reserved (default:0)"""
  2484. enums["MAV_CMD"][2010].param[4] = """Reserved (default:0)"""
  2485. enums["MAV_CMD"][2010].param[5] = """Reserved (default:0)"""
  2486. enums["MAV_CMD"][2010].param[6] = """Reserved (default:0)"""
  2487. enums["MAV_CMD"][2010].param[7] = """Reserved (default:0)"""
  2488. MAV_CMD_VIDEO_START_CAPTURE = 2500
  2489. enums["MAV_CMD"][2500] = EnumEntry("MAV_CMD_VIDEO_START_CAPTURE", """Starts video capture (recording).""")
  2490. enums["MAV_CMD"][2500].param[1] = """Video Stream ID (0 for all streams)"""
  2491. enums["MAV_CMD"][2500].label[1] = """Stream ID"""
  2492. enums["MAV_CMD"][2500].param[2] = """Frequency CAMERA_CAPTURE_STATUS messages should be sent while recording (0 for no messages, otherwise frequency)"""
  2493. enums["MAV_CMD"][2500].label[2] = """Status Frequency"""
  2494. enums["MAV_CMD"][2500].param[3] = """Reserved (default:NaN)"""
  2495. enums["MAV_CMD"][2500].param[4] = """Reserved (default:NaN)"""
  2496. enums["MAV_CMD"][2500].param[5] = """Reserved (default:0)"""
  2497. enums["MAV_CMD"][2500].param[6] = """Reserved (default:0)"""
  2498. enums["MAV_CMD"][2500].param[7] = """Reserved (default:NaN)"""
  2499. MAV_CMD_VIDEO_STOP_CAPTURE = 2501
  2500. enums["MAV_CMD"][2501] = EnumEntry("MAV_CMD_VIDEO_STOP_CAPTURE", """Stop the current video capture (recording).""")
  2501. enums["MAV_CMD"][2501].param[1] = """Video Stream ID (0 for all streams)"""
  2502. enums["MAV_CMD"][2501].label[1] = """Stream ID"""
  2503. enums["MAV_CMD"][2501].param[2] = """Reserved (default:NaN)"""
  2504. enums["MAV_CMD"][2501].param[3] = """Reserved (default:NaN)"""
  2505. enums["MAV_CMD"][2501].param[4] = """Reserved (default:NaN)"""
  2506. enums["MAV_CMD"][2501].param[5] = """Reserved (default:0)"""
  2507. enums["MAV_CMD"][2501].param[6] = """Reserved (default:0)"""
  2508. enums["MAV_CMD"][2501].param[7] = """Reserved (default:NaN)"""
  2509. MAV_CMD_VIDEO_START_STREAMING = 2502
  2510. enums["MAV_CMD"][2502] = EnumEntry("MAV_CMD_VIDEO_START_STREAMING", """Start video streaming""")
  2511. enums["MAV_CMD"][2502].param[1] = """Video Stream ID (0 for all streams, 1 for first, 2 for second, etc.)"""
  2512. enums["MAV_CMD"][2502].label[1] = """Stream ID"""
  2513. enums["MAV_CMD"][2502].param[2] = """Reserved (default:0)"""
  2514. enums["MAV_CMD"][2502].param[3] = """Reserved (default:0)"""
  2515. enums["MAV_CMD"][2502].param[4] = """Reserved (default:0)"""
  2516. enums["MAV_CMD"][2502].param[5] = """Reserved (default:0)"""
  2517. enums["MAV_CMD"][2502].param[6] = """Reserved (default:0)"""
  2518. enums["MAV_CMD"][2502].param[7] = """Reserved (default:0)"""
  2519. MAV_CMD_VIDEO_STOP_STREAMING = 2503
  2520. enums["MAV_CMD"][2503] = EnumEntry("MAV_CMD_VIDEO_STOP_STREAMING", """Stop the given video stream""")
  2521. enums["MAV_CMD"][2503].param[1] = """Video Stream ID (0 for all streams, 1 for first, 2 for second, etc.)"""
  2522. enums["MAV_CMD"][2503].label[1] = """Stream ID"""
  2523. enums["MAV_CMD"][2503].param[2] = """Reserved (default:0)"""
  2524. enums["MAV_CMD"][2503].param[3] = """Reserved (default:0)"""
  2525. enums["MAV_CMD"][2503].param[4] = """Reserved (default:0)"""
  2526. enums["MAV_CMD"][2503].param[5] = """Reserved (default:0)"""
  2527. enums["MAV_CMD"][2503].param[6] = """Reserved (default:0)"""
  2528. enums["MAV_CMD"][2503].param[7] = """Reserved (default:0)"""
  2529. MAV_CMD_REQUEST_VIDEO_STREAM_INFORMATION = 2504
  2530. enums["MAV_CMD"][2504] = EnumEntry("MAV_CMD_REQUEST_VIDEO_STREAM_INFORMATION", """Request video stream information (VIDEO_STREAM_INFORMATION)""")
  2531. enums["MAV_CMD"][2504].param[1] = """Video Stream ID (0 for all streams, 1 for first, 2 for second, etc.)"""
  2532. enums["MAV_CMD"][2504].label[1] = """Stream ID"""
  2533. enums["MAV_CMD"][2504].param[2] = """Reserved (default:0)"""
  2534. enums["MAV_CMD"][2504].param[3] = """Reserved (default:0)"""
  2535. enums["MAV_CMD"][2504].param[4] = """Reserved (default:0)"""
  2536. enums["MAV_CMD"][2504].param[5] = """Reserved (default:0)"""
  2537. enums["MAV_CMD"][2504].param[6] = """Reserved (default:0)"""
  2538. enums["MAV_CMD"][2504].param[7] = """Reserved (default:0)"""
  2539. MAV_CMD_REQUEST_VIDEO_STREAM_STATUS = 2505
  2540. enums["MAV_CMD"][2505] = EnumEntry("MAV_CMD_REQUEST_VIDEO_STREAM_STATUS", """Request video stream status (VIDEO_STREAM_STATUS)""")
  2541. enums["MAV_CMD"][2505].param[1] = """Video Stream ID (0 for all streams, 1 for first, 2 for second, etc.)"""
  2542. enums["MAV_CMD"][2505].label[1] = """Stream ID"""
  2543. enums["MAV_CMD"][2505].param[2] = """Reserved (default:0)"""
  2544. enums["MAV_CMD"][2505].param[3] = """Reserved (default:0)"""
  2545. enums["MAV_CMD"][2505].param[4] = """Reserved (default:0)"""
  2546. enums["MAV_CMD"][2505].param[5] = """Reserved (default:0)"""
  2547. enums["MAV_CMD"][2505].param[6] = """Reserved (default:0)"""
  2548. enums["MAV_CMD"][2505].param[7] = """Reserved (default:0)"""
  2549. MAV_CMD_LOGGING_START = 2510
  2550. enums["MAV_CMD"][2510] = EnumEntry("MAV_CMD_LOGGING_START", """Request to start streaming logging data over MAVLink (see also LOGGING_DATA message)""")
  2551. enums["MAV_CMD"][2510].param[1] = """Format: 0: ULog"""
  2552. enums["MAV_CMD"][2510].label[1] = """Format"""
  2553. enums["MAV_CMD"][2510].param[2] = """Reserved (set to 0)"""
  2554. enums["MAV_CMD"][2510].param[3] = """Reserved (set to 0)"""
  2555. enums["MAV_CMD"][2510].param[4] = """Reserved (set to 0)"""
  2556. enums["MAV_CMD"][2510].param[5] = """Reserved (set to 0)"""
  2557. enums["MAV_CMD"][2510].param[6] = """Reserved (set to 0)"""
  2558. enums["MAV_CMD"][2510].param[7] = """Reserved (set to 0)"""
  2559. MAV_CMD_LOGGING_STOP = 2511
  2560. enums["MAV_CMD"][2511] = EnumEntry("MAV_CMD_LOGGING_STOP", """Request to stop streaming log data over MAVLink""")
  2561. enums["MAV_CMD"][2511].param[1] = """Reserved (set to 0)"""
  2562. enums["MAV_CMD"][2511].param[2] = """Reserved (set to 0)"""
  2563. enums["MAV_CMD"][2511].param[3] = """Reserved (set to 0)"""
  2564. enums["MAV_CMD"][2511].param[4] = """Reserved (set to 0)"""
  2565. enums["MAV_CMD"][2511].param[5] = """Reserved (set to 0)"""
  2566. enums["MAV_CMD"][2511].param[6] = """Reserved (set to 0)"""
  2567. enums["MAV_CMD"][2511].param[7] = """Reserved (set to 0)"""
  2568. MAV_CMD_AIRFRAME_CONFIGURATION = 2520
  2569. enums["MAV_CMD"][2520] = EnumEntry("MAV_CMD_AIRFRAME_CONFIGURATION", """""")
  2570. enums["MAV_CMD"][2520].param[1] = """Landing gear ID (default: 0, -1 for all)"""
  2571. enums["MAV_CMD"][2520].label[1] = """Landing Gear ID"""
  2572. enums["MAV_CMD"][2520].param[2] = """Landing gear position (Down: 0, Up: 1, NaN for no change)"""
  2573. enums["MAV_CMD"][2520].label[2] = """Landing Gear Position"""
  2574. enums["MAV_CMD"][2520].param[3] = """Reserved (default:NaN)"""
  2575. enums["MAV_CMD"][2520].param[4] = """Reserved (default:NaN)"""
  2576. enums["MAV_CMD"][2520].param[5] = """Reserved (default:0)"""
  2577. enums["MAV_CMD"][2520].param[6] = """Reserved (default:0)"""
  2578. enums["MAV_CMD"][2520].param[7] = """Reserved (default:NaN)"""
  2579. MAV_CMD_CONTROL_HIGH_LATENCY = 2600
  2580. enums["MAV_CMD"][2600] = EnumEntry("MAV_CMD_CONTROL_HIGH_LATENCY", """Request to start/stop transmitting over the high latency telemetry""")
  2581. enums["MAV_CMD"][2600].param[1] = """Control transmission over high latency telemetry (0: stop, 1: start)"""
  2582. enums["MAV_CMD"][2600].label[1] = """Enable"""
  2583. enums["MAV_CMD"][2600].param[2] = """Empty"""
  2584. enums["MAV_CMD"][2600].param[3] = """Empty"""
  2585. enums["MAV_CMD"][2600].param[4] = """Empty"""
  2586. enums["MAV_CMD"][2600].param[5] = """Empty"""
  2587. enums["MAV_CMD"][2600].param[6] = """Empty"""
  2588. enums["MAV_CMD"][2600].param[7] = """Empty"""
  2589. MAV_CMD_PANORAMA_CREATE = 2800
  2590. enums["MAV_CMD"][2800] = EnumEntry("MAV_CMD_PANORAMA_CREATE", """Create a panorama at the current position""")
  2591. enums["MAV_CMD"][2800].param[1] = """Viewing angle horizontal of the panorama (+- 0.5 the total angle)"""
  2592. enums["MAV_CMD"][2800].label[1] = """Horizontal Angle"""
  2593. enums["MAV_CMD"][2800].param[2] = """Viewing angle vertical of panorama."""
  2594. enums["MAV_CMD"][2800].label[2] = """Vertical Angle"""
  2595. enums["MAV_CMD"][2800].param[3] = """Speed of the horizontal rotation."""
  2596. enums["MAV_CMD"][2800].label[3] = """Horizontal Speed"""
  2597. enums["MAV_CMD"][2800].param[4] = """Speed of the vertical rotation."""
  2598. enums["MAV_CMD"][2800].label[4] = """Vertical Speed"""
  2599. enums["MAV_CMD"][2800].param[5] = """Reserved (default:0)"""
  2600. enums["MAV_CMD"][2800].param[6] = """Reserved (default:0)"""
  2601. enums["MAV_CMD"][2800].param[7] = """Reserved (default:0)"""
  2602. MAV_CMD_DO_VTOL_TRANSITION = 3000
  2603. enums["MAV_CMD"][3000] = EnumEntry("MAV_CMD_DO_VTOL_TRANSITION", """Request VTOL transition""")
  2604. enums["MAV_CMD"][3000].param[1] = """The target VTOL state. For normal transitions, only MAV_VTOL_STATE_MC and MAV_VTOL_STATE_FW can be used."""
  2605. enums["MAV_CMD"][3000].label[1] = """State"""
  2606. enums["MAV_CMD"][3000].param[2] = """Force immediate transition to the specified MAV_VTOL_STATE. 1: Force immediate, 0: normal transition. Can be used, for example, to trigger an emergency "Quadchute". Caution: Can be dangerous/damage vehicle, depending on autopilot implementation of this command."""
  2607. enums["MAV_CMD"][3000].label[2] = """Immediate"""
  2608. enums["MAV_CMD"][3000].param[3] = """Reserved (default:0)"""
  2609. enums["MAV_CMD"][3000].param[4] = """Reserved (default:0)"""
  2610. enums["MAV_CMD"][3000].param[5] = """Reserved (default:0)"""
  2611. enums["MAV_CMD"][3000].param[6] = """Reserved (default:0)"""
  2612. enums["MAV_CMD"][3000].param[7] = """Reserved (default:0)"""
  2613. MAV_CMD_ARM_AUTHORIZATION_REQUEST = 3001
  2614. enums["MAV_CMD"][3001] = EnumEntry(
  2615. "MAV_CMD_ARM_AUTHORIZATION_REQUEST",
  2616. """Request authorization to arm the vehicle to a external entity, the arm authorizer is responsible to request all data that is needs from the vehicle before authorize or deny the request.
  2617. If approved the COMMAND_ACK message progress field should be set with period of time that this authorization is valid in seconds.
  2618. If the authorization is denied COMMAND_ACK.result_param2 should be set with one of the reasons in ARM_AUTH_DENIED_REASON.
  2619. """,
  2620. )
  2621. enums["MAV_CMD"][3001].param[1] = """Vehicle system id, this way ground station can request arm authorization on behalf of any vehicle"""
  2622. enums["MAV_CMD"][3001].label[1] = """System ID"""
  2623. enums["MAV_CMD"][3001].param[2] = """Reserved (default:0)"""
  2624. enums["MAV_CMD"][3001].param[3] = """Reserved (default:0)"""
  2625. enums["MAV_CMD"][3001].param[4] = """Reserved (default:0)"""
  2626. enums["MAV_CMD"][3001].param[5] = """Reserved (default:0)"""
  2627. enums["MAV_CMD"][3001].param[6] = """Reserved (default:0)"""
  2628. enums["MAV_CMD"][3001].param[7] = """Reserved (default:0)"""
  2629. MAV_CMD_SET_GUIDED_SUBMODE_STANDARD = 4000
  2630. enums["MAV_CMD"][4000] = EnumEntry(
  2631. "MAV_CMD_SET_GUIDED_SUBMODE_STANDARD",
  2632. """This command sets the submode to standard guided when vehicle is in guided mode. The vehicle holds position and altitude and the user can input the desired velocities along all three axes.
  2633. """,
  2634. )
  2635. enums["MAV_CMD"][4000].param[1] = """Reserved (default:0)"""
  2636. enums["MAV_CMD"][4000].param[2] = """Reserved (default:0)"""
  2637. enums["MAV_CMD"][4000].param[3] = """Reserved (default:0)"""
  2638. enums["MAV_CMD"][4000].param[4] = """Reserved (default:0)"""
  2639. enums["MAV_CMD"][4000].param[5] = """Reserved (default:0)"""
  2640. enums["MAV_CMD"][4000].param[6] = """Reserved (default:0)"""
  2641. enums["MAV_CMD"][4000].param[7] = """Reserved (default:0)"""
  2642. MAV_CMD_SET_GUIDED_SUBMODE_CIRCLE = 4001
  2643. enums["MAV_CMD"][4001] = EnumEntry(
  2644. "MAV_CMD_SET_GUIDED_SUBMODE_CIRCLE",
  2645. """This command sets submode circle when vehicle is in guided mode. Vehicle flies along a circle facing the center of the circle. The user can input the velocity along the circle and change the radius. If no input is given the vehicle will hold position.
  2646. """,
  2647. )
  2648. enums["MAV_CMD"][4001].has_location = True
  2649. enums["MAV_CMD"][4001].param[1] = """Radius of desired circle in CIRCLE_MODE"""
  2650. enums["MAV_CMD"][4001].label[1] = """Radius"""
  2651. enums["MAV_CMD"][4001].param[2] = """User defined"""
  2652. enums["MAV_CMD"][4001].param[3] = """User defined"""
  2653. enums["MAV_CMD"][4001].param[4] = """User defined"""
  2654. enums["MAV_CMD"][4001].param[5] = """Target latitude of center of circle in CIRCLE_MODE"""
  2655. enums["MAV_CMD"][4001].label[5] = """Latitude"""
  2656. enums["MAV_CMD"][4001].param[6] = """Target longitude of center of circle in CIRCLE_MODE"""
  2657. enums["MAV_CMD"][4001].label[6] = """Longitude"""
  2658. enums["MAV_CMD"][4001].param[7] = """Reserved (default:0)"""
  2659. MAV_CMD_CONDITION_GATE = 4501
  2660. enums["MAV_CMD"][4501] = EnumEntry("MAV_CMD_CONDITION_GATE", """Delay mission state machine until gate has been reached.""")
  2661. enums["MAV_CMD"][4501].has_location = True
  2662. enums["MAV_CMD"][4501].param[1] = """Geometry: 0: orthogonal to path between previous and next waypoint."""
  2663. enums["MAV_CMD"][4501].label[1] = """Geometry"""
  2664. enums["MAV_CMD"][4501].param[2] = """Altitude: 0: ignore altitude"""
  2665. enums["MAV_CMD"][4501].label[2] = """UseAltitude"""
  2666. enums["MAV_CMD"][4501].param[3] = """Empty"""
  2667. enums["MAV_CMD"][4501].param[4] = """Empty"""
  2668. enums["MAV_CMD"][4501].param[5] = """Latitude"""
  2669. enums["MAV_CMD"][4501].label[5] = """Latitude"""
  2670. enums["MAV_CMD"][4501].param[6] = """Longitude"""
  2671. enums["MAV_CMD"][4501].label[6] = """Longitude"""
  2672. enums["MAV_CMD"][4501].param[7] = """Altitude"""
  2673. enums["MAV_CMD"][4501].label[7] = """Altitude"""
  2674. MAV_CMD_NAV_FENCE_RETURN_POINT = 5000
  2675. enums["MAV_CMD"][5000] = EnumEntry("MAV_CMD_NAV_FENCE_RETURN_POINT", """Fence return point (there can only be one such point in a geofence definition). If rally points are supported they should be used instead.""")
  2676. enums["MAV_CMD"][5000].has_location = True
  2677. enums["MAV_CMD"][5000].param[1] = """Reserved"""
  2678. enums["MAV_CMD"][5000].param[2] = """Reserved"""
  2679. enums["MAV_CMD"][5000].param[3] = """Reserved"""
  2680. enums["MAV_CMD"][5000].param[4] = """Reserved"""
  2681. enums["MAV_CMD"][5000].param[5] = """Latitude"""
  2682. enums["MAV_CMD"][5000].label[5] = """Latitude"""
  2683. enums["MAV_CMD"][5000].param[6] = """Longitude"""
  2684. enums["MAV_CMD"][5000].label[6] = """Longitude"""
  2685. enums["MAV_CMD"][5000].param[7] = """Altitude"""
  2686. enums["MAV_CMD"][5000].label[7] = """Altitude"""
  2687. MAV_CMD_NAV_FENCE_POLYGON_VERTEX_INCLUSION = 5001
  2688. enums["MAV_CMD"][5001] = EnumEntry(
  2689. "MAV_CMD_NAV_FENCE_POLYGON_VERTEX_INCLUSION",
  2690. """Fence vertex for an inclusion polygon (the polygon must not be self-intersecting). The vehicle must stay within this area. Minimum of 3 vertices required.
  2691. """,
  2692. )
  2693. enums["MAV_CMD"][5001].has_location = True
  2694. enums["MAV_CMD"][5001].param[1] = """Polygon vertex count"""
  2695. enums["MAV_CMD"][5001].label[1] = """Vertex Count"""
  2696. enums["MAV_CMD"][5001].param[2] = """Vehicle must be inside ALL inclusion zones in a single group, vehicle must be inside at least one group, must be the same for all points in each polygon"""
  2697. enums["MAV_CMD"][5001].label[2] = """Inclusion Group"""
  2698. enums["MAV_CMD"][5001].param[3] = """Reserved"""
  2699. enums["MAV_CMD"][5001].param[4] = """Reserved"""
  2700. enums["MAV_CMD"][5001].param[5] = """Latitude"""
  2701. enums["MAV_CMD"][5001].label[5] = """Latitude"""
  2702. enums["MAV_CMD"][5001].param[6] = """Longitude"""
  2703. enums["MAV_CMD"][5001].label[6] = """Longitude"""
  2704. enums["MAV_CMD"][5001].param[7] = """Reserved"""
  2705. MAV_CMD_NAV_FENCE_POLYGON_VERTEX_EXCLUSION = 5002
  2706. enums["MAV_CMD"][5002] = EnumEntry(
  2707. "MAV_CMD_NAV_FENCE_POLYGON_VERTEX_EXCLUSION",
  2708. """Fence vertex for an exclusion polygon (the polygon must not be self-intersecting). The vehicle must stay outside this area. Minimum of 3 vertices required.
  2709. """,
  2710. )
  2711. enums["MAV_CMD"][5002].has_location = True
  2712. enums["MAV_CMD"][5002].param[1] = """Polygon vertex count"""
  2713. enums["MAV_CMD"][5002].label[1] = """Vertex Count"""
  2714. enums["MAV_CMD"][5002].param[2] = """Reserved"""
  2715. enums["MAV_CMD"][5002].param[3] = """Reserved"""
  2716. enums["MAV_CMD"][5002].param[4] = """Reserved"""
  2717. enums["MAV_CMD"][5002].param[5] = """Latitude"""
  2718. enums["MAV_CMD"][5002].label[5] = """Latitude"""
  2719. enums["MAV_CMD"][5002].param[6] = """Longitude"""
  2720. enums["MAV_CMD"][5002].label[6] = """Longitude"""
  2721. enums["MAV_CMD"][5002].param[7] = """Reserved"""
  2722. MAV_CMD_NAV_FENCE_CIRCLE_INCLUSION = 5003
  2723. enums["MAV_CMD"][5003] = EnumEntry(
  2724. "MAV_CMD_NAV_FENCE_CIRCLE_INCLUSION",
  2725. """Circular fence area. The vehicle must stay inside this area.
  2726. """,
  2727. )
  2728. enums["MAV_CMD"][5003].has_location = True
  2729. enums["MAV_CMD"][5003].param[1] = """Radius."""
  2730. enums["MAV_CMD"][5003].label[1] = """Radius"""
  2731. enums["MAV_CMD"][5003].param[2] = """Vehicle must be inside ALL inclusion zones in a single group, vehicle must be inside at least one group"""
  2732. enums["MAV_CMD"][5003].label[2] = """Inclusion Group"""
  2733. enums["MAV_CMD"][5003].param[3] = """Reserved"""
  2734. enums["MAV_CMD"][5003].param[4] = """Reserved"""
  2735. enums["MAV_CMD"][5003].param[5] = """Latitude"""
  2736. enums["MAV_CMD"][5003].label[5] = """Latitude"""
  2737. enums["MAV_CMD"][5003].param[6] = """Longitude"""
  2738. enums["MAV_CMD"][5003].label[6] = """Longitude"""
  2739. enums["MAV_CMD"][5003].param[7] = """Reserved"""
  2740. MAV_CMD_NAV_FENCE_CIRCLE_EXCLUSION = 5004
  2741. enums["MAV_CMD"][5004] = EnumEntry(
  2742. "MAV_CMD_NAV_FENCE_CIRCLE_EXCLUSION",
  2743. """Circular fence area. The vehicle must stay outside this area.
  2744. """,
  2745. )
  2746. enums["MAV_CMD"][5004].has_location = True
  2747. enums["MAV_CMD"][5004].param[1] = """Radius."""
  2748. enums["MAV_CMD"][5004].label[1] = """Radius"""
  2749. enums["MAV_CMD"][5004].param[2] = """Reserved"""
  2750. enums["MAV_CMD"][5004].param[3] = """Reserved"""
  2751. enums["MAV_CMD"][5004].param[4] = """Reserved"""
  2752. enums["MAV_CMD"][5004].param[5] = """Latitude"""
  2753. enums["MAV_CMD"][5004].label[5] = """Latitude"""
  2754. enums["MAV_CMD"][5004].param[6] = """Longitude"""
  2755. enums["MAV_CMD"][5004].label[6] = """Longitude"""
  2756. enums["MAV_CMD"][5004].param[7] = """Reserved"""
  2757. MAV_CMD_NAV_RALLY_POINT = 5100
  2758. enums["MAV_CMD"][5100] = EnumEntry(
  2759. "MAV_CMD_NAV_RALLY_POINT",
  2760. """Rally point. You can have multiple rally points defined.
  2761. """,
  2762. )
  2763. enums["MAV_CMD"][5100].has_location = True
  2764. enums["MAV_CMD"][5100].param[1] = """Reserved"""
  2765. enums["MAV_CMD"][5100].param[2] = """Reserved"""
  2766. enums["MAV_CMD"][5100].param[3] = """Reserved"""
  2767. enums["MAV_CMD"][5100].param[4] = """Reserved"""
  2768. enums["MAV_CMD"][5100].param[5] = """Latitude"""
  2769. enums["MAV_CMD"][5100].label[5] = """Latitude"""
  2770. enums["MAV_CMD"][5100].param[6] = """Longitude"""
  2771. enums["MAV_CMD"][5100].label[6] = """Longitude"""
  2772. enums["MAV_CMD"][5100].param[7] = """Altitude"""
  2773. enums["MAV_CMD"][5100].label[7] = """Altitude"""
  2774. MAV_CMD_UAVCAN_GET_NODE_INFO = 5200
  2775. enums["MAV_CMD"][5200] = EnumEntry("MAV_CMD_UAVCAN_GET_NODE_INFO", """Commands the vehicle to respond with a sequence of messages UAVCAN_NODE_INFO, one message per every UAVCAN node that is online. Note that some of the response messages can be lost, which the receiver can detect easily by checking whether every received UAVCAN_NODE_STATUS has a matching message UAVCAN_NODE_INFO received earlier; if not, this command should be sent again in order to request re-transmission of the node information messages.""")
  2776. enums["MAV_CMD"][5200].param[1] = """Reserved (set to 0)"""
  2777. enums["MAV_CMD"][5200].param[2] = """Reserved (set to 0)"""
  2778. enums["MAV_CMD"][5200].param[3] = """Reserved (set to 0)"""
  2779. enums["MAV_CMD"][5200].param[4] = """Reserved (set to 0)"""
  2780. enums["MAV_CMD"][5200].param[5] = """Reserved (set to 0)"""
  2781. enums["MAV_CMD"][5200].param[6] = """Reserved (set to 0)"""
  2782. enums["MAV_CMD"][5200].param[7] = """Reserved (set to 0)"""
  2783. MAV_CMD_DO_ADSB_OUT_IDENT = 10001
  2784. enums["MAV_CMD"][10001] = EnumEntry("MAV_CMD_DO_ADSB_OUT_IDENT", """Trigger the start of an ADSB-out IDENT. This should only be used when requested to do so by an Air Traffic Controller in controlled airspace. This starts the IDENT which is then typically held for 18 seconds by the hardware per the Mode A, C, and S transponder spec.""")
  2785. enums["MAV_CMD"][10001].param[1] = """Reserved (set to 0)"""
  2786. enums["MAV_CMD"][10001].param[2] = """Reserved (set to 0)"""
  2787. enums["MAV_CMD"][10001].param[3] = """Reserved (set to 0)"""
  2788. enums["MAV_CMD"][10001].param[4] = """Reserved (set to 0)"""
  2789. enums["MAV_CMD"][10001].param[5] = """Reserved (set to 0)"""
  2790. enums["MAV_CMD"][10001].param[6] = """Reserved (set to 0)"""
  2791. enums["MAV_CMD"][10001].param[7] = """Reserved (set to 0)"""
  2792. MAV_CMD_PAYLOAD_PREPARE_DEPLOY = 30001
  2793. enums["MAV_CMD"][30001] = EnumEntry("MAV_CMD_PAYLOAD_PREPARE_DEPLOY", """Deploy payload on a Lat / Lon / Alt position. This includes the navigation to reach the required release position and velocity.""")
  2794. enums["MAV_CMD"][30001].has_location = True
  2795. enums["MAV_CMD"][30001].param[1] = """Operation mode. 0: prepare single payload deploy (overwriting previous requests), but do not execute it. 1: execute payload deploy immediately (rejecting further deploy commands during execution, but allowing abort). 2: add payload deploy to existing deployment list."""
  2796. enums["MAV_CMD"][30001].label[1] = """Operation Mode"""
  2797. enums["MAV_CMD"][30001].param[2] = """Desired approach vector in compass heading. A negative value indicates the system can define the approach vector at will."""
  2798. enums["MAV_CMD"][30001].label[2] = """Approach Vector"""
  2799. enums["MAV_CMD"][30001].param[3] = """Desired ground speed at release time. This can be overridden by the airframe in case it needs to meet minimum airspeed. A negative value indicates the system can define the ground speed at will."""
  2800. enums["MAV_CMD"][30001].label[3] = """Ground Speed"""
  2801. enums["MAV_CMD"][30001].param[4] = """Minimum altitude clearance to the release position. A negative value indicates the system can define the clearance at will."""
  2802. enums["MAV_CMD"][30001].label[4] = """Altitude Clearance"""
  2803. enums["MAV_CMD"][30001].param[5] = """Latitude."""
  2804. enums["MAV_CMD"][30001].label[5] = """Latitude"""
  2805. enums["MAV_CMD"][30001].param[6] = """Longitude."""
  2806. enums["MAV_CMD"][30001].label[6] = """Longitude"""
  2807. enums["MAV_CMD"][30001].param[7] = """Altitude (MSL)"""
  2808. enums["MAV_CMD"][30001].label[7] = """Altitude"""
  2809. MAV_CMD_PAYLOAD_CONTROL_DEPLOY = 30002
  2810. enums["MAV_CMD"][30002] = EnumEntry("MAV_CMD_PAYLOAD_CONTROL_DEPLOY", """Control the payload deployment.""")
  2811. enums["MAV_CMD"][30002].param[1] = """Operation mode. 0: Abort deployment, continue normal mission. 1: switch to payload deployment mode. 100: delete first payload deployment request. 101: delete all payload deployment requests."""
  2812. enums["MAV_CMD"][30002].label[1] = """Operation Mode"""
  2813. enums["MAV_CMD"][30002].param[2] = """Reserved"""
  2814. enums["MAV_CMD"][30002].param[3] = """Reserved"""
  2815. enums["MAV_CMD"][30002].param[4] = """Reserved"""
  2816. enums["MAV_CMD"][30002].param[5] = """Reserved"""
  2817. enums["MAV_CMD"][30002].param[6] = """Reserved"""
  2818. enums["MAV_CMD"][30002].param[7] = """Reserved"""
  2819. MAV_CMD_WAYPOINT_USER_1 = 31000
  2820. enums["MAV_CMD"][31000] = EnumEntry("MAV_CMD_WAYPOINT_USER_1", """User defined waypoint item. Ground Station will show the Vehicle as flying through this item.""")
  2821. enums["MAV_CMD"][31000].has_location = True
  2822. enums["MAV_CMD"][31000].param[1] = """User defined"""
  2823. enums["MAV_CMD"][31000].param[2] = """User defined"""
  2824. enums["MAV_CMD"][31000].param[3] = """User defined"""
  2825. enums["MAV_CMD"][31000].param[4] = """User defined"""
  2826. enums["MAV_CMD"][31000].param[5] = """Latitude unscaled"""
  2827. enums["MAV_CMD"][31000].label[5] = """Latitude"""
  2828. enums["MAV_CMD"][31000].param[6] = """Longitude unscaled"""
  2829. enums["MAV_CMD"][31000].label[6] = """Longitude"""
  2830. enums["MAV_CMD"][31000].param[7] = """Altitude (MSL)"""
  2831. enums["MAV_CMD"][31000].label[7] = """Altitude"""
  2832. MAV_CMD_WAYPOINT_USER_2 = 31001
  2833. enums["MAV_CMD"][31001] = EnumEntry("MAV_CMD_WAYPOINT_USER_2", """User defined waypoint item. Ground Station will show the Vehicle as flying through this item.""")
  2834. enums["MAV_CMD"][31001].has_location = True
  2835. enums["MAV_CMD"][31001].param[1] = """User defined"""
  2836. enums["MAV_CMD"][31001].param[2] = """User defined"""
  2837. enums["MAV_CMD"][31001].param[3] = """User defined"""
  2838. enums["MAV_CMD"][31001].param[4] = """User defined"""
  2839. enums["MAV_CMD"][31001].param[5] = """Latitude unscaled"""
  2840. enums["MAV_CMD"][31001].label[5] = """Latitude"""
  2841. enums["MAV_CMD"][31001].param[6] = """Longitude unscaled"""
  2842. enums["MAV_CMD"][31001].label[6] = """Longitude"""
  2843. enums["MAV_CMD"][31001].param[7] = """Altitude (MSL)"""
  2844. enums["MAV_CMD"][31001].label[7] = """Altitude"""
  2845. MAV_CMD_WAYPOINT_USER_3 = 31002
  2846. enums["MAV_CMD"][31002] = EnumEntry("MAV_CMD_WAYPOINT_USER_3", """User defined waypoint item. Ground Station will show the Vehicle as flying through this item.""")
  2847. enums["MAV_CMD"][31002].has_location = True
  2848. enums["MAV_CMD"][31002].param[1] = """User defined"""
  2849. enums["MAV_CMD"][31002].param[2] = """User defined"""
  2850. enums["MAV_CMD"][31002].param[3] = """User defined"""
  2851. enums["MAV_CMD"][31002].param[4] = """User defined"""
  2852. enums["MAV_CMD"][31002].param[5] = """Latitude unscaled"""
  2853. enums["MAV_CMD"][31002].label[5] = """Latitude"""
  2854. enums["MAV_CMD"][31002].param[6] = """Longitude unscaled"""
  2855. enums["MAV_CMD"][31002].label[6] = """Longitude"""
  2856. enums["MAV_CMD"][31002].param[7] = """Altitude (MSL)"""
  2857. enums["MAV_CMD"][31002].label[7] = """Altitude"""
  2858. MAV_CMD_WAYPOINT_USER_4 = 31003
  2859. enums["MAV_CMD"][31003] = EnumEntry("MAV_CMD_WAYPOINT_USER_4", """User defined waypoint item. Ground Station will show the Vehicle as flying through this item.""")
  2860. enums["MAV_CMD"][31003].has_location = True
  2861. enums["MAV_CMD"][31003].param[1] = """User defined"""
  2862. enums["MAV_CMD"][31003].param[2] = """User defined"""
  2863. enums["MAV_CMD"][31003].param[3] = """User defined"""
  2864. enums["MAV_CMD"][31003].param[4] = """User defined"""
  2865. enums["MAV_CMD"][31003].param[5] = """Latitude unscaled"""
  2866. enums["MAV_CMD"][31003].label[5] = """Latitude"""
  2867. enums["MAV_CMD"][31003].param[6] = """Longitude unscaled"""
  2868. enums["MAV_CMD"][31003].label[6] = """Longitude"""
  2869. enums["MAV_CMD"][31003].param[7] = """Altitude (MSL)"""
  2870. enums["MAV_CMD"][31003].label[7] = """Altitude"""
  2871. MAV_CMD_WAYPOINT_USER_5 = 31004
  2872. enums["MAV_CMD"][31004] = EnumEntry("MAV_CMD_WAYPOINT_USER_5", """User defined waypoint item. Ground Station will show the Vehicle as flying through this item.""")
  2873. enums["MAV_CMD"][31004].has_location = True
  2874. enums["MAV_CMD"][31004].param[1] = """User defined"""
  2875. enums["MAV_CMD"][31004].param[2] = """User defined"""
  2876. enums["MAV_CMD"][31004].param[3] = """User defined"""
  2877. enums["MAV_CMD"][31004].param[4] = """User defined"""
  2878. enums["MAV_CMD"][31004].param[5] = """Latitude unscaled"""
  2879. enums["MAV_CMD"][31004].label[5] = """Latitude"""
  2880. enums["MAV_CMD"][31004].param[6] = """Longitude unscaled"""
  2881. enums["MAV_CMD"][31004].label[6] = """Longitude"""
  2882. enums["MAV_CMD"][31004].param[7] = """Altitude (MSL)"""
  2883. enums["MAV_CMD"][31004].label[7] = """Altitude"""
  2884. MAV_CMD_SPATIAL_USER_1 = 31005
  2885. enums["MAV_CMD"][31005] = EnumEntry("MAV_CMD_SPATIAL_USER_1", """User defined spatial item. Ground Station will not show the Vehicle as flying through this item. Example: ROI item.""")
  2886. enums["MAV_CMD"][31005].has_location = True
  2887. enums["MAV_CMD"][31005].param[1] = """User defined"""
  2888. enums["MAV_CMD"][31005].param[2] = """User defined"""
  2889. enums["MAV_CMD"][31005].param[3] = """User defined"""
  2890. enums["MAV_CMD"][31005].param[4] = """User defined"""
  2891. enums["MAV_CMD"][31005].param[5] = """Latitude unscaled"""
  2892. enums["MAV_CMD"][31005].label[5] = """Latitude"""
  2893. enums["MAV_CMD"][31005].param[6] = """Longitude unscaled"""
  2894. enums["MAV_CMD"][31005].label[6] = """Longitude"""
  2895. enums["MAV_CMD"][31005].param[7] = """Altitude (MSL)"""
  2896. enums["MAV_CMD"][31005].label[7] = """Altitude"""
  2897. MAV_CMD_SPATIAL_USER_2 = 31006
  2898. enums["MAV_CMD"][31006] = EnumEntry("MAV_CMD_SPATIAL_USER_2", """User defined spatial item. Ground Station will not show the Vehicle as flying through this item. Example: ROI item.""")
  2899. enums["MAV_CMD"][31006].has_location = True
  2900. enums["MAV_CMD"][31006].param[1] = """User defined"""
  2901. enums["MAV_CMD"][31006].param[2] = """User defined"""
  2902. enums["MAV_CMD"][31006].param[3] = """User defined"""
  2903. enums["MAV_CMD"][31006].param[4] = """User defined"""
  2904. enums["MAV_CMD"][31006].param[5] = """Latitude unscaled"""
  2905. enums["MAV_CMD"][31006].label[5] = """Latitude"""
  2906. enums["MAV_CMD"][31006].param[6] = """Longitude unscaled"""
  2907. enums["MAV_CMD"][31006].label[6] = """Longitude"""
  2908. enums["MAV_CMD"][31006].param[7] = """Altitude (MSL)"""
  2909. enums["MAV_CMD"][31006].label[7] = """Altitude"""
  2910. MAV_CMD_SPATIAL_USER_3 = 31007
  2911. enums["MAV_CMD"][31007] = EnumEntry("MAV_CMD_SPATIAL_USER_3", """User defined spatial item. Ground Station will not show the Vehicle as flying through this item. Example: ROI item.""")
  2912. enums["MAV_CMD"][31007].has_location = True
  2913. enums["MAV_CMD"][31007].param[1] = """User defined"""
  2914. enums["MAV_CMD"][31007].param[2] = """User defined"""
  2915. enums["MAV_CMD"][31007].param[3] = """User defined"""
  2916. enums["MAV_CMD"][31007].param[4] = """User defined"""
  2917. enums["MAV_CMD"][31007].param[5] = """Latitude unscaled"""
  2918. enums["MAV_CMD"][31007].label[5] = """Latitude"""
  2919. enums["MAV_CMD"][31007].param[6] = """Longitude unscaled"""
  2920. enums["MAV_CMD"][31007].label[6] = """Longitude"""
  2921. enums["MAV_CMD"][31007].param[7] = """Altitude (MSL)"""
  2922. enums["MAV_CMD"][31007].label[7] = """Altitude"""
  2923. MAV_CMD_SPATIAL_USER_4 = 31008
  2924. enums["MAV_CMD"][31008] = EnumEntry("MAV_CMD_SPATIAL_USER_4", """User defined spatial item. Ground Station will not show the Vehicle as flying through this item. Example: ROI item.""")
  2925. enums["MAV_CMD"][31008].has_location = True
  2926. enums["MAV_CMD"][31008].param[1] = """User defined"""
  2927. enums["MAV_CMD"][31008].param[2] = """User defined"""
  2928. enums["MAV_CMD"][31008].param[3] = """User defined"""
  2929. enums["MAV_CMD"][31008].param[4] = """User defined"""
  2930. enums["MAV_CMD"][31008].param[5] = """Latitude unscaled"""
  2931. enums["MAV_CMD"][31008].label[5] = """Latitude"""
  2932. enums["MAV_CMD"][31008].param[6] = """Longitude unscaled"""
  2933. enums["MAV_CMD"][31008].label[6] = """Longitude"""
  2934. enums["MAV_CMD"][31008].param[7] = """Altitude (MSL)"""
  2935. enums["MAV_CMD"][31008].label[7] = """Altitude"""
  2936. MAV_CMD_SPATIAL_USER_5 = 31009
  2937. enums["MAV_CMD"][31009] = EnumEntry("MAV_CMD_SPATIAL_USER_5", """User defined spatial item. Ground Station will not show the Vehicle as flying through this item. Example: ROI item.""")
  2938. enums["MAV_CMD"][31009].has_location = True
  2939. enums["MAV_CMD"][31009].param[1] = """User defined"""
  2940. enums["MAV_CMD"][31009].param[2] = """User defined"""
  2941. enums["MAV_CMD"][31009].param[3] = """User defined"""
  2942. enums["MAV_CMD"][31009].param[4] = """User defined"""
  2943. enums["MAV_CMD"][31009].param[5] = """Latitude unscaled"""
  2944. enums["MAV_CMD"][31009].label[5] = """Latitude"""
  2945. enums["MAV_CMD"][31009].param[6] = """Longitude unscaled"""
  2946. enums["MAV_CMD"][31009].label[6] = """Longitude"""
  2947. enums["MAV_CMD"][31009].param[7] = """Altitude (MSL)"""
  2948. enums["MAV_CMD"][31009].label[7] = """Altitude"""
  2949. MAV_CMD_USER_1 = 31010
  2950. enums["MAV_CMD"][31010] = EnumEntry("MAV_CMD_USER_1", """User defined command. Ground Station will not show the Vehicle as flying through this item. Example: MAV_CMD_DO_SET_PARAMETER item.""")
  2951. enums["MAV_CMD"][31010].param[1] = """User defined"""
  2952. enums["MAV_CMD"][31010].param[2] = """User defined"""
  2953. enums["MAV_CMD"][31010].param[3] = """User defined"""
  2954. enums["MAV_CMD"][31010].param[4] = """User defined"""
  2955. enums["MAV_CMD"][31010].param[5] = """User defined"""
  2956. enums["MAV_CMD"][31010].param[6] = """User defined"""
  2957. enums["MAV_CMD"][31010].param[7] = """User defined"""
  2958. MAV_CMD_USER_2 = 31011
  2959. enums["MAV_CMD"][31011] = EnumEntry("MAV_CMD_USER_2", """User defined command. Ground Station will not show the Vehicle as flying through this item. Example: MAV_CMD_DO_SET_PARAMETER item.""")
  2960. enums["MAV_CMD"][31011].param[1] = """User defined"""
  2961. enums["MAV_CMD"][31011].param[2] = """User defined"""
  2962. enums["MAV_CMD"][31011].param[3] = """User defined"""
  2963. enums["MAV_CMD"][31011].param[4] = """User defined"""
  2964. enums["MAV_CMD"][31011].param[5] = """User defined"""
  2965. enums["MAV_CMD"][31011].param[6] = """User defined"""
  2966. enums["MAV_CMD"][31011].param[7] = """User defined"""
  2967. MAV_CMD_USER_3 = 31012
  2968. enums["MAV_CMD"][31012] = EnumEntry("MAV_CMD_USER_3", """User defined command. Ground Station will not show the Vehicle as flying through this item. Example: MAV_CMD_DO_SET_PARAMETER item.""")
  2969. enums["MAV_CMD"][31012].param[1] = """User defined"""
  2970. enums["MAV_CMD"][31012].param[2] = """User defined"""
  2971. enums["MAV_CMD"][31012].param[3] = """User defined"""
  2972. enums["MAV_CMD"][31012].param[4] = """User defined"""
  2973. enums["MAV_CMD"][31012].param[5] = """User defined"""
  2974. enums["MAV_CMD"][31012].param[6] = """User defined"""
  2975. enums["MAV_CMD"][31012].param[7] = """User defined"""
  2976. MAV_CMD_USER_4 = 31013
  2977. enums["MAV_CMD"][31013] = EnumEntry("MAV_CMD_USER_4", """User defined command. Ground Station will not show the Vehicle as flying through this item. Example: MAV_CMD_DO_SET_PARAMETER item.""")
  2978. enums["MAV_CMD"][31013].param[1] = """User defined"""
  2979. enums["MAV_CMD"][31013].param[2] = """User defined"""
  2980. enums["MAV_CMD"][31013].param[3] = """User defined"""
  2981. enums["MAV_CMD"][31013].param[4] = """User defined"""
  2982. enums["MAV_CMD"][31013].param[5] = """User defined"""
  2983. enums["MAV_CMD"][31013].param[6] = """User defined"""
  2984. enums["MAV_CMD"][31013].param[7] = """User defined"""
  2985. MAV_CMD_USER_5 = 31014
  2986. enums["MAV_CMD"][31014] = EnumEntry("MAV_CMD_USER_5", """User defined command. Ground Station will not show the Vehicle as flying through this item. Example: MAV_CMD_DO_SET_PARAMETER item.""")
  2987. enums["MAV_CMD"][31014].param[1] = """User defined"""
  2988. enums["MAV_CMD"][31014].param[2] = """User defined"""
  2989. enums["MAV_CMD"][31014].param[3] = """User defined"""
  2990. enums["MAV_CMD"][31014].param[4] = """User defined"""
  2991. enums["MAV_CMD"][31014].param[5] = """User defined"""
  2992. enums["MAV_CMD"][31014].param[6] = """User defined"""
  2993. enums["MAV_CMD"][31014].param[7] = """User defined"""
  2994. MAV_CMD_CAN_FORWARD = 32000
  2995. enums["MAV_CMD"][32000] = EnumEntry("MAV_CMD_CAN_FORWARD", """Request forwarding of CAN packets from the given CAN bus to this component. CAN Frames are sent using CAN_FRAME and CANFD_FRAME messages""")
  2996. enums["MAV_CMD"][32000].param[1] = """Bus number (0 to disable forwarding, 1 for first bus, 2 for 2nd bus, 3 for 3rd bus)."""
  2997. enums["MAV_CMD"][32000].label[1] = """bus"""
  2998. enums["MAV_CMD"][32000].param[2] = """Empty."""
  2999. enums["MAV_CMD"][32000].param[3] = """Empty."""
  3000. enums["MAV_CMD"][32000].param[4] = """Empty."""
  3001. enums["MAV_CMD"][32000].param[5] = """Empty."""
  3002. enums["MAV_CMD"][32000].param[6] = """Empty."""
  3003. enums["MAV_CMD"][32000].param[7] = """Empty."""
  3004. MAV_CMD_FIXED_MAG_CAL_YAW = 42006
  3005. enums["MAV_CMD"][42006] = EnumEntry("MAV_CMD_FIXED_MAG_CAL_YAW", """Magnetometer calibration based on provided known yaw. This allows for fast calibration using WMM field tables in the vehicle, given only the known yaw of the vehicle. If Latitude and longitude are both zero then use the current vehicle location.""")
  3006. enums["MAV_CMD"][42006].param[1] = """Yaw of vehicle in earth frame."""
  3007. enums["MAV_CMD"][42006].label[1] = """Yaw"""
  3008. enums["MAV_CMD"][42006].param[2] = """CompassMask, 0 for all."""
  3009. enums["MAV_CMD"][42006].label[2] = """CompassMask"""
  3010. enums["MAV_CMD"][42006].param[3] = """Latitude."""
  3011. enums["MAV_CMD"][42006].label[3] = """Latitude"""
  3012. enums["MAV_CMD"][42006].param[4] = """Longitude."""
  3013. enums["MAV_CMD"][42006].label[4] = """Longitude"""
  3014. enums["MAV_CMD"][42006].param[5] = """Empty."""
  3015. enums["MAV_CMD"][42006].param[6] = """Empty."""
  3016. enums["MAV_CMD"][42006].param[7] = """Empty."""
  3017. MAV_CMD_DO_WINCH = 42600
  3018. enums["MAV_CMD"][42600] = EnumEntry("MAV_CMD_DO_WINCH", """Command to operate winch.""")
  3019. enums["MAV_CMD"][42600].param[1] = """Winch instance number."""
  3020. enums["MAV_CMD"][42600].label[1] = """Instance"""
  3021. enums["MAV_CMD"][42600].param[2] = """Action to perform."""
  3022. enums["MAV_CMD"][42600].label[2] = """Action"""
  3023. enums["MAV_CMD"][42600].param[3] = """Length of line to release (negative to wind)."""
  3024. enums["MAV_CMD"][42600].label[3] = """Length"""
  3025. enums["MAV_CMD"][42600].param[4] = """Release rate (negative to wind)."""
  3026. enums["MAV_CMD"][42600].label[4] = """Rate"""
  3027. enums["MAV_CMD"][42600].param[5] = """Empty."""
  3028. enums["MAV_CMD"][42600].param[6] = """Empty."""
  3029. enums["MAV_CMD"][42600].param[7] = """Empty."""
  3030. MAV_CMD_EXTERNAL_POSITION_ESTIMATE = 43003
  3031. enums["MAV_CMD"][43003] = EnumEntry("MAV_CMD_EXTERNAL_POSITION_ESTIMATE", """Provide an external position estimate for use when dead-reckoning. This is meant to be used for occasional position resets that may be provided by a external system such as a remote pilot using landmarks over a video link.""")
  3032. enums["MAV_CMD"][43003].has_location = True
  3033. enums["MAV_CMD"][43003].param[1] = """Timestamp that this message was sent as a time in the transmitters time domain. The sender should wrap this time back to zero based on required timing accuracy for the application and the limitations of a 32 bit float. For example, wrapping at 10 hours would give approximately 1ms accuracy. Recipient must handle time wrap in any timing jitter correction applied to this field. Wrap rollover time should not be at not more than 250 seconds, which would give approximately 10 microsecond accuracy."""
  3034. enums["MAV_CMD"][43003].label[1] = """transmission_time"""
  3035. enums["MAV_CMD"][43003].param[2] = """The time spent in processing the sensor data that is the basis for this position. The recipient can use this to improve time alignment of the data. Set to zero if not known."""
  3036. enums["MAV_CMD"][43003].label[2] = """processing_time"""
  3037. enums["MAV_CMD"][43003].param[3] = """estimated one standard deviation accuracy of the measurement. Set to NaN if not known."""
  3038. enums["MAV_CMD"][43003].label[3] = """accuracy"""
  3039. enums["MAV_CMD"][43003].param[4] = """Empty"""
  3040. enums["MAV_CMD"][43003].param[5] = """Latitude"""
  3041. enums["MAV_CMD"][43003].label[5] = """Latitude"""
  3042. enums["MAV_CMD"][43003].param[6] = """Longitude"""
  3043. enums["MAV_CMD"][43003].label[6] = """Longitude"""
  3044. enums["MAV_CMD"][43003].param[7] = """Altitude, not used. Should be sent as NaN. May be supported in a future version of this message."""
  3045. enums["MAV_CMD"][43003].label[7] = """Altitude"""
  3046. VKFLY_CMD_NAV_WP = 44010
  3047. enums["MAV_CMD"][44010] = EnumEntry("VKFLY_CMD_NAV_WP", """VKFLY custom takephoto waypoint commond.""")
  3048. enums["MAV_CMD"][44010].has_location = True
  3049. enums["MAV_CMD"][44010].param[1] = """ """
  3050. enums["MAV_CMD"][44010].label[1] = """Hold Time And Speed"""
  3051. enums["MAV_CMD"][44010].param[2] = """ """
  3052. enums["MAV_CMD"][44010].label[2] = """Photo Ctl"""
  3053. enums["MAV_CMD"][44010].param[3] = """ """
  3054. enums["MAV_CMD"][44010].label[3] = """Gimbal Ctl"""
  3055. enums["MAV_CMD"][44010].param[4] = """Yaw control mode"""
  3056. enums["MAV_CMD"][44010].label[4] = """Yaw Mode"""
  3057. enums["MAV_CMD"][44010].param[5] = """Latitude"""
  3058. enums["MAV_CMD"][44010].label[5] = """Latitude"""
  3059. enums["MAV_CMD"][44010].param[6] = """Longitude"""
  3060. enums["MAV_CMD"][44010].label[6] = """Longitude"""
  3061. enums["MAV_CMD"][44010].param[7] = """Altitude"""
  3062. enums["MAV_CMD"][44010].label[7] = """Altitude"""
  3063. VKFLY_CMD_NAV_WP_THROW = 44011
  3064. enums["MAV_CMD"][44011] = EnumEntry("VKFLY_CMD_NAV_WP_THROW", """VKFLY custom throwing waypoint command. """)
  3065. enums["MAV_CMD"][44011].has_location = True
  3066. enums["MAV_CMD"][44011].param[1] = """ """
  3067. enums["MAV_CMD"][44011].label[1] = """Hold Time And Speed"""
  3068. enums["MAV_CMD"][44011].param[2] = """"""
  3069. enums["MAV_CMD"][44011].label[2] = """Throw ParamA"""
  3070. enums["MAV_CMD"][44011].param[3] = """Reserved."""
  3071. enums["MAV_CMD"][44011].label[3] = """Throw ParamB"""
  3072. enums["MAV_CMD"][44011].param[4] = """Yaw control mode."""
  3073. enums["MAV_CMD"][44011].label[4] = """Yaw Mode"""
  3074. enums["MAV_CMD"][44011].param[5] = """Latitude"""
  3075. enums["MAV_CMD"][44011].label[5] = """Latitude"""
  3076. enums["MAV_CMD"][44011].param[6] = """Longitude"""
  3077. enums["MAV_CMD"][44011].label[6] = """Longitude"""
  3078. enums["MAV_CMD"][44011].param[7] = """Altitude"""
  3079. enums["MAV_CMD"][44011].label[7] = """Altitude"""
  3080. VKFLY_CMD_NAV_WP_ORBIT_DO_PHOTO = 44012
  3081. enums["MAV_CMD"][44012] = EnumEntry("VKFLY_CMD_NAV_WP_ORBIT_DO_PHOTO", """VLFLY Custom orbit waypoint """)
  3082. enums["MAV_CMD"][44012].has_location = True
  3083. enums["MAV_CMD"][44012].param[1] = """ """
  3084. enums["MAV_CMD"][44012].label[1] = """Radius And Speed"""
  3085. enums["MAV_CMD"][44012].param[2] = """ """
  3086. enums["MAV_CMD"][44012].label[2] = """Photo Ctl"""
  3087. enums["MAV_CMD"][44012].param[3] = """ """
  3088. enums["MAV_CMD"][44012].label[3] = """Times And Orbit Speed"""
  3089. enums["MAV_CMD"][44012].param[4] = """ """
  3090. enums["MAV_CMD"][44012].label[4] = """Yaw Mode"""
  3091. enums["MAV_CMD"][44012].param[5] = """Latitude"""
  3092. enums["MAV_CMD"][44012].label[5] = """Latitude"""
  3093. enums["MAV_CMD"][44012].param[6] = """Longitude"""
  3094. enums["MAV_CMD"][44012].label[6] = """Longitude"""
  3095. enums["MAV_CMD"][44012].param[7] = """Altitude"""
  3096. enums["MAV_CMD"][44012].label[7] = """Altitude"""
  3097. VKFLY_CMD_NAV_EDU_TRAINING = 44013
  3098. enums["MAV_CMD"][44013] = EnumEntry("VKFLY_CMD_NAV_EDU_TRAINING", """VLFLY Custom orbit waypoint """)
  3099. enums["MAV_CMD"][44013].has_location = True
  3100. enums["MAV_CMD"][44013].param[1] = """ """
  3101. enums["MAV_CMD"][44013].label[1] = """Hold Time And Speed"""
  3102. enums["MAV_CMD"][44013].param[2] = """ """
  3103. enums["MAV_CMD"][44013].label[2] = """Alt Mode And Speed"""
  3104. enums["MAV_CMD"][44013].param[3] = """ """
  3105. enums["MAV_CMD"][44013].label[3] = """Param3"""
  3106. enums["MAV_CMD"][44013].param[4] = """ """
  3107. enums["MAV_CMD"][44013].label[4] = """Yaw Mode"""
  3108. enums["MAV_CMD"][44013].param[5] = """Latitude"""
  3109. enums["MAV_CMD"][44013].label[5] = """Latitude"""
  3110. enums["MAV_CMD"][44013].param[6] = """Longitude"""
  3111. enums["MAV_CMD"][44013].label[6] = """Longitude"""
  3112. enums["MAV_CMD"][44013].param[7] = """Altitude"""
  3113. enums["MAV_CMD"][44013].label[7] = """Altitude"""
  3114. VKFLY_CMD_MOUNT_CTRL = 44030
  3115. enums["MAV_CMD"][44030] = EnumEntry("VKFLY_CMD_MOUNT_CTRL", """VLFLY Custom orbit waypoint """)
  3116. enums["MAV_CMD"][44030].has_location = True
  3117. enums["MAV_CMD"][44030].param[1] = """ """
  3118. enums["MAV_CMD"][44030].param[2] = """ """
  3119. enums["MAV_CMD"][44030].label[2] = """CTRL """
  3120. enums["MAV_CMD"][44030].param[3] = """ """
  3121. enums["MAV_CMD"][44030].label[3] = """Times And Orbit Speed"""
  3122. enums["MAV_CMD"][44030].param[4] = """ """
  3123. enums["MAV_CMD"][44030].label[4] = """Yaw Mode"""
  3124. enums["MAV_CMD"][44030].param[5] = """Latitude"""
  3125. enums["MAV_CMD"][44030].label[5] = """Latitude"""
  3126. enums["MAV_CMD"][44030].param[6] = """Longitude"""
  3127. enums["MAV_CMD"][44030].label[6] = """Longitude"""
  3128. enums["MAV_CMD"][44030].param[7] = """Altitude"""
  3129. enums["MAV_CMD"][44030].label[7] = """Altitude"""
  3130. VKFLY_CMD_FORMATION_FLY = 44031
  3131. enums["MAV_CMD"][44031] = EnumEntry("VKFLY_CMD_FORMATION_FLY", """Formation fly assemble, disband or change formation""")
  3132. enums["MAV_CMD"][44031].param[1] = """1 means assemble, 2 means quit, 3 means change formation"""
  3133. enums["MAV_CMD"][44031].label[1] = """action"""
  3134. enums["MAV_CMD"][44031].param[2] = """"""
  3135. enums["MAV_CMD"][44031].label[2] = """form_type"""
  3136. enums["MAV_CMD"][44031].param[3] = """"""
  3137. enums["MAV_CMD"][44031].label[3] = """rect_col_num"""
  3138. enums["MAV_CMD"][44031].param[4] = """"""
  3139. enums["MAV_CMD"][44031].label[4] = """lock_head"""
  3140. enums["MAV_CMD"][44031].param[5] = """"""
  3141. enums["MAV_CMD"][44031].label[5] = """x_dist"""
  3142. enums["MAV_CMD"][44031].param[6] = """"""
  3143. enums["MAV_CMD"][44031].label[6] = """y_dist"""
  3144. enums["MAV_CMD"][44031].param[7] = """"""
  3145. enums["MAV_CMD"][44031].label[7] = """z_dist"""
  3146. VKFLY_CMD_ESC_CONFIG = 44050
  3147. enums["MAV_CMD"][44050] = EnumEntry("VKFLY_CMD_ESC_CONFIG", """can esc id configuration""")
  3148. enums["MAV_CMD"][44050].param[1] = """ Set Esc id, minValue=1, maxValue=16 """
  3149. enums["MAV_CMD"][44050].label[1] = """Set ID"""
  3150. enums["MAV_CMD"][44050].param[2] = """ """
  3151. enums["MAV_CMD"][44050].param[3] = """ """
  3152. enums["MAV_CMD"][44050].param[4] = """ """
  3153. enums["MAV_CMD"][44050].param[5] = """ """
  3154. enums["MAV_CMD"][44050].param[6] = """ """
  3155. enums["MAV_CMD"][44050].param[7] = """ """
  3156. VKFLY_CMD_RFD_CONFIG = 44051
  3157. enums["MAV_CMD"][44051] = EnumEntry("VKFLY_CMD_RFD_CONFIG", """can esc id configuration""")
  3158. enums["MAV_CMD"][44051].param[1] = """ target component id """
  3159. enums["MAV_CMD"][44051].label[1] = """Target component"""
  3160. enums["MAV_CMD"][44051].param[2] = """ set blind zone, NAN means ignore """
  3161. enums["MAV_CMD"][44051].label[2] = """Set blind zone"""
  3162. enums["MAV_CMD"][44051].param[3] = """ set max range, NAN means ignore """
  3163. enums["MAV_CMD"][44051].label[3] = """Set max range"""
  3164. enums["MAV_CMD"][44051].param[4] = """ """
  3165. enums["MAV_CMD"][44051].param[5] = """ """
  3166. enums["MAV_CMD"][44051].param[6] = """ """
  3167. enums["MAV_CMD"][44051].param[7] = """ """
  3168. VKFLY_CMD_VINS_CONFIG = 44052
  3169. enums["MAV_CMD"][44052] = EnumEntry("VKFLY_CMD_VINS_CONFIG", """VK vins module configuration""")
  3170. enums["MAV_CMD"][44052].param[1] = """Refer to VKFLY_VINS_CONFIG_ACT"""
  3171. enums["MAV_CMD"][44052].label[1] = """VK vins config action"""
  3172. enums["MAV_CMD"][44052].param[2] = """ """
  3173. enums["MAV_CMD"][44052].param[3] = """ """
  3174. enums["MAV_CMD"][44052].param[4] = """ """
  3175. enums["MAV_CMD"][44052].param[5] = """ """
  3176. enums["MAV_CMD"][44052].param[6] = """ """
  3177. enums["MAV_CMD"][44052].param[7] = """Reserved (default:0)"""
  3178. VKFLY_CMD_DO_REPOSITION_THAN_THROW = 44060
  3179. enums["MAV_CMD"][44060] = EnumEntry("VKFLY_CMD_DO_REPOSITION_THAN_THROW", """Do reposition and throwing""")
  3180. enums["MAV_CMD"][44060].has_location = True
  3181. enums["MAV_CMD"][44060].param[1] = """ Throw servo id bitmap """
  3182. enums["MAV_CMD"][44060].label[1] = """Throw servo id"""
  3183. enums["MAV_CMD"][44060].param[2] = """ """
  3184. enums["MAV_CMD"][44060].label[2] = """Throw altitude"""
  3185. enums["MAV_CMD"][44060].param[3] = """ """
  3186. enums["MAV_CMD"][44060].label[3] = """Speed"""
  3187. enums["MAV_CMD"][44060].param[4] = """ """
  3188. enums["MAV_CMD"][44060].label[4] = """Yaw"""
  3189. enums["MAV_CMD"][44060].param[5] = """ """
  3190. enums["MAV_CMD"][44060].label[5] = """Latitude"""
  3191. enums["MAV_CMD"][44060].param[6] = """ """
  3192. enums["MAV_CMD"][44060].label[6] = """Longitude"""
  3193. enums["MAV_CMD"][44060].param[7] = """ """
  3194. enums["MAV_CMD"][44060].label[7] = """Altitude"""
  3195. VKFLY_CMD_DO_REPOSITION_THAN_LAND = 44061
  3196. enums["MAV_CMD"][44061] = EnumEntry("VKFLY_CMD_DO_REPOSITION_THAN_LAND", """Do reposition and throwing""")
  3197. enums["MAV_CMD"][44061].has_location = True
  3198. enums["MAV_CMD"][44061].param[1] = """ Ground msl altitude"""
  3199. enums["MAV_CMD"][44061].label[1] = """Groud Msl"""
  3200. enums["MAV_CMD"][44061].param[2] = """ """
  3201. enums["MAV_CMD"][44061].param[3] = """ """
  3202. enums["MAV_CMD"][44061].label[3] = """Speed"""
  3203. enums["MAV_CMD"][44061].param[4] = """ """
  3204. enums["MAV_CMD"][44061].label[4] = """Yaw"""
  3205. enums["MAV_CMD"][44061].param[5] = """ """
  3206. enums["MAV_CMD"][44061].label[5] = """Latitude"""
  3207. enums["MAV_CMD"][44061].param[6] = """ """
  3208. enums["MAV_CMD"][44061].label[6] = """Longitude"""
  3209. enums["MAV_CMD"][44061].param[7] = """ """
  3210. enums["MAV_CMD"][44061].label[7] = """Altitude"""
  3211. VKFLY_CMD_MISSION_START = 44062
  3212. enums["MAV_CMD"][44062] = EnumEntry("VKFLY_CMD_MISSION_START", """Start mission""")
  3213. enums["MAV_CMD"][44062].param[1] = """start sequence of mission"""
  3214. enums["MAV_CMD"][44062].label[1] = """Start Seq"""
  3215. enums["MAV_CMD"][44062].param[2] = """ """
  3216. enums["MAV_CMD"][44062].label[2] = """Mission Exec Mode"""
  3217. enums["MAV_CMD"][44062].param[3] = """ """
  3218. enums["MAV_CMD"][44062].label[3] = """Mission Done Action"""
  3219. enums["MAV_CMD"][44062].param[4] = """ """
  3220. enums["MAV_CMD"][44062].param[5] = """ """
  3221. enums["MAV_CMD"][44062].param[6] = """ """
  3222. enums["MAV_CMD"][44062].param[7] = """ """
  3223. VKFLY_CMD_RETURN_TO_LAUCH = 44063
  3224. enums["MAV_CMD"][44063] = EnumEntry("VKFLY_CMD_RETURN_TO_LAUCH", """Return to launch position than land""")
  3225. enums["MAV_CMD"][44063].param[1] = """start sequence of mission"""
  3226. enums["MAV_CMD"][44063].label[1] = """Start Seq"""
  3227. enums["MAV_CMD"][44063].param[2] = """ """
  3228. enums["MAV_CMD"][44063].label[2] = """Rtl Exec Mode"""
  3229. enums["MAV_CMD"][44063].param[3] = """ """
  3230. enums["MAV_CMD"][44063].param[4] = """ """
  3231. enums["MAV_CMD"][44063].param[5] = """ """
  3232. enums["MAV_CMD"][44063].param[6] = """ """
  3233. enums["MAV_CMD"][44063].param[7] = """ """
  3234. VKFLY_CMD_WEIGHER_CONFIG = 44064
  3235. enums["MAV_CMD"][44064] = EnumEntry("VKFLY_CMD_WEIGHER_CONFIG", """Weigher config command""")
  3236. enums["MAV_CMD"][44064].param[
  3237. 1
  3238. ] = """NAN means invalid. Other positive value means the
  3239. actual weight"""
  3240. enums["MAV_CMD"][44064].label[1] = """Weight Calibrate"""
  3241. enums["MAV_CMD"][44064].param[2] = """NAN means invalid. 1 means do factory reset."""
  3242. enums["MAV_CMD"][44064].label[2] = """Factory Reset"""
  3243. enums["MAV_CMD"][44064].param[3] = """NAN means invalid. 1 means do eft fuse break."""
  3244. enums["MAV_CMD"][44064].label[3] = """Fuse Break"""
  3245. enums["MAV_CMD"][44064].param[
  3246. 4
  3247. ] = """NAN mean invalid.
  3248. 1 means do release hook, 2 means restart hook, 3 means stop """
  3249. enums["MAV_CMD"][44064].label[4] = """Release Hook"""
  3250. enums["MAV_CMD"][44064].param[
  3251. 5
  3252. ] = """NAN
  3253. mean invalid. """
  3254. enums["MAV_CMD"][44064].label[5] = """Weigher Orientation"""
  3255. enums["MAV_CMD"][44064].param[6] = """ """
  3256. enums["MAV_CMD"][44064].param[7] = """ """
  3257. VKFLY_CMD_DO_FIXEDWING_ACTUATOR_CHECK = 44065
  3258. enums["MAV_CMD"][44065] = EnumEntry("VKFLY_CMD_DO_FIXEDWING_ACTUATOR_CHECK", """Check fixedwing servos.""")
  3259. enums["MAV_CMD"][44065].param[
  3260. 1
  3261. ] = """NAN means ignore.0 do all
  3262. mid, 1 do roll mid, 2 do roll right, 3 do roll left, 4 do pitch mid, 5 do pitch up, 6 do
  3263. pitch down, 7 do yaw mid, 8 do yaw right, 9 do yaw down."""
  3264. enums["MAV_CMD"][44065].label[1] = """actuator check"""
  3265. enums["MAV_CMD"][44065].param[
  3266. 2
  3267. ] = """ NAN means ignore. -1
  3268. throttle off, 0 throttle idle, 100 throttle full """
  3269. enums["MAV_CMD"][44065].label[2] = """throttle check"""
  3270. enums["MAV_CMD"][44065].param[3] = """ """
  3271. enums["MAV_CMD"][44065].param[4] = """ """
  3272. enums["MAV_CMD"][44065].param[5] = """ """
  3273. enums["MAV_CMD"][44065].param[6] = """ """
  3274. enums["MAV_CMD"][44065].param[7] = """ """
  3275. VKFLY_CMD_SET_RTL_CIRCLE_WP = 44066
  3276. enums["MAV_CMD"][44066] = EnumEntry("VKFLY_CMD_SET_RTL_CIRCLE_WP", """Set return circle point.""")
  3277. enums["MAV_CMD"][44066].has_location = True
  3278. enums["MAV_CMD"][44066].param[
  3279. 1
  3280. ] = """NAN means use default circle radius. Positive value means
  3281. circle
  3282. in clockwise."""
  3283. enums["MAV_CMD"][44066].label[1] = """Radius"""
  3284. enums["MAV_CMD"][44066].param[
  3285. 2
  3286. ] = """ NAN means ignore. 1 means do goto rtl circle point right
  3287. now.
  3288. """
  3289. enums["MAV_CMD"][44066].label[2] = """DoNow"""
  3290. enums["MAV_CMD"][44066].param[3] = """ """
  3291. enums["MAV_CMD"][44066].param[4] = """ """
  3292. enums["MAV_CMD"][44066].param[5] = """ """
  3293. enums["MAV_CMD"][44066].label[5] = """Latitude"""
  3294. enums["MAV_CMD"][44066].param[6] = """ """
  3295. enums["MAV_CMD"][44066].label[6] = """Longitude"""
  3296. enums["MAV_CMD"][44066].param[7] = """ """
  3297. enums["MAV_CMD"][44066].label[7] = """Alt"""
  3298. VKFLY_CMD_MISSION_START_EDU_TRAINING = 44067
  3299. enums["MAV_CMD"][44067] = EnumEntry("VKFLY_CMD_MISSION_START_EDU_TRAINING", """Start mission""")
  3300. enums["MAV_CMD"][44067].param[1] = """start sequence of mission"""
  3301. enums["MAV_CMD"][44067].label[1] = """Start Seq"""
  3302. enums["MAV_CMD"][44067].param[2] = """ """
  3303. enums["MAV_CMD"][44067].label[2] = """Loop Count"""
  3304. enums["MAV_CMD"][44067].param[3] = """ """
  3305. enums["MAV_CMD"][44067].label[3] = """Mission Done Action"""
  3306. enums["MAV_CMD"][44067].param[4] = """ """
  3307. enums["MAV_CMD"][44067].param[5] = """ """
  3308. enums["MAV_CMD"][44067].param[6] = """ """
  3309. enums["MAV_CMD"][44067].param[7] = """ """
  3310. VKFLY_CMD_RESUME_WP_ALT = 44068
  3311. enums["MAV_CMD"][44068] = EnumEntry("VKFLY_CMD_RESUME_WP_ALT", """Start mission""")
  3312. enums["MAV_CMD"][44068].param[
  3313. 1
  3314. ] = """resume wp altitude and disable rc
  3315. aux"""
  3316. enums["MAV_CMD"][44068].label[1] = """disable"""
  3317. enums["MAV_CMD"][44068].param[2] = """"""
  3318. enums["MAV_CMD"][44068].param[3] = """"""
  3319. enums["MAV_CMD"][44068].param[4] = """"""
  3320. enums["MAV_CMD"][44068].param[5] = """"""
  3321. enums["MAV_CMD"][44068].param[6] = """"""
  3322. enums["MAV_CMD"][44068].param[7] = """"""
  3323. VKFLY_CMD_EXT_NAV_CFG = 44069
  3324. enums["MAV_CMD"][44069] = EnumEntry("VKFLY_CMD_EXT_NAV_CFG", """Start mission""")
  3325. enums["MAV_CMD"][44069].param[1] = """"""
  3326. enums["MAV_CMD"][44069].label[1] = """conf"""
  3327. enums["MAV_CMD"][44069].param[2] = """"""
  3328. enums["MAV_CMD"][44069].label[2] = """type"""
  3329. enums["MAV_CMD"][44069].param[3] = """"""
  3330. enums["MAV_CMD"][44069].param[4] = """"""
  3331. enums["MAV_CMD"][44069].param[5] = """"""
  3332. enums["MAV_CMD"][44069].param[6] = """"""
  3333. enums["MAV_CMD"][44069].param[7] = """"""
  3334. VKFLY_CMD_DO_REPOSITION = 44070
  3335. enums["MAV_CMD"][44070] = EnumEntry("VKFLY_CMD_DO_REPOSITION", """Do reposition""")
  3336. enums["MAV_CMD"][44070].has_location = True
  3337. enums["MAV_CMD"][44070].param[1] = """"""
  3338. enums["MAV_CMD"][44070].param[2] = """"""
  3339. enums["MAV_CMD"][44070].param[3] = """"""
  3340. enums["MAV_CMD"][44070].param[4] = """ NAN means ignore """
  3341. enums["MAV_CMD"][44070].label[4] = """yaw"""
  3342. enums["MAV_CMD"][44070].param[5] = """ NAN means ignore """
  3343. enums["MAV_CMD"][44070].label[5] = """x"""
  3344. enums["MAV_CMD"][44070].param[6] = """ NAN means ignore """
  3345. enums["MAV_CMD"][44070].label[6] = """y"""
  3346. enums["MAV_CMD"][44070].param[7] = """ NAN means ignore """
  3347. enums["MAV_CMD"][44070].label[7] = """z"""
  3348. VKFLY_CMD_DYNAMIC_ACT = 44071
  3349. enums["MAV_CMD"][44071] = EnumEntry("VKFLY_CMD_DYNAMIC_ACT", """Vehicle act""")
  3350. enums["MAV_CMD"][44071].has_location = True
  3351. enums["MAV_CMD"][44071].param[
  3352. 1
  3353. ] = """NAN means ignore.0 do
  3354. dynamic_takeoff,
  3355. 1 do dynamic_land, 2 do dynamic_follow"""
  3356. enums["MAV_CMD"][44071].label[1] = """action"""
  3357. enums["MAV_CMD"][44071].param[2] = """"""
  3358. enums["MAV_CMD"][44071].param[3] = """"""
  3359. enums["MAV_CMD"][44071].param[4] = """"""
  3360. enums["MAV_CMD"][44071].param[5] = """"""
  3361. enums["MAV_CMD"][44071].param[6] = """"""
  3362. enums["MAV_CMD"][44071].param[7] = """"""
  3363. VKFLY_CMD_DO_REPOSITION_THAN_DO_PARACHUTE = 44072
  3364. enums["MAV_CMD"][44072] = EnumEntry("VKFLY_CMD_DO_REPOSITION_THAN_DO_PARACHUTE", """Do reposition then deploy parachute""")
  3365. enums["MAV_CMD"][44072].has_location = True
  3366. enums["MAV_CMD"][44072].param[1] = """Deploy distance"""
  3367. enums["MAV_CMD"][44072].param[2] = """ """
  3368. enums["MAV_CMD"][44072].param[3] = """ """
  3369. enums["MAV_CMD"][44072].label[3] = """Speed"""
  3370. enums["MAV_CMD"][44072].param[4] = """ """
  3371. enums["MAV_CMD"][44072].param[5] = """ """
  3372. enums["MAV_CMD"][44072].label[5] = """Latitude"""
  3373. enums["MAV_CMD"][44072].param[6] = """ """
  3374. enums["MAV_CMD"][44072].label[6] = """Longitude"""
  3375. enums["MAV_CMD"][44072].param[7] = """ """
  3376. enums["MAV_CMD"][44072].label[7] = """Altitude"""
  3377. VKFLY_CMD_CLEAR_SERVO_DISPALY = 44073
  3378. enums["MAV_CMD"][44073] = EnumEntry("VKFLY_CMD_CLEAR_SERVO_DISPALY", """Vehicle act""")
  3379. enums["MAV_CMD"][44073].param[
  3380. 1
  3381. ] = """NAN means ignore. 1 means
  3382. clear servo status dispaly"""
  3383. enums["MAV_CMD"][44073].label[1] = """clear dispaly"""
  3384. enums["MAV_CMD"][44073].param[2] = """"""
  3385. enums["MAV_CMD"][44073].param[3] = """"""
  3386. enums["MAV_CMD"][44073].param[4] = """"""
  3387. enums["MAV_CMD"][44073].param[5] = """"""
  3388. enums["MAV_CMD"][44073].param[6] = """"""
  3389. enums["MAV_CMD"][44073].param[7] = """"""
  3390. VKFLY_CMD_DESCENDER_CONFIG = 44074
  3391. enums["MAV_CMD"][44074] = EnumEntry("VKFLY_CMD_DESCENDER_CONFIG", """descender ctl""")
  3392. enums["MAV_CMD"][44074].param[
  3393. 1
  3394. ] = """NAN means invalid. 0 means safe_state_switch
  3395. 1 means direct act,2 means mode act"""
  3396. enums["MAV_CMD"][44074].label[1] = """act_option"""
  3397. enums["MAV_CMD"][44074].param[
  3398. 2
  3399. ] = """NAN means invalid. 0 means safe_state off
  3400. 1 means safe_state on"""
  3401. enums["MAV_CMD"][44074].label[2] = """safe_state"""
  3402. enums["MAV_CMD"][44074].param[
  3403. 3
  3404. ] = """NAN means invalid. 0 means emergency_stop
  3405. 1 means Rope Retract to Top, 2 means Rope Extend to Bottom"""
  3406. enums["MAV_CMD"][44074].label[3] = """direct act"""
  3407. enums["MAV_CMD"][44074].param[
  3408. 4
  3409. ] = """NAN means invalid. 0 means length_ctl
  3410. 1 means vel_ctl"""
  3411. enums["MAV_CMD"][44074].label[4] = """quick act_mode"""
  3412. enums["MAV_CMD"][44074].param[5] = """ NAN means invalid."""
  3413. enums["MAV_CMD"][44074].label[5] = """act_param"""
  3414. enums["MAV_CMD"][44074].param[6] = """Reserved (default:0)"""
  3415. enums["MAV_CMD"][44074].param[7] = """Reserved (default:0)"""
  3416. VKFLY_CMD_DO_GUIDE_POINT = 44075
  3417. enums["MAV_CMD"][44075] = EnumEntry("VKFLY_CMD_DO_GUIDE_POINT", """Guide a multicopter to a WGS84 global position, then hold position. Use COMMAND_INT. Parameters follow MAV_CMD_DO_REPOSITION except param2 selects the approach path and param3 selects the approach heading mode. Path and heading options apply only to this command and are not persistent parameters.""")
  3418. enums["MAV_CMD"][44075].has_location = True
  3419. enums["MAV_CMD"][44075].param[1] = """Ground speed. A negative value or NaN selects the current implementation default of 5 m/s."""
  3420. enums["MAV_CMD"][44075].label[1] = """Speed"""
  3421. enums["MAV_CMD"][44075].param[2] = """Required approach path: 0 altitude then horizontal, 1 horizontal then altitude, 2 linear. Other values, including NaN, are rejected."""
  3422. enums["MAV_CMD"][44075].label[2] = """Guide Path"""
  3423. enums["MAV_CMD"][44075].param[3] = """Required heading mode during the approach: 0 face target, 1 keep the heading at command acceptance. Other values, including NaN, are rejected."""
  3424. enums["MAV_CMD"][44075].label[3] = """Yaw Mode"""
  3425. enums["MAV_CMD"][44075].param[4] = """Target yaw after arrival. NaN leaves the approach heading unchanged."""
  3426. enums["MAV_CMD"][44075].label[4] = """Yaw"""
  3427. enums["MAV_CMD"][44075].param[5] = """Target latitude. In COMMAND_INT, use x in degrees multiplied by 1e7."""
  3428. enums["MAV_CMD"][44075].label[5] = """Latitude"""
  3429. enums["MAV_CMD"][44075].param[6] = """Target longitude. In COMMAND_INT, use y in degrees multiplied by 1e7."""
  3430. enums["MAV_CMD"][44075].label[6] = """Longitude"""
  3431. enums["MAV_CMD"][44075].param[7] = """Target altitude in the command frame. NaN keeps the current altitude. GLOBAL frames use AMSL altitude; GLOBAL_RELATIVE_ALT frames use altitude above takeoff."""
  3432. enums["MAV_CMD"][44075].label[7] = """Altitude"""
  3433. MAV_CMD_ENUM_END = 44076
  3434. enums["MAV_CMD"][44076] = EnumEntry("MAV_CMD_ENUM_END", """""")
  3435. # FIRMWARE_VERSION_TYPE
  3436. enums["FIRMWARE_VERSION_TYPE"] = Enum()
  3437. enums["FIRMWARE_VERSION_TYPE"].bitmask = False
  3438. FIRMWARE_VERSION_TYPE_DEV = 0
  3439. enums["FIRMWARE_VERSION_TYPE"][0] = EnumEntry("FIRMWARE_VERSION_TYPE_DEV", """development release""")
  3440. FIRMWARE_VERSION_TYPE_ALPHA = 64
  3441. enums["FIRMWARE_VERSION_TYPE"][64] = EnumEntry("FIRMWARE_VERSION_TYPE_ALPHA", """alpha release""")
  3442. FIRMWARE_VERSION_TYPE_BETA = 128
  3443. enums["FIRMWARE_VERSION_TYPE"][128] = EnumEntry("FIRMWARE_VERSION_TYPE_BETA", """beta release""")
  3444. FIRMWARE_VERSION_TYPE_RC = 192
  3445. enums["FIRMWARE_VERSION_TYPE"][192] = EnumEntry("FIRMWARE_VERSION_TYPE_RC", """release candidate""")
  3446. FIRMWARE_VERSION_TYPE_OFFICIAL = 255
  3447. enums["FIRMWARE_VERSION_TYPE"][255] = EnumEntry("FIRMWARE_VERSION_TYPE_OFFICIAL", """official stable release""")
  3448. FIRMWARE_VERSION_TYPE_ENUM_END = 256
  3449. enums["FIRMWARE_VERSION_TYPE"][256] = EnumEntry("FIRMWARE_VERSION_TYPE_ENUM_END", """""")
  3450. # HL_FAILURE_FLAG
  3451. enums["HL_FAILURE_FLAG"] = Enum()
  3452. enums["HL_FAILURE_FLAG"].bitmask = True
  3453. HL_FAILURE_FLAG_GPS = 1
  3454. enums["HL_FAILURE_FLAG"][1] = EnumEntry("HL_FAILURE_FLAG_GPS", """GPS failure.""")
  3455. HL_FAILURE_FLAG_DIFFERENTIAL_PRESSURE = 2
  3456. enums["HL_FAILURE_FLAG"][2] = EnumEntry("HL_FAILURE_FLAG_DIFFERENTIAL_PRESSURE", """Differential pressure sensor failure.""")
  3457. HL_FAILURE_FLAG_ABSOLUTE_PRESSURE = 4
  3458. enums["HL_FAILURE_FLAG"][4] = EnumEntry("HL_FAILURE_FLAG_ABSOLUTE_PRESSURE", """Absolute pressure sensor failure.""")
  3459. HL_FAILURE_FLAG_3D_ACCEL = 8
  3460. enums["HL_FAILURE_FLAG"][8] = EnumEntry("HL_FAILURE_FLAG_3D_ACCEL", """Accelerometer sensor failure.""")
  3461. HL_FAILURE_FLAG_3D_GYRO = 16
  3462. enums["HL_FAILURE_FLAG"][16] = EnumEntry("HL_FAILURE_FLAG_3D_GYRO", """Gyroscope sensor failure.""")
  3463. HL_FAILURE_FLAG_3D_MAG = 32
  3464. enums["HL_FAILURE_FLAG"][32] = EnumEntry("HL_FAILURE_FLAG_3D_MAG", """Magnetometer sensor failure.""")
  3465. HL_FAILURE_FLAG_TERRAIN = 64
  3466. enums["HL_FAILURE_FLAG"][64] = EnumEntry("HL_FAILURE_FLAG_TERRAIN", """Terrain subsystem failure.""")
  3467. HL_FAILURE_FLAG_BATTERY = 128
  3468. enums["HL_FAILURE_FLAG"][128] = EnumEntry("HL_FAILURE_FLAG_BATTERY", """Battery failure/critical low battery.""")
  3469. HL_FAILURE_FLAG_RC_RECEIVER = 256
  3470. enums["HL_FAILURE_FLAG"][256] = EnumEntry("HL_FAILURE_FLAG_RC_RECEIVER", """RC receiver failure/no RC connection.""")
  3471. HL_FAILURE_FLAG_OFFBOARD_LINK = 512
  3472. enums["HL_FAILURE_FLAG"][512] = EnumEntry("HL_FAILURE_FLAG_OFFBOARD_LINK", """Offboard link failure.""")
  3473. HL_FAILURE_FLAG_ENGINE = 1024
  3474. enums["HL_FAILURE_FLAG"][1024] = EnumEntry("HL_FAILURE_FLAG_ENGINE", """Engine failure.""")
  3475. HL_FAILURE_FLAG_GEOFENCE = 2048
  3476. enums["HL_FAILURE_FLAG"][2048] = EnumEntry("HL_FAILURE_FLAG_GEOFENCE", """Geofence violation.""")
  3477. HL_FAILURE_FLAG_ESTIMATOR = 4096
  3478. enums["HL_FAILURE_FLAG"][4096] = EnumEntry("HL_FAILURE_FLAG_ESTIMATOR", """Estimator failure, for example measurement rejection or large variances.""")
  3479. HL_FAILURE_FLAG_MISSION = 8192
  3480. enums["HL_FAILURE_FLAG"][8192] = EnumEntry("HL_FAILURE_FLAG_MISSION", """Mission failure.""")
  3481. HL_FAILURE_FLAG_ENUM_END = 8193
  3482. enums["HL_FAILURE_FLAG"][8193] = EnumEntry("HL_FAILURE_FLAG_ENUM_END", """""")
  3483. # MAV_GOTO
  3484. enums["MAV_GOTO"] = Enum()
  3485. enums["MAV_GOTO"].bitmask = False
  3486. MAV_GOTO_DO_HOLD = 0
  3487. enums["MAV_GOTO"][0] = EnumEntry("MAV_GOTO_DO_HOLD", """Hold at the current position.""")
  3488. MAV_GOTO_DO_CONTINUE = 1
  3489. enums["MAV_GOTO"][1] = EnumEntry("MAV_GOTO_DO_CONTINUE", """Continue with the next item in mission execution.""")
  3490. MAV_GOTO_HOLD_AT_CURRENT_POSITION = 2
  3491. enums["MAV_GOTO"][2] = EnumEntry("MAV_GOTO_HOLD_AT_CURRENT_POSITION", """Hold at the current position of the system""")
  3492. MAV_GOTO_HOLD_AT_SPECIFIED_POSITION = 3
  3493. enums["MAV_GOTO"][3] = EnumEntry("MAV_GOTO_HOLD_AT_SPECIFIED_POSITION", """Hold at the position specified in the parameters of the DO_HOLD action""")
  3494. MAV_GOTO_ENUM_END = 4
  3495. enums["MAV_GOTO"][4] = EnumEntry("MAV_GOTO_ENUM_END", """""")
  3496. # MAV_MODE
  3497. enums["MAV_MODE"] = Enum()
  3498. enums["MAV_MODE"].bitmask = False
  3499. MAV_MODE_PREFLIGHT = 0
  3500. enums["MAV_MODE"][0] = EnumEntry("MAV_MODE_PREFLIGHT", """System is not ready to fly, booting, calibrating, etc. No flag is set.""")
  3501. MAV_MODE_MANUAL_DISARMED = 64
  3502. enums["MAV_MODE"][64] = EnumEntry("MAV_MODE_MANUAL_DISARMED", """System is allowed to be active, under manual (RC) control, no stabilization""")
  3503. MAV_MODE_TEST_DISARMED = 66
  3504. enums["MAV_MODE"][66] = EnumEntry("MAV_MODE_TEST_DISARMED", """UNDEFINED mode. This solely depends on the autopilot - use with caution, intended for developers only.""")
  3505. MAV_MODE_STABILIZE_DISARMED = 80
  3506. enums["MAV_MODE"][80] = EnumEntry("MAV_MODE_STABILIZE_DISARMED", """System is allowed to be active, under assisted RC control.""")
  3507. MAV_MODE_GUIDED_DISARMED = 88
  3508. enums["MAV_MODE"][88] = EnumEntry("MAV_MODE_GUIDED_DISARMED", """System is allowed to be active, under autonomous control, manual setpoint""")
  3509. MAV_MODE_AUTO_DISARMED = 92
  3510. enums["MAV_MODE"][92] = EnumEntry("MAV_MODE_AUTO_DISARMED", """System is allowed to be active, under autonomous control and navigation (the trajectory is decided onboard and not pre-programmed by waypoints)""")
  3511. MAV_MODE_MANUAL_ARMED = 192
  3512. enums["MAV_MODE"][192] = EnumEntry("MAV_MODE_MANUAL_ARMED", """System is allowed to be active, under manual (RC) control, no stabilization""")
  3513. MAV_MODE_TEST_ARMED = 194
  3514. enums["MAV_MODE"][194] = EnumEntry("MAV_MODE_TEST_ARMED", """UNDEFINED mode. This solely depends on the autopilot - use with caution, intended for developers only.""")
  3515. MAV_MODE_STABILIZE_ARMED = 208
  3516. enums["MAV_MODE"][208] = EnumEntry("MAV_MODE_STABILIZE_ARMED", """System is allowed to be active, under assisted RC control.""")
  3517. MAV_MODE_GUIDED_ARMED = 216
  3518. enums["MAV_MODE"][216] = EnumEntry("MAV_MODE_GUIDED_ARMED", """System is allowed to be active, under autonomous control, manual setpoint""")
  3519. MAV_MODE_AUTO_ARMED = 220
  3520. enums["MAV_MODE"][220] = EnumEntry("MAV_MODE_AUTO_ARMED", """System is allowed to be active, under autonomous control and navigation (the trajectory is decided onboard and not pre-programmed by waypoints)""")
  3521. MAV_MODE_ENUM_END = 221
  3522. enums["MAV_MODE"][221] = EnumEntry("MAV_MODE_ENUM_END", """""")
  3523. # MAV_SYS_STATUS_SENSOR
  3524. enums["MAV_SYS_STATUS_SENSOR"] = Enum()
  3525. enums["MAV_SYS_STATUS_SENSOR"].bitmask = True
  3526. MAV_SYS_STATUS_SENSOR_3D_GYRO = 1
  3527. enums["MAV_SYS_STATUS_SENSOR"][1] = EnumEntry("MAV_SYS_STATUS_SENSOR_3D_GYRO", """0x01 3D gyro""")
  3528. MAV_SYS_STATUS_SENSOR_3D_ACCEL = 2
  3529. enums["MAV_SYS_STATUS_SENSOR"][2] = EnumEntry("MAV_SYS_STATUS_SENSOR_3D_ACCEL", """0x02 3D accelerometer""")
  3530. MAV_SYS_STATUS_SENSOR_3D_MAG = 4
  3531. enums["MAV_SYS_STATUS_SENSOR"][4] = EnumEntry("MAV_SYS_STATUS_SENSOR_3D_MAG", """0x04 3D magnetometer""")
  3532. MAV_SYS_STATUS_SENSOR_ABSOLUTE_PRESSURE = 8
  3533. enums["MAV_SYS_STATUS_SENSOR"][8] = EnumEntry("MAV_SYS_STATUS_SENSOR_ABSOLUTE_PRESSURE", """0x08 absolute pressure""")
  3534. MAV_SYS_STATUS_SENSOR_DIFFERENTIAL_PRESSURE = 16
  3535. enums["MAV_SYS_STATUS_SENSOR"][16] = EnumEntry("MAV_SYS_STATUS_SENSOR_DIFFERENTIAL_PRESSURE", """0x10 differential pressure""")
  3536. MAV_SYS_STATUS_SENSOR_GPS = 32
  3537. enums["MAV_SYS_STATUS_SENSOR"][32] = EnumEntry("MAV_SYS_STATUS_SENSOR_GPS", """0x20 GPS""")
  3538. MAV_SYS_STATUS_SENSOR_OPTICAL_FLOW = 64
  3539. enums["MAV_SYS_STATUS_SENSOR"][64] = EnumEntry("MAV_SYS_STATUS_SENSOR_OPTICAL_FLOW", """0x40 optical flow""")
  3540. MAV_SYS_STATUS_SENSOR_VISION_POSITION = 128
  3541. enums["MAV_SYS_STATUS_SENSOR"][128] = EnumEntry("MAV_SYS_STATUS_SENSOR_VISION_POSITION", """0x80 computer vision position""")
  3542. MAV_SYS_STATUS_SENSOR_LASER_POSITION = 256
  3543. enums["MAV_SYS_STATUS_SENSOR"][256] = EnumEntry("MAV_SYS_STATUS_SENSOR_LASER_POSITION", """0x100 laser based position""")
  3544. MAV_SYS_STATUS_SENSOR_EXTERNAL_GROUND_TRUTH = 512
  3545. enums["MAV_SYS_STATUS_SENSOR"][512] = EnumEntry("MAV_SYS_STATUS_SENSOR_EXTERNAL_GROUND_TRUTH", """0x200 external ground truth (Vicon or Leica)""")
  3546. MAV_SYS_STATUS_SENSOR_ANGULAR_RATE_CONTROL = 1024
  3547. enums["MAV_SYS_STATUS_SENSOR"][1024] = EnumEntry("MAV_SYS_STATUS_SENSOR_ANGULAR_RATE_CONTROL", """0x400 3D angular rate control""")
  3548. MAV_SYS_STATUS_SENSOR_ATTITUDE_STABILIZATION = 2048
  3549. enums["MAV_SYS_STATUS_SENSOR"][2048] = EnumEntry("MAV_SYS_STATUS_SENSOR_ATTITUDE_STABILIZATION", """0x800 attitude stabilization""")
  3550. MAV_SYS_STATUS_SENSOR_YAW_POSITION = 4096
  3551. enums["MAV_SYS_STATUS_SENSOR"][4096] = EnumEntry("MAV_SYS_STATUS_SENSOR_YAW_POSITION", """0x1000 yaw position""")
  3552. MAV_SYS_STATUS_SENSOR_Z_ALTITUDE_CONTROL = 8192
  3553. enums["MAV_SYS_STATUS_SENSOR"][8192] = EnumEntry("MAV_SYS_STATUS_SENSOR_Z_ALTITUDE_CONTROL", """0x2000 z/altitude control""")
  3554. MAV_SYS_STATUS_SENSOR_XY_POSITION_CONTROL = 16384
  3555. enums["MAV_SYS_STATUS_SENSOR"][16384] = EnumEntry("MAV_SYS_STATUS_SENSOR_XY_POSITION_CONTROL", """0x4000 x/y position control""")
  3556. MAV_SYS_STATUS_SENSOR_MOTOR_OUTPUTS = 32768
  3557. enums["MAV_SYS_STATUS_SENSOR"][32768] = EnumEntry("MAV_SYS_STATUS_SENSOR_MOTOR_OUTPUTS", """0x8000 motor outputs / control""")
  3558. MAV_SYS_STATUS_SENSOR_RC_RECEIVER = 65536
  3559. enums["MAV_SYS_STATUS_SENSOR"][65536] = EnumEntry("MAV_SYS_STATUS_SENSOR_RC_RECEIVER", """0x10000 RC receiver""")
  3560. MAV_SYS_STATUS_SENSOR_3D_GYRO2 = 131072
  3561. enums["MAV_SYS_STATUS_SENSOR"][131072] = EnumEntry("MAV_SYS_STATUS_SENSOR_3D_GYRO2", """0x20000 2nd 3D gyro""")
  3562. MAV_SYS_STATUS_SENSOR_3D_ACCEL2 = 262144
  3563. enums["MAV_SYS_STATUS_SENSOR"][262144] = EnumEntry("MAV_SYS_STATUS_SENSOR_3D_ACCEL2", """0x40000 2nd 3D accelerometer""")
  3564. MAV_SYS_STATUS_SENSOR_3D_MAG2 = 524288
  3565. enums["MAV_SYS_STATUS_SENSOR"][524288] = EnumEntry("MAV_SYS_STATUS_SENSOR_3D_MAG2", """0x80000 2nd 3D magnetometer""")
  3566. MAV_SYS_STATUS_GEOFENCE = 1048576
  3567. enums["MAV_SYS_STATUS_SENSOR"][1048576] = EnumEntry("MAV_SYS_STATUS_GEOFENCE", """0x100000 geofence""")
  3568. MAV_SYS_STATUS_AHRS = 2097152
  3569. enums["MAV_SYS_STATUS_SENSOR"][2097152] = EnumEntry("MAV_SYS_STATUS_AHRS", """0x200000 AHRS subsystem health""")
  3570. MAV_SYS_STATUS_TERRAIN = 4194304
  3571. enums["MAV_SYS_STATUS_SENSOR"][4194304] = EnumEntry("MAV_SYS_STATUS_TERRAIN", """0x400000 Terrain subsystem health""")
  3572. MAV_SYS_STATUS_REVERSE_MOTOR = 8388608
  3573. enums["MAV_SYS_STATUS_SENSOR"][8388608] = EnumEntry("MAV_SYS_STATUS_REVERSE_MOTOR", """0x800000 Motors are reversed""")
  3574. MAV_SYS_STATUS_LOGGING = 16777216
  3575. enums["MAV_SYS_STATUS_SENSOR"][16777216] = EnumEntry("MAV_SYS_STATUS_LOGGING", """0x1000000 Logging""")
  3576. MAV_SYS_STATUS_SENSOR_BATTERY = 33554432
  3577. enums["MAV_SYS_STATUS_SENSOR"][33554432] = EnumEntry("MAV_SYS_STATUS_SENSOR_BATTERY", """0x2000000 Battery""")
  3578. MAV_SYS_STATUS_SENSOR_PROXIMITY = 67108864
  3579. enums["MAV_SYS_STATUS_SENSOR"][67108864] = EnumEntry("MAV_SYS_STATUS_SENSOR_PROXIMITY", """0x4000000 Proximity""")
  3580. MAV_SYS_STATUS_SENSOR_SATCOM = 134217728
  3581. enums["MAV_SYS_STATUS_SENSOR"][134217728] = EnumEntry("MAV_SYS_STATUS_SENSOR_SATCOM", """0x8000000 Satellite Communication """)
  3582. MAV_SYS_STATUS_PREARM_CHECK = 268435456
  3583. enums["MAV_SYS_STATUS_SENSOR"][268435456] = EnumEntry("MAV_SYS_STATUS_PREARM_CHECK", """0x10000000 pre-arm check status. Always healthy when armed""")
  3584. MAV_SYS_STATUS_OBSTACLE_AVOIDANCE = 536870912
  3585. enums["MAV_SYS_STATUS_SENSOR"][536870912] = EnumEntry("MAV_SYS_STATUS_OBSTACLE_AVOIDANCE", """0x20000000 Avoidance/collision prevention""")
  3586. MAV_SYS_STATUS_SENSOR_PROPULSION = 1073741824
  3587. enums["MAV_SYS_STATUS_SENSOR"][1073741824] = EnumEntry("MAV_SYS_STATUS_SENSOR_PROPULSION", """0x40000000 propulsion (actuator, esc, motor or propellor)""")
  3588. MAV_SYS_STATUS_EXTENSION_USED = 2147483648
  3589. enums["MAV_SYS_STATUS_SENSOR"][2147483648] = EnumEntry("MAV_SYS_STATUS_EXTENSION_USED", """0x80000000 Extended bit-field are used for further sensor status bits (needs to be set in onboard_control_sensors_present only)""")
  3590. MAV_SYS_STATUS_SENSOR_ENUM_END = 2147483649
  3591. enums["MAV_SYS_STATUS_SENSOR"][2147483649] = EnumEntry("MAV_SYS_STATUS_SENSOR_ENUM_END", """""")
  3592. # MAV_SYS_STATUS_SENSOR_EXTENDED
  3593. enums["MAV_SYS_STATUS_SENSOR_EXTENDED"] = Enum()
  3594. enums["MAV_SYS_STATUS_SENSOR_EXTENDED"].bitmask = True
  3595. MAV_SYS_STATUS_RECOVERY_SYSTEM = 1
  3596. enums["MAV_SYS_STATUS_SENSOR_EXTENDED"][1] = EnumEntry("MAV_SYS_STATUS_RECOVERY_SYSTEM", """0x01 Recovery system (parachute, balloon, retracts etc)""")
  3597. MAV_SYS_STATUS_SENSOR_EXTENDED_ENUM_END = 2
  3598. enums["MAV_SYS_STATUS_SENSOR_EXTENDED"][2] = EnumEntry("MAV_SYS_STATUS_SENSOR_EXTENDED_ENUM_END", """""")
  3599. # MAV_FRAME
  3600. enums["MAV_FRAME"] = Enum()
  3601. enums["MAV_FRAME"].bitmask = False
  3602. MAV_FRAME_GLOBAL = 0
  3603. enums["MAV_FRAME"][0] = EnumEntry("MAV_FRAME_GLOBAL", """Global (WGS84) coordinate frame + MSL altitude. First value / x: latitude, second value / y: longitude, third value / z: positive altitude over mean sea level (MSL).""")
  3604. MAV_FRAME_LOCAL_NED = 1
  3605. enums["MAV_FRAME"][1] = EnumEntry("MAV_FRAME_LOCAL_NED", """NED local tangent frame (x: North, y: East, z: Down) with origin fixed relative to earth.""")
  3606. MAV_FRAME_MISSION = 2
  3607. enums["MAV_FRAME"][2] = EnumEntry("MAV_FRAME_MISSION", """NOT a coordinate frame, indicates a mission command.""")
  3608. MAV_FRAME_GLOBAL_RELATIVE_ALT = 3
  3609. enums["MAV_FRAME"][3] = EnumEntry(
  3610. "MAV_FRAME_GLOBAL_RELATIVE_ALT",
  3611. """
  3612. Global (WGS84) coordinate frame + altitude relative to the home position.
  3613. First value / x: latitude, second value / y: longitude, third value / z: positive altitude with 0 being at the altitude of the home position.
  3614. """,
  3615. )
  3616. MAV_FRAME_LOCAL_ENU = 4
  3617. enums["MAV_FRAME"][4] = EnumEntry("MAV_FRAME_LOCAL_ENU", """ENU local tangent frame (x: East, y: North, z: Up) with origin fixed relative to earth.""")
  3618. MAV_FRAME_GLOBAL_INT = 5
  3619. enums["MAV_FRAME"][5] = EnumEntry("MAV_FRAME_GLOBAL_INT", """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).""")
  3620. MAV_FRAME_GLOBAL_RELATIVE_ALT_INT = 6
  3621. enums["MAV_FRAME"][6] = EnumEntry(
  3622. "MAV_FRAME_GLOBAL_RELATIVE_ALT_INT",
  3623. """
  3624. Global (WGS84) coordinate frame (scaled) + altitude relative to the home position.
  3625. 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.
  3626. """,
  3627. )
  3628. MAV_FRAME_LOCAL_OFFSET_NED = 7
  3629. enums["MAV_FRAME"][7] = EnumEntry("MAV_FRAME_LOCAL_OFFSET_NED", """NED local tangent frame (x: North, y: East, z: Down) with origin that travels with the vehicle.""")
  3630. MAV_FRAME_BODY_NED = 8
  3631. enums["MAV_FRAME"][8] = EnumEntry("MAV_FRAME_BODY_NED", """Same as MAV_FRAME_LOCAL_NED when used to represent position values. Same as MAV_FRAME_BODY_FRD when used with velocity/acceleration values.""")
  3632. MAV_FRAME_BODY_OFFSET_NED = 9
  3633. enums["MAV_FRAME"][9] = EnumEntry("MAV_FRAME_BODY_OFFSET_NED", """This is the same as MAV_FRAME_BODY_FRD.""")
  3634. MAV_FRAME_GLOBAL_TERRAIN_ALT = 10
  3635. enums["MAV_FRAME"][10] = EnumEntry("MAV_FRAME_GLOBAL_TERRAIN_ALT", """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.""")
  3636. MAV_FRAME_GLOBAL_TERRAIN_ALT_INT = 11
  3637. enums["MAV_FRAME"][11] = EnumEntry("MAV_FRAME_GLOBAL_TERRAIN_ALT_INT", """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.""")
  3638. MAV_FRAME_BODY_FRD = 12
  3639. enums["MAV_FRAME"][12] = EnumEntry("MAV_FRAME_BODY_FRD", """FRD local frame aligned to the vehicle's attitude (x: Forward, y: Right, z: Down) with an origin that travels with vehicle.""")
  3640. MAV_FRAME_RESERVED_13 = 13
  3641. enums["MAV_FRAME"][13] = EnumEntry("MAV_FRAME_RESERVED_13", """MAV_FRAME_BODY_FLU - Body fixed frame of reference, Z-up (x: Forward, y: Left, z: Up).""")
  3642. MAV_FRAME_RESERVED_14 = 14
  3643. enums["MAV_FRAME"][14] = EnumEntry("MAV_FRAME_RESERVED_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).""")
  3644. MAV_FRAME_RESERVED_15 = 15
  3645. enums["MAV_FRAME"][15] = EnumEntry("MAV_FRAME_RESERVED_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).""")
  3646. MAV_FRAME_RESERVED_16 = 16
  3647. enums["MAV_FRAME"][16] = EnumEntry("MAV_FRAME_RESERVED_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).""")
  3648. MAV_FRAME_RESERVED_17 = 17
  3649. enums["MAV_FRAME"][17] = EnumEntry("MAV_FRAME_RESERVED_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).""")
  3650. MAV_FRAME_RESERVED_18 = 18
  3651. enums["MAV_FRAME"][18] = EnumEntry("MAV_FRAME_RESERVED_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).""")
  3652. MAV_FRAME_RESERVED_19 = 19
  3653. enums["MAV_FRAME"][19] = EnumEntry("MAV_FRAME_RESERVED_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).""")
  3654. MAV_FRAME_LOCAL_FRD = 20
  3655. enums["MAV_FRAME"][20] = EnumEntry("MAV_FRAME_LOCAL_FRD", """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.""")
  3656. MAV_FRAME_LOCAL_FLU = 21
  3657. enums["MAV_FRAME"][21] = EnumEntry("MAV_FRAME_LOCAL_FLU", """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.""")
  3658. MAV_FRAME_ENUM_END = 22
  3659. enums["MAV_FRAME"][22] = EnumEntry("MAV_FRAME_ENUM_END", """""")
  3660. # MAVLINK_DATA_STREAM_TYPE
  3661. enums["MAVLINK_DATA_STREAM_TYPE"] = Enum()
  3662. enums["MAVLINK_DATA_STREAM_TYPE"].bitmask = False
  3663. MAVLINK_DATA_STREAM_IMG_JPEG = 0
  3664. enums["MAVLINK_DATA_STREAM_TYPE"][0] = EnumEntry("MAVLINK_DATA_STREAM_IMG_JPEG", """""")
  3665. MAVLINK_DATA_STREAM_IMG_BMP = 1
  3666. enums["MAVLINK_DATA_STREAM_TYPE"][1] = EnumEntry("MAVLINK_DATA_STREAM_IMG_BMP", """""")
  3667. MAVLINK_DATA_STREAM_IMG_RAW8U = 2
  3668. enums["MAVLINK_DATA_STREAM_TYPE"][2] = EnumEntry("MAVLINK_DATA_STREAM_IMG_RAW8U", """""")
  3669. MAVLINK_DATA_STREAM_IMG_RAW32U = 3
  3670. enums["MAVLINK_DATA_STREAM_TYPE"][3] = EnumEntry("MAVLINK_DATA_STREAM_IMG_RAW32U", """""")
  3671. MAVLINK_DATA_STREAM_IMG_PGM = 4
  3672. enums["MAVLINK_DATA_STREAM_TYPE"][4] = EnumEntry("MAVLINK_DATA_STREAM_IMG_PGM", """""")
  3673. MAVLINK_DATA_STREAM_IMG_PNG = 5
  3674. enums["MAVLINK_DATA_STREAM_TYPE"][5] = EnumEntry("MAVLINK_DATA_STREAM_IMG_PNG", """""")
  3675. MAVLINK_DATA_STREAM_TYPE_ENUM_END = 6
  3676. enums["MAVLINK_DATA_STREAM_TYPE"][6] = EnumEntry("MAVLINK_DATA_STREAM_TYPE_ENUM_END", """""")
  3677. # FENCE_ACTION
  3678. enums["FENCE_ACTION"] = Enum()
  3679. enums["FENCE_ACTION"].bitmask = False
  3680. FENCE_ACTION_NONE = 0
  3681. enums["FENCE_ACTION"][0] = EnumEntry("FENCE_ACTION_NONE", """Disable fenced mode. If used in a plan this would mean the next fence is disabled.""")
  3682. FENCE_ACTION_GUIDED = 1
  3683. enums["FENCE_ACTION"][1] = EnumEntry("FENCE_ACTION_GUIDED", """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.""")
  3684. FENCE_ACTION_REPORT = 2
  3685. enums["FENCE_ACTION"][2] = EnumEntry("FENCE_ACTION_REPORT", """Report fence breach, but don't take action""")
  3686. FENCE_ACTION_GUIDED_THR_PASS = 3
  3687. enums["FENCE_ACTION"][3] = EnumEntry("FENCE_ACTION_GUIDED_THR_PASS", """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.""")
  3688. FENCE_ACTION_RTL = 4
  3689. enums["FENCE_ACTION"][4] = EnumEntry("FENCE_ACTION_RTL", """Return/RTL mode.""")
  3690. FENCE_ACTION_HOLD = 5
  3691. enums["FENCE_ACTION"][5] = EnumEntry("FENCE_ACTION_HOLD", """Hold at current location.""")
  3692. FENCE_ACTION_TERMINATE = 6
  3693. enums["FENCE_ACTION"][6] = EnumEntry("FENCE_ACTION_TERMINATE", """Termination failsafe. Motors are shut down (some flight stacks may trigger other failsafe actions).""")
  3694. FENCE_ACTION_LAND = 7
  3695. enums["FENCE_ACTION"][7] = EnumEntry("FENCE_ACTION_LAND", """Land at current location.""")
  3696. FENCE_ACTION_ENUM_END = 8
  3697. enums["FENCE_ACTION"][8] = EnumEntry("FENCE_ACTION_ENUM_END", """""")
  3698. # FENCE_BREACH
  3699. enums["FENCE_BREACH"] = Enum()
  3700. enums["FENCE_BREACH"].bitmask = False
  3701. FENCE_BREACH_NONE = 0
  3702. enums["FENCE_BREACH"][0] = EnumEntry("FENCE_BREACH_NONE", """No last fence breach""")
  3703. FENCE_BREACH_MINALT = 1
  3704. enums["FENCE_BREACH"][1] = EnumEntry("FENCE_BREACH_MINALT", """Breached minimum altitude""")
  3705. FENCE_BREACH_MAXALT = 2
  3706. enums["FENCE_BREACH"][2] = EnumEntry("FENCE_BREACH_MAXALT", """Breached maximum altitude""")
  3707. FENCE_BREACH_BOUNDARY = 3
  3708. enums["FENCE_BREACH"][3] = EnumEntry("FENCE_BREACH_BOUNDARY", """Breached fence boundary""")
  3709. FENCE_BREACH_ENUM_END = 4
  3710. enums["FENCE_BREACH"][4] = EnumEntry("FENCE_BREACH_ENUM_END", """""")
  3711. # FENCE_MITIGATE
  3712. enums["FENCE_MITIGATE"] = Enum()
  3713. enums["FENCE_MITIGATE"].bitmask = False
  3714. FENCE_MITIGATE_UNKNOWN = 0
  3715. enums["FENCE_MITIGATE"][0] = EnumEntry("FENCE_MITIGATE_UNKNOWN", """Unknown""")
  3716. FENCE_MITIGATE_NONE = 1
  3717. enums["FENCE_MITIGATE"][1] = EnumEntry("FENCE_MITIGATE_NONE", """No actions being taken""")
  3718. FENCE_MITIGATE_VEL_LIMIT = 2
  3719. enums["FENCE_MITIGATE"][2] = EnumEntry("FENCE_MITIGATE_VEL_LIMIT", """Velocity limiting active to prevent breach""")
  3720. FENCE_MITIGATE_ENUM_END = 3
  3721. enums["FENCE_MITIGATE"][3] = EnumEntry("FENCE_MITIGATE_ENUM_END", """""")
  3722. # MAV_MOUNT_MODE
  3723. enums["MAV_MOUNT_MODE"] = Enum()
  3724. enums["MAV_MOUNT_MODE"].bitmask = False
  3725. MAV_MOUNT_MODE_RETRACT = 0
  3726. enums["MAV_MOUNT_MODE"][0] = EnumEntry("MAV_MOUNT_MODE_RETRACT", """Load and keep safe position (Roll,Pitch,Yaw) from permanent memory and stop stabilization""")
  3727. MAV_MOUNT_MODE_NEUTRAL = 1
  3728. enums["MAV_MOUNT_MODE"][1] = EnumEntry("MAV_MOUNT_MODE_NEUTRAL", """Load and keep neutral position (Roll,Pitch,Yaw) from permanent memory.""")
  3729. MAV_MOUNT_MODE_MAVLINK_TARGETING = 2
  3730. enums["MAV_MOUNT_MODE"][2] = EnumEntry("MAV_MOUNT_MODE_MAVLINK_TARGETING", """Load neutral position and start MAVLink Roll,Pitch,Yaw control with stabilization""")
  3731. MAV_MOUNT_MODE_RC_TARGETING = 3
  3732. enums["MAV_MOUNT_MODE"][3] = EnumEntry("MAV_MOUNT_MODE_RC_TARGETING", """Load neutral position and start RC Roll,Pitch,Yaw control with stabilization""")
  3733. MAV_MOUNT_MODE_GPS_POINT = 4
  3734. enums["MAV_MOUNT_MODE"][4] = EnumEntry("MAV_MOUNT_MODE_GPS_POINT", """Load neutral position and start to point to Lat,Lon,Alt""")
  3735. MAV_MOUNT_MODE_SYSID_TARGET = 5
  3736. enums["MAV_MOUNT_MODE"][5] = EnumEntry("MAV_MOUNT_MODE_SYSID_TARGET", """Gimbal tracks system with specified system ID""")
  3737. MAV_MOUNT_MODE_HOME_LOCATION = 6
  3738. enums["MAV_MOUNT_MODE"][6] = EnumEntry("MAV_MOUNT_MODE_HOME_LOCATION", """Gimbal tracks home position""")
  3739. MAV_MOUNT_MODE_ENUM_END = 7
  3740. enums["MAV_MOUNT_MODE"][7] = EnumEntry("MAV_MOUNT_MODE_ENUM_END", """""")
  3741. # GIMBAL_DEVICE_CAP_FLAGS
  3742. enums["GIMBAL_DEVICE_CAP_FLAGS"] = Enum()
  3743. enums["GIMBAL_DEVICE_CAP_FLAGS"].bitmask = True
  3744. GIMBAL_DEVICE_CAP_FLAGS_HAS_RETRACT = 1
  3745. enums["GIMBAL_DEVICE_CAP_FLAGS"][1] = EnumEntry("GIMBAL_DEVICE_CAP_FLAGS_HAS_RETRACT", """Gimbal device supports a retracted position.""")
  3746. GIMBAL_DEVICE_CAP_FLAGS_HAS_NEUTRAL = 2
  3747. enums["GIMBAL_DEVICE_CAP_FLAGS"][2] = EnumEntry("GIMBAL_DEVICE_CAP_FLAGS_HAS_NEUTRAL", """Gimbal device supports a horizontal, forward looking position, stabilized.""")
  3748. GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_AXIS = 4
  3749. enums["GIMBAL_DEVICE_CAP_FLAGS"][4] = EnumEntry("GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_AXIS", """Gimbal device supports rotating around roll axis.""")
  3750. GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_FOLLOW = 8
  3751. enums["GIMBAL_DEVICE_CAP_FLAGS"][8] = EnumEntry("GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_FOLLOW", """Gimbal device supports to follow a roll angle relative to the vehicle.""")
  3752. GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_LOCK = 16
  3753. enums["GIMBAL_DEVICE_CAP_FLAGS"][16] = EnumEntry("GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_LOCK", """Gimbal device supports locking to a roll angle (generally that's the default with roll stabilized).""")
  3754. GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_AXIS = 32
  3755. enums["GIMBAL_DEVICE_CAP_FLAGS"][32] = EnumEntry("GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_AXIS", """Gimbal device supports rotating around pitch axis.""")
  3756. GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_FOLLOW = 64
  3757. enums["GIMBAL_DEVICE_CAP_FLAGS"][64] = EnumEntry("GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_FOLLOW", """Gimbal device supports to follow a pitch angle relative to the vehicle.""")
  3758. GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_LOCK = 128
  3759. enums["GIMBAL_DEVICE_CAP_FLAGS"][128] = EnumEntry("GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_LOCK", """Gimbal device supports locking to a pitch angle (generally that's the default with pitch stabilized).""")
  3760. GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_AXIS = 256
  3761. enums["GIMBAL_DEVICE_CAP_FLAGS"][256] = EnumEntry("GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_AXIS", """Gimbal device supports rotating around yaw axis.""")
  3762. GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_FOLLOW = 512
  3763. enums["GIMBAL_DEVICE_CAP_FLAGS"][512] = EnumEntry("GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_FOLLOW", """Gimbal device supports to follow a yaw angle relative to the vehicle (generally that's the default).""")
  3764. GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_LOCK = 1024
  3765. enums["GIMBAL_DEVICE_CAP_FLAGS"][1024] = EnumEntry("GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_LOCK", """Gimbal device supports locking to an absolute heading, i.e., yaw angle relative to North (earth frame, often this is an option available).""")
  3766. GIMBAL_DEVICE_CAP_FLAGS_SUPPORTS_INFINITE_YAW = 2048
  3767. enums["GIMBAL_DEVICE_CAP_FLAGS"][2048] = EnumEntry("GIMBAL_DEVICE_CAP_FLAGS_SUPPORTS_INFINITE_YAW", """Gimbal device supports yawing/panning infinitely (e.g. using slip disk).""")
  3768. GIMBAL_DEVICE_CAP_FLAGS_SUPPORTS_YAW_IN_EARTH_FRAME = 4096
  3769. enums["GIMBAL_DEVICE_CAP_FLAGS"][4096] = EnumEntry("GIMBAL_DEVICE_CAP_FLAGS_SUPPORTS_YAW_IN_EARTH_FRAME", """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.""")
  3770. GIMBAL_DEVICE_CAP_FLAGS_HAS_RC_INPUTS = 8192
  3771. enums["GIMBAL_DEVICE_CAP_FLAGS"][8192] = EnumEntry("GIMBAL_DEVICE_CAP_FLAGS_HAS_RC_INPUTS", """Gimbal device supports radio control inputs as an alternative input for controlling the gimbal orientation.""")
  3772. GIMBAL_DEVICE_CAP_FLAGS_ENUM_END = 8193
  3773. enums["GIMBAL_DEVICE_CAP_FLAGS"][8193] = EnumEntry("GIMBAL_DEVICE_CAP_FLAGS_ENUM_END", """""")
  3774. # GIMBAL_MANAGER_CAP_FLAGS
  3775. enums["GIMBAL_MANAGER_CAP_FLAGS"] = Enum()
  3776. enums["GIMBAL_MANAGER_CAP_FLAGS"].bitmask = True
  3777. GIMBAL_MANAGER_CAP_FLAGS_HAS_RETRACT = 1
  3778. enums["GIMBAL_MANAGER_CAP_FLAGS"][1] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_HAS_RETRACT", """Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_RETRACT.""")
  3779. GIMBAL_MANAGER_CAP_FLAGS_HAS_NEUTRAL = 2
  3780. enums["GIMBAL_MANAGER_CAP_FLAGS"][2] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_HAS_NEUTRAL", """Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_NEUTRAL.""")
  3781. GIMBAL_MANAGER_CAP_FLAGS_HAS_ROLL_AXIS = 4
  3782. enums["GIMBAL_MANAGER_CAP_FLAGS"][4] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_HAS_ROLL_AXIS", """Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_AXIS.""")
  3783. GIMBAL_MANAGER_CAP_FLAGS_HAS_ROLL_FOLLOW = 8
  3784. enums["GIMBAL_MANAGER_CAP_FLAGS"][8] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_HAS_ROLL_FOLLOW", """Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_FOLLOW.""")
  3785. GIMBAL_MANAGER_CAP_FLAGS_HAS_ROLL_LOCK = 16
  3786. enums["GIMBAL_MANAGER_CAP_FLAGS"][16] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_HAS_ROLL_LOCK", """Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_LOCK.""")
  3787. GIMBAL_MANAGER_CAP_FLAGS_HAS_PITCH_AXIS = 32
  3788. enums["GIMBAL_MANAGER_CAP_FLAGS"][32] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_HAS_PITCH_AXIS", """Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_AXIS.""")
  3789. GIMBAL_MANAGER_CAP_FLAGS_HAS_PITCH_FOLLOW = 64
  3790. enums["GIMBAL_MANAGER_CAP_FLAGS"][64] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_HAS_PITCH_FOLLOW", """Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_FOLLOW.""")
  3791. GIMBAL_MANAGER_CAP_FLAGS_HAS_PITCH_LOCK = 128
  3792. enums["GIMBAL_MANAGER_CAP_FLAGS"][128] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_HAS_PITCH_LOCK", """Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_LOCK.""")
  3793. GIMBAL_MANAGER_CAP_FLAGS_HAS_YAW_AXIS = 256
  3794. enums["GIMBAL_MANAGER_CAP_FLAGS"][256] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_HAS_YAW_AXIS", """Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_AXIS.""")
  3795. GIMBAL_MANAGER_CAP_FLAGS_HAS_YAW_FOLLOW = 512
  3796. enums["GIMBAL_MANAGER_CAP_FLAGS"][512] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_HAS_YAW_FOLLOW", """Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_FOLLOW.""")
  3797. GIMBAL_MANAGER_CAP_FLAGS_HAS_YAW_LOCK = 1024
  3798. enums["GIMBAL_MANAGER_CAP_FLAGS"][1024] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_HAS_YAW_LOCK", """Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_LOCK.""")
  3799. GIMBAL_MANAGER_CAP_FLAGS_SUPPORTS_INFINITE_YAW = 2048
  3800. enums["GIMBAL_MANAGER_CAP_FLAGS"][2048] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_SUPPORTS_INFINITE_YAW", """Based on GIMBAL_DEVICE_CAP_FLAGS_SUPPORTS_INFINITE_YAW.""")
  3801. GIMBAL_MANAGER_CAP_FLAGS_SUPPORTS_YAW_IN_EARTH_FRAME = 4096
  3802. enums["GIMBAL_MANAGER_CAP_FLAGS"][4096] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_SUPPORTS_YAW_IN_EARTH_FRAME", """Based on GIMBAL_DEVICE_CAP_FLAGS_SUPPORTS_YAW_IN_EARTH_FRAME.""")
  3803. GIMBAL_MANAGER_CAP_FLAGS_HAS_RC_INPUTS = 8192
  3804. enums["GIMBAL_MANAGER_CAP_FLAGS"][8192] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_HAS_RC_INPUTS", """Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_RC_INPUTS.""")
  3805. GIMBAL_MANAGER_CAP_FLAGS_CAN_POINT_LOCATION_LOCAL = 65536
  3806. enums["GIMBAL_MANAGER_CAP_FLAGS"][65536] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_CAN_POINT_LOCATION_LOCAL", """Gimbal manager supports to point to a local position.""")
  3807. GIMBAL_MANAGER_CAP_FLAGS_CAN_POINT_LOCATION_GLOBAL = 131072
  3808. enums["GIMBAL_MANAGER_CAP_FLAGS"][131072] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_CAN_POINT_LOCATION_GLOBAL", """Gimbal manager supports to point to a global latitude, longitude, altitude position.""")
  3809. GIMBAL_MANAGER_CAP_FLAGS_ENUM_END = 131073
  3810. enums["GIMBAL_MANAGER_CAP_FLAGS"][131073] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_ENUM_END", """""")
  3811. # GIMBAL_DEVICE_FLAGS
  3812. enums["GIMBAL_DEVICE_FLAGS"] = Enum()
  3813. enums["GIMBAL_DEVICE_FLAGS"].bitmask = True
  3814. GIMBAL_DEVICE_FLAGS_RETRACT = 1
  3815. enums["GIMBAL_DEVICE_FLAGS"][1] = EnumEntry("GIMBAL_DEVICE_FLAGS_RETRACT", """Set to retracted safe position (no stabilization), takes precedence over all other flags.""")
  3816. GIMBAL_DEVICE_FLAGS_NEUTRAL = 2
  3817. enums["GIMBAL_DEVICE_FLAGS"][2] = EnumEntry("GIMBAL_DEVICE_FLAGS_NEUTRAL", """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.""")
  3818. GIMBAL_DEVICE_FLAGS_ROLL_LOCK = 4
  3819. enums["GIMBAL_DEVICE_FLAGS"][4] = EnumEntry("GIMBAL_DEVICE_FLAGS_ROLL_LOCK", """Lock roll angle to absolute angle relative to horizon (not relative to vehicle). This is generally the default with a stabilizing gimbal.""")
  3820. GIMBAL_DEVICE_FLAGS_PITCH_LOCK = 8
  3821. enums["GIMBAL_DEVICE_FLAGS"][8] = EnumEntry("GIMBAL_DEVICE_FLAGS_PITCH_LOCK", """Lock pitch angle to absolute angle relative to horizon (not relative to vehicle). This is generally the default with a stabilizing gimbal.""")
  3822. GIMBAL_DEVICE_FLAGS_YAW_LOCK = 16
  3823. enums["GIMBAL_DEVICE_FLAGS"][16] = EnumEntry("GIMBAL_DEVICE_FLAGS_YAW_LOCK", """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).""")
  3824. GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME = 32
  3825. enums["GIMBAL_DEVICE_FLAGS"][32] = EnumEntry("GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME", """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).""")
  3826. GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME = 64
  3827. enums["GIMBAL_DEVICE_FLAGS"][64] = EnumEntry("GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME", """Yaw angle and z component of angular velocity are relative to North (earth frame, x-axis is pointing North).""")
  3828. GIMBAL_DEVICE_FLAGS_ACCEPTS_YAW_IN_EARTH_FRAME = 128
  3829. enums["GIMBAL_DEVICE_FLAGS"][128] = EnumEntry("GIMBAL_DEVICE_FLAGS_ACCEPTS_YAW_IN_EARTH_FRAME", """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).""")
  3830. GIMBAL_DEVICE_FLAGS_RC_EXCLUSIVE = 256
  3831. enums["GIMBAL_DEVICE_FLAGS"][256] = EnumEntry("GIMBAL_DEVICE_FLAGS_RC_EXCLUSIVE", """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.""")
  3832. GIMBAL_DEVICE_FLAGS_RC_MIXED = 512
  3833. enums["GIMBAL_DEVICE_FLAGS"][512] = EnumEntry("GIMBAL_DEVICE_FLAGS_RC_MIXED", """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.""")
  3834. GIMBAL_DEVICE_FLAGS_ENUM_END = 513
  3835. enums["GIMBAL_DEVICE_FLAGS"][513] = EnumEntry("GIMBAL_DEVICE_FLAGS_ENUM_END", """""")
  3836. # GIMBAL_MANAGER_FLAGS
  3837. enums["GIMBAL_MANAGER_FLAGS"] = Enum()
  3838. enums["GIMBAL_MANAGER_FLAGS"].bitmask = True
  3839. GIMBAL_MANAGER_FLAGS_RETRACT = 1
  3840. enums["GIMBAL_MANAGER_FLAGS"][1] = EnumEntry("GIMBAL_MANAGER_FLAGS_RETRACT", """Based on GIMBAL_DEVICE_FLAGS_RETRACT.""")
  3841. GIMBAL_MANAGER_FLAGS_NEUTRAL = 2
  3842. enums["GIMBAL_MANAGER_FLAGS"][2] = EnumEntry("GIMBAL_MANAGER_FLAGS_NEUTRAL", """Based on GIMBAL_DEVICE_FLAGS_NEUTRAL.""")
  3843. GIMBAL_MANAGER_FLAGS_ROLL_LOCK = 4
  3844. enums["GIMBAL_MANAGER_FLAGS"][4] = EnumEntry("GIMBAL_MANAGER_FLAGS_ROLL_LOCK", """Based on GIMBAL_DEVICE_FLAGS_ROLL_LOCK.""")
  3845. GIMBAL_MANAGER_FLAGS_PITCH_LOCK = 8
  3846. enums["GIMBAL_MANAGER_FLAGS"][8] = EnumEntry("GIMBAL_MANAGER_FLAGS_PITCH_LOCK", """Based on GIMBAL_DEVICE_FLAGS_PITCH_LOCK.""")
  3847. GIMBAL_MANAGER_FLAGS_YAW_LOCK = 16
  3848. enums["GIMBAL_MANAGER_FLAGS"][16] = EnumEntry("GIMBAL_MANAGER_FLAGS_YAW_LOCK", """Based on GIMBAL_DEVICE_FLAGS_YAW_LOCK.""")
  3849. GIMBAL_MANAGER_FLAGS_YAW_IN_VEHICLE_FRAME = 32
  3850. enums["GIMBAL_MANAGER_FLAGS"][32] = EnumEntry("GIMBAL_MANAGER_FLAGS_YAW_IN_VEHICLE_FRAME", """Based on GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME.""")
  3851. GIMBAL_MANAGER_FLAGS_YAW_IN_EARTH_FRAME = 64
  3852. enums["GIMBAL_MANAGER_FLAGS"][64] = EnumEntry("GIMBAL_MANAGER_FLAGS_YAW_IN_EARTH_FRAME", """Based on GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME.""")
  3853. GIMBAL_MANAGER_FLAGS_ACCEPTS_YAW_IN_EARTH_FRAME = 128
  3854. enums["GIMBAL_MANAGER_FLAGS"][128] = EnumEntry("GIMBAL_MANAGER_FLAGS_ACCEPTS_YAW_IN_EARTH_FRAME", """Based on GIMBAL_DEVICE_FLAGS_ACCEPTS_YAW_IN_EARTH_FRAME.""")
  3855. GIMBAL_MANAGER_FLAGS_RC_EXCLUSIVE = 256
  3856. enums["GIMBAL_MANAGER_FLAGS"][256] = EnumEntry("GIMBAL_MANAGER_FLAGS_RC_EXCLUSIVE", """Based on GIMBAL_DEVICE_FLAGS_RC_EXCLUSIVE.""")
  3857. GIMBAL_MANAGER_FLAGS_RC_MIXED = 512
  3858. enums["GIMBAL_MANAGER_FLAGS"][512] = EnumEntry("GIMBAL_MANAGER_FLAGS_RC_MIXED", """Based on GIMBAL_DEVICE_FLAGS_RC_MIXED.""")
  3859. GIMBAL_MANAGER_FLAGS_ENUM_END = 513
  3860. enums["GIMBAL_MANAGER_FLAGS"][513] = EnumEntry("GIMBAL_MANAGER_FLAGS_ENUM_END", """""")
  3861. # GIMBAL_DEVICE_ERROR_FLAGS
  3862. enums["GIMBAL_DEVICE_ERROR_FLAGS"] = Enum()
  3863. enums["GIMBAL_DEVICE_ERROR_FLAGS"].bitmask = True
  3864. GIMBAL_DEVICE_ERROR_FLAGS_AT_ROLL_LIMIT = 1
  3865. enums["GIMBAL_DEVICE_ERROR_FLAGS"][1] = EnumEntry("GIMBAL_DEVICE_ERROR_FLAGS_AT_ROLL_LIMIT", """Gimbal device is limited by hardware roll limit.""")
  3866. GIMBAL_DEVICE_ERROR_FLAGS_AT_PITCH_LIMIT = 2
  3867. enums["GIMBAL_DEVICE_ERROR_FLAGS"][2] = EnumEntry("GIMBAL_DEVICE_ERROR_FLAGS_AT_PITCH_LIMIT", """Gimbal device is limited by hardware pitch limit.""")
  3868. GIMBAL_DEVICE_ERROR_FLAGS_AT_YAW_LIMIT = 4
  3869. enums["GIMBAL_DEVICE_ERROR_FLAGS"][4] = EnumEntry("GIMBAL_DEVICE_ERROR_FLAGS_AT_YAW_LIMIT", """Gimbal device is limited by hardware yaw limit.""")
  3870. GIMBAL_DEVICE_ERROR_FLAGS_ENCODER_ERROR = 8
  3871. enums["GIMBAL_DEVICE_ERROR_FLAGS"][8] = EnumEntry("GIMBAL_DEVICE_ERROR_FLAGS_ENCODER_ERROR", """There is an error with the gimbal encoders.""")
  3872. GIMBAL_DEVICE_ERROR_FLAGS_POWER_ERROR = 16
  3873. enums["GIMBAL_DEVICE_ERROR_FLAGS"][16] = EnumEntry("GIMBAL_DEVICE_ERROR_FLAGS_POWER_ERROR", """There is an error with the gimbal power source.""")
  3874. GIMBAL_DEVICE_ERROR_FLAGS_MOTOR_ERROR = 32
  3875. enums["GIMBAL_DEVICE_ERROR_FLAGS"][32] = EnumEntry("GIMBAL_DEVICE_ERROR_FLAGS_MOTOR_ERROR", """There is an error with the gimbal motors.""")
  3876. GIMBAL_DEVICE_ERROR_FLAGS_SOFTWARE_ERROR = 64
  3877. enums["GIMBAL_DEVICE_ERROR_FLAGS"][64] = EnumEntry("GIMBAL_DEVICE_ERROR_FLAGS_SOFTWARE_ERROR", """There is an error with the gimbal's software.""")
  3878. GIMBAL_DEVICE_ERROR_FLAGS_COMMS_ERROR = 128
  3879. enums["GIMBAL_DEVICE_ERROR_FLAGS"][128] = EnumEntry("GIMBAL_DEVICE_ERROR_FLAGS_COMMS_ERROR", """There is an error with the gimbal's communication.""")
  3880. GIMBAL_DEVICE_ERROR_FLAGS_CALIBRATION_RUNNING = 256
  3881. enums["GIMBAL_DEVICE_ERROR_FLAGS"][256] = EnumEntry("GIMBAL_DEVICE_ERROR_FLAGS_CALIBRATION_RUNNING", """Gimbal device is currently calibrating.""")
  3882. GIMBAL_DEVICE_ERROR_FLAGS_NO_MANAGER = 512
  3883. enums["GIMBAL_DEVICE_ERROR_FLAGS"][512] = EnumEntry("GIMBAL_DEVICE_ERROR_FLAGS_NO_MANAGER", """Gimbal device is not assigned to a gimbal manager.""")
  3884. GIMBAL_DEVICE_ERROR_FLAGS_ENUM_END = 513
  3885. enums["GIMBAL_DEVICE_ERROR_FLAGS"][513] = EnumEntry("GIMBAL_DEVICE_ERROR_FLAGS_ENUM_END", """""")
  3886. # GRIPPER_ACTIONS
  3887. enums["GRIPPER_ACTIONS"] = Enum()
  3888. enums["GRIPPER_ACTIONS"].bitmask = False
  3889. GRIPPER_ACTION_RELEASE = 0
  3890. enums["GRIPPER_ACTIONS"][0] = EnumEntry("GRIPPER_ACTION_RELEASE", """Gripper release cargo.""")
  3891. GRIPPER_ACTION_GRAB = 1
  3892. enums["GRIPPER_ACTIONS"][1] = EnumEntry("GRIPPER_ACTION_GRAB", """Gripper grab onto cargo.""")
  3893. GRIPPER_ACTIONS_ENUM_END = 2
  3894. enums["GRIPPER_ACTIONS"][2] = EnumEntry("GRIPPER_ACTIONS_ENUM_END", """""")
  3895. # WINCH_ACTIONS
  3896. enums["WINCH_ACTIONS"] = Enum()
  3897. enums["WINCH_ACTIONS"].bitmask = False
  3898. WINCH_RELAXED = 0
  3899. enums["WINCH_ACTIONS"][0] = EnumEntry("WINCH_RELAXED", """Allow motor to freewheel.""")
  3900. WINCH_RELATIVE_LENGTH_CONTROL = 1
  3901. enums["WINCH_ACTIONS"][1] = EnumEntry("WINCH_RELATIVE_LENGTH_CONTROL", """Wind or unwind specified length of line, optionally using specified rate.""")
  3902. WINCH_RATE_CONTROL = 2
  3903. enums["WINCH_ACTIONS"][2] = EnumEntry("WINCH_RATE_CONTROL", """Wind or unwind line at specified rate.""")
  3904. WINCH_LOCK = 3
  3905. enums["WINCH_ACTIONS"][3] = EnumEntry("WINCH_LOCK", """Perform the locking sequence to relieve motor while in the fully retracted position. Only action and instance command parameters are used, others are ignored.""")
  3906. WINCH_DELIVER = 4
  3907. enums["WINCH_ACTIONS"][4] = EnumEntry("WINCH_DELIVER", """Sequence of drop, slow down, touch down, reel up, lock. Only action and instance command parameters are used, others are ignored.""")
  3908. WINCH_HOLD = 5
  3909. enums["WINCH_ACTIONS"][5] = EnumEntry("WINCH_HOLD", """Engage motor and hold current position. Only action and instance command parameters are used, others are ignored.""")
  3910. WINCH_RETRACT = 6
  3911. enums["WINCH_ACTIONS"][6] = EnumEntry("WINCH_RETRACT", """Return the reel to the fully retracted position. Only action and instance command parameters are used, others are ignored.""")
  3912. WINCH_LOAD_LINE = 7
  3913. enums["WINCH_ACTIONS"][7] = EnumEntry("WINCH_LOAD_LINE", """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.""")
  3914. WINCH_ABANDON_LINE = 8
  3915. enums["WINCH_ACTIONS"][8] = EnumEntry("WINCH_ABANDON_LINE", """Spool out the entire length of the line. Only action and instance command parameters are used, others are ignored.""")
  3916. WINCH_LOAD_PAYLOAD = 9
  3917. enums["WINCH_ACTIONS"][9] = EnumEntry("WINCH_LOAD_PAYLOAD", """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""")
  3918. WINCH_ACTIONS_ENUM_END = 10
  3919. enums["WINCH_ACTIONS"][10] = EnumEntry("WINCH_ACTIONS_ENUM_END", """""")
  3920. # UAVCAN_NODE_HEALTH
  3921. enums["UAVCAN_NODE_HEALTH"] = Enum()
  3922. enums["UAVCAN_NODE_HEALTH"].bitmask = False
  3923. UAVCAN_NODE_HEALTH_OK = 0
  3924. enums["UAVCAN_NODE_HEALTH"][0] = EnumEntry("UAVCAN_NODE_HEALTH_OK", """The node is functioning properly.""")
  3925. UAVCAN_NODE_HEALTH_WARNING = 1
  3926. enums["UAVCAN_NODE_HEALTH"][1] = EnumEntry("UAVCAN_NODE_HEALTH_WARNING", """A critical parameter went out of range or the node has encountered a minor failure.""")
  3927. UAVCAN_NODE_HEALTH_ERROR = 2
  3928. enums["UAVCAN_NODE_HEALTH"][2] = EnumEntry("UAVCAN_NODE_HEALTH_ERROR", """The node has encountered a major failure.""")
  3929. UAVCAN_NODE_HEALTH_CRITICAL = 3
  3930. enums["UAVCAN_NODE_HEALTH"][3] = EnumEntry("UAVCAN_NODE_HEALTH_CRITICAL", """The node has suffered a fatal malfunction.""")
  3931. UAVCAN_NODE_HEALTH_ENUM_END = 4
  3932. enums["UAVCAN_NODE_HEALTH"][4] = EnumEntry("UAVCAN_NODE_HEALTH_ENUM_END", """""")
  3933. # UAVCAN_NODE_MODE
  3934. enums["UAVCAN_NODE_MODE"] = Enum()
  3935. enums["UAVCAN_NODE_MODE"].bitmask = False
  3936. UAVCAN_NODE_MODE_OPERATIONAL = 0
  3937. enums["UAVCAN_NODE_MODE"][0] = EnumEntry("UAVCAN_NODE_MODE_OPERATIONAL", """The node is performing its primary functions.""")
  3938. UAVCAN_NODE_MODE_INITIALIZATION = 1
  3939. enums["UAVCAN_NODE_MODE"][1] = EnumEntry("UAVCAN_NODE_MODE_INITIALIZATION", """The node is initializing; this mode is entered immediately after startup.""")
  3940. UAVCAN_NODE_MODE_MAINTENANCE = 2
  3941. enums["UAVCAN_NODE_MODE"][2] = EnumEntry("UAVCAN_NODE_MODE_MAINTENANCE", """The node is under maintenance.""")
  3942. UAVCAN_NODE_MODE_SOFTWARE_UPDATE = 3
  3943. enums["UAVCAN_NODE_MODE"][3] = EnumEntry("UAVCAN_NODE_MODE_SOFTWARE_UPDATE", """The node is in the process of updating its software.""")
  3944. UAVCAN_NODE_MODE_OFFLINE = 7
  3945. enums["UAVCAN_NODE_MODE"][7] = EnumEntry("UAVCAN_NODE_MODE_OFFLINE", """The node is no longer available online.""")
  3946. UAVCAN_NODE_MODE_ENUM_END = 8
  3947. enums["UAVCAN_NODE_MODE"][8] = EnumEntry("UAVCAN_NODE_MODE_ENUM_END", """""")
  3948. # ESC_CONNECTION_TYPE
  3949. enums["ESC_CONNECTION_TYPE"] = Enum()
  3950. enums["ESC_CONNECTION_TYPE"].bitmask = False
  3951. ESC_CONNECTION_TYPE_PPM = 0
  3952. enums["ESC_CONNECTION_TYPE"][0] = EnumEntry("ESC_CONNECTION_TYPE_PPM", """Traditional PPM ESC.""")
  3953. ESC_CONNECTION_TYPE_SERIAL = 1
  3954. enums["ESC_CONNECTION_TYPE"][1] = EnumEntry("ESC_CONNECTION_TYPE_SERIAL", """Serial Bus connected ESC.""")
  3955. ESC_CONNECTION_TYPE_ONESHOT = 2
  3956. enums["ESC_CONNECTION_TYPE"][2] = EnumEntry("ESC_CONNECTION_TYPE_ONESHOT", """One Shot PPM ESC.""")
  3957. ESC_CONNECTION_TYPE_I2C = 3
  3958. enums["ESC_CONNECTION_TYPE"][3] = EnumEntry("ESC_CONNECTION_TYPE_I2C", """I2C ESC.""")
  3959. ESC_CONNECTION_TYPE_CAN = 4
  3960. enums["ESC_CONNECTION_TYPE"][4] = EnumEntry("ESC_CONNECTION_TYPE_CAN", """CAN-Bus ESC.""")
  3961. ESC_CONNECTION_TYPE_DSHOT = 5
  3962. enums["ESC_CONNECTION_TYPE"][5] = EnumEntry("ESC_CONNECTION_TYPE_DSHOT", """DShot ESC.""")
  3963. ESC_CONNECTION_TYPE_ENUM_END = 6
  3964. enums["ESC_CONNECTION_TYPE"][6] = EnumEntry("ESC_CONNECTION_TYPE_ENUM_END", """""")
  3965. # ESC_FAILURE_FLAGS
  3966. enums["ESC_FAILURE_FLAGS"] = Enum()
  3967. enums["ESC_FAILURE_FLAGS"].bitmask = True
  3968. ESC_FAILURE_NONE = 0
  3969. enums["ESC_FAILURE_FLAGS"][0] = EnumEntry("ESC_FAILURE_NONE", """No ESC failure.""")
  3970. ESC_FAILURE_OVER_CURRENT = 1
  3971. enums["ESC_FAILURE_FLAGS"][1] = EnumEntry("ESC_FAILURE_OVER_CURRENT", """Over current failure.""")
  3972. ESC_FAILURE_OVER_VOLTAGE = 2
  3973. enums["ESC_FAILURE_FLAGS"][2] = EnumEntry("ESC_FAILURE_OVER_VOLTAGE", """Over voltage failure.""")
  3974. ESC_FAILURE_OVER_TEMPERATURE = 4
  3975. enums["ESC_FAILURE_FLAGS"][4] = EnumEntry("ESC_FAILURE_OVER_TEMPERATURE", """Over temperature failure.""")
  3976. ESC_FAILURE_OVER_RPM = 8
  3977. enums["ESC_FAILURE_FLAGS"][8] = EnumEntry("ESC_FAILURE_OVER_RPM", """Over RPM failure.""")
  3978. ESC_FAILURE_INCONSISTENT_CMD = 16
  3979. enums["ESC_FAILURE_FLAGS"][16] = EnumEntry("ESC_FAILURE_INCONSISTENT_CMD", """Inconsistent command failure i.e. out of bounds.""")
  3980. ESC_FAILURE_MOTOR_STUCK = 32
  3981. enums["ESC_FAILURE_FLAGS"][32] = EnumEntry("ESC_FAILURE_MOTOR_STUCK", """Motor stuck failure.""")
  3982. ESC_FAILURE_GENERIC = 64
  3983. enums["ESC_FAILURE_FLAGS"][64] = EnumEntry("ESC_FAILURE_GENERIC", """Generic ESC failure.""")
  3984. ESC_FAILURE_FLAGS_ENUM_END = 65
  3985. enums["ESC_FAILURE_FLAGS"][65] = EnumEntry("ESC_FAILURE_FLAGS_ENUM_END", """""")
  3986. # STORAGE_STATUS
  3987. enums["STORAGE_STATUS"] = Enum()
  3988. enums["STORAGE_STATUS"].bitmask = False
  3989. STORAGE_STATUS_EMPTY = 0
  3990. enums["STORAGE_STATUS"][0] = EnumEntry("STORAGE_STATUS_EMPTY", """Storage is missing (no microSD card loaded for example.)""")
  3991. STORAGE_STATUS_UNFORMATTED = 1
  3992. enums["STORAGE_STATUS"][1] = EnumEntry("STORAGE_STATUS_UNFORMATTED", """Storage present but unformatted.""")
  3993. STORAGE_STATUS_READY = 2
  3994. enums["STORAGE_STATUS"][2] = EnumEntry("STORAGE_STATUS_READY", """Storage present and ready.""")
  3995. STORAGE_STATUS_NOT_SUPPORTED = 3
  3996. enums["STORAGE_STATUS"][3] = EnumEntry("STORAGE_STATUS_NOT_SUPPORTED", """Camera does not supply storage status information. Capacity information in STORAGE_INFORMATION fields will be ignored.""")
  3997. STORAGE_STATUS_ENUM_END = 4
  3998. enums["STORAGE_STATUS"][4] = EnumEntry("STORAGE_STATUS_ENUM_END", """""")
  3999. # STORAGE_TYPE
  4000. enums["STORAGE_TYPE"] = Enum()
  4001. enums["STORAGE_TYPE"].bitmask = False
  4002. STORAGE_TYPE_UNKNOWN = 0
  4003. enums["STORAGE_TYPE"][0] = EnumEntry("STORAGE_TYPE_UNKNOWN", """Storage type is not known.""")
  4004. STORAGE_TYPE_USB_STICK = 1
  4005. enums["STORAGE_TYPE"][1] = EnumEntry("STORAGE_TYPE_USB_STICK", """Storage type is USB device.""")
  4006. STORAGE_TYPE_SD = 2
  4007. enums["STORAGE_TYPE"][2] = EnumEntry("STORAGE_TYPE_SD", """Storage type is SD card.""")
  4008. STORAGE_TYPE_MICROSD = 3
  4009. enums["STORAGE_TYPE"][3] = EnumEntry("STORAGE_TYPE_MICROSD", """Storage type is microSD card.""")
  4010. STORAGE_TYPE_CF = 4
  4011. enums["STORAGE_TYPE"][4] = EnumEntry("STORAGE_TYPE_CF", """Storage type is CFast.""")
  4012. STORAGE_TYPE_CFE = 5
  4013. enums["STORAGE_TYPE"][5] = EnumEntry("STORAGE_TYPE_CFE", """Storage type is CFexpress.""")
  4014. STORAGE_TYPE_XQD = 6
  4015. enums["STORAGE_TYPE"][6] = EnumEntry("STORAGE_TYPE_XQD", """Storage type is XQD.""")
  4016. STORAGE_TYPE_HD = 7
  4017. enums["STORAGE_TYPE"][7] = EnumEntry("STORAGE_TYPE_HD", """Storage type is HD mass storage type.""")
  4018. STORAGE_TYPE_OTHER = 254
  4019. enums["STORAGE_TYPE"][254] = EnumEntry("STORAGE_TYPE_OTHER", """Storage type is other, not listed type.""")
  4020. STORAGE_TYPE_ENUM_END = 255
  4021. enums["STORAGE_TYPE"][255] = EnumEntry("STORAGE_TYPE_ENUM_END", """""")
  4022. # STORAGE_USAGE_FLAG
  4023. enums["STORAGE_USAGE_FLAG"] = Enum()
  4024. enums["STORAGE_USAGE_FLAG"].bitmask = False
  4025. STORAGE_USAGE_FLAG_SET = 1
  4026. enums["STORAGE_USAGE_FLAG"][1] = EnumEntry("STORAGE_USAGE_FLAG_SET", """Always set to 1 (indicates STORAGE_INFORMATION.storage_usage is supported).""")
  4027. STORAGE_USAGE_FLAG_PHOTO = 2
  4028. enums["STORAGE_USAGE_FLAG"][2] = EnumEntry("STORAGE_USAGE_FLAG_PHOTO", """Storage for saving photos.""")
  4029. STORAGE_USAGE_FLAG_VIDEO = 4
  4030. enums["STORAGE_USAGE_FLAG"][4] = EnumEntry("STORAGE_USAGE_FLAG_VIDEO", """Storage for saving videos.""")
  4031. STORAGE_USAGE_FLAG_LOGS = 8
  4032. enums["STORAGE_USAGE_FLAG"][8] = EnumEntry("STORAGE_USAGE_FLAG_LOGS", """Storage for saving logs.""")
  4033. STORAGE_USAGE_FLAG_ENUM_END = 9
  4034. enums["STORAGE_USAGE_FLAG"][9] = EnumEntry("STORAGE_USAGE_FLAG_ENUM_END", """""")
  4035. # ORBIT_YAW_BEHAVIOUR
  4036. enums["ORBIT_YAW_BEHAVIOUR"] = Enum()
  4037. enums["ORBIT_YAW_BEHAVIOUR"].bitmask = False
  4038. ORBIT_YAW_BEHAVIOUR_HOLD_FRONT_TO_CIRCLE_CENTER = 0
  4039. enums["ORBIT_YAW_BEHAVIOUR"][0] = EnumEntry("ORBIT_YAW_BEHAVIOUR_HOLD_FRONT_TO_CIRCLE_CENTER", """Vehicle front points to the center (default).""")
  4040. ORBIT_YAW_BEHAVIOUR_HOLD_INITIAL_HEADING = 1
  4041. enums["ORBIT_YAW_BEHAVIOUR"][1] = EnumEntry("ORBIT_YAW_BEHAVIOUR_HOLD_INITIAL_HEADING", """Vehicle front holds heading when message received.""")
  4042. ORBIT_YAW_BEHAVIOUR_UNCONTROLLED = 2
  4043. enums["ORBIT_YAW_BEHAVIOUR"][2] = EnumEntry("ORBIT_YAW_BEHAVIOUR_UNCONTROLLED", """Yaw uncontrolled.""")
  4044. ORBIT_YAW_BEHAVIOUR_HOLD_FRONT_TANGENT_TO_CIRCLE = 3
  4045. enums["ORBIT_YAW_BEHAVIOUR"][3] = EnumEntry("ORBIT_YAW_BEHAVIOUR_HOLD_FRONT_TANGENT_TO_CIRCLE", """Vehicle front follows flight path (tangential to circle).""")
  4046. ORBIT_YAW_BEHAVIOUR_RC_CONTROLLED = 4
  4047. enums["ORBIT_YAW_BEHAVIOUR"][4] = EnumEntry("ORBIT_YAW_BEHAVIOUR_RC_CONTROLLED", """Yaw controlled by RC input.""")
  4048. ORBIT_YAW_BEHAVIOUR_ENUM_END = 5
  4049. enums["ORBIT_YAW_BEHAVIOUR"][5] = EnumEntry("ORBIT_YAW_BEHAVIOUR_ENUM_END", """""")
  4050. # WIFI_CONFIG_AP_RESPONSE
  4051. enums["WIFI_CONFIG_AP_RESPONSE"] = Enum()
  4052. enums["WIFI_CONFIG_AP_RESPONSE"].bitmask = False
  4053. WIFI_CONFIG_AP_RESPONSE_UNDEFINED = 0
  4054. enums["WIFI_CONFIG_AP_RESPONSE"][0] = EnumEntry("WIFI_CONFIG_AP_RESPONSE_UNDEFINED", """Undefined response. Likely an indicative of a system that doesn't support this request.""")
  4055. WIFI_CONFIG_AP_RESPONSE_ACCEPTED = 1
  4056. enums["WIFI_CONFIG_AP_RESPONSE"][1] = EnumEntry("WIFI_CONFIG_AP_RESPONSE_ACCEPTED", """Changes accepted.""")
  4057. WIFI_CONFIG_AP_RESPONSE_REJECTED = 2
  4058. enums["WIFI_CONFIG_AP_RESPONSE"][2] = EnumEntry("WIFI_CONFIG_AP_RESPONSE_REJECTED", """Changes rejected.""")
  4059. WIFI_CONFIG_AP_RESPONSE_MODE_ERROR = 3
  4060. enums["WIFI_CONFIG_AP_RESPONSE"][3] = EnumEntry("WIFI_CONFIG_AP_RESPONSE_MODE_ERROR", """Invalid Mode.""")
  4061. WIFI_CONFIG_AP_RESPONSE_SSID_ERROR = 4
  4062. enums["WIFI_CONFIG_AP_RESPONSE"][4] = EnumEntry("WIFI_CONFIG_AP_RESPONSE_SSID_ERROR", """Invalid SSID.""")
  4063. WIFI_CONFIG_AP_RESPONSE_PASSWORD_ERROR = 5
  4064. enums["WIFI_CONFIG_AP_RESPONSE"][5] = EnumEntry("WIFI_CONFIG_AP_RESPONSE_PASSWORD_ERROR", """Invalid Password.""")
  4065. WIFI_CONFIG_AP_RESPONSE_ENUM_END = 6
  4066. enums["WIFI_CONFIG_AP_RESPONSE"][6] = EnumEntry("WIFI_CONFIG_AP_RESPONSE_ENUM_END", """""")
  4067. # CELLULAR_CONFIG_RESPONSE
  4068. enums["CELLULAR_CONFIG_RESPONSE"] = Enum()
  4069. enums["CELLULAR_CONFIG_RESPONSE"].bitmask = False
  4070. CELLULAR_CONFIG_RESPONSE_ACCEPTED = 0
  4071. enums["CELLULAR_CONFIG_RESPONSE"][0] = EnumEntry("CELLULAR_CONFIG_RESPONSE_ACCEPTED", """Changes accepted.""")
  4072. CELLULAR_CONFIG_RESPONSE_APN_ERROR = 1
  4073. enums["CELLULAR_CONFIG_RESPONSE"][1] = EnumEntry("CELLULAR_CONFIG_RESPONSE_APN_ERROR", """Invalid APN.""")
  4074. CELLULAR_CONFIG_RESPONSE_PIN_ERROR = 2
  4075. enums["CELLULAR_CONFIG_RESPONSE"][2] = EnumEntry("CELLULAR_CONFIG_RESPONSE_PIN_ERROR", """Invalid PIN.""")
  4076. CELLULAR_CONFIG_RESPONSE_REJECTED = 3
  4077. enums["CELLULAR_CONFIG_RESPONSE"][3] = EnumEntry("CELLULAR_CONFIG_RESPONSE_REJECTED", """Changes rejected.""")
  4078. CELLULAR_CONFIG_BLOCKED_PUK_REQUIRED = 4
  4079. enums["CELLULAR_CONFIG_RESPONSE"][4] = EnumEntry("CELLULAR_CONFIG_BLOCKED_PUK_REQUIRED", """PUK is required to unblock SIM card.""")
  4080. CELLULAR_CONFIG_RESPONSE_ENUM_END = 5
  4081. enums["CELLULAR_CONFIG_RESPONSE"][5] = EnumEntry("CELLULAR_CONFIG_RESPONSE_ENUM_END", """""")
  4082. # WIFI_CONFIG_AP_MODE
  4083. enums["WIFI_CONFIG_AP_MODE"] = Enum()
  4084. enums["WIFI_CONFIG_AP_MODE"].bitmask = False
  4085. WIFI_CONFIG_AP_MODE_UNDEFINED = 0
  4086. enums["WIFI_CONFIG_AP_MODE"][0] = EnumEntry("WIFI_CONFIG_AP_MODE_UNDEFINED", """WiFi mode is undefined.""")
  4087. WIFI_CONFIG_AP_MODE_AP = 1
  4088. enums["WIFI_CONFIG_AP_MODE"][1] = EnumEntry("WIFI_CONFIG_AP_MODE_AP", """WiFi configured as an access point.""")
  4089. WIFI_CONFIG_AP_MODE_STATION = 2
  4090. enums["WIFI_CONFIG_AP_MODE"][2] = EnumEntry("WIFI_CONFIG_AP_MODE_STATION", """WiFi configured as a station connected to an existing local WiFi network.""")
  4091. WIFI_CONFIG_AP_MODE_DISABLED = 3
  4092. enums["WIFI_CONFIG_AP_MODE"][3] = EnumEntry("WIFI_CONFIG_AP_MODE_DISABLED", """WiFi disabled.""")
  4093. WIFI_CONFIG_AP_MODE_ENUM_END = 4
  4094. enums["WIFI_CONFIG_AP_MODE"][4] = EnumEntry("WIFI_CONFIG_AP_MODE_ENUM_END", """""")
  4095. # COMP_METADATA_TYPE
  4096. enums["COMP_METADATA_TYPE"] = Enum()
  4097. enums["COMP_METADATA_TYPE"].bitmask = False
  4098. COMP_METADATA_TYPE_GENERAL = 0
  4099. enums["COMP_METADATA_TYPE"][0] = EnumEntry("COMP_METADATA_TYPE_GENERAL", """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.""")
  4100. COMP_METADATA_TYPE_PARAMETER = 1
  4101. enums["COMP_METADATA_TYPE"][1] = EnumEntry("COMP_METADATA_TYPE_PARAMETER", """Parameter meta data.""")
  4102. COMP_METADATA_TYPE_COMMANDS = 2
  4103. enums["COMP_METADATA_TYPE"][2] = EnumEntry("COMP_METADATA_TYPE_COMMANDS", """Meta data that specifies which commands and command parameters the vehicle supports. (WIP)""")
  4104. COMP_METADATA_TYPE_PERIPHERALS = 3
  4105. enums["COMP_METADATA_TYPE"][3] = EnumEntry("COMP_METADATA_TYPE_PERIPHERALS", """Meta data that specifies external non-MAVLink peripherals.""")
  4106. COMP_METADATA_TYPE_EVENTS = 4
  4107. enums["COMP_METADATA_TYPE"][4] = EnumEntry("COMP_METADATA_TYPE_EVENTS", """Meta data for the events interface.""")
  4108. COMP_METADATA_TYPE_ACTUATORS = 5
  4109. enums["COMP_METADATA_TYPE"][5] = EnumEntry("COMP_METADATA_TYPE_ACTUATORS", """Meta data for actuator configuration (motors, servos and vehicle geometry) and testing.""")
  4110. COMP_METADATA_TYPE_ENUM_END = 6
  4111. enums["COMP_METADATA_TYPE"][6] = EnumEntry("COMP_METADATA_TYPE_ENUM_END", """""")
  4112. # ACTUATOR_CONFIGURATION
  4113. enums["ACTUATOR_CONFIGURATION"] = Enum()
  4114. enums["ACTUATOR_CONFIGURATION"].bitmask = False
  4115. ACTUATOR_CONFIGURATION_NONE = 0
  4116. enums["ACTUATOR_CONFIGURATION"][0] = EnumEntry("ACTUATOR_CONFIGURATION_NONE", """Do nothing.""")
  4117. ACTUATOR_CONFIGURATION_BEEP = 1
  4118. enums["ACTUATOR_CONFIGURATION"][1] = EnumEntry("ACTUATOR_CONFIGURATION_BEEP", """Command the actuator to beep now.""")
  4119. ACTUATOR_CONFIGURATION_3D_MODE_ON = 2
  4120. enums["ACTUATOR_CONFIGURATION"][2] = EnumEntry("ACTUATOR_CONFIGURATION_3D_MODE_ON", """Permanently set the actuator (ESC) to 3D mode (reversible thrust).""")
  4121. ACTUATOR_CONFIGURATION_3D_MODE_OFF = 3
  4122. enums["ACTUATOR_CONFIGURATION"][3] = EnumEntry("ACTUATOR_CONFIGURATION_3D_MODE_OFF", """Permanently set the actuator (ESC) to non 3D mode (non-reversible thrust).""")
  4123. ACTUATOR_CONFIGURATION_SPIN_DIRECTION1 = 4
  4124. enums["ACTUATOR_CONFIGURATION"][4] = EnumEntry("ACTUATOR_CONFIGURATION_SPIN_DIRECTION1", """Permanently set the actuator (ESC) to spin direction 1 (which can be clockwise or counter-clockwise).""")
  4125. ACTUATOR_CONFIGURATION_SPIN_DIRECTION2 = 5
  4126. enums["ACTUATOR_CONFIGURATION"][5] = EnumEntry("ACTUATOR_CONFIGURATION_SPIN_DIRECTION2", """Permanently set the actuator (ESC) to spin direction 2 (opposite of direction 1).""")
  4127. ACTUATOR_CONFIGURATION_ENUM_END = 6
  4128. enums["ACTUATOR_CONFIGURATION"][6] = EnumEntry("ACTUATOR_CONFIGURATION_ENUM_END", """""")
  4129. # ACTUATOR_OUTPUT_FUNCTION
  4130. enums["ACTUATOR_OUTPUT_FUNCTION"] = Enum()
  4131. enums["ACTUATOR_OUTPUT_FUNCTION"].bitmask = False
  4132. ACTUATOR_OUTPUT_FUNCTION_NONE = 0
  4133. enums["ACTUATOR_OUTPUT_FUNCTION"][0] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_NONE", """No function (disabled).""")
  4134. ACTUATOR_OUTPUT_FUNCTION_MOTOR1 = 1
  4135. enums["ACTUATOR_OUTPUT_FUNCTION"][1] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR1", """Motor 1""")
  4136. ACTUATOR_OUTPUT_FUNCTION_MOTOR2 = 2
  4137. enums["ACTUATOR_OUTPUT_FUNCTION"][2] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR2", """Motor 2""")
  4138. ACTUATOR_OUTPUT_FUNCTION_MOTOR3 = 3
  4139. enums["ACTUATOR_OUTPUT_FUNCTION"][3] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR3", """Motor 3""")
  4140. ACTUATOR_OUTPUT_FUNCTION_MOTOR4 = 4
  4141. enums["ACTUATOR_OUTPUT_FUNCTION"][4] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR4", """Motor 4""")
  4142. ACTUATOR_OUTPUT_FUNCTION_MOTOR5 = 5
  4143. enums["ACTUATOR_OUTPUT_FUNCTION"][5] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR5", """Motor 5""")
  4144. ACTUATOR_OUTPUT_FUNCTION_MOTOR6 = 6
  4145. enums["ACTUATOR_OUTPUT_FUNCTION"][6] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR6", """Motor 6""")
  4146. ACTUATOR_OUTPUT_FUNCTION_MOTOR7 = 7
  4147. enums["ACTUATOR_OUTPUT_FUNCTION"][7] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR7", """Motor 7""")
  4148. ACTUATOR_OUTPUT_FUNCTION_MOTOR8 = 8
  4149. enums["ACTUATOR_OUTPUT_FUNCTION"][8] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR8", """Motor 8""")
  4150. ACTUATOR_OUTPUT_FUNCTION_MOTOR9 = 9
  4151. enums["ACTUATOR_OUTPUT_FUNCTION"][9] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR9", """Motor 9""")
  4152. ACTUATOR_OUTPUT_FUNCTION_MOTOR10 = 10
  4153. enums["ACTUATOR_OUTPUT_FUNCTION"][10] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR10", """Motor 10""")
  4154. ACTUATOR_OUTPUT_FUNCTION_MOTOR11 = 11
  4155. enums["ACTUATOR_OUTPUT_FUNCTION"][11] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR11", """Motor 11""")
  4156. ACTUATOR_OUTPUT_FUNCTION_MOTOR12 = 12
  4157. enums["ACTUATOR_OUTPUT_FUNCTION"][12] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR12", """Motor 12""")
  4158. ACTUATOR_OUTPUT_FUNCTION_MOTOR13 = 13
  4159. enums["ACTUATOR_OUTPUT_FUNCTION"][13] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR13", """Motor 13""")
  4160. ACTUATOR_OUTPUT_FUNCTION_MOTOR14 = 14
  4161. enums["ACTUATOR_OUTPUT_FUNCTION"][14] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR14", """Motor 14""")
  4162. ACTUATOR_OUTPUT_FUNCTION_MOTOR15 = 15
  4163. enums["ACTUATOR_OUTPUT_FUNCTION"][15] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR15", """Motor 15""")
  4164. ACTUATOR_OUTPUT_FUNCTION_MOTOR16 = 16
  4165. enums["ACTUATOR_OUTPUT_FUNCTION"][16] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR16", """Motor 16""")
  4166. ACTUATOR_OUTPUT_FUNCTION_SERVO1 = 33
  4167. enums["ACTUATOR_OUTPUT_FUNCTION"][33] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO1", """Servo 1""")
  4168. ACTUATOR_OUTPUT_FUNCTION_SERVO2 = 34
  4169. enums["ACTUATOR_OUTPUT_FUNCTION"][34] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO2", """Servo 2""")
  4170. ACTUATOR_OUTPUT_FUNCTION_SERVO3 = 35
  4171. enums["ACTUATOR_OUTPUT_FUNCTION"][35] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO3", """Servo 3""")
  4172. ACTUATOR_OUTPUT_FUNCTION_SERVO4 = 36
  4173. enums["ACTUATOR_OUTPUT_FUNCTION"][36] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO4", """Servo 4""")
  4174. ACTUATOR_OUTPUT_FUNCTION_SERVO5 = 37
  4175. enums["ACTUATOR_OUTPUT_FUNCTION"][37] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO5", """Servo 5""")
  4176. ACTUATOR_OUTPUT_FUNCTION_SERVO6 = 38
  4177. enums["ACTUATOR_OUTPUT_FUNCTION"][38] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO6", """Servo 6""")
  4178. ACTUATOR_OUTPUT_FUNCTION_SERVO7 = 39
  4179. enums["ACTUATOR_OUTPUT_FUNCTION"][39] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO7", """Servo 7""")
  4180. ACTUATOR_OUTPUT_FUNCTION_SERVO8 = 40
  4181. enums["ACTUATOR_OUTPUT_FUNCTION"][40] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO8", """Servo 8""")
  4182. ACTUATOR_OUTPUT_FUNCTION_SERVO9 = 41
  4183. enums["ACTUATOR_OUTPUT_FUNCTION"][41] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO9", """Servo 9""")
  4184. ACTUATOR_OUTPUT_FUNCTION_SERVO10 = 42
  4185. enums["ACTUATOR_OUTPUT_FUNCTION"][42] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO10", """Servo 10""")
  4186. ACTUATOR_OUTPUT_FUNCTION_SERVO11 = 43
  4187. enums["ACTUATOR_OUTPUT_FUNCTION"][43] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO11", """Servo 11""")
  4188. ACTUATOR_OUTPUT_FUNCTION_SERVO12 = 44
  4189. enums["ACTUATOR_OUTPUT_FUNCTION"][44] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO12", """Servo 12""")
  4190. ACTUATOR_OUTPUT_FUNCTION_SERVO13 = 45
  4191. enums["ACTUATOR_OUTPUT_FUNCTION"][45] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO13", """Servo 13""")
  4192. ACTUATOR_OUTPUT_FUNCTION_SERVO14 = 46
  4193. enums["ACTUATOR_OUTPUT_FUNCTION"][46] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO14", """Servo 14""")
  4194. ACTUATOR_OUTPUT_FUNCTION_SERVO15 = 47
  4195. enums["ACTUATOR_OUTPUT_FUNCTION"][47] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO15", """Servo 15""")
  4196. ACTUATOR_OUTPUT_FUNCTION_SERVO16 = 48
  4197. enums["ACTUATOR_OUTPUT_FUNCTION"][48] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO16", """Servo 16""")
  4198. ACTUATOR_OUTPUT_FUNCTION_ENUM_END = 49
  4199. enums["ACTUATOR_OUTPUT_FUNCTION"][49] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_ENUM_END", """""")
  4200. # AUTOTUNE_AXIS
  4201. enums["AUTOTUNE_AXIS"] = Enum()
  4202. enums["AUTOTUNE_AXIS"].bitmask = True
  4203. AUTOTUNE_AXIS_DEFAULT = 0
  4204. enums["AUTOTUNE_AXIS"][0] = EnumEntry("AUTOTUNE_AXIS_DEFAULT", """Flight stack tunes axis according to its default settings.""")
  4205. AUTOTUNE_AXIS_ROLL = 1
  4206. enums["AUTOTUNE_AXIS"][1] = EnumEntry("AUTOTUNE_AXIS_ROLL", """Autotune roll axis.""")
  4207. AUTOTUNE_AXIS_PITCH = 2
  4208. enums["AUTOTUNE_AXIS"][2] = EnumEntry("AUTOTUNE_AXIS_PITCH", """Autotune pitch axis.""")
  4209. AUTOTUNE_AXIS_YAW = 4
  4210. enums["AUTOTUNE_AXIS"][4] = EnumEntry("AUTOTUNE_AXIS_YAW", """Autotune yaw axis.""")
  4211. AUTOTUNE_AXIS_ENUM_END = 5
  4212. enums["AUTOTUNE_AXIS"][5] = EnumEntry("AUTOTUNE_AXIS_ENUM_END", """""")
  4213. # PREFLIGHT_STORAGE_PARAMETER_ACTION
  4214. enums["PREFLIGHT_STORAGE_PARAMETER_ACTION"] = Enum()
  4215. enums["PREFLIGHT_STORAGE_PARAMETER_ACTION"].bitmask = False
  4216. PARAM_READ_PERSISTENT = 0
  4217. enums["PREFLIGHT_STORAGE_PARAMETER_ACTION"][0] = EnumEntry("PARAM_READ_PERSISTENT", """Read all parameters from persistent storage. Replaces values in volatile storage.""")
  4218. PARAM_WRITE_PERSISTENT = 1
  4219. enums["PREFLIGHT_STORAGE_PARAMETER_ACTION"][1] = EnumEntry("PARAM_WRITE_PERSISTENT", """Write all parameter values to persistent storage (flash/EEPROM)""")
  4220. PARAM_RESET_CONFIG_DEFAULT = 2
  4221. enums["PREFLIGHT_STORAGE_PARAMETER_ACTION"][2] = EnumEntry("PARAM_RESET_CONFIG_DEFAULT", """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.""")
  4222. PARAM_RESET_SENSOR_DEFAULT = 3
  4223. enums["PREFLIGHT_STORAGE_PARAMETER_ACTION"][3] = EnumEntry("PARAM_RESET_SENSOR_DEFAULT", """Reset only sensor calibration parameters to factory defaults (or firmware default if not available)""")
  4224. PARAM_RESET_ALL_DEFAULT = 4
  4225. enums["PREFLIGHT_STORAGE_PARAMETER_ACTION"][4] = EnumEntry("PARAM_RESET_ALL_DEFAULT", """Reset all parameters, including operation counters, to default values""")
  4226. PREFLIGHT_STORAGE_PARAMETER_ACTION_ENUM_END = 5
  4227. enums["PREFLIGHT_STORAGE_PARAMETER_ACTION"][5] = EnumEntry("PREFLIGHT_STORAGE_PARAMETER_ACTION_ENUM_END", """""")
  4228. # PREFLIGHT_STORAGE_MISSION_ACTION
  4229. enums["PREFLIGHT_STORAGE_MISSION_ACTION"] = Enum()
  4230. enums["PREFLIGHT_STORAGE_MISSION_ACTION"].bitmask = False
  4231. MISSION_READ_PERSISTENT = 0
  4232. enums["PREFLIGHT_STORAGE_MISSION_ACTION"][0] = EnumEntry("MISSION_READ_PERSISTENT", """Read current mission data from persistent storage""")
  4233. MISSION_WRITE_PERSISTENT = 1
  4234. enums["PREFLIGHT_STORAGE_MISSION_ACTION"][1] = EnumEntry("MISSION_WRITE_PERSISTENT", """Write current mission data to persistent storage""")
  4235. MISSION_RESET_DEFAULT = 2
  4236. enums["PREFLIGHT_STORAGE_MISSION_ACTION"][2] = EnumEntry("MISSION_RESET_DEFAULT", """Erase all mission data stored on the vehicle (both persistent and volatile storage)""")
  4237. PREFLIGHT_STORAGE_MISSION_ACTION_ENUM_END = 3
  4238. enums["PREFLIGHT_STORAGE_MISSION_ACTION"][3] = EnumEntry("PREFLIGHT_STORAGE_MISSION_ACTION_ENUM_END", """""")
  4239. # MAV_DATA_STREAM
  4240. enums["MAV_DATA_STREAM"] = Enum()
  4241. enums["MAV_DATA_STREAM"].bitmask = False
  4242. MAV_DATA_STREAM_ALL = 0
  4243. enums["MAV_DATA_STREAM"][0] = EnumEntry("MAV_DATA_STREAM_ALL", """Enable all data streams""")
  4244. MAV_DATA_STREAM_RAW_SENSORS = 1
  4245. enums["MAV_DATA_STREAM"][1] = EnumEntry("MAV_DATA_STREAM_RAW_SENSORS", """Enable IMU_RAW, GPS_RAW, GPS_STATUS packets.""")
  4246. MAV_DATA_STREAM_EXTENDED_STATUS = 2
  4247. enums["MAV_DATA_STREAM"][2] = EnumEntry("MAV_DATA_STREAM_EXTENDED_STATUS", """Enable GPS_STATUS, CONTROL_STATUS, AUX_STATUS""")
  4248. MAV_DATA_STREAM_RC_CHANNELS = 3
  4249. enums["MAV_DATA_STREAM"][3] = EnumEntry("MAV_DATA_STREAM_RC_CHANNELS", """Enable RC_CHANNELS_SCALED, RC_CHANNELS_RAW, SERVO_OUTPUT_RAW""")
  4250. MAV_DATA_STREAM_RAW_CONTROLLER = 4
  4251. enums["MAV_DATA_STREAM"][4] = EnumEntry("MAV_DATA_STREAM_RAW_CONTROLLER", """Enable ATTITUDE_CONTROLLER_OUTPUT, POSITION_CONTROLLER_OUTPUT, NAV_CONTROLLER_OUTPUT.""")
  4252. MAV_DATA_STREAM_POSITION = 6
  4253. enums["MAV_DATA_STREAM"][6] = EnumEntry("MAV_DATA_STREAM_POSITION", """Enable LOCAL_POSITION, GLOBAL_POSITION_INT messages.""")
  4254. MAV_DATA_STREAM_EXTRA1 = 10
  4255. enums["MAV_DATA_STREAM"][10] = EnumEntry("MAV_DATA_STREAM_EXTRA1", """Dependent on the autopilot""")
  4256. MAV_DATA_STREAM_EXTRA2 = 11
  4257. enums["MAV_DATA_STREAM"][11] = EnumEntry("MAV_DATA_STREAM_EXTRA2", """Dependent on the autopilot""")
  4258. MAV_DATA_STREAM_EXTRA3 = 12
  4259. enums["MAV_DATA_STREAM"][12] = EnumEntry("MAV_DATA_STREAM_EXTRA3", """Dependent on the autopilot""")
  4260. MAV_DATA_STREAM_ENUM_END = 13
  4261. enums["MAV_DATA_STREAM"][13] = EnumEntry("MAV_DATA_STREAM_ENUM_END", """""")
  4262. # MAV_ROI
  4263. enums["MAV_ROI"] = Enum()
  4264. enums["MAV_ROI"].bitmask = False
  4265. MAV_ROI_NONE = 0
  4266. enums["MAV_ROI"][0] = EnumEntry("MAV_ROI_NONE", """No region of interest.""")
  4267. MAV_ROI_WPNEXT = 1
  4268. enums["MAV_ROI"][1] = EnumEntry("MAV_ROI_WPNEXT", """Point toward next waypoint, with optional pitch/roll/yaw offset.""")
  4269. MAV_ROI_WPINDEX = 2
  4270. enums["MAV_ROI"][2] = EnumEntry("MAV_ROI_WPINDEX", """Point toward given waypoint.""")
  4271. MAV_ROI_LOCATION = 3
  4272. enums["MAV_ROI"][3] = EnumEntry("MAV_ROI_LOCATION", """Point toward fixed location.""")
  4273. MAV_ROI_TARGET = 4
  4274. enums["MAV_ROI"][4] = EnumEntry("MAV_ROI_TARGET", """Point toward of given id.""")
  4275. MAV_ROI_ENUM_END = 5
  4276. enums["MAV_ROI"][5] = EnumEntry("MAV_ROI_ENUM_END", """""")
  4277. # MAV_PARAM_TYPE
  4278. enums["MAV_PARAM_TYPE"] = Enum()
  4279. enums["MAV_PARAM_TYPE"].bitmask = False
  4280. MAV_PARAM_TYPE_UINT8 = 1
  4281. enums["MAV_PARAM_TYPE"][1] = EnumEntry("MAV_PARAM_TYPE_UINT8", """8-bit unsigned integer""")
  4282. MAV_PARAM_TYPE_INT8 = 2
  4283. enums["MAV_PARAM_TYPE"][2] = EnumEntry("MAV_PARAM_TYPE_INT8", """8-bit signed integer""")
  4284. MAV_PARAM_TYPE_UINT16 = 3
  4285. enums["MAV_PARAM_TYPE"][3] = EnumEntry("MAV_PARAM_TYPE_UINT16", """16-bit unsigned integer""")
  4286. MAV_PARAM_TYPE_INT16 = 4
  4287. enums["MAV_PARAM_TYPE"][4] = EnumEntry("MAV_PARAM_TYPE_INT16", """16-bit signed integer""")
  4288. MAV_PARAM_TYPE_UINT32 = 5
  4289. enums["MAV_PARAM_TYPE"][5] = EnumEntry("MAV_PARAM_TYPE_UINT32", """32-bit unsigned integer""")
  4290. MAV_PARAM_TYPE_INT32 = 6
  4291. enums["MAV_PARAM_TYPE"][6] = EnumEntry("MAV_PARAM_TYPE_INT32", """32-bit signed integer""")
  4292. MAV_PARAM_TYPE_UINT64 = 7
  4293. enums["MAV_PARAM_TYPE"][7] = EnumEntry("MAV_PARAM_TYPE_UINT64", """64-bit unsigned integer""")
  4294. MAV_PARAM_TYPE_INT64 = 8
  4295. enums["MAV_PARAM_TYPE"][8] = EnumEntry("MAV_PARAM_TYPE_INT64", """64-bit signed integer""")
  4296. MAV_PARAM_TYPE_REAL32 = 9
  4297. enums["MAV_PARAM_TYPE"][9] = EnumEntry("MAV_PARAM_TYPE_REAL32", """32-bit floating-point""")
  4298. MAV_PARAM_TYPE_REAL64 = 10
  4299. enums["MAV_PARAM_TYPE"][10] = EnumEntry("MAV_PARAM_TYPE_REAL64", """64-bit floating-point""")
  4300. MAV_PARAM_TYPE_ENUM_END = 11
  4301. enums["MAV_PARAM_TYPE"][11] = EnumEntry("MAV_PARAM_TYPE_ENUM_END", """""")
  4302. # MAV_PARAM_EXT_TYPE
  4303. enums["MAV_PARAM_EXT_TYPE"] = Enum()
  4304. enums["MAV_PARAM_EXT_TYPE"].bitmask = False
  4305. MAV_PARAM_EXT_TYPE_UINT8 = 1
  4306. enums["MAV_PARAM_EXT_TYPE"][1] = EnumEntry("MAV_PARAM_EXT_TYPE_UINT8", """8-bit unsigned integer""")
  4307. MAV_PARAM_EXT_TYPE_INT8 = 2
  4308. enums["MAV_PARAM_EXT_TYPE"][2] = EnumEntry("MAV_PARAM_EXT_TYPE_INT8", """8-bit signed integer""")
  4309. MAV_PARAM_EXT_TYPE_UINT16 = 3
  4310. enums["MAV_PARAM_EXT_TYPE"][3] = EnumEntry("MAV_PARAM_EXT_TYPE_UINT16", """16-bit unsigned integer""")
  4311. MAV_PARAM_EXT_TYPE_INT16 = 4
  4312. enums["MAV_PARAM_EXT_TYPE"][4] = EnumEntry("MAV_PARAM_EXT_TYPE_INT16", """16-bit signed integer""")
  4313. MAV_PARAM_EXT_TYPE_UINT32 = 5
  4314. enums["MAV_PARAM_EXT_TYPE"][5] = EnumEntry("MAV_PARAM_EXT_TYPE_UINT32", """32-bit unsigned integer""")
  4315. MAV_PARAM_EXT_TYPE_INT32 = 6
  4316. enums["MAV_PARAM_EXT_TYPE"][6] = EnumEntry("MAV_PARAM_EXT_TYPE_INT32", """32-bit signed integer""")
  4317. MAV_PARAM_EXT_TYPE_UINT64 = 7
  4318. enums["MAV_PARAM_EXT_TYPE"][7] = EnumEntry("MAV_PARAM_EXT_TYPE_UINT64", """64-bit unsigned integer""")
  4319. MAV_PARAM_EXT_TYPE_INT64 = 8
  4320. enums["MAV_PARAM_EXT_TYPE"][8] = EnumEntry("MAV_PARAM_EXT_TYPE_INT64", """64-bit signed integer""")
  4321. MAV_PARAM_EXT_TYPE_REAL32 = 9
  4322. enums["MAV_PARAM_EXT_TYPE"][9] = EnumEntry("MAV_PARAM_EXT_TYPE_REAL32", """32-bit floating-point""")
  4323. MAV_PARAM_EXT_TYPE_REAL64 = 10
  4324. enums["MAV_PARAM_EXT_TYPE"][10] = EnumEntry("MAV_PARAM_EXT_TYPE_REAL64", """64-bit floating-point""")
  4325. MAV_PARAM_EXT_TYPE_CUSTOM = 11
  4326. enums["MAV_PARAM_EXT_TYPE"][11] = EnumEntry("MAV_PARAM_EXT_TYPE_CUSTOM", """Custom Type""")
  4327. MAV_PARAM_EXT_TYPE_ENUM_END = 12
  4328. enums["MAV_PARAM_EXT_TYPE"][12] = EnumEntry("MAV_PARAM_EXT_TYPE_ENUM_END", """""")
  4329. # MAV_RESULT
  4330. enums["MAV_RESULT"] = Enum()
  4331. enums["MAV_RESULT"].bitmask = False
  4332. MAV_RESULT_ACCEPTED = 0
  4333. enums["MAV_RESULT"][0] = EnumEntry("MAV_RESULT_ACCEPTED", """Command is valid (is supported and has valid parameters), and was executed.""")
  4334. MAV_RESULT_TEMPORARILY_REJECTED = 1
  4335. enums["MAV_RESULT"][1] = EnumEntry("MAV_RESULT_TEMPORARILY_REJECTED", """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.""")
  4336. MAV_RESULT_DENIED = 2
  4337. enums["MAV_RESULT"][2] = EnumEntry("MAV_RESULT_DENIED", """Command is invalid (is supported but has invalid parameters). Retrying same command and parameters will not work.""")
  4338. MAV_RESULT_UNSUPPORTED = 3
  4339. enums["MAV_RESULT"][3] = EnumEntry("MAV_RESULT_UNSUPPORTED", """Command is not supported (unknown).""")
  4340. MAV_RESULT_FAILED = 4
  4341. enums["MAV_RESULT"][4] = EnumEntry("MAV_RESULT_FAILED", """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.""")
  4342. MAV_RESULT_IN_PROGRESS = 5
  4343. enums["MAV_RESULT"][5] = EnumEntry("MAV_RESULT_IN_PROGRESS", """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.""")
  4344. MAV_RESULT_CANCELLED = 6
  4345. enums["MAV_RESULT"][6] = EnumEntry("MAV_RESULT_CANCELLED", """Command has been cancelled (as a result of receiving a COMMAND_CANCEL message).""")
  4346. MAV_RESULT_COMMAND_LONG_ONLY = 7
  4347. enums["MAV_RESULT"][7] = EnumEntry("MAV_RESULT_COMMAND_LONG_ONLY", """Command is only accepted when sent as a COMMAND_LONG.""")
  4348. MAV_RESULT_COMMAND_INT_ONLY = 8
  4349. enums["MAV_RESULT"][8] = EnumEntry("MAV_RESULT_COMMAND_INT_ONLY", """Command is only accepted when sent as a COMMAND_INT.""")
  4350. MAV_RESULT_COMMAND_UNSUPPORTED_MAV_FRAME = 9
  4351. enums["MAV_RESULT"][9] = EnumEntry("MAV_RESULT_COMMAND_UNSUPPORTED_MAV_FRAME", """Command is invalid because a frame is required and the specified frame is not supported.""")
  4352. MAV_RESULT_ENUM_END = 10
  4353. enums["MAV_RESULT"][10] = EnumEntry("MAV_RESULT_ENUM_END", """""")
  4354. # MAV_MISSION_RESULT
  4355. enums["MAV_MISSION_RESULT"] = Enum()
  4356. enums["MAV_MISSION_RESULT"].bitmask = False
  4357. MAV_MISSION_ACCEPTED = 0
  4358. enums["MAV_MISSION_RESULT"][0] = EnumEntry("MAV_MISSION_ACCEPTED", """mission accepted OK""")
  4359. MAV_MISSION_ERROR = 1
  4360. enums["MAV_MISSION_RESULT"][1] = EnumEntry("MAV_MISSION_ERROR", """Generic error / not accepting mission commands at all right now.""")
  4361. MAV_MISSION_UNSUPPORTED_FRAME = 2
  4362. enums["MAV_MISSION_RESULT"][2] = EnumEntry("MAV_MISSION_UNSUPPORTED_FRAME", """Coordinate frame is not supported.""")
  4363. MAV_MISSION_UNSUPPORTED = 3
  4364. enums["MAV_MISSION_RESULT"][3] = EnumEntry("MAV_MISSION_UNSUPPORTED", """Command is not supported.""")
  4365. MAV_MISSION_NO_SPACE = 4
  4366. enums["MAV_MISSION_RESULT"][4] = EnumEntry("MAV_MISSION_NO_SPACE", """Mission items exceed storage space.""")
  4367. MAV_MISSION_INVALID = 5
  4368. enums["MAV_MISSION_RESULT"][5] = EnumEntry("MAV_MISSION_INVALID", """One of the parameters has an invalid value.""")
  4369. MAV_MISSION_INVALID_PARAM1 = 6
  4370. enums["MAV_MISSION_RESULT"][6] = EnumEntry("MAV_MISSION_INVALID_PARAM1", """param1 has an invalid value.""")
  4371. MAV_MISSION_INVALID_PARAM2 = 7
  4372. enums["MAV_MISSION_RESULT"][7] = EnumEntry("MAV_MISSION_INVALID_PARAM2", """param2 has an invalid value.""")
  4373. MAV_MISSION_INVALID_PARAM3 = 8
  4374. enums["MAV_MISSION_RESULT"][8] = EnumEntry("MAV_MISSION_INVALID_PARAM3", """param3 has an invalid value.""")
  4375. MAV_MISSION_INVALID_PARAM4 = 9
  4376. enums["MAV_MISSION_RESULT"][9] = EnumEntry("MAV_MISSION_INVALID_PARAM4", """param4 has an invalid value.""")
  4377. MAV_MISSION_INVALID_PARAM5_X = 10
  4378. enums["MAV_MISSION_RESULT"][10] = EnumEntry("MAV_MISSION_INVALID_PARAM5_X", """x / param5 has an invalid value.""")
  4379. MAV_MISSION_INVALID_PARAM6_Y = 11
  4380. enums["MAV_MISSION_RESULT"][11] = EnumEntry("MAV_MISSION_INVALID_PARAM6_Y", """y / param6 has an invalid value.""")
  4381. MAV_MISSION_INVALID_PARAM7 = 12
  4382. enums["MAV_MISSION_RESULT"][12] = EnumEntry("MAV_MISSION_INVALID_PARAM7", """z / param7 has an invalid value.""")
  4383. MAV_MISSION_INVALID_SEQUENCE = 13
  4384. enums["MAV_MISSION_RESULT"][13] = EnumEntry("MAV_MISSION_INVALID_SEQUENCE", """Mission item received out of sequence""")
  4385. MAV_MISSION_DENIED = 14
  4386. enums["MAV_MISSION_RESULT"][14] = EnumEntry("MAV_MISSION_DENIED", """Not accepting any mission commands from this communication partner.""")
  4387. MAV_MISSION_OPERATION_CANCELLED = 15
  4388. enums["MAV_MISSION_RESULT"][15] = EnumEntry("MAV_MISSION_OPERATION_CANCELLED", """Current mission operation cancelled (e.g. mission upload, mission download).""")
  4389. MAV_MISSION_RESULT_ENUM_END = 16
  4390. enums["MAV_MISSION_RESULT"][16] = EnumEntry("MAV_MISSION_RESULT_ENUM_END", """""")
  4391. # MAV_SEVERITY
  4392. enums["MAV_SEVERITY"] = Enum()
  4393. enums["MAV_SEVERITY"].bitmask = False
  4394. MAV_SEVERITY_EMERGENCY = 0
  4395. enums["MAV_SEVERITY"][0] = EnumEntry("MAV_SEVERITY_EMERGENCY", """System is unusable. This is a "panic" condition.""")
  4396. MAV_SEVERITY_ALERT = 1
  4397. enums["MAV_SEVERITY"][1] = EnumEntry("MAV_SEVERITY_ALERT", """Action should be taken immediately. Indicates error in non-critical systems.""")
  4398. MAV_SEVERITY_CRITICAL = 2
  4399. enums["MAV_SEVERITY"][2] = EnumEntry("MAV_SEVERITY_CRITICAL", """Action must be taken immediately. Indicates failure in a primary system.""")
  4400. MAV_SEVERITY_ERROR = 3
  4401. enums["MAV_SEVERITY"][3] = EnumEntry("MAV_SEVERITY_ERROR", """Indicates an error in secondary/redundant systems.""")
  4402. MAV_SEVERITY_WARNING = 4
  4403. enums["MAV_SEVERITY"][4] = EnumEntry("MAV_SEVERITY_WARNING", """Indicates about a possible future error if this is not resolved within a given timeframe. Example would be a low battery warning.""")
  4404. MAV_SEVERITY_NOTICE = 5
  4405. enums["MAV_SEVERITY"][5] = EnumEntry("MAV_SEVERITY_NOTICE", """An unusual event has occurred, though not an error condition. This should be investigated for the root cause.""")
  4406. MAV_SEVERITY_INFO = 6
  4407. enums["MAV_SEVERITY"][6] = EnumEntry("MAV_SEVERITY_INFO", """Normal operational messages. Useful for logging. No action is required for these messages.""")
  4408. MAV_SEVERITY_DEBUG = 7
  4409. enums["MAV_SEVERITY"][7] = EnumEntry("MAV_SEVERITY_DEBUG", """Useful non-operational messages that can assist in debugging. These should not occur during normal operation.""")
  4410. MAV_SEVERITY_ENUM_END = 8
  4411. enums["MAV_SEVERITY"][8] = EnumEntry("MAV_SEVERITY_ENUM_END", """""")
  4412. # MAV_POWER_STATUS
  4413. enums["MAV_POWER_STATUS"] = Enum()
  4414. enums["MAV_POWER_STATUS"].bitmask = True
  4415. MAV_POWER_STATUS_BRICK_VALID = 1
  4416. enums["MAV_POWER_STATUS"][1] = EnumEntry("MAV_POWER_STATUS_BRICK_VALID", """main brick power supply valid""")
  4417. MAV_POWER_STATUS_SERVO_VALID = 2
  4418. enums["MAV_POWER_STATUS"][2] = EnumEntry("MAV_POWER_STATUS_SERVO_VALID", """main servo power supply valid for FMU""")
  4419. MAV_POWER_STATUS_USB_CONNECTED = 4
  4420. enums["MAV_POWER_STATUS"][4] = EnumEntry("MAV_POWER_STATUS_USB_CONNECTED", """USB power is connected""")
  4421. MAV_POWER_STATUS_PERIPH_OVERCURRENT = 8
  4422. enums["MAV_POWER_STATUS"][8] = EnumEntry("MAV_POWER_STATUS_PERIPH_OVERCURRENT", """peripheral supply is in over-current state""")
  4423. MAV_POWER_STATUS_PERIPH_HIPOWER_OVERCURRENT = 16
  4424. enums["MAV_POWER_STATUS"][16] = EnumEntry("MAV_POWER_STATUS_PERIPH_HIPOWER_OVERCURRENT", """hi-power peripheral supply is in over-current state""")
  4425. MAV_POWER_STATUS_CHANGED = 32
  4426. enums["MAV_POWER_STATUS"][32] = EnumEntry("MAV_POWER_STATUS_CHANGED", """Power status has changed since boot""")
  4427. MAV_POWER_STATUS_ENUM_END = 33
  4428. enums["MAV_POWER_STATUS"][33] = EnumEntry("MAV_POWER_STATUS_ENUM_END", """""")
  4429. # SERIAL_CONTROL_DEV
  4430. enums["SERIAL_CONTROL_DEV"] = Enum()
  4431. enums["SERIAL_CONTROL_DEV"].bitmask = False
  4432. SERIAL_CONTROL_DEV_TELEM1 = 0
  4433. enums["SERIAL_CONTROL_DEV"][0] = EnumEntry("SERIAL_CONTROL_DEV_TELEM1", """First telemetry port""")
  4434. SERIAL_CONTROL_DEV_TELEM2 = 1
  4435. enums["SERIAL_CONTROL_DEV"][1] = EnumEntry("SERIAL_CONTROL_DEV_TELEM2", """Second telemetry port""")
  4436. SERIAL_CONTROL_DEV_GPS1 = 2
  4437. enums["SERIAL_CONTROL_DEV"][2] = EnumEntry("SERIAL_CONTROL_DEV_GPS1", """First GPS port""")
  4438. SERIAL_CONTROL_DEV_GPS2 = 3
  4439. enums["SERIAL_CONTROL_DEV"][3] = EnumEntry("SERIAL_CONTROL_DEV_GPS2", """Second GPS port""")
  4440. SERIAL_CONTROL_DEV_SHELL = 10
  4441. enums["SERIAL_CONTROL_DEV"][10] = EnumEntry("SERIAL_CONTROL_DEV_SHELL", """system shell""")
  4442. SERIAL_CONTROL_SERIAL0 = 100
  4443. enums["SERIAL_CONTROL_DEV"][100] = EnumEntry("SERIAL_CONTROL_SERIAL0", """SERIAL0""")
  4444. SERIAL_CONTROL_SERIAL1 = 101
  4445. enums["SERIAL_CONTROL_DEV"][101] = EnumEntry("SERIAL_CONTROL_SERIAL1", """SERIAL1""")
  4446. SERIAL_CONTROL_SERIAL2 = 102
  4447. enums["SERIAL_CONTROL_DEV"][102] = EnumEntry("SERIAL_CONTROL_SERIAL2", """SERIAL2""")
  4448. SERIAL_CONTROL_SERIAL3 = 103
  4449. enums["SERIAL_CONTROL_DEV"][103] = EnumEntry("SERIAL_CONTROL_SERIAL3", """SERIAL3""")
  4450. SERIAL_CONTROL_SERIAL4 = 104
  4451. enums["SERIAL_CONTROL_DEV"][104] = EnumEntry("SERIAL_CONTROL_SERIAL4", """SERIAL4""")
  4452. SERIAL_CONTROL_SERIAL5 = 105
  4453. enums["SERIAL_CONTROL_DEV"][105] = EnumEntry("SERIAL_CONTROL_SERIAL5", """SERIAL5""")
  4454. SERIAL_CONTROL_SERIAL6 = 106
  4455. enums["SERIAL_CONTROL_DEV"][106] = EnumEntry("SERIAL_CONTROL_SERIAL6", """SERIAL6""")
  4456. SERIAL_CONTROL_SERIAL7 = 107
  4457. enums["SERIAL_CONTROL_DEV"][107] = EnumEntry("SERIAL_CONTROL_SERIAL7", """SERIAL7""")
  4458. SERIAL_CONTROL_SERIAL8 = 108
  4459. enums["SERIAL_CONTROL_DEV"][108] = EnumEntry("SERIAL_CONTROL_SERIAL8", """SERIAL8""")
  4460. SERIAL_CONTROL_SERIAL9 = 109
  4461. enums["SERIAL_CONTROL_DEV"][109] = EnumEntry("SERIAL_CONTROL_SERIAL9", """SERIAL9""")
  4462. SERIAL_CONTROL_DEV_ENUM_END = 110
  4463. enums["SERIAL_CONTROL_DEV"][110] = EnumEntry("SERIAL_CONTROL_DEV_ENUM_END", """""")
  4464. # SERIAL_CONTROL_FLAG
  4465. enums["SERIAL_CONTROL_FLAG"] = Enum()
  4466. enums["SERIAL_CONTROL_FLAG"].bitmask = True
  4467. SERIAL_CONTROL_FLAG_REPLY = 1
  4468. enums["SERIAL_CONTROL_FLAG"][1] = EnumEntry("SERIAL_CONTROL_FLAG_REPLY", """Set if this is a reply""")
  4469. SERIAL_CONTROL_FLAG_RESPOND = 2
  4470. enums["SERIAL_CONTROL_FLAG"][2] = EnumEntry("SERIAL_CONTROL_FLAG_RESPOND", """Set if the sender wants the receiver to send a response as another SERIAL_CONTROL message""")
  4471. SERIAL_CONTROL_FLAG_EXCLUSIVE = 4
  4472. enums["SERIAL_CONTROL_FLAG"][4] = EnumEntry("SERIAL_CONTROL_FLAG_EXCLUSIVE", """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""")
  4473. SERIAL_CONTROL_FLAG_BLOCKING = 8
  4474. enums["SERIAL_CONTROL_FLAG"][8] = EnumEntry("SERIAL_CONTROL_FLAG_BLOCKING", """Block on writes to the serial port""")
  4475. SERIAL_CONTROL_FLAG_MULTI = 16
  4476. enums["SERIAL_CONTROL_FLAG"][16] = EnumEntry("SERIAL_CONTROL_FLAG_MULTI", """Send multiple replies until port is drained""")
  4477. SERIAL_CONTROL_FLAG_ENUM_END = 17
  4478. enums["SERIAL_CONTROL_FLAG"][17] = EnumEntry("SERIAL_CONTROL_FLAG_ENUM_END", """""")
  4479. # MAV_DISTANCE_SENSOR
  4480. enums["MAV_DISTANCE_SENSOR"] = Enum()
  4481. enums["MAV_DISTANCE_SENSOR"].bitmask = False
  4482. MAV_DISTANCE_SENSOR_LASER = 0
  4483. enums["MAV_DISTANCE_SENSOR"][0] = EnumEntry("MAV_DISTANCE_SENSOR_LASER", """Laser rangefinder, e.g. LightWare SF02/F or PulsedLight units""")
  4484. MAV_DISTANCE_SENSOR_ULTRASOUND = 1
  4485. enums["MAV_DISTANCE_SENSOR"][1] = EnumEntry("MAV_DISTANCE_SENSOR_ULTRASOUND", """Ultrasound rangefinder, e.g. MaxBotix units""")
  4486. MAV_DISTANCE_SENSOR_INFRARED = 2
  4487. enums["MAV_DISTANCE_SENSOR"][2] = EnumEntry("MAV_DISTANCE_SENSOR_INFRARED", """Infrared rangefinder, e.g. Sharp units""")
  4488. MAV_DISTANCE_SENSOR_RADAR = 3
  4489. enums["MAV_DISTANCE_SENSOR"][3] = EnumEntry("MAV_DISTANCE_SENSOR_RADAR", """Radar type, e.g. uLanding units""")
  4490. MAV_DISTANCE_SENSOR_UNKNOWN = 4
  4491. enums["MAV_DISTANCE_SENSOR"][4] = EnumEntry("MAV_DISTANCE_SENSOR_UNKNOWN", """Broken or unknown type, e.g. analog units""")
  4492. MAV_DISTANCE_SENSOR_ENUM_END = 5
  4493. enums["MAV_DISTANCE_SENSOR"][5] = EnumEntry("MAV_DISTANCE_SENSOR_ENUM_END", """""")
  4494. # MAV_SENSOR_ORIENTATION
  4495. enums["MAV_SENSOR_ORIENTATION"] = Enum()
  4496. enums["MAV_SENSOR_ORIENTATION"].bitmask = False
  4497. MAV_SENSOR_ROTATION_NONE = 0
  4498. enums["MAV_SENSOR_ORIENTATION"][0] = EnumEntry("MAV_SENSOR_ROTATION_NONE", """Roll: 0, Pitch: 0, Yaw: 0""")
  4499. MAV_SENSOR_ROTATION_YAW_45 = 1
  4500. enums["MAV_SENSOR_ORIENTATION"][1] = EnumEntry("MAV_SENSOR_ROTATION_YAW_45", """Roll: 0, Pitch: 0, Yaw: 45""")
  4501. MAV_SENSOR_ROTATION_YAW_90 = 2
  4502. enums["MAV_SENSOR_ORIENTATION"][2] = EnumEntry("MAV_SENSOR_ROTATION_YAW_90", """Roll: 0, Pitch: 0, Yaw: 90""")
  4503. MAV_SENSOR_ROTATION_YAW_135 = 3
  4504. enums["MAV_SENSOR_ORIENTATION"][3] = EnumEntry("MAV_SENSOR_ROTATION_YAW_135", """Roll: 0, Pitch: 0, Yaw: 135""")
  4505. MAV_SENSOR_ROTATION_YAW_180 = 4
  4506. enums["MAV_SENSOR_ORIENTATION"][4] = EnumEntry("MAV_SENSOR_ROTATION_YAW_180", """Roll: 0, Pitch: 0, Yaw: 180""")
  4507. MAV_SENSOR_ROTATION_YAW_225 = 5
  4508. enums["MAV_SENSOR_ORIENTATION"][5] = EnumEntry("MAV_SENSOR_ROTATION_YAW_225", """Roll: 0, Pitch: 0, Yaw: 225""")
  4509. MAV_SENSOR_ROTATION_YAW_270 = 6
  4510. enums["MAV_SENSOR_ORIENTATION"][6] = EnumEntry("MAV_SENSOR_ROTATION_YAW_270", """Roll: 0, Pitch: 0, Yaw: 270""")
  4511. MAV_SENSOR_ROTATION_YAW_315 = 7
  4512. enums["MAV_SENSOR_ORIENTATION"][7] = EnumEntry("MAV_SENSOR_ROTATION_YAW_315", """Roll: 0, Pitch: 0, Yaw: 315""")
  4513. MAV_SENSOR_ROTATION_ROLL_180 = 8
  4514. enums["MAV_SENSOR_ORIENTATION"][8] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_180", """Roll: 180, Pitch: 0, Yaw: 0""")
  4515. MAV_SENSOR_ROTATION_ROLL_180_YAW_45 = 9
  4516. enums["MAV_SENSOR_ORIENTATION"][9] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_180_YAW_45", """Roll: 180, Pitch: 0, Yaw: 45""")
  4517. MAV_SENSOR_ROTATION_ROLL_180_YAW_90 = 10
  4518. enums["MAV_SENSOR_ORIENTATION"][10] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_180_YAW_90", """Roll: 180, Pitch: 0, Yaw: 90""")
  4519. MAV_SENSOR_ROTATION_ROLL_180_YAW_135 = 11
  4520. enums["MAV_SENSOR_ORIENTATION"][11] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_180_YAW_135", """Roll: 180, Pitch: 0, Yaw: 135""")
  4521. MAV_SENSOR_ROTATION_PITCH_180 = 12
  4522. enums["MAV_SENSOR_ORIENTATION"][12] = EnumEntry("MAV_SENSOR_ROTATION_PITCH_180", """Roll: 0, Pitch: 180, Yaw: 0""")
  4523. MAV_SENSOR_ROTATION_ROLL_180_YAW_225 = 13
  4524. enums["MAV_SENSOR_ORIENTATION"][13] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_180_YAW_225", """Roll: 180, Pitch: 0, Yaw: 225""")
  4525. MAV_SENSOR_ROTATION_ROLL_180_YAW_270 = 14
  4526. enums["MAV_SENSOR_ORIENTATION"][14] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_180_YAW_270", """Roll: 180, Pitch: 0, Yaw: 270""")
  4527. MAV_SENSOR_ROTATION_ROLL_180_YAW_315 = 15
  4528. enums["MAV_SENSOR_ORIENTATION"][15] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_180_YAW_315", """Roll: 180, Pitch: 0, Yaw: 315""")
  4529. MAV_SENSOR_ROTATION_ROLL_90 = 16
  4530. enums["MAV_SENSOR_ORIENTATION"][16] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_90", """Roll: 90, Pitch: 0, Yaw: 0""")
  4531. MAV_SENSOR_ROTATION_ROLL_90_YAW_45 = 17
  4532. enums["MAV_SENSOR_ORIENTATION"][17] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_90_YAW_45", """Roll: 90, Pitch: 0, Yaw: 45""")
  4533. MAV_SENSOR_ROTATION_ROLL_90_YAW_90 = 18
  4534. enums["MAV_SENSOR_ORIENTATION"][18] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_90_YAW_90", """Roll: 90, Pitch: 0, Yaw: 90""")
  4535. MAV_SENSOR_ROTATION_ROLL_90_YAW_135 = 19
  4536. enums["MAV_SENSOR_ORIENTATION"][19] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_90_YAW_135", """Roll: 90, Pitch: 0, Yaw: 135""")
  4537. MAV_SENSOR_ROTATION_ROLL_270 = 20
  4538. enums["MAV_SENSOR_ORIENTATION"][20] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_270", """Roll: 270, Pitch: 0, Yaw: 0""")
  4539. MAV_SENSOR_ROTATION_ROLL_270_YAW_45 = 21
  4540. enums["MAV_SENSOR_ORIENTATION"][21] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_270_YAW_45", """Roll: 270, Pitch: 0, Yaw: 45""")
  4541. MAV_SENSOR_ROTATION_ROLL_270_YAW_90 = 22
  4542. enums["MAV_SENSOR_ORIENTATION"][22] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_270_YAW_90", """Roll: 270, Pitch: 0, Yaw: 90""")
  4543. MAV_SENSOR_ROTATION_ROLL_270_YAW_135 = 23
  4544. enums["MAV_SENSOR_ORIENTATION"][23] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_270_YAW_135", """Roll: 270, Pitch: 0, Yaw: 135""")
  4545. MAV_SENSOR_ROTATION_PITCH_90 = 24
  4546. enums["MAV_SENSOR_ORIENTATION"][24] = EnumEntry("MAV_SENSOR_ROTATION_PITCH_90", """Roll: 0, Pitch: 90, Yaw: 0""")
  4547. MAV_SENSOR_ROTATION_PITCH_270 = 25
  4548. enums["MAV_SENSOR_ORIENTATION"][25] = EnumEntry("MAV_SENSOR_ROTATION_PITCH_270", """Roll: 0, Pitch: 270, Yaw: 0""")
  4549. MAV_SENSOR_ROTATION_PITCH_180_YAW_90 = 26
  4550. enums["MAV_SENSOR_ORIENTATION"][26] = EnumEntry("MAV_SENSOR_ROTATION_PITCH_180_YAW_90", """Roll: 0, Pitch: 180, Yaw: 90""")
  4551. MAV_SENSOR_ROTATION_PITCH_180_YAW_270 = 27
  4552. enums["MAV_SENSOR_ORIENTATION"][27] = EnumEntry("MAV_SENSOR_ROTATION_PITCH_180_YAW_270", """Roll: 0, Pitch: 180, Yaw: 270""")
  4553. MAV_SENSOR_ROTATION_ROLL_90_PITCH_90 = 28
  4554. enums["MAV_SENSOR_ORIENTATION"][28] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_90_PITCH_90", """Roll: 90, Pitch: 90, Yaw: 0""")
  4555. MAV_SENSOR_ROTATION_ROLL_180_PITCH_90 = 29
  4556. enums["MAV_SENSOR_ORIENTATION"][29] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_180_PITCH_90", """Roll: 180, Pitch: 90, Yaw: 0""")
  4557. MAV_SENSOR_ROTATION_ROLL_270_PITCH_90 = 30
  4558. enums["MAV_SENSOR_ORIENTATION"][30] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_270_PITCH_90", """Roll: 270, Pitch: 90, Yaw: 0""")
  4559. MAV_SENSOR_ROTATION_ROLL_90_PITCH_180 = 31
  4560. enums["MAV_SENSOR_ORIENTATION"][31] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_90_PITCH_180", """Roll: 90, Pitch: 180, Yaw: 0""")
  4561. MAV_SENSOR_ROTATION_ROLL_270_PITCH_180 = 32
  4562. enums["MAV_SENSOR_ORIENTATION"][32] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_270_PITCH_180", """Roll: 270, Pitch: 180, Yaw: 0""")
  4563. MAV_SENSOR_ROTATION_ROLL_90_PITCH_270 = 33
  4564. enums["MAV_SENSOR_ORIENTATION"][33] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_90_PITCH_270", """Roll: 90, Pitch: 270, Yaw: 0""")
  4565. MAV_SENSOR_ROTATION_ROLL_180_PITCH_270 = 34
  4566. enums["MAV_SENSOR_ORIENTATION"][34] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_180_PITCH_270", """Roll: 180, Pitch: 270, Yaw: 0""")
  4567. MAV_SENSOR_ROTATION_ROLL_270_PITCH_270 = 35
  4568. enums["MAV_SENSOR_ORIENTATION"][35] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_270_PITCH_270", """Roll: 270, Pitch: 270, Yaw: 0""")
  4569. MAV_SENSOR_ROTATION_ROLL_90_PITCH_180_YAW_90 = 36
  4570. enums["MAV_SENSOR_ORIENTATION"][36] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_90_PITCH_180_YAW_90", """Roll: 90, Pitch: 180, Yaw: 90""")
  4571. MAV_SENSOR_ROTATION_ROLL_90_YAW_270 = 37
  4572. enums["MAV_SENSOR_ORIENTATION"][37] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_90_YAW_270", """Roll: 90, Pitch: 0, Yaw: 270""")
  4573. MAV_SENSOR_ROTATION_ROLL_90_PITCH_68_YAW_293 = 38
  4574. enums["MAV_SENSOR_ORIENTATION"][38] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_90_PITCH_68_YAW_293", """Roll: 90, Pitch: 68, Yaw: 293""")
  4575. MAV_SENSOR_ROTATION_PITCH_315 = 39
  4576. enums["MAV_SENSOR_ORIENTATION"][39] = EnumEntry("MAV_SENSOR_ROTATION_PITCH_315", """Pitch: 315""")
  4577. MAV_SENSOR_ROTATION_ROLL_90_PITCH_315 = 40
  4578. enums["MAV_SENSOR_ORIENTATION"][40] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_90_PITCH_315", """Roll: 90, Pitch: 315""")
  4579. MAV_SENSOR_ROTATION_CUSTOM = 100
  4580. enums["MAV_SENSOR_ORIENTATION"][100] = EnumEntry("MAV_SENSOR_ROTATION_CUSTOM", """Custom orientation""")
  4581. MAV_SENSOR_ORIENTATION_ENUM_END = 101
  4582. enums["MAV_SENSOR_ORIENTATION"][101] = EnumEntry("MAV_SENSOR_ORIENTATION_ENUM_END", """""")
  4583. # MAV_PROTOCOL_CAPABILITY
  4584. enums["MAV_PROTOCOL_CAPABILITY"] = Enum()
  4585. enums["MAV_PROTOCOL_CAPABILITY"].bitmask = True
  4586. MAV_PROTOCOL_CAPABILITY_MISSION_FLOAT = 1
  4587. enums["MAV_PROTOCOL_CAPABILITY"][1] = EnumEntry(
  4588. "MAV_PROTOCOL_CAPABILITY_MISSION_FLOAT",
  4589. """Autopilot supports the MISSION_ITEM float message type.
  4590. Note that MISSION_ITEM is deprecated, and autopilots should use MISSION_INT instead.
  4591. """,
  4592. )
  4593. MAV_PROTOCOL_CAPABILITY_PARAM_FLOAT = 2
  4594. enums["MAV_PROTOCOL_CAPABILITY"][2] = EnumEntry("MAV_PROTOCOL_CAPABILITY_PARAM_FLOAT", """Autopilot supports the new param float message type.""")
  4595. MAV_PROTOCOL_CAPABILITY_MISSION_INT = 4
  4596. enums["MAV_PROTOCOL_CAPABILITY"][4] = EnumEntry(
  4597. "MAV_PROTOCOL_CAPABILITY_MISSION_INT",
  4598. """Autopilot supports MISSION_ITEM_INT scaled integer message type.
  4599. 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).
  4600. """,
  4601. )
  4602. MAV_PROTOCOL_CAPABILITY_COMMAND_INT = 8
  4603. enums["MAV_PROTOCOL_CAPABILITY"][8] = EnumEntry("MAV_PROTOCOL_CAPABILITY_COMMAND_INT", """Autopilot supports COMMAND_INT scaled integer message type.""")
  4604. MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_BYTEWISE = 16
  4605. enums["MAV_PROTOCOL_CAPABILITY"][16] = EnumEntry(
  4606. "MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_BYTEWISE",
  4607. """Parameter protocol uses byte-wise encoding of parameter values into param_value (float) fields: https://mavlink.io/en/services/parameter.html#parameter-encoding.
  4608. Note that either this flag or MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_C_CAST should be set if the parameter protocol is supported.
  4609. """,
  4610. )
  4611. MAV_PROTOCOL_CAPABILITY_FTP = 32
  4612. enums["MAV_PROTOCOL_CAPABILITY"][32] = EnumEntry("MAV_PROTOCOL_CAPABILITY_FTP", """Autopilot supports the File Transfer Protocol v1: https://mavlink.io/en/services/ftp.html.""")
  4613. MAV_PROTOCOL_CAPABILITY_SET_ATTITUDE_TARGET = 64
  4614. enums["MAV_PROTOCOL_CAPABILITY"][64] = EnumEntry("MAV_PROTOCOL_CAPABILITY_SET_ATTITUDE_TARGET", """Autopilot supports commanding attitude offboard.""")
  4615. MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_LOCAL_NED = 128
  4616. enums["MAV_PROTOCOL_CAPABILITY"][128] = EnumEntry("MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_LOCAL_NED", """Autopilot supports commanding position and velocity targets in local NED frame.""")
  4617. MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_GLOBAL_INT = 256
  4618. enums["MAV_PROTOCOL_CAPABILITY"][256] = EnumEntry("MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_GLOBAL_INT", """Autopilot supports commanding position and velocity targets in global scaled integers.""")
  4619. MAV_PROTOCOL_CAPABILITY_TERRAIN = 512
  4620. enums["MAV_PROTOCOL_CAPABILITY"][512] = EnumEntry("MAV_PROTOCOL_CAPABILITY_TERRAIN", """Autopilot supports terrain protocol / data handling.""")
  4621. MAV_PROTOCOL_CAPABILITY_RESERVED3 = 1024
  4622. enums["MAV_PROTOCOL_CAPABILITY"][1024] = EnumEntry("MAV_PROTOCOL_CAPABILITY_RESERVED3", """Reserved for future use.""")
  4623. MAV_PROTOCOL_CAPABILITY_FLIGHT_TERMINATION = 2048
  4624. enums["MAV_PROTOCOL_CAPABILITY"][2048] = EnumEntry("MAV_PROTOCOL_CAPABILITY_FLIGHT_TERMINATION", """Autopilot supports the MAV_CMD_DO_FLIGHTTERMINATION command (flight termination).""")
  4625. MAV_PROTOCOL_CAPABILITY_COMPASS_CALIBRATION = 4096
  4626. enums["MAV_PROTOCOL_CAPABILITY"][4096] = EnumEntry("MAV_PROTOCOL_CAPABILITY_COMPASS_CALIBRATION", """Autopilot supports onboard compass calibration.""")
  4627. MAV_PROTOCOL_CAPABILITY_MAVLINK2 = 8192
  4628. enums["MAV_PROTOCOL_CAPABILITY"][8192] = EnumEntry("MAV_PROTOCOL_CAPABILITY_MAVLINK2", """Autopilot supports MAVLink version 2.""")
  4629. MAV_PROTOCOL_CAPABILITY_MISSION_FENCE = 16384
  4630. enums["MAV_PROTOCOL_CAPABILITY"][16384] = EnumEntry("MAV_PROTOCOL_CAPABILITY_MISSION_FENCE", """Autopilot supports mission fence protocol.""")
  4631. MAV_PROTOCOL_CAPABILITY_MISSION_RALLY = 32768
  4632. enums["MAV_PROTOCOL_CAPABILITY"][32768] = EnumEntry("MAV_PROTOCOL_CAPABILITY_MISSION_RALLY", """Autopilot supports mission rally point protocol.""")
  4633. MAV_PROTOCOL_CAPABILITY_RESERVED2 = 65536
  4634. enums["MAV_PROTOCOL_CAPABILITY"][65536] = EnumEntry("MAV_PROTOCOL_CAPABILITY_RESERVED2", """Reserved for future use.""")
  4635. MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_C_CAST = 131072
  4636. enums["MAV_PROTOCOL_CAPABILITY"][131072] = EnumEntry(
  4637. "MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_C_CAST",
  4638. """Parameter protocol uses C-cast of parameter values to set the param_value (float) fields: https://mavlink.io/en/services/parameter.html#parameter-encoding.
  4639. Note that either this flag or MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_BYTEWISE should be set if the parameter protocol is supported.
  4640. """,
  4641. )
  4642. MAV_PROTOCOL_CAPABILITY_ENUM_END = 131073
  4643. enums["MAV_PROTOCOL_CAPABILITY"][131073] = EnumEntry("MAV_PROTOCOL_CAPABILITY_ENUM_END", """""")
  4644. # MAV_MISSION_TYPE
  4645. enums["MAV_MISSION_TYPE"] = Enum()
  4646. enums["MAV_MISSION_TYPE"].bitmask = False
  4647. MAV_MISSION_TYPE_MISSION = 0
  4648. enums["MAV_MISSION_TYPE"][0] = EnumEntry("MAV_MISSION_TYPE_MISSION", """Items are mission commands for main mission.""")
  4649. MAV_MISSION_TYPE_FENCE = 1
  4650. enums["MAV_MISSION_TYPE"][1] = EnumEntry("MAV_MISSION_TYPE_FENCE", """Specifies GeoFence area(s). Items are MAV_CMD_NAV_FENCE_ GeoFence items.""")
  4651. MAV_MISSION_TYPE_RALLY = 2
  4652. enums["MAV_MISSION_TYPE"][2] = EnumEntry("MAV_MISSION_TYPE_RALLY", """Specifies the rally points for the vehicle. Rally points are alternative RTL points. Items are MAV_CMD_NAV_RALLY_POINT rally point items.""")
  4653. MAV_MISSION_TYPE_ALL = 255
  4654. enums["MAV_MISSION_TYPE"][255] = EnumEntry("MAV_MISSION_TYPE_ALL", """Only used in MISSION_CLEAR_ALL to clear all mission types.""")
  4655. MAV_MISSION_TYPE_ENUM_END = 256
  4656. enums["MAV_MISSION_TYPE"][256] = EnumEntry("MAV_MISSION_TYPE_ENUM_END", """""")
  4657. # MAV_ESTIMATOR_TYPE
  4658. enums["MAV_ESTIMATOR_TYPE"] = Enum()
  4659. enums["MAV_ESTIMATOR_TYPE"].bitmask = False
  4660. MAV_ESTIMATOR_TYPE_UNKNOWN = 0
  4661. enums["MAV_ESTIMATOR_TYPE"][0] = EnumEntry("MAV_ESTIMATOR_TYPE_UNKNOWN", """Unknown type of the estimator.""")
  4662. MAV_ESTIMATOR_TYPE_NAIVE = 1
  4663. enums["MAV_ESTIMATOR_TYPE"][1] = EnumEntry("MAV_ESTIMATOR_TYPE_NAIVE", """This is a naive estimator without any real covariance feedback.""")
  4664. MAV_ESTIMATOR_TYPE_VISION = 2
  4665. enums["MAV_ESTIMATOR_TYPE"][2] = EnumEntry("MAV_ESTIMATOR_TYPE_VISION", """Computer vision based estimate. Might be up to scale.""")
  4666. MAV_ESTIMATOR_TYPE_VIO = 3
  4667. enums["MAV_ESTIMATOR_TYPE"][3] = EnumEntry("MAV_ESTIMATOR_TYPE_VIO", """Visual-inertial estimate.""")
  4668. MAV_ESTIMATOR_TYPE_GPS = 4
  4669. enums["MAV_ESTIMATOR_TYPE"][4] = EnumEntry("MAV_ESTIMATOR_TYPE_GPS", """Plain GPS estimate.""")
  4670. MAV_ESTIMATOR_TYPE_GPS_INS = 5
  4671. enums["MAV_ESTIMATOR_TYPE"][5] = EnumEntry("MAV_ESTIMATOR_TYPE_GPS_INS", """Estimator integrating GPS and inertial sensing.""")
  4672. MAV_ESTIMATOR_TYPE_MOCAP = 6
  4673. enums["MAV_ESTIMATOR_TYPE"][6] = EnumEntry("MAV_ESTIMATOR_TYPE_MOCAP", """Estimate from external motion capturing system.""")
  4674. MAV_ESTIMATOR_TYPE_LIDAR = 7
  4675. enums["MAV_ESTIMATOR_TYPE"][7] = EnumEntry("MAV_ESTIMATOR_TYPE_LIDAR", """Estimator based on lidar sensor input.""")
  4676. MAV_ESTIMATOR_TYPE_AUTOPILOT = 8
  4677. enums["MAV_ESTIMATOR_TYPE"][8] = EnumEntry("MAV_ESTIMATOR_TYPE_AUTOPILOT", """Estimator on autopilot.""")
  4678. MAV_ESTIMATOR_TYPE_ENUM_END = 9
  4679. enums["MAV_ESTIMATOR_TYPE"][9] = EnumEntry("MAV_ESTIMATOR_TYPE_ENUM_END", """""")
  4680. # MAV_BATTERY_TYPE
  4681. enums["MAV_BATTERY_TYPE"] = Enum()
  4682. enums["MAV_BATTERY_TYPE"].bitmask = False
  4683. MAV_BATTERY_TYPE_UNKNOWN = 0
  4684. enums["MAV_BATTERY_TYPE"][0] = EnumEntry("MAV_BATTERY_TYPE_UNKNOWN", """Not specified.""")
  4685. MAV_BATTERY_TYPE_LIPO = 1
  4686. enums["MAV_BATTERY_TYPE"][1] = EnumEntry("MAV_BATTERY_TYPE_LIPO", """Lithium polymer battery""")
  4687. MAV_BATTERY_TYPE_LIFE = 2
  4688. enums["MAV_BATTERY_TYPE"][2] = EnumEntry("MAV_BATTERY_TYPE_LIFE", """Lithium-iron-phosphate battery""")
  4689. MAV_BATTERY_TYPE_LION = 3
  4690. enums["MAV_BATTERY_TYPE"][3] = EnumEntry("MAV_BATTERY_TYPE_LION", """Lithium-ION battery""")
  4691. MAV_BATTERY_TYPE_NIMH = 4
  4692. enums["MAV_BATTERY_TYPE"][4] = EnumEntry("MAV_BATTERY_TYPE_NIMH", """Nickel metal hydride battery""")
  4693. MAV_BATTERY_TYPE_ENUM_END = 5
  4694. enums["MAV_BATTERY_TYPE"][5] = EnumEntry("MAV_BATTERY_TYPE_ENUM_END", """""")
  4695. # MAV_BATTERY_FUNCTION
  4696. enums["MAV_BATTERY_FUNCTION"] = Enum()
  4697. enums["MAV_BATTERY_FUNCTION"].bitmask = False
  4698. MAV_BATTERY_FUNCTION_UNKNOWN = 0
  4699. enums["MAV_BATTERY_FUNCTION"][0] = EnumEntry("MAV_BATTERY_FUNCTION_UNKNOWN", """Battery function is unknown""")
  4700. MAV_BATTERY_FUNCTION_ALL = 1
  4701. enums["MAV_BATTERY_FUNCTION"][1] = EnumEntry("MAV_BATTERY_FUNCTION_ALL", """Battery supports all flight systems""")
  4702. MAV_BATTERY_FUNCTION_PROPULSION = 2
  4703. enums["MAV_BATTERY_FUNCTION"][2] = EnumEntry("MAV_BATTERY_FUNCTION_PROPULSION", """Battery for the propulsion system""")
  4704. MAV_BATTERY_FUNCTION_AVIONICS = 3
  4705. enums["MAV_BATTERY_FUNCTION"][3] = EnumEntry("MAV_BATTERY_FUNCTION_AVIONICS", """Avionics battery""")
  4706. MAV_BATTERY_FUNCTION_PAYLOAD = 4
  4707. enums["MAV_BATTERY_FUNCTION"][4] = EnumEntry("MAV_BATTERY_FUNCTION_PAYLOAD", """Payload battery""")
  4708. MAV_BATTERY_FUNCTION_ENUM_END = 5
  4709. enums["MAV_BATTERY_FUNCTION"][5] = EnumEntry("MAV_BATTERY_FUNCTION_ENUM_END", """""")
  4710. # MAV_BATTERY_CHARGE_STATE
  4711. enums["MAV_BATTERY_CHARGE_STATE"] = Enum()
  4712. enums["MAV_BATTERY_CHARGE_STATE"].bitmask = False
  4713. MAV_BATTERY_CHARGE_STATE_UNDEFINED = 0
  4714. enums["MAV_BATTERY_CHARGE_STATE"][0] = EnumEntry("MAV_BATTERY_CHARGE_STATE_UNDEFINED", """Low battery state is not provided""")
  4715. MAV_BATTERY_CHARGE_STATE_OK = 1
  4716. enums["MAV_BATTERY_CHARGE_STATE"][1] = EnumEntry("MAV_BATTERY_CHARGE_STATE_OK", """Battery is not in low state. Normal operation.""")
  4717. MAV_BATTERY_CHARGE_STATE_LOW = 2
  4718. enums["MAV_BATTERY_CHARGE_STATE"][2] = EnumEntry("MAV_BATTERY_CHARGE_STATE_LOW", """Battery state is low, warn and monitor close.""")
  4719. MAV_BATTERY_CHARGE_STATE_CRITICAL = 3
  4720. enums["MAV_BATTERY_CHARGE_STATE"][3] = EnumEntry("MAV_BATTERY_CHARGE_STATE_CRITICAL", """Battery state is critical, return or abort immediately.""")
  4721. MAV_BATTERY_CHARGE_STATE_EMERGENCY = 4
  4722. enums["MAV_BATTERY_CHARGE_STATE"][4] = EnumEntry("MAV_BATTERY_CHARGE_STATE_EMERGENCY", """Battery state is too low for ordinary abort sequence. Perform fastest possible emergency stop to prevent damage.""")
  4723. MAV_BATTERY_CHARGE_STATE_FAILED = 5
  4724. enums["MAV_BATTERY_CHARGE_STATE"][5] = EnumEntry("MAV_BATTERY_CHARGE_STATE_FAILED", """Battery failed, damage unavoidable. Possible causes (faults) are listed in MAV_BATTERY_FAULT.""")
  4725. MAV_BATTERY_CHARGE_STATE_UNHEALTHY = 6
  4726. enums["MAV_BATTERY_CHARGE_STATE"][6] = EnumEntry("MAV_BATTERY_CHARGE_STATE_UNHEALTHY", """Battery is diagnosed to be defective or an error occurred, usage is discouraged / prohibited. Possible causes (faults) are listed in MAV_BATTERY_FAULT.""")
  4727. MAV_BATTERY_CHARGE_STATE_CHARGING = 7
  4728. enums["MAV_BATTERY_CHARGE_STATE"][7] = EnumEntry("MAV_BATTERY_CHARGE_STATE_CHARGING", """Battery is charging.""")
  4729. MAV_BATTERY_CHARGE_STATE_ENUM_END = 8
  4730. enums["MAV_BATTERY_CHARGE_STATE"][8] = EnumEntry("MAV_BATTERY_CHARGE_STATE_ENUM_END", """""")
  4731. # MAV_BATTERY_MODE
  4732. enums["MAV_BATTERY_MODE"] = Enum()
  4733. enums["MAV_BATTERY_MODE"].bitmask = False
  4734. MAV_BATTERY_MODE_UNKNOWN = 0
  4735. enums["MAV_BATTERY_MODE"][0] = EnumEntry("MAV_BATTERY_MODE_UNKNOWN", """Battery mode not supported/unknown battery mode/normal operation.""")
  4736. MAV_BATTERY_MODE_AUTO_DISCHARGING = 1
  4737. enums["MAV_BATTERY_MODE"][1] = EnumEntry("MAV_BATTERY_MODE_AUTO_DISCHARGING", """Battery is auto discharging (towards storage level).""")
  4738. MAV_BATTERY_MODE_HOT_SWAP = 2
  4739. enums["MAV_BATTERY_MODE"][2] = EnumEntry("MAV_BATTERY_MODE_HOT_SWAP", """Battery in hot-swap mode (current limited to prevent spikes that might damage sensitive electrical circuits).""")
  4740. MAV_BATTERY_MODE_ENUM_END = 3
  4741. enums["MAV_BATTERY_MODE"][3] = EnumEntry("MAV_BATTERY_MODE_ENUM_END", """""")
  4742. # MAV_BATTERY_FAULT
  4743. enums["MAV_BATTERY_FAULT"] = Enum()
  4744. enums["MAV_BATTERY_FAULT"].bitmask = True
  4745. MAV_BATTERY_FAULT_DEEP_DISCHARGE = 1
  4746. enums["MAV_BATTERY_FAULT"][1] = EnumEntry("MAV_BATTERY_FAULT_DEEP_DISCHARGE", """Battery has deep discharged.""")
  4747. MAV_BATTERY_FAULT_SPIKES = 2
  4748. enums["MAV_BATTERY_FAULT"][2] = EnumEntry("MAV_BATTERY_FAULT_SPIKES", """Voltage spikes.""")
  4749. MAV_BATTERY_FAULT_CELL_FAIL = 4
  4750. enums["MAV_BATTERY_FAULT"][4] = EnumEntry("MAV_BATTERY_FAULT_CELL_FAIL", """One or more cells have failed. Battery should also report MAV_BATTERY_CHARGE_STATE_FAILE (and should not be used).""")
  4751. MAV_BATTERY_FAULT_OVER_CURRENT = 8
  4752. enums["MAV_BATTERY_FAULT"][8] = EnumEntry("MAV_BATTERY_FAULT_OVER_CURRENT", """Over-current fault.""")
  4753. MAV_BATTERY_FAULT_OVER_TEMPERATURE = 16
  4754. enums["MAV_BATTERY_FAULT"][16] = EnumEntry("MAV_BATTERY_FAULT_OVER_TEMPERATURE", """Over-temperature fault.""")
  4755. MAV_BATTERY_FAULT_UNDER_TEMPERATURE = 32
  4756. enums["MAV_BATTERY_FAULT"][32] = EnumEntry("MAV_BATTERY_FAULT_UNDER_TEMPERATURE", """Under-temperature fault.""")
  4757. MAV_BATTERY_FAULT_INCOMPATIBLE_VOLTAGE = 64
  4758. enums["MAV_BATTERY_FAULT"][64] = EnumEntry("MAV_BATTERY_FAULT_INCOMPATIBLE_VOLTAGE", """Vehicle voltage is not compatible with this battery (batteries on same power rail should have similar voltage).""")
  4759. MAV_BATTERY_FAULT_INCOMPATIBLE_FIRMWARE = 128
  4760. enums["MAV_BATTERY_FAULT"][128] = EnumEntry("MAV_BATTERY_FAULT_INCOMPATIBLE_FIRMWARE", """Battery firmware is not compatible with current autopilot firmware.""")
  4761. BATTERY_FAULT_INCOMPATIBLE_CELLS_CONFIGURATION = 256
  4762. enums["MAV_BATTERY_FAULT"][256] = EnumEntry("BATTERY_FAULT_INCOMPATIBLE_CELLS_CONFIGURATION", """Battery is not compatible due to cell configuration (e.g. 5s1p when vehicle requires 6s).""")
  4763. MAV_BATTERY_FAULT_ENUM_END = 257
  4764. enums["MAV_BATTERY_FAULT"][257] = EnumEntry("MAV_BATTERY_FAULT_ENUM_END", """""")
  4765. # MAV_GENERATOR_STATUS_FLAG
  4766. enums["MAV_GENERATOR_STATUS_FLAG"] = Enum()
  4767. enums["MAV_GENERATOR_STATUS_FLAG"].bitmask = True
  4768. MAV_GENERATOR_STATUS_FLAG_OFF = 1
  4769. enums["MAV_GENERATOR_STATUS_FLAG"][1] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_OFF", """Generator is off.""")
  4770. MAV_GENERATOR_STATUS_FLAG_READY = 2
  4771. enums["MAV_GENERATOR_STATUS_FLAG"][2] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_READY", """Generator is ready to start generating power.""")
  4772. MAV_GENERATOR_STATUS_FLAG_GENERATING = 4
  4773. enums["MAV_GENERATOR_STATUS_FLAG"][4] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_GENERATING", """Generator is generating power.""")
  4774. MAV_GENERATOR_STATUS_FLAG_CHARGING = 8
  4775. enums["MAV_GENERATOR_STATUS_FLAG"][8] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_CHARGING", """Generator is charging the batteries (generating enough power to charge and provide the load).""")
  4776. MAV_GENERATOR_STATUS_FLAG_REDUCED_POWER = 16
  4777. enums["MAV_GENERATOR_STATUS_FLAG"][16] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_REDUCED_POWER", """Generator is operating at a reduced maximum power.""")
  4778. MAV_GENERATOR_STATUS_FLAG_MAXPOWER = 32
  4779. enums["MAV_GENERATOR_STATUS_FLAG"][32] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_MAXPOWER", """Generator is providing the maximum output.""")
  4780. MAV_GENERATOR_STATUS_FLAG_OVERTEMP_WARNING = 64
  4781. enums["MAV_GENERATOR_STATUS_FLAG"][64] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_OVERTEMP_WARNING", """Generator is near the maximum operating temperature, cooling is insufficient.""")
  4782. MAV_GENERATOR_STATUS_FLAG_OVERTEMP_FAULT = 128
  4783. enums["MAV_GENERATOR_STATUS_FLAG"][128] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_OVERTEMP_FAULT", """Generator hit the maximum operating temperature and shutdown.""")
  4784. MAV_GENERATOR_STATUS_FLAG_ELECTRONICS_OVERTEMP_WARNING = 256
  4785. enums["MAV_GENERATOR_STATUS_FLAG"][256] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_ELECTRONICS_OVERTEMP_WARNING", """Power electronics are near the maximum operating temperature, cooling is insufficient.""")
  4786. MAV_GENERATOR_STATUS_FLAG_ELECTRONICS_OVERTEMP_FAULT = 512
  4787. enums["MAV_GENERATOR_STATUS_FLAG"][512] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_ELECTRONICS_OVERTEMP_FAULT", """Power electronics hit the maximum operating temperature and shutdown.""")
  4788. MAV_GENERATOR_STATUS_FLAG_ELECTRONICS_FAULT = 1024
  4789. enums["MAV_GENERATOR_STATUS_FLAG"][1024] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_ELECTRONICS_FAULT", """Power electronics experienced a fault and shutdown.""")
  4790. MAV_GENERATOR_STATUS_FLAG_POWERSOURCE_FAULT = 2048
  4791. enums["MAV_GENERATOR_STATUS_FLAG"][2048] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_POWERSOURCE_FAULT", """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.""")
  4792. MAV_GENERATOR_STATUS_FLAG_COMMUNICATION_WARNING = 4096
  4793. enums["MAV_GENERATOR_STATUS_FLAG"][4096] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_COMMUNICATION_WARNING", """Generator controller having communication problems.""")
  4794. MAV_GENERATOR_STATUS_FLAG_COOLING_WARNING = 8192
  4795. enums["MAV_GENERATOR_STATUS_FLAG"][8192] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_COOLING_WARNING", """Power electronic or generator cooling system error.""")
  4796. MAV_GENERATOR_STATUS_FLAG_POWER_RAIL_FAULT = 16384
  4797. enums["MAV_GENERATOR_STATUS_FLAG"][16384] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_POWER_RAIL_FAULT", """Generator controller power rail experienced a fault.""")
  4798. MAV_GENERATOR_STATUS_FLAG_OVERCURRENT_FAULT = 32768
  4799. enums["MAV_GENERATOR_STATUS_FLAG"][32768] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_OVERCURRENT_FAULT", """Generator controller exceeded the overcurrent threshold and shutdown to prevent damage.""")
  4800. MAV_GENERATOR_STATUS_FLAG_BATTERY_OVERCHARGE_CURRENT_FAULT = 65536
  4801. enums["MAV_GENERATOR_STATUS_FLAG"][65536] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_BATTERY_OVERCHARGE_CURRENT_FAULT", """Generator controller detected a high current going into the batteries and shutdown to prevent battery damage.""")
  4802. MAV_GENERATOR_STATUS_FLAG_OVERVOLTAGE_FAULT = 131072
  4803. enums["MAV_GENERATOR_STATUS_FLAG"][131072] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_OVERVOLTAGE_FAULT", """Generator controller exceeded it's overvoltage threshold and shutdown to prevent it exceeding the voltage rating.""")
  4804. MAV_GENERATOR_STATUS_FLAG_BATTERY_UNDERVOLT_FAULT = 262144
  4805. enums["MAV_GENERATOR_STATUS_FLAG"][262144] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_BATTERY_UNDERVOLT_FAULT", """Batteries are under voltage (generator will not start).""")
  4806. MAV_GENERATOR_STATUS_FLAG_START_INHIBITED = 524288
  4807. enums["MAV_GENERATOR_STATUS_FLAG"][524288] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_START_INHIBITED", """Generator start is inhibited by e.g. a safety switch.""")
  4808. MAV_GENERATOR_STATUS_FLAG_MAINTENANCE_REQUIRED = 1048576
  4809. enums["MAV_GENERATOR_STATUS_FLAG"][1048576] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_MAINTENANCE_REQUIRED", """Generator requires maintenance.""")
  4810. MAV_GENERATOR_STATUS_FLAG_WARMING_UP = 2097152
  4811. enums["MAV_GENERATOR_STATUS_FLAG"][2097152] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_WARMING_UP", """Generator is not ready to generate yet.""")
  4812. MAV_GENERATOR_STATUS_FLAG_IDLE = 4194304
  4813. enums["MAV_GENERATOR_STATUS_FLAG"][4194304] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_IDLE", """Generator is idle.""")
  4814. MAV_GENERATOR_STATUS_FLAG_ENUM_END = 4194305
  4815. enums["MAV_GENERATOR_STATUS_FLAG"][4194305] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_ENUM_END", """""")
  4816. # MAV_VTOL_STATE
  4817. enums["MAV_VTOL_STATE"] = Enum()
  4818. enums["MAV_VTOL_STATE"].bitmask = False
  4819. MAV_VTOL_STATE_UNDEFINED = 0
  4820. enums["MAV_VTOL_STATE"][0] = EnumEntry("MAV_VTOL_STATE_UNDEFINED", """MAV is not configured as VTOL""")
  4821. MAV_VTOL_STATE_TRANSITION_TO_FW = 1
  4822. enums["MAV_VTOL_STATE"][1] = EnumEntry("MAV_VTOL_STATE_TRANSITION_TO_FW", """VTOL is in transition from multicopter to fixed-wing""")
  4823. MAV_VTOL_STATE_TRANSITION_TO_MC = 2
  4824. enums["MAV_VTOL_STATE"][2] = EnumEntry("MAV_VTOL_STATE_TRANSITION_TO_MC", """VTOL is in transition from fixed-wing to multicopter""")
  4825. MAV_VTOL_STATE_MC = 3
  4826. enums["MAV_VTOL_STATE"][3] = EnumEntry("MAV_VTOL_STATE_MC", """VTOL is in multicopter state""")
  4827. MAV_VTOL_STATE_FW = 4
  4828. enums["MAV_VTOL_STATE"][4] = EnumEntry("MAV_VTOL_STATE_FW", """VTOL is in fixed-wing state""")
  4829. MAV_VTOL_STATE_ENUM_END = 5
  4830. enums["MAV_VTOL_STATE"][5] = EnumEntry("MAV_VTOL_STATE_ENUM_END", """""")
  4831. # MAV_LANDED_STATE
  4832. enums["MAV_LANDED_STATE"] = Enum()
  4833. enums["MAV_LANDED_STATE"].bitmask = False
  4834. MAV_LANDED_STATE_UNDEFINED = 0
  4835. enums["MAV_LANDED_STATE"][0] = EnumEntry("MAV_LANDED_STATE_UNDEFINED", """MAV landed state is unknown""")
  4836. MAV_LANDED_STATE_ON_GROUND = 1
  4837. enums["MAV_LANDED_STATE"][1] = EnumEntry("MAV_LANDED_STATE_ON_GROUND", """MAV is landed (on ground)""")
  4838. MAV_LANDED_STATE_IN_AIR = 2
  4839. enums["MAV_LANDED_STATE"][2] = EnumEntry("MAV_LANDED_STATE_IN_AIR", """MAV is in air""")
  4840. MAV_LANDED_STATE_TAKEOFF = 3
  4841. enums["MAV_LANDED_STATE"][3] = EnumEntry("MAV_LANDED_STATE_TAKEOFF", """MAV currently taking off""")
  4842. MAV_LANDED_STATE_LANDING = 4
  4843. enums["MAV_LANDED_STATE"][4] = EnumEntry("MAV_LANDED_STATE_LANDING", """MAV currently landing""")
  4844. MAV_LANDED_STATE_ENUM_END = 5
  4845. enums["MAV_LANDED_STATE"][5] = EnumEntry("MAV_LANDED_STATE_ENUM_END", """""")
  4846. # ADSB_ALTITUDE_TYPE
  4847. enums["ADSB_ALTITUDE_TYPE"] = Enum()
  4848. enums["ADSB_ALTITUDE_TYPE"].bitmask = False
  4849. ADSB_ALTITUDE_TYPE_PRESSURE_QNH = 0
  4850. enums["ADSB_ALTITUDE_TYPE"][0] = EnumEntry("ADSB_ALTITUDE_TYPE_PRESSURE_QNH", """Altitude reported from a Baro source using QNH reference""")
  4851. ADSB_ALTITUDE_TYPE_GEOMETRIC = 1
  4852. enums["ADSB_ALTITUDE_TYPE"][1] = EnumEntry("ADSB_ALTITUDE_TYPE_GEOMETRIC", """Altitude reported from a GNSS source""")
  4853. ADSB_ALTITUDE_TYPE_ENUM_END = 2
  4854. enums["ADSB_ALTITUDE_TYPE"][2] = EnumEntry("ADSB_ALTITUDE_TYPE_ENUM_END", """""")
  4855. # ADSB_EMITTER_TYPE
  4856. enums["ADSB_EMITTER_TYPE"] = Enum()
  4857. enums["ADSB_EMITTER_TYPE"].bitmask = False
  4858. ADSB_EMITTER_TYPE_NO_INFO = 0
  4859. enums["ADSB_EMITTER_TYPE"][0] = EnumEntry("ADSB_EMITTER_TYPE_NO_INFO", """""")
  4860. ADSB_EMITTER_TYPE_LIGHT = 1
  4861. enums["ADSB_EMITTER_TYPE"][1] = EnumEntry("ADSB_EMITTER_TYPE_LIGHT", """""")
  4862. ADSB_EMITTER_TYPE_SMALL = 2
  4863. enums["ADSB_EMITTER_TYPE"][2] = EnumEntry("ADSB_EMITTER_TYPE_SMALL", """""")
  4864. ADSB_EMITTER_TYPE_LARGE = 3
  4865. enums["ADSB_EMITTER_TYPE"][3] = EnumEntry("ADSB_EMITTER_TYPE_LARGE", """""")
  4866. ADSB_EMITTER_TYPE_HIGH_VORTEX_LARGE = 4
  4867. enums["ADSB_EMITTER_TYPE"][4] = EnumEntry("ADSB_EMITTER_TYPE_HIGH_VORTEX_LARGE", """""")
  4868. ADSB_EMITTER_TYPE_HEAVY = 5
  4869. enums["ADSB_EMITTER_TYPE"][5] = EnumEntry("ADSB_EMITTER_TYPE_HEAVY", """""")
  4870. ADSB_EMITTER_TYPE_HIGHLY_MANUV = 6
  4871. enums["ADSB_EMITTER_TYPE"][6] = EnumEntry("ADSB_EMITTER_TYPE_HIGHLY_MANUV", """""")
  4872. ADSB_EMITTER_TYPE_ROTOCRAFT = 7
  4873. enums["ADSB_EMITTER_TYPE"][7] = EnumEntry("ADSB_EMITTER_TYPE_ROTOCRAFT", """""")
  4874. ADSB_EMITTER_TYPE_UNASSIGNED = 8
  4875. enums["ADSB_EMITTER_TYPE"][8] = EnumEntry("ADSB_EMITTER_TYPE_UNASSIGNED", """""")
  4876. ADSB_EMITTER_TYPE_GLIDER = 9
  4877. enums["ADSB_EMITTER_TYPE"][9] = EnumEntry("ADSB_EMITTER_TYPE_GLIDER", """""")
  4878. ADSB_EMITTER_TYPE_LIGHTER_AIR = 10
  4879. enums["ADSB_EMITTER_TYPE"][10] = EnumEntry("ADSB_EMITTER_TYPE_LIGHTER_AIR", """""")
  4880. ADSB_EMITTER_TYPE_PARACHUTE = 11
  4881. enums["ADSB_EMITTER_TYPE"][11] = EnumEntry("ADSB_EMITTER_TYPE_PARACHUTE", """""")
  4882. ADSB_EMITTER_TYPE_ULTRA_LIGHT = 12
  4883. enums["ADSB_EMITTER_TYPE"][12] = EnumEntry("ADSB_EMITTER_TYPE_ULTRA_LIGHT", """""")
  4884. ADSB_EMITTER_TYPE_UNASSIGNED2 = 13
  4885. enums["ADSB_EMITTER_TYPE"][13] = EnumEntry("ADSB_EMITTER_TYPE_UNASSIGNED2", """""")
  4886. ADSB_EMITTER_TYPE_UAV = 14
  4887. enums["ADSB_EMITTER_TYPE"][14] = EnumEntry("ADSB_EMITTER_TYPE_UAV", """""")
  4888. ADSB_EMITTER_TYPE_SPACE = 15
  4889. enums["ADSB_EMITTER_TYPE"][15] = EnumEntry("ADSB_EMITTER_TYPE_SPACE", """""")
  4890. ADSB_EMITTER_TYPE_UNASSGINED3 = 16
  4891. enums["ADSB_EMITTER_TYPE"][16] = EnumEntry("ADSB_EMITTER_TYPE_UNASSGINED3", """""")
  4892. ADSB_EMITTER_TYPE_EMERGENCY_SURFACE = 17
  4893. enums["ADSB_EMITTER_TYPE"][17] = EnumEntry("ADSB_EMITTER_TYPE_EMERGENCY_SURFACE", """""")
  4894. ADSB_EMITTER_TYPE_SERVICE_SURFACE = 18
  4895. enums["ADSB_EMITTER_TYPE"][18] = EnumEntry("ADSB_EMITTER_TYPE_SERVICE_SURFACE", """""")
  4896. ADSB_EMITTER_TYPE_POINT_OBSTACLE = 19
  4897. enums["ADSB_EMITTER_TYPE"][19] = EnumEntry("ADSB_EMITTER_TYPE_POINT_OBSTACLE", """""")
  4898. ADSB_EMITTER_TYPE_ENUM_END = 20
  4899. enums["ADSB_EMITTER_TYPE"][20] = EnumEntry("ADSB_EMITTER_TYPE_ENUM_END", """""")
  4900. # ADSB_FLAGS
  4901. enums["ADSB_FLAGS"] = Enum()
  4902. enums["ADSB_FLAGS"].bitmask = True
  4903. ADSB_FLAGS_VALID_COORDS = 1
  4904. enums["ADSB_FLAGS"][1] = EnumEntry("ADSB_FLAGS_VALID_COORDS", """""")
  4905. ADSB_FLAGS_VALID_ALTITUDE = 2
  4906. enums["ADSB_FLAGS"][2] = EnumEntry("ADSB_FLAGS_VALID_ALTITUDE", """""")
  4907. ADSB_FLAGS_VALID_HEADING = 4
  4908. enums["ADSB_FLAGS"][4] = EnumEntry("ADSB_FLAGS_VALID_HEADING", """""")
  4909. ADSB_FLAGS_VALID_VELOCITY = 8
  4910. enums["ADSB_FLAGS"][8] = EnumEntry("ADSB_FLAGS_VALID_VELOCITY", """""")
  4911. ADSB_FLAGS_VALID_CALLSIGN = 16
  4912. enums["ADSB_FLAGS"][16] = EnumEntry("ADSB_FLAGS_VALID_CALLSIGN", """""")
  4913. ADSB_FLAGS_VALID_SQUAWK = 32
  4914. enums["ADSB_FLAGS"][32] = EnumEntry("ADSB_FLAGS_VALID_SQUAWK", """""")
  4915. ADSB_FLAGS_SIMULATED = 64
  4916. enums["ADSB_FLAGS"][64] = EnumEntry("ADSB_FLAGS_SIMULATED", """""")
  4917. ADSB_FLAGS_VERTICAL_VELOCITY_VALID = 128
  4918. enums["ADSB_FLAGS"][128] = EnumEntry("ADSB_FLAGS_VERTICAL_VELOCITY_VALID", """""")
  4919. ADSB_FLAGS_BARO_VALID = 256
  4920. enums["ADSB_FLAGS"][256] = EnumEntry("ADSB_FLAGS_BARO_VALID", """""")
  4921. ADSB_FLAGS_SOURCE_UAT = 32768
  4922. enums["ADSB_FLAGS"][32768] = EnumEntry("ADSB_FLAGS_SOURCE_UAT", """""")
  4923. ADSB_FLAGS_ENUM_END = 32769
  4924. enums["ADSB_FLAGS"][32769] = EnumEntry("ADSB_FLAGS_ENUM_END", """""")
  4925. # MAV_DO_REPOSITION_FLAGS
  4926. enums["MAV_DO_REPOSITION_FLAGS"] = Enum()
  4927. enums["MAV_DO_REPOSITION_FLAGS"].bitmask = True
  4928. MAV_DO_REPOSITION_FLAGS_CHANGE_MODE = 1
  4929. enums["MAV_DO_REPOSITION_FLAGS"][1] = EnumEntry("MAV_DO_REPOSITION_FLAGS_CHANGE_MODE", """The aircraft should immediately transition into guided. This should not be set for follow me applications""")
  4930. MAV_DO_REPOSITION_FLAGS_ENUM_END = 2
  4931. enums["MAV_DO_REPOSITION_FLAGS"][2] = EnumEntry("MAV_DO_REPOSITION_FLAGS_ENUM_END", """""")
  4932. # SPEED_TYPE
  4933. enums["SPEED_TYPE"] = Enum()
  4934. enums["SPEED_TYPE"].bitmask = False
  4935. SPEED_TYPE_AIRSPEED = 0
  4936. enums["SPEED_TYPE"][0] = EnumEntry("SPEED_TYPE_AIRSPEED", """Airspeed""")
  4937. SPEED_TYPE_GROUNDSPEED = 1
  4938. enums["SPEED_TYPE"][1] = EnumEntry("SPEED_TYPE_GROUNDSPEED", """Groundspeed""")
  4939. SPEED_TYPE_CLIMB_SPEED = 2
  4940. enums["SPEED_TYPE"][2] = EnumEntry("SPEED_TYPE_CLIMB_SPEED", """Climb speed""")
  4941. SPEED_TYPE_DESCENT_SPEED = 3
  4942. enums["SPEED_TYPE"][3] = EnumEntry("SPEED_TYPE_DESCENT_SPEED", """Descent speed""")
  4943. SPEED_TYPE_ENUM_END = 4
  4944. enums["SPEED_TYPE"][4] = EnumEntry("SPEED_TYPE_ENUM_END", """""")
  4945. # ESTIMATOR_STATUS_FLAGS
  4946. enums["ESTIMATOR_STATUS_FLAGS"] = Enum()
  4947. enums["ESTIMATOR_STATUS_FLAGS"].bitmask = True
  4948. ESTIMATOR_ATTITUDE = 1
  4949. enums["ESTIMATOR_STATUS_FLAGS"][1] = EnumEntry("ESTIMATOR_ATTITUDE", """True if the attitude estimate is good""")
  4950. ESTIMATOR_VELOCITY_HORIZ = 2
  4951. enums["ESTIMATOR_STATUS_FLAGS"][2] = EnumEntry("ESTIMATOR_VELOCITY_HORIZ", """True if the horizontal velocity estimate is good""")
  4952. ESTIMATOR_VELOCITY_VERT = 4
  4953. enums["ESTIMATOR_STATUS_FLAGS"][4] = EnumEntry("ESTIMATOR_VELOCITY_VERT", """True if the vertical velocity estimate is good""")
  4954. ESTIMATOR_POS_HORIZ_REL = 8
  4955. enums["ESTIMATOR_STATUS_FLAGS"][8] = EnumEntry("ESTIMATOR_POS_HORIZ_REL", """True if the horizontal position (relative) estimate is good""")
  4956. ESTIMATOR_POS_HORIZ_ABS = 16
  4957. enums["ESTIMATOR_STATUS_FLAGS"][16] = EnumEntry("ESTIMATOR_POS_HORIZ_ABS", """True if the horizontal position (absolute) estimate is good""")
  4958. ESTIMATOR_POS_VERT_ABS = 32
  4959. enums["ESTIMATOR_STATUS_FLAGS"][32] = EnumEntry("ESTIMATOR_POS_VERT_ABS", """True if the vertical position (absolute) estimate is good""")
  4960. ESTIMATOR_POS_VERT_AGL = 64
  4961. enums["ESTIMATOR_STATUS_FLAGS"][64] = EnumEntry("ESTIMATOR_POS_VERT_AGL", """True if the vertical position (above ground) estimate is good""")
  4962. ESTIMATOR_CONST_POS_MODE = 128
  4963. enums["ESTIMATOR_STATUS_FLAGS"][128] = EnumEntry("ESTIMATOR_CONST_POS_MODE", """True if the EKF is in a constant position mode and is not using external measurements (eg GPS or optical flow)""")
  4964. ESTIMATOR_PRED_POS_HORIZ_REL = 256
  4965. enums["ESTIMATOR_STATUS_FLAGS"][256] = EnumEntry("ESTIMATOR_PRED_POS_HORIZ_REL", """True if the EKF has sufficient data to enter a mode that will provide a (relative) position estimate""")
  4966. ESTIMATOR_PRED_POS_HORIZ_ABS = 512
  4967. enums["ESTIMATOR_STATUS_FLAGS"][512] = EnumEntry("ESTIMATOR_PRED_POS_HORIZ_ABS", """True if the EKF has sufficient data to enter a mode that will provide a (absolute) position estimate""")
  4968. ESTIMATOR_GPS_GLITCH = 1024
  4969. enums["ESTIMATOR_STATUS_FLAGS"][1024] = EnumEntry("ESTIMATOR_GPS_GLITCH", """True if the EKF has detected a GPS glitch""")
  4970. ESTIMATOR_ACCEL_ERROR = 2048
  4971. enums["ESTIMATOR_STATUS_FLAGS"][2048] = EnumEntry("ESTIMATOR_ACCEL_ERROR", """True if the EKF has detected bad accelerometer data""")
  4972. ESTIMATOR_STATUS_FLAGS_ENUM_END = 2049
  4973. enums["ESTIMATOR_STATUS_FLAGS"][2049] = EnumEntry("ESTIMATOR_STATUS_FLAGS_ENUM_END", """""")
  4974. # MOTOR_TEST_ORDER
  4975. enums["MOTOR_TEST_ORDER"] = Enum()
  4976. enums["MOTOR_TEST_ORDER"].bitmask = False
  4977. MOTOR_TEST_ORDER_DEFAULT = 0
  4978. enums["MOTOR_TEST_ORDER"][0] = EnumEntry("MOTOR_TEST_ORDER_DEFAULT", """Default autopilot motor test method.""")
  4979. MOTOR_TEST_ORDER_SEQUENCE = 1
  4980. enums["MOTOR_TEST_ORDER"][1] = EnumEntry("MOTOR_TEST_ORDER_SEQUENCE", """Motor numbers are specified as their index in a predefined vehicle-specific sequence.""")
  4981. MOTOR_TEST_ORDER_BOARD = 2
  4982. enums["MOTOR_TEST_ORDER"][2] = EnumEntry("MOTOR_TEST_ORDER_BOARD", """Motor numbers are specified as the output as labeled on the board.""")
  4983. MOTOR_TEST_ORDER_ENUM_END = 3
  4984. enums["MOTOR_TEST_ORDER"][3] = EnumEntry("MOTOR_TEST_ORDER_ENUM_END", """""")
  4985. # MOTOR_TEST_THROTTLE_TYPE
  4986. enums["MOTOR_TEST_THROTTLE_TYPE"] = Enum()
  4987. enums["MOTOR_TEST_THROTTLE_TYPE"].bitmask = False
  4988. MOTOR_TEST_THROTTLE_PERCENT = 0
  4989. enums["MOTOR_TEST_THROTTLE_TYPE"][0] = EnumEntry("MOTOR_TEST_THROTTLE_PERCENT", """Throttle as a percentage (0 ~ 100)""")
  4990. MOTOR_TEST_THROTTLE_PWM = 1
  4991. enums["MOTOR_TEST_THROTTLE_TYPE"][1] = EnumEntry("MOTOR_TEST_THROTTLE_PWM", """Throttle as an absolute PWM value (normally in range of 1000~2000).""")
  4992. MOTOR_TEST_THROTTLE_PILOT = 2
  4993. enums["MOTOR_TEST_THROTTLE_TYPE"][2] = EnumEntry("MOTOR_TEST_THROTTLE_PILOT", """Throttle pass-through from pilot's transmitter.""")
  4994. MOTOR_TEST_COMPASS_CAL = 3
  4995. enums["MOTOR_TEST_THROTTLE_TYPE"][3] = EnumEntry("MOTOR_TEST_COMPASS_CAL", """Per-motor compass calibration test.""")
  4996. MOTOR_TEST_THROTTLE_TYPE_ENUM_END = 4
  4997. enums["MOTOR_TEST_THROTTLE_TYPE"][4] = EnumEntry("MOTOR_TEST_THROTTLE_TYPE_ENUM_END", """""")
  4998. # GPS_INPUT_IGNORE_FLAGS
  4999. enums["GPS_INPUT_IGNORE_FLAGS"] = Enum()
  5000. enums["GPS_INPUT_IGNORE_FLAGS"].bitmask = True
  5001. GPS_INPUT_IGNORE_FLAG_ALT = 1
  5002. enums["GPS_INPUT_IGNORE_FLAGS"][1] = EnumEntry("GPS_INPUT_IGNORE_FLAG_ALT", """ignore altitude field""")
  5003. GPS_INPUT_IGNORE_FLAG_HDOP = 2
  5004. enums["GPS_INPUT_IGNORE_FLAGS"][2] = EnumEntry("GPS_INPUT_IGNORE_FLAG_HDOP", """ignore hdop field""")
  5005. GPS_INPUT_IGNORE_FLAG_VDOP = 4
  5006. enums["GPS_INPUT_IGNORE_FLAGS"][4] = EnumEntry("GPS_INPUT_IGNORE_FLAG_VDOP", """ignore vdop field""")
  5007. GPS_INPUT_IGNORE_FLAG_VEL_HORIZ = 8
  5008. enums["GPS_INPUT_IGNORE_FLAGS"][8] = EnumEntry("GPS_INPUT_IGNORE_FLAG_VEL_HORIZ", """ignore horizontal velocity field (vn and ve)""")
  5009. GPS_INPUT_IGNORE_FLAG_VEL_VERT = 16
  5010. enums["GPS_INPUT_IGNORE_FLAGS"][16] = EnumEntry("GPS_INPUT_IGNORE_FLAG_VEL_VERT", """ignore vertical velocity field (vd)""")
  5011. GPS_INPUT_IGNORE_FLAG_SPEED_ACCURACY = 32
  5012. enums["GPS_INPUT_IGNORE_FLAGS"][32] = EnumEntry("GPS_INPUT_IGNORE_FLAG_SPEED_ACCURACY", """ignore speed accuracy field""")
  5013. GPS_INPUT_IGNORE_FLAG_HORIZONTAL_ACCURACY = 64
  5014. enums["GPS_INPUT_IGNORE_FLAGS"][64] = EnumEntry("GPS_INPUT_IGNORE_FLAG_HORIZONTAL_ACCURACY", """ignore horizontal accuracy field""")
  5015. GPS_INPUT_IGNORE_FLAG_VERTICAL_ACCURACY = 128
  5016. enums["GPS_INPUT_IGNORE_FLAGS"][128] = EnumEntry("GPS_INPUT_IGNORE_FLAG_VERTICAL_ACCURACY", """ignore vertical accuracy field""")
  5017. GPS_INPUT_IGNORE_FLAGS_ENUM_END = 129
  5018. enums["GPS_INPUT_IGNORE_FLAGS"][129] = EnumEntry("GPS_INPUT_IGNORE_FLAGS_ENUM_END", """""")
  5019. # MAV_COLLISION_ACTION
  5020. enums["MAV_COLLISION_ACTION"] = Enum()
  5021. enums["MAV_COLLISION_ACTION"].bitmask = False
  5022. MAV_COLLISION_ACTION_NONE = 0
  5023. enums["MAV_COLLISION_ACTION"][0] = EnumEntry("MAV_COLLISION_ACTION_NONE", """Ignore any potential collisions""")
  5024. MAV_COLLISION_ACTION_REPORT = 1
  5025. enums["MAV_COLLISION_ACTION"][1] = EnumEntry("MAV_COLLISION_ACTION_REPORT", """Report potential collision""")
  5026. MAV_COLLISION_ACTION_ASCEND_OR_DESCEND = 2
  5027. enums["MAV_COLLISION_ACTION"][2] = EnumEntry("MAV_COLLISION_ACTION_ASCEND_OR_DESCEND", """Ascend or Descend to avoid threat""")
  5028. MAV_COLLISION_ACTION_MOVE_HORIZONTALLY = 3
  5029. enums["MAV_COLLISION_ACTION"][3] = EnumEntry("MAV_COLLISION_ACTION_MOVE_HORIZONTALLY", """Move horizontally to avoid threat""")
  5030. MAV_COLLISION_ACTION_MOVE_PERPENDICULAR = 4
  5031. enums["MAV_COLLISION_ACTION"][4] = EnumEntry("MAV_COLLISION_ACTION_MOVE_PERPENDICULAR", """Aircraft to move perpendicular to the collision's velocity vector""")
  5032. MAV_COLLISION_ACTION_RTL = 5
  5033. enums["MAV_COLLISION_ACTION"][5] = EnumEntry("MAV_COLLISION_ACTION_RTL", """Aircraft to fly directly back to its launch point""")
  5034. MAV_COLLISION_ACTION_HOVER = 6
  5035. enums["MAV_COLLISION_ACTION"][6] = EnumEntry("MAV_COLLISION_ACTION_HOVER", """Aircraft to stop in place""")
  5036. MAV_COLLISION_ACTION_ENUM_END = 7
  5037. enums["MAV_COLLISION_ACTION"][7] = EnumEntry("MAV_COLLISION_ACTION_ENUM_END", """""")
  5038. # MAV_COLLISION_THREAT_LEVEL
  5039. enums["MAV_COLLISION_THREAT_LEVEL"] = Enum()
  5040. enums["MAV_COLLISION_THREAT_LEVEL"].bitmask = False
  5041. MAV_COLLISION_THREAT_LEVEL_NONE = 0
  5042. enums["MAV_COLLISION_THREAT_LEVEL"][0] = EnumEntry("MAV_COLLISION_THREAT_LEVEL_NONE", """Not a threat""")
  5043. MAV_COLLISION_THREAT_LEVEL_LOW = 1
  5044. enums["MAV_COLLISION_THREAT_LEVEL"][1] = EnumEntry("MAV_COLLISION_THREAT_LEVEL_LOW", """Craft is mildly concerned about this threat""")
  5045. MAV_COLLISION_THREAT_LEVEL_HIGH = 2
  5046. enums["MAV_COLLISION_THREAT_LEVEL"][2] = EnumEntry("MAV_COLLISION_THREAT_LEVEL_HIGH", """Craft is panicking, and may take actions to avoid threat""")
  5047. MAV_COLLISION_THREAT_LEVEL_ENUM_END = 3
  5048. enums["MAV_COLLISION_THREAT_LEVEL"][3] = EnumEntry("MAV_COLLISION_THREAT_LEVEL_ENUM_END", """""")
  5049. # MAV_COLLISION_SRC
  5050. enums["MAV_COLLISION_SRC"] = Enum()
  5051. enums["MAV_COLLISION_SRC"].bitmask = False
  5052. MAV_COLLISION_SRC_ADSB = 0
  5053. enums["MAV_COLLISION_SRC"][0] = EnumEntry("MAV_COLLISION_SRC_ADSB", """ID field references ADSB_VEHICLE packets""")
  5054. MAV_COLLISION_SRC_MAVLINK_GPS_GLOBAL_INT = 1
  5055. enums["MAV_COLLISION_SRC"][1] = EnumEntry("MAV_COLLISION_SRC_MAVLINK_GPS_GLOBAL_INT", """ID field references MAVLink SRC ID""")
  5056. MAV_COLLISION_SRC_ENUM_END = 2
  5057. enums["MAV_COLLISION_SRC"][2] = EnumEntry("MAV_COLLISION_SRC_ENUM_END", """""")
  5058. # GPS_FIX_TYPE
  5059. enums["GPS_FIX_TYPE"] = Enum()
  5060. enums["GPS_FIX_TYPE"].bitmask = False
  5061. GPS_FIX_TYPE_NO_GPS = 0
  5062. enums["GPS_FIX_TYPE"][0] = EnumEntry("GPS_FIX_TYPE_NO_GPS", """No GPS connected""")
  5063. GPS_FIX_TYPE_NO_FIX = 1
  5064. enums["GPS_FIX_TYPE"][1] = EnumEntry("GPS_FIX_TYPE_NO_FIX", """No position information, GPS is connected""")
  5065. GPS_FIX_TYPE_2D_FIX = 2
  5066. enums["GPS_FIX_TYPE"][2] = EnumEntry("GPS_FIX_TYPE_2D_FIX", """2D position""")
  5067. GPS_FIX_TYPE_3D_FIX = 3
  5068. enums["GPS_FIX_TYPE"][3] = EnumEntry("GPS_FIX_TYPE_3D_FIX", """3D position""")
  5069. GPS_FIX_TYPE_DGPS = 4
  5070. enums["GPS_FIX_TYPE"][4] = EnumEntry("GPS_FIX_TYPE_DGPS", """DGPS/SBAS aided 3D position""")
  5071. GPS_FIX_TYPE_RTK_FLOAT = 5
  5072. enums["GPS_FIX_TYPE"][5] = EnumEntry("GPS_FIX_TYPE_RTK_FLOAT", """RTK float, 3D position""")
  5073. GPS_FIX_TYPE_RTK_FIXED = 6
  5074. enums["GPS_FIX_TYPE"][6] = EnumEntry("GPS_FIX_TYPE_RTK_FIXED", """RTK Fixed, 3D position""")
  5075. GPS_FIX_TYPE_STATIC = 7
  5076. enums["GPS_FIX_TYPE"][7] = EnumEntry("GPS_FIX_TYPE_STATIC", """Static fixed, typically used for base stations""")
  5077. GPS_FIX_TYPE_PPP = 8
  5078. enums["GPS_FIX_TYPE"][8] = EnumEntry("GPS_FIX_TYPE_PPP", """PPP, 3D position.""")
  5079. GPS_FIX_TYPE_ENUM_END = 9
  5080. enums["GPS_FIX_TYPE"][9] = EnumEntry("GPS_FIX_TYPE_ENUM_END", """""")
  5081. # RTK_BASELINE_COORDINATE_SYSTEM
  5082. enums["RTK_BASELINE_COORDINATE_SYSTEM"] = Enum()
  5083. enums["RTK_BASELINE_COORDINATE_SYSTEM"].bitmask = False
  5084. RTK_BASELINE_COORDINATE_SYSTEM_ECEF = 0
  5085. enums["RTK_BASELINE_COORDINATE_SYSTEM"][0] = EnumEntry("RTK_BASELINE_COORDINATE_SYSTEM_ECEF", """Earth-centered, Earth-fixed""")
  5086. RTK_BASELINE_COORDINATE_SYSTEM_NED = 1
  5087. enums["RTK_BASELINE_COORDINATE_SYSTEM"][1] = EnumEntry("RTK_BASELINE_COORDINATE_SYSTEM_NED", """RTK basestation centered, north, east, down""")
  5088. RTK_BASELINE_COORDINATE_SYSTEM_ENUM_END = 2
  5089. enums["RTK_BASELINE_COORDINATE_SYSTEM"][2] = EnumEntry("RTK_BASELINE_COORDINATE_SYSTEM_ENUM_END", """""")
  5090. # LANDING_TARGET_TYPE
  5091. enums["LANDING_TARGET_TYPE"] = Enum()
  5092. enums["LANDING_TARGET_TYPE"].bitmask = False
  5093. LANDING_TARGET_TYPE_LIGHT_BEACON = 0
  5094. enums["LANDING_TARGET_TYPE"][0] = EnumEntry("LANDING_TARGET_TYPE_LIGHT_BEACON", """Landing target signaled by light beacon (ex: IR-LOCK)""")
  5095. LANDING_TARGET_TYPE_RADIO_BEACON = 1
  5096. enums["LANDING_TARGET_TYPE"][1] = EnumEntry("LANDING_TARGET_TYPE_RADIO_BEACON", """Landing target signaled by radio beacon (ex: ILS, NDB)""")
  5097. LANDING_TARGET_TYPE_VISION_FIDUCIAL = 2
  5098. enums["LANDING_TARGET_TYPE"][2] = EnumEntry("LANDING_TARGET_TYPE_VISION_FIDUCIAL", """Landing target represented by a fiducial marker (ex: ARTag)""")
  5099. LANDING_TARGET_TYPE_VISION_OTHER = 3
  5100. enums["LANDING_TARGET_TYPE"][3] = EnumEntry("LANDING_TARGET_TYPE_VISION_OTHER", """Landing target represented by a pre-defined visual shape/feature (ex: X-marker, H-marker, square)""")
  5101. LANDING_TARGET_TYPE_ENUM_END = 4
  5102. enums["LANDING_TARGET_TYPE"][4] = EnumEntry("LANDING_TARGET_TYPE_ENUM_END", """""")
  5103. # VTOL_TRANSITION_HEADING
  5104. enums["VTOL_TRANSITION_HEADING"] = Enum()
  5105. enums["VTOL_TRANSITION_HEADING"].bitmask = False
  5106. VTOL_TRANSITION_HEADING_VEHICLE_DEFAULT = 0
  5107. enums["VTOL_TRANSITION_HEADING"][0] = EnumEntry("VTOL_TRANSITION_HEADING_VEHICLE_DEFAULT", """Respect the heading configuration of the vehicle.""")
  5108. VTOL_TRANSITION_HEADING_NEXT_WAYPOINT = 1
  5109. enums["VTOL_TRANSITION_HEADING"][1] = EnumEntry("VTOL_TRANSITION_HEADING_NEXT_WAYPOINT", """Use the heading pointing towards the next waypoint.""")
  5110. VTOL_TRANSITION_HEADING_TAKEOFF = 2
  5111. enums["VTOL_TRANSITION_HEADING"][2] = EnumEntry("VTOL_TRANSITION_HEADING_TAKEOFF", """Use the heading on takeoff (while sitting on the ground).""")
  5112. VTOL_TRANSITION_HEADING_SPECIFIED = 3
  5113. enums["VTOL_TRANSITION_HEADING"][3] = EnumEntry("VTOL_TRANSITION_HEADING_SPECIFIED", """Use the specified heading in parameter 4.""")
  5114. VTOL_TRANSITION_HEADING_ANY = 4
  5115. enums["VTOL_TRANSITION_HEADING"][4] = EnumEntry("VTOL_TRANSITION_HEADING_ANY", """Use the current heading when reaching takeoff altitude (potentially facing the wind when weather-vaning is active).""")
  5116. VTOL_TRANSITION_HEADING_ENUM_END = 5
  5117. enums["VTOL_TRANSITION_HEADING"][5] = EnumEntry("VTOL_TRANSITION_HEADING_ENUM_END", """""")
  5118. # CAMERA_CAP_FLAGS
  5119. enums["CAMERA_CAP_FLAGS"] = Enum()
  5120. enums["CAMERA_CAP_FLAGS"].bitmask = True
  5121. CAMERA_CAP_FLAGS_CAPTURE_VIDEO = 1
  5122. enums["CAMERA_CAP_FLAGS"][1] = EnumEntry("CAMERA_CAP_FLAGS_CAPTURE_VIDEO", """Camera is able to record video""")
  5123. CAMERA_CAP_FLAGS_CAPTURE_IMAGE = 2
  5124. enums["CAMERA_CAP_FLAGS"][2] = EnumEntry("CAMERA_CAP_FLAGS_CAPTURE_IMAGE", """Camera is able to capture images""")
  5125. CAMERA_CAP_FLAGS_HAS_MODES = 4
  5126. enums["CAMERA_CAP_FLAGS"][4] = EnumEntry("CAMERA_CAP_FLAGS_HAS_MODES", """Camera has separate Video and Image/Photo modes (MAV_CMD_SET_CAMERA_MODE)""")
  5127. CAMERA_CAP_FLAGS_CAN_CAPTURE_IMAGE_IN_VIDEO_MODE = 8
  5128. enums["CAMERA_CAP_FLAGS"][8] = EnumEntry("CAMERA_CAP_FLAGS_CAN_CAPTURE_IMAGE_IN_VIDEO_MODE", """Camera can capture images while in video mode""")
  5129. CAMERA_CAP_FLAGS_CAN_CAPTURE_VIDEO_IN_IMAGE_MODE = 16
  5130. enums["CAMERA_CAP_FLAGS"][16] = EnumEntry("CAMERA_CAP_FLAGS_CAN_CAPTURE_VIDEO_IN_IMAGE_MODE", """Camera can capture videos while in Photo/Image mode""")
  5131. CAMERA_CAP_FLAGS_HAS_IMAGE_SURVEY_MODE = 32
  5132. enums["CAMERA_CAP_FLAGS"][32] = EnumEntry("CAMERA_CAP_FLAGS_HAS_IMAGE_SURVEY_MODE", """Camera has image survey mode (MAV_CMD_SET_CAMERA_MODE)""")
  5133. CAMERA_CAP_FLAGS_HAS_BASIC_ZOOM = 64
  5134. enums["CAMERA_CAP_FLAGS"][64] = EnumEntry("CAMERA_CAP_FLAGS_HAS_BASIC_ZOOM", """Camera has basic zoom control (MAV_CMD_SET_CAMERA_ZOOM)""")
  5135. CAMERA_CAP_FLAGS_HAS_BASIC_FOCUS = 128
  5136. enums["CAMERA_CAP_FLAGS"][128] = EnumEntry("CAMERA_CAP_FLAGS_HAS_BASIC_FOCUS", """Camera has basic focus control (MAV_CMD_SET_CAMERA_FOCUS)""")
  5137. CAMERA_CAP_FLAGS_HAS_VIDEO_STREAM = 256
  5138. enums["CAMERA_CAP_FLAGS"][256] = EnumEntry("CAMERA_CAP_FLAGS_HAS_VIDEO_STREAM", """Camera has video streaming capabilities (request VIDEO_STREAM_INFORMATION with MAV_CMD_REQUEST_MESSAGE for video streaming info)""")
  5139. CAMERA_CAP_FLAGS_HAS_TRACKING_POINT = 512
  5140. enums["CAMERA_CAP_FLAGS"][512] = EnumEntry("CAMERA_CAP_FLAGS_HAS_TRACKING_POINT", """Camera supports tracking of a point on the camera view.""")
  5141. CAMERA_CAP_FLAGS_HAS_TRACKING_RECTANGLE = 1024
  5142. enums["CAMERA_CAP_FLAGS"][1024] = EnumEntry("CAMERA_CAP_FLAGS_HAS_TRACKING_RECTANGLE", """Camera supports tracking of a selection rectangle on the camera view.""")
  5143. CAMERA_CAP_FLAGS_HAS_TRACKING_GEO_STATUS = 2048
  5144. enums["CAMERA_CAP_FLAGS"][2048] = EnumEntry("CAMERA_CAP_FLAGS_HAS_TRACKING_GEO_STATUS", """Camera supports tracking geo status (CAMERA_TRACKING_GEO_STATUS).""")
  5145. CAMERA_CAP_FLAGS_ENUM_END = 2049
  5146. enums["CAMERA_CAP_FLAGS"][2049] = EnumEntry("CAMERA_CAP_FLAGS_ENUM_END", """""")
  5147. # VIDEO_STREAM_STATUS_FLAGS
  5148. enums["VIDEO_STREAM_STATUS_FLAGS"] = Enum()
  5149. enums["VIDEO_STREAM_STATUS_FLAGS"].bitmask = True
  5150. VIDEO_STREAM_STATUS_FLAGS_RUNNING = 1
  5151. enums["VIDEO_STREAM_STATUS_FLAGS"][1] = EnumEntry("VIDEO_STREAM_STATUS_FLAGS_RUNNING", """Stream is active (running)""")
  5152. VIDEO_STREAM_STATUS_FLAGS_THERMAL = 2
  5153. enums["VIDEO_STREAM_STATUS_FLAGS"][2] = EnumEntry("VIDEO_STREAM_STATUS_FLAGS_THERMAL", """Stream is thermal imaging""")
  5154. VIDEO_STREAM_STATUS_FLAGS_ENUM_END = 3
  5155. enums["VIDEO_STREAM_STATUS_FLAGS"][3] = EnumEntry("VIDEO_STREAM_STATUS_FLAGS_ENUM_END", """""")
  5156. # VIDEO_STREAM_TYPE
  5157. enums["VIDEO_STREAM_TYPE"] = Enum()
  5158. enums["VIDEO_STREAM_TYPE"].bitmask = False
  5159. VIDEO_STREAM_TYPE_RTSP = 0
  5160. enums["VIDEO_STREAM_TYPE"][0] = EnumEntry("VIDEO_STREAM_TYPE_RTSP", """Stream is RTSP""")
  5161. VIDEO_STREAM_TYPE_RTPUDP = 1
  5162. enums["VIDEO_STREAM_TYPE"][1] = EnumEntry("VIDEO_STREAM_TYPE_RTPUDP", """Stream is RTP UDP (URI gives the port number)""")
  5163. VIDEO_STREAM_TYPE_TCP_MPEG = 2
  5164. enums["VIDEO_STREAM_TYPE"][2] = EnumEntry("VIDEO_STREAM_TYPE_TCP_MPEG", """Stream is MPEG on TCP""")
  5165. VIDEO_STREAM_TYPE_MPEG_TS_H264 = 3
  5166. enums["VIDEO_STREAM_TYPE"][3] = EnumEntry("VIDEO_STREAM_TYPE_MPEG_TS_H264", """Stream is h.264 on MPEG TS (URI gives the port number)""")
  5167. VIDEO_STREAM_TYPE_ENUM_END = 4
  5168. enums["VIDEO_STREAM_TYPE"][4] = EnumEntry("VIDEO_STREAM_TYPE_ENUM_END", """""")
  5169. # CAMERA_TRACKING_STATUS_FLAGS
  5170. enums["CAMERA_TRACKING_STATUS_FLAGS"] = Enum()
  5171. enums["CAMERA_TRACKING_STATUS_FLAGS"].bitmask = False
  5172. CAMERA_TRACKING_STATUS_FLAGS_IDLE = 0
  5173. enums["CAMERA_TRACKING_STATUS_FLAGS"][0] = EnumEntry("CAMERA_TRACKING_STATUS_FLAGS_IDLE", """Camera is not tracking""")
  5174. CAMERA_TRACKING_STATUS_FLAGS_ACTIVE = 1
  5175. enums["CAMERA_TRACKING_STATUS_FLAGS"][1] = EnumEntry("CAMERA_TRACKING_STATUS_FLAGS_ACTIVE", """Camera is tracking""")
  5176. CAMERA_TRACKING_STATUS_FLAGS_ERROR = 2
  5177. enums["CAMERA_TRACKING_STATUS_FLAGS"][2] = EnumEntry("CAMERA_TRACKING_STATUS_FLAGS_ERROR", """Camera tracking in error state""")
  5178. CAMERA_TRACKING_STATUS_FLAGS_ENUM_END = 3
  5179. enums["CAMERA_TRACKING_STATUS_FLAGS"][3] = EnumEntry("CAMERA_TRACKING_STATUS_FLAGS_ENUM_END", """""")
  5180. # CAMERA_TRACKING_MODE
  5181. enums["CAMERA_TRACKING_MODE"] = Enum()
  5182. enums["CAMERA_TRACKING_MODE"].bitmask = False
  5183. CAMERA_TRACKING_MODE_NONE = 0
  5184. enums["CAMERA_TRACKING_MODE"][0] = EnumEntry("CAMERA_TRACKING_MODE_NONE", """Not tracking""")
  5185. CAMERA_TRACKING_MODE_POINT = 1
  5186. enums["CAMERA_TRACKING_MODE"][1] = EnumEntry("CAMERA_TRACKING_MODE_POINT", """Target is a point""")
  5187. CAMERA_TRACKING_MODE_RECTANGLE = 2
  5188. enums["CAMERA_TRACKING_MODE"][2] = EnumEntry("CAMERA_TRACKING_MODE_RECTANGLE", """Target is a rectangle""")
  5189. CAMERA_TRACKING_MODE_ENUM_END = 3
  5190. enums["CAMERA_TRACKING_MODE"][3] = EnumEntry("CAMERA_TRACKING_MODE_ENUM_END", """""")
  5191. # CAMERA_TRACKING_TARGET_DATA
  5192. enums["CAMERA_TRACKING_TARGET_DATA"] = Enum()
  5193. enums["CAMERA_TRACKING_TARGET_DATA"].bitmask = True
  5194. CAMERA_TRACKING_TARGET_DATA_NONE = 0
  5195. enums["CAMERA_TRACKING_TARGET_DATA"][0] = EnumEntry("CAMERA_TRACKING_TARGET_DATA_NONE", """No target data""")
  5196. CAMERA_TRACKING_TARGET_DATA_EMBEDDED = 1
  5197. enums["CAMERA_TRACKING_TARGET_DATA"][1] = EnumEntry("CAMERA_TRACKING_TARGET_DATA_EMBEDDED", """Target data embedded in image data (proprietary)""")
  5198. CAMERA_TRACKING_TARGET_DATA_RENDERED = 2
  5199. enums["CAMERA_TRACKING_TARGET_DATA"][2] = EnumEntry("CAMERA_TRACKING_TARGET_DATA_RENDERED", """Target data rendered in image""")
  5200. CAMERA_TRACKING_TARGET_DATA_IN_STATUS = 4
  5201. enums["CAMERA_TRACKING_TARGET_DATA"][4] = EnumEntry("CAMERA_TRACKING_TARGET_DATA_IN_STATUS", """Target data within status message (Point or Rectangle)""")
  5202. CAMERA_TRACKING_TARGET_DATA_ENUM_END = 5
  5203. enums["CAMERA_TRACKING_TARGET_DATA"][5] = EnumEntry("CAMERA_TRACKING_TARGET_DATA_ENUM_END", """""")
  5204. # CAMERA_ZOOM_TYPE
  5205. enums["CAMERA_ZOOM_TYPE"] = Enum()
  5206. enums["CAMERA_ZOOM_TYPE"].bitmask = False
  5207. ZOOM_TYPE_STEP = 0
  5208. enums["CAMERA_ZOOM_TYPE"][0] = EnumEntry("ZOOM_TYPE_STEP", """Zoom one step increment (-1 for wide, 1 for tele)""")
  5209. ZOOM_TYPE_CONTINUOUS = 1
  5210. enums["CAMERA_ZOOM_TYPE"][1] = EnumEntry("ZOOM_TYPE_CONTINUOUS", """Continuous zoom up/down until stopped (-1 for wide, 1 for tele, 0 to stop zooming)""")
  5211. ZOOM_TYPE_RANGE = 2
  5212. enums["CAMERA_ZOOM_TYPE"][2] = EnumEntry("ZOOM_TYPE_RANGE", """Zoom value as proportion of full camera range (a percentage value between 0.0 and 100.0)""")
  5213. ZOOM_TYPE_FOCAL_LENGTH = 3
  5214. enums["CAMERA_ZOOM_TYPE"][3] = EnumEntry("ZOOM_TYPE_FOCAL_LENGTH", """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)""")
  5215. ZOOM_TYPE_HORIZONTAL_FOV = 4
  5216. enums["CAMERA_ZOOM_TYPE"][4] = EnumEntry("ZOOM_TYPE_HORIZONTAL_FOV", """Zoom value as horizontal field of view in degrees.""")
  5217. CAMERA_ZOOM_TYPE_ENUM_END = 5
  5218. enums["CAMERA_ZOOM_TYPE"][5] = EnumEntry("CAMERA_ZOOM_TYPE_ENUM_END", """""")
  5219. # SET_FOCUS_TYPE
  5220. enums["SET_FOCUS_TYPE"] = Enum()
  5221. enums["SET_FOCUS_TYPE"].bitmask = False
  5222. FOCUS_TYPE_STEP = 0
  5223. enums["SET_FOCUS_TYPE"][0] = EnumEntry("FOCUS_TYPE_STEP", """Focus one step increment (-1 for focusing in, 1 for focusing out towards infinity).""")
  5224. FOCUS_TYPE_CONTINUOUS = 1
  5225. enums["SET_FOCUS_TYPE"][1] = EnumEntry("FOCUS_TYPE_CONTINUOUS", """Continuous focus up/down until stopped (-1 for focusing in, 1 for focusing out towards infinity, 0 to stop focusing)""")
  5226. FOCUS_TYPE_RANGE = 2
  5227. enums["SET_FOCUS_TYPE"][2] = EnumEntry("FOCUS_TYPE_RANGE", """Focus value as proportion of full camera focus range (a value between 0.0 and 100.0)""")
  5228. FOCUS_TYPE_METERS = 3
  5229. enums["SET_FOCUS_TYPE"][3] = EnumEntry("FOCUS_TYPE_METERS", """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).""")
  5230. FOCUS_TYPE_AUTO = 4
  5231. enums["SET_FOCUS_TYPE"][4] = EnumEntry("FOCUS_TYPE_AUTO", """Focus automatically.""")
  5232. FOCUS_TYPE_AUTO_SINGLE = 5
  5233. enums["SET_FOCUS_TYPE"][5] = EnumEntry("FOCUS_TYPE_AUTO_SINGLE", """Single auto focus. Mainly used for still pictures. Usually abbreviated as AF-S.""")
  5234. FOCUS_TYPE_AUTO_CONTINUOUS = 6
  5235. enums["SET_FOCUS_TYPE"][6] = EnumEntry("FOCUS_TYPE_AUTO_CONTINUOUS", """Continuous auto focus. Mainly used for dynamic scenes. Abbreviated as AF-C.""")
  5236. SET_FOCUS_TYPE_ENUM_END = 7
  5237. enums["SET_FOCUS_TYPE"][7] = EnumEntry("SET_FOCUS_TYPE_ENUM_END", """""")
  5238. # PARAM_ACK
  5239. enums["PARAM_ACK"] = Enum()
  5240. enums["PARAM_ACK"].bitmask = False
  5241. PARAM_ACK_ACCEPTED = 0
  5242. enums["PARAM_ACK"][0] = EnumEntry("PARAM_ACK_ACCEPTED", """Parameter value ACCEPTED and SET""")
  5243. PARAM_ACK_VALUE_UNSUPPORTED = 1
  5244. enums["PARAM_ACK"][1] = EnumEntry("PARAM_ACK_VALUE_UNSUPPORTED", """Parameter value UNKNOWN/UNSUPPORTED""")
  5245. PARAM_ACK_FAILED = 2
  5246. enums["PARAM_ACK"][2] = EnumEntry("PARAM_ACK_FAILED", """Parameter failed to set""")
  5247. PARAM_ACK_IN_PROGRESS = 3
  5248. enums["PARAM_ACK"][3] = EnumEntry("PARAM_ACK_IN_PROGRESS", """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.""")
  5249. PARAM_ACK_ENUM_END = 4
  5250. enums["PARAM_ACK"][4] = EnumEntry("PARAM_ACK_ENUM_END", """""")
  5251. # CAMERA_MODE
  5252. enums["CAMERA_MODE"] = Enum()
  5253. enums["CAMERA_MODE"].bitmask = False
  5254. CAMERA_MODE_IMAGE = 0
  5255. enums["CAMERA_MODE"][0] = EnumEntry("CAMERA_MODE_IMAGE", """Camera is in image/photo capture mode.""")
  5256. CAMERA_MODE_VIDEO = 1
  5257. enums["CAMERA_MODE"][1] = EnumEntry("CAMERA_MODE_VIDEO", """Camera is in video capture mode.""")
  5258. CAMERA_MODE_IMAGE_SURVEY = 2
  5259. enums["CAMERA_MODE"][2] = EnumEntry("CAMERA_MODE_IMAGE_SURVEY", """Camera is in image survey capture mode. It allows for camera controller to do specific settings for surveys.""")
  5260. CAMERA_MODE_ENUM_END = 3
  5261. enums["CAMERA_MODE"][3] = EnumEntry("CAMERA_MODE_ENUM_END", """""")
  5262. # MAV_ARM_AUTH_DENIED_REASON
  5263. enums["MAV_ARM_AUTH_DENIED_REASON"] = Enum()
  5264. enums["MAV_ARM_AUTH_DENIED_REASON"].bitmask = False
  5265. MAV_ARM_AUTH_DENIED_REASON_GENERIC = 0
  5266. enums["MAV_ARM_AUTH_DENIED_REASON"][0] = EnumEntry("MAV_ARM_AUTH_DENIED_REASON_GENERIC", """Not a specific reason""")
  5267. MAV_ARM_AUTH_DENIED_REASON_NONE = 1
  5268. enums["MAV_ARM_AUTH_DENIED_REASON"][1] = EnumEntry("MAV_ARM_AUTH_DENIED_REASON_NONE", """Authorizer will send the error as string to GCS""")
  5269. MAV_ARM_AUTH_DENIED_REASON_INVALID_WAYPOINT = 2
  5270. enums["MAV_ARM_AUTH_DENIED_REASON"][2] = EnumEntry("MAV_ARM_AUTH_DENIED_REASON_INVALID_WAYPOINT", """At least one waypoint have a invalid value""")
  5271. MAV_ARM_AUTH_DENIED_REASON_TIMEOUT = 3
  5272. enums["MAV_ARM_AUTH_DENIED_REASON"][3] = EnumEntry("MAV_ARM_AUTH_DENIED_REASON_TIMEOUT", """Timeout in the authorizer process(in case it depends on network)""")
  5273. MAV_ARM_AUTH_DENIED_REASON_AIRSPACE_IN_USE = 4
  5274. enums["MAV_ARM_AUTH_DENIED_REASON"][4] = EnumEntry("MAV_ARM_AUTH_DENIED_REASON_AIRSPACE_IN_USE", """Airspace of the mission in use by another vehicle, second result parameter can have the waypoint id that caused it to be denied.""")
  5275. MAV_ARM_AUTH_DENIED_REASON_BAD_WEATHER = 5
  5276. enums["MAV_ARM_AUTH_DENIED_REASON"][5] = EnumEntry("MAV_ARM_AUTH_DENIED_REASON_BAD_WEATHER", """Weather is not good to fly""")
  5277. MAV_ARM_AUTH_DENIED_REASON_ENUM_END = 6
  5278. enums["MAV_ARM_AUTH_DENIED_REASON"][6] = EnumEntry("MAV_ARM_AUTH_DENIED_REASON_ENUM_END", """""")
  5279. # RC_TYPE
  5280. enums["RC_TYPE"] = Enum()
  5281. enums["RC_TYPE"].bitmask = False
  5282. RC_TYPE_SPEKTRUM_DSM2 = 0
  5283. enums["RC_TYPE"][0] = EnumEntry("RC_TYPE_SPEKTRUM_DSM2", """Spektrum DSM2""")
  5284. RC_TYPE_SPEKTRUM_DSMX = 1
  5285. enums["RC_TYPE"][1] = EnumEntry("RC_TYPE_SPEKTRUM_DSMX", """Spektrum DSMX""")
  5286. RC_TYPE_ENUM_END = 2
  5287. enums["RC_TYPE"][2] = EnumEntry("RC_TYPE_ENUM_END", """""")
  5288. # POSITION_TARGET_TYPEMASK
  5289. enums["POSITION_TARGET_TYPEMASK"] = Enum()
  5290. enums["POSITION_TARGET_TYPEMASK"].bitmask = True
  5291. POSITION_TARGET_TYPEMASK_X_IGNORE = 1
  5292. enums["POSITION_TARGET_TYPEMASK"][1] = EnumEntry("POSITION_TARGET_TYPEMASK_X_IGNORE", """Ignore position x""")
  5293. POSITION_TARGET_TYPEMASK_Y_IGNORE = 2
  5294. enums["POSITION_TARGET_TYPEMASK"][2] = EnumEntry("POSITION_TARGET_TYPEMASK_Y_IGNORE", """Ignore position y""")
  5295. POSITION_TARGET_TYPEMASK_Z_IGNORE = 4
  5296. enums["POSITION_TARGET_TYPEMASK"][4] = EnumEntry("POSITION_TARGET_TYPEMASK_Z_IGNORE", """Ignore position z""")
  5297. POSITION_TARGET_TYPEMASK_VX_IGNORE = 8
  5298. enums["POSITION_TARGET_TYPEMASK"][8] = EnumEntry("POSITION_TARGET_TYPEMASK_VX_IGNORE", """Ignore velocity x""")
  5299. POSITION_TARGET_TYPEMASK_VY_IGNORE = 16
  5300. enums["POSITION_TARGET_TYPEMASK"][16] = EnumEntry("POSITION_TARGET_TYPEMASK_VY_IGNORE", """Ignore velocity y""")
  5301. POSITION_TARGET_TYPEMASK_VZ_IGNORE = 32
  5302. enums["POSITION_TARGET_TYPEMASK"][32] = EnumEntry("POSITION_TARGET_TYPEMASK_VZ_IGNORE", """Ignore velocity z""")
  5303. POSITION_TARGET_TYPEMASK_AX_IGNORE = 64
  5304. enums["POSITION_TARGET_TYPEMASK"][64] = EnumEntry("POSITION_TARGET_TYPEMASK_AX_IGNORE", """Ignore acceleration x""")
  5305. POSITION_TARGET_TYPEMASK_AY_IGNORE = 128
  5306. enums["POSITION_TARGET_TYPEMASK"][128] = EnumEntry("POSITION_TARGET_TYPEMASK_AY_IGNORE", """Ignore acceleration y""")
  5307. POSITION_TARGET_TYPEMASK_AZ_IGNORE = 256
  5308. enums["POSITION_TARGET_TYPEMASK"][256] = EnumEntry("POSITION_TARGET_TYPEMASK_AZ_IGNORE", """Ignore acceleration z""")
  5309. POSITION_TARGET_TYPEMASK_FORCE_SET = 512
  5310. enums["POSITION_TARGET_TYPEMASK"][512] = EnumEntry("POSITION_TARGET_TYPEMASK_FORCE_SET", """Use force instead of acceleration""")
  5311. POSITION_TARGET_TYPEMASK_YAW_IGNORE = 1024
  5312. enums["POSITION_TARGET_TYPEMASK"][1024] = EnumEntry("POSITION_TARGET_TYPEMASK_YAW_IGNORE", """Ignore yaw""")
  5313. POSITION_TARGET_TYPEMASK_YAW_RATE_IGNORE = 2048
  5314. enums["POSITION_TARGET_TYPEMASK"][2048] = EnumEntry("POSITION_TARGET_TYPEMASK_YAW_RATE_IGNORE", """Ignore yaw rate""")
  5315. POSITION_TARGET_TYPEMASK_ENUM_END = 2049
  5316. enums["POSITION_TARGET_TYPEMASK"][2049] = EnumEntry("POSITION_TARGET_TYPEMASK_ENUM_END", """""")
  5317. # ATTITUDE_TARGET_TYPEMASK
  5318. enums["ATTITUDE_TARGET_TYPEMASK"] = Enum()
  5319. enums["ATTITUDE_TARGET_TYPEMASK"].bitmask = True
  5320. ATTITUDE_TARGET_TYPEMASK_BODY_ROLL_RATE_IGNORE = 1
  5321. enums["ATTITUDE_TARGET_TYPEMASK"][1] = EnumEntry("ATTITUDE_TARGET_TYPEMASK_BODY_ROLL_RATE_IGNORE", """Ignore body roll rate""")
  5322. ATTITUDE_TARGET_TYPEMASK_BODY_PITCH_RATE_IGNORE = 2
  5323. enums["ATTITUDE_TARGET_TYPEMASK"][2] = EnumEntry("ATTITUDE_TARGET_TYPEMASK_BODY_PITCH_RATE_IGNORE", """Ignore body pitch rate""")
  5324. ATTITUDE_TARGET_TYPEMASK_BODY_YAW_RATE_IGNORE = 4
  5325. enums["ATTITUDE_TARGET_TYPEMASK"][4] = EnumEntry("ATTITUDE_TARGET_TYPEMASK_BODY_YAW_RATE_IGNORE", """Ignore body yaw rate""")
  5326. ATTITUDE_TARGET_TYPEMASK_THRUST_BODY_SET = 32
  5327. enums["ATTITUDE_TARGET_TYPEMASK"][32] = EnumEntry("ATTITUDE_TARGET_TYPEMASK_THRUST_BODY_SET", """Use 3D body thrust setpoint instead of throttle""")
  5328. ATTITUDE_TARGET_TYPEMASK_THROTTLE_IGNORE = 64
  5329. enums["ATTITUDE_TARGET_TYPEMASK"][64] = EnumEntry("ATTITUDE_TARGET_TYPEMASK_THROTTLE_IGNORE", """Ignore throttle""")
  5330. ATTITUDE_TARGET_TYPEMASK_ATTITUDE_IGNORE = 128
  5331. enums["ATTITUDE_TARGET_TYPEMASK"][128] = EnumEntry("ATTITUDE_TARGET_TYPEMASK_ATTITUDE_IGNORE", """Ignore attitude""")
  5332. ATTITUDE_TARGET_TYPEMASK_ENUM_END = 129
  5333. enums["ATTITUDE_TARGET_TYPEMASK"][129] = EnumEntry("ATTITUDE_TARGET_TYPEMASK_ENUM_END", """""")
  5334. # UTM_FLIGHT_STATE
  5335. enums["UTM_FLIGHT_STATE"] = Enum()
  5336. enums["UTM_FLIGHT_STATE"].bitmask = False
  5337. UTM_FLIGHT_STATE_UNKNOWN = 1
  5338. enums["UTM_FLIGHT_STATE"][1] = EnumEntry("UTM_FLIGHT_STATE_UNKNOWN", """The flight state can't be determined.""")
  5339. UTM_FLIGHT_STATE_GROUND = 2
  5340. enums["UTM_FLIGHT_STATE"][2] = EnumEntry("UTM_FLIGHT_STATE_GROUND", """UAS on ground.""")
  5341. UTM_FLIGHT_STATE_AIRBORNE = 3
  5342. enums["UTM_FLIGHT_STATE"][3] = EnumEntry("UTM_FLIGHT_STATE_AIRBORNE", """UAS airborne.""")
  5343. UTM_FLIGHT_STATE_EMERGENCY = 16
  5344. enums["UTM_FLIGHT_STATE"][16] = EnumEntry("UTM_FLIGHT_STATE_EMERGENCY", """UAS is in an emergency flight state.""")
  5345. UTM_FLIGHT_STATE_NOCTRL = 32
  5346. enums["UTM_FLIGHT_STATE"][32] = EnumEntry("UTM_FLIGHT_STATE_NOCTRL", """UAS has no active controls.""")
  5347. UTM_FLIGHT_STATE_ENUM_END = 33
  5348. enums["UTM_FLIGHT_STATE"][33] = EnumEntry("UTM_FLIGHT_STATE_ENUM_END", """""")
  5349. # UTM_DATA_AVAIL_FLAGS
  5350. enums["UTM_DATA_AVAIL_FLAGS"] = Enum()
  5351. enums["UTM_DATA_AVAIL_FLAGS"].bitmask = True
  5352. UTM_DATA_AVAIL_FLAGS_TIME_VALID = 1
  5353. enums["UTM_DATA_AVAIL_FLAGS"][1] = EnumEntry("UTM_DATA_AVAIL_FLAGS_TIME_VALID", """The field time contains valid data.""")
  5354. UTM_DATA_AVAIL_FLAGS_UAS_ID_AVAILABLE = 2
  5355. enums["UTM_DATA_AVAIL_FLAGS"][2] = EnumEntry("UTM_DATA_AVAIL_FLAGS_UAS_ID_AVAILABLE", """The field uas_id contains valid data.""")
  5356. UTM_DATA_AVAIL_FLAGS_POSITION_AVAILABLE = 4
  5357. enums["UTM_DATA_AVAIL_FLAGS"][4] = EnumEntry("UTM_DATA_AVAIL_FLAGS_POSITION_AVAILABLE", """The fields lat, lon and h_acc contain valid data.""")
  5358. UTM_DATA_AVAIL_FLAGS_ALTITUDE_AVAILABLE = 8
  5359. enums["UTM_DATA_AVAIL_FLAGS"][8] = EnumEntry("UTM_DATA_AVAIL_FLAGS_ALTITUDE_AVAILABLE", """The fields alt and v_acc contain valid data.""")
  5360. UTM_DATA_AVAIL_FLAGS_RELATIVE_ALTITUDE_AVAILABLE = 16
  5361. enums["UTM_DATA_AVAIL_FLAGS"][16] = EnumEntry("UTM_DATA_AVAIL_FLAGS_RELATIVE_ALTITUDE_AVAILABLE", """The field relative_alt contains valid data.""")
  5362. UTM_DATA_AVAIL_FLAGS_HORIZONTAL_VELO_AVAILABLE = 32
  5363. enums["UTM_DATA_AVAIL_FLAGS"][32] = EnumEntry("UTM_DATA_AVAIL_FLAGS_HORIZONTAL_VELO_AVAILABLE", """The fields vx and vy contain valid data.""")
  5364. UTM_DATA_AVAIL_FLAGS_VERTICAL_VELO_AVAILABLE = 64
  5365. enums["UTM_DATA_AVAIL_FLAGS"][64] = EnumEntry("UTM_DATA_AVAIL_FLAGS_VERTICAL_VELO_AVAILABLE", """The field vz contains valid data.""")
  5366. UTM_DATA_AVAIL_FLAGS_NEXT_WAYPOINT_AVAILABLE = 128
  5367. enums["UTM_DATA_AVAIL_FLAGS"][128] = EnumEntry("UTM_DATA_AVAIL_FLAGS_NEXT_WAYPOINT_AVAILABLE", """The fields next_lat, next_lon and next_alt contain valid data.""")
  5368. UTM_DATA_AVAIL_FLAGS_ENUM_END = 129
  5369. enums["UTM_DATA_AVAIL_FLAGS"][129] = EnumEntry("UTM_DATA_AVAIL_FLAGS_ENUM_END", """""")
  5370. # CELLULAR_STATUS_FLAG
  5371. enums["CELLULAR_STATUS_FLAG"] = Enum()
  5372. enums["CELLULAR_STATUS_FLAG"].bitmask = False
  5373. CELLULAR_STATUS_FLAG_UNKNOWN = 0
  5374. enums["CELLULAR_STATUS_FLAG"][0] = EnumEntry("CELLULAR_STATUS_FLAG_UNKNOWN", """State unknown or not reportable.""")
  5375. CELLULAR_STATUS_FLAG_FAILED = 1
  5376. enums["CELLULAR_STATUS_FLAG"][1] = EnumEntry("CELLULAR_STATUS_FLAG_FAILED", """Modem is unusable""")
  5377. CELLULAR_STATUS_FLAG_INITIALIZING = 2
  5378. enums["CELLULAR_STATUS_FLAG"][2] = EnumEntry("CELLULAR_STATUS_FLAG_INITIALIZING", """Modem is being initialized""")
  5379. CELLULAR_STATUS_FLAG_LOCKED = 3
  5380. enums["CELLULAR_STATUS_FLAG"][3] = EnumEntry("CELLULAR_STATUS_FLAG_LOCKED", """Modem is locked""")
  5381. CELLULAR_STATUS_FLAG_DISABLED = 4
  5382. enums["CELLULAR_STATUS_FLAG"][4] = EnumEntry("CELLULAR_STATUS_FLAG_DISABLED", """Modem is not enabled and is powered down""")
  5383. CELLULAR_STATUS_FLAG_DISABLING = 5
  5384. enums["CELLULAR_STATUS_FLAG"][5] = EnumEntry("CELLULAR_STATUS_FLAG_DISABLING", """Modem is currently transitioning to the CELLULAR_STATUS_FLAG_DISABLED state""")
  5385. CELLULAR_STATUS_FLAG_ENABLING = 6
  5386. enums["CELLULAR_STATUS_FLAG"][6] = EnumEntry("CELLULAR_STATUS_FLAG_ENABLING", """Modem is currently transitioning to the CELLULAR_STATUS_FLAG_ENABLED state""")
  5387. CELLULAR_STATUS_FLAG_ENABLED = 7
  5388. enums["CELLULAR_STATUS_FLAG"][7] = EnumEntry("CELLULAR_STATUS_FLAG_ENABLED", """Modem is enabled and powered on but not registered with a network provider and not available for data connections""")
  5389. CELLULAR_STATUS_FLAG_SEARCHING = 8
  5390. enums["CELLULAR_STATUS_FLAG"][8] = EnumEntry("CELLULAR_STATUS_FLAG_SEARCHING", """Modem is searching for a network provider to register""")
  5391. CELLULAR_STATUS_FLAG_REGISTERED = 9
  5392. enums["CELLULAR_STATUS_FLAG"][9] = EnumEntry("CELLULAR_STATUS_FLAG_REGISTERED", """Modem is registered with a network provider, and data connections and messaging may be available for use""")
  5393. CELLULAR_STATUS_FLAG_DISCONNECTING = 10
  5394. enums["CELLULAR_STATUS_FLAG"][10] = EnumEntry("CELLULAR_STATUS_FLAG_DISCONNECTING", """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""")
  5395. CELLULAR_STATUS_FLAG_CONNECTING = 11
  5396. enums["CELLULAR_STATUS_FLAG"][11] = EnumEntry("CELLULAR_STATUS_FLAG_CONNECTING", """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""")
  5397. CELLULAR_STATUS_FLAG_CONNECTED = 12
  5398. enums["CELLULAR_STATUS_FLAG"][12] = EnumEntry("CELLULAR_STATUS_FLAG_CONNECTED", """One or more packet data bearers is active and connected""")
  5399. CELLULAR_STATUS_FLAG_ENUM_END = 13
  5400. enums["CELLULAR_STATUS_FLAG"][13] = EnumEntry("CELLULAR_STATUS_FLAG_ENUM_END", """""")
  5401. # CELLULAR_NETWORK_FAILED_REASON
  5402. enums["CELLULAR_NETWORK_FAILED_REASON"] = Enum()
  5403. enums["CELLULAR_NETWORK_FAILED_REASON"].bitmask = False
  5404. CELLULAR_NETWORK_FAILED_REASON_NONE = 0
  5405. enums["CELLULAR_NETWORK_FAILED_REASON"][0] = EnumEntry("CELLULAR_NETWORK_FAILED_REASON_NONE", """No error""")
  5406. CELLULAR_NETWORK_FAILED_REASON_UNKNOWN = 1
  5407. enums["CELLULAR_NETWORK_FAILED_REASON"][1] = EnumEntry("CELLULAR_NETWORK_FAILED_REASON_UNKNOWN", """Error state is unknown""")
  5408. CELLULAR_NETWORK_FAILED_REASON_SIM_MISSING = 2
  5409. enums["CELLULAR_NETWORK_FAILED_REASON"][2] = EnumEntry("CELLULAR_NETWORK_FAILED_REASON_SIM_MISSING", """SIM is required for the modem but missing""")
  5410. CELLULAR_NETWORK_FAILED_REASON_SIM_ERROR = 3
  5411. enums["CELLULAR_NETWORK_FAILED_REASON"][3] = EnumEntry("CELLULAR_NETWORK_FAILED_REASON_SIM_ERROR", """SIM is available, but not usable for connection""")
  5412. CELLULAR_NETWORK_FAILED_REASON_ENUM_END = 4
  5413. enums["CELLULAR_NETWORK_FAILED_REASON"][4] = EnumEntry("CELLULAR_NETWORK_FAILED_REASON_ENUM_END", """""")
  5414. # CELLULAR_NETWORK_RADIO_TYPE
  5415. enums["CELLULAR_NETWORK_RADIO_TYPE"] = Enum()
  5416. enums["CELLULAR_NETWORK_RADIO_TYPE"].bitmask = False
  5417. CELLULAR_NETWORK_RADIO_TYPE_NONE = 0
  5418. enums["CELLULAR_NETWORK_RADIO_TYPE"][0] = EnumEntry("CELLULAR_NETWORK_RADIO_TYPE_NONE", """""")
  5419. CELLULAR_NETWORK_RADIO_TYPE_GSM = 1
  5420. enums["CELLULAR_NETWORK_RADIO_TYPE"][1] = EnumEntry("CELLULAR_NETWORK_RADIO_TYPE_GSM", """""")
  5421. CELLULAR_NETWORK_RADIO_TYPE_CDMA = 2
  5422. enums["CELLULAR_NETWORK_RADIO_TYPE"][2] = EnumEntry("CELLULAR_NETWORK_RADIO_TYPE_CDMA", """""")
  5423. CELLULAR_NETWORK_RADIO_TYPE_WCDMA = 3
  5424. enums["CELLULAR_NETWORK_RADIO_TYPE"][3] = EnumEntry("CELLULAR_NETWORK_RADIO_TYPE_WCDMA", """""")
  5425. CELLULAR_NETWORK_RADIO_TYPE_LTE = 4
  5426. enums["CELLULAR_NETWORK_RADIO_TYPE"][4] = EnumEntry("CELLULAR_NETWORK_RADIO_TYPE_LTE", """""")
  5427. CELLULAR_NETWORK_RADIO_TYPE_ENUM_END = 5
  5428. enums["CELLULAR_NETWORK_RADIO_TYPE"][5] = EnumEntry("CELLULAR_NETWORK_RADIO_TYPE_ENUM_END", """""")
  5429. # PRECISION_LAND_MODE
  5430. enums["PRECISION_LAND_MODE"] = Enum()
  5431. enums["PRECISION_LAND_MODE"].bitmask = False
  5432. PRECISION_LAND_MODE_DISABLED = 0
  5433. enums["PRECISION_LAND_MODE"][0] = EnumEntry("PRECISION_LAND_MODE_DISABLED", """Normal (non-precision) landing.""")
  5434. PRECISION_LAND_MODE_OPPORTUNISTIC = 1
  5435. enums["PRECISION_LAND_MODE"][1] = EnumEntry("PRECISION_LAND_MODE_OPPORTUNISTIC", """Use precision landing if beacon detected when land command accepted, otherwise land normally.""")
  5436. PRECISION_LAND_MODE_REQUIRED = 2
  5437. enums["PRECISION_LAND_MODE"][2] = EnumEntry("PRECISION_LAND_MODE_REQUIRED", """Use precision landing, searching for beacon if not found when land command accepted (land normally if beacon cannot be found).""")
  5438. PRECISION_LAND_MODE_ENUM_END = 3
  5439. enums["PRECISION_LAND_MODE"][3] = EnumEntry("PRECISION_LAND_MODE_ENUM_END", """""")
  5440. # PARACHUTE_ACTION
  5441. enums["PARACHUTE_ACTION"] = Enum()
  5442. enums["PARACHUTE_ACTION"].bitmask = False
  5443. PARACHUTE_DISABLE = 0
  5444. enums["PARACHUTE_ACTION"][0] = EnumEntry("PARACHUTE_DISABLE", """Disable auto-release of parachute (i.e. release triggered by crash detectors).""")
  5445. PARACHUTE_ENABLE = 1
  5446. enums["PARACHUTE_ACTION"][1] = EnumEntry("PARACHUTE_ENABLE", """Enable auto-release of parachute.""")
  5447. PARACHUTE_RELEASE = 2
  5448. enums["PARACHUTE_ACTION"][2] = EnumEntry("PARACHUTE_RELEASE", """Release parachute and kill motors.""")
  5449. PARACHUTE_ACTION_ENUM_END = 3
  5450. enums["PARACHUTE_ACTION"][3] = EnumEntry("PARACHUTE_ACTION_ENUM_END", """""")
  5451. # MAV_TUNNEL_PAYLOAD_TYPE
  5452. enums["MAV_TUNNEL_PAYLOAD_TYPE"] = Enum()
  5453. enums["MAV_TUNNEL_PAYLOAD_TYPE"].bitmask = False
  5454. MAV_TUNNEL_PAYLOAD_TYPE_UNKNOWN = 0
  5455. enums["MAV_TUNNEL_PAYLOAD_TYPE"][0] = EnumEntry("MAV_TUNNEL_PAYLOAD_TYPE_UNKNOWN", """Encoding of payload unknown.""")
  5456. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED0 = 200
  5457. enums["MAV_TUNNEL_PAYLOAD_TYPE"][200] = EnumEntry("MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED0", """Registered for STorM32 gimbal controller.""")
  5458. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED1 = 201
  5459. enums["MAV_TUNNEL_PAYLOAD_TYPE"][201] = EnumEntry("MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED1", """Registered for STorM32 gimbal controller.""")
  5460. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED2 = 202
  5461. enums["MAV_TUNNEL_PAYLOAD_TYPE"][202] = EnumEntry("MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED2", """Registered for STorM32 gimbal controller.""")
  5462. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED3 = 203
  5463. enums["MAV_TUNNEL_PAYLOAD_TYPE"][203] = EnumEntry("MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED3", """Registered for STorM32 gimbal controller.""")
  5464. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED4 = 204
  5465. enums["MAV_TUNNEL_PAYLOAD_TYPE"][204] = EnumEntry("MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED4", """Registered for STorM32 gimbal controller.""")
  5466. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED5 = 205
  5467. enums["MAV_TUNNEL_PAYLOAD_TYPE"][205] = EnumEntry("MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED5", """Registered for STorM32 gimbal controller.""")
  5468. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED6 = 206
  5469. enums["MAV_TUNNEL_PAYLOAD_TYPE"][206] = EnumEntry("MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED6", """Registered for STorM32 gimbal controller.""")
  5470. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED7 = 207
  5471. enums["MAV_TUNNEL_PAYLOAD_TYPE"][207] = EnumEntry("MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED7", """Registered for STorM32 gimbal controller.""")
  5472. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED8 = 208
  5473. enums["MAV_TUNNEL_PAYLOAD_TYPE"][208] = EnumEntry("MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED8", """Registered for STorM32 gimbal controller.""")
  5474. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED9 = 209
  5475. enums["MAV_TUNNEL_PAYLOAD_TYPE"][209] = EnumEntry("MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED9", """Registered for STorM32 gimbal controller.""")
  5476. MAV_TUNNEL_PAYLOAD_TYPE_ENUM_END = 210
  5477. enums["MAV_TUNNEL_PAYLOAD_TYPE"][210] = EnumEntry("MAV_TUNNEL_PAYLOAD_TYPE_ENUM_END", """""")
  5478. # MAV_ODID_ID_TYPE
  5479. enums["MAV_ODID_ID_TYPE"] = Enum()
  5480. enums["MAV_ODID_ID_TYPE"].bitmask = False
  5481. MAV_ODID_ID_TYPE_NONE = 0
  5482. enums["MAV_ODID_ID_TYPE"][0] = EnumEntry("MAV_ODID_ID_TYPE_NONE", """No type defined.""")
  5483. MAV_ODID_ID_TYPE_SERIAL_NUMBER = 1
  5484. enums["MAV_ODID_ID_TYPE"][1] = EnumEntry("MAV_ODID_ID_TYPE_SERIAL_NUMBER", """Manufacturer Serial Number (ANSI/CTA-2063 format).""")
  5485. MAV_ODID_ID_TYPE_CAA_REGISTRATION_ID = 2
  5486. enums["MAV_ODID_ID_TYPE"][2] = EnumEntry("MAV_ODID_ID_TYPE_CAA_REGISTRATION_ID", """CAA (Civil Aviation Authority) registered ID. Format: [ICAO Country Code].[CAA Assigned ID].""")
  5487. MAV_ODID_ID_TYPE_UTM_ASSIGNED_UUID = 3
  5488. enums["MAV_ODID_ID_TYPE"][3] = EnumEntry("MAV_ODID_ID_TYPE_UTM_ASSIGNED_UUID", """UTM (Unmanned Traffic Management) assigned UUID (RFC4122).""")
  5489. MAV_ODID_ID_TYPE_SPECIFIC_SESSION_ID = 4
  5490. enums["MAV_ODID_ID_TYPE"][4] = EnumEntry("MAV_ODID_ID_TYPE_SPECIFIC_SESSION_ID", """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.""")
  5491. MAV_ODID_ID_TYPE_ENUM_END = 5
  5492. enums["MAV_ODID_ID_TYPE"][5] = EnumEntry("MAV_ODID_ID_TYPE_ENUM_END", """""")
  5493. # MAV_ODID_UA_TYPE
  5494. enums["MAV_ODID_UA_TYPE"] = Enum()
  5495. enums["MAV_ODID_UA_TYPE"].bitmask = False
  5496. MAV_ODID_UA_TYPE_NONE = 0
  5497. enums["MAV_ODID_UA_TYPE"][0] = EnumEntry("MAV_ODID_UA_TYPE_NONE", """No UA (Unmanned Aircraft) type defined.""")
  5498. MAV_ODID_UA_TYPE_AEROPLANE = 1
  5499. enums["MAV_ODID_UA_TYPE"][1] = EnumEntry("MAV_ODID_UA_TYPE_AEROPLANE", """Aeroplane/Airplane. Fixed wing.""")
  5500. MAV_ODID_UA_TYPE_HELICOPTER_OR_MULTIROTOR = 2
  5501. enums["MAV_ODID_UA_TYPE"][2] = EnumEntry("MAV_ODID_UA_TYPE_HELICOPTER_OR_MULTIROTOR", """Helicopter or multirotor.""")
  5502. MAV_ODID_UA_TYPE_GYROPLANE = 3
  5503. enums["MAV_ODID_UA_TYPE"][3] = EnumEntry("MAV_ODID_UA_TYPE_GYROPLANE", """Gyroplane.""")
  5504. MAV_ODID_UA_TYPE_HYBRID_LIFT = 4
  5505. enums["MAV_ODID_UA_TYPE"][4] = EnumEntry("MAV_ODID_UA_TYPE_HYBRID_LIFT", """VTOL (Vertical Take-Off and Landing). Fixed wing aircraft that can take off vertically.""")
  5506. MAV_ODID_UA_TYPE_ORNITHOPTER = 5
  5507. enums["MAV_ODID_UA_TYPE"][5] = EnumEntry("MAV_ODID_UA_TYPE_ORNITHOPTER", """Ornithopter.""")
  5508. MAV_ODID_UA_TYPE_GLIDER = 6
  5509. enums["MAV_ODID_UA_TYPE"][6] = EnumEntry("MAV_ODID_UA_TYPE_GLIDER", """Glider.""")
  5510. MAV_ODID_UA_TYPE_KITE = 7
  5511. enums["MAV_ODID_UA_TYPE"][7] = EnumEntry("MAV_ODID_UA_TYPE_KITE", """Kite.""")
  5512. MAV_ODID_UA_TYPE_FREE_BALLOON = 8
  5513. enums["MAV_ODID_UA_TYPE"][8] = EnumEntry("MAV_ODID_UA_TYPE_FREE_BALLOON", """Free Balloon.""")
  5514. MAV_ODID_UA_TYPE_CAPTIVE_BALLOON = 9
  5515. enums["MAV_ODID_UA_TYPE"][9] = EnumEntry("MAV_ODID_UA_TYPE_CAPTIVE_BALLOON", """Captive Balloon.""")
  5516. MAV_ODID_UA_TYPE_AIRSHIP = 10
  5517. enums["MAV_ODID_UA_TYPE"][10] = EnumEntry("MAV_ODID_UA_TYPE_AIRSHIP", """Airship. E.g. a blimp.""")
  5518. MAV_ODID_UA_TYPE_FREE_FALL_PARACHUTE = 11
  5519. enums["MAV_ODID_UA_TYPE"][11] = EnumEntry("MAV_ODID_UA_TYPE_FREE_FALL_PARACHUTE", """Free Fall/Parachute (unpowered).""")
  5520. MAV_ODID_UA_TYPE_ROCKET = 12
  5521. enums["MAV_ODID_UA_TYPE"][12] = EnumEntry("MAV_ODID_UA_TYPE_ROCKET", """Rocket.""")
  5522. MAV_ODID_UA_TYPE_TETHERED_POWERED_AIRCRAFT = 13
  5523. enums["MAV_ODID_UA_TYPE"][13] = EnumEntry("MAV_ODID_UA_TYPE_TETHERED_POWERED_AIRCRAFT", """Tethered powered aircraft.""")
  5524. MAV_ODID_UA_TYPE_GROUND_OBSTACLE = 14
  5525. enums["MAV_ODID_UA_TYPE"][14] = EnumEntry("MAV_ODID_UA_TYPE_GROUND_OBSTACLE", """Ground Obstacle.""")
  5526. MAV_ODID_UA_TYPE_OTHER = 15
  5527. enums["MAV_ODID_UA_TYPE"][15] = EnumEntry("MAV_ODID_UA_TYPE_OTHER", """Other type of aircraft not listed earlier.""")
  5528. MAV_ODID_UA_TYPE_ENUM_END = 16
  5529. enums["MAV_ODID_UA_TYPE"][16] = EnumEntry("MAV_ODID_UA_TYPE_ENUM_END", """""")
  5530. # MAV_ODID_STATUS
  5531. enums["MAV_ODID_STATUS"] = Enum()
  5532. enums["MAV_ODID_STATUS"].bitmask = False
  5533. MAV_ODID_STATUS_UNDECLARED = 0
  5534. enums["MAV_ODID_STATUS"][0] = EnumEntry("MAV_ODID_STATUS_UNDECLARED", """The status of the (UA) Unmanned Aircraft is undefined.""")
  5535. MAV_ODID_STATUS_GROUND = 1
  5536. enums["MAV_ODID_STATUS"][1] = EnumEntry("MAV_ODID_STATUS_GROUND", """The UA is on the ground.""")
  5537. MAV_ODID_STATUS_AIRBORNE = 2
  5538. enums["MAV_ODID_STATUS"][2] = EnumEntry("MAV_ODID_STATUS_AIRBORNE", """The UA is in the air.""")
  5539. MAV_ODID_STATUS_EMERGENCY = 3
  5540. enums["MAV_ODID_STATUS"][3] = EnumEntry("MAV_ODID_STATUS_EMERGENCY", """The UA is having an emergency.""")
  5541. MAV_ODID_STATUS_REMOTE_ID_SYSTEM_FAILURE = 4
  5542. enums["MAV_ODID_STATUS"][4] = EnumEntry("MAV_ODID_STATUS_REMOTE_ID_SYSTEM_FAILURE", """The remote ID system is failing or unreliable in some way.""")
  5543. MAV_ODID_STATUS_ENUM_END = 5
  5544. enums["MAV_ODID_STATUS"][5] = EnumEntry("MAV_ODID_STATUS_ENUM_END", """""")
  5545. # MAV_ODID_HEIGHT_REF
  5546. enums["MAV_ODID_HEIGHT_REF"] = Enum()
  5547. enums["MAV_ODID_HEIGHT_REF"].bitmask = False
  5548. MAV_ODID_HEIGHT_REF_OVER_TAKEOFF = 0
  5549. enums["MAV_ODID_HEIGHT_REF"][0] = EnumEntry("MAV_ODID_HEIGHT_REF_OVER_TAKEOFF", """The height field is relative to the take-off location.""")
  5550. MAV_ODID_HEIGHT_REF_OVER_GROUND = 1
  5551. enums["MAV_ODID_HEIGHT_REF"][1] = EnumEntry("MAV_ODID_HEIGHT_REF_OVER_GROUND", """The height field is relative to ground.""")
  5552. MAV_ODID_HEIGHT_REF_ENUM_END = 2
  5553. enums["MAV_ODID_HEIGHT_REF"][2] = EnumEntry("MAV_ODID_HEIGHT_REF_ENUM_END", """""")
  5554. # MAV_ODID_HOR_ACC
  5555. enums["MAV_ODID_HOR_ACC"] = Enum()
  5556. enums["MAV_ODID_HOR_ACC"].bitmask = False
  5557. MAV_ODID_HOR_ACC_UNKNOWN = 0
  5558. enums["MAV_ODID_HOR_ACC"][0] = EnumEntry("MAV_ODID_HOR_ACC_UNKNOWN", """The horizontal accuracy is unknown.""")
  5559. MAV_ODID_HOR_ACC_10NM = 1
  5560. enums["MAV_ODID_HOR_ACC"][1] = EnumEntry("MAV_ODID_HOR_ACC_10NM", """The horizontal accuracy is smaller than 10 Nautical Miles. 18.52 km.""")
  5561. MAV_ODID_HOR_ACC_4NM = 2
  5562. enums["MAV_ODID_HOR_ACC"][2] = EnumEntry("MAV_ODID_HOR_ACC_4NM", """The horizontal accuracy is smaller than 4 Nautical Miles. 7.408 km.""")
  5563. MAV_ODID_HOR_ACC_2NM = 3
  5564. enums["MAV_ODID_HOR_ACC"][3] = EnumEntry("MAV_ODID_HOR_ACC_2NM", """The horizontal accuracy is smaller than 2 Nautical Miles. 3.704 km.""")
  5565. MAV_ODID_HOR_ACC_1NM = 4
  5566. enums["MAV_ODID_HOR_ACC"][4] = EnumEntry("MAV_ODID_HOR_ACC_1NM", """The horizontal accuracy is smaller than 1 Nautical Miles. 1.852 km.""")
  5567. MAV_ODID_HOR_ACC_0_5NM = 5
  5568. enums["MAV_ODID_HOR_ACC"][5] = EnumEntry("MAV_ODID_HOR_ACC_0_5NM", """The horizontal accuracy is smaller than 0.5 Nautical Miles. 926 m.""")
  5569. MAV_ODID_HOR_ACC_0_3NM = 6
  5570. enums["MAV_ODID_HOR_ACC"][6] = EnumEntry("MAV_ODID_HOR_ACC_0_3NM", """The horizontal accuracy is smaller than 0.3 Nautical Miles. 555.6 m.""")
  5571. MAV_ODID_HOR_ACC_0_1NM = 7
  5572. enums["MAV_ODID_HOR_ACC"][7] = EnumEntry("MAV_ODID_HOR_ACC_0_1NM", """The horizontal accuracy is smaller than 0.1 Nautical Miles. 185.2 m.""")
  5573. MAV_ODID_HOR_ACC_0_05NM = 8
  5574. enums["MAV_ODID_HOR_ACC"][8] = EnumEntry("MAV_ODID_HOR_ACC_0_05NM", """The horizontal accuracy is smaller than 0.05 Nautical Miles. 92.6 m.""")
  5575. MAV_ODID_HOR_ACC_30_METER = 9
  5576. enums["MAV_ODID_HOR_ACC"][9] = EnumEntry("MAV_ODID_HOR_ACC_30_METER", """The horizontal accuracy is smaller than 30 meter.""")
  5577. MAV_ODID_HOR_ACC_10_METER = 10
  5578. enums["MAV_ODID_HOR_ACC"][10] = EnumEntry("MAV_ODID_HOR_ACC_10_METER", """The horizontal accuracy is smaller than 10 meter.""")
  5579. MAV_ODID_HOR_ACC_3_METER = 11
  5580. enums["MAV_ODID_HOR_ACC"][11] = EnumEntry("MAV_ODID_HOR_ACC_3_METER", """The horizontal accuracy is smaller than 3 meter.""")
  5581. MAV_ODID_HOR_ACC_1_METER = 12
  5582. enums["MAV_ODID_HOR_ACC"][12] = EnumEntry("MAV_ODID_HOR_ACC_1_METER", """The horizontal accuracy is smaller than 1 meter.""")
  5583. MAV_ODID_HOR_ACC_ENUM_END = 13
  5584. enums["MAV_ODID_HOR_ACC"][13] = EnumEntry("MAV_ODID_HOR_ACC_ENUM_END", """""")
  5585. # MAV_ODID_VER_ACC
  5586. enums["MAV_ODID_VER_ACC"] = Enum()
  5587. enums["MAV_ODID_VER_ACC"].bitmask = False
  5588. MAV_ODID_VER_ACC_UNKNOWN = 0
  5589. enums["MAV_ODID_VER_ACC"][0] = EnumEntry("MAV_ODID_VER_ACC_UNKNOWN", """The vertical accuracy is unknown.""")
  5590. MAV_ODID_VER_ACC_150_METER = 1
  5591. enums["MAV_ODID_VER_ACC"][1] = EnumEntry("MAV_ODID_VER_ACC_150_METER", """The vertical accuracy is smaller than 150 meter.""")
  5592. MAV_ODID_VER_ACC_45_METER = 2
  5593. enums["MAV_ODID_VER_ACC"][2] = EnumEntry("MAV_ODID_VER_ACC_45_METER", """The vertical accuracy is smaller than 45 meter.""")
  5594. MAV_ODID_VER_ACC_25_METER = 3
  5595. enums["MAV_ODID_VER_ACC"][3] = EnumEntry("MAV_ODID_VER_ACC_25_METER", """The vertical accuracy is smaller than 25 meter.""")
  5596. MAV_ODID_VER_ACC_10_METER = 4
  5597. enums["MAV_ODID_VER_ACC"][4] = EnumEntry("MAV_ODID_VER_ACC_10_METER", """The vertical accuracy is smaller than 10 meter.""")
  5598. MAV_ODID_VER_ACC_3_METER = 5
  5599. enums["MAV_ODID_VER_ACC"][5] = EnumEntry("MAV_ODID_VER_ACC_3_METER", """The vertical accuracy is smaller than 3 meter.""")
  5600. MAV_ODID_VER_ACC_1_METER = 6
  5601. enums["MAV_ODID_VER_ACC"][6] = EnumEntry("MAV_ODID_VER_ACC_1_METER", """The vertical accuracy is smaller than 1 meter.""")
  5602. MAV_ODID_VER_ACC_ENUM_END = 7
  5603. enums["MAV_ODID_VER_ACC"][7] = EnumEntry("MAV_ODID_VER_ACC_ENUM_END", """""")
  5604. # MAV_ODID_SPEED_ACC
  5605. enums["MAV_ODID_SPEED_ACC"] = Enum()
  5606. enums["MAV_ODID_SPEED_ACC"].bitmask = False
  5607. MAV_ODID_SPEED_ACC_UNKNOWN = 0
  5608. enums["MAV_ODID_SPEED_ACC"][0] = EnumEntry("MAV_ODID_SPEED_ACC_UNKNOWN", """The speed accuracy is unknown.""")
  5609. MAV_ODID_SPEED_ACC_10_METERS_PER_SECOND = 1
  5610. enums["MAV_ODID_SPEED_ACC"][1] = EnumEntry("MAV_ODID_SPEED_ACC_10_METERS_PER_SECOND", """The speed accuracy is smaller than 10 meters per second.""")
  5611. MAV_ODID_SPEED_ACC_3_METERS_PER_SECOND = 2
  5612. enums["MAV_ODID_SPEED_ACC"][2] = EnumEntry("MAV_ODID_SPEED_ACC_3_METERS_PER_SECOND", """The speed accuracy is smaller than 3 meters per second.""")
  5613. MAV_ODID_SPEED_ACC_1_METERS_PER_SECOND = 3
  5614. enums["MAV_ODID_SPEED_ACC"][3] = EnumEntry("MAV_ODID_SPEED_ACC_1_METERS_PER_SECOND", """The speed accuracy is smaller than 1 meters per second.""")
  5615. MAV_ODID_SPEED_ACC_0_3_METERS_PER_SECOND = 4
  5616. enums["MAV_ODID_SPEED_ACC"][4] = EnumEntry("MAV_ODID_SPEED_ACC_0_3_METERS_PER_SECOND", """The speed accuracy is smaller than 0.3 meters per second.""")
  5617. MAV_ODID_SPEED_ACC_ENUM_END = 5
  5618. enums["MAV_ODID_SPEED_ACC"][5] = EnumEntry("MAV_ODID_SPEED_ACC_ENUM_END", """""")
  5619. # MAV_ODID_TIME_ACC
  5620. enums["MAV_ODID_TIME_ACC"] = Enum()
  5621. enums["MAV_ODID_TIME_ACC"].bitmask = False
  5622. MAV_ODID_TIME_ACC_UNKNOWN = 0
  5623. enums["MAV_ODID_TIME_ACC"][0] = EnumEntry("MAV_ODID_TIME_ACC_UNKNOWN", """The timestamp accuracy is unknown.""")
  5624. MAV_ODID_TIME_ACC_0_1_SECOND = 1
  5625. enums["MAV_ODID_TIME_ACC"][1] = EnumEntry("MAV_ODID_TIME_ACC_0_1_SECOND", """The timestamp accuracy is smaller than or equal to 0.1 second.""")
  5626. MAV_ODID_TIME_ACC_0_2_SECOND = 2
  5627. enums["MAV_ODID_TIME_ACC"][2] = EnumEntry("MAV_ODID_TIME_ACC_0_2_SECOND", """The timestamp accuracy is smaller than or equal to 0.2 second.""")
  5628. MAV_ODID_TIME_ACC_0_3_SECOND = 3
  5629. enums["MAV_ODID_TIME_ACC"][3] = EnumEntry("MAV_ODID_TIME_ACC_0_3_SECOND", """The timestamp accuracy is smaller than or equal to 0.3 second.""")
  5630. MAV_ODID_TIME_ACC_0_4_SECOND = 4
  5631. enums["MAV_ODID_TIME_ACC"][4] = EnumEntry("MAV_ODID_TIME_ACC_0_4_SECOND", """The timestamp accuracy is smaller than or equal to 0.4 second.""")
  5632. MAV_ODID_TIME_ACC_0_5_SECOND = 5
  5633. enums["MAV_ODID_TIME_ACC"][5] = EnumEntry("MAV_ODID_TIME_ACC_0_5_SECOND", """The timestamp accuracy is smaller than or equal to 0.5 second.""")
  5634. MAV_ODID_TIME_ACC_0_6_SECOND = 6
  5635. enums["MAV_ODID_TIME_ACC"][6] = EnumEntry("MAV_ODID_TIME_ACC_0_6_SECOND", """The timestamp accuracy is smaller than or equal to 0.6 second.""")
  5636. MAV_ODID_TIME_ACC_0_7_SECOND = 7
  5637. enums["MAV_ODID_TIME_ACC"][7] = EnumEntry("MAV_ODID_TIME_ACC_0_7_SECOND", """The timestamp accuracy is smaller than or equal to 0.7 second.""")
  5638. MAV_ODID_TIME_ACC_0_8_SECOND = 8
  5639. enums["MAV_ODID_TIME_ACC"][8] = EnumEntry("MAV_ODID_TIME_ACC_0_8_SECOND", """The timestamp accuracy is smaller than or equal to 0.8 second.""")
  5640. MAV_ODID_TIME_ACC_0_9_SECOND = 9
  5641. enums["MAV_ODID_TIME_ACC"][9] = EnumEntry("MAV_ODID_TIME_ACC_0_9_SECOND", """The timestamp accuracy is smaller than or equal to 0.9 second.""")
  5642. MAV_ODID_TIME_ACC_1_0_SECOND = 10
  5643. enums["MAV_ODID_TIME_ACC"][10] = EnumEntry("MAV_ODID_TIME_ACC_1_0_SECOND", """The timestamp accuracy is smaller than or equal to 1.0 second.""")
  5644. MAV_ODID_TIME_ACC_1_1_SECOND = 11
  5645. enums["MAV_ODID_TIME_ACC"][11] = EnumEntry("MAV_ODID_TIME_ACC_1_1_SECOND", """The timestamp accuracy is smaller than or equal to 1.1 second.""")
  5646. MAV_ODID_TIME_ACC_1_2_SECOND = 12
  5647. enums["MAV_ODID_TIME_ACC"][12] = EnumEntry("MAV_ODID_TIME_ACC_1_2_SECOND", """The timestamp accuracy is smaller than or equal to 1.2 second.""")
  5648. MAV_ODID_TIME_ACC_1_3_SECOND = 13
  5649. enums["MAV_ODID_TIME_ACC"][13] = EnumEntry("MAV_ODID_TIME_ACC_1_3_SECOND", """The timestamp accuracy is smaller than or equal to 1.3 second.""")
  5650. MAV_ODID_TIME_ACC_1_4_SECOND = 14
  5651. enums["MAV_ODID_TIME_ACC"][14] = EnumEntry("MAV_ODID_TIME_ACC_1_4_SECOND", """The timestamp accuracy is smaller than or equal to 1.4 second.""")
  5652. MAV_ODID_TIME_ACC_1_5_SECOND = 15
  5653. enums["MAV_ODID_TIME_ACC"][15] = EnumEntry("MAV_ODID_TIME_ACC_1_5_SECOND", """The timestamp accuracy is smaller than or equal to 1.5 second.""")
  5654. MAV_ODID_TIME_ACC_ENUM_END = 16
  5655. enums["MAV_ODID_TIME_ACC"][16] = EnumEntry("MAV_ODID_TIME_ACC_ENUM_END", """""")
  5656. # MAV_ODID_AUTH_TYPE
  5657. enums["MAV_ODID_AUTH_TYPE"] = Enum()
  5658. enums["MAV_ODID_AUTH_TYPE"].bitmask = False
  5659. MAV_ODID_AUTH_TYPE_NONE = 0
  5660. enums["MAV_ODID_AUTH_TYPE"][0] = EnumEntry("MAV_ODID_AUTH_TYPE_NONE", """No authentication type is specified.""")
  5661. MAV_ODID_AUTH_TYPE_UAS_ID_SIGNATURE = 1
  5662. enums["MAV_ODID_AUTH_TYPE"][1] = EnumEntry("MAV_ODID_AUTH_TYPE_UAS_ID_SIGNATURE", """Signature for the UAS (Unmanned Aircraft System) ID.""")
  5663. MAV_ODID_AUTH_TYPE_OPERATOR_ID_SIGNATURE = 2
  5664. enums["MAV_ODID_AUTH_TYPE"][2] = EnumEntry("MAV_ODID_AUTH_TYPE_OPERATOR_ID_SIGNATURE", """Signature for the Operator ID.""")
  5665. MAV_ODID_AUTH_TYPE_MESSAGE_SET_SIGNATURE = 3
  5666. enums["MAV_ODID_AUTH_TYPE"][3] = EnumEntry("MAV_ODID_AUTH_TYPE_MESSAGE_SET_SIGNATURE", """Signature for the entire message set.""")
  5667. MAV_ODID_AUTH_TYPE_NETWORK_REMOTE_ID = 4
  5668. enums["MAV_ODID_AUTH_TYPE"][4] = EnumEntry("MAV_ODID_AUTH_TYPE_NETWORK_REMOTE_ID", """Authentication is provided by Network Remote ID.""")
  5669. MAV_ODID_AUTH_TYPE_SPECIFIC_AUTHENTICATION = 5
  5670. enums["MAV_ODID_AUTH_TYPE"][5] = EnumEntry("MAV_ODID_AUTH_TYPE_SPECIFIC_AUTHENTICATION", """The exact authentication type is indicated by the first byte of authentication_data and these type values are managed by ICAO.""")
  5671. MAV_ODID_AUTH_TYPE_ENUM_END = 6
  5672. enums["MAV_ODID_AUTH_TYPE"][6] = EnumEntry("MAV_ODID_AUTH_TYPE_ENUM_END", """""")
  5673. # MAV_ODID_DESC_TYPE
  5674. enums["MAV_ODID_DESC_TYPE"] = Enum()
  5675. enums["MAV_ODID_DESC_TYPE"].bitmask = False
  5676. MAV_ODID_DESC_TYPE_TEXT = 0
  5677. enums["MAV_ODID_DESC_TYPE"][0] = EnumEntry("MAV_ODID_DESC_TYPE_TEXT", """Optional free-form text description of the purpose of the flight.""")
  5678. MAV_ODID_DESC_TYPE_EMERGENCY = 1
  5679. enums["MAV_ODID_DESC_TYPE"][1] = EnumEntry("MAV_ODID_DESC_TYPE_EMERGENCY", """Optional additional clarification when status == MAV_ODID_STATUS_EMERGENCY.""")
  5680. MAV_ODID_DESC_TYPE_EXTENDED_STATUS = 2
  5681. enums["MAV_ODID_DESC_TYPE"][2] = EnumEntry("MAV_ODID_DESC_TYPE_EXTENDED_STATUS", """Optional additional clarification when status != MAV_ODID_STATUS_EMERGENCY.""")
  5682. MAV_ODID_DESC_TYPE_ENUM_END = 3
  5683. enums["MAV_ODID_DESC_TYPE"][3] = EnumEntry("MAV_ODID_DESC_TYPE_ENUM_END", """""")
  5684. # MAV_ODID_OPERATOR_LOCATION_TYPE
  5685. enums["MAV_ODID_OPERATOR_LOCATION_TYPE"] = Enum()
  5686. enums["MAV_ODID_OPERATOR_LOCATION_TYPE"].bitmask = False
  5687. MAV_ODID_OPERATOR_LOCATION_TYPE_TAKEOFF = 0
  5688. enums["MAV_ODID_OPERATOR_LOCATION_TYPE"][0] = EnumEntry("MAV_ODID_OPERATOR_LOCATION_TYPE_TAKEOFF", """The location/altitude of the operator is the same as the take-off location.""")
  5689. MAV_ODID_OPERATOR_LOCATION_TYPE_LIVE_GNSS = 1
  5690. enums["MAV_ODID_OPERATOR_LOCATION_TYPE"][1] = EnumEntry("MAV_ODID_OPERATOR_LOCATION_TYPE_LIVE_GNSS", """The location/altitude of the operator is dynamic. E.g. based on live GNSS data.""")
  5691. MAV_ODID_OPERATOR_LOCATION_TYPE_FIXED = 2
  5692. enums["MAV_ODID_OPERATOR_LOCATION_TYPE"][2] = EnumEntry("MAV_ODID_OPERATOR_LOCATION_TYPE_FIXED", """The location/altitude of the operator are fixed values.""")
  5693. MAV_ODID_OPERATOR_LOCATION_TYPE_ENUM_END = 3
  5694. enums["MAV_ODID_OPERATOR_LOCATION_TYPE"][3] = EnumEntry("MAV_ODID_OPERATOR_LOCATION_TYPE_ENUM_END", """""")
  5695. # MAV_ODID_CLASSIFICATION_TYPE
  5696. enums["MAV_ODID_CLASSIFICATION_TYPE"] = Enum()
  5697. enums["MAV_ODID_CLASSIFICATION_TYPE"].bitmask = False
  5698. MAV_ODID_CLASSIFICATION_TYPE_UNDECLARED = 0
  5699. enums["MAV_ODID_CLASSIFICATION_TYPE"][0] = EnumEntry("MAV_ODID_CLASSIFICATION_TYPE_UNDECLARED", """The classification type for the UA is undeclared.""")
  5700. MAV_ODID_CLASSIFICATION_TYPE_EU = 1
  5701. enums["MAV_ODID_CLASSIFICATION_TYPE"][1] = EnumEntry("MAV_ODID_CLASSIFICATION_TYPE_EU", """The classification type for the UA follows EU (European Union) specifications.""")
  5702. MAV_ODID_CLASSIFICATION_TYPE_ENUM_END = 2
  5703. enums["MAV_ODID_CLASSIFICATION_TYPE"][2] = EnumEntry("MAV_ODID_CLASSIFICATION_TYPE_ENUM_END", """""")
  5704. # MAV_ODID_CATEGORY_EU
  5705. enums["MAV_ODID_CATEGORY_EU"] = Enum()
  5706. enums["MAV_ODID_CATEGORY_EU"].bitmask = False
  5707. MAV_ODID_CATEGORY_EU_UNDECLARED = 0
  5708. enums["MAV_ODID_CATEGORY_EU"][0] = EnumEntry("MAV_ODID_CATEGORY_EU_UNDECLARED", """The category for the UA, according to the EU specification, is undeclared.""")
  5709. MAV_ODID_CATEGORY_EU_OPEN = 1
  5710. enums["MAV_ODID_CATEGORY_EU"][1] = EnumEntry("MAV_ODID_CATEGORY_EU_OPEN", """The category for the UA, according to the EU specification, is the Open category.""")
  5711. MAV_ODID_CATEGORY_EU_SPECIFIC = 2
  5712. enums["MAV_ODID_CATEGORY_EU"][2] = EnumEntry("MAV_ODID_CATEGORY_EU_SPECIFIC", """The category for the UA, according to the EU specification, is the Specific category.""")
  5713. MAV_ODID_CATEGORY_EU_CERTIFIED = 3
  5714. enums["MAV_ODID_CATEGORY_EU"][3] = EnumEntry("MAV_ODID_CATEGORY_EU_CERTIFIED", """The category for the UA, according to the EU specification, is the Certified category.""")
  5715. MAV_ODID_CATEGORY_EU_ENUM_END = 4
  5716. enums["MAV_ODID_CATEGORY_EU"][4] = EnumEntry("MAV_ODID_CATEGORY_EU_ENUM_END", """""")
  5717. # MAV_ODID_CLASS_EU
  5718. enums["MAV_ODID_CLASS_EU"] = Enum()
  5719. enums["MAV_ODID_CLASS_EU"].bitmask = False
  5720. MAV_ODID_CLASS_EU_UNDECLARED = 0
  5721. enums["MAV_ODID_CLASS_EU"][0] = EnumEntry("MAV_ODID_CLASS_EU_UNDECLARED", """The class for the UA, according to the EU specification, is undeclared.""")
  5722. MAV_ODID_CLASS_EU_CLASS_0 = 1
  5723. enums["MAV_ODID_CLASS_EU"][1] = EnumEntry("MAV_ODID_CLASS_EU_CLASS_0", """The class for the UA, according to the EU specification, is Class 0.""")
  5724. MAV_ODID_CLASS_EU_CLASS_1 = 2
  5725. enums["MAV_ODID_CLASS_EU"][2] = EnumEntry("MAV_ODID_CLASS_EU_CLASS_1", """The class for the UA, according to the EU specification, is Class 1.""")
  5726. MAV_ODID_CLASS_EU_CLASS_2 = 3
  5727. enums["MAV_ODID_CLASS_EU"][3] = EnumEntry("MAV_ODID_CLASS_EU_CLASS_2", """The class for the UA, according to the EU specification, is Class 2.""")
  5728. MAV_ODID_CLASS_EU_CLASS_3 = 4
  5729. enums["MAV_ODID_CLASS_EU"][4] = EnumEntry("MAV_ODID_CLASS_EU_CLASS_3", """The class for the UA, according to the EU specification, is Class 3.""")
  5730. MAV_ODID_CLASS_EU_CLASS_4 = 5
  5731. enums["MAV_ODID_CLASS_EU"][5] = EnumEntry("MAV_ODID_CLASS_EU_CLASS_4", """The class for the UA, according to the EU specification, is Class 4.""")
  5732. MAV_ODID_CLASS_EU_CLASS_5 = 6
  5733. enums["MAV_ODID_CLASS_EU"][6] = EnumEntry("MAV_ODID_CLASS_EU_CLASS_5", """The class for the UA, according to the EU specification, is Class 5.""")
  5734. MAV_ODID_CLASS_EU_CLASS_6 = 7
  5735. enums["MAV_ODID_CLASS_EU"][7] = EnumEntry("MAV_ODID_CLASS_EU_CLASS_6", """The class for the UA, according to the EU specification, is Class 6.""")
  5736. MAV_ODID_CLASS_EU_ENUM_END = 8
  5737. enums["MAV_ODID_CLASS_EU"][8] = EnumEntry("MAV_ODID_CLASS_EU_ENUM_END", """""")
  5738. # MAV_ODID_OPERATOR_ID_TYPE
  5739. enums["MAV_ODID_OPERATOR_ID_TYPE"] = Enum()
  5740. enums["MAV_ODID_OPERATOR_ID_TYPE"].bitmask = False
  5741. MAV_ODID_OPERATOR_ID_TYPE_CAA = 0
  5742. enums["MAV_ODID_OPERATOR_ID_TYPE"][0] = EnumEntry("MAV_ODID_OPERATOR_ID_TYPE_CAA", """CAA (Civil Aviation Authority) registered operator ID.""")
  5743. MAV_ODID_OPERATOR_ID_TYPE_ENUM_END = 1
  5744. enums["MAV_ODID_OPERATOR_ID_TYPE"][1] = EnumEntry("MAV_ODID_OPERATOR_ID_TYPE_ENUM_END", """""")
  5745. # MAV_ODID_ARM_STATUS
  5746. enums["MAV_ODID_ARM_STATUS"] = Enum()
  5747. enums["MAV_ODID_ARM_STATUS"].bitmask = False
  5748. MAV_ODID_ARM_STATUS_GOOD_TO_ARM = 0
  5749. enums["MAV_ODID_ARM_STATUS"][0] = EnumEntry("MAV_ODID_ARM_STATUS_GOOD_TO_ARM", """Passing arming checks.""")
  5750. MAV_ODID_ARM_STATUS_PRE_ARM_FAIL_GENERIC = 1
  5751. enums["MAV_ODID_ARM_STATUS"][1] = EnumEntry("MAV_ODID_ARM_STATUS_PRE_ARM_FAIL_GENERIC", """Generic arming failure, see error string for details.""")
  5752. MAV_ODID_ARM_STATUS_ENUM_END = 2
  5753. enums["MAV_ODID_ARM_STATUS"][2] = EnumEntry("MAV_ODID_ARM_STATUS_ENUM_END", """""")
  5754. # TUNE_FORMAT
  5755. enums["TUNE_FORMAT"] = Enum()
  5756. enums["TUNE_FORMAT"].bitmask = False
  5757. TUNE_FORMAT_QBASIC1_1 = 1
  5758. enums["TUNE_FORMAT"][1] = EnumEntry("TUNE_FORMAT_QBASIC1_1", """Format is QBasic 1.1 Play: https://www.qbasic.net/en/reference/qb11/Statement/PLAY-006.htm.""")
  5759. TUNE_FORMAT_MML_MODERN = 2
  5760. enums["TUNE_FORMAT"][2] = EnumEntry("TUNE_FORMAT_MML_MODERN", """Format is Modern Music Markup Language (MML): https://en.wikipedia.org/wiki/Music_Macro_Language#Modern_MML.""")
  5761. TUNE_FORMAT_ENUM_END = 3
  5762. enums["TUNE_FORMAT"][3] = EnumEntry("TUNE_FORMAT_ENUM_END", """""")
  5763. # AIS_TYPE
  5764. enums["AIS_TYPE"] = Enum()
  5765. enums["AIS_TYPE"].bitmask = False
  5766. AIS_TYPE_UNKNOWN = 0
  5767. enums["AIS_TYPE"][0] = EnumEntry("AIS_TYPE_UNKNOWN", """Not available (default).""")
  5768. AIS_TYPE_RESERVED_1 = 1
  5769. enums["AIS_TYPE"][1] = EnumEntry("AIS_TYPE_RESERVED_1", """""")
  5770. AIS_TYPE_RESERVED_2 = 2
  5771. enums["AIS_TYPE"][2] = EnumEntry("AIS_TYPE_RESERVED_2", """""")
  5772. AIS_TYPE_RESERVED_3 = 3
  5773. enums["AIS_TYPE"][3] = EnumEntry("AIS_TYPE_RESERVED_3", """""")
  5774. AIS_TYPE_RESERVED_4 = 4
  5775. enums["AIS_TYPE"][4] = EnumEntry("AIS_TYPE_RESERVED_4", """""")
  5776. AIS_TYPE_RESERVED_5 = 5
  5777. enums["AIS_TYPE"][5] = EnumEntry("AIS_TYPE_RESERVED_5", """""")
  5778. AIS_TYPE_RESERVED_6 = 6
  5779. enums["AIS_TYPE"][6] = EnumEntry("AIS_TYPE_RESERVED_6", """""")
  5780. AIS_TYPE_RESERVED_7 = 7
  5781. enums["AIS_TYPE"][7] = EnumEntry("AIS_TYPE_RESERVED_7", """""")
  5782. AIS_TYPE_RESERVED_8 = 8
  5783. enums["AIS_TYPE"][8] = EnumEntry("AIS_TYPE_RESERVED_8", """""")
  5784. AIS_TYPE_RESERVED_9 = 9
  5785. enums["AIS_TYPE"][9] = EnumEntry("AIS_TYPE_RESERVED_9", """""")
  5786. AIS_TYPE_RESERVED_10 = 10
  5787. enums["AIS_TYPE"][10] = EnumEntry("AIS_TYPE_RESERVED_10", """""")
  5788. AIS_TYPE_RESERVED_11 = 11
  5789. enums["AIS_TYPE"][11] = EnumEntry("AIS_TYPE_RESERVED_11", """""")
  5790. AIS_TYPE_RESERVED_12 = 12
  5791. enums["AIS_TYPE"][12] = EnumEntry("AIS_TYPE_RESERVED_12", """""")
  5792. AIS_TYPE_RESERVED_13 = 13
  5793. enums["AIS_TYPE"][13] = EnumEntry("AIS_TYPE_RESERVED_13", """""")
  5794. AIS_TYPE_RESERVED_14 = 14
  5795. enums["AIS_TYPE"][14] = EnumEntry("AIS_TYPE_RESERVED_14", """""")
  5796. AIS_TYPE_RESERVED_15 = 15
  5797. enums["AIS_TYPE"][15] = EnumEntry("AIS_TYPE_RESERVED_15", """""")
  5798. AIS_TYPE_RESERVED_16 = 16
  5799. enums["AIS_TYPE"][16] = EnumEntry("AIS_TYPE_RESERVED_16", """""")
  5800. AIS_TYPE_RESERVED_17 = 17
  5801. enums["AIS_TYPE"][17] = EnumEntry("AIS_TYPE_RESERVED_17", """""")
  5802. AIS_TYPE_RESERVED_18 = 18
  5803. enums["AIS_TYPE"][18] = EnumEntry("AIS_TYPE_RESERVED_18", """""")
  5804. AIS_TYPE_RESERVED_19 = 19
  5805. enums["AIS_TYPE"][19] = EnumEntry("AIS_TYPE_RESERVED_19", """""")
  5806. AIS_TYPE_WIG = 20
  5807. enums["AIS_TYPE"][20] = EnumEntry("AIS_TYPE_WIG", """Wing In Ground effect.""")
  5808. AIS_TYPE_WIG_HAZARDOUS_A = 21
  5809. enums["AIS_TYPE"][21] = EnumEntry("AIS_TYPE_WIG_HAZARDOUS_A", """""")
  5810. AIS_TYPE_WIG_HAZARDOUS_B = 22
  5811. enums["AIS_TYPE"][22] = EnumEntry("AIS_TYPE_WIG_HAZARDOUS_B", """""")
  5812. AIS_TYPE_WIG_HAZARDOUS_C = 23
  5813. enums["AIS_TYPE"][23] = EnumEntry("AIS_TYPE_WIG_HAZARDOUS_C", """""")
  5814. AIS_TYPE_WIG_HAZARDOUS_D = 24
  5815. enums["AIS_TYPE"][24] = EnumEntry("AIS_TYPE_WIG_HAZARDOUS_D", """""")
  5816. AIS_TYPE_WIG_RESERVED_1 = 25
  5817. enums["AIS_TYPE"][25] = EnumEntry("AIS_TYPE_WIG_RESERVED_1", """""")
  5818. AIS_TYPE_WIG_RESERVED_2 = 26
  5819. enums["AIS_TYPE"][26] = EnumEntry("AIS_TYPE_WIG_RESERVED_2", """""")
  5820. AIS_TYPE_WIG_RESERVED_3 = 27
  5821. enums["AIS_TYPE"][27] = EnumEntry("AIS_TYPE_WIG_RESERVED_3", """""")
  5822. AIS_TYPE_WIG_RESERVED_4 = 28
  5823. enums["AIS_TYPE"][28] = EnumEntry("AIS_TYPE_WIG_RESERVED_4", """""")
  5824. AIS_TYPE_WIG_RESERVED_5 = 29
  5825. enums["AIS_TYPE"][29] = EnumEntry("AIS_TYPE_WIG_RESERVED_5", """""")
  5826. AIS_TYPE_FISHING = 30
  5827. enums["AIS_TYPE"][30] = EnumEntry("AIS_TYPE_FISHING", """""")
  5828. AIS_TYPE_TOWING = 31
  5829. enums["AIS_TYPE"][31] = EnumEntry("AIS_TYPE_TOWING", """""")
  5830. AIS_TYPE_TOWING_LARGE = 32
  5831. enums["AIS_TYPE"][32] = EnumEntry("AIS_TYPE_TOWING_LARGE", """Towing: length exceeds 200m or breadth exceeds 25m.""")
  5832. AIS_TYPE_DREDGING = 33
  5833. enums["AIS_TYPE"][33] = EnumEntry("AIS_TYPE_DREDGING", """Dredging or other underwater ops.""")
  5834. AIS_TYPE_DIVING = 34
  5835. enums["AIS_TYPE"][34] = EnumEntry("AIS_TYPE_DIVING", """""")
  5836. AIS_TYPE_MILITARY = 35
  5837. enums["AIS_TYPE"][35] = EnumEntry("AIS_TYPE_MILITARY", """""")
  5838. AIS_TYPE_SAILING = 36
  5839. enums["AIS_TYPE"][36] = EnumEntry("AIS_TYPE_SAILING", """""")
  5840. AIS_TYPE_PLEASURE = 37
  5841. enums["AIS_TYPE"][37] = EnumEntry("AIS_TYPE_PLEASURE", """""")
  5842. AIS_TYPE_RESERVED_20 = 38
  5843. enums["AIS_TYPE"][38] = EnumEntry("AIS_TYPE_RESERVED_20", """""")
  5844. AIS_TYPE_RESERVED_21 = 39
  5845. enums["AIS_TYPE"][39] = EnumEntry("AIS_TYPE_RESERVED_21", """""")
  5846. AIS_TYPE_HSC = 40
  5847. enums["AIS_TYPE"][40] = EnumEntry("AIS_TYPE_HSC", """High Speed Craft.""")
  5848. AIS_TYPE_HSC_HAZARDOUS_A = 41
  5849. enums["AIS_TYPE"][41] = EnumEntry("AIS_TYPE_HSC_HAZARDOUS_A", """""")
  5850. AIS_TYPE_HSC_HAZARDOUS_B = 42
  5851. enums["AIS_TYPE"][42] = EnumEntry("AIS_TYPE_HSC_HAZARDOUS_B", """""")
  5852. AIS_TYPE_HSC_HAZARDOUS_C = 43
  5853. enums["AIS_TYPE"][43] = EnumEntry("AIS_TYPE_HSC_HAZARDOUS_C", """""")
  5854. AIS_TYPE_HSC_HAZARDOUS_D = 44
  5855. enums["AIS_TYPE"][44] = EnumEntry("AIS_TYPE_HSC_HAZARDOUS_D", """""")
  5856. AIS_TYPE_HSC_RESERVED_1 = 45
  5857. enums["AIS_TYPE"][45] = EnumEntry("AIS_TYPE_HSC_RESERVED_1", """""")
  5858. AIS_TYPE_HSC_RESERVED_2 = 46
  5859. enums["AIS_TYPE"][46] = EnumEntry("AIS_TYPE_HSC_RESERVED_2", """""")
  5860. AIS_TYPE_HSC_RESERVED_3 = 47
  5861. enums["AIS_TYPE"][47] = EnumEntry("AIS_TYPE_HSC_RESERVED_3", """""")
  5862. AIS_TYPE_HSC_RESERVED_4 = 48
  5863. enums["AIS_TYPE"][48] = EnumEntry("AIS_TYPE_HSC_RESERVED_4", """""")
  5864. AIS_TYPE_HSC_UNKNOWN = 49
  5865. enums["AIS_TYPE"][49] = EnumEntry("AIS_TYPE_HSC_UNKNOWN", """""")
  5866. AIS_TYPE_PILOT = 50
  5867. enums["AIS_TYPE"][50] = EnumEntry("AIS_TYPE_PILOT", """""")
  5868. AIS_TYPE_SAR = 51
  5869. enums["AIS_TYPE"][51] = EnumEntry("AIS_TYPE_SAR", """Search And Rescue vessel.""")
  5870. AIS_TYPE_TUG = 52
  5871. enums["AIS_TYPE"][52] = EnumEntry("AIS_TYPE_TUG", """""")
  5872. AIS_TYPE_PORT_TENDER = 53
  5873. enums["AIS_TYPE"][53] = EnumEntry("AIS_TYPE_PORT_TENDER", """""")
  5874. AIS_TYPE_ANTI_POLLUTION = 54
  5875. enums["AIS_TYPE"][54] = EnumEntry("AIS_TYPE_ANTI_POLLUTION", """Anti-pollution equipment.""")
  5876. AIS_TYPE_LAW_ENFORCEMENT = 55
  5877. enums["AIS_TYPE"][55] = EnumEntry("AIS_TYPE_LAW_ENFORCEMENT", """""")
  5878. AIS_TYPE_SPARE_LOCAL_1 = 56
  5879. enums["AIS_TYPE"][56] = EnumEntry("AIS_TYPE_SPARE_LOCAL_1", """""")
  5880. AIS_TYPE_SPARE_LOCAL_2 = 57
  5881. enums["AIS_TYPE"][57] = EnumEntry("AIS_TYPE_SPARE_LOCAL_2", """""")
  5882. AIS_TYPE_MEDICAL_TRANSPORT = 58
  5883. enums["AIS_TYPE"][58] = EnumEntry("AIS_TYPE_MEDICAL_TRANSPORT", """""")
  5884. AIS_TYPE_NONECOMBATANT = 59
  5885. enums["AIS_TYPE"][59] = EnumEntry("AIS_TYPE_NONECOMBATANT", """Noncombatant ship according to RR Resolution No. 18.""")
  5886. AIS_TYPE_PASSENGER = 60
  5887. enums["AIS_TYPE"][60] = EnumEntry("AIS_TYPE_PASSENGER", """""")
  5888. AIS_TYPE_PASSENGER_HAZARDOUS_A = 61
  5889. enums["AIS_TYPE"][61] = EnumEntry("AIS_TYPE_PASSENGER_HAZARDOUS_A", """""")
  5890. AIS_TYPE_PASSENGER_HAZARDOUS_B = 62
  5891. enums["AIS_TYPE"][62] = EnumEntry("AIS_TYPE_PASSENGER_HAZARDOUS_B", """""")
  5892. AIS_TYPE_PASSENGER_HAZARDOUS_C = 63
  5893. enums["AIS_TYPE"][63] = EnumEntry("AIS_TYPE_PASSENGER_HAZARDOUS_C", """""")
  5894. AIS_TYPE_PASSENGER_HAZARDOUS_D = 64
  5895. enums["AIS_TYPE"][64] = EnumEntry("AIS_TYPE_PASSENGER_HAZARDOUS_D", """""")
  5896. AIS_TYPE_PASSENGER_RESERVED_1 = 65
  5897. enums["AIS_TYPE"][65] = EnumEntry("AIS_TYPE_PASSENGER_RESERVED_1", """""")
  5898. AIS_TYPE_PASSENGER_RESERVED_2 = 66
  5899. enums["AIS_TYPE"][66] = EnumEntry("AIS_TYPE_PASSENGER_RESERVED_2", """""")
  5900. AIS_TYPE_PASSENGER_RESERVED_3 = 67
  5901. enums["AIS_TYPE"][67] = EnumEntry("AIS_TYPE_PASSENGER_RESERVED_3", """""")
  5902. AIS_TYPE_PASSENGER_RESERVED_4 = 68
  5903. enums["AIS_TYPE"][68] = EnumEntry("AIS_TYPE_PASSENGER_RESERVED_4", """""")
  5904. AIS_TYPE_PASSENGER_UNKNOWN = 69
  5905. enums["AIS_TYPE"][69] = EnumEntry("AIS_TYPE_PASSENGER_UNKNOWN", """""")
  5906. AIS_TYPE_CARGO = 70
  5907. enums["AIS_TYPE"][70] = EnumEntry("AIS_TYPE_CARGO", """""")
  5908. AIS_TYPE_CARGO_HAZARDOUS_A = 71
  5909. enums["AIS_TYPE"][71] = EnumEntry("AIS_TYPE_CARGO_HAZARDOUS_A", """""")
  5910. AIS_TYPE_CARGO_HAZARDOUS_B = 72
  5911. enums["AIS_TYPE"][72] = EnumEntry("AIS_TYPE_CARGO_HAZARDOUS_B", """""")
  5912. AIS_TYPE_CARGO_HAZARDOUS_C = 73
  5913. enums["AIS_TYPE"][73] = EnumEntry("AIS_TYPE_CARGO_HAZARDOUS_C", """""")
  5914. AIS_TYPE_CARGO_HAZARDOUS_D = 74
  5915. enums["AIS_TYPE"][74] = EnumEntry("AIS_TYPE_CARGO_HAZARDOUS_D", """""")
  5916. AIS_TYPE_CARGO_RESERVED_1 = 75
  5917. enums["AIS_TYPE"][75] = EnumEntry("AIS_TYPE_CARGO_RESERVED_1", """""")
  5918. AIS_TYPE_CARGO_RESERVED_2 = 76
  5919. enums["AIS_TYPE"][76] = EnumEntry("AIS_TYPE_CARGO_RESERVED_2", """""")
  5920. AIS_TYPE_CARGO_RESERVED_3 = 77
  5921. enums["AIS_TYPE"][77] = EnumEntry("AIS_TYPE_CARGO_RESERVED_3", """""")
  5922. AIS_TYPE_CARGO_RESERVED_4 = 78
  5923. enums["AIS_TYPE"][78] = EnumEntry("AIS_TYPE_CARGO_RESERVED_4", """""")
  5924. AIS_TYPE_CARGO_UNKNOWN = 79
  5925. enums["AIS_TYPE"][79] = EnumEntry("AIS_TYPE_CARGO_UNKNOWN", """""")
  5926. AIS_TYPE_TANKER = 80
  5927. enums["AIS_TYPE"][80] = EnumEntry("AIS_TYPE_TANKER", """""")
  5928. AIS_TYPE_TANKER_HAZARDOUS_A = 81
  5929. enums["AIS_TYPE"][81] = EnumEntry("AIS_TYPE_TANKER_HAZARDOUS_A", """""")
  5930. AIS_TYPE_TANKER_HAZARDOUS_B = 82
  5931. enums["AIS_TYPE"][82] = EnumEntry("AIS_TYPE_TANKER_HAZARDOUS_B", """""")
  5932. AIS_TYPE_TANKER_HAZARDOUS_C = 83
  5933. enums["AIS_TYPE"][83] = EnumEntry("AIS_TYPE_TANKER_HAZARDOUS_C", """""")
  5934. AIS_TYPE_TANKER_HAZARDOUS_D = 84
  5935. enums["AIS_TYPE"][84] = EnumEntry("AIS_TYPE_TANKER_HAZARDOUS_D", """""")
  5936. AIS_TYPE_TANKER_RESERVED_1 = 85
  5937. enums["AIS_TYPE"][85] = EnumEntry("AIS_TYPE_TANKER_RESERVED_1", """""")
  5938. AIS_TYPE_TANKER_RESERVED_2 = 86
  5939. enums["AIS_TYPE"][86] = EnumEntry("AIS_TYPE_TANKER_RESERVED_2", """""")
  5940. AIS_TYPE_TANKER_RESERVED_3 = 87
  5941. enums["AIS_TYPE"][87] = EnumEntry("AIS_TYPE_TANKER_RESERVED_3", """""")
  5942. AIS_TYPE_TANKER_RESERVED_4 = 88
  5943. enums["AIS_TYPE"][88] = EnumEntry("AIS_TYPE_TANKER_RESERVED_4", """""")
  5944. AIS_TYPE_TANKER_UNKNOWN = 89
  5945. enums["AIS_TYPE"][89] = EnumEntry("AIS_TYPE_TANKER_UNKNOWN", """""")
  5946. AIS_TYPE_OTHER = 90
  5947. enums["AIS_TYPE"][90] = EnumEntry("AIS_TYPE_OTHER", """""")
  5948. AIS_TYPE_OTHER_HAZARDOUS_A = 91
  5949. enums["AIS_TYPE"][91] = EnumEntry("AIS_TYPE_OTHER_HAZARDOUS_A", """""")
  5950. AIS_TYPE_OTHER_HAZARDOUS_B = 92
  5951. enums["AIS_TYPE"][92] = EnumEntry("AIS_TYPE_OTHER_HAZARDOUS_B", """""")
  5952. AIS_TYPE_OTHER_HAZARDOUS_C = 93
  5953. enums["AIS_TYPE"][93] = EnumEntry("AIS_TYPE_OTHER_HAZARDOUS_C", """""")
  5954. AIS_TYPE_OTHER_HAZARDOUS_D = 94
  5955. enums["AIS_TYPE"][94] = EnumEntry("AIS_TYPE_OTHER_HAZARDOUS_D", """""")
  5956. AIS_TYPE_OTHER_RESERVED_1 = 95
  5957. enums["AIS_TYPE"][95] = EnumEntry("AIS_TYPE_OTHER_RESERVED_1", """""")
  5958. AIS_TYPE_OTHER_RESERVED_2 = 96
  5959. enums["AIS_TYPE"][96] = EnumEntry("AIS_TYPE_OTHER_RESERVED_2", """""")
  5960. AIS_TYPE_OTHER_RESERVED_3 = 97
  5961. enums["AIS_TYPE"][97] = EnumEntry("AIS_TYPE_OTHER_RESERVED_3", """""")
  5962. AIS_TYPE_OTHER_RESERVED_4 = 98
  5963. enums["AIS_TYPE"][98] = EnumEntry("AIS_TYPE_OTHER_RESERVED_4", """""")
  5964. AIS_TYPE_OTHER_UNKNOWN = 99
  5965. enums["AIS_TYPE"][99] = EnumEntry("AIS_TYPE_OTHER_UNKNOWN", """""")
  5966. AIS_TYPE_ENUM_END = 100
  5967. enums["AIS_TYPE"][100] = EnumEntry("AIS_TYPE_ENUM_END", """""")
  5968. # AIS_NAV_STATUS
  5969. enums["AIS_NAV_STATUS"] = Enum()
  5970. enums["AIS_NAV_STATUS"].bitmask = False
  5971. UNDER_WAY = 0
  5972. enums["AIS_NAV_STATUS"][0] = EnumEntry("UNDER_WAY", """Under way using engine.""")
  5973. AIS_NAV_ANCHORED = 1
  5974. enums["AIS_NAV_STATUS"][1] = EnumEntry("AIS_NAV_ANCHORED", """""")
  5975. AIS_NAV_UN_COMMANDED = 2
  5976. enums["AIS_NAV_STATUS"][2] = EnumEntry("AIS_NAV_UN_COMMANDED", """""")
  5977. AIS_NAV_RESTRICTED_MANOEUVERABILITY = 3
  5978. enums["AIS_NAV_STATUS"][3] = EnumEntry("AIS_NAV_RESTRICTED_MANOEUVERABILITY", """""")
  5979. AIS_NAV_DRAUGHT_CONSTRAINED = 4
  5980. enums["AIS_NAV_STATUS"][4] = EnumEntry("AIS_NAV_DRAUGHT_CONSTRAINED", """""")
  5981. AIS_NAV_MOORED = 5
  5982. enums["AIS_NAV_STATUS"][5] = EnumEntry("AIS_NAV_MOORED", """""")
  5983. AIS_NAV_AGROUND = 6
  5984. enums["AIS_NAV_STATUS"][6] = EnumEntry("AIS_NAV_AGROUND", """""")
  5985. AIS_NAV_FISHING = 7
  5986. enums["AIS_NAV_STATUS"][7] = EnumEntry("AIS_NAV_FISHING", """""")
  5987. AIS_NAV_SAILING = 8
  5988. enums["AIS_NAV_STATUS"][8] = EnumEntry("AIS_NAV_SAILING", """""")
  5989. AIS_NAV_RESERVED_HSC = 9
  5990. enums["AIS_NAV_STATUS"][9] = EnumEntry("AIS_NAV_RESERVED_HSC", """""")
  5991. AIS_NAV_RESERVED_WIG = 10
  5992. enums["AIS_NAV_STATUS"][10] = EnumEntry("AIS_NAV_RESERVED_WIG", """""")
  5993. AIS_NAV_RESERVED_1 = 11
  5994. enums["AIS_NAV_STATUS"][11] = EnumEntry("AIS_NAV_RESERVED_1", """""")
  5995. AIS_NAV_RESERVED_2 = 12
  5996. enums["AIS_NAV_STATUS"][12] = EnumEntry("AIS_NAV_RESERVED_2", """""")
  5997. AIS_NAV_RESERVED_3 = 13
  5998. enums["AIS_NAV_STATUS"][13] = EnumEntry("AIS_NAV_RESERVED_3", """""")
  5999. AIS_NAV_AIS_SART = 14
  6000. enums["AIS_NAV_STATUS"][14] = EnumEntry("AIS_NAV_AIS_SART", """Search And Rescue Transponder.""")
  6001. AIS_NAV_UNKNOWN = 15
  6002. enums["AIS_NAV_STATUS"][15] = EnumEntry("AIS_NAV_UNKNOWN", """Not available (default).""")
  6003. AIS_NAV_STATUS_ENUM_END = 16
  6004. enums["AIS_NAV_STATUS"][16] = EnumEntry("AIS_NAV_STATUS_ENUM_END", """""")
  6005. # AIS_FLAGS
  6006. enums["AIS_FLAGS"] = Enum()
  6007. enums["AIS_FLAGS"].bitmask = True
  6008. AIS_FLAGS_POSITION_ACCURACY = 1
  6009. enums["AIS_FLAGS"][1] = EnumEntry("AIS_FLAGS_POSITION_ACCURACY", """1 = Position accuracy less than 10m, 0 = position accuracy greater than 10m.""")
  6010. AIS_FLAGS_VALID_COG = 2
  6011. enums["AIS_FLAGS"][2] = EnumEntry("AIS_FLAGS_VALID_COG", """""")
  6012. AIS_FLAGS_VALID_VELOCITY = 4
  6013. enums["AIS_FLAGS"][4] = EnumEntry("AIS_FLAGS_VALID_VELOCITY", """""")
  6014. AIS_FLAGS_HIGH_VELOCITY = 8
  6015. enums["AIS_FLAGS"][8] = EnumEntry("AIS_FLAGS_HIGH_VELOCITY", """1 = Velocity over 52.5765m/s (102.2 knots)""")
  6016. AIS_FLAGS_VALID_TURN_RATE = 16
  6017. enums["AIS_FLAGS"][16] = EnumEntry("AIS_FLAGS_VALID_TURN_RATE", """""")
  6018. AIS_FLAGS_TURN_RATE_SIGN_ONLY = 32
  6019. enums["AIS_FLAGS"][32] = EnumEntry("AIS_FLAGS_TURN_RATE_SIGN_ONLY", """Only the sign of the returned turn rate value is valid, either greater than 5deg/30s or less than -5deg/30s""")
  6020. AIS_FLAGS_VALID_DIMENSIONS = 64
  6021. enums["AIS_FLAGS"][64] = EnumEntry("AIS_FLAGS_VALID_DIMENSIONS", """""")
  6022. AIS_FLAGS_LARGE_BOW_DIMENSION = 128
  6023. enums["AIS_FLAGS"][128] = EnumEntry("AIS_FLAGS_LARGE_BOW_DIMENSION", """Distance to bow is larger than 511m""")
  6024. AIS_FLAGS_LARGE_STERN_DIMENSION = 256
  6025. enums["AIS_FLAGS"][256] = EnumEntry("AIS_FLAGS_LARGE_STERN_DIMENSION", """Distance to stern is larger than 511m""")
  6026. AIS_FLAGS_LARGE_PORT_DIMENSION = 512
  6027. enums["AIS_FLAGS"][512] = EnumEntry("AIS_FLAGS_LARGE_PORT_DIMENSION", """Distance to port side is larger than 63m""")
  6028. AIS_FLAGS_LARGE_STARBOARD_DIMENSION = 1024
  6029. enums["AIS_FLAGS"][1024] = EnumEntry("AIS_FLAGS_LARGE_STARBOARD_DIMENSION", """Distance to starboard side is larger than 63m""")
  6030. AIS_FLAGS_VALID_CALLSIGN = 2048
  6031. enums["AIS_FLAGS"][2048] = EnumEntry("AIS_FLAGS_VALID_CALLSIGN", """""")
  6032. AIS_FLAGS_VALID_NAME = 4096
  6033. enums["AIS_FLAGS"][4096] = EnumEntry("AIS_FLAGS_VALID_NAME", """""")
  6034. AIS_FLAGS_ENUM_END = 4097
  6035. enums["AIS_FLAGS"][4097] = EnumEntry("AIS_FLAGS_ENUM_END", """""")
  6036. # FAILURE_UNIT
  6037. enums["FAILURE_UNIT"] = Enum()
  6038. enums["FAILURE_UNIT"].bitmask = False
  6039. FAILURE_UNIT_SENSOR_GYRO = 0
  6040. enums["FAILURE_UNIT"][0] = EnumEntry("FAILURE_UNIT_SENSOR_GYRO", """""")
  6041. FAILURE_UNIT_SENSOR_ACCEL = 1
  6042. enums["FAILURE_UNIT"][1] = EnumEntry("FAILURE_UNIT_SENSOR_ACCEL", """""")
  6043. FAILURE_UNIT_SENSOR_MAG = 2
  6044. enums["FAILURE_UNIT"][2] = EnumEntry("FAILURE_UNIT_SENSOR_MAG", """""")
  6045. FAILURE_UNIT_SENSOR_BARO = 3
  6046. enums["FAILURE_UNIT"][3] = EnumEntry("FAILURE_UNIT_SENSOR_BARO", """""")
  6047. FAILURE_UNIT_SENSOR_GPS = 4
  6048. enums["FAILURE_UNIT"][4] = EnumEntry("FAILURE_UNIT_SENSOR_GPS", """""")
  6049. FAILURE_UNIT_SENSOR_OPTICAL_FLOW = 5
  6050. enums["FAILURE_UNIT"][5] = EnumEntry("FAILURE_UNIT_SENSOR_OPTICAL_FLOW", """""")
  6051. FAILURE_UNIT_SENSOR_VIO = 6
  6052. enums["FAILURE_UNIT"][6] = EnumEntry("FAILURE_UNIT_SENSOR_VIO", """""")
  6053. FAILURE_UNIT_SENSOR_DISTANCE_SENSOR = 7
  6054. enums["FAILURE_UNIT"][7] = EnumEntry("FAILURE_UNIT_SENSOR_DISTANCE_SENSOR", """""")
  6055. FAILURE_UNIT_SENSOR_AIRSPEED = 8
  6056. enums["FAILURE_UNIT"][8] = EnumEntry("FAILURE_UNIT_SENSOR_AIRSPEED", """""")
  6057. FAILURE_UNIT_SYSTEM_BATTERY = 100
  6058. enums["FAILURE_UNIT"][100] = EnumEntry("FAILURE_UNIT_SYSTEM_BATTERY", """""")
  6059. FAILURE_UNIT_SYSTEM_MOTOR = 101
  6060. enums["FAILURE_UNIT"][101] = EnumEntry("FAILURE_UNIT_SYSTEM_MOTOR", """""")
  6061. FAILURE_UNIT_SYSTEM_SERVO = 102
  6062. enums["FAILURE_UNIT"][102] = EnumEntry("FAILURE_UNIT_SYSTEM_SERVO", """""")
  6063. FAILURE_UNIT_SYSTEM_AVOIDANCE = 103
  6064. enums["FAILURE_UNIT"][103] = EnumEntry("FAILURE_UNIT_SYSTEM_AVOIDANCE", """""")
  6065. FAILURE_UNIT_SYSTEM_RC_SIGNAL = 104
  6066. enums["FAILURE_UNIT"][104] = EnumEntry("FAILURE_UNIT_SYSTEM_RC_SIGNAL", """""")
  6067. FAILURE_UNIT_SYSTEM_MAVLINK_SIGNAL = 105
  6068. enums["FAILURE_UNIT"][105] = EnumEntry("FAILURE_UNIT_SYSTEM_MAVLINK_SIGNAL", """""")
  6069. FAILURE_UNIT_ENUM_END = 106
  6070. enums["FAILURE_UNIT"][106] = EnumEntry("FAILURE_UNIT_ENUM_END", """""")
  6071. # FAILURE_TYPE
  6072. enums["FAILURE_TYPE"] = Enum()
  6073. enums["FAILURE_TYPE"].bitmask = False
  6074. FAILURE_TYPE_OK = 0
  6075. enums["FAILURE_TYPE"][0] = EnumEntry("FAILURE_TYPE_OK", """No failure injected, used to reset a previous failure.""")
  6076. FAILURE_TYPE_OFF = 1
  6077. enums["FAILURE_TYPE"][1] = EnumEntry("FAILURE_TYPE_OFF", """Sets unit off, so completely non-responsive.""")
  6078. FAILURE_TYPE_STUCK = 2
  6079. enums["FAILURE_TYPE"][2] = EnumEntry("FAILURE_TYPE_STUCK", """Unit is stuck e.g. keeps reporting the same value.""")
  6080. FAILURE_TYPE_GARBAGE = 3
  6081. enums["FAILURE_TYPE"][3] = EnumEntry("FAILURE_TYPE_GARBAGE", """Unit is reporting complete garbage.""")
  6082. FAILURE_TYPE_WRONG = 4
  6083. enums["FAILURE_TYPE"][4] = EnumEntry("FAILURE_TYPE_WRONG", """Unit is consistently wrong.""")
  6084. FAILURE_TYPE_SLOW = 5
  6085. enums["FAILURE_TYPE"][5] = EnumEntry("FAILURE_TYPE_SLOW", """Unit is slow, so e.g. reporting at slower than expected rate.""")
  6086. FAILURE_TYPE_DELAYED = 6
  6087. enums["FAILURE_TYPE"][6] = EnumEntry("FAILURE_TYPE_DELAYED", """Data of unit is delayed in time.""")
  6088. FAILURE_TYPE_INTERMITTENT = 7
  6089. enums["FAILURE_TYPE"][7] = EnumEntry("FAILURE_TYPE_INTERMITTENT", """Unit is sometimes working, sometimes not.""")
  6090. FAILURE_TYPE_ENUM_END = 8
  6091. enums["FAILURE_TYPE"][8] = EnumEntry("FAILURE_TYPE_ENUM_END", """""")
  6092. # NAV_VTOL_LAND_OPTIONS
  6093. enums["NAV_VTOL_LAND_OPTIONS"] = Enum()
  6094. enums["NAV_VTOL_LAND_OPTIONS"].bitmask = False
  6095. NAV_VTOL_LAND_OPTIONS_DEFAULT = 0
  6096. enums["NAV_VTOL_LAND_OPTIONS"][0] = EnumEntry("NAV_VTOL_LAND_OPTIONS_DEFAULT", """Default autopilot landing behaviour.""")
  6097. NAV_VTOL_LAND_OPTIONS_FW_DESCENT = 1
  6098. enums["NAV_VTOL_LAND_OPTIONS"][1] = EnumEntry(
  6099. "NAV_VTOL_LAND_OPTIONS_FW_DESCENT",
  6100. """Descend in fixed wing mode, transitioning to multicopter mode for vertical landing when close to the ground.
  6101. The fixed wing descent pattern is at the discretion of the vehicle (e.g. transition altitude, loiter direction, radius, and speed, etc.).
  6102. """,
  6103. )
  6104. NAV_VTOL_LAND_OPTIONS_HOVER_DESCENT = 2
  6105. enums["NAV_VTOL_LAND_OPTIONS"][2] = EnumEntry("NAV_VTOL_LAND_OPTIONS_HOVER_DESCENT", """Land in multicopter mode on reaching the landing coordinates (the whole landing is by "hover descent").""")
  6106. NAV_VTOL_LAND_OPTIONS_ENUM_END = 3
  6107. enums["NAV_VTOL_LAND_OPTIONS"][3] = EnumEntry("NAV_VTOL_LAND_OPTIONS_ENUM_END", """""")
  6108. # MAV_WINCH_STATUS_FLAG
  6109. enums["MAV_WINCH_STATUS_FLAG"] = Enum()
  6110. enums["MAV_WINCH_STATUS_FLAG"].bitmask = True
  6111. MAV_WINCH_STATUS_HEALTHY = 1
  6112. enums["MAV_WINCH_STATUS_FLAG"][1] = EnumEntry("MAV_WINCH_STATUS_HEALTHY", """Winch is healthy""")
  6113. MAV_WINCH_STATUS_FULLY_RETRACTED = 2
  6114. enums["MAV_WINCH_STATUS_FLAG"][2] = EnumEntry("MAV_WINCH_STATUS_FULLY_RETRACTED", """Winch line is fully retracted""")
  6115. MAV_WINCH_STATUS_MOVING = 4
  6116. enums["MAV_WINCH_STATUS_FLAG"][4] = EnumEntry("MAV_WINCH_STATUS_MOVING", """Winch motor is moving""")
  6117. MAV_WINCH_STATUS_CLUTCH_ENGAGED = 8
  6118. enums["MAV_WINCH_STATUS_FLAG"][8] = EnumEntry("MAV_WINCH_STATUS_CLUTCH_ENGAGED", """Winch clutch is engaged allowing motor to move freely.""")
  6119. MAV_WINCH_STATUS_LOCKED = 16
  6120. enums["MAV_WINCH_STATUS_FLAG"][16] = EnumEntry("MAV_WINCH_STATUS_LOCKED", """Winch is locked by locking mechanism.""")
  6121. MAV_WINCH_STATUS_DROPPING = 32
  6122. enums["MAV_WINCH_STATUS_FLAG"][32] = EnumEntry("MAV_WINCH_STATUS_DROPPING", """Winch is gravity dropping payload.""")
  6123. MAV_WINCH_STATUS_ARRESTING = 64
  6124. enums["MAV_WINCH_STATUS_FLAG"][64] = EnumEntry("MAV_WINCH_STATUS_ARRESTING", """Winch is arresting payload descent.""")
  6125. MAV_WINCH_STATUS_GROUND_SENSE = 128
  6126. enums["MAV_WINCH_STATUS_FLAG"][128] = EnumEntry("MAV_WINCH_STATUS_GROUND_SENSE", """Winch is using torque measurements to sense the ground.""")
  6127. MAV_WINCH_STATUS_RETRACTING = 256
  6128. enums["MAV_WINCH_STATUS_FLAG"][256] = EnumEntry("MAV_WINCH_STATUS_RETRACTING", """Winch is returning to the fully retracted position.""")
  6129. MAV_WINCH_STATUS_REDELIVER = 512
  6130. enums["MAV_WINCH_STATUS_FLAG"][512] = EnumEntry("MAV_WINCH_STATUS_REDELIVER", """Winch is redelivering the payload. This is a failover state if the line tension goes above a threshold during RETRACTING.""")
  6131. MAV_WINCH_STATUS_ABANDON_LINE = 1024
  6132. enums["MAV_WINCH_STATUS_FLAG"][1024] = EnumEntry("MAV_WINCH_STATUS_ABANDON_LINE", """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.""")
  6133. MAV_WINCH_STATUS_LOCKING = 2048
  6134. enums["MAV_WINCH_STATUS_FLAG"][2048] = EnumEntry("MAV_WINCH_STATUS_LOCKING", """Winch is engaging the locking mechanism.""")
  6135. MAV_WINCH_STATUS_LOAD_LINE = 4096
  6136. enums["MAV_WINCH_STATUS_FLAG"][4096] = EnumEntry("MAV_WINCH_STATUS_LOAD_LINE", """Winch is spooling on line.""")
  6137. MAV_WINCH_STATUS_LOAD_PAYLOAD = 8192
  6138. enums["MAV_WINCH_STATUS_FLAG"][8192] = EnumEntry("MAV_WINCH_STATUS_LOAD_PAYLOAD", """Winch is loading a payload.""")
  6139. MAV_WINCH_STATUS_FLAG_ENUM_END = 8193
  6140. enums["MAV_WINCH_STATUS_FLAG"][8193] = EnumEntry("MAV_WINCH_STATUS_FLAG_ENUM_END", """""")
  6141. # MAG_CAL_STATUS
  6142. enums["MAG_CAL_STATUS"] = Enum()
  6143. enums["MAG_CAL_STATUS"].bitmask = False
  6144. MAG_CAL_NOT_STARTED = 0
  6145. enums["MAG_CAL_STATUS"][0] = EnumEntry("MAG_CAL_NOT_STARTED", """""")
  6146. MAG_CAL_WAITING_TO_START = 1
  6147. enums["MAG_CAL_STATUS"][1] = EnumEntry("MAG_CAL_WAITING_TO_START", """""")
  6148. MAG_CAL_RUNNING_STEP_ONE = 2
  6149. enums["MAG_CAL_STATUS"][2] = EnumEntry("MAG_CAL_RUNNING_STEP_ONE", """""")
  6150. MAG_CAL_RUNNING_STEP_TWO = 3
  6151. enums["MAG_CAL_STATUS"][3] = EnumEntry("MAG_CAL_RUNNING_STEP_TWO", """""")
  6152. MAG_CAL_SUCCESS = 4
  6153. enums["MAG_CAL_STATUS"][4] = EnumEntry("MAG_CAL_SUCCESS", """""")
  6154. MAG_CAL_FAILED = 5
  6155. enums["MAG_CAL_STATUS"][5] = EnumEntry("MAG_CAL_FAILED", """""")
  6156. MAG_CAL_BAD_ORIENTATION = 6
  6157. enums["MAG_CAL_STATUS"][6] = EnumEntry("MAG_CAL_BAD_ORIENTATION", """""")
  6158. MAG_CAL_BAD_RADIUS = 7
  6159. enums["MAG_CAL_STATUS"][7] = EnumEntry("MAG_CAL_BAD_RADIUS", """""")
  6160. MAG_CAL_STATUS_ENUM_END = 8
  6161. enums["MAG_CAL_STATUS"][8] = EnumEntry("MAG_CAL_STATUS_ENUM_END", """""")
  6162. # MAV_EVENT_ERROR_REASON
  6163. enums["MAV_EVENT_ERROR_REASON"] = Enum()
  6164. enums["MAV_EVENT_ERROR_REASON"].bitmask = False
  6165. MAV_EVENT_ERROR_REASON_UNAVAILABLE = 0
  6166. enums["MAV_EVENT_ERROR_REASON"][0] = EnumEntry("MAV_EVENT_ERROR_REASON_UNAVAILABLE", """The requested event is not available (anymore).""")
  6167. MAV_EVENT_ERROR_REASON_ENUM_END = 1
  6168. enums["MAV_EVENT_ERROR_REASON"][1] = EnumEntry("MAV_EVENT_ERROR_REASON_ENUM_END", """""")
  6169. # MAV_EVENT_CURRENT_SEQUENCE_FLAGS
  6170. enums["MAV_EVENT_CURRENT_SEQUENCE_FLAGS"] = Enum()
  6171. enums["MAV_EVENT_CURRENT_SEQUENCE_FLAGS"].bitmask = False
  6172. MAV_EVENT_CURRENT_SEQUENCE_FLAGS_RESET = 1
  6173. enums["MAV_EVENT_CURRENT_SEQUENCE_FLAGS"][1] = EnumEntry("MAV_EVENT_CURRENT_SEQUENCE_FLAGS_RESET", """A sequence reset has happened (e.g. vehicle reboot).""")
  6174. MAV_EVENT_CURRENT_SEQUENCE_FLAGS_ENUM_END = 2
  6175. enums["MAV_EVENT_CURRENT_SEQUENCE_FLAGS"][2] = EnumEntry("MAV_EVENT_CURRENT_SEQUENCE_FLAGS_ENUM_END", """""")
  6176. # HIL_SENSOR_UPDATED_FLAGS
  6177. enums["HIL_SENSOR_UPDATED_FLAGS"] = Enum()
  6178. enums["HIL_SENSOR_UPDATED_FLAGS"].bitmask = True
  6179. HIL_SENSOR_UPDATED_NONE = 0
  6180. enums["HIL_SENSOR_UPDATED_FLAGS"][0] = EnumEntry("HIL_SENSOR_UPDATED_NONE", """None of the fields in HIL_SENSOR have been updated""")
  6181. HIL_SENSOR_UPDATED_XACC = 1
  6182. enums["HIL_SENSOR_UPDATED_FLAGS"][1] = EnumEntry("HIL_SENSOR_UPDATED_XACC", """The value in the xacc field has been updated""")
  6183. HIL_SENSOR_UPDATED_YACC = 2
  6184. enums["HIL_SENSOR_UPDATED_FLAGS"][2] = EnumEntry("HIL_SENSOR_UPDATED_YACC", """The value in the yacc field has been updated""")
  6185. HIL_SENSOR_UPDATED_ZACC = 4
  6186. enums["HIL_SENSOR_UPDATED_FLAGS"][4] = EnumEntry("HIL_SENSOR_UPDATED_ZACC", """The value in the zacc field has been updated""")
  6187. HIL_SENSOR_UPDATED_XGYRO = 8
  6188. enums["HIL_SENSOR_UPDATED_FLAGS"][8] = EnumEntry("HIL_SENSOR_UPDATED_XGYRO", """The value in the xgyro field has been updated""")
  6189. HIL_SENSOR_UPDATED_YGYRO = 16
  6190. enums["HIL_SENSOR_UPDATED_FLAGS"][16] = EnumEntry("HIL_SENSOR_UPDATED_YGYRO", """The value in the ygyro field has been updated""")
  6191. HIL_SENSOR_UPDATED_ZGYRO = 32
  6192. enums["HIL_SENSOR_UPDATED_FLAGS"][32] = EnumEntry("HIL_SENSOR_UPDATED_ZGYRO", """The value in the zgyro field has been updated""")
  6193. HIL_SENSOR_UPDATED_XMAG = 64
  6194. enums["HIL_SENSOR_UPDATED_FLAGS"][64] = EnumEntry("HIL_SENSOR_UPDATED_XMAG", """The value in the xmag field has been updated""")
  6195. HIL_SENSOR_UPDATED_YMAG = 128
  6196. enums["HIL_SENSOR_UPDATED_FLAGS"][128] = EnumEntry("HIL_SENSOR_UPDATED_YMAG", """The value in the ymag field has been updated""")
  6197. HIL_SENSOR_UPDATED_ZMAG = 256
  6198. enums["HIL_SENSOR_UPDATED_FLAGS"][256] = EnumEntry("HIL_SENSOR_UPDATED_ZMAG", """The value in the zmag field has been updated""")
  6199. HIL_SENSOR_UPDATED_ABS_PRESSURE = 512
  6200. enums["HIL_SENSOR_UPDATED_FLAGS"][512] = EnumEntry("HIL_SENSOR_UPDATED_ABS_PRESSURE", """The value in the abs_pressure field has been updated""")
  6201. HIL_SENSOR_UPDATED_DIFF_PRESSURE = 1024
  6202. enums["HIL_SENSOR_UPDATED_FLAGS"][1024] = EnumEntry("HIL_SENSOR_UPDATED_DIFF_PRESSURE", """The value in the diff_pressure field has been updated""")
  6203. HIL_SENSOR_UPDATED_PRESSURE_ALT = 2048
  6204. enums["HIL_SENSOR_UPDATED_FLAGS"][2048] = EnumEntry("HIL_SENSOR_UPDATED_PRESSURE_ALT", """The value in the pressure_alt field has been updated""")
  6205. HIL_SENSOR_UPDATED_TEMPERATURE = 4096
  6206. enums["HIL_SENSOR_UPDATED_FLAGS"][4096] = EnumEntry("HIL_SENSOR_UPDATED_TEMPERATURE", """The value in the temperature field has been updated""")
  6207. HIL_SENSOR_UPDATED_RESET = 2147483648
  6208. enums["HIL_SENSOR_UPDATED_FLAGS"][2147483648] = EnumEntry("HIL_SENSOR_UPDATED_RESET", """Full reset of attitude/position/velocities/etc was performed in sim (Bit 31).""")
  6209. HIL_SENSOR_UPDATED_FLAGS_ENUM_END = 2147483649
  6210. enums["HIL_SENSOR_UPDATED_FLAGS"][2147483649] = EnumEntry("HIL_SENSOR_UPDATED_FLAGS_ENUM_END", """""")
  6211. # HIGHRES_IMU_UPDATED_FLAGS
  6212. enums["HIGHRES_IMU_UPDATED_FLAGS"] = Enum()
  6213. enums["HIGHRES_IMU_UPDATED_FLAGS"].bitmask = True
  6214. HIGHRES_IMU_UPDATED_NONE = 0
  6215. enums["HIGHRES_IMU_UPDATED_FLAGS"][0] = EnumEntry("HIGHRES_IMU_UPDATED_NONE", """None of the fields in HIGHRES_IMU have been updated""")
  6216. HIGHRES_IMU_UPDATED_XACC = 1
  6217. enums["HIGHRES_IMU_UPDATED_FLAGS"][1] = EnumEntry("HIGHRES_IMU_UPDATED_XACC", """The value in the xacc field has been updated""")
  6218. HIGHRES_IMU_UPDATED_YACC = 2
  6219. enums["HIGHRES_IMU_UPDATED_FLAGS"][2] = EnumEntry("HIGHRES_IMU_UPDATED_YACC", """The value in the yacc field has been updated""")
  6220. HIGHRES_IMU_UPDATED_ZACC = 4
  6221. enums["HIGHRES_IMU_UPDATED_FLAGS"][4] = EnumEntry("HIGHRES_IMU_UPDATED_ZACC", """The value in the zacc field has been updated since""")
  6222. HIGHRES_IMU_UPDATED_XGYRO = 8
  6223. enums["HIGHRES_IMU_UPDATED_FLAGS"][8] = EnumEntry("HIGHRES_IMU_UPDATED_XGYRO", """The value in the xgyro field has been updated""")
  6224. HIGHRES_IMU_UPDATED_YGYRO = 16
  6225. enums["HIGHRES_IMU_UPDATED_FLAGS"][16] = EnumEntry("HIGHRES_IMU_UPDATED_YGYRO", """The value in the ygyro field has been updated""")
  6226. HIGHRES_IMU_UPDATED_ZGYRO = 32
  6227. enums["HIGHRES_IMU_UPDATED_FLAGS"][32] = EnumEntry("HIGHRES_IMU_UPDATED_ZGYRO", """The value in the zgyro field has been updated""")
  6228. HIGHRES_IMU_UPDATED_XMAG = 64
  6229. enums["HIGHRES_IMU_UPDATED_FLAGS"][64] = EnumEntry("HIGHRES_IMU_UPDATED_XMAG", """The value in the xmag field has been updated""")
  6230. HIGHRES_IMU_UPDATED_YMAG = 128
  6231. enums["HIGHRES_IMU_UPDATED_FLAGS"][128] = EnumEntry("HIGHRES_IMU_UPDATED_YMAG", """The value in the ymag field has been updated""")
  6232. HIGHRES_IMU_UPDATED_ZMAG = 256
  6233. enums["HIGHRES_IMU_UPDATED_FLAGS"][256] = EnumEntry("HIGHRES_IMU_UPDATED_ZMAG", """The value in the zmag field has been updated""")
  6234. HIGHRES_IMU_UPDATED_ABS_PRESSURE = 512
  6235. enums["HIGHRES_IMU_UPDATED_FLAGS"][512] = EnumEntry("HIGHRES_IMU_UPDATED_ABS_PRESSURE", """The value in the abs_pressure field has been updated""")
  6236. HIGHRES_IMU_UPDATED_DIFF_PRESSURE = 1024
  6237. enums["HIGHRES_IMU_UPDATED_FLAGS"][1024] = EnumEntry("HIGHRES_IMU_UPDATED_DIFF_PRESSURE", """The value in the diff_pressure field has been updated""")
  6238. HIGHRES_IMU_UPDATED_PRESSURE_ALT = 2048
  6239. enums["HIGHRES_IMU_UPDATED_FLAGS"][2048] = EnumEntry("HIGHRES_IMU_UPDATED_PRESSURE_ALT", """The value in the pressure_alt field has been updated""")
  6240. HIGHRES_IMU_UPDATED_TEMPERATURE = 4096
  6241. enums["HIGHRES_IMU_UPDATED_FLAGS"][4096] = EnumEntry("HIGHRES_IMU_UPDATED_TEMPERATURE", """The value in the temperature field has been updated""")
  6242. HIGHRES_IMU_UPDATED_ALL = 65535
  6243. enums["HIGHRES_IMU_UPDATED_FLAGS"][65535] = EnumEntry("HIGHRES_IMU_UPDATED_ALL", """All fields in HIGHRES_IMU have been updated.""")
  6244. HIGHRES_IMU_UPDATED_FLAGS_ENUM_END = 65536
  6245. enums["HIGHRES_IMU_UPDATED_FLAGS"][65536] = EnumEntry("HIGHRES_IMU_UPDATED_FLAGS_ENUM_END", """""")
  6246. # CAN_FILTER_OP
  6247. enums["CAN_FILTER_OP"] = Enum()
  6248. enums["CAN_FILTER_OP"].bitmask = False
  6249. CAN_FILTER_REPLACE = 0
  6250. enums["CAN_FILTER_OP"][0] = EnumEntry("CAN_FILTER_REPLACE", """""")
  6251. CAN_FILTER_ADD = 1
  6252. enums["CAN_FILTER_OP"][1] = EnumEntry("CAN_FILTER_ADD", """""")
  6253. CAN_FILTER_REMOVE = 2
  6254. enums["CAN_FILTER_OP"][2] = EnumEntry("CAN_FILTER_REMOVE", """""")
  6255. CAN_FILTER_OP_ENUM_END = 3
  6256. enums["CAN_FILTER_OP"][3] = EnumEntry("CAN_FILTER_OP_ENUM_END", """""")
  6257. # MAV_FTP_ERR
  6258. enums["MAV_FTP_ERR"] = Enum()
  6259. enums["MAV_FTP_ERR"].bitmask = False
  6260. MAV_FTP_ERR_NONE = 0
  6261. enums["MAV_FTP_ERR"][0] = EnumEntry("MAV_FTP_ERR_NONE", """None: No error""")
  6262. MAV_FTP_ERR_FAIL = 1
  6263. enums["MAV_FTP_ERR"][1] = EnumEntry("MAV_FTP_ERR_FAIL", """Fail: Unknown failure""")
  6264. MAV_FTP_ERR_FAILERRNO = 2
  6265. enums["MAV_FTP_ERR"][2] = EnumEntry(
  6266. "MAV_FTP_ERR_FAILERRNO",
  6267. """FailErrno: Command failed, Err number sent back in PayloadHeader.data[1].
  6268. This is a file-system error number understood by the server operating system.""",
  6269. )
  6270. MAV_FTP_ERR_INVALIDDATASIZE = 3
  6271. enums["MAV_FTP_ERR"][3] = EnumEntry("MAV_FTP_ERR_INVALIDDATASIZE", """InvalidDataSize: Payload size is invalid""")
  6272. MAV_FTP_ERR_INVALIDSESSION = 4
  6273. enums["MAV_FTP_ERR"][4] = EnumEntry("MAV_FTP_ERR_INVALIDSESSION", """InvalidSession: Session is not currently open""")
  6274. MAV_FTP_ERR_NOSESSIONSAVAILABLE = 5
  6275. enums["MAV_FTP_ERR"][5] = EnumEntry("MAV_FTP_ERR_NOSESSIONSAVAILABLE", """NoSessionsAvailable: All available sessions are already in use""")
  6276. MAV_FTP_ERR_EOF = 6
  6277. enums["MAV_FTP_ERR"][6] = EnumEntry("MAV_FTP_ERR_EOF", """EOF: Offset past end of file for ListDirectory and ReadFile commands""")
  6278. MAV_FTP_ERR_UNKNOWNCOMMAND = 7
  6279. enums["MAV_FTP_ERR"][7] = EnumEntry("MAV_FTP_ERR_UNKNOWNCOMMAND", """UnknownCommand: Unknown command / opcode""")
  6280. MAV_FTP_ERR_FILEEXISTS = 8
  6281. enums["MAV_FTP_ERR"][8] = EnumEntry("MAV_FTP_ERR_FILEEXISTS", """FileExists: File/directory already exists""")
  6282. MAV_FTP_ERR_FILEPROTECTED = 9
  6283. enums["MAV_FTP_ERR"][9] = EnumEntry("MAV_FTP_ERR_FILEPROTECTED", """FileProtected: File/directory is write protected""")
  6284. MAV_FTP_ERR_FILENOTFOUND = 10
  6285. enums["MAV_FTP_ERR"][10] = EnumEntry("MAV_FTP_ERR_FILENOTFOUND", """FileNotFound: File/directory not found""")
  6286. MAV_FTP_ERR_ENUM_END = 11
  6287. enums["MAV_FTP_ERR"][11] = EnumEntry("MAV_FTP_ERR_ENUM_END", """""")
  6288. # MAV_FTP_OPCODE
  6289. enums["MAV_FTP_OPCODE"] = Enum()
  6290. enums["MAV_FTP_OPCODE"].bitmask = False
  6291. MAV_FTP_OPCODE_NONE = 0
  6292. enums["MAV_FTP_OPCODE"][0] = EnumEntry("MAV_FTP_OPCODE_NONE", """None. Ignored, always ACKed""")
  6293. MAV_FTP_OPCODE_TERMINATESESSION = 1
  6294. enums["MAV_FTP_OPCODE"][1] = EnumEntry("MAV_FTP_OPCODE_TERMINATESESSION", """TerminateSession: Terminates open Read session""")
  6295. MAV_FTP_OPCODE_RESETSESSION = 2
  6296. enums["MAV_FTP_OPCODE"][2] = EnumEntry("MAV_FTP_OPCODE_RESETSESSION", """ResetSessions: Terminates all open read sessions""")
  6297. MAV_FTP_OPCODE_LISTDIRECTORY = 3
  6298. enums["MAV_FTP_OPCODE"][3] = EnumEntry("MAV_FTP_OPCODE_LISTDIRECTORY", """ListDirectory. List files and directories in path from offset""")
  6299. MAV_FTP_OPCODE_OPENFILERO = 4
  6300. enums["MAV_FTP_OPCODE"][4] = EnumEntry("MAV_FTP_OPCODE_OPENFILERO", """OpenFileRO: Opens file at path for reading, returns session""")
  6301. MAV_FTP_OPCODE_READFILE = 5
  6302. enums["MAV_FTP_OPCODE"][5] = EnumEntry("MAV_FTP_OPCODE_READFILE", """ReadFile: Reads size bytes from offset in session""")
  6303. MAV_FTP_OPCODE_CREATEFILE = 6
  6304. enums["MAV_FTP_OPCODE"][6] = EnumEntry("MAV_FTP_OPCODE_CREATEFILE", """CreateFile: Creates file at path for writing, returns session""")
  6305. MAV_FTP_OPCODE_WRITEFILE = 7
  6306. enums["MAV_FTP_OPCODE"][7] = EnumEntry("MAV_FTP_OPCODE_WRITEFILE", """WriteFile: Writes size bytes to offset in session""")
  6307. MAV_FTP_OPCODE_REMOVEFILE = 8
  6308. enums["MAV_FTP_OPCODE"][8] = EnumEntry("MAV_FTP_OPCODE_REMOVEFILE", """RemoveFile: Remove file at path""")
  6309. MAV_FTP_OPCODE_CREATEDIRECTORY = 9
  6310. enums["MAV_FTP_OPCODE"][9] = EnumEntry("MAV_FTP_OPCODE_CREATEDIRECTORY", """CreateDirectory: Creates directory at path""")
  6311. MAV_FTP_OPCODE_REMOVEDIRECTORY = 10
  6312. enums["MAV_FTP_OPCODE"][10] = EnumEntry("MAV_FTP_OPCODE_REMOVEDIRECTORY", """RemoveDirectory: Removes directory at path. The directory must be empty.""")
  6313. MAV_FTP_OPCODE_OPENFILEWO = 11
  6314. enums["MAV_FTP_OPCODE"][11] = EnumEntry("MAV_FTP_OPCODE_OPENFILEWO", """OpenFileWO: Opens file at path for writing, returns session""")
  6315. MAV_FTP_OPCODE_TRUNCATEFILE = 12
  6316. enums["MAV_FTP_OPCODE"][12] = EnumEntry("MAV_FTP_OPCODE_TRUNCATEFILE", """TruncateFile: Truncate file at path to offset length""")
  6317. MAV_FTP_OPCODE_RENAME = 13
  6318. enums["MAV_FTP_OPCODE"][13] = EnumEntry("MAV_FTP_OPCODE_RENAME", """Rename: Rename path1 to path2""")
  6319. MAV_FTP_OPCODE_CALCFILECRC = 14
  6320. enums["MAV_FTP_OPCODE"][14] = EnumEntry("MAV_FTP_OPCODE_CALCFILECRC", """CalcFileCRC32: Calculate CRC32 for file at path""")
  6321. MAV_FTP_OPCODE_BURSTREADFILE = 15
  6322. enums["MAV_FTP_OPCODE"][15] = EnumEntry("MAV_FTP_OPCODE_BURSTREADFILE", """BurstReadFile: Burst download session file""")
  6323. MAV_FTP_OPCODE_ACK = 128
  6324. enums["MAV_FTP_OPCODE"][128] = EnumEntry("MAV_FTP_OPCODE_ACK", """ACK: ACK response""")
  6325. MAV_FTP_OPCODE_NAK = 129
  6326. enums["MAV_FTP_OPCODE"][129] = EnumEntry("MAV_FTP_OPCODE_NAK", """NAK: NAK response""")
  6327. MAV_FTP_OPCODE_ENUM_END = 130
  6328. enums["MAV_FTP_OPCODE"][130] = EnumEntry("MAV_FTP_OPCODE_ENUM_END", """""")
  6329. # MISSION_STATE
  6330. enums["MISSION_STATE"] = Enum()
  6331. enums["MISSION_STATE"].bitmask = False
  6332. MISSION_STATE_UNKNOWN = 0
  6333. enums["MISSION_STATE"][0] = EnumEntry("MISSION_STATE_UNKNOWN", """The mission status reporting is not supported.""")
  6334. MISSION_STATE_NO_MISSION = 1
  6335. enums["MISSION_STATE"][1] = EnumEntry("MISSION_STATE_NO_MISSION", """No mission on the vehicle.""")
  6336. MISSION_STATE_NOT_STARTED = 2
  6337. enums["MISSION_STATE"][2] = EnumEntry("MISSION_STATE_NOT_STARTED", """Mission has not started. This is the case after a mission has uploaded but not yet started executing.""")
  6338. MISSION_STATE_ACTIVE = 3
  6339. enums["MISSION_STATE"][3] = EnumEntry("MISSION_STATE_ACTIVE", """Mission is active, and will execute mission items when in auto mode.""")
  6340. MISSION_STATE_PAUSED = 4
  6341. enums["MISSION_STATE"][4] = EnumEntry("MISSION_STATE_PAUSED", """Mission is paused when in auto mode.""")
  6342. MISSION_STATE_COMPLETE = 5
  6343. enums["MISSION_STATE"][5] = EnumEntry("MISSION_STATE_COMPLETE", """Mission has executed all mission items.""")
  6344. MISSION_STATE_ENUM_END = 6
  6345. enums["MISSION_STATE"][6] = EnumEntry("MISSION_STATE_ENUM_END", """""")
  6346. # MAV_AUTOPILOT
  6347. enums["MAV_AUTOPILOT"] = Enum()
  6348. enums["MAV_AUTOPILOT"].bitmask = False
  6349. MAV_AUTOPILOT_GENERIC = 0
  6350. enums["MAV_AUTOPILOT"][0] = EnumEntry("MAV_AUTOPILOT_GENERIC", """Generic autopilot, full support for everything""")
  6351. MAV_AUTOPILOT_RESERVED = 1
  6352. enums["MAV_AUTOPILOT"][1] = EnumEntry("MAV_AUTOPILOT_RESERVED", """Reserved for future use.""")
  6353. MAV_AUTOPILOT_SLUGS = 2
  6354. enums["MAV_AUTOPILOT"][2] = EnumEntry("MAV_AUTOPILOT_SLUGS", """SLUGS autopilot, http://slugsuav.soe.ucsc.edu""")
  6355. MAV_AUTOPILOT_ARDUPILOTMEGA = 3
  6356. enums["MAV_AUTOPILOT"][3] = EnumEntry("MAV_AUTOPILOT_ARDUPILOTMEGA", """ArduPilot - Plane/Copter/Rover/Sub/Tracker, https://ardupilot.org""")
  6357. MAV_AUTOPILOT_OPENPILOT = 4
  6358. enums["MAV_AUTOPILOT"][4] = EnumEntry("MAV_AUTOPILOT_OPENPILOT", """OpenPilot, http://openpilot.org""")
  6359. MAV_AUTOPILOT_GENERIC_WAYPOINTS_ONLY = 5
  6360. enums["MAV_AUTOPILOT"][5] = EnumEntry("MAV_AUTOPILOT_GENERIC_WAYPOINTS_ONLY", """Generic autopilot only supporting simple waypoints""")
  6361. MAV_AUTOPILOT_GENERIC_WAYPOINTS_AND_SIMPLE_NAVIGATION_ONLY = 6
  6362. enums["MAV_AUTOPILOT"][6] = EnumEntry("MAV_AUTOPILOT_GENERIC_WAYPOINTS_AND_SIMPLE_NAVIGATION_ONLY", """Generic autopilot supporting waypoints and other simple navigation commands""")
  6363. MAV_AUTOPILOT_GENERIC_MISSION_FULL = 7
  6364. enums["MAV_AUTOPILOT"][7] = EnumEntry("MAV_AUTOPILOT_GENERIC_MISSION_FULL", """Generic autopilot supporting the full mission command set""")
  6365. MAV_AUTOPILOT_INVALID = 8
  6366. enums["MAV_AUTOPILOT"][8] = EnumEntry("MAV_AUTOPILOT_INVALID", """No valid autopilot, e.g. a GCS or other MAVLink component""")
  6367. MAV_AUTOPILOT_PPZ = 9
  6368. enums["MAV_AUTOPILOT"][9] = EnumEntry("MAV_AUTOPILOT_PPZ", """PPZ UAV - http://nongnu.org/paparazzi""")
  6369. MAV_AUTOPILOT_UDB = 10
  6370. enums["MAV_AUTOPILOT"][10] = EnumEntry("MAV_AUTOPILOT_UDB", """UAV Dev Board""")
  6371. MAV_AUTOPILOT_FP = 11
  6372. enums["MAV_AUTOPILOT"][11] = EnumEntry("MAV_AUTOPILOT_FP", """FlexiPilot""")
  6373. MAV_AUTOPILOT_PX4 = 12
  6374. enums["MAV_AUTOPILOT"][12] = EnumEntry("MAV_AUTOPILOT_PX4", """PX4 Autopilot - http://px4.io/""")
  6375. MAV_AUTOPILOT_SMACCMPILOT = 13
  6376. enums["MAV_AUTOPILOT"][13] = EnumEntry("MAV_AUTOPILOT_SMACCMPILOT", """SMACCMPilot - http://smaccmpilot.org""")
  6377. MAV_AUTOPILOT_AUTOQUAD = 14
  6378. enums["MAV_AUTOPILOT"][14] = EnumEntry("MAV_AUTOPILOT_AUTOQUAD", """AutoQuad -- http://autoquad.org""")
  6379. MAV_AUTOPILOT_ARMAZILA = 15
  6380. enums["MAV_AUTOPILOT"][15] = EnumEntry("MAV_AUTOPILOT_ARMAZILA", """Armazila -- http://armazila.com""")
  6381. MAV_AUTOPILOT_AEROB = 16
  6382. enums["MAV_AUTOPILOT"][16] = EnumEntry("MAV_AUTOPILOT_AEROB", """Aerob -- http://aerob.ru""")
  6383. MAV_AUTOPILOT_ASLUAV = 17
  6384. enums["MAV_AUTOPILOT"][17] = EnumEntry("MAV_AUTOPILOT_ASLUAV", """ASLUAV autopilot -- http://www.asl.ethz.ch""")
  6385. MAV_AUTOPILOT_SMARTAP = 18
  6386. enums["MAV_AUTOPILOT"][18] = EnumEntry("MAV_AUTOPILOT_SMARTAP", """SmartAP Autopilot - http://sky-drones.com""")
  6387. MAV_AUTOPILOT_AIRRAILS = 19
  6388. enums["MAV_AUTOPILOT"][19] = EnumEntry("MAV_AUTOPILOT_AIRRAILS", """AirRails - http://uaventure.com""")
  6389. MAV_AUTOPILOT_REFLEX = 20
  6390. enums["MAV_AUTOPILOT"][20] = EnumEntry("MAV_AUTOPILOT_REFLEX", """Fusion Reflex - https://fusion.engineering""")
  6391. MAV_AUTOPILOT_VKFLY = 30
  6392. enums["MAV_AUTOPILOT"][30] = EnumEntry("MAV_AUTOPILOT_VKFLY", """vK-Fly Autopilot - https://fusion.engineering""")
  6393. MAV_AUTOPILOT_ENUM_END = 31
  6394. enums["MAV_AUTOPILOT"][31] = EnumEntry("MAV_AUTOPILOT_ENUM_END", """""")
  6395. # MAV_TYPE
  6396. enums["MAV_TYPE"] = Enum()
  6397. enums["MAV_TYPE"].bitmask = False
  6398. MAV_TYPE_GENERIC = 0
  6399. enums["MAV_TYPE"][0] = EnumEntry("MAV_TYPE_GENERIC", """Generic micro air vehicle""")
  6400. MAV_TYPE_FIXED_WING = 1
  6401. enums["MAV_TYPE"][1] = EnumEntry("MAV_TYPE_FIXED_WING", """Fixed wing aircraft.""")
  6402. MAV_TYPE_QUADROTOR = 2
  6403. enums["MAV_TYPE"][2] = EnumEntry("MAV_TYPE_QUADROTOR", """Quadrotor""")
  6404. MAV_TYPE_COAXIAL = 3
  6405. enums["MAV_TYPE"][3] = EnumEntry("MAV_TYPE_COAXIAL", """Coaxial helicopter""")
  6406. MAV_TYPE_HELICOPTER = 4
  6407. enums["MAV_TYPE"][4] = EnumEntry("MAV_TYPE_HELICOPTER", """Normal helicopter with tail rotor.""")
  6408. MAV_TYPE_ANTENNA_TRACKER = 5
  6409. enums["MAV_TYPE"][5] = EnumEntry("MAV_TYPE_ANTENNA_TRACKER", """Ground installation""")
  6410. MAV_TYPE_GCS = 6
  6411. enums["MAV_TYPE"][6] = EnumEntry("MAV_TYPE_GCS", """Operator control unit / ground control station""")
  6412. MAV_TYPE_AIRSHIP = 7
  6413. enums["MAV_TYPE"][7] = EnumEntry("MAV_TYPE_AIRSHIP", """Airship, controlled""")
  6414. MAV_TYPE_FREE_BALLOON = 8
  6415. enums["MAV_TYPE"][8] = EnumEntry("MAV_TYPE_FREE_BALLOON", """Free balloon, uncontrolled""")
  6416. MAV_TYPE_ROCKET = 9
  6417. enums["MAV_TYPE"][9] = EnumEntry("MAV_TYPE_ROCKET", """Rocket""")
  6418. MAV_TYPE_GROUND_ROVER = 10
  6419. enums["MAV_TYPE"][10] = EnumEntry("MAV_TYPE_GROUND_ROVER", """Ground rover""")
  6420. MAV_TYPE_SURFACE_BOAT = 11
  6421. enums["MAV_TYPE"][11] = EnumEntry("MAV_TYPE_SURFACE_BOAT", """Surface vessel, boat, ship""")
  6422. MAV_TYPE_SUBMARINE = 12
  6423. enums["MAV_TYPE"][12] = EnumEntry("MAV_TYPE_SUBMARINE", """Submarine""")
  6424. MAV_TYPE_HEXAROTOR = 13
  6425. enums["MAV_TYPE"][13] = EnumEntry("MAV_TYPE_HEXAROTOR", """Hexarotor""")
  6426. MAV_TYPE_OCTOROTOR = 14
  6427. enums["MAV_TYPE"][14] = EnumEntry("MAV_TYPE_OCTOROTOR", """Octorotor""")
  6428. MAV_TYPE_TRICOPTER = 15
  6429. enums["MAV_TYPE"][15] = EnumEntry("MAV_TYPE_TRICOPTER", """Tricopter""")
  6430. MAV_TYPE_FLAPPING_WING = 16
  6431. enums["MAV_TYPE"][16] = EnumEntry("MAV_TYPE_FLAPPING_WING", """Flapping wing""")
  6432. MAV_TYPE_KITE = 17
  6433. enums["MAV_TYPE"][17] = EnumEntry("MAV_TYPE_KITE", """Kite""")
  6434. MAV_TYPE_ONBOARD_CONTROLLER = 18
  6435. enums["MAV_TYPE"][18] = EnumEntry("MAV_TYPE_ONBOARD_CONTROLLER", """Onboard companion controller""")
  6436. MAV_TYPE_VTOL_TAILSITTER_DUOROTOR = 19
  6437. enums["MAV_TYPE"][19] = EnumEntry("MAV_TYPE_VTOL_TAILSITTER_DUOROTOR", """Two-rotor Tailsitter VTOL that additionally uses control surfaces in vertical operation. Note, value previously named MAV_TYPE_VTOL_DUOROTOR.""")
  6438. MAV_TYPE_VTOL_TAILSITTER_QUADROTOR = 20
  6439. enums["MAV_TYPE"][20] = EnumEntry("MAV_TYPE_VTOL_TAILSITTER_QUADROTOR", """Quad-rotor Tailsitter VTOL using a V-shaped quad config in vertical operation. Note: value previously named MAV_TYPE_VTOL_QUADROTOR.""")
  6440. MAV_TYPE_VTOL_TILTROTOR = 21
  6441. enums["MAV_TYPE"][21] = EnumEntry("MAV_TYPE_VTOL_TILTROTOR", """Tiltrotor VTOL. Fuselage and wings stay (nominally) horizontal in all flight phases. It able to tilt (some) rotors to provide thrust in cruise flight.""")
  6442. MAV_TYPE_VTOL_FIXEDROTOR = 22
  6443. enums["MAV_TYPE"][22] = EnumEntry("MAV_TYPE_VTOL_FIXEDROTOR", """VTOL with separate fixed rotors for hover and cruise flight. Fuselage and wings stay (nominally) horizontal in all flight phases.""")
  6444. MAV_TYPE_VTOL_TAILSITTER = 23
  6445. enums["MAV_TYPE"][23] = EnumEntry("MAV_TYPE_VTOL_TAILSITTER", """Tailsitter VTOL. Fuselage and wings orientation changes depending on flight phase: vertical for hover, horizontal for cruise. Use more specific VTOL MAV_TYPE_VTOL_TAILSITTER_DUOROTOR or MAV_TYPE_VTOL_TAILSITTER_QUADROTOR if appropriate.""")
  6446. MAV_TYPE_VTOL_TILTWING = 24
  6447. enums["MAV_TYPE"][24] = EnumEntry("MAV_TYPE_VTOL_TILTWING", """Tiltwing VTOL. Fuselage stays horizontal in all flight phases. The whole wing, along with any attached engine, can tilt between vertical and horizontal mode.""")
  6448. MAV_TYPE_VTOL_RESERVED5 = 25
  6449. enums["MAV_TYPE"][25] = EnumEntry("MAV_TYPE_VTOL_RESERVED5", """VTOL reserved 5""")
  6450. MAV_TYPE_GIMBAL = 26
  6451. enums["MAV_TYPE"][26] = EnumEntry("MAV_TYPE_GIMBAL", """Gimbal""")
  6452. MAV_TYPE_ADSB = 27
  6453. enums["MAV_TYPE"][27] = EnumEntry("MAV_TYPE_ADSB", """ADSB system""")
  6454. MAV_TYPE_PARAFOIL = 28
  6455. enums["MAV_TYPE"][28] = EnumEntry("MAV_TYPE_PARAFOIL", """Steerable, nonrigid airfoil""")
  6456. MAV_TYPE_DODECAROTOR = 29
  6457. enums["MAV_TYPE"][29] = EnumEntry("MAV_TYPE_DODECAROTOR", """Dodecarotor""")
  6458. MAV_TYPE_CAMERA = 30
  6459. enums["MAV_TYPE"][30] = EnumEntry("MAV_TYPE_CAMERA", """Camera""")
  6460. MAV_TYPE_CHARGING_STATION = 31
  6461. enums["MAV_TYPE"][31] = EnumEntry("MAV_TYPE_CHARGING_STATION", """Charging station""")
  6462. MAV_TYPE_FLARM = 32
  6463. enums["MAV_TYPE"][32] = EnumEntry("MAV_TYPE_FLARM", """FLARM collision avoidance system""")
  6464. MAV_TYPE_SERVO = 33
  6465. enums["MAV_TYPE"][33] = EnumEntry("MAV_TYPE_SERVO", """Servo""")
  6466. MAV_TYPE_ODID = 34
  6467. enums["MAV_TYPE"][34] = EnumEntry("MAV_TYPE_ODID", """Open Drone ID. See https://mavlink.io/en/services/opendroneid.html.""")
  6468. MAV_TYPE_DECAROTOR = 35
  6469. enums["MAV_TYPE"][35] = EnumEntry("MAV_TYPE_DECAROTOR", """Decarotor""")
  6470. MAV_TYPE_BATTERY = 36
  6471. enums["MAV_TYPE"][36] = EnumEntry("MAV_TYPE_BATTERY", """Battery""")
  6472. MAV_TYPE_PARACHUTE = 37
  6473. enums["MAV_TYPE"][37] = EnumEntry("MAV_TYPE_PARACHUTE", """Parachute""")
  6474. MAV_TYPE_LOG = 38
  6475. enums["MAV_TYPE"][38] = EnumEntry("MAV_TYPE_LOG", """Log""")
  6476. MAV_TYPE_OSD = 39
  6477. enums["MAV_TYPE"][39] = EnumEntry("MAV_TYPE_OSD", """OSD""")
  6478. MAV_TYPE_IMU = 40
  6479. enums["MAV_TYPE"][40] = EnumEntry("MAV_TYPE_IMU", """IMU""")
  6480. MAV_TYPE_GPS = 41
  6481. enums["MAV_TYPE"][41] = EnumEntry("MAV_TYPE_GPS", """GPS""")
  6482. MAV_TYPE_WINCH = 42
  6483. enums["MAV_TYPE"][42] = EnumEntry("MAV_TYPE_WINCH", """Winch""")
  6484. MAV_TYPE_GENERIC_MULTIROTOR = 43
  6485. enums["MAV_TYPE"][43] = EnumEntry("MAV_TYPE_GENERIC_MULTIROTOR", """Generic multirotor that does not fit into a specific type or whose type is unknown""")
  6486. MAV_TYPE_ENUM_END = 44
  6487. enums["MAV_TYPE"][44] = EnumEntry("MAV_TYPE_ENUM_END", """""")
  6488. # MAV_MODE_FLAG
  6489. enums["MAV_MODE_FLAG"] = Enum()
  6490. enums["MAV_MODE_FLAG"].bitmask = True
  6491. MAV_MODE_FLAG_CUSTOM_MODE_ENABLED = 1
  6492. enums["MAV_MODE_FLAG"][1] = EnumEntry("MAV_MODE_FLAG_CUSTOM_MODE_ENABLED", """0b00000001 Reserved for future use.""")
  6493. MAV_MODE_FLAG_TEST_ENABLED = 2
  6494. enums["MAV_MODE_FLAG"][2] = EnumEntry("MAV_MODE_FLAG_TEST_ENABLED", """0b00000010 system has a test mode enabled. This flag is intended for temporary system tests and should not be used for stable implementations.""")
  6495. MAV_MODE_FLAG_AUTO_ENABLED = 4
  6496. enums["MAV_MODE_FLAG"][4] = EnumEntry("MAV_MODE_FLAG_AUTO_ENABLED", """0b00000100 autonomous mode enabled, system finds its own goal positions. Guided flag can be set or not, depends on the actual implementation.""")
  6497. MAV_MODE_FLAG_GUIDED_ENABLED = 8
  6498. enums["MAV_MODE_FLAG"][8] = EnumEntry("MAV_MODE_FLAG_GUIDED_ENABLED", """0b00001000 guided mode enabled, system flies waypoints / mission items.""")
  6499. MAV_MODE_FLAG_STABILIZE_ENABLED = 16
  6500. enums["MAV_MODE_FLAG"][16] = EnumEntry("MAV_MODE_FLAG_STABILIZE_ENABLED", """0b00010000 system stabilizes electronically its attitude (and optionally position). It needs however further control inputs to move around.""")
  6501. MAV_MODE_FLAG_HIL_ENABLED = 32
  6502. enums["MAV_MODE_FLAG"][32] = EnumEntry("MAV_MODE_FLAG_HIL_ENABLED", """0b00100000 hardware in the loop simulation. All motors / actuators are blocked, but internal software is full operational.""")
  6503. MAV_MODE_FLAG_MANUAL_INPUT_ENABLED = 64
  6504. enums["MAV_MODE_FLAG"][64] = EnumEntry("MAV_MODE_FLAG_MANUAL_INPUT_ENABLED", """0b01000000 remote control input is enabled.""")
  6505. MAV_MODE_FLAG_SAFETY_ARMED = 128
  6506. enums["MAV_MODE_FLAG"][128] = EnumEntry("MAV_MODE_FLAG_SAFETY_ARMED", """0b10000000 MAV safety set to armed. Motors are enabled / running / can start. Ready to fly. Additional note: this flag is to be ignore when sent in the command MAV_CMD_DO_SET_MODE and MAV_CMD_COMPONENT_ARM_DISARM shall be used instead. The flag can still be used to report the armed state.""")
  6507. MAV_MODE_FLAG_ENUM_END = 129
  6508. enums["MAV_MODE_FLAG"][129] = EnumEntry("MAV_MODE_FLAG_ENUM_END", """""")
  6509. # MAV_MODE_FLAG_DECODE_POSITION
  6510. enums["MAV_MODE_FLAG_DECODE_POSITION"] = Enum()
  6511. enums["MAV_MODE_FLAG_DECODE_POSITION"].bitmask = True
  6512. MAV_MODE_FLAG_DECODE_POSITION_CUSTOM_MODE = 1
  6513. enums["MAV_MODE_FLAG_DECODE_POSITION"][1] = EnumEntry("MAV_MODE_FLAG_DECODE_POSITION_CUSTOM_MODE", """Eighth bit: 00000001""")
  6514. MAV_MODE_FLAG_DECODE_POSITION_TEST = 2
  6515. enums["MAV_MODE_FLAG_DECODE_POSITION"][2] = EnumEntry("MAV_MODE_FLAG_DECODE_POSITION_TEST", """Seventh bit: 00000010""")
  6516. MAV_MODE_FLAG_DECODE_POSITION_AUTO = 4
  6517. enums["MAV_MODE_FLAG_DECODE_POSITION"][4] = EnumEntry("MAV_MODE_FLAG_DECODE_POSITION_AUTO", """Sixth bit: 00000100""")
  6518. MAV_MODE_FLAG_DECODE_POSITION_GUIDED = 8
  6519. enums["MAV_MODE_FLAG_DECODE_POSITION"][8] = EnumEntry("MAV_MODE_FLAG_DECODE_POSITION_GUIDED", """Fifth bit: 00001000""")
  6520. MAV_MODE_FLAG_DECODE_POSITION_STABILIZE = 16
  6521. enums["MAV_MODE_FLAG_DECODE_POSITION"][16] = EnumEntry("MAV_MODE_FLAG_DECODE_POSITION_STABILIZE", """Fourth bit: 00010000""")
  6522. MAV_MODE_FLAG_DECODE_POSITION_HIL = 32
  6523. enums["MAV_MODE_FLAG_DECODE_POSITION"][32] = EnumEntry("MAV_MODE_FLAG_DECODE_POSITION_HIL", """Third bit: 00100000""")
  6524. MAV_MODE_FLAG_DECODE_POSITION_MANUAL = 64
  6525. enums["MAV_MODE_FLAG_DECODE_POSITION"][64] = EnumEntry("MAV_MODE_FLAG_DECODE_POSITION_MANUAL", """Second bit: 01000000""")
  6526. MAV_MODE_FLAG_DECODE_POSITION_SAFETY = 128
  6527. enums["MAV_MODE_FLAG_DECODE_POSITION"][128] = EnumEntry("MAV_MODE_FLAG_DECODE_POSITION_SAFETY", """First bit: 10000000""")
  6528. MAV_MODE_FLAG_DECODE_POSITION_ENUM_END = 129
  6529. enums["MAV_MODE_FLAG_DECODE_POSITION"][129] = EnumEntry("MAV_MODE_FLAG_DECODE_POSITION_ENUM_END", """""")
  6530. # MAV_STATE
  6531. enums["MAV_STATE"] = Enum()
  6532. enums["MAV_STATE"].bitmask = False
  6533. MAV_STATE_UNINIT = 0
  6534. enums["MAV_STATE"][0] = EnumEntry("MAV_STATE_UNINIT", """Uninitialized system, state is unknown.""")
  6535. MAV_STATE_BOOT = 1
  6536. enums["MAV_STATE"][1] = EnumEntry("MAV_STATE_BOOT", """System is booting up.""")
  6537. MAV_STATE_CALIBRATING = 2
  6538. enums["MAV_STATE"][2] = EnumEntry("MAV_STATE_CALIBRATING", """System is calibrating and not flight-ready.""")
  6539. MAV_STATE_STANDBY = 3
  6540. enums["MAV_STATE"][3] = EnumEntry("MAV_STATE_STANDBY", """System is grounded and on standby. It can be launched any time.""")
  6541. MAV_STATE_ACTIVE = 4
  6542. enums["MAV_STATE"][4] = EnumEntry("MAV_STATE_ACTIVE", """System is active and might be already airborne. Motors are engaged.""")
  6543. MAV_STATE_CRITICAL = 5
  6544. enums["MAV_STATE"][5] = EnumEntry("MAV_STATE_CRITICAL", """System is in a non-normal flight mode (failsafe). It can however still navigate.""")
  6545. MAV_STATE_EMERGENCY = 6
  6546. enums["MAV_STATE"][6] = EnumEntry("MAV_STATE_EMERGENCY", """System is in a non-normal flight mode (failsafe). It lost control over parts or over the whole airframe. It is in mayday and going down.""")
  6547. MAV_STATE_POWEROFF = 7
  6548. enums["MAV_STATE"][7] = EnumEntry("MAV_STATE_POWEROFF", """System just initialized its power-down sequence, will shut down now.""")
  6549. MAV_STATE_FLIGHT_TERMINATION = 8
  6550. enums["MAV_STATE"][8] = EnumEntry("MAV_STATE_FLIGHT_TERMINATION", """System is terminating itself (failsafe or commanded).""")
  6551. MAV_STATE_ENUM_END = 9
  6552. enums["MAV_STATE"][9] = EnumEntry("MAV_STATE_ENUM_END", """""")
  6553. # MAV_COMPONENT
  6554. enums["MAV_COMPONENT"] = Enum()
  6555. enums["MAV_COMPONENT"].bitmask = False
  6556. MAV_COMP_ID_ALL = 0
  6557. enums["MAV_COMPONENT"][0] = EnumEntry("MAV_COMP_ID_ALL", """Target id (target_component) used to broadcast messages to all components of the receiving system. Components should attempt to process messages with this component ID and forward to components on any other interfaces. Note: This is not a valid *source* component id for a message.""")
  6558. MAV_COMP_ID_AUTOPILOT1 = 1
  6559. enums["MAV_COMPONENT"][1] = EnumEntry("MAV_COMP_ID_AUTOPILOT1", """System flight controller component ("autopilot"). Only one autopilot is expected in a particular system.""")
  6560. MAV_COMP_ID_USER1 = 25
  6561. enums["MAV_COMPONENT"][25] = EnumEntry("MAV_COMP_ID_USER1", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6562. MAV_COMP_ID_USER2 = 26
  6563. enums["MAV_COMPONENT"][26] = EnumEntry("MAV_COMP_ID_USER2", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6564. MAV_COMP_ID_USER3 = 27
  6565. enums["MAV_COMPONENT"][27] = EnumEntry("MAV_COMP_ID_USER3", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6566. MAV_COMP_ID_USER4 = 28
  6567. enums["MAV_COMPONENT"][28] = EnumEntry("MAV_COMP_ID_USER4", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6568. MAV_COMP_ID_USER5 = 29
  6569. enums["MAV_COMPONENT"][29] = EnumEntry("MAV_COMP_ID_USER5", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6570. MAV_COMP_ID_USER6 = 30
  6571. enums["MAV_COMPONENT"][30] = EnumEntry("MAV_COMP_ID_USER6", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6572. MAV_COMP_ID_USER7 = 31
  6573. enums["MAV_COMPONENT"][31] = EnumEntry("MAV_COMP_ID_USER7", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6574. MAV_COMP_ID_USER8 = 32
  6575. enums["MAV_COMPONENT"][32] = EnumEntry("MAV_COMP_ID_USER8", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6576. MAV_COMP_ID_USER9 = 33
  6577. enums["MAV_COMPONENT"][33] = EnumEntry("MAV_COMP_ID_USER9", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6578. MAV_COMP_ID_USER10 = 34
  6579. enums["MAV_COMPONENT"][34] = EnumEntry("MAV_COMP_ID_USER10", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6580. MAV_COMP_ID_USER11 = 35
  6581. enums["MAV_COMPONENT"][35] = EnumEntry("MAV_COMP_ID_USER11", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6582. MAV_COMP_ID_USER12 = 36
  6583. enums["MAV_COMPONENT"][36] = EnumEntry("MAV_COMP_ID_USER12", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6584. MAV_COMP_ID_USER13 = 37
  6585. enums["MAV_COMPONENT"][37] = EnumEntry("MAV_COMP_ID_USER13", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6586. MAV_COMP_ID_USER14 = 38
  6587. enums["MAV_COMPONENT"][38] = EnumEntry("MAV_COMP_ID_USER14", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6588. MAV_COMP_ID_USER15 = 39
  6589. enums["MAV_COMPONENT"][39] = EnumEntry("MAV_COMP_ID_USER15", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6590. MAV_COMP_ID_USER16 = 40
  6591. enums["MAV_COMPONENT"][40] = EnumEntry("MAV_COMP_ID_USER16", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6592. MAV_COMP_ID_USER17 = 41
  6593. enums["MAV_COMPONENT"][41] = EnumEntry("MAV_COMP_ID_USER17", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6594. MAV_COMP_ID_USER18 = 42
  6595. enums["MAV_COMPONENT"][42] = EnumEntry("MAV_COMP_ID_USER18", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6596. MAV_COMP_ID_USER19 = 43
  6597. enums["MAV_COMPONENT"][43] = EnumEntry("MAV_COMP_ID_USER19", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6598. MAV_COMP_ID_USER20 = 44
  6599. enums["MAV_COMPONENT"][44] = EnumEntry("MAV_COMP_ID_USER20", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6600. MAV_COMP_ID_USER21 = 45
  6601. enums["MAV_COMPONENT"][45] = EnumEntry("MAV_COMP_ID_USER21", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6602. MAV_COMP_ID_USER22 = 46
  6603. enums["MAV_COMPONENT"][46] = EnumEntry("MAV_COMP_ID_USER22", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6604. MAV_COMP_ID_USER23 = 47
  6605. enums["MAV_COMPONENT"][47] = EnumEntry("MAV_COMP_ID_USER23", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6606. MAV_COMP_ID_USER24 = 48
  6607. enums["MAV_COMPONENT"][48] = EnumEntry("MAV_COMP_ID_USER24", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6608. MAV_COMP_ID_USER25 = 49
  6609. enums["MAV_COMPONENT"][49] = EnumEntry("MAV_COMP_ID_USER25", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6610. MAV_COMP_ID_USER26 = 50
  6611. enums["MAV_COMPONENT"][50] = EnumEntry("MAV_COMP_ID_USER26", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6612. MAV_COMP_ID_USER27 = 51
  6613. enums["MAV_COMPONENT"][51] = EnumEntry("MAV_COMP_ID_USER27", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6614. MAV_COMP_ID_USER28 = 52
  6615. enums["MAV_COMPONENT"][52] = EnumEntry("MAV_COMP_ID_USER28", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6616. MAV_COMP_ID_USER29 = 53
  6617. enums["MAV_COMPONENT"][53] = EnumEntry("MAV_COMP_ID_USER29", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6618. MAV_COMP_ID_USER30 = 54
  6619. enums["MAV_COMPONENT"][54] = EnumEntry("MAV_COMP_ID_USER30", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6620. MAV_COMP_ID_USER31 = 55
  6621. enums["MAV_COMPONENT"][55] = EnumEntry("MAV_COMP_ID_USER31", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6622. MAV_COMP_ID_USER32 = 56
  6623. enums["MAV_COMPONENT"][56] = EnumEntry("MAV_COMP_ID_USER32", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6624. MAV_COMP_ID_USER33 = 57
  6625. enums["MAV_COMPONENT"][57] = EnumEntry("MAV_COMP_ID_USER33", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6626. MAV_COMP_ID_USER34 = 58
  6627. enums["MAV_COMPONENT"][58] = EnumEntry("MAV_COMP_ID_USER34", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6628. MAV_COMP_ID_USER35 = 59
  6629. enums["MAV_COMPONENT"][59] = EnumEntry("MAV_COMP_ID_USER35", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6630. MAV_COMP_ID_USER36 = 60
  6631. enums["MAV_COMPONENT"][60] = EnumEntry("MAV_COMP_ID_USER36", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6632. MAV_COMP_ID_USER37 = 61
  6633. enums["MAV_COMPONENT"][61] = EnumEntry("MAV_COMP_ID_USER37", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6634. MAV_COMP_ID_USER38 = 62
  6635. enums["MAV_COMPONENT"][62] = EnumEntry("MAV_COMP_ID_USER38", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6636. MAV_COMP_ID_USER39 = 63
  6637. enums["MAV_COMPONENT"][63] = EnumEntry("MAV_COMP_ID_USER39", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6638. MAV_COMP_ID_USER40 = 64
  6639. enums["MAV_COMPONENT"][64] = EnumEntry("MAV_COMP_ID_USER40", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6640. MAV_COMP_ID_USER41 = 65
  6641. enums["MAV_COMPONENT"][65] = EnumEntry("MAV_COMP_ID_USER41", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6642. MAV_COMP_ID_USER42 = 66
  6643. enums["MAV_COMPONENT"][66] = EnumEntry("MAV_COMP_ID_USER42", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6644. MAV_COMP_ID_USER43 = 67
  6645. enums["MAV_COMPONENT"][67] = EnumEntry("MAV_COMP_ID_USER43", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6646. MAV_COMP_ID_TELEMETRY_RADIO = 68
  6647. enums["MAV_COMPONENT"][68] = EnumEntry("MAV_COMP_ID_TELEMETRY_RADIO", """Telemetry radio (e.g. SiK radio, or other component that emits RADIO_STATUS messages).""")
  6648. MAV_COMP_ID_USER45 = 69
  6649. enums["MAV_COMPONENT"][69] = EnumEntry("MAV_COMP_ID_USER45", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6650. MAV_COMP_ID_USER46 = 70
  6651. enums["MAV_COMPONENT"][70] = EnumEntry("MAV_COMP_ID_USER46", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6652. MAV_COMP_ID_USER47 = 71
  6653. enums["MAV_COMPONENT"][71] = EnumEntry("MAV_COMP_ID_USER47", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6654. MAV_COMP_ID_USER48 = 72
  6655. enums["MAV_COMPONENT"][72] = EnumEntry("MAV_COMP_ID_USER48", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6656. MAV_COMP_ID_USER49 = 73
  6657. enums["MAV_COMPONENT"][73] = EnumEntry("MAV_COMP_ID_USER49", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6658. MAV_COMP_ID_USER50 = 74
  6659. enums["MAV_COMPONENT"][74] = EnumEntry("MAV_COMP_ID_USER50", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6660. MAV_COMP_ID_USER51 = 75
  6661. enums["MAV_COMPONENT"][75] = EnumEntry("MAV_COMP_ID_USER51", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6662. MAV_COMP_ID_USER52 = 76
  6663. enums["MAV_COMPONENT"][76] = EnumEntry("MAV_COMP_ID_USER52", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6664. MAV_COMP_ID_USER53 = 77
  6665. enums["MAV_COMPONENT"][77] = EnumEntry("MAV_COMP_ID_USER53", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6666. MAV_COMP_ID_USER54 = 78
  6667. enums["MAV_COMPONENT"][78] = EnumEntry("MAV_COMP_ID_USER54", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6668. MAV_COMP_ID_USER55 = 79
  6669. enums["MAV_COMPONENT"][79] = EnumEntry("MAV_COMP_ID_USER55", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6670. MAV_COMP_ID_USER56 = 80
  6671. enums["MAV_COMPONENT"][80] = EnumEntry("MAV_COMP_ID_USER56", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6672. MAV_COMP_ID_USER57 = 81
  6673. enums["MAV_COMPONENT"][81] = EnumEntry("MAV_COMP_ID_USER57", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6674. MAV_COMP_ID_USER58 = 82
  6675. enums["MAV_COMPONENT"][82] = EnumEntry("MAV_COMP_ID_USER58", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6676. MAV_COMP_ID_USER59 = 83
  6677. enums["MAV_COMPONENT"][83] = EnumEntry("MAV_COMP_ID_USER59", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6678. MAV_COMP_ID_USER60 = 84
  6679. enums["MAV_COMPONENT"][84] = EnumEntry("MAV_COMP_ID_USER60", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6680. MAV_COMP_ID_USER61 = 85
  6681. enums["MAV_COMPONENT"][85] = EnumEntry("MAV_COMP_ID_USER61", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6682. MAV_COMP_ID_USER62 = 86
  6683. enums["MAV_COMPONENT"][86] = EnumEntry("MAV_COMP_ID_USER62", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6684. MAV_COMP_ID_USER63 = 87
  6685. enums["MAV_COMPONENT"][87] = EnumEntry("MAV_COMP_ID_USER63", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6686. MAV_COMP_ID_USER64 = 88
  6687. enums["MAV_COMPONENT"][88] = EnumEntry("MAV_COMP_ID_USER64", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6688. MAV_COMP_ID_USER65 = 89
  6689. enums["MAV_COMPONENT"][89] = EnumEntry("MAV_COMP_ID_USER65", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6690. MAV_COMP_ID_USER66 = 90
  6691. enums["MAV_COMPONENT"][90] = EnumEntry("MAV_COMP_ID_USER66", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6692. MAV_COMP_ID_USER67 = 91
  6693. enums["MAV_COMPONENT"][91] = EnumEntry("MAV_COMP_ID_USER67", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6694. MAV_COMP_ID_USER68 = 92
  6695. enums["MAV_COMPONENT"][92] = EnumEntry("MAV_COMP_ID_USER68", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6696. MAV_COMP_ID_USER69 = 93
  6697. enums["MAV_COMPONENT"][93] = EnumEntry("MAV_COMP_ID_USER69", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6698. MAV_COMP_ID_USER70 = 94
  6699. enums["MAV_COMPONENT"][94] = EnumEntry("MAV_COMP_ID_USER70", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6700. MAV_COMP_ID_USER71 = 95
  6701. enums["MAV_COMPONENT"][95] = EnumEntry("MAV_COMP_ID_USER71", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6702. MAV_COMP_ID_USER72 = 96
  6703. enums["MAV_COMPONENT"][96] = EnumEntry("MAV_COMP_ID_USER72", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6704. MAV_COMP_ID_USER73 = 97
  6705. enums["MAV_COMPONENT"][97] = EnumEntry("MAV_COMP_ID_USER73", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6706. MAV_COMP_ID_USER74 = 98
  6707. enums["MAV_COMPONENT"][98] = EnumEntry("MAV_COMP_ID_USER74", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6708. MAV_COMP_ID_USER75 = 99
  6709. enums["MAV_COMPONENT"][99] = EnumEntry("MAV_COMP_ID_USER75", """Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.""")
  6710. MAV_COMP_ID_CAMERA = 100
  6711. enums["MAV_COMPONENT"][100] = EnumEntry("MAV_COMP_ID_CAMERA", """Camera #1.""")
  6712. MAV_COMP_ID_CAMERA2 = 101
  6713. enums["MAV_COMPONENT"][101] = EnumEntry("MAV_COMP_ID_CAMERA2", """Camera #2.""")
  6714. MAV_COMP_ID_CAMERA3 = 102
  6715. enums["MAV_COMPONENT"][102] = EnumEntry("MAV_COMP_ID_CAMERA3", """Camera #3.""")
  6716. MAV_COMP_ID_CAMERA4 = 103
  6717. enums["MAV_COMPONENT"][103] = EnumEntry("MAV_COMP_ID_CAMERA4", """Camera #4.""")
  6718. MAV_COMP_ID_CAMERA5 = 104
  6719. enums["MAV_COMPONENT"][104] = EnumEntry("MAV_COMP_ID_CAMERA5", """Camera #5.""")
  6720. MAV_COMP_ID_CAMERA6 = 105
  6721. enums["MAV_COMPONENT"][105] = EnumEntry("MAV_COMP_ID_CAMERA6", """Camera #6.""")
  6722. MAV_COMP_ID_SERVO1 = 140
  6723. enums["MAV_COMPONENT"][140] = EnumEntry("MAV_COMP_ID_SERVO1", """Servo #1.""")
  6724. MAV_COMP_ID_SERVO2 = 141
  6725. enums["MAV_COMPONENT"][141] = EnumEntry("MAV_COMP_ID_SERVO2", """Servo #2.""")
  6726. MAV_COMP_ID_SERVO3 = 142
  6727. enums["MAV_COMPONENT"][142] = EnumEntry("MAV_COMP_ID_SERVO3", """Servo #3.""")
  6728. MAV_COMP_ID_SERVO4 = 143
  6729. enums["MAV_COMPONENT"][143] = EnumEntry("MAV_COMP_ID_SERVO4", """Servo #4.""")
  6730. MAV_COMP_ID_SERVO5 = 144
  6731. enums["MAV_COMPONENT"][144] = EnumEntry("MAV_COMP_ID_SERVO5", """Servo #5.""")
  6732. MAV_COMP_ID_SERVO6 = 145
  6733. enums["MAV_COMPONENT"][145] = EnumEntry("MAV_COMP_ID_SERVO6", """Servo #6.""")
  6734. MAV_COMP_ID_SERVO7 = 146
  6735. enums["MAV_COMPONENT"][146] = EnumEntry("MAV_COMP_ID_SERVO7", """Servo #7.""")
  6736. MAV_COMP_ID_SERVO8 = 147
  6737. enums["MAV_COMPONENT"][147] = EnumEntry("MAV_COMP_ID_SERVO8", """Servo #8.""")
  6738. MAV_COMP_ID_SERVO9 = 148
  6739. enums["MAV_COMPONENT"][148] = EnumEntry("MAV_COMP_ID_SERVO9", """Servo #9.""")
  6740. MAV_COMP_ID_SERVO10 = 149
  6741. enums["MAV_COMPONENT"][149] = EnumEntry("MAV_COMP_ID_SERVO10", """Servo #10.""")
  6742. MAV_COMP_ID_SERVO11 = 150
  6743. enums["MAV_COMPONENT"][150] = EnumEntry("MAV_COMP_ID_SERVO11", """Servo #11.""")
  6744. MAV_COMP_ID_SERVO12 = 151
  6745. enums["MAV_COMPONENT"][151] = EnumEntry("MAV_COMP_ID_SERVO12", """Servo #12.""")
  6746. MAV_COMP_ID_SERVO13 = 152
  6747. enums["MAV_COMPONENT"][152] = EnumEntry("MAV_COMP_ID_SERVO13", """Servo #13.""")
  6748. MAV_COMP_ID_SERVO14 = 153
  6749. enums["MAV_COMPONENT"][153] = EnumEntry("MAV_COMP_ID_SERVO14", """Servo #14.""")
  6750. MAV_COMP_ID_GIMBAL = 154
  6751. enums["MAV_COMPONENT"][154] = EnumEntry("MAV_COMP_ID_GIMBAL", """Gimbal #1.""")
  6752. MAV_COMP_ID_LOG = 155
  6753. enums["MAV_COMPONENT"][155] = EnumEntry("MAV_COMP_ID_LOG", """Logging component.""")
  6754. MAV_COMP_ID_ADSB = 156
  6755. enums["MAV_COMPONENT"][156] = EnumEntry("MAV_COMP_ID_ADSB", """Automatic Dependent Surveillance-Broadcast (ADS-B) component.""")
  6756. MAV_COMP_ID_OSD = 157
  6757. enums["MAV_COMPONENT"][157] = EnumEntry("MAV_COMP_ID_OSD", """On Screen Display (OSD) devices for video links.""")
  6758. MAV_COMP_ID_PERIPHERAL = 158
  6759. enums["MAV_COMPONENT"][158] = EnumEntry("MAV_COMP_ID_PERIPHERAL", """Generic autopilot peripheral component ID. Meant for devices that do not implement the parameter microservice.""")
  6760. MAV_COMP_ID_QX1_GIMBAL = 159
  6761. enums["MAV_COMPONENT"][159] = EnumEntry("MAV_COMP_ID_QX1_GIMBAL", """Gimbal ID for QX1.""")
  6762. MAV_COMP_ID_FLARM = 160
  6763. enums["MAV_COMPONENT"][160] = EnumEntry("MAV_COMP_ID_FLARM", """FLARM collision alert component.""")
  6764. MAV_COMP_ID_PARACHUTE = 161
  6765. enums["MAV_COMPONENT"][161] = EnumEntry("MAV_COMP_ID_PARACHUTE", """Parachute component.""")
  6766. MAV_COMP_ID_WINCH = 169
  6767. enums["MAV_COMPONENT"][169] = EnumEntry("MAV_COMP_ID_WINCH", """Winch component.""")
  6768. MAV_COMP_ID_GIMBAL2 = 171
  6769. enums["MAV_COMPONENT"][171] = EnumEntry("MAV_COMP_ID_GIMBAL2", """Gimbal #2.""")
  6770. MAV_COMP_ID_GIMBAL3 = 172
  6771. enums["MAV_COMPONENT"][172] = EnumEntry("MAV_COMP_ID_GIMBAL3", """Gimbal #3.""")
  6772. MAV_COMP_ID_GIMBAL4 = 173
  6773. enums["MAV_COMPONENT"][173] = EnumEntry("MAV_COMP_ID_GIMBAL4", """Gimbal #4""")
  6774. MAV_COMP_ID_GIMBAL5 = 174
  6775. enums["MAV_COMPONENT"][174] = EnumEntry("MAV_COMP_ID_GIMBAL5", """Gimbal #5.""")
  6776. MAV_COMP_ID_GIMBAL6 = 175
  6777. enums["MAV_COMPONENT"][175] = EnumEntry("MAV_COMP_ID_GIMBAL6", """Gimbal #6.""")
  6778. MAV_COMP_ID_BATTERY = 180
  6779. enums["MAV_COMPONENT"][180] = EnumEntry("MAV_COMP_ID_BATTERY", """Battery #1.""")
  6780. MAV_COMP_ID_BATTERY2 = 181
  6781. enums["MAV_COMPONENT"][181] = EnumEntry("MAV_COMP_ID_BATTERY2", """Battery #2.""")
  6782. MAV_COMP_ID_MAVCAN = 189
  6783. enums["MAV_COMPONENT"][189] = EnumEntry("MAV_COMP_ID_MAVCAN", """CAN over MAVLink client.""")
  6784. MAV_COMP_ID_MISSIONPLANNER = 190
  6785. enums["MAV_COMPONENT"][190] = EnumEntry("MAV_COMP_ID_MISSIONPLANNER", """Component that can generate/supply a mission flight plan (e.g. GCS or developer API).""")
  6786. MAV_COMP_ID_ONBOARD_COMPUTER = 191
  6787. enums["MAV_COMPONENT"][191] = EnumEntry("MAV_COMP_ID_ONBOARD_COMPUTER", """Component that lives on the onboard computer (companion computer) and has some generic functionalities, such as settings system parameters and monitoring the status of some processes that don't directly speak mavlink and so on.""")
  6788. MAV_COMP_ID_ONBOARD_COMPUTER2 = 192
  6789. enums["MAV_COMPONENT"][192] = EnumEntry("MAV_COMP_ID_ONBOARD_COMPUTER2", """Component that lives on the onboard computer (companion computer) and has some generic functionalities, such as settings system parameters and monitoring the status of some processes that don't directly speak mavlink and so on.""")
  6790. MAV_COMP_ID_ONBOARD_COMPUTER3 = 193
  6791. enums["MAV_COMPONENT"][193] = EnumEntry("MAV_COMP_ID_ONBOARD_COMPUTER3", """Component that lives on the onboard computer (companion computer) and has some generic functionalities, such as settings system parameters and monitoring the status of some processes that don't directly speak mavlink and so on.""")
  6792. MAV_COMP_ID_ONBOARD_COMPUTER4 = 194
  6793. enums["MAV_COMPONENT"][194] = EnumEntry("MAV_COMP_ID_ONBOARD_COMPUTER4", """Component that lives on the onboard computer (companion computer) and has some generic functionalities, such as settings system parameters and monitoring the status of some processes that don't directly speak mavlink and so on.""")
  6794. MAV_COMP_ID_PATHPLANNER = 195
  6795. enums["MAV_COMPONENT"][195] = EnumEntry("MAV_COMP_ID_PATHPLANNER", """Component that finds an optimal path between points based on a certain constraint (e.g. minimum snap, shortest path, cost, etc.).""")
  6796. MAV_COMP_ID_OBSTACLE_AVOIDANCE = 196
  6797. enums["MAV_COMPONENT"][196] = EnumEntry("MAV_COMP_ID_OBSTACLE_AVOIDANCE", """Component that plans a collision free path between two points.""")
  6798. MAV_COMP_ID_VISUAL_INERTIAL_ODOMETRY = 197
  6799. enums["MAV_COMPONENT"][197] = EnumEntry("MAV_COMP_ID_VISUAL_INERTIAL_ODOMETRY", """Component that provides position estimates using VIO techniques.""")
  6800. MAV_COMP_ID_PAIRING_MANAGER = 198
  6801. enums["MAV_COMPONENT"][198] = EnumEntry("MAV_COMP_ID_PAIRING_MANAGER", """Component that manages pairing of vehicle and GCS.""")
  6802. MAV_COMP_ID_IMU = 200
  6803. enums["MAV_COMPONENT"][200] = EnumEntry("MAV_COMP_ID_IMU", """Inertial Measurement Unit (IMU) #1.""")
  6804. MAV_COMP_ID_IMU_2 = 201
  6805. enums["MAV_COMPONENT"][201] = EnumEntry("MAV_COMP_ID_IMU_2", """Inertial Measurement Unit (IMU) #2.""")
  6806. MAV_COMP_ID_IMU_3 = 202
  6807. enums["MAV_COMPONENT"][202] = EnumEntry("MAV_COMP_ID_IMU_3", """Inertial Measurement Unit (IMU) #3.""")
  6808. MAV_COMP_ID_GPS = 220
  6809. enums["MAV_COMPONENT"][220] = EnumEntry("MAV_COMP_ID_GPS", """GPS #1.""")
  6810. MAV_COMP_ID_GPS2 = 221
  6811. enums["MAV_COMPONENT"][221] = EnumEntry("MAV_COMP_ID_GPS2", """GPS #2.""")
  6812. MAV_COMP_ID_ODID_TXRX_1 = 236
  6813. enums["MAV_COMPONENT"][236] = EnumEntry("MAV_COMP_ID_ODID_TXRX_1", """Open Drone ID transmitter/receiver (Bluetooth/WiFi/Internet).""")
  6814. MAV_COMP_ID_ODID_TXRX_2 = 237
  6815. enums["MAV_COMPONENT"][237] = EnumEntry("MAV_COMP_ID_ODID_TXRX_2", """Open Drone ID transmitter/receiver (Bluetooth/WiFi/Internet).""")
  6816. MAV_COMP_ID_ODID_TXRX_3 = 238
  6817. enums["MAV_COMPONENT"][238] = EnumEntry("MAV_COMP_ID_ODID_TXRX_3", """Open Drone ID transmitter/receiver (Bluetooth/WiFi/Internet).""")
  6818. MAV_COMP_ID_UDP_BRIDGE = 240
  6819. enums["MAV_COMPONENT"][240] = EnumEntry("MAV_COMP_ID_UDP_BRIDGE", """Component to bridge MAVLink to UDP (i.e. from a UART).""")
  6820. MAV_COMP_ID_UART_BRIDGE = 241
  6821. enums["MAV_COMPONENT"][241] = EnumEntry("MAV_COMP_ID_UART_BRIDGE", """Component to bridge to UART (i.e. from UDP).""")
  6822. MAV_COMP_ID_TUNNEL_NODE = 242
  6823. enums["MAV_COMPONENT"][242] = EnumEntry("MAV_COMP_ID_TUNNEL_NODE", """Component handling TUNNEL messages (e.g. vendor specific GUI of a component).""")
  6824. MAV_COMP_ID_SYSTEM_CONTROL = 250
  6825. enums["MAV_COMPONENT"][250] = EnumEntry("MAV_COMP_ID_SYSTEM_CONTROL", """Deprecated, don't use. Component for handling system messages (e.g. to ARM, takeoff, etc.).""")
  6826. MAV_COMPONENT_ENUM_END = 251
  6827. enums["MAV_COMPONENT"][251] = EnumEntry("MAV_COMPONENT_ENUM_END", """""")
  6828. # message IDs
  6829. MAVLINK_MSG_ID_BAD_DATA = -1
  6830. MAVLINK_MSG_ID_UNKNOWN = -2
  6831. MAVLINK_MSG_ID_VKINS_STATUS = 53000
  6832. MAVLINK_MSG_ID_VKFMU_STATUS = 53001
  6833. MAVLINK_MSG_ID_VK_ROI_TARGET = 53002
  6834. MAVLINK_MSG_ID_VK_BMS_STATUS = 53003
  6835. MAVLINK_MSG_ID_VK_FORMATION_LEADER = 53004
  6836. MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS = 53005
  6837. MAVLINK_MSG_ID_VK_COMP_VERSION = 53006
  6838. MAVLINK_MSG_ID_VK_MOSAICH_GPS_RAW = 53007
  6839. MAVLINK_MSG_ID_VK_DIGI_ESC_STATUS = 53008
  6840. MAVLINK_MSG_ID_VK_FIXEDWING_CONTROL_VALUE = 53009
  6841. MAVLINK_MSG_ID_VK_FIXEDWING_SERVO_SIGNAL = 53010
  6842. MAVLINK_MSG_ID_VK_FIXEDWING_RTL_CIRCLE_WP = 53011
  6843. MAVLINK_MSG_ID_VK_AIRSPEED = 53012
  6844. MAVLINK_MSG_ID_VK_PARACHUTE_STATUS = 53020
  6845. MAVLINK_MSG_ID_VK_WEIGHER_STATE = 53021
  6846. MAVLINK_MSG_ID_VK_PAYLOAD_DATA_RELAY = 53022
  6847. MAVLINK_MSG_ID_VK_EXTERNAL_INS_NAV = 53023
  6848. MAVLINK_MSG_ID_VK_RTK_BASE_PVT = 53024
  6849. MAVLINK_MSG_ID_VKFLY_EDU_STATUS = 53025
  6850. MAVLINK_MSG_ID_VKFLY_EDU_STATUS_ACK = 53026
  6851. MAVLINK_MSG_ID_VKFLY_TIANQU_SERVO_STATUS = 53030
  6852. MAVLINK_MSG_ID_VK_ADC_EXT_STATUS = 53031
  6853. MAVLINK_MSG_ID_VK_OBSTACLE_DISTANCE = 53032
  6854. MAVLINK_MSG_ID_VK_FW_UPDATE_BEGIN = 53100
  6855. MAVLINK_MSG_ID_VK_FW_UPDATE_ACK = 53101
  6856. MAVLINK_MSG_ID_VK_FW_UPDATE_DATA_REQUEST = 53102
  6857. MAVLINK_MSG_ID_VK_FW_UPDATE_DATA = 53103
  6858. MAVLINK_MSG_ID_VK_UPDATE_TERMINATE = 53104
  6859. MAVLINK_MSG_ID_VK_CACC_MANAGER_VERIFY = 53110
  6860. MAVLINK_MSG_ID_VK_EXT_VISION_FUSION = 53111
  6861. MAVLINK_MSG_ID_KMUB_STATUS = 53200
  6862. MAVLINK_MSG_ID_QINGXIE_BMS = 53300
  6863. MAVLINK_MSG_ID_SYS_STATUS = 1
  6864. MAVLINK_MSG_ID_SYSTEM_TIME = 2
  6865. MAVLINK_MSG_ID_PING = 4
  6866. MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL = 5
  6867. MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK = 6
  6868. MAVLINK_MSG_ID_AUTH_KEY = 7
  6869. MAVLINK_MSG_ID_LINK_NODE_STATUS = 8
  6870. MAVLINK_MSG_ID_SET_MODE = 11
  6871. MAVLINK_MSG_ID_PARAM_REQUEST_READ = 20
  6872. MAVLINK_MSG_ID_PARAM_REQUEST_LIST = 21
  6873. MAVLINK_MSG_ID_PARAM_VALUE = 22
  6874. MAVLINK_MSG_ID_PARAM_SET = 23
  6875. MAVLINK_MSG_ID_GPS_RAW_INT = 24
  6876. MAVLINK_MSG_ID_GPS_STATUS = 25
  6877. MAVLINK_MSG_ID_SCALED_IMU = 26
  6878. MAVLINK_MSG_ID_RAW_IMU = 27
  6879. MAVLINK_MSG_ID_RAW_PRESSURE = 28
  6880. MAVLINK_MSG_ID_SCALED_PRESSURE = 29
  6881. MAVLINK_MSG_ID_ATTITUDE = 30
  6882. MAVLINK_MSG_ID_ATTITUDE_QUATERNION = 31
  6883. MAVLINK_MSG_ID_LOCAL_POSITION_NED = 32
  6884. MAVLINK_MSG_ID_GLOBAL_POSITION_INT = 33
  6885. MAVLINK_MSG_ID_RC_CHANNELS_SCALED = 34
  6886. MAVLINK_MSG_ID_RC_CHANNELS_RAW = 35
  6887. MAVLINK_MSG_ID_SERVO_OUTPUT_RAW = 36
  6888. MAVLINK_MSG_ID_MISSION_REQUEST_PARTIAL_LIST = 37
  6889. MAVLINK_MSG_ID_MISSION_WRITE_PARTIAL_LIST = 38
  6890. MAVLINK_MSG_ID_MISSION_ITEM = 39
  6891. MAVLINK_MSG_ID_MISSION_REQUEST = 40
  6892. MAVLINK_MSG_ID_MISSION_SET_CURRENT = 41
  6893. MAVLINK_MSG_ID_MISSION_CURRENT = 42
  6894. MAVLINK_MSG_ID_MISSION_REQUEST_LIST = 43
  6895. MAVLINK_MSG_ID_MISSION_COUNT = 44
  6896. MAVLINK_MSG_ID_MISSION_CLEAR_ALL = 45
  6897. MAVLINK_MSG_ID_MISSION_ITEM_REACHED = 46
  6898. MAVLINK_MSG_ID_MISSION_ACK = 47
  6899. MAVLINK_MSG_ID_SET_GPS_GLOBAL_ORIGIN = 48
  6900. MAVLINK_MSG_ID_GPS_GLOBAL_ORIGIN = 49
  6901. MAVLINK_MSG_ID_PARAM_MAP_RC = 50
  6902. MAVLINK_MSG_ID_MISSION_REQUEST_INT = 51
  6903. MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA = 54
  6904. MAVLINK_MSG_ID_SAFETY_ALLOWED_AREA = 55
  6905. MAVLINK_MSG_ID_ATTITUDE_QUATERNION_COV = 61
  6906. MAVLINK_MSG_ID_NAV_CONTROLLER_OUTPUT = 62
  6907. MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV = 63
  6908. MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV = 64
  6909. MAVLINK_MSG_ID_RC_CHANNELS = 65
  6910. MAVLINK_MSG_ID_REQUEST_DATA_STREAM = 66
  6911. MAVLINK_MSG_ID_DATA_STREAM = 67
  6912. MAVLINK_MSG_ID_MANUAL_CONTROL = 69
  6913. MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE = 70
  6914. MAVLINK_MSG_ID_MISSION_ITEM_INT = 73
  6915. MAVLINK_MSG_ID_VFR_HUD = 74
  6916. MAVLINK_MSG_ID_COMMAND_INT = 75
  6917. MAVLINK_MSG_ID_COMMAND_LONG = 76
  6918. MAVLINK_MSG_ID_COMMAND_ACK = 77
  6919. MAVLINK_MSG_ID_COMMAND_CANCEL = 80
  6920. MAVLINK_MSG_ID_MANUAL_SETPOINT = 81
  6921. MAVLINK_MSG_ID_SET_ATTITUDE_TARGET = 82
  6922. MAVLINK_MSG_ID_ATTITUDE_TARGET = 83
  6923. MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED = 84
  6924. MAVLINK_MSG_ID_POSITION_TARGET_LOCAL_NED = 85
  6925. MAVLINK_MSG_ID_SET_POSITION_TARGET_GLOBAL_INT = 86
  6926. MAVLINK_MSG_ID_POSITION_TARGET_GLOBAL_INT = 87
  6927. MAVLINK_MSG_ID_LOCAL_POSITION_NED_SYSTEM_GLOBAL_OFFSET = 89
  6928. MAVLINK_MSG_ID_HIL_STATE = 90
  6929. MAVLINK_MSG_ID_HIL_CONTROLS = 91
  6930. MAVLINK_MSG_ID_HIL_RC_INPUTS_RAW = 92
  6931. MAVLINK_MSG_ID_HIL_ACTUATOR_CONTROLS = 93
  6932. MAVLINK_MSG_ID_OPTICAL_FLOW = 100
  6933. MAVLINK_MSG_ID_GLOBAL_VISION_POSITION_ESTIMATE = 101
  6934. MAVLINK_MSG_ID_VISION_POSITION_ESTIMATE = 102
  6935. MAVLINK_MSG_ID_VISION_SPEED_ESTIMATE = 103
  6936. MAVLINK_MSG_ID_VICON_POSITION_ESTIMATE = 104
  6937. MAVLINK_MSG_ID_HIGHRES_IMU = 105
  6938. MAVLINK_MSG_ID_OPTICAL_FLOW_RAD = 106
  6939. MAVLINK_MSG_ID_HIL_SENSOR = 107
  6940. MAVLINK_MSG_ID_SIM_STATE = 108
  6941. MAVLINK_MSG_ID_RADIO_STATUS = 109
  6942. MAVLINK_MSG_ID_FILE_TRANSFER_PROTOCOL = 110
  6943. MAVLINK_MSG_ID_TIMESYNC = 111
  6944. MAVLINK_MSG_ID_CAMERA_TRIGGER = 112
  6945. MAVLINK_MSG_ID_HIL_GPS = 113
  6946. MAVLINK_MSG_ID_HIL_OPTICAL_FLOW = 114
  6947. MAVLINK_MSG_ID_HIL_STATE_QUATERNION = 115
  6948. MAVLINK_MSG_ID_SCALED_IMU2 = 116
  6949. MAVLINK_MSG_ID_LOG_REQUEST_LIST = 117
  6950. MAVLINK_MSG_ID_LOG_ENTRY = 118
  6951. MAVLINK_MSG_ID_LOG_REQUEST_DATA = 119
  6952. MAVLINK_MSG_ID_LOG_DATA = 120
  6953. MAVLINK_MSG_ID_LOG_ERASE = 121
  6954. MAVLINK_MSG_ID_LOG_REQUEST_END = 122
  6955. MAVLINK_MSG_ID_GPS_INJECT_DATA = 123
  6956. MAVLINK_MSG_ID_GPS2_RAW = 124
  6957. MAVLINK_MSG_ID_POWER_STATUS = 125
  6958. MAVLINK_MSG_ID_SERIAL_CONTROL = 126
  6959. MAVLINK_MSG_ID_GPS_RTK = 127
  6960. MAVLINK_MSG_ID_GPS2_RTK = 128
  6961. MAVLINK_MSG_ID_SCALED_IMU3 = 129
  6962. MAVLINK_MSG_ID_DATA_TRANSMISSION_HANDSHAKE = 130
  6963. MAVLINK_MSG_ID_ENCAPSULATED_DATA = 131
  6964. MAVLINK_MSG_ID_DISTANCE_SENSOR = 132
  6965. MAVLINK_MSG_ID_TERRAIN_REQUEST = 133
  6966. MAVLINK_MSG_ID_TERRAIN_DATA = 134
  6967. MAVLINK_MSG_ID_TERRAIN_CHECK = 135
  6968. MAVLINK_MSG_ID_TERRAIN_REPORT = 136
  6969. MAVLINK_MSG_ID_SCALED_PRESSURE2 = 137
  6970. MAVLINK_MSG_ID_ATT_POS_MOCAP = 138
  6971. MAVLINK_MSG_ID_SET_ACTUATOR_CONTROL_TARGET = 139
  6972. MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET = 140
  6973. MAVLINK_MSG_ID_ALTITUDE = 141
  6974. MAVLINK_MSG_ID_RESOURCE_REQUEST = 142
  6975. MAVLINK_MSG_ID_SCALED_PRESSURE3 = 143
  6976. MAVLINK_MSG_ID_FOLLOW_TARGET = 144
  6977. MAVLINK_MSG_ID_CONTROL_SYSTEM_STATE = 146
  6978. MAVLINK_MSG_ID_BATTERY_STATUS = 147
  6979. MAVLINK_MSG_ID_AUTOPILOT_VERSION = 148
  6980. MAVLINK_MSG_ID_LANDING_TARGET = 149
  6981. MAVLINK_MSG_ID_FENCE_STATUS = 162
  6982. MAVLINK_MSG_ID_MAG_CAL_REPORT = 192
  6983. MAVLINK_MSG_ID_EFI_STATUS = 225
  6984. MAVLINK_MSG_ID_ESTIMATOR_STATUS = 230
  6985. MAVLINK_MSG_ID_WIND_COV = 231
  6986. MAVLINK_MSG_ID_GPS_INPUT = 232
  6987. MAVLINK_MSG_ID_GPS_RTCM_DATA = 233
  6988. MAVLINK_MSG_ID_HIGH_LATENCY = 234
  6989. MAVLINK_MSG_ID_HIGH_LATENCY2 = 235
  6990. MAVLINK_MSG_ID_VIBRATION = 241
  6991. MAVLINK_MSG_ID_HOME_POSITION = 242
  6992. MAVLINK_MSG_ID_SET_HOME_POSITION = 243
  6993. MAVLINK_MSG_ID_MESSAGE_INTERVAL = 244
  6994. MAVLINK_MSG_ID_EXTENDED_SYS_STATE = 245
  6995. MAVLINK_MSG_ID_ADSB_VEHICLE = 246
  6996. MAVLINK_MSG_ID_COLLISION = 247
  6997. MAVLINK_MSG_ID_V2_EXTENSION = 248
  6998. MAVLINK_MSG_ID_MEMORY_VECT = 249
  6999. MAVLINK_MSG_ID_DEBUG_VECT = 250
  7000. MAVLINK_MSG_ID_NAMED_VALUE_FLOAT = 251
  7001. MAVLINK_MSG_ID_NAMED_VALUE_INT = 252
  7002. MAVLINK_MSG_ID_STATUSTEXT = 253
  7003. MAVLINK_MSG_ID_DEBUG = 254
  7004. MAVLINK_MSG_ID_SETUP_SIGNING = 256
  7005. MAVLINK_MSG_ID_BUTTON_CHANGE = 257
  7006. MAVLINK_MSG_ID_PLAY_TUNE = 258
  7007. MAVLINK_MSG_ID_CAMERA_INFORMATION = 259
  7008. MAVLINK_MSG_ID_CAMERA_SETTINGS = 260
  7009. MAVLINK_MSG_ID_STORAGE_INFORMATION = 261
  7010. MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS = 262
  7011. MAVLINK_MSG_ID_CAMERA_IMAGE_CAPTURED = 263
  7012. MAVLINK_MSG_ID_FLIGHT_INFORMATION = 264
  7013. MAVLINK_MSG_ID_MOUNT_ORIENTATION = 265
  7014. MAVLINK_MSG_ID_LOGGING_DATA = 266
  7015. MAVLINK_MSG_ID_LOGGING_DATA_ACKED = 267
  7016. MAVLINK_MSG_ID_LOGGING_ACK = 268
  7017. MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION = 269
  7018. MAVLINK_MSG_ID_VIDEO_STREAM_STATUS = 270
  7019. MAVLINK_MSG_ID_CAMERA_FOV_STATUS = 271
  7020. MAVLINK_MSG_ID_CAMERA_TRACKING_IMAGE_STATUS = 275
  7021. MAVLINK_MSG_ID_CAMERA_TRACKING_GEO_STATUS = 276
  7022. MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION = 280
  7023. MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS = 281
  7024. MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_ATTITUDE = 282
  7025. MAVLINK_MSG_ID_GIMBAL_DEVICE_INFORMATION = 283
  7026. MAVLINK_MSG_ID_GIMBAL_DEVICE_SET_ATTITUDE = 284
  7027. MAVLINK_MSG_ID_GIMBAL_DEVICE_ATTITUDE_STATUS = 285
  7028. MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE = 286
  7029. MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_PITCHYAW = 287
  7030. MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_MANUAL_CONTROL = 288
  7031. MAVLINK_MSG_ID_ESC_INFO = 290
  7032. MAVLINK_MSG_ID_ESC_STATUS = 291
  7033. MAVLINK_MSG_ID_WIFI_CONFIG_AP = 299
  7034. MAVLINK_MSG_ID_AIS_VESSEL = 301
  7035. MAVLINK_MSG_ID_UAVCAN_NODE_STATUS = 310
  7036. MAVLINK_MSG_ID_UAVCAN_NODE_INFO = 311
  7037. MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ = 320
  7038. MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST = 321
  7039. MAVLINK_MSG_ID_PARAM_EXT_VALUE = 322
  7040. MAVLINK_MSG_ID_PARAM_EXT_SET = 323
  7041. MAVLINK_MSG_ID_PARAM_EXT_ACK = 324
  7042. MAVLINK_MSG_ID_OBSTACLE_DISTANCE = 330
  7043. MAVLINK_MSG_ID_ODOMETRY = 331
  7044. MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS = 332
  7045. MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_BEZIER = 333
  7046. MAVLINK_MSG_ID_CELLULAR_STATUS = 334
  7047. MAVLINK_MSG_ID_ISBD_LINK_STATUS = 335
  7048. MAVLINK_MSG_ID_CELLULAR_CONFIG = 336
  7049. MAVLINK_MSG_ID_RAW_RPM = 339
  7050. MAVLINK_MSG_ID_UTM_GLOBAL_POSITION = 340
  7051. MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY = 350
  7052. MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS = 360
  7053. MAVLINK_MSG_ID_BATTERY_INFO = 370
  7054. MAVLINK_MSG_ID_GENERATOR_STATUS = 373
  7055. MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS = 375
  7056. MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET = 380
  7057. MAVLINK_MSG_ID_TUNNEL = 385
  7058. MAVLINK_MSG_ID_CAN_FRAME = 386
  7059. MAVLINK_MSG_ID_ONBOARD_COMPUTER_STATUS = 390
  7060. MAVLINK_MSG_ID_COMPONENT_INFORMATION = 395
  7061. MAVLINK_MSG_ID_COMPONENT_METADATA = 397
  7062. MAVLINK_MSG_ID_PLAY_TUNE_V2 = 400
  7063. MAVLINK_MSG_ID_SUPPORTED_TUNES = 401
  7064. MAVLINK_MSG_ID_EVENT = 410
  7065. MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE = 411
  7066. MAVLINK_MSG_ID_REQUEST_EVENT = 412
  7067. MAVLINK_MSG_ID_RESPONSE_EVENT_ERROR = 413
  7068. MAVLINK_MSG_ID_CANFD_FRAME = 387
  7069. MAVLINK_MSG_ID_CAN_FILTER_MODIFY = 388
  7070. MAVLINK_MSG_ID_WHEEL_DISTANCE = 9000
  7071. MAVLINK_MSG_ID_WINCH_STATUS = 9005
  7072. MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID = 12900
  7073. MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION = 12901
  7074. MAVLINK_MSG_ID_OPEN_DRONE_ID_AUTHENTICATION = 12902
  7075. MAVLINK_MSG_ID_OPEN_DRONE_ID_SELF_ID = 12903
  7076. MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM = 12904
  7077. MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID = 12905
  7078. MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK = 12915
  7079. MAVLINK_MSG_ID_OPEN_DRONE_ID_ARM_STATUS = 12918
  7080. MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE = 12919
  7081. MAVLINK_MSG_ID_HYGROMETER_SENSOR = 12920
  7082. MAVLINK_MSG_ID_HEARTBEAT = 0
  7083. MAVLINK_MSG_ID_PROTOCOL_VERSION = 300
  7084. class MAVLink_vkins_status_message(MAVLink_message):
  7085. """
  7086. """
  7087. id = MAVLINK_MSG_ID_VKINS_STATUS
  7088. msgname = "VKINS_STATUS"
  7089. fieldnames = ["time_boot_ms", "nav_status", "s_flag1", "s_flag2", "s_flag3", "s_flag4", "s_flag5", "s_flag6", "mag_calib_stage", "g0", "raw_latitude", "raw_longitude", "baro_alt", "raw_gps_alt", "solv_psat_num", "solv_hsat_num", "temperature", "vibe_coe"]
  7090. ordered_fieldnames = ["time_boot_ms", "g0", "raw_latitude", "raw_longitude", "baro_alt", "raw_gps_alt", "temperature", "nav_status", "s_flag1", "s_flag2", "s_flag3", "s_flag4", "s_flag5", "s_flag6", "mag_calib_stage", "solv_psat_num", "solv_hsat_num", "vibe_coe"]
  7091. fieldtypes = ["uint32_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "float", "int32_t", "int32_t", "float", "float", "uint8_t", "uint8_t", "int16_t", "uint8_t"]
  7092. fielddisplays_by_name: Dict[str, str] = {"nav_status": "bitmask"}
  7093. fieldenums_by_name: Dict[str, str] = {"nav_status": "VKFLY_VKINS_NAV_STATUS", "mag_calib_stage": "VKFLY_MAGCALIB_STAGE"}
  7094. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "g0": "m/s/s", "raw_latitude": "degE7", "raw_longitude": "degE7", "baro_alt": "m", "raw_gps_alt": "m", "temperature": "degC"}
  7095. native_format = bytearray(b"<IfiiffhBBBBBBBBBBB")
  7096. orders = [0, 7, 8, 9, 10, 11, 12, 13, 14, 1, 2, 3, 4, 5, 15, 16, 6, 17]
  7097. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  7098. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  7099. crc_extra = 22
  7100. unpacker = struct.Struct("<IfiiffhBBBBBBBBBBB")
  7101. instance_field = None
  7102. instance_offset = -1
  7103. def __init__(self, time_boot_ms: int, nav_status: int, s_flag1: int, s_flag2: int, s_flag3: int, s_flag4: int, s_flag5: int, s_flag6: int, mag_calib_stage: int, g0: float, raw_latitude: int, raw_longitude: int, baro_alt: float, raw_gps_alt: float, solv_psat_num: int, solv_hsat_num: int, temperature: int, vibe_coe: int):
  7104. MAVLink_message.__init__(self, MAVLink_vkins_status_message.id, MAVLink_vkins_status_message.msgname)
  7105. self._fieldnames = MAVLink_vkins_status_message.fieldnames
  7106. self._instance_field = MAVLink_vkins_status_message.instance_field
  7107. self._instance_offset = MAVLink_vkins_status_message.instance_offset
  7108. self.time_boot_ms = time_boot_ms
  7109. self.nav_status = nav_status
  7110. self.s_flag1 = s_flag1
  7111. self.s_flag2 = s_flag2
  7112. self.s_flag3 = s_flag3
  7113. self.s_flag4 = s_flag4
  7114. self.s_flag5 = s_flag5
  7115. self.s_flag6 = s_flag6
  7116. self.mag_calib_stage = mag_calib_stage
  7117. self.g0 = g0
  7118. self.raw_latitude = raw_latitude
  7119. self.raw_longitude = raw_longitude
  7120. self.baro_alt = baro_alt
  7121. self.raw_gps_alt = raw_gps_alt
  7122. self.solv_psat_num = solv_psat_num
  7123. self.solv_hsat_num = solv_hsat_num
  7124. self.temperature = temperature
  7125. self.vibe_coe = vibe_coe
  7126. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7127. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.g0, self.raw_latitude, self.raw_longitude, self.baro_alt, self.raw_gps_alt, self.temperature, self.nav_status, self.s_flag1, self.s_flag2, self.s_flag3, self.s_flag4, self.s_flag5, self.s_flag6, self.mag_calib_stage, self.solv_psat_num, self.solv_hsat_num, self.vibe_coe), force_mavlink1=force_mavlink1)
  7128. # Define name on the class for backwards compatibility (it is now msgname).
  7129. # Done with setattr to hide the class variable from mypy.
  7130. setattr(MAVLink_vkins_status_message, "name", mavlink_msg_deprecated_name_property())
  7131. class MAVLink_vkfmu_status_message(MAVLink_message):
  7132. """
  7133. """
  7134. id = MAVLINK_MSG_ID_VKFMU_STATUS
  7135. msgname = "VKFMU_STATUS"
  7136. fieldnames = ["time_boot_ms", "rtl_reason", "loiter_reason", "s_flag3", "ups_volt", "adc_volt", "flight_time", "dist_to_tar", "servo_state", "flight_dist", "servo_display"]
  7137. ordered_fieldnames = ["time_boot_ms", "flight_time", "dist_to_tar", "flight_dist", "ups_volt", "adc_volt", "servo_state", "rtl_reason", "loiter_reason", "s_flag3", "servo_display"]
  7138. fieldtypes = ["uint32_t", "uint8_t", "uint8_t", "uint8_t", "uint16_t", "uint16_t", "uint32_t", "uint32_t", "uint16_t", "float", "uint16_t"]
  7139. fielddisplays_by_name: Dict[str, str] = {}
  7140. fieldenums_by_name: Dict[str, str] = {"rtl_reason": "VKFLY_RTL_REASON", "loiter_reason": "VKFLY_LOITER_REASON"}
  7141. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "flight_time": "s", "dist_to_tar": "cm", "flight_dist": "m"}
  7142. native_format = bytearray(b"<IIIfHHHBBBH")
  7143. orders = [0, 7, 8, 9, 4, 5, 1, 2, 6, 3, 10]
  7144. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  7145. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  7146. crc_extra = 136
  7147. unpacker = struct.Struct("<IIIfHHHBBBH")
  7148. instance_field = None
  7149. instance_offset = -1
  7150. def __init__(self, time_boot_ms: int, rtl_reason: int, loiter_reason: int, s_flag3: int, ups_volt: int, adc_volt: int, flight_time: int, dist_to_tar: int, servo_state: int, flight_dist: float, servo_display: int = 0):
  7151. MAVLink_message.__init__(self, MAVLink_vkfmu_status_message.id, MAVLink_vkfmu_status_message.msgname)
  7152. self._fieldnames = MAVLink_vkfmu_status_message.fieldnames
  7153. self._instance_field = MAVLink_vkfmu_status_message.instance_field
  7154. self._instance_offset = MAVLink_vkfmu_status_message.instance_offset
  7155. self.time_boot_ms = time_boot_ms
  7156. self.rtl_reason = rtl_reason
  7157. self.loiter_reason = loiter_reason
  7158. self.s_flag3 = s_flag3
  7159. self.ups_volt = ups_volt
  7160. self.adc_volt = adc_volt
  7161. self.flight_time = flight_time
  7162. self.dist_to_tar = dist_to_tar
  7163. self.servo_state = servo_state
  7164. self.flight_dist = flight_dist
  7165. self.servo_display = servo_display
  7166. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7167. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.flight_time, self.dist_to_tar, self.flight_dist, self.ups_volt, self.adc_volt, self.servo_state, self.rtl_reason, self.loiter_reason, self.s_flag3, self.servo_display), force_mavlink1=force_mavlink1)
  7168. # Define name on the class for backwards compatibility (it is now msgname).
  7169. # Done with setattr to hide the class variable from mypy.
  7170. setattr(MAVLink_vkfmu_status_message, "name", mavlink_msg_deprecated_name_property())
  7171. class MAVLink_vk_roi_target_message(MAVLink_message):
  7172. """
  7173. """
  7174. id = MAVLINK_MSG_ID_VK_ROI_TARGET
  7175. msgname = "VK_ROI_TARGET"
  7176. fieldnames = ["time_boot_ms", "lat", "lon", "alt", "state"]
  7177. ordered_fieldnames = ["time_boot_ms", "lat", "lon", "alt", "state"]
  7178. fieldtypes = ["uint32_t", "int32_t", "int32_t", "float", "uint16_t"]
  7179. fielddisplays_by_name: Dict[str, str] = {"state": "bitmask"}
  7180. fieldenums_by_name: Dict[str, str] = {"state": "VKFLY_ROI_STATE"}
  7181. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "lat": "degE7", "lon": "degE7", "alt": "m"}
  7182. native_format = bytearray(b"<IiifH")
  7183. orders = [0, 1, 2, 3, 4]
  7184. lengths = [1, 1, 1, 1, 1]
  7185. array_lengths = [0, 0, 0, 0, 0]
  7186. crc_extra = 75
  7187. unpacker = struct.Struct("<IiifH")
  7188. instance_field = None
  7189. instance_offset = -1
  7190. def __init__(self, time_boot_ms: int, lat: int, lon: int, alt: float, state: int):
  7191. MAVLink_message.__init__(self, MAVLink_vk_roi_target_message.id, MAVLink_vk_roi_target_message.msgname)
  7192. self._fieldnames = MAVLink_vk_roi_target_message.fieldnames
  7193. self._instance_field = MAVLink_vk_roi_target_message.instance_field
  7194. self._instance_offset = MAVLink_vk_roi_target_message.instance_offset
  7195. self.time_boot_ms = time_boot_ms
  7196. self.lat = lat
  7197. self.lon = lon
  7198. self.alt = alt
  7199. self.state = state
  7200. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7201. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.lat, self.lon, self.alt, self.state), force_mavlink1=force_mavlink1)
  7202. # Define name on the class for backwards compatibility (it is now msgname).
  7203. # Done with setattr to hide the class variable from mypy.
  7204. setattr(MAVLink_vk_roi_target_message, "name", mavlink_msg_deprecated_name_property())
  7205. class MAVLink_vk_bms_status_message(MAVLink_message):
  7206. """
  7207. battery bms status message
  7208. """
  7209. id = MAVLINK_MSG_ID_VK_BMS_STATUS
  7210. msgname = "VK_BMS_STATUS"
  7211. fieldnames = ["time_boot_ms", "voltage", "current", "temperature", "cap_percent", "bat_id", "err_code", "cell_num", "cell_volt", "cyc_cnt", "health"]
  7212. ordered_fieldnames = ["time_boot_ms", "voltage", "current", "err_code", "temperature", "cell_num", "cell_volt", "cyc_cnt", "cap_percent", "bat_id", "health"]
  7213. fieldtypes = ["uint32_t", "uint32_t", "int32_t", "int16_t", "int8_t", "uint8_t", "uint32_t", "uint16_t", "uint16_t", "uint16_t", "uint8_t"]
  7214. fielddisplays_by_name: Dict[str, str] = {"err_code": "bitmask"}
  7215. fieldenums_by_name: Dict[str, str] = {}
  7216. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "voltage": "mV", "current": "cA", "temperature": "degC", "cap_percent": "%", "cell_volt": "mV"}
  7217. native_format = bytearray(b"<IIiIhHHHbBB")
  7218. orders = [0, 1, 2, 4, 8, 9, 3, 5, 6, 7, 10]
  7219. lengths = [1, 1, 1, 1, 1, 1, 30, 1, 1, 1, 1]
  7220. array_lengths = [0, 0, 0, 0, 0, 0, 30, 0, 0, 0, 0]
  7221. crc_extra = 155
  7222. unpacker = struct.Struct("<IIiIhH30HHbBB")
  7223. instance_field = None
  7224. instance_offset = -1
  7225. def __init__(self, time_boot_ms: int, voltage: int, current: int, temperature: int, cap_percent: int, bat_id: int, err_code: int, cell_num: int, cell_volt: Sequence[int], cyc_cnt: int, health: int):
  7226. MAVLink_message.__init__(self, MAVLink_vk_bms_status_message.id, MAVLink_vk_bms_status_message.msgname)
  7227. self._fieldnames = MAVLink_vk_bms_status_message.fieldnames
  7228. self._instance_field = MAVLink_vk_bms_status_message.instance_field
  7229. self._instance_offset = MAVLink_vk_bms_status_message.instance_offset
  7230. self.time_boot_ms = time_boot_ms
  7231. self.voltage = voltage
  7232. self.current = current
  7233. self.temperature = temperature
  7234. self.cap_percent = cap_percent
  7235. self.bat_id = bat_id
  7236. self.err_code = err_code
  7237. self.cell_num = cell_num
  7238. self.cell_volt = cell_volt
  7239. self.cyc_cnt = cyc_cnt
  7240. self.health = health
  7241. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7242. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.voltage, self.current, self.err_code, self.temperature, self.cell_num, self.cell_volt[0], self.cell_volt[1], self.cell_volt[2], self.cell_volt[3], self.cell_volt[4], self.cell_volt[5], self.cell_volt[6], self.cell_volt[7], self.cell_volt[8], self.cell_volt[9], self.cell_volt[10], self.cell_volt[11], self.cell_volt[12], self.cell_volt[13], self.cell_volt[14], self.cell_volt[15], self.cell_volt[16], self.cell_volt[17], self.cell_volt[18], self.cell_volt[19], self.cell_volt[20], self.cell_volt[21], self.cell_volt[22], self.cell_volt[23], self.cell_volt[24], self.cell_volt[25], self.cell_volt[26], self.cell_volt[27], self.cell_volt[28], self.cell_volt[29], self.cyc_cnt, self.cap_percent, self.bat_id, self.health), force_mavlink1=force_mavlink1)
  7243. # Define name on the class for backwards compatibility (it is now msgname).
  7244. # Done with setattr to hide the class variable from mypy.
  7245. setattr(MAVLink_vk_bms_status_message, "name", mavlink_msg_deprecated_name_property())
  7246. class MAVLink_vk_formation_leader_message(MAVLink_message):
  7247. """
  7248. formation fly leader status message
  7249. """
  7250. id = MAVLINK_MSG_ID_VK_FORMATION_LEADER
  7251. msgname = "VK_FORMATION_LEADER"
  7252. fieldnames = ["timestamp", "state", "lat", "lon", "msl", "ve", "vn", "vu", "yaw", "formation_type", "x_dist", "y_dist", "z_dist", "rect_col_num", "formation_heading", "form_head_lock", "ae", "an", "au"]
  7253. ordered_fieldnames = ["timestamp", "state", "lat", "lon", "msl", "ve", "vn", "vu", "yaw", "x_dist", "y_dist", "z_dist", "rect_col_num", "formation_type", "formation_heading", "form_head_lock", "ae", "an", "au"]
  7254. fieldtypes = ["uint32_t", "uint32_t", "int32_t", "int32_t", "float", "float", "float", "float", "float", "uint8_t", "int16_t", "int16_t", "int16_t", "uint16_t", "float", "float", "float", "float", "float"]
  7255. fielddisplays_by_name: Dict[str, str] = {}
  7256. fieldenums_by_name: Dict[str, str] = {"formation_type": "VKFLY_FORMATION_TYPE"}
  7257. fieldunits_by_name: Dict[str, str] = {"timestamp": "ms", "lat": "degE7", "lon": "degE7", "msl": "m", "ve": "m/s", "vn": "m/s", "vu": "m/s", "yaw": "deg", "x_dist": "cm", "y_dist": "cm", "z_dist": "cm", "formation_heading": "deg", "ae": "m/s/s", "an": "m/s/s", "au": "m/s/s"}
  7258. native_format = bytearray(b"<IIiifffffhhhHBfffff")
  7259. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 13, 9, 10, 11, 12, 14, 15, 16, 17, 18]
  7260. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  7261. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  7262. crc_extra = 219
  7263. unpacker = struct.Struct("<IIiifffffhhhHBfffff")
  7264. instance_field = None
  7265. instance_offset = -1
  7266. def __init__(self, timestamp: int, state: int, lat: int, lon: int, msl: float, ve: float, vn: float, vu: float, yaw: float, formation_type: int, x_dist: int, y_dist: int, z_dist: int, rect_col_num: int, formation_heading: float = 0, form_head_lock: float = 0, ae: float = 0, an: float = 0, au: float = 0):
  7267. MAVLink_message.__init__(self, MAVLink_vk_formation_leader_message.id, MAVLink_vk_formation_leader_message.msgname)
  7268. self._fieldnames = MAVLink_vk_formation_leader_message.fieldnames
  7269. self._instance_field = MAVLink_vk_formation_leader_message.instance_field
  7270. self._instance_offset = MAVLink_vk_formation_leader_message.instance_offset
  7271. self.timestamp = timestamp
  7272. self.state = state
  7273. self.lat = lat
  7274. self.lon = lon
  7275. self.msl = msl
  7276. self.ve = ve
  7277. self.vn = vn
  7278. self.vu = vu
  7279. self.yaw = yaw
  7280. self.formation_type = formation_type
  7281. self.x_dist = x_dist
  7282. self.y_dist = y_dist
  7283. self.z_dist = z_dist
  7284. self.rect_col_num = rect_col_num
  7285. self.formation_heading = formation_heading
  7286. self.form_head_lock = form_head_lock
  7287. self.ae = ae
  7288. self.an = an
  7289. self.au = au
  7290. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7291. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.timestamp, self.state, self.lat, self.lon, self.msl, self.ve, self.vn, self.vu, self.yaw, self.x_dist, self.y_dist, self.z_dist, self.rect_col_num, self.formation_type, self.formation_heading, self.form_head_lock, self.ae, self.an, self.au), force_mavlink1=force_mavlink1)
  7292. # Define name on the class for backwards compatibility (it is now msgname).
  7293. # Done with setattr to hide the class variable from mypy.
  7294. setattr(MAVLink_vk_formation_leader_message, "name", mavlink_msg_deprecated_name_property())
  7295. class MAVLink_vk_engine_ecu_staus_message(MAVLink_message):
  7296. """
  7297. engine ecu status message
  7298. """
  7299. id = MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS
  7300. msgname = "VK_ENGINE_ECU_STAUS"
  7301. fieldnames = ["timestamp", "spd_rpm", "thr_pos", "fuel_pos", "cylinderA_temp", "cylinderB_temp", "coolant_temp", "fuel_remain", "alarm", "total_runtime", "runtime", "service_time", "output_volt", "output_curr", "fault", "engine_state", "index", "reserve", "inlet_pressure", "ge_temp", "air_temp", "temp_1", "volt_2"]
  7302. ordered_fieldnames = ["timestamp", "total_runtime", "spd_rpm", "cylinderA_temp", "cylinderB_temp", "coolant_temp", "fuel_remain", "alarm", "runtime", "service_time", "output_volt", "output_curr", "thr_pos", "fuel_pos", "fault", "engine_state", "index", "reserve", "inlet_pressure", "ge_temp", "air_temp", "temp_1", "volt_2"]
  7303. fieldtypes = ["uint32_t", "uint16_t", "uint8_t", "uint8_t", "int16_t", "int16_t", "int16_t", "uint16_t", "uint16_t", "uint32_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint16_t", "int16_t", "int16_t", "int16_t", "int16_t"]
  7304. fielddisplays_by_name: Dict[str, str] = {}
  7305. fieldenums_by_name: Dict[str, str] = {}
  7306. fieldunits_by_name: Dict[str, str] = {"timestamp": "ms", "thr_pos": "%", "fuel_pos": "%", "cylinderA_temp": "degC", "cylinderB_temp": "degC", "coolant_temp": "degC", "total_runtime": "min", "runtime": "min", "service_time": "min", "output_volt": "dV", "output_curr": "dA", "inlet_pressure": "hPa", "ge_temp": "degC", "air_temp": "degC", "temp_1": "degC", "volt_2": "dV"}
  7307. native_format = bytearray(b"<IIHhhhHHHHHHBBBBBBHhhhh")
  7308. orders = [0, 2, 12, 13, 3, 4, 5, 6, 7, 1, 8, 9, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22]
  7309. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1]
  7310. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0]
  7311. crc_extra = 145
  7312. unpacker = struct.Struct("<IIHhhhHHHHHHBBBBB4BHhhhh")
  7313. instance_field = None
  7314. instance_offset = -1
  7315. def __init__(self, timestamp: int, spd_rpm: int, thr_pos: int, fuel_pos: int, cylinderA_temp: int, cylinderB_temp: int, coolant_temp: int, fuel_remain: int, alarm: int, total_runtime: int, runtime: int, service_time: int, output_volt: int, output_curr: int, fault: int, engine_state: int, index: int, reserve: Sequence[int], inlet_pressure: int = 0, ge_temp: int = 0, air_temp: int = 0, temp_1: int = 0, volt_2: int = 0):
  7316. MAVLink_message.__init__(self, MAVLink_vk_engine_ecu_staus_message.id, MAVLink_vk_engine_ecu_staus_message.msgname)
  7317. self._fieldnames = MAVLink_vk_engine_ecu_staus_message.fieldnames
  7318. self._instance_field = MAVLink_vk_engine_ecu_staus_message.instance_field
  7319. self._instance_offset = MAVLink_vk_engine_ecu_staus_message.instance_offset
  7320. self.timestamp = timestamp
  7321. self.spd_rpm = spd_rpm
  7322. self.thr_pos = thr_pos
  7323. self.fuel_pos = fuel_pos
  7324. self.cylinderA_temp = cylinderA_temp
  7325. self.cylinderB_temp = cylinderB_temp
  7326. self.coolant_temp = coolant_temp
  7327. self.fuel_remain = fuel_remain
  7328. self.alarm = alarm
  7329. self.total_runtime = total_runtime
  7330. self.runtime = runtime
  7331. self.service_time = service_time
  7332. self.output_volt = output_volt
  7333. self.output_curr = output_curr
  7334. self.fault = fault
  7335. self.engine_state = engine_state
  7336. self.index = index
  7337. self.reserve = reserve
  7338. self.inlet_pressure = inlet_pressure
  7339. self.ge_temp = ge_temp
  7340. self.air_temp = air_temp
  7341. self.temp_1 = temp_1
  7342. self.volt_2 = volt_2
  7343. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7344. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.timestamp, self.total_runtime, self.spd_rpm, self.cylinderA_temp, self.cylinderB_temp, self.coolant_temp, self.fuel_remain, self.alarm, self.runtime, self.service_time, self.output_volt, self.output_curr, self.thr_pos, self.fuel_pos, self.fault, self.engine_state, self.index, self.reserve[0], self.reserve[1], self.reserve[2], self.reserve[3], self.inlet_pressure, self.ge_temp, self.air_temp, self.temp_1, self.volt_2), force_mavlink1=force_mavlink1)
  7345. # Define name on the class for backwards compatibility (it is now msgname).
  7346. # Done with setattr to hide the class variable from mypy.
  7347. setattr(MAVLink_vk_engine_ecu_staus_message, "name", mavlink_msg_deprecated_name_property())
  7348. class MAVLink_vk_comp_version_message(MAVLink_message):
  7349. """
  7350. vkfly gps version
  7351. """
  7352. id = MAVLINK_MSG_ID_VK_COMP_VERSION
  7353. msgname = "VK_COMP_VERSION"
  7354. fieldnames = ["comp_id", "hw_ver", "fw_ver", "SN", "manufactory", "model", "priv_data"]
  7355. ordered_fieldnames = ["comp_id", "hw_ver", "fw_ver", "SN", "manufactory", "model", "priv_data"]
  7356. fieldtypes = ["uint16_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t"]
  7357. fielddisplays_by_name: Dict[str, str] = {}
  7358. fieldenums_by_name: Dict[str, str] = {"comp_id": "VKFLY_USER_COMP_ID"}
  7359. fieldunits_by_name: Dict[str, str] = {}
  7360. native_format = bytearray(b"<HBBBBBB")
  7361. orders = [0, 1, 2, 3, 4, 5, 6]
  7362. lengths = [1, 16, 16, 16, 16, 16, 16]
  7363. array_lengths = [0, 16, 16, 16, 16, 16, 16]
  7364. crc_extra = 227
  7365. unpacker = struct.Struct("<H16B16B16B16B16B16B")
  7366. instance_field = None
  7367. instance_offset = -1
  7368. def __init__(self, comp_id: int, hw_ver: Sequence[int], fw_ver: Sequence[int], SN: Sequence[int], manufactory: Sequence[int], model: Sequence[int], priv_data: Sequence[int]):
  7369. MAVLink_message.__init__(self, MAVLink_vk_comp_version_message.id, MAVLink_vk_comp_version_message.msgname)
  7370. self._fieldnames = MAVLink_vk_comp_version_message.fieldnames
  7371. self._instance_field = MAVLink_vk_comp_version_message.instance_field
  7372. self._instance_offset = MAVLink_vk_comp_version_message.instance_offset
  7373. self.comp_id = comp_id
  7374. self.hw_ver = hw_ver
  7375. self.fw_ver = fw_ver
  7376. self.SN = SN
  7377. self.manufactory = manufactory
  7378. self.model = model
  7379. self.priv_data = priv_data
  7380. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7381. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.comp_id, self.hw_ver[0], self.hw_ver[1], self.hw_ver[2], self.hw_ver[3], self.hw_ver[4], self.hw_ver[5], self.hw_ver[6], self.hw_ver[7], self.hw_ver[8], self.hw_ver[9], self.hw_ver[10], self.hw_ver[11], self.hw_ver[12], self.hw_ver[13], self.hw_ver[14], self.hw_ver[15], self.fw_ver[0], self.fw_ver[1], self.fw_ver[2], self.fw_ver[3], self.fw_ver[4], self.fw_ver[5], self.fw_ver[6], self.fw_ver[7], self.fw_ver[8], self.fw_ver[9], self.fw_ver[10], self.fw_ver[11], self.fw_ver[12], self.fw_ver[13], self.fw_ver[14], self.fw_ver[15], self.SN[0], self.SN[1], self.SN[2], self.SN[3], self.SN[4], self.SN[5], self.SN[6], self.SN[7], self.SN[8], self.SN[9], self.SN[10], self.SN[11], self.SN[12], self.SN[13], self.SN[14], self.SN[15], self.manufactory[0], self.manufactory[1], self.manufactory[2], self.manufactory[3], self.manufactory[4], self.manufactory[5], self.manufactory[6], self.manufactory[7], self.manufactory[8], self.manufactory[9], self.manufactory[10], self.manufactory[11], self.manufactory[12], self.manufactory[13], self.manufactory[14], self.manufactory[15], self.model[0], self.model[1], self.model[2], self.model[3], self.model[4], self.model[5], self.model[6], self.model[7], self.model[8], self.model[9], self.model[10], self.model[11], self.model[12], self.model[13], self.model[14], self.model[15], self.priv_data[0], self.priv_data[1], self.priv_data[2], self.priv_data[3], self.priv_data[4], self.priv_data[5], self.priv_data[6], self.priv_data[7], self.priv_data[8], self.priv_data[9], self.priv_data[10], self.priv_data[11], self.priv_data[12], self.priv_data[13], self.priv_data[14], self.priv_data[15]), force_mavlink1=force_mavlink1)
  7382. # Define name on the class for backwards compatibility (it is now msgname).
  7383. # Done with setattr to hide the class variable from mypy.
  7384. setattr(MAVLink_vk_comp_version_message, "name", mavlink_msg_deprecated_name_property())
  7385. class MAVLink_vk_mosaich_gps_raw_message(MAVLink_message):
  7386. """
  7387. Mosaic_h gps raw data
  7388. """
  7389. id = MAVLINK_MSG_ID_VK_MOSAICH_GPS_RAW
  7390. msgname = "VK_MOSAICH_GPS_RAW"
  7391. fieldnames = ["time_usec", "fix_type", "psv_num", "pvt_err", "pvt_mode", "lat", "lon", "ellipsoid_alt", "ve", "vn", "vu", "h_acc", "v_acc", "yaw", "pitch", "hsv_num", "att_err", "att_mode", "reserved"]
  7392. ordered_fieldnames = ["time_usec", "lat", "lon", "ellipsoid_alt", "ve", "vn", "vu", "yaw", "pitch", "h_acc", "v_acc", "fix_type", "psv_num", "pvt_err", "pvt_mode", "hsv_num", "att_err", "att_mode", "reserved"]
  7393. fieldtypes = ["uint64_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "int32_t", "int32_t", "float", "float", "float", "float", "uint16_t", "uint16_t", "float", "float", "uint8_t", "uint8_t", "uint8_t", "uint8_t"]
  7394. fielddisplays_by_name: Dict[str, str] = {}
  7395. fieldenums_by_name: Dict[str, str] = {"fix_type": "GPS_FIX_TYPE"}
  7396. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "lat": "degE7", "lon": "degE7", "ellipsoid_alt": "m", "ve": "m/s", "vn": "m/s", "vu": "m/s", "h_acc": "cm", "v_acc": "cm", "yaw": "deg", "pitch": "deg"}
  7397. native_format = bytearray(b"<QiiffffffHHBBBBBBBB")
  7398. orders = [0, 11, 12, 13, 14, 1, 2, 3, 4, 5, 6, 9, 10, 7, 8, 15, 16, 17, 18]
  7399. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  7400. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  7401. crc_extra = 113
  7402. unpacker = struct.Struct("<QiiffffffHHBBBBBBBB")
  7403. instance_field = None
  7404. instance_offset = -1
  7405. def __init__(self, time_usec: int, fix_type: int, psv_num: int, pvt_err: int, pvt_mode: int, lat: int, lon: int, ellipsoid_alt: float, ve: float, vn: float, vu: float, h_acc: int, v_acc: int, yaw: float, pitch: float, hsv_num: int, att_err: int, att_mode: int, reserved: int):
  7406. MAVLink_message.__init__(self, MAVLink_vk_mosaich_gps_raw_message.id, MAVLink_vk_mosaich_gps_raw_message.msgname)
  7407. self._fieldnames = MAVLink_vk_mosaich_gps_raw_message.fieldnames
  7408. self._instance_field = MAVLink_vk_mosaich_gps_raw_message.instance_field
  7409. self._instance_offset = MAVLink_vk_mosaich_gps_raw_message.instance_offset
  7410. self.time_usec = time_usec
  7411. self.fix_type = fix_type
  7412. self.psv_num = psv_num
  7413. self.pvt_err = pvt_err
  7414. self.pvt_mode = pvt_mode
  7415. self.lat = lat
  7416. self.lon = lon
  7417. self.ellipsoid_alt = ellipsoid_alt
  7418. self.ve = ve
  7419. self.vn = vn
  7420. self.vu = vu
  7421. self.h_acc = h_acc
  7422. self.v_acc = v_acc
  7423. self.yaw = yaw
  7424. self.pitch = pitch
  7425. self.hsv_num = hsv_num
  7426. self.att_err = att_err
  7427. self.att_mode = att_mode
  7428. self.reserved = reserved
  7429. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7430. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.lat, self.lon, self.ellipsoid_alt, self.ve, self.vn, self.vu, self.yaw, self.pitch, self.h_acc, self.v_acc, self.fix_type, self.psv_num, self.pvt_err, self.pvt_mode, self.hsv_num, self.att_err, self.att_mode, self.reserved), force_mavlink1=force_mavlink1)
  7431. # Define name on the class for backwards compatibility (it is now msgname).
  7432. # Done with setattr to hide the class variable from mypy.
  7433. setattr(MAVLink_vk_mosaich_gps_raw_message, "name", mavlink_msg_deprecated_name_property())
  7434. class MAVLink_vk_digi_esc_status_message(MAVLink_message):
  7435. """
  7436. Mosaic_h gps raw data
  7437. """
  7438. id = MAVLINK_MSG_ID_VK_DIGI_ESC_STATUS
  7439. msgname = "VK_DIGI_ESC_STATUS"
  7440. fieldnames = ["index", "timestamp", "rpm", "voltage", "current", "temperature", "status", "motor_temp", "cap_temp", "status2"]
  7441. ordered_fieldnames = ["timestamp", "rpm", "voltage", "current", "status", "temperature", "index", "motor_temp", "cap_temp", "status2"]
  7442. fieldtypes = ["uint8_t", "uint32_t", "int32_t", "float", "float", "int16_t", "uint32_t", "int16_t", "int16_t", "uint32_t"]
  7443. fielddisplays_by_name: Dict[str, str] = {}
  7444. fieldenums_by_name: Dict[str, str] = {}
  7445. fieldunits_by_name: Dict[str, str] = {"timestamp": "ms", "rpm": "rpm", "voltage": "V", "current": "A", "temperature": "degC", "motor_temp": "degC", "cap_temp": "degC"}
  7446. native_format = bytearray(b"<IiffIhBhhI")
  7447. orders = [6, 0, 1, 2, 3, 5, 4, 7, 8, 9]
  7448. lengths = [1, 4, 4, 4, 4, 4, 1, 4, 4, 4]
  7449. array_lengths = [0, 4, 4, 4, 4, 4, 0, 4, 4, 4]
  7450. crc_extra = 110
  7451. unpacker = struct.Struct("<I4i4f4f4I4hB4h4h4I")
  7452. instance_field = "index"
  7453. instance_offset = 76
  7454. def __init__(self, index: int, timestamp: int, rpm: Sequence[int], voltage: Sequence[float], current: Sequence[float], temperature: Sequence[int], status: Sequence[int], motor_temp: Sequence[int] = (0, 0, 0, 0), cap_temp: Sequence[int] = (0, 0, 0, 0), status2: Sequence[int] = (0, 0, 0, 0)):
  7455. MAVLink_message.__init__(self, MAVLink_vk_digi_esc_status_message.id, MAVLink_vk_digi_esc_status_message.msgname)
  7456. self._fieldnames = MAVLink_vk_digi_esc_status_message.fieldnames
  7457. self._instance_field = MAVLink_vk_digi_esc_status_message.instance_field
  7458. self._instance_offset = MAVLink_vk_digi_esc_status_message.instance_offset
  7459. self.index = index
  7460. self.timestamp = timestamp
  7461. self.rpm = rpm
  7462. self.voltage = voltage
  7463. self.current = current
  7464. self.temperature = temperature
  7465. self.status = status
  7466. self.motor_temp = motor_temp
  7467. self.cap_temp = cap_temp
  7468. self.status2 = status2
  7469. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7470. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.timestamp, self.rpm[0], self.rpm[1], self.rpm[2], self.rpm[3], self.voltage[0], self.voltage[1], self.voltage[2], self.voltage[3], self.current[0], self.current[1], self.current[2], self.current[3], self.status[0], self.status[1], self.status[2], self.status[3], self.temperature[0], self.temperature[1], self.temperature[2], self.temperature[3], self.index, self.motor_temp[0], self.motor_temp[1], self.motor_temp[2], self.motor_temp[3], self.cap_temp[0], self.cap_temp[1], self.cap_temp[2], self.cap_temp[3], self.status2[0], self.status2[1], self.status2[2], self.status2[3]), force_mavlink1=force_mavlink1)
  7471. # Define name on the class for backwards compatibility (it is now msgname).
  7472. # Done with setattr to hide the class variable from mypy.
  7473. setattr(MAVLink_vk_digi_esc_status_message, "name", mavlink_msg_deprecated_name_property())
  7474. class MAVLink_vk_fixedwing_control_value_message(MAVLink_message):
  7475. """
  7476. Mosaic_h gps raw data
  7477. """
  7478. id = MAVLINK_MSG_ID_VK_FIXEDWING_CONTROL_VALUE
  7479. msgname = "VK_FIXEDWING_CONTROL_VALUE"
  7480. fieldnames = ["timestamp", "roll_value", "pitch_value", "throttle_value", "yaw_value"]
  7481. ordered_fieldnames = ["timestamp", "roll_value", "pitch_value", "throttle_value", "yaw_value"]
  7482. fieldtypes = ["uint32_t", "float", "float", "float", "float"]
  7483. fielddisplays_by_name: Dict[str, str] = {}
  7484. fieldenums_by_name: Dict[str, str] = {}
  7485. fieldunits_by_name: Dict[str, str] = {"timestamp": "ms"}
  7486. native_format = bytearray(b"<Iffff")
  7487. orders = [0, 1, 2, 3, 4]
  7488. lengths = [1, 1, 1, 1, 1]
  7489. array_lengths = [0, 0, 0, 0, 0]
  7490. crc_extra = 226
  7491. unpacker = struct.Struct("<Iffff")
  7492. instance_field = None
  7493. instance_offset = -1
  7494. def __init__(self, timestamp: int, roll_value: float, pitch_value: float, throttle_value: float, yaw_value: float):
  7495. MAVLink_message.__init__(self, MAVLink_vk_fixedwing_control_value_message.id, MAVLink_vk_fixedwing_control_value_message.msgname)
  7496. self._fieldnames = MAVLink_vk_fixedwing_control_value_message.fieldnames
  7497. self._instance_field = MAVLink_vk_fixedwing_control_value_message.instance_field
  7498. self._instance_offset = MAVLink_vk_fixedwing_control_value_message.instance_offset
  7499. self.timestamp = timestamp
  7500. self.roll_value = roll_value
  7501. self.pitch_value = pitch_value
  7502. self.throttle_value = throttle_value
  7503. self.yaw_value = yaw_value
  7504. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7505. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.timestamp, self.roll_value, self.pitch_value, self.throttle_value, self.yaw_value), force_mavlink1=force_mavlink1)
  7506. # Define name on the class for backwards compatibility (it is now msgname).
  7507. # Done with setattr to hide the class variable from mypy.
  7508. setattr(MAVLink_vk_fixedwing_control_value_message, "name", mavlink_msg_deprecated_name_property())
  7509. class MAVLink_vk_fixedwing_servo_signal_message(MAVLink_message):
  7510. """
  7511. Mosaic_h gps raw data
  7512. """
  7513. id = MAVLINK_MSG_ID_VK_FIXEDWING_SERVO_SIGNAL
  7514. msgname = "VK_FIXEDWING_SERVO_SIGNAL"
  7515. fieldnames = ["timestamp", "servo_signal"]
  7516. ordered_fieldnames = ["timestamp", "servo_signal"]
  7517. fieldtypes = ["uint32_t", "uint16_t"]
  7518. fielddisplays_by_name: Dict[str, str] = {}
  7519. fieldenums_by_name: Dict[str, str] = {}
  7520. fieldunits_by_name: Dict[str, str] = {"timestamp": "ms"}
  7521. native_format = bytearray(b"<IH")
  7522. orders = [0, 1]
  7523. lengths = [1, 16]
  7524. array_lengths = [0, 16]
  7525. crc_extra = 33
  7526. unpacker = struct.Struct("<I16H")
  7527. instance_field = None
  7528. instance_offset = -1
  7529. def __init__(self, timestamp: int, servo_signal: Sequence[int]):
  7530. MAVLink_message.__init__(self, MAVLink_vk_fixedwing_servo_signal_message.id, MAVLink_vk_fixedwing_servo_signal_message.msgname)
  7531. self._fieldnames = MAVLink_vk_fixedwing_servo_signal_message.fieldnames
  7532. self._instance_field = MAVLink_vk_fixedwing_servo_signal_message.instance_field
  7533. self._instance_offset = MAVLink_vk_fixedwing_servo_signal_message.instance_offset
  7534. self.timestamp = timestamp
  7535. self.servo_signal = servo_signal
  7536. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7537. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.timestamp, self.servo_signal[0], self.servo_signal[1], self.servo_signal[2], self.servo_signal[3], self.servo_signal[4], self.servo_signal[5], self.servo_signal[6], self.servo_signal[7], self.servo_signal[8], self.servo_signal[9], self.servo_signal[10], self.servo_signal[11], self.servo_signal[12], self.servo_signal[13], self.servo_signal[14], self.servo_signal[15]), force_mavlink1=force_mavlink1)
  7538. # Define name on the class for backwards compatibility (it is now msgname).
  7539. # Done with setattr to hide the class variable from mypy.
  7540. setattr(MAVLink_vk_fixedwing_servo_signal_message, "name", mavlink_msg_deprecated_name_property())
  7541. class MAVLink_vk_fixedwing_rtl_circle_wp_message(MAVLink_message):
  7542. """
  7543. """
  7544. id = MAVLINK_MSG_ID_VK_FIXEDWING_RTL_CIRCLE_WP
  7545. msgname = "VK_FIXEDWING_RTL_CIRCLE_WP"
  7546. fieldnames = ["latitude", "longitude", "altitude", "radius"]
  7547. ordered_fieldnames = ["latitude", "longitude", "altitude", "radius"]
  7548. fieldtypes = ["int32_t", "int32_t", "float", "float"]
  7549. fielddisplays_by_name: Dict[str, str] = {}
  7550. fieldenums_by_name: Dict[str, str] = {}
  7551. fieldunits_by_name: Dict[str, str] = {"latitude": "degE7", "longitude": "degE7", "altitude": "m", "radius": "m"}
  7552. native_format = bytearray(b"<iiff")
  7553. orders = [0, 1, 2, 3]
  7554. lengths = [1, 1, 1, 1]
  7555. array_lengths = [0, 0, 0, 0]
  7556. crc_extra = 128
  7557. unpacker = struct.Struct("<iiff")
  7558. instance_field = None
  7559. instance_offset = -1
  7560. def __init__(self, latitude: int, longitude: int, altitude: float, radius: float):
  7561. MAVLink_message.__init__(self, MAVLink_vk_fixedwing_rtl_circle_wp_message.id, MAVLink_vk_fixedwing_rtl_circle_wp_message.msgname)
  7562. self._fieldnames = MAVLink_vk_fixedwing_rtl_circle_wp_message.fieldnames
  7563. self._instance_field = MAVLink_vk_fixedwing_rtl_circle_wp_message.instance_field
  7564. self._instance_offset = MAVLink_vk_fixedwing_rtl_circle_wp_message.instance_offset
  7565. self.latitude = latitude
  7566. self.longitude = longitude
  7567. self.altitude = altitude
  7568. self.radius = radius
  7569. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7570. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.latitude, self.longitude, self.altitude, self.radius), force_mavlink1=force_mavlink1)
  7571. # Define name on the class for backwards compatibility (it is now msgname).
  7572. # Done with setattr to hide the class variable from mypy.
  7573. setattr(MAVLink_vk_fixedwing_rtl_circle_wp_message, "name", mavlink_msg_deprecated_name_property())
  7574. class MAVLink_vk_airspeed_message(MAVLink_message):
  7575. """
  7576. Airspeed information from a sensor.
  7577. """
  7578. id = MAVLINK_MSG_ID_VK_AIRSPEED
  7579. msgname = "VK_AIRSPEED"
  7580. fieldnames = ["id", "airspeed", "temperature", "raw_press", "flags"]
  7581. ordered_fieldnames = ["airspeed", "raw_press", "temperature", "id", "flags"]
  7582. fieldtypes = ["uint8_t", "float", "int16_t", "float", "uint8_t"]
  7583. fielddisplays_by_name: Dict[str, str] = {}
  7584. fieldenums_by_name: Dict[str, str] = {}
  7585. fieldunits_by_name: Dict[str, str] = {"airspeed": "m/s", "temperature": "cdegC", "raw_press": "hPa"}
  7586. native_format = bytearray(b"<ffhBB")
  7587. orders = [3, 0, 2, 1, 4]
  7588. lengths = [1, 1, 1, 1, 1]
  7589. array_lengths = [0, 0, 0, 0, 0]
  7590. crc_extra = 97
  7591. unpacker = struct.Struct("<ffhBB")
  7592. instance_field = "id"
  7593. instance_offset = 10
  7594. def __init__(self, id: int, airspeed: float, temperature: int, raw_press: float, flags: int):
  7595. MAVLink_message.__init__(self, MAVLink_vk_airspeed_message.id, MAVLink_vk_airspeed_message.msgname)
  7596. self._fieldnames = MAVLink_vk_airspeed_message.fieldnames
  7597. self._instance_field = MAVLink_vk_airspeed_message.instance_field
  7598. self._instance_offset = MAVLink_vk_airspeed_message.instance_offset
  7599. self.id = id
  7600. self.airspeed = airspeed
  7601. self.temperature = temperature
  7602. self.raw_press = raw_press
  7603. self.flags = flags
  7604. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7605. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.airspeed, self.raw_press, self.temperature, self.id, self.flags), force_mavlink1=force_mavlink1)
  7606. # Define name on the class for backwards compatibility (it is now msgname).
  7607. # Done with setattr to hide the class variable from mypy.
  7608. setattr(MAVLink_vk_airspeed_message, "name", mavlink_msg_deprecated_name_property())
  7609. class MAVLink_vk_parachute_status_message(MAVLink_message):
  7610. """
  7611. parachute status
  7612. """
  7613. id = MAVLINK_MSG_ID_VK_PARACHUTE_STATUS
  7614. msgname = "VK_PARACHUTE_STATUS"
  7615. fieldnames = ["timestamp", "state", "auto_launch", "uav_cmd", "err_code", "backvolt"]
  7616. ordered_fieldnames = ["timestamp", "backvolt", "err_code", "state", "auto_launch", "uav_cmd"]
  7617. fieldtypes = ["uint32_t", "uint8_t", "uint8_t", "uint8_t", "uint16_t", "float"]
  7618. fielddisplays_by_name: Dict[str, str] = {}
  7619. fieldenums_by_name: Dict[str, str] = {}
  7620. fieldunits_by_name: Dict[str, str] = {"timestamp": "ms"}
  7621. native_format = bytearray(b"<IfHBBB")
  7622. orders = [0, 3, 4, 5, 2, 1]
  7623. lengths = [1, 1, 1, 1, 1, 1]
  7624. array_lengths = [0, 0, 0, 0, 0, 0]
  7625. crc_extra = 45
  7626. unpacker = struct.Struct("<IfHBBB")
  7627. instance_field = None
  7628. instance_offset = -1
  7629. def __init__(self, timestamp: int, state: int, auto_launch: int, uav_cmd: int, err_code: int, backvolt: float):
  7630. MAVLink_message.__init__(self, MAVLink_vk_parachute_status_message.id, MAVLink_vk_parachute_status_message.msgname)
  7631. self._fieldnames = MAVLink_vk_parachute_status_message.fieldnames
  7632. self._instance_field = MAVLink_vk_parachute_status_message.instance_field
  7633. self._instance_offset = MAVLink_vk_parachute_status_message.instance_offset
  7634. self.timestamp = timestamp
  7635. self.state = state
  7636. self.auto_launch = auto_launch
  7637. self.uav_cmd = uav_cmd
  7638. self.err_code = err_code
  7639. self.backvolt = backvolt
  7640. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7641. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.timestamp, self.backvolt, self.err_code, self.state, self.auto_launch, self.uav_cmd), force_mavlink1=force_mavlink1)
  7642. # Define name on the class for backwards compatibility (it is now msgname).
  7643. # Done with setattr to hide the class variable from mypy.
  7644. setattr(MAVLink_vk_parachute_status_message, "name", mavlink_msg_deprecated_name_property())
  7645. class MAVLink_vk_weigher_state_message(MAVLink_message):
  7646. """
  7647. Weigher state
  7648. """
  7649. id = MAVLINK_MSG_ID_VK_WEIGHER_STATE
  7650. msgname = "VK_WEIGHER_STATE"
  7651. fieldnames = ["timestamp", "weight", "weight_d", "work_state", "err_code", "attitude_Q", "rope_length", "rope_vel"]
  7652. ordered_fieldnames = ["timestamp", "weight", "weight_d", "work_state", "err_code", "attitude_Q", "rope_length", "rope_vel"]
  7653. fieldtypes = ["uint32_t", "uint32_t", "uint16_t", "uint8_t", "uint8_t", "float", "float", "float"]
  7654. fielddisplays_by_name: Dict[str, str] = {}
  7655. fieldenums_by_name: Dict[str, str] = {}
  7656. fieldunits_by_name: Dict[str, str] = {"timestamp": "ms", "weight": "g"}
  7657. native_format = bytearray(b"<IIHBBfff")
  7658. orders = [0, 1, 2, 3, 4, 5, 6, 7]
  7659. lengths = [1, 1, 1, 1, 1, 4, 1, 1]
  7660. array_lengths = [0, 0, 0, 0, 0, 4, 0, 0]
  7661. crc_extra = 89
  7662. unpacker = struct.Struct("<IIHBB4fff")
  7663. instance_field = None
  7664. instance_offset = -1
  7665. def __init__(self, timestamp: int, weight: int, weight_d: int, work_state: int, err_code: int, attitude_Q: Sequence[float] = (0, 0, 0, 0), rope_length: float = 0, rope_vel: float = 0):
  7666. MAVLink_message.__init__(self, MAVLink_vk_weigher_state_message.id, MAVLink_vk_weigher_state_message.msgname)
  7667. self._fieldnames = MAVLink_vk_weigher_state_message.fieldnames
  7668. self._instance_field = MAVLink_vk_weigher_state_message.instance_field
  7669. self._instance_offset = MAVLink_vk_weigher_state_message.instance_offset
  7670. self.timestamp = timestamp
  7671. self.weight = weight
  7672. self.weight_d = weight_d
  7673. self.work_state = work_state
  7674. self.err_code = err_code
  7675. self.attitude_Q = attitude_Q
  7676. self.rope_length = rope_length
  7677. self.rope_vel = rope_vel
  7678. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7679. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.timestamp, self.weight, self.weight_d, self.work_state, self.err_code, self.attitude_Q[0], self.attitude_Q[1], self.attitude_Q[2], self.attitude_Q[3], self.rope_length, self.rope_vel), force_mavlink1=force_mavlink1)
  7680. # Define name on the class for backwards compatibility (it is now msgname).
  7681. # Done with setattr to hide the class variable from mypy.
  7682. setattr(MAVLink_vk_weigher_state_message, "name", mavlink_msg_deprecated_name_property())
  7683. class MAVLink_vk_payload_data_relay_message(MAVLink_message):
  7684. """
  7685. VK payload message relay
  7686. """
  7687. id = MAVLINK_MSG_ID_VK_PAYLOAD_DATA_RELAY
  7688. msgname = "VK_PAYLOAD_DATA_RELAY"
  7689. fieldnames = ["payload_addr", "reserve", "data_len", "data"]
  7690. ordered_fieldnames = ["payload_addr", "reserve", "data_len", "data"]
  7691. fieldtypes = ["uint16_t", "uint8_t", "uint8_t", "uint8_t"]
  7692. fielddisplays_by_name: Dict[str, str] = {}
  7693. fieldenums_by_name: Dict[str, str] = {}
  7694. fieldunits_by_name: Dict[str, str] = {}
  7695. native_format = bytearray(b"<HBBB")
  7696. orders = [0, 1, 2, 3]
  7697. lengths = [1, 1, 1, 128]
  7698. array_lengths = [0, 0, 0, 128]
  7699. crc_extra = 37
  7700. unpacker = struct.Struct("<HBB128B")
  7701. instance_field = None
  7702. instance_offset = -1
  7703. def __init__(self, payload_addr: int, reserve: int, data_len: int, data: Sequence[int]):
  7704. MAVLink_message.__init__(self, MAVLink_vk_payload_data_relay_message.id, MAVLink_vk_payload_data_relay_message.msgname)
  7705. self._fieldnames = MAVLink_vk_payload_data_relay_message.fieldnames
  7706. self._instance_field = MAVLink_vk_payload_data_relay_message.instance_field
  7707. self._instance_offset = MAVLink_vk_payload_data_relay_message.instance_offset
  7708. self.payload_addr = payload_addr
  7709. self.reserve = reserve
  7710. self.data_len = data_len
  7711. self.data = data
  7712. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7713. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.payload_addr, self.reserve, self.data_len, self.data[0], self.data[1], self.data[2], self.data[3], self.data[4], self.data[5], self.data[6], self.data[7], self.data[8], self.data[9], self.data[10], self.data[11], self.data[12], self.data[13], self.data[14], self.data[15], self.data[16], self.data[17], self.data[18], self.data[19], self.data[20], self.data[21], self.data[22], self.data[23], self.data[24], self.data[25], self.data[26], self.data[27], self.data[28], self.data[29], self.data[30], self.data[31], self.data[32], self.data[33], self.data[34], self.data[35], self.data[36], self.data[37], self.data[38], self.data[39], self.data[40], self.data[41], self.data[42], self.data[43], self.data[44], self.data[45], self.data[46], self.data[47], self.data[48], self.data[49], self.data[50], self.data[51], self.data[52], self.data[53], self.data[54], self.data[55], self.data[56], self.data[57], self.data[58], self.data[59], self.data[60], self.data[61], self.data[62], self.data[63], self.data[64], self.data[65], self.data[66], self.data[67], self.data[68], self.data[69], self.data[70], self.data[71], self.data[72], self.data[73], self.data[74], self.data[75], self.data[76], self.data[77], self.data[78], self.data[79], self.data[80], self.data[81], self.data[82], self.data[83], self.data[84], self.data[85], self.data[86], self.data[87], self.data[88], self.data[89], self.data[90], self.data[91], self.data[92], self.data[93], self.data[94], self.data[95], self.data[96], self.data[97], self.data[98], self.data[99], self.data[100], self.data[101], self.data[102], self.data[103], self.data[104], self.data[105], self.data[106], self.data[107], self.data[108], self.data[109], self.data[110], self.data[111], self.data[112], self.data[113], self.data[114], self.data[115], self.data[116], self.data[117], self.data[118], self.data[119], self.data[120], self.data[121], self.data[122], self.data[123], self.data[124], self.data[125], self.data[126], self.data[127]), force_mavlink1=force_mavlink1)
  7714. # Define name on the class for backwards compatibility (it is now msgname).
  7715. # Done with setattr to hide the class variable from mypy.
  7716. setattr(MAVLink_vk_payload_data_relay_message, "name", mavlink_msg_deprecated_name_property())
  7717. class MAVLink_vk_external_ins_nav_message(MAVLink_message):
  7718. """
  7719. VK external INS navigation
  7720. """
  7721. id = MAVLINK_MSG_ID_VK_EXTERNAL_INS_NAV
  7722. msgname = "VK_EXTERNAL_INS_NAV"
  7723. fieldnames = ["timestamp", "lon", "lat", "msl", "ve", "vn", "vu", "yaw", "pitch", "roll", "gx", "gy", "gz", "ax", "ay", "az", "sat_lon", "sat_lat", "sat_msl", "sat_ve", "sat_vn", "sat_vu", "sat_pfix", "sat_hfix", "wk_state", "err_code"]
  7724. ordered_fieldnames = ["timestamp", "lon", "lat", "msl", "ve", "vn", "vu", "yaw", "pitch", "roll", "gx", "gy", "gz", "ax", "ay", "az", "sat_lon", "sat_lat", "sat_msl", "sat_ve", "sat_vn", "sat_vu", "sat_pfix", "sat_hfix", "wk_state", "err_code"]
  7725. fieldtypes = ["uint32_t", "int32_t", "int32_t", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "int32_t", "int32_t", "float", "float", "float", "float", "uint8_t", "uint8_t", "uint8_t", "uint8_t"]
  7726. fielddisplays_by_name: Dict[str, str] = {}
  7727. fieldenums_by_name: Dict[str, str] = {}
  7728. fieldunits_by_name: Dict[str, str] = {"timestamp": "ms", "lon": "degE7", "lat": "degE7", "msl": "m", "ve": "m/s", "vn": "m/s", "vu": "m/s", "yaw": "deg", "pitch": "deg", "roll": "deg", "gx": "deg/s", "gy": "deg/s", "gz": "deg/s", "ax": "m/s/s", "ay": "m/s/s", "az": "m/s/s", "sat_lon": "degE7", "sat_lat": "degE7", "sat_msl": "m", "sat_ve": "m/s", "sat_vn": "m/s", "sat_vu": "m/s"}
  7729. native_format = bytearray(b"<IiifffffffffffffiiffffBBBB")
  7730. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25]
  7731. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  7732. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  7733. crc_extra = 115
  7734. unpacker = struct.Struct("<IiifffffffffffffiiffffBBBB")
  7735. instance_field = None
  7736. instance_offset = -1
  7737. def __init__(self, timestamp: int, lon: int, lat: int, msl: float, ve: float, vn: float, vu: float, yaw: float, pitch: float, roll: float, gx: float, gy: float, gz: float, ax: float, ay: float, az: float, sat_lon: int, sat_lat: int, sat_msl: float, sat_ve: float, sat_vn: float, sat_vu: float, sat_pfix: int, sat_hfix: int, wk_state: int, err_code: int):
  7738. MAVLink_message.__init__(self, MAVLink_vk_external_ins_nav_message.id, MAVLink_vk_external_ins_nav_message.msgname)
  7739. self._fieldnames = MAVLink_vk_external_ins_nav_message.fieldnames
  7740. self._instance_field = MAVLink_vk_external_ins_nav_message.instance_field
  7741. self._instance_offset = MAVLink_vk_external_ins_nav_message.instance_offset
  7742. self.timestamp = timestamp
  7743. self.lon = lon
  7744. self.lat = lat
  7745. self.msl = msl
  7746. self.ve = ve
  7747. self.vn = vn
  7748. self.vu = vu
  7749. self.yaw = yaw
  7750. self.pitch = pitch
  7751. self.roll = roll
  7752. self.gx = gx
  7753. self.gy = gy
  7754. self.gz = gz
  7755. self.ax = ax
  7756. self.ay = ay
  7757. self.az = az
  7758. self.sat_lon = sat_lon
  7759. self.sat_lat = sat_lat
  7760. self.sat_msl = sat_msl
  7761. self.sat_ve = sat_ve
  7762. self.sat_vn = sat_vn
  7763. self.sat_vu = sat_vu
  7764. self.sat_pfix = sat_pfix
  7765. self.sat_hfix = sat_hfix
  7766. self.wk_state = wk_state
  7767. self.err_code = err_code
  7768. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7769. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.timestamp, self.lon, self.lat, self.msl, self.ve, self.vn, self.vu, self.yaw, self.pitch, self.roll, self.gx, self.gy, self.gz, self.ax, self.ay, self.az, self.sat_lon, self.sat_lat, self.sat_msl, self.sat_ve, self.sat_vn, self.sat_vu, self.sat_pfix, self.sat_hfix, self.wk_state, self.err_code), force_mavlink1=force_mavlink1)
  7770. # Define name on the class for backwards compatibility (it is now msgname).
  7771. # Done with setattr to hide the class variable from mypy.
  7772. setattr(MAVLink_vk_external_ins_nav_message, "name", mavlink_msg_deprecated_name_property())
  7773. class MAVLink_vk_rtk_base_pvt_message(MAVLink_message):
  7774. """
  7775. RTK basestaion pvt
  7776. """
  7777. id = MAVLINK_MSG_ID_VK_RTK_BASE_PVT
  7778. msgname = "VK_RTK_BASE_PVT"
  7779. fieldnames = ["timestamp", "lon", "lat", "msl", "ve", "vn", "vu", "heading", "pitch", "p_sat_num", "h_sat_num", "p_type", "h_type"]
  7780. ordered_fieldnames = ["timestamp", "lon", "lat", "msl", "ve", "vn", "vu", "heading", "pitch", "p_sat_num", "h_sat_num", "p_type", "h_type"]
  7781. fieldtypes = ["uint32_t", "int32_t", "int32_t", "float", "float", "float", "float", "float", "float", "uint8_t", "uint8_t", "uint8_t", "uint8_t"]
  7782. fielddisplays_by_name: Dict[str, str] = {}
  7783. fieldenums_by_name: Dict[str, str] = {}
  7784. fieldunits_by_name: Dict[str, str] = {"timestamp": "ms", "lon": "degE7", "lat": "degE7", "msl": "m", "ve": "m/s", "vn": "m/s", "vu": "m/s", "heading": "deg", "pitch": "deg"}
  7785. native_format = bytearray(b"<IiiffffffBBBB")
  7786. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
  7787. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  7788. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  7789. crc_extra = 87
  7790. unpacker = struct.Struct("<IiiffffffBBBB")
  7791. instance_field = None
  7792. instance_offset = -1
  7793. def __init__(self, timestamp: int, lon: int, lat: int, msl: float, ve: float, vn: float, vu: float, heading: float, pitch: float, p_sat_num: int, h_sat_num: int, p_type: int, h_type: int):
  7794. MAVLink_message.__init__(self, MAVLink_vk_rtk_base_pvt_message.id, MAVLink_vk_rtk_base_pvt_message.msgname)
  7795. self._fieldnames = MAVLink_vk_rtk_base_pvt_message.fieldnames
  7796. self._instance_field = MAVLink_vk_rtk_base_pvt_message.instance_field
  7797. self._instance_offset = MAVLink_vk_rtk_base_pvt_message.instance_offset
  7798. self.timestamp = timestamp
  7799. self.lon = lon
  7800. self.lat = lat
  7801. self.msl = msl
  7802. self.ve = ve
  7803. self.vn = vn
  7804. self.vu = vu
  7805. self.heading = heading
  7806. self.pitch = pitch
  7807. self.p_sat_num = p_sat_num
  7808. self.h_sat_num = h_sat_num
  7809. self.p_type = p_type
  7810. self.h_type = h_type
  7811. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7812. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.timestamp, self.lon, self.lat, self.msl, self.ve, self.vn, self.vu, self.heading, self.pitch, self.p_sat_num, self.h_sat_num, self.p_type, self.h_type), force_mavlink1=force_mavlink1)
  7813. # Define name on the class for backwards compatibility (it is now msgname).
  7814. # Done with setattr to hide the class variable from mypy.
  7815. setattr(MAVLink_vk_rtk_base_pvt_message, "name", mavlink_msg_deprecated_name_property())
  7816. class MAVLink_vkfly_edu_status_message(MAVLink_message):
  7817. """
  7818. EDU status
  7819. """
  7820. id = MAVLINK_MSG_ID_VKFLY_EDU_STATUS
  7821. msgname = "VKFLY_EDU_STATUS"
  7822. fieldnames = ["unix_timestamp", "boot_timestamp", "seq", "dev_sn", "dev_type", "retry_cnt", "fix_type", "reserve", "longitude", "latitude", "amsl", "alt_relative", "ve", "vn", "vu", "yaw", "pitch", "roll", "yaw_rate", "flight_mode"]
  7823. ordered_fieldnames = ["unix_timestamp", "boot_timestamp", "seq", "dev_sn", "longitude", "latitude", "amsl", "alt_relative", "ve", "vn", "vu", "yaw", "pitch", "roll", "yaw_rate", "dev_type", "retry_cnt", "fix_type", "reserve", "flight_mode"]
  7824. fieldtypes = ["uint64_t", "uint32_t", "uint32_t", "uint32_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "int32_t", "int32_t", "float", "float", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "uint8_t"]
  7825. fielddisplays_by_name: Dict[str, str] = {}
  7826. fieldenums_by_name: Dict[str, str] = {}
  7827. fieldunits_by_name: Dict[str, str] = {"unix_timestamp": "ms", "boot_timestamp": "ms", "longitude": "degE7", "latitude": "degE7", "amsl": "m", "alt_relative": "m", "ve": "cm/s", "vn": "cm/s", "vu": "cm/s", "yaw": "cdeg", "pitch": "cdeg", "roll": "cdeg", "yaw_rate": "cdeg/s"}
  7828. native_format = bytearray(b"<QIIIiiffhhhhhhhBBBBB")
  7829. orders = [0, 1, 2, 3, 15, 16, 17, 18, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 19]
  7830. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  7831. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  7832. crc_extra = 24
  7833. unpacker = struct.Struct("<QIIIiiffhhhhhhhBBBBB")
  7834. instance_field = None
  7835. instance_offset = -1
  7836. def __init__(self, unix_timestamp: int, boot_timestamp: int, seq: int, dev_sn: int, dev_type: int, retry_cnt: int, fix_type: int, reserve: int, longitude: int, latitude: int, amsl: float, alt_relative: float, ve: int, vn: int, vu: int, yaw: int, pitch: int, roll: int, yaw_rate: int, flight_mode: int):
  7837. MAVLink_message.__init__(self, MAVLink_vkfly_edu_status_message.id, MAVLink_vkfly_edu_status_message.msgname)
  7838. self._fieldnames = MAVLink_vkfly_edu_status_message.fieldnames
  7839. self._instance_field = MAVLink_vkfly_edu_status_message.instance_field
  7840. self._instance_offset = MAVLink_vkfly_edu_status_message.instance_offset
  7841. self.unix_timestamp = unix_timestamp
  7842. self.boot_timestamp = boot_timestamp
  7843. self.seq = seq
  7844. self.dev_sn = dev_sn
  7845. self.dev_type = dev_type
  7846. self.retry_cnt = retry_cnt
  7847. self.fix_type = fix_type
  7848. self.reserve = reserve
  7849. self.longitude = longitude
  7850. self.latitude = latitude
  7851. self.amsl = amsl
  7852. self.alt_relative = alt_relative
  7853. self.ve = ve
  7854. self.vn = vn
  7855. self.vu = vu
  7856. self.yaw = yaw
  7857. self.pitch = pitch
  7858. self.roll = roll
  7859. self.yaw_rate = yaw_rate
  7860. self.flight_mode = flight_mode
  7861. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7862. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.unix_timestamp, self.boot_timestamp, self.seq, self.dev_sn, self.longitude, self.latitude, self.amsl, self.alt_relative, self.ve, self.vn, self.vu, self.yaw, self.pitch, self.roll, self.yaw_rate, self.dev_type, self.retry_cnt, self.fix_type, self.reserve, self.flight_mode), force_mavlink1=force_mavlink1)
  7863. # Define name on the class for backwards compatibility (it is now msgname).
  7864. # Done with setattr to hide the class variable from mypy.
  7865. setattr(MAVLink_vkfly_edu_status_message, "name", mavlink_msg_deprecated_name_property())
  7866. class MAVLink_vkfly_edu_status_ack_message(MAVLink_message):
  7867. """
  7868. EDU status ack
  7869. """
  7870. id = MAVLINK_MSG_ID_VKFLY_EDU_STATUS_ACK
  7871. msgname = "VKFLY_EDU_STATUS_ACK"
  7872. fieldnames = ["unix_timestamp", "seq"]
  7873. ordered_fieldnames = ["unix_timestamp", "seq"]
  7874. fieldtypes = ["uint64_t", "uint32_t"]
  7875. fielddisplays_by_name: Dict[str, str] = {}
  7876. fieldenums_by_name: Dict[str, str] = {}
  7877. fieldunits_by_name: Dict[str, str] = {"unix_timestamp": "ms"}
  7878. native_format = bytearray(b"<QI")
  7879. orders = [0, 1]
  7880. lengths = [1, 1]
  7881. array_lengths = [0, 0]
  7882. crc_extra = 148
  7883. unpacker = struct.Struct("<QI")
  7884. instance_field = None
  7885. instance_offset = -1
  7886. def __init__(self, unix_timestamp: int, seq: int):
  7887. MAVLink_message.__init__(self, MAVLink_vkfly_edu_status_ack_message.id, MAVLink_vkfly_edu_status_ack_message.msgname)
  7888. self._fieldnames = MAVLink_vkfly_edu_status_ack_message.fieldnames
  7889. self._instance_field = MAVLink_vkfly_edu_status_ack_message.instance_field
  7890. self._instance_offset = MAVLink_vkfly_edu_status_ack_message.instance_offset
  7891. self.unix_timestamp = unix_timestamp
  7892. self.seq = seq
  7893. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7894. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.unix_timestamp, self.seq), force_mavlink1=force_mavlink1)
  7895. # Define name on the class for backwards compatibility (it is now msgname).
  7896. # Done with setattr to hide the class variable from mypy.
  7897. setattr(MAVLink_vkfly_edu_status_ack_message, "name", mavlink_msg_deprecated_name_property())
  7898. class MAVLink_vkfly_tianqu_servo_status_message(MAVLink_message):
  7899. """
  7900. TianQu servo status
  7901. """
  7902. id = MAVLINK_MSG_ID_VKFLY_TIANQU_SERVO_STATUS
  7903. msgname = "VKFLY_TIANQU_SERVO_STATUS"
  7904. fieldnames = ["timestamp", "load_status", "servo_status"]
  7905. ordered_fieldnames = ["timestamp", "load_status", "servo_status"]
  7906. fieldtypes = ["uint32_t", "uint32_t", "uint32_t"]
  7907. fielddisplays_by_name: Dict[str, str] = {}
  7908. fieldenums_by_name: Dict[str, str] = {}
  7909. fieldunits_by_name: Dict[str, str] = {}
  7910. native_format = bytearray(b"<III")
  7911. orders = [0, 1, 2]
  7912. lengths = [1, 1, 1]
  7913. array_lengths = [0, 0, 0]
  7914. crc_extra = 148
  7915. unpacker = struct.Struct("<III")
  7916. instance_field = None
  7917. instance_offset = -1
  7918. def __init__(self, timestamp: int, load_status: int, servo_status: int):
  7919. MAVLink_message.__init__(self, MAVLink_vkfly_tianqu_servo_status_message.id, MAVLink_vkfly_tianqu_servo_status_message.msgname)
  7920. self._fieldnames = MAVLink_vkfly_tianqu_servo_status_message.fieldnames
  7921. self._instance_field = MAVLink_vkfly_tianqu_servo_status_message.instance_field
  7922. self._instance_offset = MAVLink_vkfly_tianqu_servo_status_message.instance_offset
  7923. self.timestamp = timestamp
  7924. self.load_status = load_status
  7925. self.servo_status = servo_status
  7926. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7927. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.timestamp, self.load_status, self.servo_status), force_mavlink1=force_mavlink1)
  7928. # Define name on the class for backwards compatibility (it is now msgname).
  7929. # Done with setattr to hide the class variable from mypy.
  7930. setattr(MAVLink_vkfly_tianqu_servo_status_message, "name", mavlink_msg_deprecated_name_property())
  7931. class MAVLink_vk_adc_ext_status_message(MAVLink_message):
  7932. """
  7933. External ADC interpreted status.
  7934. """
  7935. id = MAVLINK_MSG_ID_VK_ADC_EXT_STATUS
  7936. msgname = "VK_ADC_EXT_STATUS"
  7937. fieldnames = ["time_boot_ms", "type", "valid", "raw_voltage", "voltage_ratio", "voltage", "current", "fuel_percent", "fuel_low1", "fuel_low2"]
  7938. ordered_fieldnames = ["time_boot_ms", "raw_voltage", "voltage_ratio", "voltage", "current", "fuel_percent", "type", "valid", "fuel_low1", "fuel_low2"]
  7939. fieldtypes = ["uint32_t", "uint8_t", "uint8_t", "float", "float", "float", "float", "float", "uint8_t", "uint8_t"]
  7940. fielddisplays_by_name: Dict[str, str] = {}
  7941. fieldenums_by_name: Dict[str, str] = {}
  7942. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "raw_voltage": "V", "voltage": "V", "current": "A", "fuel_percent": "%"}
  7943. native_format = bytearray(b"<IfffffBBBB")
  7944. orders = [0, 6, 7, 1, 2, 3, 4, 5, 8, 9]
  7945. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  7946. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  7947. crc_extra = 39
  7948. unpacker = struct.Struct("<IfffffBBBB")
  7949. instance_field = None
  7950. instance_offset = -1
  7951. def __init__(self, time_boot_ms: int, type: int, valid: int, raw_voltage: float, voltage_ratio: float, voltage: float, current: float, fuel_percent: float, fuel_low1: int, fuel_low2: int):
  7952. MAVLink_message.__init__(self, MAVLink_vk_adc_ext_status_message.id, MAVLink_vk_adc_ext_status_message.msgname)
  7953. self._fieldnames = MAVLink_vk_adc_ext_status_message.fieldnames
  7954. self._instance_field = MAVLink_vk_adc_ext_status_message.instance_field
  7955. self._instance_offset = MAVLink_vk_adc_ext_status_message.instance_offset
  7956. self.time_boot_ms = time_boot_ms
  7957. self.type = type
  7958. self.valid = valid
  7959. self.raw_voltage = raw_voltage
  7960. self.voltage_ratio = voltage_ratio
  7961. self.voltage = voltage
  7962. self.current = current
  7963. self.fuel_percent = fuel_percent
  7964. self.fuel_low1 = fuel_low1
  7965. self.fuel_low2 = fuel_low2
  7966. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7967. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.raw_voltage, self.voltage_ratio, self.voltage, self.current, self.fuel_percent, self.type, self.valid, self.fuel_low1, self.fuel_low2), force_mavlink1=force_mavlink1)
  7968. # Define name on the class for backwards compatibility (it is now msgname).
  7969. # Done with setattr to hide the class variable from mypy.
  7970. setattr(MAVLink_vk_adc_ext_status_message, "name", mavlink_msg_deprecated_name_property())
  7971. class MAVLink_vk_obstacle_distance_message(MAVLink_message):
  7972. """
  7973. Two fragments form one 72-bin scan, clockwise from heading in 5
  7974. degree sectors. Incompatible with the former unfragmented layout.
  7975. Each bin reports the nearest obstacle in its sector.
  7976. """
  7977. id = MAVLINK_MSG_ID_VK_OBSTACLE_DISTANCE
  7978. msgname = "VK_OBSTACLE_DISTANCE"
  7979. fieldnames = ["source_sequence", "source_age_ms", "distances", "min_distance_cm", "max_distance_cm", "fragment_index", "status", "gravity_projected_body_z"]
  7980. ordered_fieldnames = ["source_sequence", "source_age_ms", "distances", "min_distance_cm", "max_distance_cm", "gravity_projected_body_z", "fragment_index", "status"]
  7981. fieldtypes = ["uint64_t", "float", "uint16_t", "uint16_t", "uint16_t", "uint8_t", "uint8_t", "int16_t"]
  7982. fielddisplays_by_name: Dict[str, str] = {}
  7983. fieldenums_by_name: Dict[str, str] = {}
  7984. fieldunits_by_name: Dict[str, str] = {"source_age_ms": "ms", "distances": "cm", "min_distance_cm": "cm", "max_distance_cm": "cm", "gravity_projected_body_z": "cm"}
  7985. native_format = bytearray(b"<QfHHHhBB")
  7986. orders = [0, 1, 2, 3, 4, 6, 7, 5]
  7987. lengths = [1, 1, 36, 1, 1, 36, 1, 1]
  7988. array_lengths = [0, 0, 36, 0, 0, 36, 0, 0]
  7989. crc_extra = 94
  7990. unpacker = struct.Struct("<Qf36HHH36hBB")
  7991. instance_field = None
  7992. instance_offset = -1
  7993. def __init__(self, source_sequence: int, source_age_ms: float, distances: Sequence[int], min_distance_cm: int, max_distance_cm: int, fragment_index: int, status: int, gravity_projected_body_z: Sequence[int]):
  7994. MAVLink_message.__init__(self, MAVLink_vk_obstacle_distance_message.id, MAVLink_vk_obstacle_distance_message.msgname)
  7995. self._fieldnames = MAVLink_vk_obstacle_distance_message.fieldnames
  7996. self._instance_field = MAVLink_vk_obstacle_distance_message.instance_field
  7997. self._instance_offset = MAVLink_vk_obstacle_distance_message.instance_offset
  7998. self.source_sequence = source_sequence
  7999. self.source_age_ms = source_age_ms
  8000. self.distances = distances
  8001. self.min_distance_cm = min_distance_cm
  8002. self.max_distance_cm = max_distance_cm
  8003. self.fragment_index = fragment_index
  8004. self.status = status
  8005. self.gravity_projected_body_z = gravity_projected_body_z
  8006. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8007. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.source_sequence, self.source_age_ms, self.distances[0], self.distances[1], self.distances[2], self.distances[3], self.distances[4], self.distances[5], self.distances[6], self.distances[7], self.distances[8], self.distances[9], self.distances[10], self.distances[11], self.distances[12], self.distances[13], self.distances[14], self.distances[15], self.distances[16], self.distances[17], self.distances[18], self.distances[19], self.distances[20], self.distances[21], self.distances[22], self.distances[23], self.distances[24], self.distances[25], self.distances[26], self.distances[27], self.distances[28], self.distances[29], self.distances[30], self.distances[31], self.distances[32], self.distances[33], self.distances[34], self.distances[35], self.min_distance_cm, self.max_distance_cm, self.gravity_projected_body_z[0], self.gravity_projected_body_z[1], self.gravity_projected_body_z[2], self.gravity_projected_body_z[3], self.gravity_projected_body_z[4], self.gravity_projected_body_z[5], self.gravity_projected_body_z[6], self.gravity_projected_body_z[7], self.gravity_projected_body_z[8], self.gravity_projected_body_z[9], self.gravity_projected_body_z[10], self.gravity_projected_body_z[11], self.gravity_projected_body_z[12], self.gravity_projected_body_z[13], self.gravity_projected_body_z[14], self.gravity_projected_body_z[15], self.gravity_projected_body_z[16], self.gravity_projected_body_z[17], self.gravity_projected_body_z[18], self.gravity_projected_body_z[19], self.gravity_projected_body_z[20], self.gravity_projected_body_z[21], self.gravity_projected_body_z[22], self.gravity_projected_body_z[23], self.gravity_projected_body_z[24], self.gravity_projected_body_z[25], self.gravity_projected_body_z[26], self.gravity_projected_body_z[27], self.gravity_projected_body_z[28], self.gravity_projected_body_z[29], self.gravity_projected_body_z[30], self.gravity_projected_body_z[31], self.gravity_projected_body_z[32], self.gravity_projected_body_z[33], self.gravity_projected_body_z[34], self.gravity_projected_body_z[35], self.fragment_index, self.status), force_mavlink1=force_mavlink1)
  8008. # Define name on the class for backwards compatibility (it is now msgname).
  8009. # Done with setattr to hide the class variable from mypy.
  8010. setattr(MAVLink_vk_obstacle_distance_message, "name", mavlink_msg_deprecated_name_property())
  8011. class MAVLink_vk_fw_update_begin_message(MAVLink_message):
  8012. """
  8013. VKFLY autopilot update firmware begin. This message send from GCS
  8014. to autopilot.
  8015. """
  8016. id = MAVLINK_MSG_ID_VK_FW_UPDATE_BEGIN
  8017. msgname = "VK_FW_UPDATE_BEGIN"
  8018. fieldnames = ["target_system", "target_comp", "file_size"]
  8019. ordered_fieldnames = ["file_size", "target_system", "target_comp"]
  8020. fieldtypes = ["uint8_t", "uint8_t", "uint32_t"]
  8021. fielddisplays_by_name: Dict[str, str] = {}
  8022. fieldenums_by_name: Dict[str, str] = {}
  8023. fieldunits_by_name: Dict[str, str] = {"file_size": "bytes"}
  8024. native_format = bytearray(b"<IBB")
  8025. orders = [1, 2, 0]
  8026. lengths = [1, 1, 1]
  8027. array_lengths = [0, 0, 0]
  8028. crc_extra = 39
  8029. unpacker = struct.Struct("<IBB")
  8030. instance_field = None
  8031. instance_offset = -1
  8032. def __init__(self, target_system: int, target_comp: int, file_size: int):
  8033. MAVLink_message.__init__(self, MAVLink_vk_fw_update_begin_message.id, MAVLink_vk_fw_update_begin_message.msgname)
  8034. self._fieldnames = MAVLink_vk_fw_update_begin_message.fieldnames
  8035. self._instance_field = MAVLink_vk_fw_update_begin_message.instance_field
  8036. self._instance_offset = MAVLink_vk_fw_update_begin_message.instance_offset
  8037. self.target_system = target_system
  8038. self.target_comp = target_comp
  8039. self.file_size = file_size
  8040. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8041. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.file_size, self.target_system, self.target_comp), force_mavlink1=force_mavlink1)
  8042. # Define name on the class for backwards compatibility (it is now msgname).
  8043. # Done with setattr to hide the class variable from mypy.
  8044. setattr(MAVLink_vk_fw_update_begin_message, "name", mavlink_msg_deprecated_name_property())
  8045. class MAVLink_vk_fw_update_ack_message(MAVLink_message):
  8046. """
  8047. VKFLY udpate acknowledge.
  8048. """
  8049. id = MAVLINK_MSG_ID_VK_FW_UPDATE_ACK
  8050. msgname = "VK_FW_UPDATE_ACK"
  8051. fieldnames = ["result"]
  8052. ordered_fieldnames = ["result"]
  8053. fieldtypes = ["uint8_t"]
  8054. fielddisplays_by_name: Dict[str, str] = {}
  8055. fieldenums_by_name: Dict[str, str] = {"result": "MAV_RESULT"}
  8056. fieldunits_by_name: Dict[str, str] = {}
  8057. native_format = bytearray(b"<B")
  8058. orders = [0]
  8059. lengths = [1]
  8060. array_lengths = [0]
  8061. crc_extra = 98
  8062. unpacker = struct.Struct("<B")
  8063. instance_field = None
  8064. instance_offset = -1
  8065. def __init__(self, result: int):
  8066. MAVLink_message.__init__(self, MAVLink_vk_fw_update_ack_message.id, MAVLink_vk_fw_update_ack_message.msgname)
  8067. self._fieldnames = MAVLink_vk_fw_update_ack_message.fieldnames
  8068. self._instance_field = MAVLink_vk_fw_update_ack_message.instance_field
  8069. self._instance_offset = MAVLink_vk_fw_update_ack_message.instance_offset
  8070. self.result = result
  8071. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8072. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.result), force_mavlink1=force_mavlink1)
  8073. # Define name on the class for backwards compatibility (it is now msgname).
  8074. # Done with setattr to hide the class variable from mypy.
  8075. setattr(MAVLink_vk_fw_update_ack_message, "name", mavlink_msg_deprecated_name_property())
  8076. class MAVLink_vk_fw_update_data_request_message(MAVLink_message):
  8077. """
  8078. VKFLY autopilot request update file data from GCS.
  8079. """
  8080. id = MAVLINK_MSG_ID_VK_FW_UPDATE_DATA_REQUEST
  8081. msgname = "VK_FW_UPDATE_DATA_REQUEST"
  8082. fieldnames = ["offset", "count"]
  8083. ordered_fieldnames = ["offset", "count"]
  8084. fieldtypes = ["uint32_t", "uint32_t"]
  8085. fielddisplays_by_name: Dict[str, str] = {}
  8086. fieldenums_by_name: Dict[str, str] = {}
  8087. fieldunits_by_name: Dict[str, str] = {}
  8088. native_format = bytearray(b"<II")
  8089. orders = [0, 1]
  8090. lengths = [1, 1]
  8091. array_lengths = [0, 0]
  8092. crc_extra = 78
  8093. unpacker = struct.Struct("<II")
  8094. instance_field = None
  8095. instance_offset = -1
  8096. def __init__(self, offset: int, count: int):
  8097. MAVLink_message.__init__(self, MAVLink_vk_fw_update_data_request_message.id, MAVLink_vk_fw_update_data_request_message.msgname)
  8098. self._fieldnames = MAVLink_vk_fw_update_data_request_message.fieldnames
  8099. self._instance_field = MAVLink_vk_fw_update_data_request_message.instance_field
  8100. self._instance_offset = MAVLink_vk_fw_update_data_request_message.instance_offset
  8101. self.offset = offset
  8102. self.count = count
  8103. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8104. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.offset, self.count), force_mavlink1=force_mavlink1)
  8105. # Define name on the class for backwards compatibility (it is now msgname).
  8106. # Done with setattr to hide the class variable from mypy.
  8107. setattr(MAVLink_vk_fw_update_data_request_message, "name", mavlink_msg_deprecated_name_property())
  8108. class MAVLink_vk_fw_update_data_message(MAVLink_message):
  8109. """
  8110. VKFLY transfer update file data.
  8111. """
  8112. id = MAVLINK_MSG_ID_VK_FW_UPDATE_DATA
  8113. msgname = "VK_FW_UPDATE_DATA"
  8114. fieldnames = ["offset", "count", "data"]
  8115. ordered_fieldnames = ["offset", "count", "data"]
  8116. fieldtypes = ["uint32_t", "uint8_t", "uint8_t"]
  8117. fielddisplays_by_name: Dict[str, str] = {}
  8118. fieldenums_by_name: Dict[str, str] = {}
  8119. fieldunits_by_name: Dict[str, str] = {}
  8120. native_format = bytearray(b"<IBB")
  8121. orders = [0, 1, 2]
  8122. lengths = [1, 1, 128]
  8123. array_lengths = [0, 0, 128]
  8124. crc_extra = 166
  8125. unpacker = struct.Struct("<IB128B")
  8126. instance_field = None
  8127. instance_offset = -1
  8128. def __init__(self, offset: int, count: int, data: Sequence[int]):
  8129. MAVLink_message.__init__(self, MAVLink_vk_fw_update_data_message.id, MAVLink_vk_fw_update_data_message.msgname)
  8130. self._fieldnames = MAVLink_vk_fw_update_data_message.fieldnames
  8131. self._instance_field = MAVLink_vk_fw_update_data_message.instance_field
  8132. self._instance_offset = MAVLink_vk_fw_update_data_message.instance_offset
  8133. self.offset = offset
  8134. self.count = count
  8135. self.data = data
  8136. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8137. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.offset, self.count, self.data[0], self.data[1], self.data[2], self.data[3], self.data[4], self.data[5], self.data[6], self.data[7], self.data[8], self.data[9], self.data[10], self.data[11], self.data[12], self.data[13], self.data[14], self.data[15], self.data[16], self.data[17], self.data[18], self.data[19], self.data[20], self.data[21], self.data[22], self.data[23], self.data[24], self.data[25], self.data[26], self.data[27], self.data[28], self.data[29], self.data[30], self.data[31], self.data[32], self.data[33], self.data[34], self.data[35], self.data[36], self.data[37], self.data[38], self.data[39], self.data[40], self.data[41], self.data[42], self.data[43], self.data[44], self.data[45], self.data[46], self.data[47], self.data[48], self.data[49], self.data[50], self.data[51], self.data[52], self.data[53], self.data[54], self.data[55], self.data[56], self.data[57], self.data[58], self.data[59], self.data[60], self.data[61], self.data[62], self.data[63], self.data[64], self.data[65], self.data[66], self.data[67], self.data[68], self.data[69], self.data[70], self.data[71], self.data[72], self.data[73], self.data[74], self.data[75], self.data[76], self.data[77], self.data[78], self.data[79], self.data[80], self.data[81], self.data[82], self.data[83], self.data[84], self.data[85], self.data[86], self.data[87], self.data[88], self.data[89], self.data[90], self.data[91], self.data[92], self.data[93], self.data[94], self.data[95], self.data[96], self.data[97], self.data[98], self.data[99], self.data[100], self.data[101], self.data[102], self.data[103], self.data[104], self.data[105], self.data[106], self.data[107], self.data[108], self.data[109], self.data[110], self.data[111], self.data[112], self.data[113], self.data[114], self.data[115], self.data[116], self.data[117], self.data[118], self.data[119], self.data[120], self.data[121], self.data[122], self.data[123], self.data[124], self.data[125], self.data[126], self.data[127]), force_mavlink1=force_mavlink1)
  8138. # Define name on the class for backwards compatibility (it is now msgname).
  8139. # Done with setattr to hide the class variable from mypy.
  8140. setattr(MAVLink_vk_fw_update_data_message, "name", mavlink_msg_deprecated_name_property())
  8141. class MAVLink_vk_update_terminate_message(MAVLink_message):
  8142. """
  8143. VKFLY transfer update terminate. Send this message to terminate a
  8144. update file transfer.
  8145. """
  8146. id = MAVLINK_MSG_ID_VK_UPDATE_TERMINATE
  8147. msgname = "VK_UPDATE_TERMINATE"
  8148. fieldnames = ["target_system", "target_comp"]
  8149. ordered_fieldnames = ["target_system", "target_comp"]
  8150. fieldtypes = ["uint8_t", "uint8_t"]
  8151. fielddisplays_by_name: Dict[str, str] = {}
  8152. fieldenums_by_name: Dict[str, str] = {}
  8153. fieldunits_by_name: Dict[str, str] = {}
  8154. native_format = bytearray(b"<BB")
  8155. orders = [0, 1]
  8156. lengths = [1, 1]
  8157. array_lengths = [0, 0]
  8158. crc_extra = 158
  8159. unpacker = struct.Struct("<BB")
  8160. instance_field = None
  8161. instance_offset = -1
  8162. def __init__(self, target_system: int, target_comp: int):
  8163. MAVLink_message.__init__(self, MAVLink_vk_update_terminate_message.id, MAVLink_vk_update_terminate_message.msgname)
  8164. self._fieldnames = MAVLink_vk_update_terminate_message.fieldnames
  8165. self._instance_field = MAVLink_vk_update_terminate_message.instance_field
  8166. self._instance_offset = MAVLink_vk_update_terminate_message.instance_offset
  8167. self.target_system = target_system
  8168. self.target_comp = target_comp
  8169. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8170. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.target_system, self.target_comp), force_mavlink1=force_mavlink1)
  8171. # Define name on the class for backwards compatibility (it is now msgname).
  8172. # Done with setattr to hide the class variable from mypy.
  8173. setattr(MAVLink_vk_update_terminate_message, "name", mavlink_msg_deprecated_name_property())
  8174. class MAVLink_vk_cacc_manager_verify_message(MAVLink_message):
  8175. """
  8176. CACC manager verify message, in json format.
  8177. """
  8178. id = MAVLINK_MSG_ID_VK_CACC_MANAGER_VERIFY
  8179. msgname = "VK_CACC_MANAGER_VERIFY"
  8180. fieldnames = ["len", "json_data"]
  8181. ordered_fieldnames = ["len", "json_data"]
  8182. fieldtypes = ["uint8_t", "uint8_t"]
  8183. fielddisplays_by_name: Dict[str, str] = {}
  8184. fieldenums_by_name: Dict[str, str] = {}
  8185. fieldunits_by_name: Dict[str, str] = {}
  8186. native_format = bytearray(b"<BB")
  8187. orders = [0, 1]
  8188. lengths = [1, 200]
  8189. array_lengths = [0, 200]
  8190. crc_extra = 73
  8191. unpacker = struct.Struct("<B200B")
  8192. instance_field = None
  8193. instance_offset = -1
  8194. def __init__(self, len: int, json_data: Sequence[int]):
  8195. MAVLink_message.__init__(self, MAVLink_vk_cacc_manager_verify_message.id, MAVLink_vk_cacc_manager_verify_message.msgname)
  8196. self._fieldnames = MAVLink_vk_cacc_manager_verify_message.fieldnames
  8197. self._instance_field = MAVLink_vk_cacc_manager_verify_message.instance_field
  8198. self._instance_offset = MAVLink_vk_cacc_manager_verify_message.instance_offset
  8199. self.len = len
  8200. self.json_data = json_data
  8201. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8202. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.len, self.json_data[0], self.json_data[1], self.json_data[2], self.json_data[3], self.json_data[4], self.json_data[5], self.json_data[6], self.json_data[7], self.json_data[8], self.json_data[9], self.json_data[10], self.json_data[11], self.json_data[12], self.json_data[13], self.json_data[14], self.json_data[15], self.json_data[16], self.json_data[17], self.json_data[18], self.json_data[19], self.json_data[20], self.json_data[21], self.json_data[22], self.json_data[23], self.json_data[24], self.json_data[25], self.json_data[26], self.json_data[27], self.json_data[28], self.json_data[29], self.json_data[30], self.json_data[31], self.json_data[32], self.json_data[33], self.json_data[34], self.json_data[35], self.json_data[36], self.json_data[37], self.json_data[38], self.json_data[39], self.json_data[40], self.json_data[41], self.json_data[42], self.json_data[43], self.json_data[44], self.json_data[45], self.json_data[46], self.json_data[47], self.json_data[48], self.json_data[49], self.json_data[50], self.json_data[51], self.json_data[52], self.json_data[53], self.json_data[54], self.json_data[55], self.json_data[56], self.json_data[57], self.json_data[58], self.json_data[59], self.json_data[60], self.json_data[61], self.json_data[62], self.json_data[63], self.json_data[64], self.json_data[65], self.json_data[66], self.json_data[67], self.json_data[68], self.json_data[69], self.json_data[70], self.json_data[71], self.json_data[72], self.json_data[73], self.json_data[74], self.json_data[75], self.json_data[76], self.json_data[77], self.json_data[78], self.json_data[79], self.json_data[80], self.json_data[81], self.json_data[82], self.json_data[83], self.json_data[84], self.json_data[85], self.json_data[86], self.json_data[87], self.json_data[88], self.json_data[89], self.json_data[90], self.json_data[91], self.json_data[92], self.json_data[93], self.json_data[94], self.json_data[95], self.json_data[96], self.json_data[97], self.json_data[98], self.json_data[99], self.json_data[100], self.json_data[101], self.json_data[102], self.json_data[103], self.json_data[104], self.json_data[105], self.json_data[106], self.json_data[107], self.json_data[108], self.json_data[109], self.json_data[110], self.json_data[111], self.json_data[112], self.json_data[113], self.json_data[114], self.json_data[115], self.json_data[116], self.json_data[117], self.json_data[118], self.json_data[119], self.json_data[120], self.json_data[121], self.json_data[122], self.json_data[123], self.json_data[124], self.json_data[125], self.json_data[126], self.json_data[127], self.json_data[128], self.json_data[129], self.json_data[130], self.json_data[131], self.json_data[132], self.json_data[133], self.json_data[134], self.json_data[135], self.json_data[136], self.json_data[137], self.json_data[138], self.json_data[139], self.json_data[140], self.json_data[141], self.json_data[142], self.json_data[143], self.json_data[144], self.json_data[145], self.json_data[146], self.json_data[147], self.json_data[148], self.json_data[149], self.json_data[150], self.json_data[151], self.json_data[152], self.json_data[153], self.json_data[154], self.json_data[155], self.json_data[156], self.json_data[157], self.json_data[158], self.json_data[159], self.json_data[160], self.json_data[161], self.json_data[162], self.json_data[163], self.json_data[164], self.json_data[165], self.json_data[166], self.json_data[167], self.json_data[168], self.json_data[169], self.json_data[170], self.json_data[171], self.json_data[172], self.json_data[173], self.json_data[174], self.json_data[175], self.json_data[176], self.json_data[177], self.json_data[178], self.json_data[179], self.json_data[180], self.json_data[181], self.json_data[182], self.json_data[183], self.json_data[184], self.json_data[185], self.json_data[186], self.json_data[187], self.json_data[188], self.json_data[189], self.json_data[190], self.json_data[191], self.json_data[192], self.json_data[193], self.json_data[194], self.json_data[195], self.json_data[196], self.json_data[197], self.json_data[198], self.json_data[199]), force_mavlink1=force_mavlink1)
  8203. # Define name on the class for backwards compatibility (it is now msgname).
  8204. # Done with setattr to hide the class variable from mypy.
  8205. setattr(MAVLink_vk_cacc_manager_verify_message, "name", mavlink_msg_deprecated_name_property())
  8206. class MAVLink_vk_ext_vision_fusion_message(MAVLink_message):
  8207. """
  8208. external vision fusion data
  8209. """
  8210. id = MAVLINK_MSG_ID_VK_EXT_VISION_FUSION
  8211. msgname = "VK_EXT_VISION_FUSION"
  8212. fieldnames = ["timestamp", "pos_frd", "vel_frd", "Q_g", "lat", "lon", "alt_amsl", "hR", "vel_ned", "bias_acc", "bias_gyr", "cov_att", "cov_pos", "cov_vel", "unhealthy", "flag", "reset_cnt"]
  8213. ordered_fieldnames = ["timestamp", "pos_frd", "vel_frd", "Q_g", "lat", "lon", "alt_amsl", "hR", "vel_ned", "bias_acc", "bias_gyr", "cov_att", "cov_pos", "cov_vel", "unhealthy", "flag", "reset_cnt"]
  8214. fieldtypes = ["uint32_t", "float", "float", "float", "int32_t", "int32_t", "float", "float", "float", "float", "float", "float", "float", "float", "uint8_t", "uint8_t", "uint8_t"]
  8215. fielddisplays_by_name: Dict[str, str] = {}
  8216. fieldenums_by_name: Dict[str, str] = {}
  8217. fieldunits_by_name: Dict[str, str] = {"timestamp": "ms", "pos_frd": "m", "vel_frd": "m/s", "vel_ned": "m/s", "bias_acc": "m/s/s", "bias_gyr": "rad/s", "cov_att": "rad", "cov_pos": "m", "cov_vel": "m/s"}
  8218. native_format = bytearray(b"<IfffiiffffffffBBB")
  8219. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]
  8220. lengths = [1, 3, 3, 4, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, 1, 1, 1]
  8221. array_lengths = [0, 3, 3, 4, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 0, 0, 0]
  8222. crc_extra = 188
  8223. unpacker = struct.Struct("<I3f3f4fiiff3f3f3f3f3f3fBBB")
  8224. instance_field = None
  8225. instance_offset = -1
  8226. def __init__(self, timestamp: int, pos_frd: Sequence[float], vel_frd: Sequence[float], Q_g: Sequence[float], lat: int, lon: int, alt_amsl: float, hR: float, vel_ned: Sequence[float], bias_acc: Sequence[float], bias_gyr: Sequence[float], cov_att: Sequence[float], cov_pos: Sequence[float], cov_vel: Sequence[float], unhealthy: int, flag: int, reset_cnt: int):
  8227. MAVLink_message.__init__(self, MAVLink_vk_ext_vision_fusion_message.id, MAVLink_vk_ext_vision_fusion_message.msgname)
  8228. self._fieldnames = MAVLink_vk_ext_vision_fusion_message.fieldnames
  8229. self._instance_field = MAVLink_vk_ext_vision_fusion_message.instance_field
  8230. self._instance_offset = MAVLink_vk_ext_vision_fusion_message.instance_offset
  8231. self.timestamp = timestamp
  8232. self.pos_frd = pos_frd
  8233. self.vel_frd = vel_frd
  8234. self.Q_g = Q_g
  8235. self.lat = lat
  8236. self.lon = lon
  8237. self.alt_amsl = alt_amsl
  8238. self.hR = hR
  8239. self.vel_ned = vel_ned
  8240. self.bias_acc = bias_acc
  8241. self.bias_gyr = bias_gyr
  8242. self.cov_att = cov_att
  8243. self.cov_pos = cov_pos
  8244. self.cov_vel = cov_vel
  8245. self.unhealthy = unhealthy
  8246. self.flag = flag
  8247. self.reset_cnt = reset_cnt
  8248. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8249. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.timestamp, self.pos_frd[0], self.pos_frd[1], self.pos_frd[2], self.vel_frd[0], self.vel_frd[1], self.vel_frd[2], self.Q_g[0], self.Q_g[1], self.Q_g[2], self.Q_g[3], self.lat, self.lon, self.alt_amsl, self.hR, self.vel_ned[0], self.vel_ned[1], self.vel_ned[2], self.bias_acc[0], self.bias_acc[1], self.bias_acc[2], self.bias_gyr[0], self.bias_gyr[1], self.bias_gyr[2], self.cov_att[0], self.cov_att[1], self.cov_att[2], self.cov_pos[0], self.cov_pos[1], self.cov_pos[2], self.cov_vel[0], self.cov_vel[1], self.cov_vel[2], self.unhealthy, self.flag, self.reset_cnt), force_mavlink1=force_mavlink1)
  8250. # Define name on the class for backwards compatibility (it is now msgname).
  8251. # Done with setattr to hide the class variable from mypy.
  8252. setattr(MAVLink_vk_ext_vision_fusion_message, "name", mavlink_msg_deprecated_name_property())
  8253. class MAVLink_kmub_status_message(MAVLink_message):
  8254. """
  8255. EV2 FMU backup status.
  8256. """
  8257. id = MAVLINK_MSG_ID_KMUB_STATUS
  8258. msgname = "KMUB_STATUS"
  8259. fieldnames = ["timestamp", "roll", "pitch", "yaw", "vn", "ve", "vd", "ax", "ay", "az", "gx", "gy", "gz", "lat", "lon", "amsl", "ins_status", "ins_flag", "throttle", "flight_mode", "btake_status"]
  8260. ordered_fieldnames = ["timestamp", "roll", "pitch", "yaw", "vn", "ve", "vd", "ax", "ay", "az", "gx", "gy", "gz", "lat", "lon", "amsl", "ins_status", "ins_flag", "throttle", "flight_mode", "btake_status"]
  8261. fieldtypes = ["uint32_t", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "int32_t", "int32_t", "float", "int32_t", "int32_t", "uint16_t", "uint8_t", "uint8_t"]
  8262. fielddisplays_by_name: Dict[str, str] = {}
  8263. fieldenums_by_name: Dict[str, str] = {}
  8264. fieldunits_by_name: Dict[str, str] = {"timestamp": "ms", "roll": "rad", "pitch": "rad", "yaw": "rad", "vn": "m/s", "ve": "m/s", "vd": "m/s", "ax": "m/s/s", "ay": "m/s/s", "az": "m/s/s", "gx": "rad/s", "gy": "rad/s", "gz": "rad/s", "lat": "degE7", "lon": "degE7", "amsl": "m"}
  8265. native_format = bytearray(b"<IffffffffffffiifiiHBB")
  8266. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
  8267. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  8268. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  8269. crc_extra = 135
  8270. unpacker = struct.Struct("<IffffffffffffiifiiHBB")
  8271. instance_field = None
  8272. instance_offset = -1
  8273. def __init__(self, timestamp: int, roll: float, pitch: float, yaw: float, vn: float, ve: float, vd: float, ax: float, ay: float, az: float, gx: float, gy: float, gz: float, lat: int, lon: int, amsl: float, ins_status: int, ins_flag: int, throttle: int, flight_mode: int, btake_status: int):
  8274. MAVLink_message.__init__(self, MAVLink_kmub_status_message.id, MAVLink_kmub_status_message.msgname)
  8275. self._fieldnames = MAVLink_kmub_status_message.fieldnames
  8276. self._instance_field = MAVLink_kmub_status_message.instance_field
  8277. self._instance_offset = MAVLink_kmub_status_message.instance_offset
  8278. self.timestamp = timestamp
  8279. self.roll = roll
  8280. self.pitch = pitch
  8281. self.yaw = yaw
  8282. self.vn = vn
  8283. self.ve = ve
  8284. self.vd = vd
  8285. self.ax = ax
  8286. self.ay = ay
  8287. self.az = az
  8288. self.gx = gx
  8289. self.gy = gy
  8290. self.gz = gz
  8291. self.lat = lat
  8292. self.lon = lon
  8293. self.amsl = amsl
  8294. self.ins_status = ins_status
  8295. self.ins_flag = ins_flag
  8296. self.throttle = throttle
  8297. self.flight_mode = flight_mode
  8298. self.btake_status = btake_status
  8299. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8300. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.timestamp, self.roll, self.pitch, self.yaw, self.vn, self.ve, self.vd, self.ax, self.ay, self.az, self.gx, self.gy, self.gz, self.lat, self.lon, self.amsl, self.ins_status, self.ins_flag, self.throttle, self.flight_mode, self.btake_status), force_mavlink1=force_mavlink1)
  8301. # Define name on the class for backwards compatibility (it is now msgname).
  8302. # Done with setattr to hide the class variable from mypy.
  8303. setattr(MAVLink_kmub_status_message, "name", mavlink_msg_deprecated_name_property())
  8304. class MAVLink_qingxie_bms_message(MAVLink_message):
  8305. """
  8306. VKFLY transfer update terminate. Send this message to terminate a
  8307. update file transfer.
  8308. """
  8309. id = MAVLINK_MSG_ID_QINGXIE_BMS
  8310. msgname = "QINGXIE_BMS"
  8311. fieldnames = ["bat_voltage", "servo_current", "stack_voltage", "servo_voltage", "bat_refuel_current", "gas_tank_pressure", "pipe_pressure", "pcb_temp", "stack_temp", "work_status", "falt_status", "self_check", "Id", "gass_mass", "gass_percent", "runtime_remain", "fan_percent", "fan_rpm", "sys_run_state", "sys_fault_state", "sys_fault_code", "lipo_current", "total_runtime"]
  8312. ordered_fieldnames = ["bat_voltage", "servo_current", "stack_voltage", "servo_voltage", "bat_refuel_current", "gas_tank_pressure", "pipe_pressure", "pcb_temp", "stack_temp", "work_status", "falt_status", "self_check", "Id", "gass_mass", "gass_percent", "runtime_remain", "fan_percent", "fan_rpm", "sys_run_state", "sys_fault_state", "sys_fault_code", "lipo_current", "total_runtime"]
  8313. fieldtypes = ["uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint8_t", "uint8_t", "uint16_t", "uint16_t", "uint16_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint16_t", "uint16_t", "uint16_t"]
  8314. fielddisplays_by_name: Dict[str, str] = {}
  8315. fieldenums_by_name: Dict[str, str] = {}
  8316. fieldunits_by_name: Dict[str, str] = {"bat_voltage": "cV", "servo_current": "cA", "stack_voltage": "cV", "servo_voltage": "cV", "bat_refuel_current": "cA", "gass_mass": "dg", "gass_percent": "%", "lipo_current": "dA", "total_runtime": "dh"}
  8317. native_format = bytearray(b"<HHHHHHHHHHHBBHHHBBBBHHH")
  8318. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22]
  8319. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  8320. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  8321. crc_extra = 114
  8322. unpacker = struct.Struct("<HHHHHHHHHHHBBHHHBBBBHHH")
  8323. instance_field = None
  8324. instance_offset = -1
  8325. def __init__(self, bat_voltage: int, servo_current: int, stack_voltage: int, servo_voltage: int, bat_refuel_current: int, gas_tank_pressure: int, pipe_pressure: int, pcb_temp: int, stack_temp: int, work_status: int, falt_status: int, self_check: int, Id: int, gass_mass: int = 0, gass_percent: int = 0, runtime_remain: int = 0, fan_percent: int = 0, fan_rpm: int = 0, sys_run_state: int = 0, sys_fault_state: int = 0, sys_fault_code: int = 0, lipo_current: int = 0, total_runtime: int = 0):
  8326. MAVLink_message.__init__(self, MAVLink_qingxie_bms_message.id, MAVLink_qingxie_bms_message.msgname)
  8327. self._fieldnames = MAVLink_qingxie_bms_message.fieldnames
  8328. self._instance_field = MAVLink_qingxie_bms_message.instance_field
  8329. self._instance_offset = MAVLink_qingxie_bms_message.instance_offset
  8330. self.bat_voltage = bat_voltage
  8331. self.servo_current = servo_current
  8332. self.stack_voltage = stack_voltage
  8333. self.servo_voltage = servo_voltage
  8334. self.bat_refuel_current = bat_refuel_current
  8335. self.gas_tank_pressure = gas_tank_pressure
  8336. self.pipe_pressure = pipe_pressure
  8337. self.pcb_temp = pcb_temp
  8338. self.stack_temp = stack_temp
  8339. self.work_status = work_status
  8340. self.falt_status = falt_status
  8341. self.self_check = self_check
  8342. self.Id = Id
  8343. self.gass_mass = gass_mass
  8344. self.gass_percent = gass_percent
  8345. self.runtime_remain = runtime_remain
  8346. self.fan_percent = fan_percent
  8347. self.fan_rpm = fan_rpm
  8348. self.sys_run_state = sys_run_state
  8349. self.sys_fault_state = sys_fault_state
  8350. self.sys_fault_code = sys_fault_code
  8351. self.lipo_current = lipo_current
  8352. self.total_runtime = total_runtime
  8353. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8354. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.bat_voltage, self.servo_current, self.stack_voltage, self.servo_voltage, self.bat_refuel_current, self.gas_tank_pressure, self.pipe_pressure, self.pcb_temp, self.stack_temp, self.work_status, self.falt_status, self.self_check, self.Id, self.gass_mass, self.gass_percent, self.runtime_remain, self.fan_percent, self.fan_rpm, self.sys_run_state, self.sys_fault_state, self.sys_fault_code, self.lipo_current, self.total_runtime), force_mavlink1=force_mavlink1)
  8355. # Define name on the class for backwards compatibility (it is now msgname).
  8356. # Done with setattr to hide the class variable from mypy.
  8357. setattr(MAVLink_qingxie_bms_message, "name", mavlink_msg_deprecated_name_property())
  8358. class MAVLink_sys_status_message(MAVLink_message):
  8359. """
  8360. The general system state. If the system is following the MAVLink
  8361. standard, the system state is mainly defined by three orthogonal
  8362. states/modes: The system mode, which is either LOCKED (motors shut
  8363. down and locked), MANUAL (system under RC control), GUIDED (system
  8364. with autonomous position control, position setpoint controlled
  8365. manually) or AUTO (system guided by path/waypoint planner). The
  8366. NAV_MODE defined the current flight state: LIFTOFF (often an open-
  8367. loop maneuver), LANDING, WAYPOINTS or VECTOR. This represents the
  8368. internal navigation state machine. The system status shows whether
  8369. the system is currently active or not and if an emergency
  8370. occurred. During the CRITICAL and EMERGENCY states the MAV is
  8371. still considered to be active, but should start emergency
  8372. procedures autonomously. After a failure occurred it should first
  8373. move from active to critical to allow manual intervention and then
  8374. move to emergency after a certain timeout.
  8375. """
  8376. id = MAVLINK_MSG_ID_SYS_STATUS
  8377. msgname = "SYS_STATUS"
  8378. fieldnames = ["onboard_control_sensors_present", "onboard_control_sensors_enabled", "onboard_control_sensors_health", "load", "voltage_battery", "current_battery", "battery_remaining", "drop_rate_comm", "errors_comm", "errors_count1", "errors_count2", "errors_count3", "errors_count4", "onboard_control_sensors_present_extended", "onboard_control_sensors_enabled_extended", "onboard_control_sensors_health_extended"]
  8379. ordered_fieldnames = ["onboard_control_sensors_present", "onboard_control_sensors_enabled", "onboard_control_sensors_health", "load", "voltage_battery", "current_battery", "drop_rate_comm", "errors_comm", "errors_count1", "errors_count2", "errors_count3", "errors_count4", "battery_remaining", "onboard_control_sensors_present_extended", "onboard_control_sensors_enabled_extended", "onboard_control_sensors_health_extended"]
  8380. fieldtypes = ["uint32_t", "uint32_t", "uint32_t", "uint16_t", "uint16_t", "int16_t", "int8_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint32_t", "uint32_t", "uint32_t"]
  8381. fielddisplays_by_name: Dict[str, str] = {"onboard_control_sensors_present": "bitmask", "onboard_control_sensors_enabled": "bitmask", "onboard_control_sensors_health": "bitmask", "onboard_control_sensors_present_extended": "bitmask", "onboard_control_sensors_enabled_extended": "bitmask", "onboard_control_sensors_health_extended": "bitmask"}
  8382. fieldenums_by_name: Dict[str, str] = {"onboard_control_sensors_present": "MAV_SYS_STATUS_SENSOR", "onboard_control_sensors_enabled": "MAV_SYS_STATUS_SENSOR", "onboard_control_sensors_health": "MAV_SYS_STATUS_SENSOR", "onboard_control_sensors_present_extended": "MAV_SYS_STATUS_SENSOR_EXTENDED", "onboard_control_sensors_enabled_extended": "MAV_SYS_STATUS_SENSOR_EXTENDED", "onboard_control_sensors_health_extended": "MAV_SYS_STATUS_SENSOR_EXTENDED"}
  8383. fieldunits_by_name: Dict[str, str] = {"load": "d%", "voltage_battery": "mV", "current_battery": "cA", "battery_remaining": "%", "drop_rate_comm": "c%"}
  8384. native_format = bytearray(b"<IIIHHhHHHHHHbIII")
  8385. orders = [0, 1, 2, 3, 4, 5, 12, 6, 7, 8, 9, 10, 11, 13, 14, 15]
  8386. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  8387. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  8388. crc_extra = 124
  8389. unpacker = struct.Struct("<IIIHHhHHHHHHbIII")
  8390. instance_field = None
  8391. instance_offset = -1
  8392. def __init__(self, onboard_control_sensors_present: int, onboard_control_sensors_enabled: int, onboard_control_sensors_health: int, load: int, voltage_battery: int, current_battery: int, battery_remaining: int, drop_rate_comm: int, errors_comm: int, errors_count1: int, errors_count2: int, errors_count3: int, errors_count4: int, onboard_control_sensors_present_extended: int = 0, onboard_control_sensors_enabled_extended: int = 0, onboard_control_sensors_health_extended: int = 0):
  8393. MAVLink_message.__init__(self, MAVLink_sys_status_message.id, MAVLink_sys_status_message.msgname)
  8394. self._fieldnames = MAVLink_sys_status_message.fieldnames
  8395. self._instance_field = MAVLink_sys_status_message.instance_field
  8396. self._instance_offset = MAVLink_sys_status_message.instance_offset
  8397. self.onboard_control_sensors_present = onboard_control_sensors_present
  8398. self.onboard_control_sensors_enabled = onboard_control_sensors_enabled
  8399. self.onboard_control_sensors_health = onboard_control_sensors_health
  8400. self.load = load
  8401. self.voltage_battery = voltage_battery
  8402. self.current_battery = current_battery
  8403. self.battery_remaining = battery_remaining
  8404. self.drop_rate_comm = drop_rate_comm
  8405. self.errors_comm = errors_comm
  8406. self.errors_count1 = errors_count1
  8407. self.errors_count2 = errors_count2
  8408. self.errors_count3 = errors_count3
  8409. self.errors_count4 = errors_count4
  8410. self.onboard_control_sensors_present_extended = onboard_control_sensors_present_extended
  8411. self.onboard_control_sensors_enabled_extended = onboard_control_sensors_enabled_extended
  8412. self.onboard_control_sensors_health_extended = onboard_control_sensors_health_extended
  8413. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8414. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.onboard_control_sensors_present, self.onboard_control_sensors_enabled, self.onboard_control_sensors_health, self.load, self.voltage_battery, self.current_battery, self.drop_rate_comm, self.errors_comm, self.errors_count1, self.errors_count2, self.errors_count3, self.errors_count4, self.battery_remaining, self.onboard_control_sensors_present_extended, self.onboard_control_sensors_enabled_extended, self.onboard_control_sensors_health_extended), force_mavlink1=force_mavlink1)
  8415. # Define name on the class for backwards compatibility (it is now msgname).
  8416. # Done with setattr to hide the class variable from mypy.
  8417. setattr(MAVLink_sys_status_message, "name", mavlink_msg_deprecated_name_property())
  8418. class MAVLink_system_time_message(MAVLink_message):
  8419. """
  8420. The system time is the time of the master clock, typically the
  8421. computer clock of the main onboard computer.
  8422. """
  8423. id = MAVLINK_MSG_ID_SYSTEM_TIME
  8424. msgname = "SYSTEM_TIME"
  8425. fieldnames = ["time_unix_usec", "time_boot_ms"]
  8426. ordered_fieldnames = ["time_unix_usec", "time_boot_ms"]
  8427. fieldtypes = ["uint64_t", "uint32_t"]
  8428. fielddisplays_by_name: Dict[str, str] = {}
  8429. fieldenums_by_name: Dict[str, str] = {}
  8430. fieldunits_by_name: Dict[str, str] = {"time_unix_usec": "us", "time_boot_ms": "ms"}
  8431. native_format = bytearray(b"<QI")
  8432. orders = [0, 1]
  8433. lengths = [1, 1]
  8434. array_lengths = [0, 0]
  8435. crc_extra = 137
  8436. unpacker = struct.Struct("<QI")
  8437. instance_field = None
  8438. instance_offset = -1
  8439. def __init__(self, time_unix_usec: int, time_boot_ms: int):
  8440. MAVLink_message.__init__(self, MAVLink_system_time_message.id, MAVLink_system_time_message.msgname)
  8441. self._fieldnames = MAVLink_system_time_message.fieldnames
  8442. self._instance_field = MAVLink_system_time_message.instance_field
  8443. self._instance_offset = MAVLink_system_time_message.instance_offset
  8444. self.time_unix_usec = time_unix_usec
  8445. self.time_boot_ms = time_boot_ms
  8446. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8447. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_unix_usec, self.time_boot_ms), force_mavlink1=force_mavlink1)
  8448. # Define name on the class for backwards compatibility (it is now msgname).
  8449. # Done with setattr to hide the class variable from mypy.
  8450. setattr(MAVLink_system_time_message, "name", mavlink_msg_deprecated_name_property())
  8451. class MAVLink_ping_message(MAVLink_message):
  8452. """
  8453. A ping message either requesting or responding to a ping. This
  8454. allows to measure the system latencies, including serial port,
  8455. radio modem and UDP connections. The ping microservice is
  8456. documented at https://mavlink.io/en/services/ping.html
  8457. """
  8458. id = MAVLINK_MSG_ID_PING
  8459. msgname = "PING"
  8460. fieldnames = ["time_usec", "seq", "target_system", "target_component"]
  8461. ordered_fieldnames = ["time_usec", "seq", "target_system", "target_component"]
  8462. fieldtypes = ["uint64_t", "uint32_t", "uint8_t", "uint8_t"]
  8463. fielddisplays_by_name: Dict[str, str] = {}
  8464. fieldenums_by_name: Dict[str, str] = {}
  8465. fieldunits_by_name: Dict[str, str] = {"time_usec": "us"}
  8466. native_format = bytearray(b"<QIBB")
  8467. orders = [0, 1, 2, 3]
  8468. lengths = [1, 1, 1, 1]
  8469. array_lengths = [0, 0, 0, 0]
  8470. crc_extra = 237
  8471. unpacker = struct.Struct("<QIBB")
  8472. instance_field = None
  8473. instance_offset = -1
  8474. def __init__(self, time_usec: int, seq: int, target_system: int, target_component: int):
  8475. MAVLink_message.__init__(self, MAVLink_ping_message.id, MAVLink_ping_message.msgname)
  8476. self._fieldnames = MAVLink_ping_message.fieldnames
  8477. self._instance_field = MAVLink_ping_message.instance_field
  8478. self._instance_offset = MAVLink_ping_message.instance_offset
  8479. self.time_usec = time_usec
  8480. self.seq = seq
  8481. self.target_system = target_system
  8482. self.target_component = target_component
  8483. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8484. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.seq, self.target_system, self.target_component), force_mavlink1=force_mavlink1)
  8485. # Define name on the class for backwards compatibility (it is now msgname).
  8486. # Done with setattr to hide the class variable from mypy.
  8487. setattr(MAVLink_ping_message, "name", mavlink_msg_deprecated_name_property())
  8488. class MAVLink_change_operator_control_message(MAVLink_message):
  8489. """
  8490. Request to control this MAV
  8491. """
  8492. id = MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL
  8493. msgname = "CHANGE_OPERATOR_CONTROL"
  8494. fieldnames = ["target_system", "control_request", "version", "passkey"]
  8495. ordered_fieldnames = ["target_system", "control_request", "version", "passkey"]
  8496. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "char"]
  8497. fielddisplays_by_name: Dict[str, str] = {}
  8498. fieldenums_by_name: Dict[str, str] = {}
  8499. fieldunits_by_name: Dict[str, str] = {"version": "rad"}
  8500. native_format = bytearray(b"<BBBc")
  8501. orders = [0, 1, 2, 3]
  8502. lengths = [1, 1, 1, 1]
  8503. array_lengths = [0, 0, 0, 25]
  8504. crc_extra = 217
  8505. unpacker = struct.Struct("<BBB25s")
  8506. instance_field = None
  8507. instance_offset = -1
  8508. def __init__(self, target_system: int, control_request: int, version: int, passkey: bytes):
  8509. MAVLink_message.__init__(self, MAVLink_change_operator_control_message.id, MAVLink_change_operator_control_message.msgname)
  8510. self._fieldnames = MAVLink_change_operator_control_message.fieldnames
  8511. self._instance_field = MAVLink_change_operator_control_message.instance_field
  8512. self._instance_offset = MAVLink_change_operator_control_message.instance_offset
  8513. self.target_system = target_system
  8514. self.control_request = control_request
  8515. self.version = version
  8516. self._passkey_raw = passkey
  8517. self.passkey = passkey.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  8518. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8519. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.target_system, self.control_request, self.version, self._passkey_raw), force_mavlink1=force_mavlink1)
  8520. # Define name on the class for backwards compatibility (it is now msgname).
  8521. # Done with setattr to hide the class variable from mypy.
  8522. setattr(MAVLink_change_operator_control_message, "name", mavlink_msg_deprecated_name_property())
  8523. class MAVLink_change_operator_control_ack_message(MAVLink_message):
  8524. """
  8525. Accept / deny control of this MAV
  8526. """
  8527. id = MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK
  8528. msgname = "CHANGE_OPERATOR_CONTROL_ACK"
  8529. fieldnames = ["gcs_system_id", "control_request", "ack"]
  8530. ordered_fieldnames = ["gcs_system_id", "control_request", "ack"]
  8531. fieldtypes = ["uint8_t", "uint8_t", "uint8_t"]
  8532. fielddisplays_by_name: Dict[str, str] = {}
  8533. fieldenums_by_name: Dict[str, str] = {}
  8534. fieldunits_by_name: Dict[str, str] = {}
  8535. native_format = bytearray(b"<BBB")
  8536. orders = [0, 1, 2]
  8537. lengths = [1, 1, 1]
  8538. array_lengths = [0, 0, 0]
  8539. crc_extra = 104
  8540. unpacker = struct.Struct("<BBB")
  8541. instance_field = None
  8542. instance_offset = -1
  8543. def __init__(self, gcs_system_id: int, control_request: int, ack: int):
  8544. MAVLink_message.__init__(self, MAVLink_change_operator_control_ack_message.id, MAVLink_change_operator_control_ack_message.msgname)
  8545. self._fieldnames = MAVLink_change_operator_control_ack_message.fieldnames
  8546. self._instance_field = MAVLink_change_operator_control_ack_message.instance_field
  8547. self._instance_offset = MAVLink_change_operator_control_ack_message.instance_offset
  8548. self.gcs_system_id = gcs_system_id
  8549. self.control_request = control_request
  8550. self.ack = ack
  8551. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8552. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.gcs_system_id, self.control_request, self.ack), force_mavlink1=force_mavlink1)
  8553. # Define name on the class for backwards compatibility (it is now msgname).
  8554. # Done with setattr to hide the class variable from mypy.
  8555. setattr(MAVLink_change_operator_control_ack_message, "name", mavlink_msg_deprecated_name_property())
  8556. class MAVLink_auth_key_message(MAVLink_message):
  8557. """
  8558. Emit an encrypted signature / key identifying this system. PLEASE
  8559. NOTE: This protocol has been kept simple, so transmitting the key
  8560. requires an encrypted channel for true safety.
  8561. """
  8562. id = MAVLINK_MSG_ID_AUTH_KEY
  8563. msgname = "AUTH_KEY"
  8564. fieldnames = ["key"]
  8565. ordered_fieldnames = ["key"]
  8566. fieldtypes = ["char"]
  8567. fielddisplays_by_name: Dict[str, str] = {}
  8568. fieldenums_by_name: Dict[str, str] = {}
  8569. fieldunits_by_name: Dict[str, str] = {}
  8570. native_format = bytearray(b"<c")
  8571. orders = [0]
  8572. lengths = [1]
  8573. array_lengths = [32]
  8574. crc_extra = 119
  8575. unpacker = struct.Struct("<32s")
  8576. instance_field = None
  8577. instance_offset = -1
  8578. def __init__(self, key: bytes):
  8579. MAVLink_message.__init__(self, MAVLink_auth_key_message.id, MAVLink_auth_key_message.msgname)
  8580. self._fieldnames = MAVLink_auth_key_message.fieldnames
  8581. self._instance_field = MAVLink_auth_key_message.instance_field
  8582. self._instance_offset = MAVLink_auth_key_message.instance_offset
  8583. self._key_raw = key
  8584. self.key = key.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  8585. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8586. return self._pack(mav, self.crc_extra, self.unpacker.pack(self._key_raw), force_mavlink1=force_mavlink1)
  8587. # Define name on the class for backwards compatibility (it is now msgname).
  8588. # Done with setattr to hide the class variable from mypy.
  8589. setattr(MAVLink_auth_key_message, "name", mavlink_msg_deprecated_name_property())
  8590. class MAVLink_link_node_status_message(MAVLink_message):
  8591. """
  8592. Status generated in each node in the communication chain and
  8593. injected into MAVLink stream.
  8594. """
  8595. id = MAVLINK_MSG_ID_LINK_NODE_STATUS
  8596. msgname = "LINK_NODE_STATUS"
  8597. fieldnames = ["timestamp", "tx_buf", "rx_buf", "tx_rate", "rx_rate", "rx_parse_err", "tx_overflows", "rx_overflows", "messages_sent", "messages_received", "messages_lost"]
  8598. ordered_fieldnames = ["timestamp", "tx_rate", "rx_rate", "messages_sent", "messages_received", "messages_lost", "rx_parse_err", "tx_overflows", "rx_overflows", "tx_buf", "rx_buf"]
  8599. fieldtypes = ["uint64_t", "uint8_t", "uint8_t", "uint32_t", "uint32_t", "uint16_t", "uint16_t", "uint16_t", "uint32_t", "uint32_t", "uint32_t"]
  8600. fielddisplays_by_name: Dict[str, str] = {}
  8601. fieldenums_by_name: Dict[str, str] = {}
  8602. fieldunits_by_name: Dict[str, str] = {"timestamp": "ms", "tx_buf": "%", "rx_buf": "%", "tx_rate": "bytes/s", "rx_rate": "bytes/s", "rx_parse_err": "bytes", "tx_overflows": "bytes", "rx_overflows": "bytes"}
  8603. native_format = bytearray(b"<QIIIIIHHHBB")
  8604. orders = [0, 9, 10, 1, 2, 6, 7, 8, 3, 4, 5]
  8605. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  8606. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  8607. crc_extra = 117
  8608. unpacker = struct.Struct("<QIIIIIHHHBB")
  8609. instance_field = None
  8610. instance_offset = -1
  8611. def __init__(self, timestamp: int, tx_buf: int, rx_buf: int, tx_rate: int, rx_rate: int, rx_parse_err: int, tx_overflows: int, rx_overflows: int, messages_sent: int, messages_received: int, messages_lost: int):
  8612. MAVLink_message.__init__(self, MAVLink_link_node_status_message.id, MAVLink_link_node_status_message.msgname)
  8613. self._fieldnames = MAVLink_link_node_status_message.fieldnames
  8614. self._instance_field = MAVLink_link_node_status_message.instance_field
  8615. self._instance_offset = MAVLink_link_node_status_message.instance_offset
  8616. self.timestamp = timestamp
  8617. self.tx_buf = tx_buf
  8618. self.rx_buf = rx_buf
  8619. self.tx_rate = tx_rate
  8620. self.rx_rate = rx_rate
  8621. self.rx_parse_err = rx_parse_err
  8622. self.tx_overflows = tx_overflows
  8623. self.rx_overflows = rx_overflows
  8624. self.messages_sent = messages_sent
  8625. self.messages_received = messages_received
  8626. self.messages_lost = messages_lost
  8627. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8628. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.timestamp, self.tx_rate, self.rx_rate, self.messages_sent, self.messages_received, self.messages_lost, self.rx_parse_err, self.tx_overflows, self.rx_overflows, self.tx_buf, self.rx_buf), force_mavlink1=force_mavlink1)
  8629. # Define name on the class for backwards compatibility (it is now msgname).
  8630. # Done with setattr to hide the class variable from mypy.
  8631. setattr(MAVLink_link_node_status_message, "name", mavlink_msg_deprecated_name_property())
  8632. class MAVLink_set_mode_message(MAVLink_message):
  8633. """
  8634. Set the system mode, as defined by enum MAV_MODE. There is no
  8635. target component id as the mode is by definition for the overall
  8636. aircraft, not only for one component.
  8637. """
  8638. id = MAVLINK_MSG_ID_SET_MODE
  8639. msgname = "SET_MODE"
  8640. fieldnames = ["target_system", "base_mode", "custom_mode"]
  8641. ordered_fieldnames = ["custom_mode", "target_system", "base_mode"]
  8642. fieldtypes = ["uint8_t", "uint8_t", "uint32_t"]
  8643. fielddisplays_by_name: Dict[str, str] = {}
  8644. fieldenums_by_name: Dict[str, str] = {"base_mode": "MAV_MODE"}
  8645. fieldunits_by_name: Dict[str, str] = {}
  8646. native_format = bytearray(b"<IBB")
  8647. orders = [1, 2, 0]
  8648. lengths = [1, 1, 1]
  8649. array_lengths = [0, 0, 0]
  8650. crc_extra = 89
  8651. unpacker = struct.Struct("<IBB")
  8652. instance_field = None
  8653. instance_offset = -1
  8654. def __init__(self, target_system: int, base_mode: int, custom_mode: int):
  8655. MAVLink_message.__init__(self, MAVLink_set_mode_message.id, MAVLink_set_mode_message.msgname)
  8656. self._fieldnames = MAVLink_set_mode_message.fieldnames
  8657. self._instance_field = MAVLink_set_mode_message.instance_field
  8658. self._instance_offset = MAVLink_set_mode_message.instance_offset
  8659. self.target_system = target_system
  8660. self.base_mode = base_mode
  8661. self.custom_mode = custom_mode
  8662. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8663. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.custom_mode, self.target_system, self.base_mode), force_mavlink1=force_mavlink1)
  8664. # Define name on the class for backwards compatibility (it is now msgname).
  8665. # Done with setattr to hide the class variable from mypy.
  8666. setattr(MAVLink_set_mode_message, "name", mavlink_msg_deprecated_name_property())
  8667. class MAVLink_param_request_read_message(MAVLink_message):
  8668. """
  8669. Request to read the onboard parameter with the param_id string id.
  8670. Onboard parameters are stored as key[const char*] -> value[float].
  8671. This allows to send a parameter to any other component (such as
  8672. the GCS) without the need of previous knowledge of possible
  8673. parameter names. Thus the same GCS can store different parameters
  8674. for different autopilots. See also
  8675. https://mavlink.io/en/services/parameter.html for a full
  8676. documentation of QGroundControl and IMU code.
  8677. """
  8678. id = MAVLINK_MSG_ID_PARAM_REQUEST_READ
  8679. msgname = "PARAM_REQUEST_READ"
  8680. fieldnames = ["target_system", "target_component", "param_id", "param_index"]
  8681. ordered_fieldnames = ["param_index", "target_system", "target_component", "param_id"]
  8682. fieldtypes = ["uint8_t", "uint8_t", "char", "int16_t"]
  8683. fielddisplays_by_name: Dict[str, str] = {}
  8684. fieldenums_by_name: Dict[str, str] = {}
  8685. fieldunits_by_name: Dict[str, str] = {}
  8686. native_format = bytearray(b"<hBBc")
  8687. orders = [1, 2, 3, 0]
  8688. lengths = [1, 1, 1, 1]
  8689. array_lengths = [0, 0, 0, 16]
  8690. crc_extra = 214
  8691. unpacker = struct.Struct("<hBB16s")
  8692. instance_field = None
  8693. instance_offset = -1
  8694. def __init__(self, target_system: int, target_component: int, param_id: bytes, param_index: int):
  8695. MAVLink_message.__init__(self, MAVLink_param_request_read_message.id, MAVLink_param_request_read_message.msgname)
  8696. self._fieldnames = MAVLink_param_request_read_message.fieldnames
  8697. self._instance_field = MAVLink_param_request_read_message.instance_field
  8698. self._instance_offset = MAVLink_param_request_read_message.instance_offset
  8699. self.target_system = target_system
  8700. self.target_component = target_component
  8701. self._param_id_raw = param_id
  8702. self.param_id = param_id.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  8703. self.param_index = param_index
  8704. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8705. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.param_index, self.target_system, self.target_component, self._param_id_raw), force_mavlink1=force_mavlink1)
  8706. # Define name on the class for backwards compatibility (it is now msgname).
  8707. # Done with setattr to hide the class variable from mypy.
  8708. setattr(MAVLink_param_request_read_message, "name", mavlink_msg_deprecated_name_property())
  8709. class MAVLink_param_request_list_message(MAVLink_message):
  8710. """
  8711. Request all parameters of this component. After this request, all
  8712. parameters are emitted. The parameter microservice is documented
  8713. at https://mavlink.io/en/services/parameter.html
  8714. """
  8715. id = MAVLINK_MSG_ID_PARAM_REQUEST_LIST
  8716. msgname = "PARAM_REQUEST_LIST"
  8717. fieldnames = ["target_system", "target_component"]
  8718. ordered_fieldnames = ["target_system", "target_component"]
  8719. fieldtypes = ["uint8_t", "uint8_t"]
  8720. fielddisplays_by_name: Dict[str, str] = {}
  8721. fieldenums_by_name: Dict[str, str] = {}
  8722. fieldunits_by_name: Dict[str, str] = {}
  8723. native_format = bytearray(b"<BB")
  8724. orders = [0, 1]
  8725. lengths = [1, 1]
  8726. array_lengths = [0, 0]
  8727. crc_extra = 159
  8728. unpacker = struct.Struct("<BB")
  8729. instance_field = None
  8730. instance_offset = -1
  8731. def __init__(self, target_system: int, target_component: int):
  8732. MAVLink_message.__init__(self, MAVLink_param_request_list_message.id, MAVLink_param_request_list_message.msgname)
  8733. self._fieldnames = MAVLink_param_request_list_message.fieldnames
  8734. self._instance_field = MAVLink_param_request_list_message.instance_field
  8735. self._instance_offset = MAVLink_param_request_list_message.instance_offset
  8736. self.target_system = target_system
  8737. self.target_component = target_component
  8738. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8739. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.target_system, self.target_component), force_mavlink1=force_mavlink1)
  8740. # Define name on the class for backwards compatibility (it is now msgname).
  8741. # Done with setattr to hide the class variable from mypy.
  8742. setattr(MAVLink_param_request_list_message, "name", mavlink_msg_deprecated_name_property())
  8743. class MAVLink_param_value_message(MAVLink_message):
  8744. """
  8745. Emit the value of a onboard parameter. The inclusion of
  8746. param_count and param_index in the message allows the recipient to
  8747. keep track of received parameters and allows him to re-request
  8748. missing parameters after a loss or timeout. The parameter
  8749. microservice is documented at
  8750. https://mavlink.io/en/services/parameter.html
  8751. """
  8752. id = MAVLINK_MSG_ID_PARAM_VALUE
  8753. msgname = "PARAM_VALUE"
  8754. fieldnames = ["param_id", "param_value", "param_type", "param_count", "param_index"]
  8755. ordered_fieldnames = ["param_value", "param_count", "param_index", "param_id", "param_type"]
  8756. fieldtypes = ["char", "float", "uint8_t", "uint16_t", "uint16_t"]
  8757. fielddisplays_by_name: Dict[str, str] = {}
  8758. fieldenums_by_name: Dict[str, str] = {"param_type": "MAV_PARAM_TYPE"}
  8759. fieldunits_by_name: Dict[str, str] = {}
  8760. native_format = bytearray(b"<fHHcB")
  8761. orders = [3, 0, 4, 1, 2]
  8762. lengths = [1, 1, 1, 1, 1]
  8763. array_lengths = [0, 0, 0, 16, 0]
  8764. crc_extra = 220
  8765. unpacker = struct.Struct("<fHH16sB")
  8766. instance_field = None
  8767. instance_offset = -1
  8768. def __init__(self, param_id: bytes, param_value: float, param_type: int, param_count: int, param_index: int):
  8769. MAVLink_message.__init__(self, MAVLink_param_value_message.id, MAVLink_param_value_message.msgname)
  8770. self._fieldnames = MAVLink_param_value_message.fieldnames
  8771. self._instance_field = MAVLink_param_value_message.instance_field
  8772. self._instance_offset = MAVLink_param_value_message.instance_offset
  8773. self._param_id_raw = param_id
  8774. self.param_id = param_id.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  8775. self.param_value = param_value
  8776. self.param_type = param_type
  8777. self.param_count = param_count
  8778. self.param_index = param_index
  8779. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8780. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.param_value, self.param_count, self.param_index, self._param_id_raw, self.param_type), force_mavlink1=force_mavlink1)
  8781. # Define name on the class for backwards compatibility (it is now msgname).
  8782. # Done with setattr to hide the class variable from mypy.
  8783. setattr(MAVLink_param_value_message, "name", mavlink_msg_deprecated_name_property())
  8784. class MAVLink_param_set_message(MAVLink_message):
  8785. """
  8786. Set a parameter value (write new value to permanent storage).
  8787. The receiving component should acknowledge the new parameter value
  8788. by broadcasting a PARAM_VALUE message (broadcasting ensures that
  8789. multiple GCS all have an up-to-date list of all parameters). If
  8790. the sending GCS did not receive a PARAM_VALUE within its timeout
  8791. time, it should re-send the PARAM_SET message. The parameter
  8792. microservice is documented at
  8793. https://mavlink.io/en/services/parameter.html. PARAM_SET
  8794. may also be called within the context of a transaction (started
  8795. with MAV_CMD_PARAM_TRANSACTION). Within a transaction the
  8796. receiving component should respond with PARAM_ACK_TRANSACTION to
  8797. the setter component (instead of broadcasting PARAM_VALUE), and
  8798. PARAM_SET should be re-sent if this is ACK not received.
  8799. """
  8800. id = MAVLINK_MSG_ID_PARAM_SET
  8801. msgname = "PARAM_SET"
  8802. fieldnames = ["target_system", "target_component", "param_id", "param_value", "param_type"]
  8803. ordered_fieldnames = ["param_value", "target_system", "target_component", "param_id", "param_type"]
  8804. fieldtypes = ["uint8_t", "uint8_t", "char", "float", "uint8_t"]
  8805. fielddisplays_by_name: Dict[str, str] = {}
  8806. fieldenums_by_name: Dict[str, str] = {"param_type": "MAV_PARAM_TYPE"}
  8807. fieldunits_by_name: Dict[str, str] = {}
  8808. native_format = bytearray(b"<fBBcB")
  8809. orders = [1, 2, 3, 0, 4]
  8810. lengths = [1, 1, 1, 1, 1]
  8811. array_lengths = [0, 0, 0, 16, 0]
  8812. crc_extra = 168
  8813. unpacker = struct.Struct("<fBB16sB")
  8814. instance_field = None
  8815. instance_offset = -1
  8816. def __init__(self, target_system: int, target_component: int, param_id: bytes, param_value: float, param_type: int):
  8817. MAVLink_message.__init__(self, MAVLink_param_set_message.id, MAVLink_param_set_message.msgname)
  8818. self._fieldnames = MAVLink_param_set_message.fieldnames
  8819. self._instance_field = MAVLink_param_set_message.instance_field
  8820. self._instance_offset = MAVLink_param_set_message.instance_offset
  8821. self.target_system = target_system
  8822. self.target_component = target_component
  8823. self._param_id_raw = param_id
  8824. self.param_id = param_id.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  8825. self.param_value = param_value
  8826. self.param_type = param_type
  8827. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8828. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.param_value, self.target_system, self.target_component, self._param_id_raw, self.param_type), force_mavlink1=force_mavlink1)
  8829. # Define name on the class for backwards compatibility (it is now msgname).
  8830. # Done with setattr to hide the class variable from mypy.
  8831. setattr(MAVLink_param_set_message, "name", mavlink_msg_deprecated_name_property())
  8832. class MAVLink_gps_raw_int_message(MAVLink_message):
  8833. """
  8834. The global position, as returned by the Global Positioning System
  8835. (GPS). This is NOT the global position estimate of
  8836. the system, but rather a RAW sensor value. See message
  8837. GLOBAL_POSITION_INT for the global position estimate.
  8838. """
  8839. id = MAVLINK_MSG_ID_GPS_RAW_INT
  8840. msgname = "GPS_RAW_INT"
  8841. fieldnames = ["time_usec", "fix_type", "lat", "lon", "alt", "eph", "epv", "vel", "cog", "satellites_visible", "alt_ellipsoid", "h_acc", "v_acc", "vel_acc", "hdg_acc", "yaw"]
  8842. ordered_fieldnames = ["time_usec", "lat", "lon", "alt", "eph", "epv", "vel", "cog", "fix_type", "satellites_visible", "alt_ellipsoid", "h_acc", "v_acc", "vel_acc", "hdg_acc", "yaw"]
  8843. fieldtypes = ["uint64_t", "uint8_t", "int32_t", "int32_t", "int32_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint8_t", "int32_t", "uint32_t", "uint32_t", "uint32_t", "uint32_t", "uint16_t"]
  8844. fielddisplays_by_name: Dict[str, str] = {}
  8845. fieldenums_by_name: Dict[str, str] = {"fix_type": "GPS_FIX_TYPE"}
  8846. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "lat": "degE7", "lon": "degE7", "alt": "mm", "vel": "cm/s", "cog": "cdeg", "alt_ellipsoid": "mm", "h_acc": "mm", "v_acc": "mm", "vel_acc": "mm", "hdg_acc": "degE5", "yaw": "cdeg"}
  8847. native_format = bytearray(b"<QiiiHHHHBBiIIIIH")
  8848. orders = [0, 8, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15]
  8849. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  8850. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  8851. crc_extra = 24
  8852. unpacker = struct.Struct("<QiiiHHHHBBiIIIIH")
  8853. instance_field = None
  8854. instance_offset = -1
  8855. def __init__(self, time_usec: int, fix_type: int, lat: int, lon: int, alt: int, eph: int, epv: int, vel: int, cog: int, satellites_visible: int, alt_ellipsoid: int = 0, h_acc: int = 0, v_acc: int = 0, vel_acc: int = 0, hdg_acc: int = 0, yaw: int = 0):
  8856. MAVLink_message.__init__(self, MAVLink_gps_raw_int_message.id, MAVLink_gps_raw_int_message.msgname)
  8857. self._fieldnames = MAVLink_gps_raw_int_message.fieldnames
  8858. self._instance_field = MAVLink_gps_raw_int_message.instance_field
  8859. self._instance_offset = MAVLink_gps_raw_int_message.instance_offset
  8860. self.time_usec = time_usec
  8861. self.fix_type = fix_type
  8862. self.lat = lat
  8863. self.lon = lon
  8864. self.alt = alt
  8865. self.eph = eph
  8866. self.epv = epv
  8867. self.vel = vel
  8868. self.cog = cog
  8869. self.satellites_visible = satellites_visible
  8870. self.alt_ellipsoid = alt_ellipsoid
  8871. self.h_acc = h_acc
  8872. self.v_acc = v_acc
  8873. self.vel_acc = vel_acc
  8874. self.hdg_acc = hdg_acc
  8875. self.yaw = yaw
  8876. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8877. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.lat, self.lon, self.alt, self.eph, self.epv, self.vel, self.cog, self.fix_type, self.satellites_visible, self.alt_ellipsoid, self.h_acc, self.v_acc, self.vel_acc, self.hdg_acc, self.yaw), force_mavlink1=force_mavlink1)
  8878. # Define name on the class for backwards compatibility (it is now msgname).
  8879. # Done with setattr to hide the class variable from mypy.
  8880. setattr(MAVLink_gps_raw_int_message, "name", mavlink_msg_deprecated_name_property())
  8881. class MAVLink_gps_status_message(MAVLink_message):
  8882. """
  8883. The positioning status, as reported by GPS. This message is
  8884. intended to display status information about each satellite
  8885. visible to the receiver. See message GLOBAL_POSITION_INT for the
  8886. global position estimate. This message can contain information for
  8887. up to 20 satellites.
  8888. """
  8889. id = MAVLINK_MSG_ID_GPS_STATUS
  8890. msgname = "GPS_STATUS"
  8891. fieldnames = ["satellites_visible", "satellite_prn", "satellite_used", "satellite_elevation", "satellite_azimuth", "satellite_snr"]
  8892. ordered_fieldnames = ["satellites_visible", "satellite_prn", "satellite_used", "satellite_elevation", "satellite_azimuth", "satellite_snr"]
  8893. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t"]
  8894. fielddisplays_by_name: Dict[str, str] = {}
  8895. fieldenums_by_name: Dict[str, str] = {}
  8896. fieldunits_by_name: Dict[str, str] = {"satellite_elevation": "deg", "satellite_azimuth": "deg", "satellite_snr": "dB"}
  8897. native_format = bytearray(b"<BBBBBB")
  8898. orders = [0, 1, 2, 3, 4, 5]
  8899. lengths = [1, 20, 20, 20, 20, 20]
  8900. array_lengths = [0, 20, 20, 20, 20, 20]
  8901. crc_extra = 23
  8902. unpacker = struct.Struct("<B20B20B20B20B20B")
  8903. instance_field = None
  8904. instance_offset = -1
  8905. def __init__(self, satellites_visible: int, satellite_prn: Sequence[int], satellite_used: Sequence[int], satellite_elevation: Sequence[int], satellite_azimuth: Sequence[int], satellite_snr: Sequence[int]):
  8906. MAVLink_message.__init__(self, MAVLink_gps_status_message.id, MAVLink_gps_status_message.msgname)
  8907. self._fieldnames = MAVLink_gps_status_message.fieldnames
  8908. self._instance_field = MAVLink_gps_status_message.instance_field
  8909. self._instance_offset = MAVLink_gps_status_message.instance_offset
  8910. self.satellites_visible = satellites_visible
  8911. self.satellite_prn = satellite_prn
  8912. self.satellite_used = satellite_used
  8913. self.satellite_elevation = satellite_elevation
  8914. self.satellite_azimuth = satellite_azimuth
  8915. self.satellite_snr = satellite_snr
  8916. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8917. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.satellites_visible, self.satellite_prn[0], self.satellite_prn[1], self.satellite_prn[2], self.satellite_prn[3], self.satellite_prn[4], self.satellite_prn[5], self.satellite_prn[6], self.satellite_prn[7], self.satellite_prn[8], self.satellite_prn[9], self.satellite_prn[10], self.satellite_prn[11], self.satellite_prn[12], self.satellite_prn[13], self.satellite_prn[14], self.satellite_prn[15], self.satellite_prn[16], self.satellite_prn[17], self.satellite_prn[18], self.satellite_prn[19], self.satellite_used[0], self.satellite_used[1], self.satellite_used[2], self.satellite_used[3], self.satellite_used[4], self.satellite_used[5], self.satellite_used[6], self.satellite_used[7], self.satellite_used[8], self.satellite_used[9], self.satellite_used[10], self.satellite_used[11], self.satellite_used[12], self.satellite_used[13], self.satellite_used[14], self.satellite_used[15], self.satellite_used[16], self.satellite_used[17], self.satellite_used[18], self.satellite_used[19], self.satellite_elevation[0], self.satellite_elevation[1], self.satellite_elevation[2], self.satellite_elevation[3], self.satellite_elevation[4], self.satellite_elevation[5], self.satellite_elevation[6], self.satellite_elevation[7], self.satellite_elevation[8], self.satellite_elevation[9], self.satellite_elevation[10], self.satellite_elevation[11], self.satellite_elevation[12], self.satellite_elevation[13], self.satellite_elevation[14], self.satellite_elevation[15], self.satellite_elevation[16], self.satellite_elevation[17], self.satellite_elevation[18], self.satellite_elevation[19], self.satellite_azimuth[0], self.satellite_azimuth[1], self.satellite_azimuth[2], self.satellite_azimuth[3], self.satellite_azimuth[4], self.satellite_azimuth[5], self.satellite_azimuth[6], self.satellite_azimuth[7], self.satellite_azimuth[8], self.satellite_azimuth[9], self.satellite_azimuth[10], self.satellite_azimuth[11], self.satellite_azimuth[12], self.satellite_azimuth[13], self.satellite_azimuth[14], self.satellite_azimuth[15], self.satellite_azimuth[16], self.satellite_azimuth[17], self.satellite_azimuth[18], self.satellite_azimuth[19], self.satellite_snr[0], self.satellite_snr[1], self.satellite_snr[2], self.satellite_snr[3], self.satellite_snr[4], self.satellite_snr[5], self.satellite_snr[6], self.satellite_snr[7], self.satellite_snr[8], self.satellite_snr[9], self.satellite_snr[10], self.satellite_snr[11], self.satellite_snr[12], self.satellite_snr[13], self.satellite_snr[14], self.satellite_snr[15], self.satellite_snr[16], self.satellite_snr[17], self.satellite_snr[18], self.satellite_snr[19]), force_mavlink1=force_mavlink1)
  8918. # Define name on the class for backwards compatibility (it is now msgname).
  8919. # Done with setattr to hide the class variable from mypy.
  8920. setattr(MAVLink_gps_status_message, "name", mavlink_msg_deprecated_name_property())
  8921. class MAVLink_scaled_imu_message(MAVLink_message):
  8922. """
  8923. The RAW IMU readings for the usual 9DOF sensor setup. This message
  8924. should contain the scaled values to the described units
  8925. """
  8926. id = MAVLINK_MSG_ID_SCALED_IMU
  8927. msgname = "SCALED_IMU"
  8928. fieldnames = ["time_boot_ms", "xacc", "yacc", "zacc", "xgyro", "ygyro", "zgyro", "xmag", "ymag", "zmag", "temperature"]
  8929. ordered_fieldnames = ["time_boot_ms", "xacc", "yacc", "zacc", "xgyro", "ygyro", "zgyro", "xmag", "ymag", "zmag", "temperature"]
  8930. fieldtypes = ["uint32_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t"]
  8931. fielddisplays_by_name: Dict[str, str] = {}
  8932. fieldenums_by_name: Dict[str, str] = {}
  8933. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "xacc": "mG", "yacc": "mG", "zacc": "mG", "xgyro": "mrad/s", "ygyro": "mrad/s", "zgyro": "mrad/s", "xmag": "mgauss", "ymag": "mgauss", "zmag": "mgauss", "temperature": "cdegC"}
  8934. native_format = bytearray(b"<Ihhhhhhhhhh")
  8935. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
  8936. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  8937. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  8938. crc_extra = 170
  8939. unpacker = struct.Struct("<Ihhhhhhhhhh")
  8940. instance_field = None
  8941. instance_offset = -1
  8942. def __init__(self, time_boot_ms: int, xacc: int, yacc: int, zacc: int, xgyro: int, ygyro: int, zgyro: int, xmag: int, ymag: int, zmag: int, temperature: int = 0):
  8943. MAVLink_message.__init__(self, MAVLink_scaled_imu_message.id, MAVLink_scaled_imu_message.msgname)
  8944. self._fieldnames = MAVLink_scaled_imu_message.fieldnames
  8945. self._instance_field = MAVLink_scaled_imu_message.instance_field
  8946. self._instance_offset = MAVLink_scaled_imu_message.instance_offset
  8947. self.time_boot_ms = time_boot_ms
  8948. self.xacc = xacc
  8949. self.yacc = yacc
  8950. self.zacc = zacc
  8951. self.xgyro = xgyro
  8952. self.ygyro = ygyro
  8953. self.zgyro = zgyro
  8954. self.xmag = xmag
  8955. self.ymag = ymag
  8956. self.zmag = zmag
  8957. self.temperature = temperature
  8958. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8959. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.xacc, self.yacc, self.zacc, self.xgyro, self.ygyro, self.zgyro, self.xmag, self.ymag, self.zmag, self.temperature), force_mavlink1=force_mavlink1)
  8960. # Define name on the class for backwards compatibility (it is now msgname).
  8961. # Done with setattr to hide the class variable from mypy.
  8962. setattr(MAVLink_scaled_imu_message, "name", mavlink_msg_deprecated_name_property())
  8963. class MAVLink_raw_imu_message(MAVLink_message):
  8964. """
  8965. The RAW IMU readings for a 9DOF sensor, which is identified by the
  8966. id (default IMU1). This message should always contain the true raw
  8967. values without any scaling to allow data capture and system
  8968. debugging.
  8969. """
  8970. id = MAVLINK_MSG_ID_RAW_IMU
  8971. msgname = "RAW_IMU"
  8972. fieldnames = ["time_usec", "xacc", "yacc", "zacc", "xgyro", "ygyro", "zgyro", "xmag", "ymag", "zmag", "id", "temperature"]
  8973. ordered_fieldnames = ["time_usec", "xacc", "yacc", "zacc", "xgyro", "ygyro", "zgyro", "xmag", "ymag", "zmag", "id", "temperature"]
  8974. fieldtypes = ["uint64_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "uint8_t", "int16_t"]
  8975. fielddisplays_by_name: Dict[str, str] = {}
  8976. fieldenums_by_name: Dict[str, str] = {}
  8977. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "temperature": "cdegC"}
  8978. native_format = bytearray(b"<QhhhhhhhhhBh")
  8979. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
  8980. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  8981. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  8982. crc_extra = 144
  8983. unpacker = struct.Struct("<QhhhhhhhhhBh")
  8984. instance_field = "id"
  8985. instance_offset = 26
  8986. def __init__(self, time_usec: int, xacc: int, yacc: int, zacc: int, xgyro: int, ygyro: int, zgyro: int, xmag: int, ymag: int, zmag: int, id: int = 0, temperature: int = 0):
  8987. MAVLink_message.__init__(self, MAVLink_raw_imu_message.id, MAVLink_raw_imu_message.msgname)
  8988. self._fieldnames = MAVLink_raw_imu_message.fieldnames
  8989. self._instance_field = MAVLink_raw_imu_message.instance_field
  8990. self._instance_offset = MAVLink_raw_imu_message.instance_offset
  8991. self.time_usec = time_usec
  8992. self.xacc = xacc
  8993. self.yacc = yacc
  8994. self.zacc = zacc
  8995. self.xgyro = xgyro
  8996. self.ygyro = ygyro
  8997. self.zgyro = zgyro
  8998. self.xmag = xmag
  8999. self.ymag = ymag
  9000. self.zmag = zmag
  9001. self.id = id
  9002. self.temperature = temperature
  9003. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9004. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.xacc, self.yacc, self.zacc, self.xgyro, self.ygyro, self.zgyro, self.xmag, self.ymag, self.zmag, self.id, self.temperature), force_mavlink1=force_mavlink1)
  9005. # Define name on the class for backwards compatibility (it is now msgname).
  9006. # Done with setattr to hide the class variable from mypy.
  9007. setattr(MAVLink_raw_imu_message, "name", mavlink_msg_deprecated_name_property())
  9008. class MAVLink_raw_pressure_message(MAVLink_message):
  9009. """
  9010. The RAW pressure readings for the typical setup of one absolute
  9011. pressure and one differential pressure sensor. The sensor values
  9012. should be the raw, UNSCALED ADC values.
  9013. """
  9014. id = MAVLINK_MSG_ID_RAW_PRESSURE
  9015. msgname = "RAW_PRESSURE"
  9016. fieldnames = ["time_usec", "press_abs", "press_diff1", "press_diff2", "temperature"]
  9017. ordered_fieldnames = ["time_usec", "press_abs", "press_diff1", "press_diff2", "temperature"]
  9018. fieldtypes = ["uint64_t", "int16_t", "int16_t", "int16_t", "int16_t"]
  9019. fielddisplays_by_name: Dict[str, str] = {}
  9020. fieldenums_by_name: Dict[str, str] = {}
  9021. fieldunits_by_name: Dict[str, str] = {"time_usec": "us"}
  9022. native_format = bytearray(b"<Qhhhh")
  9023. orders = [0, 1, 2, 3, 4]
  9024. lengths = [1, 1, 1, 1, 1]
  9025. array_lengths = [0, 0, 0, 0, 0]
  9026. crc_extra = 67
  9027. unpacker = struct.Struct("<Qhhhh")
  9028. instance_field = None
  9029. instance_offset = -1
  9030. def __init__(self, time_usec: int, press_abs: int, press_diff1: int, press_diff2: int, temperature: int):
  9031. MAVLink_message.__init__(self, MAVLink_raw_pressure_message.id, MAVLink_raw_pressure_message.msgname)
  9032. self._fieldnames = MAVLink_raw_pressure_message.fieldnames
  9033. self._instance_field = MAVLink_raw_pressure_message.instance_field
  9034. self._instance_offset = MAVLink_raw_pressure_message.instance_offset
  9035. self.time_usec = time_usec
  9036. self.press_abs = press_abs
  9037. self.press_diff1 = press_diff1
  9038. self.press_diff2 = press_diff2
  9039. self.temperature = temperature
  9040. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9041. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.press_abs, self.press_diff1, self.press_diff2, self.temperature), force_mavlink1=force_mavlink1)
  9042. # Define name on the class for backwards compatibility (it is now msgname).
  9043. # Done with setattr to hide the class variable from mypy.
  9044. setattr(MAVLink_raw_pressure_message, "name", mavlink_msg_deprecated_name_property())
  9045. class MAVLink_scaled_pressure_message(MAVLink_message):
  9046. """
  9047. The pressure readings for the typical setup of one absolute and
  9048. differential pressure sensor. The units are as specified in each
  9049. field.
  9050. """
  9051. id = MAVLINK_MSG_ID_SCALED_PRESSURE
  9052. msgname = "SCALED_PRESSURE"
  9053. fieldnames = ["time_boot_ms", "press_abs", "press_diff", "temperature", "temperature_press_diff"]
  9054. ordered_fieldnames = ["time_boot_ms", "press_abs", "press_diff", "temperature", "temperature_press_diff"]
  9055. fieldtypes = ["uint32_t", "float", "float", "int16_t", "int16_t"]
  9056. fielddisplays_by_name: Dict[str, str] = {}
  9057. fieldenums_by_name: Dict[str, str] = {}
  9058. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "press_abs": "hPa", "press_diff": "hPa", "temperature": "cdegC", "temperature_press_diff": "cdegC"}
  9059. native_format = bytearray(b"<Iffhh")
  9060. orders = [0, 1, 2, 3, 4]
  9061. lengths = [1, 1, 1, 1, 1]
  9062. array_lengths = [0, 0, 0, 0, 0]
  9063. crc_extra = 115
  9064. unpacker = struct.Struct("<Iffhh")
  9065. instance_field = None
  9066. instance_offset = -1
  9067. def __init__(self, time_boot_ms: int, press_abs: float, press_diff: float, temperature: int, temperature_press_diff: int = 0):
  9068. MAVLink_message.__init__(self, MAVLink_scaled_pressure_message.id, MAVLink_scaled_pressure_message.msgname)
  9069. self._fieldnames = MAVLink_scaled_pressure_message.fieldnames
  9070. self._instance_field = MAVLink_scaled_pressure_message.instance_field
  9071. self._instance_offset = MAVLink_scaled_pressure_message.instance_offset
  9072. self.time_boot_ms = time_boot_ms
  9073. self.press_abs = press_abs
  9074. self.press_diff = press_diff
  9075. self.temperature = temperature
  9076. self.temperature_press_diff = temperature_press_diff
  9077. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9078. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.press_abs, self.press_diff, self.temperature, self.temperature_press_diff), force_mavlink1=force_mavlink1)
  9079. # Define name on the class for backwards compatibility (it is now msgname).
  9080. # Done with setattr to hide the class variable from mypy.
  9081. setattr(MAVLink_scaled_pressure_message, "name", mavlink_msg_deprecated_name_property())
  9082. class MAVLink_attitude_message(MAVLink_message):
  9083. """
  9084. The attitude in the aeronautical frame (right-handed, Z-down,
  9085. Y-right, X-front, ZYX, intrinsic).
  9086. """
  9087. id = MAVLINK_MSG_ID_ATTITUDE
  9088. msgname = "ATTITUDE"
  9089. fieldnames = ["time_boot_ms", "roll", "pitch", "yaw", "rollspeed", "pitchspeed", "yawspeed"]
  9090. ordered_fieldnames = ["time_boot_ms", "roll", "pitch", "yaw", "rollspeed", "pitchspeed", "yawspeed"]
  9091. fieldtypes = ["uint32_t", "float", "float", "float", "float", "float", "float"]
  9092. fielddisplays_by_name: Dict[str, str] = {}
  9093. fieldenums_by_name: Dict[str, str] = {}
  9094. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "roll": "rad", "pitch": "rad", "yaw": "rad", "rollspeed": "rad/s", "pitchspeed": "rad/s", "yawspeed": "rad/s"}
  9095. native_format = bytearray(b"<Iffffff")
  9096. orders = [0, 1, 2, 3, 4, 5, 6]
  9097. lengths = [1, 1, 1, 1, 1, 1, 1]
  9098. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  9099. crc_extra = 39
  9100. unpacker = struct.Struct("<Iffffff")
  9101. instance_field = None
  9102. instance_offset = -1
  9103. def __init__(self, time_boot_ms: int, roll: float, pitch: float, yaw: float, rollspeed: float, pitchspeed: float, yawspeed: float):
  9104. MAVLink_message.__init__(self, MAVLink_attitude_message.id, MAVLink_attitude_message.msgname)
  9105. self._fieldnames = MAVLink_attitude_message.fieldnames
  9106. self._instance_field = MAVLink_attitude_message.instance_field
  9107. self._instance_offset = MAVLink_attitude_message.instance_offset
  9108. self.time_boot_ms = time_boot_ms
  9109. self.roll = roll
  9110. self.pitch = pitch
  9111. self.yaw = yaw
  9112. self.rollspeed = rollspeed
  9113. self.pitchspeed = pitchspeed
  9114. self.yawspeed = yawspeed
  9115. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9116. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.roll, self.pitch, self.yaw, self.rollspeed, self.pitchspeed, self.yawspeed), force_mavlink1=force_mavlink1)
  9117. # Define name on the class for backwards compatibility (it is now msgname).
  9118. # Done with setattr to hide the class variable from mypy.
  9119. setattr(MAVLink_attitude_message, "name", mavlink_msg_deprecated_name_property())
  9120. class MAVLink_attitude_quaternion_message(MAVLink_message):
  9121. """
  9122. The attitude in the aeronautical frame (right-handed, Z-down,
  9123. X-front, Y-right), expressed as quaternion. Quaternion order is w,
  9124. x, y, z and a zero rotation would be expressed as (1 0 0 0).
  9125. """
  9126. id = MAVLINK_MSG_ID_ATTITUDE_QUATERNION
  9127. msgname = "ATTITUDE_QUATERNION"
  9128. fieldnames = ["time_boot_ms", "q1", "q2", "q3", "q4", "rollspeed", "pitchspeed", "yawspeed", "repr_offset_q"]
  9129. ordered_fieldnames = ["time_boot_ms", "q1", "q2", "q3", "q4", "rollspeed", "pitchspeed", "yawspeed", "repr_offset_q"]
  9130. fieldtypes = ["uint32_t", "float", "float", "float", "float", "float", "float", "float", "float"]
  9131. fielddisplays_by_name: Dict[str, str] = {}
  9132. fieldenums_by_name: Dict[str, str] = {}
  9133. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "rollspeed": "rad/s", "pitchspeed": "rad/s", "yawspeed": "rad/s"}
  9134. native_format = bytearray(b"<Iffffffff")
  9135. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8]
  9136. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 4]
  9137. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 4]
  9138. crc_extra = 246
  9139. unpacker = struct.Struct("<Ifffffff4f")
  9140. instance_field = None
  9141. instance_offset = -1
  9142. def __init__(self, time_boot_ms: int, q1: float, q2: float, q3: float, q4: float, rollspeed: float, pitchspeed: float, yawspeed: float, repr_offset_q: Sequence[float] = (0, 0, 0, 0)):
  9143. MAVLink_message.__init__(self, MAVLink_attitude_quaternion_message.id, MAVLink_attitude_quaternion_message.msgname)
  9144. self._fieldnames = MAVLink_attitude_quaternion_message.fieldnames
  9145. self._instance_field = MAVLink_attitude_quaternion_message.instance_field
  9146. self._instance_offset = MAVLink_attitude_quaternion_message.instance_offset
  9147. self.time_boot_ms = time_boot_ms
  9148. self.q1 = q1
  9149. self.q2 = q2
  9150. self.q3 = q3
  9151. self.q4 = q4
  9152. self.rollspeed = rollspeed
  9153. self.pitchspeed = pitchspeed
  9154. self.yawspeed = yawspeed
  9155. self.repr_offset_q = repr_offset_q
  9156. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9157. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.q1, self.q2, self.q3, self.q4, self.rollspeed, self.pitchspeed, self.yawspeed, self.repr_offset_q[0], self.repr_offset_q[1], self.repr_offset_q[2], self.repr_offset_q[3]), force_mavlink1=force_mavlink1)
  9158. # Define name on the class for backwards compatibility (it is now msgname).
  9159. # Done with setattr to hide the class variable from mypy.
  9160. setattr(MAVLink_attitude_quaternion_message, "name", mavlink_msg_deprecated_name_property())
  9161. class MAVLink_local_position_ned_message(MAVLink_message):
  9162. """
  9163. The filtered local position (e.g. fused computer vision and
  9164. accelerometers). Coordinate frame is right-handed, Z-axis down
  9165. (aeronautical frame, NED / north-east-down convention)
  9166. """
  9167. id = MAVLINK_MSG_ID_LOCAL_POSITION_NED
  9168. msgname = "LOCAL_POSITION_NED"
  9169. fieldnames = ["time_boot_ms", "x", "y", "z", "vx", "vy", "vz"]
  9170. ordered_fieldnames = ["time_boot_ms", "x", "y", "z", "vx", "vy", "vz"]
  9171. fieldtypes = ["uint32_t", "float", "float", "float", "float", "float", "float"]
  9172. fielddisplays_by_name: Dict[str, str] = {}
  9173. fieldenums_by_name: Dict[str, str] = {}
  9174. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "x": "m", "y": "m", "z": "m", "vx": "m/s", "vy": "m/s", "vz": "m/s"}
  9175. native_format = bytearray(b"<Iffffff")
  9176. orders = [0, 1, 2, 3, 4, 5, 6]
  9177. lengths = [1, 1, 1, 1, 1, 1, 1]
  9178. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  9179. crc_extra = 185
  9180. unpacker = struct.Struct("<Iffffff")
  9181. instance_field = None
  9182. instance_offset = -1
  9183. def __init__(self, time_boot_ms: int, x: float, y: float, z: float, vx: float, vy: float, vz: float):
  9184. MAVLink_message.__init__(self, MAVLink_local_position_ned_message.id, MAVLink_local_position_ned_message.msgname)
  9185. self._fieldnames = MAVLink_local_position_ned_message.fieldnames
  9186. self._instance_field = MAVLink_local_position_ned_message.instance_field
  9187. self._instance_offset = MAVLink_local_position_ned_message.instance_offset
  9188. self.time_boot_ms = time_boot_ms
  9189. self.x = x
  9190. self.y = y
  9191. self.z = z
  9192. self.vx = vx
  9193. self.vy = vy
  9194. self.vz = vz
  9195. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9196. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.x, self.y, self.z, self.vx, self.vy, self.vz), force_mavlink1=force_mavlink1)
  9197. # Define name on the class for backwards compatibility (it is now msgname).
  9198. # Done with setattr to hide the class variable from mypy.
  9199. setattr(MAVLink_local_position_ned_message, "name", mavlink_msg_deprecated_name_property())
  9200. class MAVLink_global_position_int_message(MAVLink_message):
  9201. """
  9202. The filtered global position (e.g. fused GPS and accelerometers).
  9203. The position is in GPS-frame (right-handed, Z-up). It
  9204. is designed as scaled integer message since the resolution of
  9205. float is not sufficient.
  9206. """
  9207. id = MAVLINK_MSG_ID_GLOBAL_POSITION_INT
  9208. msgname = "GLOBAL_POSITION_INT"
  9209. fieldnames = ["time_boot_ms", "lat", "lon", "alt", "relative_alt", "vx", "vy", "vz", "hdg"]
  9210. ordered_fieldnames = ["time_boot_ms", "lat", "lon", "alt", "relative_alt", "vx", "vy", "vz", "hdg"]
  9211. fieldtypes = ["uint32_t", "int32_t", "int32_t", "int32_t", "int32_t", "int16_t", "int16_t", "int16_t", "uint16_t"]
  9212. fielddisplays_by_name: Dict[str, str] = {}
  9213. fieldenums_by_name: Dict[str, str] = {}
  9214. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "lat": "degE7", "lon": "degE7", "alt": "mm", "relative_alt": "mm", "vx": "cm/s", "vy": "cm/s", "vz": "cm/s", "hdg": "cdeg"}
  9215. native_format = bytearray(b"<IiiiihhhH")
  9216. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8]
  9217. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1]
  9218. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0]
  9219. crc_extra = 104
  9220. unpacker = struct.Struct("<IiiiihhhH")
  9221. instance_field = None
  9222. instance_offset = -1
  9223. def __init__(self, time_boot_ms: int, lat: int, lon: int, alt: int, relative_alt: int, vx: int, vy: int, vz: int, hdg: int):
  9224. MAVLink_message.__init__(self, MAVLink_global_position_int_message.id, MAVLink_global_position_int_message.msgname)
  9225. self._fieldnames = MAVLink_global_position_int_message.fieldnames
  9226. self._instance_field = MAVLink_global_position_int_message.instance_field
  9227. self._instance_offset = MAVLink_global_position_int_message.instance_offset
  9228. self.time_boot_ms = time_boot_ms
  9229. self.lat = lat
  9230. self.lon = lon
  9231. self.alt = alt
  9232. self.relative_alt = relative_alt
  9233. self.vx = vx
  9234. self.vy = vy
  9235. self.vz = vz
  9236. self.hdg = hdg
  9237. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9238. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.lat, self.lon, self.alt, self.relative_alt, self.vx, self.vy, self.vz, self.hdg), force_mavlink1=force_mavlink1)
  9239. # Define name on the class for backwards compatibility (it is now msgname).
  9240. # Done with setattr to hide the class variable from mypy.
  9241. setattr(MAVLink_global_position_int_message, "name", mavlink_msg_deprecated_name_property())
  9242. class MAVLink_rc_channels_scaled_message(MAVLink_message):
  9243. """
  9244. The scaled values of the RC channels received: (-100%) -10000,
  9245. (0%) 0, (100%) 10000. Channels that are inactive should be set to
  9246. INT16_MAX.
  9247. """
  9248. id = MAVLINK_MSG_ID_RC_CHANNELS_SCALED
  9249. msgname = "RC_CHANNELS_SCALED"
  9250. fieldnames = ["time_boot_ms", "port", "chan1_scaled", "chan2_scaled", "chan3_scaled", "chan4_scaled", "chan5_scaled", "chan6_scaled", "chan7_scaled", "chan8_scaled", "rssi"]
  9251. ordered_fieldnames = ["time_boot_ms", "chan1_scaled", "chan2_scaled", "chan3_scaled", "chan4_scaled", "chan5_scaled", "chan6_scaled", "chan7_scaled", "chan8_scaled", "port", "rssi"]
  9252. fieldtypes = ["uint32_t", "uint8_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "uint8_t"]
  9253. fielddisplays_by_name: Dict[str, str] = {}
  9254. fieldenums_by_name: Dict[str, str] = {}
  9255. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms"}
  9256. native_format = bytearray(b"<IhhhhhhhhBB")
  9257. orders = [0, 9, 1, 2, 3, 4, 5, 6, 7, 8, 10]
  9258. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  9259. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  9260. crc_extra = 237
  9261. unpacker = struct.Struct("<IhhhhhhhhBB")
  9262. instance_field = None
  9263. instance_offset = -1
  9264. def __init__(self, time_boot_ms: int, port: int, chan1_scaled: int, chan2_scaled: int, chan3_scaled: int, chan4_scaled: int, chan5_scaled: int, chan6_scaled: int, chan7_scaled: int, chan8_scaled: int, rssi: int):
  9265. MAVLink_message.__init__(self, MAVLink_rc_channels_scaled_message.id, MAVLink_rc_channels_scaled_message.msgname)
  9266. self._fieldnames = MAVLink_rc_channels_scaled_message.fieldnames
  9267. self._instance_field = MAVLink_rc_channels_scaled_message.instance_field
  9268. self._instance_offset = MAVLink_rc_channels_scaled_message.instance_offset
  9269. self.time_boot_ms = time_boot_ms
  9270. self.port = port
  9271. self.chan1_scaled = chan1_scaled
  9272. self.chan2_scaled = chan2_scaled
  9273. self.chan3_scaled = chan3_scaled
  9274. self.chan4_scaled = chan4_scaled
  9275. self.chan5_scaled = chan5_scaled
  9276. self.chan6_scaled = chan6_scaled
  9277. self.chan7_scaled = chan7_scaled
  9278. self.chan8_scaled = chan8_scaled
  9279. self.rssi = rssi
  9280. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9281. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.chan1_scaled, self.chan2_scaled, self.chan3_scaled, self.chan4_scaled, self.chan5_scaled, self.chan6_scaled, self.chan7_scaled, self.chan8_scaled, self.port, self.rssi), force_mavlink1=force_mavlink1)
  9282. # Define name on the class for backwards compatibility (it is now msgname).
  9283. # Done with setattr to hide the class variable from mypy.
  9284. setattr(MAVLink_rc_channels_scaled_message, "name", mavlink_msg_deprecated_name_property())
  9285. class MAVLink_rc_channels_raw_message(MAVLink_message):
  9286. """
  9287. The RAW values of the RC channels received. The standard PPM
  9288. modulation is as follows: 1000 microseconds: 0%, 2000
  9289. microseconds: 100%. A value of UINT16_MAX implies the channel is
  9290. unused. Individual receivers/transmitters might violate this
  9291. specification.
  9292. """
  9293. id = MAVLINK_MSG_ID_RC_CHANNELS_RAW
  9294. msgname = "RC_CHANNELS_RAW"
  9295. fieldnames = ["time_boot_ms", "port", "chan1_raw", "chan2_raw", "chan3_raw", "chan4_raw", "chan5_raw", "chan6_raw", "chan7_raw", "chan8_raw", "rssi"]
  9296. ordered_fieldnames = ["time_boot_ms", "chan1_raw", "chan2_raw", "chan3_raw", "chan4_raw", "chan5_raw", "chan6_raw", "chan7_raw", "chan8_raw", "port", "rssi"]
  9297. fieldtypes = ["uint32_t", "uint8_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint8_t"]
  9298. fielddisplays_by_name: Dict[str, str] = {}
  9299. fieldenums_by_name: Dict[str, str] = {}
  9300. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "chan1_raw": "us", "chan2_raw": "us", "chan3_raw": "us", "chan4_raw": "us", "chan5_raw": "us", "chan6_raw": "us", "chan7_raw": "us", "chan8_raw": "us"}
  9301. native_format = bytearray(b"<IHHHHHHHHBB")
  9302. orders = [0, 9, 1, 2, 3, 4, 5, 6, 7, 8, 10]
  9303. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  9304. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  9305. crc_extra = 244
  9306. unpacker = struct.Struct("<IHHHHHHHHBB")
  9307. instance_field = None
  9308. instance_offset = -1
  9309. def __init__(self, time_boot_ms: int, port: int, chan1_raw: int, chan2_raw: int, chan3_raw: int, chan4_raw: int, chan5_raw: int, chan6_raw: int, chan7_raw: int, chan8_raw: int, rssi: int):
  9310. MAVLink_message.__init__(self, MAVLink_rc_channels_raw_message.id, MAVLink_rc_channels_raw_message.msgname)
  9311. self._fieldnames = MAVLink_rc_channels_raw_message.fieldnames
  9312. self._instance_field = MAVLink_rc_channels_raw_message.instance_field
  9313. self._instance_offset = MAVLink_rc_channels_raw_message.instance_offset
  9314. self.time_boot_ms = time_boot_ms
  9315. self.port = port
  9316. self.chan1_raw = chan1_raw
  9317. self.chan2_raw = chan2_raw
  9318. self.chan3_raw = chan3_raw
  9319. self.chan4_raw = chan4_raw
  9320. self.chan5_raw = chan5_raw
  9321. self.chan6_raw = chan6_raw
  9322. self.chan7_raw = chan7_raw
  9323. self.chan8_raw = chan8_raw
  9324. self.rssi = rssi
  9325. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9326. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.chan1_raw, self.chan2_raw, self.chan3_raw, self.chan4_raw, self.chan5_raw, self.chan6_raw, self.chan7_raw, self.chan8_raw, self.port, self.rssi), force_mavlink1=force_mavlink1)
  9327. # Define name on the class for backwards compatibility (it is now msgname).
  9328. # Done with setattr to hide the class variable from mypy.
  9329. setattr(MAVLink_rc_channels_raw_message, "name", mavlink_msg_deprecated_name_property())
  9330. class MAVLink_servo_output_raw_message(MAVLink_message):
  9331. """
  9332. Superseded by ACTUATOR_OUTPUT_STATUS. The RAW values of the servo
  9333. outputs (for RC input from the remote, use the RC_CHANNELS
  9334. messages). The standard PPM modulation is as follows: 1000
  9335. microseconds: 0%, 2000 microseconds: 100%.
  9336. """
  9337. id = MAVLINK_MSG_ID_SERVO_OUTPUT_RAW
  9338. msgname = "SERVO_OUTPUT_RAW"
  9339. fieldnames = ["time_usec", "port", "servo1_raw", "servo2_raw", "servo3_raw", "servo4_raw", "servo5_raw", "servo6_raw", "servo7_raw", "servo8_raw", "servo9_raw", "servo10_raw", "servo11_raw", "servo12_raw", "servo13_raw", "servo14_raw", "servo15_raw", "servo16_raw"]
  9340. ordered_fieldnames = ["time_usec", "servo1_raw", "servo2_raw", "servo3_raw", "servo4_raw", "servo5_raw", "servo6_raw", "servo7_raw", "servo8_raw", "port", "servo9_raw", "servo10_raw", "servo11_raw", "servo12_raw", "servo13_raw", "servo14_raw", "servo15_raw", "servo16_raw"]
  9341. fieldtypes = ["uint32_t", "uint8_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t"]
  9342. fielddisplays_by_name: Dict[str, str] = {}
  9343. fieldenums_by_name: Dict[str, str] = {}
  9344. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "servo1_raw": "us", "servo2_raw": "us", "servo3_raw": "us", "servo4_raw": "us", "servo5_raw": "us", "servo6_raw": "us", "servo7_raw": "us", "servo8_raw": "us", "servo9_raw": "us", "servo10_raw": "us", "servo11_raw": "us", "servo12_raw": "us", "servo13_raw": "us", "servo14_raw": "us", "servo15_raw": "us", "servo16_raw": "us"}
  9345. native_format = bytearray(b"<IHHHHHHHHBHHHHHHHH")
  9346. orders = [0, 9, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 16, 17]
  9347. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  9348. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  9349. crc_extra = 222
  9350. unpacker = struct.Struct("<IHHHHHHHHBHHHHHHHH")
  9351. instance_field = None
  9352. instance_offset = -1
  9353. def __init__(self, time_usec: int, port: int, servo1_raw: int, servo2_raw: int, servo3_raw: int, servo4_raw: int, servo5_raw: int, servo6_raw: int, servo7_raw: int, servo8_raw: int, servo9_raw: int = 0, servo10_raw: int = 0, servo11_raw: int = 0, servo12_raw: int = 0, servo13_raw: int = 0, servo14_raw: int = 0, servo15_raw: int = 0, servo16_raw: int = 0):
  9354. MAVLink_message.__init__(self, MAVLink_servo_output_raw_message.id, MAVLink_servo_output_raw_message.msgname)
  9355. self._fieldnames = MAVLink_servo_output_raw_message.fieldnames
  9356. self._instance_field = MAVLink_servo_output_raw_message.instance_field
  9357. self._instance_offset = MAVLink_servo_output_raw_message.instance_offset
  9358. self.time_usec = time_usec
  9359. self.port = port
  9360. self.servo1_raw = servo1_raw
  9361. self.servo2_raw = servo2_raw
  9362. self.servo3_raw = servo3_raw
  9363. self.servo4_raw = servo4_raw
  9364. self.servo5_raw = servo5_raw
  9365. self.servo6_raw = servo6_raw
  9366. self.servo7_raw = servo7_raw
  9367. self.servo8_raw = servo8_raw
  9368. self.servo9_raw = servo9_raw
  9369. self.servo10_raw = servo10_raw
  9370. self.servo11_raw = servo11_raw
  9371. self.servo12_raw = servo12_raw
  9372. self.servo13_raw = servo13_raw
  9373. self.servo14_raw = servo14_raw
  9374. self.servo15_raw = servo15_raw
  9375. self.servo16_raw = servo16_raw
  9376. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9377. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.servo1_raw, self.servo2_raw, self.servo3_raw, self.servo4_raw, self.servo5_raw, self.servo6_raw, self.servo7_raw, self.servo8_raw, self.port, self.servo9_raw, self.servo10_raw, self.servo11_raw, self.servo12_raw, self.servo13_raw, self.servo14_raw, self.servo15_raw, self.servo16_raw), force_mavlink1=force_mavlink1)
  9378. # Define name on the class for backwards compatibility (it is now msgname).
  9379. # Done with setattr to hide the class variable from mypy.
  9380. setattr(MAVLink_servo_output_raw_message, "name", mavlink_msg_deprecated_name_property())
  9381. class MAVLink_mission_request_partial_list_message(MAVLink_message):
  9382. """
  9383. Request a partial list of mission items from the system/component.
  9384. https://mavlink.io/en/services/mission.html. If start and end
  9385. index are the same, just send one waypoint.
  9386. """
  9387. id = MAVLINK_MSG_ID_MISSION_REQUEST_PARTIAL_LIST
  9388. msgname = "MISSION_REQUEST_PARTIAL_LIST"
  9389. fieldnames = ["target_system", "target_component", "start_index", "end_index", "mission_type"]
  9390. ordered_fieldnames = ["start_index", "end_index", "target_system", "target_component", "mission_type"]
  9391. fieldtypes = ["uint8_t", "uint8_t", "int16_t", "int16_t", "uint8_t"]
  9392. fielddisplays_by_name: Dict[str, str] = {}
  9393. fieldenums_by_name: Dict[str, str] = {"mission_type": "MAV_MISSION_TYPE"}
  9394. fieldunits_by_name: Dict[str, str] = {}
  9395. native_format = bytearray(b"<hhBBB")
  9396. orders = [2, 3, 0, 1, 4]
  9397. lengths = [1, 1, 1, 1, 1]
  9398. array_lengths = [0, 0, 0, 0, 0]
  9399. crc_extra = 212
  9400. unpacker = struct.Struct("<hhBBB")
  9401. instance_field = None
  9402. instance_offset = -1
  9403. def __init__(self, target_system: int, target_component: int, start_index: int, end_index: int, mission_type: int = 0):
  9404. MAVLink_message.__init__(self, MAVLink_mission_request_partial_list_message.id, MAVLink_mission_request_partial_list_message.msgname)
  9405. self._fieldnames = MAVLink_mission_request_partial_list_message.fieldnames
  9406. self._instance_field = MAVLink_mission_request_partial_list_message.instance_field
  9407. self._instance_offset = MAVLink_mission_request_partial_list_message.instance_offset
  9408. self.target_system = target_system
  9409. self.target_component = target_component
  9410. self.start_index = start_index
  9411. self.end_index = end_index
  9412. self.mission_type = mission_type
  9413. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9414. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.start_index, self.end_index, self.target_system, self.target_component, self.mission_type), force_mavlink1=force_mavlink1)
  9415. # Define name on the class for backwards compatibility (it is now msgname).
  9416. # Done with setattr to hide the class variable from mypy.
  9417. setattr(MAVLink_mission_request_partial_list_message, "name", mavlink_msg_deprecated_name_property())
  9418. class MAVLink_mission_write_partial_list_message(MAVLink_message):
  9419. """
  9420. This message is sent to the MAV to write a partial list. If start
  9421. index == end index, only one item will be transmitted / updated.
  9422. If the start index is NOT 0 and above the current list size, this
  9423. request should be REJECTED!
  9424. """
  9425. id = MAVLINK_MSG_ID_MISSION_WRITE_PARTIAL_LIST
  9426. msgname = "MISSION_WRITE_PARTIAL_LIST"
  9427. fieldnames = ["target_system", "target_component", "start_index", "end_index", "mission_type"]
  9428. ordered_fieldnames = ["start_index", "end_index", "target_system", "target_component", "mission_type"]
  9429. fieldtypes = ["uint8_t", "uint8_t", "int16_t", "int16_t", "uint8_t"]
  9430. fielddisplays_by_name: Dict[str, str] = {}
  9431. fieldenums_by_name: Dict[str, str] = {"mission_type": "MAV_MISSION_TYPE"}
  9432. fieldunits_by_name: Dict[str, str] = {}
  9433. native_format = bytearray(b"<hhBBB")
  9434. orders = [2, 3, 0, 1, 4]
  9435. lengths = [1, 1, 1, 1, 1]
  9436. array_lengths = [0, 0, 0, 0, 0]
  9437. crc_extra = 9
  9438. unpacker = struct.Struct("<hhBBB")
  9439. instance_field = None
  9440. instance_offset = -1
  9441. def __init__(self, target_system: int, target_component: int, start_index: int, end_index: int, mission_type: int = 0):
  9442. MAVLink_message.__init__(self, MAVLink_mission_write_partial_list_message.id, MAVLink_mission_write_partial_list_message.msgname)
  9443. self._fieldnames = MAVLink_mission_write_partial_list_message.fieldnames
  9444. self._instance_field = MAVLink_mission_write_partial_list_message.instance_field
  9445. self._instance_offset = MAVLink_mission_write_partial_list_message.instance_offset
  9446. self.target_system = target_system
  9447. self.target_component = target_component
  9448. self.start_index = start_index
  9449. self.end_index = end_index
  9450. self.mission_type = mission_type
  9451. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9452. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.start_index, self.end_index, self.target_system, self.target_component, self.mission_type), force_mavlink1=force_mavlink1)
  9453. # Define name on the class for backwards compatibility (it is now msgname).
  9454. # Done with setattr to hide the class variable from mypy.
  9455. setattr(MAVLink_mission_write_partial_list_message, "name", mavlink_msg_deprecated_name_property())
  9456. class MAVLink_mission_item_message(MAVLink_message):
  9457. """
  9458. Message encoding a mission item. This message is emitted to
  9459. announce the presence of a mission item and to set
  9460. a mission item on the system. The mission item can be either in x,
  9461. y, z meters (type: LOCAL) or x:lat, y:lon, z:altitude. Local frame
  9462. is Z-down, right handed (NED), global frame is Z-up, right handed
  9463. (ENU). NaN may be used to indicate an optional/default value (e.g.
  9464. to use the system's current latitude or yaw rather than a specific
  9465. value). See also https://mavlink.io/en/services/mission.html.
  9466. """
  9467. id = MAVLINK_MSG_ID_MISSION_ITEM
  9468. msgname = "MISSION_ITEM"
  9469. fieldnames = ["target_system", "target_component", "seq", "frame", "command", "current", "autocontinue", "param1", "param2", "param3", "param4", "x", "y", "z", "mission_type"]
  9470. ordered_fieldnames = ["param1", "param2", "param3", "param4", "x", "y", "z", "seq", "command", "target_system", "target_component", "frame", "current", "autocontinue", "mission_type"]
  9471. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "uint8_t", "uint16_t", "uint8_t", "uint8_t", "float", "float", "float", "float", "float", "float", "float", "uint8_t"]
  9472. fielddisplays_by_name: Dict[str, str] = {}
  9473. fieldenums_by_name: Dict[str, str] = {"frame": "MAV_FRAME", "command": "MAV_CMD", "mission_type": "MAV_MISSION_TYPE"}
  9474. fieldunits_by_name: Dict[str, str] = {}
  9475. native_format = bytearray(b"<fffffffHHBBBBBB")
  9476. orders = [9, 10, 7, 11, 8, 12, 13, 0, 1, 2, 3, 4, 5, 6, 14]
  9477. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  9478. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  9479. crc_extra = 254
  9480. unpacker = struct.Struct("<fffffffHHBBBBBB")
  9481. instance_field = None
  9482. instance_offset = -1
  9483. def __init__(self, target_system: int, target_component: int, seq: int, frame: int, command: int, current: int, autocontinue: int, param1: float, param2: float, param3: float, param4: float, x: float, y: float, z: float, mission_type: int = 0):
  9484. MAVLink_message.__init__(self, MAVLink_mission_item_message.id, MAVLink_mission_item_message.msgname)
  9485. self._fieldnames = MAVLink_mission_item_message.fieldnames
  9486. self._instance_field = MAVLink_mission_item_message.instance_field
  9487. self._instance_offset = MAVLink_mission_item_message.instance_offset
  9488. self.target_system = target_system
  9489. self.target_component = target_component
  9490. self.seq = seq
  9491. self.frame = frame
  9492. self.command = command
  9493. self.current = current
  9494. self.autocontinue = autocontinue
  9495. self.param1 = param1
  9496. self.param2 = param2
  9497. self.param3 = param3
  9498. self.param4 = param4
  9499. self.x = x
  9500. self.y = y
  9501. self.z = z
  9502. self.mission_type = mission_type
  9503. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9504. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.param1, self.param2, self.param3, self.param4, self.x, self.y, self.z, self.seq, self.command, self.target_system, self.target_component, self.frame, self.current, self.autocontinue, self.mission_type), force_mavlink1=force_mavlink1)
  9505. # Define name on the class for backwards compatibility (it is now msgname).
  9506. # Done with setattr to hide the class variable from mypy.
  9507. setattr(MAVLink_mission_item_message, "name", mavlink_msg_deprecated_name_property())
  9508. class MAVLink_mission_request_message(MAVLink_message):
  9509. """
  9510. Request the information of the mission item with the sequence
  9511. number seq. The response of the system to this message should be a
  9512. MISSION_ITEM message. https://mavlink.io/en/services/mission.html
  9513. """
  9514. id = MAVLINK_MSG_ID_MISSION_REQUEST
  9515. msgname = "MISSION_REQUEST"
  9516. fieldnames = ["target_system", "target_component", "seq", "mission_type"]
  9517. ordered_fieldnames = ["seq", "target_system", "target_component", "mission_type"]
  9518. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "uint8_t"]
  9519. fielddisplays_by_name: Dict[str, str] = {}
  9520. fieldenums_by_name: Dict[str, str] = {"mission_type": "MAV_MISSION_TYPE"}
  9521. fieldunits_by_name: Dict[str, str] = {}
  9522. native_format = bytearray(b"<HBBB")
  9523. orders = [1, 2, 0, 3]
  9524. lengths = [1, 1, 1, 1]
  9525. array_lengths = [0, 0, 0, 0]
  9526. crc_extra = 230
  9527. unpacker = struct.Struct("<HBBB")
  9528. instance_field = None
  9529. instance_offset = -1
  9530. def __init__(self, target_system: int, target_component: int, seq: int, mission_type: int = 0):
  9531. MAVLink_message.__init__(self, MAVLink_mission_request_message.id, MAVLink_mission_request_message.msgname)
  9532. self._fieldnames = MAVLink_mission_request_message.fieldnames
  9533. self._instance_field = MAVLink_mission_request_message.instance_field
  9534. self._instance_offset = MAVLink_mission_request_message.instance_offset
  9535. self.target_system = target_system
  9536. self.target_component = target_component
  9537. self.seq = seq
  9538. self.mission_type = mission_type
  9539. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9540. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.seq, self.target_system, self.target_component, self.mission_type), force_mavlink1=force_mavlink1)
  9541. # Define name on the class for backwards compatibility (it is now msgname).
  9542. # Done with setattr to hide the class variable from mypy.
  9543. setattr(MAVLink_mission_request_message, "name", mavlink_msg_deprecated_name_property())
  9544. class MAVLink_mission_set_current_message(MAVLink_message):
  9545. """
  9546. Set the mission item with sequence number seq as the current item
  9547. and emit MISSION_CURRENT (whether or not the mission number
  9548. changed). If a mission is currently being executed, the
  9549. system will continue to this new mission item on the shortest
  9550. path, skipping any intermediate mission items. Note that
  9551. mission jump repeat counters are not reset (see MAV_CMD_DO_JUMP
  9552. param2). This message may trigger a mission state-machine
  9553. change on some systems: for example from MISSION_STATE_NOT_STARTED
  9554. or MISSION_STATE_PAUSED to MISSION_STATE_ACTIVE. If the
  9555. system is in mission mode, on those systems this command might
  9556. therefore start, restart or resume the mission. If the
  9557. system is not in mission mode this message must not trigger a
  9558. switch to mission mode.
  9559. """
  9560. id = MAVLINK_MSG_ID_MISSION_SET_CURRENT
  9561. msgname = "MISSION_SET_CURRENT"
  9562. fieldnames = ["target_system", "target_component", "seq"]
  9563. ordered_fieldnames = ["seq", "target_system", "target_component"]
  9564. fieldtypes = ["uint8_t", "uint8_t", "uint16_t"]
  9565. fielddisplays_by_name: Dict[str, str] = {}
  9566. fieldenums_by_name: Dict[str, str] = {}
  9567. fieldunits_by_name: Dict[str, str] = {}
  9568. native_format = bytearray(b"<HBB")
  9569. orders = [1, 2, 0]
  9570. lengths = [1, 1, 1]
  9571. array_lengths = [0, 0, 0]
  9572. crc_extra = 28
  9573. unpacker = struct.Struct("<HBB")
  9574. instance_field = None
  9575. instance_offset = -1
  9576. def __init__(self, target_system: int, target_component: int, seq: int):
  9577. MAVLink_message.__init__(self, MAVLink_mission_set_current_message.id, MAVLink_mission_set_current_message.msgname)
  9578. self._fieldnames = MAVLink_mission_set_current_message.fieldnames
  9579. self._instance_field = MAVLink_mission_set_current_message.instance_field
  9580. self._instance_offset = MAVLink_mission_set_current_message.instance_offset
  9581. self.target_system = target_system
  9582. self.target_component = target_component
  9583. self.seq = seq
  9584. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9585. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.seq, self.target_system, self.target_component), force_mavlink1=force_mavlink1)
  9586. # Define name on the class for backwards compatibility (it is now msgname).
  9587. # Done with setattr to hide the class variable from mypy.
  9588. setattr(MAVLink_mission_set_current_message, "name", mavlink_msg_deprecated_name_property())
  9589. class MAVLink_mission_current_message(MAVLink_message):
  9590. """
  9591. Message that announces the sequence number of the current target
  9592. mission item (that the system will fly towards/execute when the
  9593. mission is running). This message should be streamed all
  9594. the time (nominally at 1Hz). This message should be
  9595. emitted following a call to MAV_CMD_DO_SET_MISSION_CURRENT or
  9596. SET_MISSION_CURRENT.
  9597. """
  9598. id = MAVLINK_MSG_ID_MISSION_CURRENT
  9599. msgname = "MISSION_CURRENT"
  9600. fieldnames = ["seq", "total", "mission_state", "mission_mode", "mission_id", "fence_id", "rally_points_id"]
  9601. ordered_fieldnames = ["seq", "total", "mission_state", "mission_mode", "mission_id", "fence_id", "rally_points_id"]
  9602. fieldtypes = ["uint16_t", "uint16_t", "uint8_t", "uint8_t", "uint32_t", "uint32_t", "uint32_t"]
  9603. fielddisplays_by_name: Dict[str, str] = {}
  9604. fieldenums_by_name: Dict[str, str] = {"mission_state": "MISSION_STATE"}
  9605. fieldunits_by_name: Dict[str, str] = {}
  9606. native_format = bytearray(b"<HHBBIII")
  9607. orders = [0, 1, 2, 3, 4, 5, 6]
  9608. lengths = [1, 1, 1, 1, 1, 1, 1]
  9609. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  9610. crc_extra = 28
  9611. unpacker = struct.Struct("<HHBBIII")
  9612. instance_field = None
  9613. instance_offset = -1
  9614. def __init__(self, seq: int, total: int = 0, mission_state: int = 0, mission_mode: int = 0, mission_id: int = 0, fence_id: int = 0, rally_points_id: int = 0):
  9615. MAVLink_message.__init__(self, MAVLink_mission_current_message.id, MAVLink_mission_current_message.msgname)
  9616. self._fieldnames = MAVLink_mission_current_message.fieldnames
  9617. self._instance_field = MAVLink_mission_current_message.instance_field
  9618. self._instance_offset = MAVLink_mission_current_message.instance_offset
  9619. self.seq = seq
  9620. self.total = total
  9621. self.mission_state = mission_state
  9622. self.mission_mode = mission_mode
  9623. self.mission_id = mission_id
  9624. self.fence_id = fence_id
  9625. self.rally_points_id = rally_points_id
  9626. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9627. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.seq, self.total, self.mission_state, self.mission_mode, self.mission_id, self.fence_id, self.rally_points_id), force_mavlink1=force_mavlink1)
  9628. # Define name on the class for backwards compatibility (it is now msgname).
  9629. # Done with setattr to hide the class variable from mypy.
  9630. setattr(MAVLink_mission_current_message, "name", mavlink_msg_deprecated_name_property())
  9631. class MAVLink_mission_request_list_message(MAVLink_message):
  9632. """
  9633. Request the overall list of mission items from the
  9634. system/component.
  9635. """
  9636. id = MAVLINK_MSG_ID_MISSION_REQUEST_LIST
  9637. msgname = "MISSION_REQUEST_LIST"
  9638. fieldnames = ["target_system", "target_component", "mission_type"]
  9639. ordered_fieldnames = ["target_system", "target_component", "mission_type"]
  9640. fieldtypes = ["uint8_t", "uint8_t", "uint8_t"]
  9641. fielddisplays_by_name: Dict[str, str] = {}
  9642. fieldenums_by_name: Dict[str, str] = {"mission_type": "MAV_MISSION_TYPE"}
  9643. fieldunits_by_name: Dict[str, str] = {}
  9644. native_format = bytearray(b"<BBB")
  9645. orders = [0, 1, 2]
  9646. lengths = [1, 1, 1]
  9647. array_lengths = [0, 0, 0]
  9648. crc_extra = 132
  9649. unpacker = struct.Struct("<BBB")
  9650. instance_field = None
  9651. instance_offset = -1
  9652. def __init__(self, target_system: int, target_component: int, mission_type: int = 0):
  9653. MAVLink_message.__init__(self, MAVLink_mission_request_list_message.id, MAVLink_mission_request_list_message.msgname)
  9654. self._fieldnames = MAVLink_mission_request_list_message.fieldnames
  9655. self._instance_field = MAVLink_mission_request_list_message.instance_field
  9656. self._instance_offset = MAVLink_mission_request_list_message.instance_offset
  9657. self.target_system = target_system
  9658. self.target_component = target_component
  9659. self.mission_type = mission_type
  9660. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9661. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.target_system, self.target_component, self.mission_type), force_mavlink1=force_mavlink1)
  9662. # Define name on the class for backwards compatibility (it is now msgname).
  9663. # Done with setattr to hide the class variable from mypy.
  9664. setattr(MAVLink_mission_request_list_message, "name", mavlink_msg_deprecated_name_property())
  9665. class MAVLink_mission_count_message(MAVLink_message):
  9666. """
  9667. This message is emitted as response to MISSION_REQUEST_LIST by the
  9668. MAV and to initiate a write transaction. The GCS can then request
  9669. the individual mission item based on the knowledge of the total
  9670. number of waypoints.
  9671. """
  9672. id = MAVLINK_MSG_ID_MISSION_COUNT
  9673. msgname = "MISSION_COUNT"
  9674. fieldnames = ["target_system", "target_component", "count", "mission_type", "opaque_id"]
  9675. ordered_fieldnames = ["count", "target_system", "target_component", "mission_type", "opaque_id"]
  9676. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "uint8_t", "uint32_t"]
  9677. fielddisplays_by_name: Dict[str, str] = {}
  9678. fieldenums_by_name: Dict[str, str] = {"mission_type": "MAV_MISSION_TYPE"}
  9679. fieldunits_by_name: Dict[str, str] = {}
  9680. native_format = bytearray(b"<HBBBI")
  9681. orders = [1, 2, 0, 3, 4]
  9682. lengths = [1, 1, 1, 1, 1]
  9683. array_lengths = [0, 0, 0, 0, 0]
  9684. crc_extra = 221
  9685. unpacker = struct.Struct("<HBBBI")
  9686. instance_field = None
  9687. instance_offset = -1
  9688. def __init__(self, target_system: int, target_component: int, count: int, mission_type: int = 0, opaque_id: int = 0):
  9689. MAVLink_message.__init__(self, MAVLink_mission_count_message.id, MAVLink_mission_count_message.msgname)
  9690. self._fieldnames = MAVLink_mission_count_message.fieldnames
  9691. self._instance_field = MAVLink_mission_count_message.instance_field
  9692. self._instance_offset = MAVLink_mission_count_message.instance_offset
  9693. self.target_system = target_system
  9694. self.target_component = target_component
  9695. self.count = count
  9696. self.mission_type = mission_type
  9697. self.opaque_id = opaque_id
  9698. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9699. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.count, self.target_system, self.target_component, self.mission_type, self.opaque_id), force_mavlink1=force_mavlink1)
  9700. # Define name on the class for backwards compatibility (it is now msgname).
  9701. # Done with setattr to hide the class variable from mypy.
  9702. setattr(MAVLink_mission_count_message, "name", mavlink_msg_deprecated_name_property())
  9703. class MAVLink_mission_clear_all_message(MAVLink_message):
  9704. """
  9705. Delete all mission items at once.
  9706. """
  9707. id = MAVLINK_MSG_ID_MISSION_CLEAR_ALL
  9708. msgname = "MISSION_CLEAR_ALL"
  9709. fieldnames = ["target_system", "target_component", "mission_type"]
  9710. ordered_fieldnames = ["target_system", "target_component", "mission_type"]
  9711. fieldtypes = ["uint8_t", "uint8_t", "uint8_t"]
  9712. fielddisplays_by_name: Dict[str, str] = {}
  9713. fieldenums_by_name: Dict[str, str] = {"mission_type": "MAV_MISSION_TYPE"}
  9714. fieldunits_by_name: Dict[str, str] = {}
  9715. native_format = bytearray(b"<BBB")
  9716. orders = [0, 1, 2]
  9717. lengths = [1, 1, 1]
  9718. array_lengths = [0, 0, 0]
  9719. crc_extra = 232
  9720. unpacker = struct.Struct("<BBB")
  9721. instance_field = None
  9722. instance_offset = -1
  9723. def __init__(self, target_system: int, target_component: int, mission_type: int = 0):
  9724. MAVLink_message.__init__(self, MAVLink_mission_clear_all_message.id, MAVLink_mission_clear_all_message.msgname)
  9725. self._fieldnames = MAVLink_mission_clear_all_message.fieldnames
  9726. self._instance_field = MAVLink_mission_clear_all_message.instance_field
  9727. self._instance_offset = MAVLink_mission_clear_all_message.instance_offset
  9728. self.target_system = target_system
  9729. self.target_component = target_component
  9730. self.mission_type = mission_type
  9731. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9732. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.target_system, self.target_component, self.mission_type), force_mavlink1=force_mavlink1)
  9733. # Define name on the class for backwards compatibility (it is now msgname).
  9734. # Done with setattr to hide the class variable from mypy.
  9735. setattr(MAVLink_mission_clear_all_message, "name", mavlink_msg_deprecated_name_property())
  9736. class MAVLink_mission_item_reached_message(MAVLink_message):
  9737. """
  9738. A certain mission item has been reached. The system will either
  9739. hold this position (or circle on the orbit) or (if the
  9740. autocontinue on the WP was set) continue to the next waypoint.
  9741. """
  9742. id = MAVLINK_MSG_ID_MISSION_ITEM_REACHED
  9743. msgname = "MISSION_ITEM_REACHED"
  9744. fieldnames = ["seq"]
  9745. ordered_fieldnames = ["seq"]
  9746. fieldtypes = ["uint16_t"]
  9747. fielddisplays_by_name: Dict[str, str] = {}
  9748. fieldenums_by_name: Dict[str, str] = {}
  9749. fieldunits_by_name: Dict[str, str] = {}
  9750. native_format = bytearray(b"<H")
  9751. orders = [0]
  9752. lengths = [1]
  9753. array_lengths = [0]
  9754. crc_extra = 11
  9755. unpacker = struct.Struct("<H")
  9756. instance_field = None
  9757. instance_offset = -1
  9758. def __init__(self, seq: int):
  9759. MAVLink_message.__init__(self, MAVLink_mission_item_reached_message.id, MAVLink_mission_item_reached_message.msgname)
  9760. self._fieldnames = MAVLink_mission_item_reached_message.fieldnames
  9761. self._instance_field = MAVLink_mission_item_reached_message.instance_field
  9762. self._instance_offset = MAVLink_mission_item_reached_message.instance_offset
  9763. self.seq = seq
  9764. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9765. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.seq), force_mavlink1=force_mavlink1)
  9766. # Define name on the class for backwards compatibility (it is now msgname).
  9767. # Done with setattr to hide the class variable from mypy.
  9768. setattr(MAVLink_mission_item_reached_message, "name", mavlink_msg_deprecated_name_property())
  9769. class MAVLink_mission_ack_message(MAVLink_message):
  9770. """
  9771. Acknowledgment message during waypoint handling. The type field
  9772. states if this message is a positive ack (type=0) or if an error
  9773. happened (type=non-zero).
  9774. """
  9775. id = MAVLINK_MSG_ID_MISSION_ACK
  9776. msgname = "MISSION_ACK"
  9777. fieldnames = ["target_system", "target_component", "type", "mission_type", "opaque_id"]
  9778. ordered_fieldnames = ["target_system", "target_component", "type", "mission_type", "opaque_id"]
  9779. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint32_t"]
  9780. fielddisplays_by_name: Dict[str, str] = {}
  9781. fieldenums_by_name: Dict[str, str] = {"type": "MAV_MISSION_RESULT", "mission_type": "MAV_MISSION_TYPE"}
  9782. fieldunits_by_name: Dict[str, str] = {}
  9783. native_format = bytearray(b"<BBBBI")
  9784. orders = [0, 1, 2, 3, 4]
  9785. lengths = [1, 1, 1, 1, 1]
  9786. array_lengths = [0, 0, 0, 0, 0]
  9787. crc_extra = 153
  9788. unpacker = struct.Struct("<BBBBI")
  9789. instance_field = None
  9790. instance_offset = -1
  9791. def __init__(self, target_system: int, target_component: int, type: int, mission_type: int = 0, opaque_id: int = 0):
  9792. MAVLink_message.__init__(self, MAVLink_mission_ack_message.id, MAVLink_mission_ack_message.msgname)
  9793. self._fieldnames = MAVLink_mission_ack_message.fieldnames
  9794. self._instance_field = MAVLink_mission_ack_message.instance_field
  9795. self._instance_offset = MAVLink_mission_ack_message.instance_offset
  9796. self.target_system = target_system
  9797. self.target_component = target_component
  9798. self.type = type
  9799. self.mission_type = mission_type
  9800. self.opaque_id = opaque_id
  9801. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9802. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.target_system, self.target_component, self.type, self.mission_type, self.opaque_id), force_mavlink1=force_mavlink1)
  9803. # Define name on the class for backwards compatibility (it is now msgname).
  9804. # Done with setattr to hide the class variable from mypy.
  9805. setattr(MAVLink_mission_ack_message, "name", mavlink_msg_deprecated_name_property())
  9806. class MAVLink_set_gps_global_origin_message(MAVLink_message):
  9807. """
  9808. Sets the GPS coordinates of the vehicle local origin (0,0,0)
  9809. position. Vehicle should emit GPS_GLOBAL_ORIGIN irrespective of
  9810. whether the origin is changed. This enables transform between the
  9811. local coordinate frame and the global (GPS) coordinate frame,
  9812. which may be necessary when (for example) indoor and outdoor
  9813. settings are connected and the MAV should move from in- to
  9814. outdoor.
  9815. """
  9816. id = MAVLINK_MSG_ID_SET_GPS_GLOBAL_ORIGIN
  9817. msgname = "SET_GPS_GLOBAL_ORIGIN"
  9818. fieldnames = ["target_system", "latitude", "longitude", "altitude", "time_usec"]
  9819. ordered_fieldnames = ["latitude", "longitude", "altitude", "target_system", "time_usec"]
  9820. fieldtypes = ["uint8_t", "int32_t", "int32_t", "int32_t", "uint64_t"]
  9821. fielddisplays_by_name: Dict[str, str] = {}
  9822. fieldenums_by_name: Dict[str, str] = {}
  9823. fieldunits_by_name: Dict[str, str] = {"latitude": "degE7", "longitude": "degE7", "altitude": "mm", "time_usec": "us"}
  9824. native_format = bytearray(b"<iiiBQ")
  9825. orders = [3, 0, 1, 2, 4]
  9826. lengths = [1, 1, 1, 1, 1]
  9827. array_lengths = [0, 0, 0, 0, 0]
  9828. crc_extra = 41
  9829. unpacker = struct.Struct("<iiiBQ")
  9830. instance_field = None
  9831. instance_offset = -1
  9832. def __init__(self, target_system: int, latitude: int, longitude: int, altitude: int, time_usec: int = 0):
  9833. MAVLink_message.__init__(self, MAVLink_set_gps_global_origin_message.id, MAVLink_set_gps_global_origin_message.msgname)
  9834. self._fieldnames = MAVLink_set_gps_global_origin_message.fieldnames
  9835. self._instance_field = MAVLink_set_gps_global_origin_message.instance_field
  9836. self._instance_offset = MAVLink_set_gps_global_origin_message.instance_offset
  9837. self.target_system = target_system
  9838. self.latitude = latitude
  9839. self.longitude = longitude
  9840. self.altitude = altitude
  9841. self.time_usec = time_usec
  9842. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9843. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.latitude, self.longitude, self.altitude, self.target_system, self.time_usec), force_mavlink1=force_mavlink1)
  9844. # Define name on the class for backwards compatibility (it is now msgname).
  9845. # Done with setattr to hide the class variable from mypy.
  9846. setattr(MAVLink_set_gps_global_origin_message, "name", mavlink_msg_deprecated_name_property())
  9847. class MAVLink_gps_global_origin_message(MAVLink_message):
  9848. """
  9849. Publishes the GPS coordinates of the vehicle local origin (0,0,0)
  9850. position. Emitted whenever a new GPS-Local position mapping is
  9851. requested or set - e.g. following SET_GPS_GLOBAL_ORIGIN message.
  9852. """
  9853. id = MAVLINK_MSG_ID_GPS_GLOBAL_ORIGIN
  9854. msgname = "GPS_GLOBAL_ORIGIN"
  9855. fieldnames = ["latitude", "longitude", "altitude", "time_usec"]
  9856. ordered_fieldnames = ["latitude", "longitude", "altitude", "time_usec"]
  9857. fieldtypes = ["int32_t", "int32_t", "int32_t", "uint64_t"]
  9858. fielddisplays_by_name: Dict[str, str] = {}
  9859. fieldenums_by_name: Dict[str, str] = {}
  9860. fieldunits_by_name: Dict[str, str] = {"latitude": "degE7", "longitude": "degE7", "altitude": "mm", "time_usec": "us"}
  9861. native_format = bytearray(b"<iiiQ")
  9862. orders = [0, 1, 2, 3]
  9863. lengths = [1, 1, 1, 1]
  9864. array_lengths = [0, 0, 0, 0]
  9865. crc_extra = 39
  9866. unpacker = struct.Struct("<iiiQ")
  9867. instance_field = None
  9868. instance_offset = -1
  9869. def __init__(self, latitude: int, longitude: int, altitude: int, time_usec: int = 0):
  9870. MAVLink_message.__init__(self, MAVLink_gps_global_origin_message.id, MAVLink_gps_global_origin_message.msgname)
  9871. self._fieldnames = MAVLink_gps_global_origin_message.fieldnames
  9872. self._instance_field = MAVLink_gps_global_origin_message.instance_field
  9873. self._instance_offset = MAVLink_gps_global_origin_message.instance_offset
  9874. self.latitude = latitude
  9875. self.longitude = longitude
  9876. self.altitude = altitude
  9877. self.time_usec = time_usec
  9878. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9879. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.latitude, self.longitude, self.altitude, self.time_usec), force_mavlink1=force_mavlink1)
  9880. # Define name on the class for backwards compatibility (it is now msgname).
  9881. # Done with setattr to hide the class variable from mypy.
  9882. setattr(MAVLink_gps_global_origin_message, "name", mavlink_msg_deprecated_name_property())
  9883. class MAVLink_param_map_rc_message(MAVLink_message):
  9884. """
  9885. Bind a RC channel to a parameter. The parameter should change
  9886. according to the RC channel value.
  9887. """
  9888. id = MAVLINK_MSG_ID_PARAM_MAP_RC
  9889. msgname = "PARAM_MAP_RC"
  9890. fieldnames = ["target_system", "target_component", "param_id", "param_index", "parameter_rc_channel_index", "param_value0", "scale", "param_value_min", "param_value_max"]
  9891. ordered_fieldnames = ["param_value0", "scale", "param_value_min", "param_value_max", "param_index", "target_system", "target_component", "param_id", "parameter_rc_channel_index"]
  9892. fieldtypes = ["uint8_t", "uint8_t", "char", "int16_t", "uint8_t", "float", "float", "float", "float"]
  9893. fielddisplays_by_name: Dict[str, str] = {}
  9894. fieldenums_by_name: Dict[str, str] = {}
  9895. fieldunits_by_name: Dict[str, str] = {}
  9896. native_format = bytearray(b"<ffffhBBcB")
  9897. orders = [5, 6, 7, 4, 8, 0, 1, 2, 3]
  9898. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1]
  9899. array_lengths = [0, 0, 0, 0, 0, 0, 0, 16, 0]
  9900. crc_extra = 78
  9901. unpacker = struct.Struct("<ffffhBB16sB")
  9902. instance_field = None
  9903. instance_offset = -1
  9904. def __init__(self, target_system: int, target_component: int, param_id: bytes, param_index: int, parameter_rc_channel_index: int, param_value0: float, scale: float, param_value_min: float, param_value_max: float):
  9905. MAVLink_message.__init__(self, MAVLink_param_map_rc_message.id, MAVLink_param_map_rc_message.msgname)
  9906. self._fieldnames = MAVLink_param_map_rc_message.fieldnames
  9907. self._instance_field = MAVLink_param_map_rc_message.instance_field
  9908. self._instance_offset = MAVLink_param_map_rc_message.instance_offset
  9909. self.target_system = target_system
  9910. self.target_component = target_component
  9911. self._param_id_raw = param_id
  9912. self.param_id = param_id.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  9913. self.param_index = param_index
  9914. self.parameter_rc_channel_index = parameter_rc_channel_index
  9915. self.param_value0 = param_value0
  9916. self.scale = scale
  9917. self.param_value_min = param_value_min
  9918. self.param_value_max = param_value_max
  9919. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9920. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.param_value0, self.scale, self.param_value_min, self.param_value_max, self.param_index, self.target_system, self.target_component, self._param_id_raw, self.parameter_rc_channel_index), force_mavlink1=force_mavlink1)
  9921. # Define name on the class for backwards compatibility (it is now msgname).
  9922. # Done with setattr to hide the class variable from mypy.
  9923. setattr(MAVLink_param_map_rc_message, "name", mavlink_msg_deprecated_name_property())
  9924. class MAVLink_mission_request_int_message(MAVLink_message):
  9925. """
  9926. Request the information of the mission item with the sequence
  9927. number seq. The response of the system to this message should be a
  9928. MISSION_ITEM_INT message.
  9929. https://mavlink.io/en/services/mission.html
  9930. """
  9931. id = MAVLINK_MSG_ID_MISSION_REQUEST_INT
  9932. msgname = "MISSION_REQUEST_INT"
  9933. fieldnames = ["target_system", "target_component", "seq", "mission_type"]
  9934. ordered_fieldnames = ["seq", "target_system", "target_component", "mission_type"]
  9935. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "uint8_t"]
  9936. fielddisplays_by_name: Dict[str, str] = {}
  9937. fieldenums_by_name: Dict[str, str] = {"mission_type": "MAV_MISSION_TYPE"}
  9938. fieldunits_by_name: Dict[str, str] = {}
  9939. native_format = bytearray(b"<HBBB")
  9940. orders = [1, 2, 0, 3]
  9941. lengths = [1, 1, 1, 1]
  9942. array_lengths = [0, 0, 0, 0]
  9943. crc_extra = 196
  9944. unpacker = struct.Struct("<HBBB")
  9945. instance_field = None
  9946. instance_offset = -1
  9947. def __init__(self, target_system: int, target_component: int, seq: int, mission_type: int = 0):
  9948. MAVLink_message.__init__(self, MAVLink_mission_request_int_message.id, MAVLink_mission_request_int_message.msgname)
  9949. self._fieldnames = MAVLink_mission_request_int_message.fieldnames
  9950. self._instance_field = MAVLink_mission_request_int_message.instance_field
  9951. self._instance_offset = MAVLink_mission_request_int_message.instance_offset
  9952. self.target_system = target_system
  9953. self.target_component = target_component
  9954. self.seq = seq
  9955. self.mission_type = mission_type
  9956. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9957. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.seq, self.target_system, self.target_component, self.mission_type), force_mavlink1=force_mavlink1)
  9958. # Define name on the class for backwards compatibility (it is now msgname).
  9959. # Done with setattr to hide the class variable from mypy.
  9960. setattr(MAVLink_mission_request_int_message, "name", mavlink_msg_deprecated_name_property())
  9961. class MAVLink_safety_set_allowed_area_message(MAVLink_message):
  9962. """
  9963. Set a safety zone (volume), which is defined by two corners of a
  9964. cube. This message can be used to tell the MAV which
  9965. setpoints/waypoints to accept and which to reject. Safety areas
  9966. are often enforced by national or competition regulations.
  9967. """
  9968. id = MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA
  9969. msgname = "SAFETY_SET_ALLOWED_AREA"
  9970. fieldnames = ["target_system", "target_component", "frame", "p1x", "p1y", "p1z", "p2x", "p2y", "p2z"]
  9971. ordered_fieldnames = ["p1x", "p1y", "p1z", "p2x", "p2y", "p2z", "target_system", "target_component", "frame"]
  9972. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "float", "float", "float", "float", "float", "float"]
  9973. fielddisplays_by_name: Dict[str, str] = {}
  9974. fieldenums_by_name: Dict[str, str] = {"frame": "MAV_FRAME"}
  9975. fieldunits_by_name: Dict[str, str] = {"p1x": "m", "p1y": "m", "p1z": "m", "p2x": "m", "p2y": "m", "p2z": "m"}
  9976. native_format = bytearray(b"<ffffffBBB")
  9977. orders = [6, 7, 8, 0, 1, 2, 3, 4, 5]
  9978. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1]
  9979. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0]
  9980. crc_extra = 15
  9981. unpacker = struct.Struct("<ffffffBBB")
  9982. instance_field = None
  9983. instance_offset = -1
  9984. def __init__(self, target_system: int, target_component: int, frame: int, p1x: float, p1y: float, p1z: float, p2x: float, p2y: float, p2z: float):
  9985. MAVLink_message.__init__(self, MAVLink_safety_set_allowed_area_message.id, MAVLink_safety_set_allowed_area_message.msgname)
  9986. self._fieldnames = MAVLink_safety_set_allowed_area_message.fieldnames
  9987. self._instance_field = MAVLink_safety_set_allowed_area_message.instance_field
  9988. self._instance_offset = MAVLink_safety_set_allowed_area_message.instance_offset
  9989. self.target_system = target_system
  9990. self.target_component = target_component
  9991. self.frame = frame
  9992. self.p1x = p1x
  9993. self.p1y = p1y
  9994. self.p1z = p1z
  9995. self.p2x = p2x
  9996. self.p2y = p2y
  9997. self.p2z = p2z
  9998. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9999. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.p1x, self.p1y, self.p1z, self.p2x, self.p2y, self.p2z, self.target_system, self.target_component, self.frame), force_mavlink1=force_mavlink1)
  10000. # Define name on the class for backwards compatibility (it is now msgname).
  10001. # Done with setattr to hide the class variable from mypy.
  10002. setattr(MAVLink_safety_set_allowed_area_message, "name", mavlink_msg_deprecated_name_property())
  10003. class MAVLink_safety_allowed_area_message(MAVLink_message):
  10004. """
  10005. Read out the safety zone the MAV currently assumes.
  10006. """
  10007. id = MAVLINK_MSG_ID_SAFETY_ALLOWED_AREA
  10008. msgname = "SAFETY_ALLOWED_AREA"
  10009. fieldnames = ["frame", "p1x", "p1y", "p1z", "p2x", "p2y", "p2z"]
  10010. ordered_fieldnames = ["p1x", "p1y", "p1z", "p2x", "p2y", "p2z", "frame"]
  10011. fieldtypes = ["uint8_t", "float", "float", "float", "float", "float", "float"]
  10012. fielddisplays_by_name: Dict[str, str] = {}
  10013. fieldenums_by_name: Dict[str, str] = {"frame": "MAV_FRAME"}
  10014. fieldunits_by_name: Dict[str, str] = {"p1x": "m", "p1y": "m", "p1z": "m", "p2x": "m", "p2y": "m", "p2z": "m"}
  10015. native_format = bytearray(b"<ffffffB")
  10016. orders = [6, 0, 1, 2, 3, 4, 5]
  10017. lengths = [1, 1, 1, 1, 1, 1, 1]
  10018. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  10019. crc_extra = 3
  10020. unpacker = struct.Struct("<ffffffB")
  10021. instance_field = None
  10022. instance_offset = -1
  10023. def __init__(self, frame: int, p1x: float, p1y: float, p1z: float, p2x: float, p2y: float, p2z: float):
  10024. MAVLink_message.__init__(self, MAVLink_safety_allowed_area_message.id, MAVLink_safety_allowed_area_message.msgname)
  10025. self._fieldnames = MAVLink_safety_allowed_area_message.fieldnames
  10026. self._instance_field = MAVLink_safety_allowed_area_message.instance_field
  10027. self._instance_offset = MAVLink_safety_allowed_area_message.instance_offset
  10028. self.frame = frame
  10029. self.p1x = p1x
  10030. self.p1y = p1y
  10031. self.p1z = p1z
  10032. self.p2x = p2x
  10033. self.p2y = p2y
  10034. self.p2z = p2z
  10035. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10036. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.p1x, self.p1y, self.p1z, self.p2x, self.p2y, self.p2z, self.frame), force_mavlink1=force_mavlink1)
  10037. # Define name on the class for backwards compatibility (it is now msgname).
  10038. # Done with setattr to hide the class variable from mypy.
  10039. setattr(MAVLink_safety_allowed_area_message, "name", mavlink_msg_deprecated_name_property())
  10040. class MAVLink_attitude_quaternion_cov_message(MAVLink_message):
  10041. """
  10042. The attitude in the aeronautical frame (right-handed, Z-down,
  10043. X-front, Y-right), expressed as quaternion. Quaternion order is w,
  10044. x, y, z and a zero rotation would be expressed as (1 0 0 0).
  10045. """
  10046. id = MAVLINK_MSG_ID_ATTITUDE_QUATERNION_COV
  10047. msgname = "ATTITUDE_QUATERNION_COV"
  10048. fieldnames = ["time_usec", "q", "rollspeed", "pitchspeed", "yawspeed", "covariance"]
  10049. ordered_fieldnames = ["time_usec", "q", "rollspeed", "pitchspeed", "yawspeed", "covariance"]
  10050. fieldtypes = ["uint64_t", "float", "float", "float", "float", "float"]
  10051. fielddisplays_by_name: Dict[str, str] = {}
  10052. fieldenums_by_name: Dict[str, str] = {}
  10053. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "rollspeed": "rad/s", "pitchspeed": "rad/s", "yawspeed": "rad/s"}
  10054. native_format = bytearray(b"<Qfffff")
  10055. orders = [0, 1, 2, 3, 4, 5]
  10056. lengths = [1, 4, 1, 1, 1, 9]
  10057. array_lengths = [0, 4, 0, 0, 0, 9]
  10058. crc_extra = 167
  10059. unpacker = struct.Struct("<Q4ffff9f")
  10060. instance_field = None
  10061. instance_offset = -1
  10062. def __init__(self, time_usec: int, q: Sequence[float], rollspeed: float, pitchspeed: float, yawspeed: float, covariance: Sequence[float]):
  10063. MAVLink_message.__init__(self, MAVLink_attitude_quaternion_cov_message.id, MAVLink_attitude_quaternion_cov_message.msgname)
  10064. self._fieldnames = MAVLink_attitude_quaternion_cov_message.fieldnames
  10065. self._instance_field = MAVLink_attitude_quaternion_cov_message.instance_field
  10066. self._instance_offset = MAVLink_attitude_quaternion_cov_message.instance_offset
  10067. self.time_usec = time_usec
  10068. self.q = q
  10069. self.rollspeed = rollspeed
  10070. self.pitchspeed = pitchspeed
  10071. self.yawspeed = yawspeed
  10072. self.covariance = covariance
  10073. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10074. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.q[0], self.q[1], self.q[2], self.q[3], self.rollspeed, self.pitchspeed, self.yawspeed, self.covariance[0], self.covariance[1], self.covariance[2], self.covariance[3], self.covariance[4], self.covariance[5], self.covariance[6], self.covariance[7], self.covariance[8]), force_mavlink1=force_mavlink1)
  10075. # Define name on the class for backwards compatibility (it is now msgname).
  10076. # Done with setattr to hide the class variable from mypy.
  10077. setattr(MAVLink_attitude_quaternion_cov_message, "name", mavlink_msg_deprecated_name_property())
  10078. class MAVLink_nav_controller_output_message(MAVLink_message):
  10079. """
  10080. The state of the navigation and position controller.
  10081. """
  10082. id = MAVLINK_MSG_ID_NAV_CONTROLLER_OUTPUT
  10083. msgname = "NAV_CONTROLLER_OUTPUT"
  10084. fieldnames = ["nav_roll", "nav_pitch", "nav_bearing", "target_bearing", "wp_dist", "alt_error", "aspd_error", "xtrack_error"]
  10085. ordered_fieldnames = ["nav_roll", "nav_pitch", "alt_error", "aspd_error", "xtrack_error", "nav_bearing", "target_bearing", "wp_dist"]
  10086. fieldtypes = ["float", "float", "int16_t", "int16_t", "uint16_t", "float", "float", "float"]
  10087. fielddisplays_by_name: Dict[str, str] = {}
  10088. fieldenums_by_name: Dict[str, str] = {}
  10089. fieldunits_by_name: Dict[str, str] = {"nav_roll": "deg", "nav_pitch": "deg", "nav_bearing": "deg", "target_bearing": "deg", "wp_dist": "m", "alt_error": "m", "aspd_error": "m/s", "xtrack_error": "m"}
  10090. native_format = bytearray(b"<fffffhhH")
  10091. orders = [0, 1, 5, 6, 7, 2, 3, 4]
  10092. lengths = [1, 1, 1, 1, 1, 1, 1, 1]
  10093. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0]
  10094. crc_extra = 183
  10095. unpacker = struct.Struct("<fffffhhH")
  10096. instance_field = None
  10097. instance_offset = -1
  10098. def __init__(self, nav_roll: float, nav_pitch: float, nav_bearing: int, target_bearing: int, wp_dist: int, alt_error: float, aspd_error: float, xtrack_error: float):
  10099. MAVLink_message.__init__(self, MAVLink_nav_controller_output_message.id, MAVLink_nav_controller_output_message.msgname)
  10100. self._fieldnames = MAVLink_nav_controller_output_message.fieldnames
  10101. self._instance_field = MAVLink_nav_controller_output_message.instance_field
  10102. self._instance_offset = MAVLink_nav_controller_output_message.instance_offset
  10103. self.nav_roll = nav_roll
  10104. self.nav_pitch = nav_pitch
  10105. self.nav_bearing = nav_bearing
  10106. self.target_bearing = target_bearing
  10107. self.wp_dist = wp_dist
  10108. self.alt_error = alt_error
  10109. self.aspd_error = aspd_error
  10110. self.xtrack_error = xtrack_error
  10111. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10112. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.nav_roll, self.nav_pitch, self.alt_error, self.aspd_error, self.xtrack_error, self.nav_bearing, self.target_bearing, self.wp_dist), force_mavlink1=force_mavlink1)
  10113. # Define name on the class for backwards compatibility (it is now msgname).
  10114. # Done with setattr to hide the class variable from mypy.
  10115. setattr(MAVLink_nav_controller_output_message, "name", mavlink_msg_deprecated_name_property())
  10116. class MAVLink_global_position_int_cov_message(MAVLink_message):
  10117. """
  10118. The filtered global position (e.g. fused GPS and accelerometers).
  10119. The position is in GPS-frame (right-handed, Z-up). It is designed
  10120. as scaled integer message since the resolution of float is not
  10121. sufficient. NOTE: This message is intended for onboard networks /
  10122. companion computers and higher-bandwidth links and optimized for
  10123. accuracy and completeness. Please use the GLOBAL_POSITION_INT
  10124. message for a minimal subset.
  10125. """
  10126. id = MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV
  10127. msgname = "GLOBAL_POSITION_INT_COV"
  10128. fieldnames = ["time_usec", "estimator_type", "lat", "lon", "alt", "relative_alt", "vx", "vy", "vz", "covariance"]
  10129. ordered_fieldnames = ["time_usec", "lat", "lon", "alt", "relative_alt", "vx", "vy", "vz", "covariance", "estimator_type"]
  10130. fieldtypes = ["uint64_t", "uint8_t", "int32_t", "int32_t", "int32_t", "int32_t", "float", "float", "float", "float"]
  10131. fielddisplays_by_name: Dict[str, str] = {}
  10132. fieldenums_by_name: Dict[str, str] = {"estimator_type": "MAV_ESTIMATOR_TYPE"}
  10133. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "lat": "degE7", "lon": "degE7", "alt": "mm", "relative_alt": "mm", "vx": "m/s", "vy": "m/s", "vz": "m/s"}
  10134. native_format = bytearray(b"<QiiiiffffB")
  10135. orders = [0, 9, 1, 2, 3, 4, 5, 6, 7, 8]
  10136. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 36, 1]
  10137. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 36, 0]
  10138. crc_extra = 119
  10139. unpacker = struct.Struct("<Qiiiifff36fB")
  10140. instance_field = None
  10141. instance_offset = -1
  10142. def __init__(self, time_usec: int, estimator_type: int, lat: int, lon: int, alt: int, relative_alt: int, vx: float, vy: float, vz: float, covariance: Sequence[float]):
  10143. MAVLink_message.__init__(self, MAVLink_global_position_int_cov_message.id, MAVLink_global_position_int_cov_message.msgname)
  10144. self._fieldnames = MAVLink_global_position_int_cov_message.fieldnames
  10145. self._instance_field = MAVLink_global_position_int_cov_message.instance_field
  10146. self._instance_offset = MAVLink_global_position_int_cov_message.instance_offset
  10147. self.time_usec = time_usec
  10148. self.estimator_type = estimator_type
  10149. self.lat = lat
  10150. self.lon = lon
  10151. self.alt = alt
  10152. self.relative_alt = relative_alt
  10153. self.vx = vx
  10154. self.vy = vy
  10155. self.vz = vz
  10156. self.covariance = covariance
  10157. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10158. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.lat, self.lon, self.alt, self.relative_alt, self.vx, self.vy, self.vz, self.covariance[0], self.covariance[1], self.covariance[2], self.covariance[3], self.covariance[4], self.covariance[5], self.covariance[6], self.covariance[7], self.covariance[8], self.covariance[9], self.covariance[10], self.covariance[11], self.covariance[12], self.covariance[13], self.covariance[14], self.covariance[15], self.covariance[16], self.covariance[17], self.covariance[18], self.covariance[19], self.covariance[20], self.covariance[21], self.covariance[22], self.covariance[23], self.covariance[24], self.covariance[25], self.covariance[26], self.covariance[27], self.covariance[28], self.covariance[29], self.covariance[30], self.covariance[31], self.covariance[32], self.covariance[33], self.covariance[34], self.covariance[35], self.estimator_type), force_mavlink1=force_mavlink1)
  10159. # Define name on the class for backwards compatibility (it is now msgname).
  10160. # Done with setattr to hide the class variable from mypy.
  10161. setattr(MAVLink_global_position_int_cov_message, "name", mavlink_msg_deprecated_name_property())
  10162. class MAVLink_local_position_ned_cov_message(MAVLink_message):
  10163. """
  10164. The filtered local position (e.g. fused computer vision and
  10165. accelerometers). Coordinate frame is right-handed, Z-axis down
  10166. (aeronautical frame, NED / north-east-down convention)
  10167. """
  10168. id = MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV
  10169. msgname = "LOCAL_POSITION_NED_COV"
  10170. fieldnames = ["time_usec", "estimator_type", "x", "y", "z", "vx", "vy", "vz", "ax", "ay", "az", "covariance"]
  10171. ordered_fieldnames = ["time_usec", "x", "y", "z", "vx", "vy", "vz", "ax", "ay", "az", "covariance", "estimator_type"]
  10172. fieldtypes = ["uint64_t", "uint8_t", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float"]
  10173. fielddisplays_by_name: Dict[str, str] = {}
  10174. fieldenums_by_name: Dict[str, str] = {"estimator_type": "MAV_ESTIMATOR_TYPE"}
  10175. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "x": "m", "y": "m", "z": "m", "vx": "m/s", "vy": "m/s", "vz": "m/s", "ax": "m/s/s", "ay": "m/s/s", "az": "m/s/s"}
  10176. native_format = bytearray(b"<QffffffffffB")
  10177. orders = [0, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
  10178. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 45, 1]
  10179. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 0]
  10180. crc_extra = 191
  10181. unpacker = struct.Struct("<Qfffffffff45fB")
  10182. instance_field = None
  10183. instance_offset = -1
  10184. def __init__(self, time_usec: int, estimator_type: int, x: float, y: float, z: float, vx: float, vy: float, vz: float, ax: float, ay: float, az: float, covariance: Sequence[float]):
  10185. MAVLink_message.__init__(self, MAVLink_local_position_ned_cov_message.id, MAVLink_local_position_ned_cov_message.msgname)
  10186. self._fieldnames = MAVLink_local_position_ned_cov_message.fieldnames
  10187. self._instance_field = MAVLink_local_position_ned_cov_message.instance_field
  10188. self._instance_offset = MAVLink_local_position_ned_cov_message.instance_offset
  10189. self.time_usec = time_usec
  10190. self.estimator_type = estimator_type
  10191. self.x = x
  10192. self.y = y
  10193. self.z = z
  10194. self.vx = vx
  10195. self.vy = vy
  10196. self.vz = vz
  10197. self.ax = ax
  10198. self.ay = ay
  10199. self.az = az
  10200. self.covariance = covariance
  10201. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10202. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.x, self.y, self.z, self.vx, self.vy, self.vz, self.ax, self.ay, self.az, self.covariance[0], self.covariance[1], self.covariance[2], self.covariance[3], self.covariance[4], self.covariance[5], self.covariance[6], self.covariance[7], self.covariance[8], self.covariance[9], self.covariance[10], self.covariance[11], self.covariance[12], self.covariance[13], self.covariance[14], self.covariance[15], self.covariance[16], self.covariance[17], self.covariance[18], self.covariance[19], self.covariance[20], self.covariance[21], self.covariance[22], self.covariance[23], self.covariance[24], self.covariance[25], self.covariance[26], self.covariance[27], self.covariance[28], self.covariance[29], self.covariance[30], self.covariance[31], self.covariance[32], self.covariance[33], self.covariance[34], self.covariance[35], self.covariance[36], self.covariance[37], self.covariance[38], self.covariance[39], self.covariance[40], self.covariance[41], self.covariance[42], self.covariance[43], self.covariance[44], self.estimator_type), force_mavlink1=force_mavlink1)
  10203. # Define name on the class for backwards compatibility (it is now msgname).
  10204. # Done with setattr to hide the class variable from mypy.
  10205. setattr(MAVLink_local_position_ned_cov_message, "name", mavlink_msg_deprecated_name_property())
  10206. class MAVLink_rc_channels_message(MAVLink_message):
  10207. """
  10208. The PPM values of the RC channels received. The standard PPM
  10209. modulation is as follows: 1000 microseconds: 0%, 2000
  10210. microseconds: 100%. A value of UINT16_MAX implies the channel is
  10211. unused. Individual receivers/transmitters might violate this
  10212. specification.
  10213. """
  10214. id = MAVLINK_MSG_ID_RC_CHANNELS
  10215. msgname = "RC_CHANNELS"
  10216. fieldnames = ["time_boot_ms", "chancount", "chan1_raw", "chan2_raw", "chan3_raw", "chan4_raw", "chan5_raw", "chan6_raw", "chan7_raw", "chan8_raw", "chan9_raw", "chan10_raw", "chan11_raw", "chan12_raw", "chan13_raw", "chan14_raw", "chan15_raw", "chan16_raw", "chan17_raw", "chan18_raw", "rssi"]
  10217. ordered_fieldnames = ["time_boot_ms", "chan1_raw", "chan2_raw", "chan3_raw", "chan4_raw", "chan5_raw", "chan6_raw", "chan7_raw", "chan8_raw", "chan9_raw", "chan10_raw", "chan11_raw", "chan12_raw", "chan13_raw", "chan14_raw", "chan15_raw", "chan16_raw", "chan17_raw", "chan18_raw", "chancount", "rssi"]
  10218. fieldtypes = ["uint32_t", "uint8_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint8_t"]
  10219. fielddisplays_by_name: Dict[str, str] = {}
  10220. fieldenums_by_name: Dict[str, str] = {}
  10221. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "chan1_raw": "us", "chan2_raw": "us", "chan3_raw": "us", "chan4_raw": "us", "chan5_raw": "us", "chan6_raw": "us", "chan7_raw": "us", "chan8_raw": "us", "chan9_raw": "us", "chan10_raw": "us", "chan11_raw": "us", "chan12_raw": "us", "chan13_raw": "us", "chan14_raw": "us", "chan15_raw": "us", "chan16_raw": "us", "chan17_raw": "us", "chan18_raw": "us"}
  10222. native_format = bytearray(b"<IHHHHHHHHHHHHHHHHHHBB")
  10223. orders = [0, 19, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20]
  10224. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  10225. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  10226. crc_extra = 118
  10227. unpacker = struct.Struct("<IHHHHHHHHHHHHHHHHHHBB")
  10228. instance_field = None
  10229. instance_offset = -1
  10230. def __init__(self, time_boot_ms: int, chancount: int, chan1_raw: int, chan2_raw: int, chan3_raw: int, chan4_raw: int, chan5_raw: int, chan6_raw: int, chan7_raw: int, chan8_raw: int, chan9_raw: int, chan10_raw: int, chan11_raw: int, chan12_raw: int, chan13_raw: int, chan14_raw: int, chan15_raw: int, chan16_raw: int, chan17_raw: int, chan18_raw: int, rssi: int):
  10231. MAVLink_message.__init__(self, MAVLink_rc_channels_message.id, MAVLink_rc_channels_message.msgname)
  10232. self._fieldnames = MAVLink_rc_channels_message.fieldnames
  10233. self._instance_field = MAVLink_rc_channels_message.instance_field
  10234. self._instance_offset = MAVLink_rc_channels_message.instance_offset
  10235. self.time_boot_ms = time_boot_ms
  10236. self.chancount = chancount
  10237. self.chan1_raw = chan1_raw
  10238. self.chan2_raw = chan2_raw
  10239. self.chan3_raw = chan3_raw
  10240. self.chan4_raw = chan4_raw
  10241. self.chan5_raw = chan5_raw
  10242. self.chan6_raw = chan6_raw
  10243. self.chan7_raw = chan7_raw
  10244. self.chan8_raw = chan8_raw
  10245. self.chan9_raw = chan9_raw
  10246. self.chan10_raw = chan10_raw
  10247. self.chan11_raw = chan11_raw
  10248. self.chan12_raw = chan12_raw
  10249. self.chan13_raw = chan13_raw
  10250. self.chan14_raw = chan14_raw
  10251. self.chan15_raw = chan15_raw
  10252. self.chan16_raw = chan16_raw
  10253. self.chan17_raw = chan17_raw
  10254. self.chan18_raw = chan18_raw
  10255. self.rssi = rssi
  10256. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10257. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.chan1_raw, self.chan2_raw, self.chan3_raw, self.chan4_raw, self.chan5_raw, self.chan6_raw, self.chan7_raw, self.chan8_raw, self.chan9_raw, self.chan10_raw, self.chan11_raw, self.chan12_raw, self.chan13_raw, self.chan14_raw, self.chan15_raw, self.chan16_raw, self.chan17_raw, self.chan18_raw, self.chancount, self.rssi), force_mavlink1=force_mavlink1)
  10258. # Define name on the class for backwards compatibility (it is now msgname).
  10259. # Done with setattr to hide the class variable from mypy.
  10260. setattr(MAVLink_rc_channels_message, "name", mavlink_msg_deprecated_name_property())
  10261. class MAVLink_request_data_stream_message(MAVLink_message):
  10262. """
  10263. Request a data stream.
  10264. """
  10265. id = MAVLINK_MSG_ID_REQUEST_DATA_STREAM
  10266. msgname = "REQUEST_DATA_STREAM"
  10267. fieldnames = ["target_system", "target_component", "req_stream_id", "req_message_rate", "start_stop"]
  10268. ordered_fieldnames = ["req_message_rate", "target_system", "target_component", "req_stream_id", "start_stop"]
  10269. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint16_t", "uint8_t"]
  10270. fielddisplays_by_name: Dict[str, str] = {}
  10271. fieldenums_by_name: Dict[str, str] = {}
  10272. fieldunits_by_name: Dict[str, str] = {"req_message_rate": "Hz"}
  10273. native_format = bytearray(b"<HBBBB")
  10274. orders = [1, 2, 3, 0, 4]
  10275. lengths = [1, 1, 1, 1, 1]
  10276. array_lengths = [0, 0, 0, 0, 0]
  10277. crc_extra = 148
  10278. unpacker = struct.Struct("<HBBBB")
  10279. instance_field = None
  10280. instance_offset = -1
  10281. def __init__(self, target_system: int, target_component: int, req_stream_id: int, req_message_rate: int, start_stop: int):
  10282. MAVLink_message.__init__(self, MAVLink_request_data_stream_message.id, MAVLink_request_data_stream_message.msgname)
  10283. self._fieldnames = MAVLink_request_data_stream_message.fieldnames
  10284. self._instance_field = MAVLink_request_data_stream_message.instance_field
  10285. self._instance_offset = MAVLink_request_data_stream_message.instance_offset
  10286. self.target_system = target_system
  10287. self.target_component = target_component
  10288. self.req_stream_id = req_stream_id
  10289. self.req_message_rate = req_message_rate
  10290. self.start_stop = start_stop
  10291. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10292. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.req_message_rate, self.target_system, self.target_component, self.req_stream_id, self.start_stop), force_mavlink1=force_mavlink1)
  10293. # Define name on the class for backwards compatibility (it is now msgname).
  10294. # Done with setattr to hide the class variable from mypy.
  10295. setattr(MAVLink_request_data_stream_message, "name", mavlink_msg_deprecated_name_property())
  10296. class MAVLink_data_stream_message(MAVLink_message):
  10297. """
  10298. Data stream status information.
  10299. """
  10300. id = MAVLINK_MSG_ID_DATA_STREAM
  10301. msgname = "DATA_STREAM"
  10302. fieldnames = ["stream_id", "message_rate", "on_off"]
  10303. ordered_fieldnames = ["message_rate", "stream_id", "on_off"]
  10304. fieldtypes = ["uint8_t", "uint16_t", "uint8_t"]
  10305. fielddisplays_by_name: Dict[str, str] = {}
  10306. fieldenums_by_name: Dict[str, str] = {}
  10307. fieldunits_by_name: Dict[str, str] = {"message_rate": "Hz"}
  10308. native_format = bytearray(b"<HBB")
  10309. orders = [1, 0, 2]
  10310. lengths = [1, 1, 1]
  10311. array_lengths = [0, 0, 0]
  10312. crc_extra = 21
  10313. unpacker = struct.Struct("<HBB")
  10314. instance_field = None
  10315. instance_offset = -1
  10316. def __init__(self, stream_id: int, message_rate: int, on_off: int):
  10317. MAVLink_message.__init__(self, MAVLink_data_stream_message.id, MAVLink_data_stream_message.msgname)
  10318. self._fieldnames = MAVLink_data_stream_message.fieldnames
  10319. self._instance_field = MAVLink_data_stream_message.instance_field
  10320. self._instance_offset = MAVLink_data_stream_message.instance_offset
  10321. self.stream_id = stream_id
  10322. self.message_rate = message_rate
  10323. self.on_off = on_off
  10324. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10325. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.message_rate, self.stream_id, self.on_off), force_mavlink1=force_mavlink1)
  10326. # Define name on the class for backwards compatibility (it is now msgname).
  10327. # Done with setattr to hide the class variable from mypy.
  10328. setattr(MAVLink_data_stream_message, "name", mavlink_msg_deprecated_name_property())
  10329. class MAVLink_manual_control_message(MAVLink_message):
  10330. """
  10331. This message provides an API for manually controlling the vehicle
  10332. using standard joystick axes nomenclature, along with a joystick-
  10333. like input device. Unused axes can be disabled and buttons states
  10334. are transmitted as individual on/off bits of a bitmask
  10335. """
  10336. id = MAVLINK_MSG_ID_MANUAL_CONTROL
  10337. msgname = "MANUAL_CONTROL"
  10338. fieldnames = ["target", "x", "y", "z", "r", "buttons", "buttons2", "enabled_extensions", "s", "t", "aux1", "aux2", "aux3", "aux4", "aux5", "aux6"]
  10339. ordered_fieldnames = ["x", "y", "z", "r", "buttons", "target", "buttons2", "enabled_extensions", "s", "t", "aux1", "aux2", "aux3", "aux4", "aux5", "aux6"]
  10340. fieldtypes = ["uint8_t", "int16_t", "int16_t", "int16_t", "int16_t", "uint16_t", "uint16_t", "uint8_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t"]
  10341. fielddisplays_by_name: Dict[str, str] = {}
  10342. fieldenums_by_name: Dict[str, str] = {}
  10343. fieldunits_by_name: Dict[str, str] = {}
  10344. native_format = bytearray(b"<hhhhHBHBhhhhhhhh")
  10345. orders = [5, 0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
  10346. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  10347. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  10348. crc_extra = 243
  10349. unpacker = struct.Struct("<hhhhHBHBhhhhhhhh")
  10350. instance_field = None
  10351. instance_offset = -1
  10352. def __init__(self, target: int, x: int, y: int, z: int, r: int, buttons: int, buttons2: int = 0, enabled_extensions: int = 0, s: int = 0, t: int = 0, aux1: int = 0, aux2: int = 0, aux3: int = 0, aux4: int = 0, aux5: int = 0, aux6: int = 0):
  10353. MAVLink_message.__init__(self, MAVLink_manual_control_message.id, MAVLink_manual_control_message.msgname)
  10354. self._fieldnames = MAVLink_manual_control_message.fieldnames
  10355. self._instance_field = MAVLink_manual_control_message.instance_field
  10356. self._instance_offset = MAVLink_manual_control_message.instance_offset
  10357. self.target = target
  10358. self.x = x
  10359. self.y = y
  10360. self.z = z
  10361. self.r = r
  10362. self.buttons = buttons
  10363. self.buttons2 = buttons2
  10364. self.enabled_extensions = enabled_extensions
  10365. self.s = s
  10366. self.t = t
  10367. self.aux1 = aux1
  10368. self.aux2 = aux2
  10369. self.aux3 = aux3
  10370. self.aux4 = aux4
  10371. self.aux5 = aux5
  10372. self.aux6 = aux6
  10373. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10374. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.x, self.y, self.z, self.r, self.buttons, self.target, self.buttons2, self.enabled_extensions, self.s, self.t, self.aux1, self.aux2, self.aux3, self.aux4, self.aux5, self.aux6), force_mavlink1=force_mavlink1)
  10375. # Define name on the class for backwards compatibility (it is now msgname).
  10376. # Done with setattr to hide the class variable from mypy.
  10377. setattr(MAVLink_manual_control_message, "name", mavlink_msg_deprecated_name_property())
  10378. class MAVLink_rc_channels_override_message(MAVLink_message):
  10379. """
  10380. The RAW values of the RC channels sent to the MAV to override info
  10381. received from the RC radio. The standard PPM modulation is as
  10382. follows: 1000 microseconds: 0%, 2000 microseconds: 100%.
  10383. Individual receivers/transmitters might violate this
  10384. specification. Note carefully the semantic differences between
  10385. the first 8 channels and the subsequent channels
  10386. """
  10387. id = MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE
  10388. msgname = "RC_CHANNELS_OVERRIDE"
  10389. fieldnames = ["target_system", "target_component", "chan1_raw", "chan2_raw", "chan3_raw", "chan4_raw", "chan5_raw", "chan6_raw", "chan7_raw", "chan8_raw", "chan9_raw", "chan10_raw", "chan11_raw", "chan12_raw", "chan13_raw", "chan14_raw", "chan15_raw", "chan16_raw", "chan17_raw", "chan18_raw"]
  10390. ordered_fieldnames = ["chan1_raw", "chan2_raw", "chan3_raw", "chan4_raw", "chan5_raw", "chan6_raw", "chan7_raw", "chan8_raw", "target_system", "target_component", "chan9_raw", "chan10_raw", "chan11_raw", "chan12_raw", "chan13_raw", "chan14_raw", "chan15_raw", "chan16_raw", "chan17_raw", "chan18_raw"]
  10391. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t"]
  10392. fielddisplays_by_name: Dict[str, str] = {}
  10393. fieldenums_by_name: Dict[str, str] = {}
  10394. fieldunits_by_name: Dict[str, str] = {"chan1_raw": "us", "chan2_raw": "us", "chan3_raw": "us", "chan4_raw": "us", "chan5_raw": "us", "chan6_raw": "us", "chan7_raw": "us", "chan8_raw": "us", "chan9_raw": "us", "chan10_raw": "us", "chan11_raw": "us", "chan12_raw": "us", "chan13_raw": "us", "chan14_raw": "us", "chan15_raw": "us", "chan16_raw": "us", "chan17_raw": "us", "chan18_raw": "us"}
  10395. native_format = bytearray(b"<HHHHHHHHBBHHHHHHHHHH")
  10396. orders = [8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
  10397. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  10398. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  10399. crc_extra = 124
  10400. unpacker = struct.Struct("<HHHHHHHHBBHHHHHHHHHH")
  10401. instance_field = None
  10402. instance_offset = -1
  10403. def __init__(self, target_system: int, target_component: int, chan1_raw: int, chan2_raw: int, chan3_raw: int, chan4_raw: int, chan5_raw: int, chan6_raw: int, chan7_raw: int, chan8_raw: int, chan9_raw: int = 0, chan10_raw: int = 0, chan11_raw: int = 0, chan12_raw: int = 0, chan13_raw: int = 0, chan14_raw: int = 0, chan15_raw: int = 0, chan16_raw: int = 0, chan17_raw: int = 0, chan18_raw: int = 0):
  10404. MAVLink_message.__init__(self, MAVLink_rc_channels_override_message.id, MAVLink_rc_channels_override_message.msgname)
  10405. self._fieldnames = MAVLink_rc_channels_override_message.fieldnames
  10406. self._instance_field = MAVLink_rc_channels_override_message.instance_field
  10407. self._instance_offset = MAVLink_rc_channels_override_message.instance_offset
  10408. self.target_system = target_system
  10409. self.target_component = target_component
  10410. self.chan1_raw = chan1_raw
  10411. self.chan2_raw = chan2_raw
  10412. self.chan3_raw = chan3_raw
  10413. self.chan4_raw = chan4_raw
  10414. self.chan5_raw = chan5_raw
  10415. self.chan6_raw = chan6_raw
  10416. self.chan7_raw = chan7_raw
  10417. self.chan8_raw = chan8_raw
  10418. self.chan9_raw = chan9_raw
  10419. self.chan10_raw = chan10_raw
  10420. self.chan11_raw = chan11_raw
  10421. self.chan12_raw = chan12_raw
  10422. self.chan13_raw = chan13_raw
  10423. self.chan14_raw = chan14_raw
  10424. self.chan15_raw = chan15_raw
  10425. self.chan16_raw = chan16_raw
  10426. self.chan17_raw = chan17_raw
  10427. self.chan18_raw = chan18_raw
  10428. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10429. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.chan1_raw, self.chan2_raw, self.chan3_raw, self.chan4_raw, self.chan5_raw, self.chan6_raw, self.chan7_raw, self.chan8_raw, self.target_system, self.target_component, self.chan9_raw, self.chan10_raw, self.chan11_raw, self.chan12_raw, self.chan13_raw, self.chan14_raw, self.chan15_raw, self.chan16_raw, self.chan17_raw, self.chan18_raw), force_mavlink1=force_mavlink1)
  10430. # Define name on the class for backwards compatibility (it is now msgname).
  10431. # Done with setattr to hide the class variable from mypy.
  10432. setattr(MAVLink_rc_channels_override_message, "name", mavlink_msg_deprecated_name_property())
  10433. class MAVLink_mission_item_int_message(MAVLink_message):
  10434. """
  10435. Message encoding a mission item. This message is emitted to
  10436. announce the presence of a mission item and to set
  10437. a mission item on the system. The mission item can be either in x,
  10438. y, z meters (type: LOCAL) or x:lat, y:lon, z:altitude. Local frame
  10439. is Z-down, right handed (NED), global frame is Z-up, right handed
  10440. (ENU). NaN or INT32_MAX may be used in float/integer params
  10441. (respectively) to indicate optional/default values (e.g. to use
  10442. the component's current latitude, yaw rather than a specific
  10443. value). See also https://mavlink.io/en/services/mission.html.
  10444. """
  10445. id = MAVLINK_MSG_ID_MISSION_ITEM_INT
  10446. msgname = "MISSION_ITEM_INT"
  10447. fieldnames = ["target_system", "target_component", "seq", "frame", "command", "current", "autocontinue", "param1", "param2", "param3", "param4", "x", "y", "z", "mission_type"]
  10448. ordered_fieldnames = ["param1", "param2", "param3", "param4", "x", "y", "z", "seq", "command", "target_system", "target_component", "frame", "current", "autocontinue", "mission_type"]
  10449. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "uint8_t", "uint16_t", "uint8_t", "uint8_t", "float", "float", "float", "float", "int32_t", "int32_t", "float", "uint8_t"]
  10450. fielddisplays_by_name: Dict[str, str] = {}
  10451. fieldenums_by_name: Dict[str, str] = {"frame": "MAV_FRAME", "command": "MAV_CMD", "mission_type": "MAV_MISSION_TYPE"}
  10452. fieldunits_by_name: Dict[str, str] = {}
  10453. native_format = bytearray(b"<ffffiifHHBBBBBB")
  10454. orders = [9, 10, 7, 11, 8, 12, 13, 0, 1, 2, 3, 4, 5, 6, 14]
  10455. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  10456. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  10457. crc_extra = 38
  10458. unpacker = struct.Struct("<ffffiifHHBBBBBB")
  10459. instance_field = None
  10460. instance_offset = -1
  10461. def __init__(self, target_system: int, target_component: int, seq: int, frame: int, command: int, current: int, autocontinue: int, param1: float, param2: float, param3: float, param4: float, x: int, y: int, z: float, mission_type: int = 0):
  10462. MAVLink_message.__init__(self, MAVLink_mission_item_int_message.id, MAVLink_mission_item_int_message.msgname)
  10463. self._fieldnames = MAVLink_mission_item_int_message.fieldnames
  10464. self._instance_field = MAVLink_mission_item_int_message.instance_field
  10465. self._instance_offset = MAVLink_mission_item_int_message.instance_offset
  10466. self.target_system = target_system
  10467. self.target_component = target_component
  10468. self.seq = seq
  10469. self.frame = frame
  10470. self.command = command
  10471. self.current = current
  10472. self.autocontinue = autocontinue
  10473. self.param1 = param1
  10474. self.param2 = param2
  10475. self.param3 = param3
  10476. self.param4 = param4
  10477. self.x = x
  10478. self.y = y
  10479. self.z = z
  10480. self.mission_type = mission_type
  10481. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10482. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.param1, self.param2, self.param3, self.param4, self.x, self.y, self.z, self.seq, self.command, self.target_system, self.target_component, self.frame, self.current, self.autocontinue, self.mission_type), force_mavlink1=force_mavlink1)
  10483. # Define name on the class for backwards compatibility (it is now msgname).
  10484. # Done with setattr to hide the class variable from mypy.
  10485. setattr(MAVLink_mission_item_int_message, "name", mavlink_msg_deprecated_name_property())
  10486. class MAVLink_vfr_hud_message(MAVLink_message):
  10487. """
  10488. Metrics typically displayed on a HUD for fixed wing aircraft.
  10489. """
  10490. id = MAVLINK_MSG_ID_VFR_HUD
  10491. msgname = "VFR_HUD"
  10492. fieldnames = ["airspeed", "groundspeed", "heading", "throttle", "alt", "climb"]
  10493. ordered_fieldnames = ["airspeed", "groundspeed", "alt", "climb", "heading", "throttle"]
  10494. fieldtypes = ["float", "float", "int16_t", "uint16_t", "float", "float"]
  10495. fielddisplays_by_name: Dict[str, str] = {}
  10496. fieldenums_by_name: Dict[str, str] = {}
  10497. fieldunits_by_name: Dict[str, str] = {"airspeed": "m/s", "groundspeed": "m/s", "heading": "deg", "throttle": "%", "alt": "m", "climb": "m/s"}
  10498. native_format = bytearray(b"<ffffhH")
  10499. orders = [0, 1, 4, 5, 2, 3]
  10500. lengths = [1, 1, 1, 1, 1, 1]
  10501. array_lengths = [0, 0, 0, 0, 0, 0]
  10502. crc_extra = 20
  10503. unpacker = struct.Struct("<ffffhH")
  10504. instance_field = None
  10505. instance_offset = -1
  10506. def __init__(self, airspeed: float, groundspeed: float, heading: int, throttle: int, alt: float, climb: float):
  10507. MAVLink_message.__init__(self, MAVLink_vfr_hud_message.id, MAVLink_vfr_hud_message.msgname)
  10508. self._fieldnames = MAVLink_vfr_hud_message.fieldnames
  10509. self._instance_field = MAVLink_vfr_hud_message.instance_field
  10510. self._instance_offset = MAVLink_vfr_hud_message.instance_offset
  10511. self.airspeed = airspeed
  10512. self.groundspeed = groundspeed
  10513. self.heading = heading
  10514. self.throttle = throttle
  10515. self.alt = alt
  10516. self.climb = climb
  10517. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10518. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.airspeed, self.groundspeed, self.alt, self.climb, self.heading, self.throttle), force_mavlink1=force_mavlink1)
  10519. # Define name on the class for backwards compatibility (it is now msgname).
  10520. # Done with setattr to hide the class variable from mypy.
  10521. setattr(MAVLink_vfr_hud_message, "name", mavlink_msg_deprecated_name_property())
  10522. class MAVLink_command_int_message(MAVLink_message):
  10523. """
  10524. Send a command with up to seven parameters to the MAV, where
  10525. params 5 and 6 are integers and the other values are floats. This
  10526. is preferred over COMMAND_LONG as it allows the MAV_FRAME to be
  10527. specified for interpreting positional information, such as
  10528. altitude. COMMAND_INT is also preferred when sending latitude and
  10529. longitude data in params 5 and 6, as it allows for greater
  10530. precision. Param 5 and 6 encode positional data as scaled
  10531. integers, where the scaling depends on the actual command value.
  10532. NaN or INT32_MAX may be used in float/integer params
  10533. (respectively) to indicate optional/default values (e.g. to use
  10534. the component's current latitude, yaw rather than a specific
  10535. value). The command microservice is documented at
  10536. https://mavlink.io/en/services/command.html
  10537. """
  10538. id = MAVLINK_MSG_ID_COMMAND_INT
  10539. msgname = "COMMAND_INT"
  10540. fieldnames = ["target_system", "target_component", "frame", "command", "current", "autocontinue", "param1", "param2", "param3", "param4", "x", "y", "z"]
  10541. ordered_fieldnames = ["param1", "param2", "param3", "param4", "x", "y", "z", "command", "target_system", "target_component", "frame", "current", "autocontinue"]
  10542. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint16_t", "uint8_t", "uint8_t", "float", "float", "float", "float", "int32_t", "int32_t", "float"]
  10543. fielddisplays_by_name: Dict[str, str] = {}
  10544. fieldenums_by_name: Dict[str, str] = {"frame": "MAV_FRAME", "command": "MAV_CMD"}
  10545. fieldunits_by_name: Dict[str, str] = {}
  10546. native_format = bytearray(b"<ffffiifHBBBBB")
  10547. orders = [8, 9, 10, 7, 11, 12, 0, 1, 2, 3, 4, 5, 6]
  10548. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  10549. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  10550. crc_extra = 158
  10551. unpacker = struct.Struct("<ffffiifHBBBBB")
  10552. instance_field = None
  10553. instance_offset = -1
  10554. def __init__(self, target_system: int, target_component: int, frame: int, command: int, current: int, autocontinue: int, param1: float, param2: float, param3: float, param4: float, x: int, y: int, z: float):
  10555. MAVLink_message.__init__(self, MAVLink_command_int_message.id, MAVLink_command_int_message.msgname)
  10556. self._fieldnames = MAVLink_command_int_message.fieldnames
  10557. self._instance_field = MAVLink_command_int_message.instance_field
  10558. self._instance_offset = MAVLink_command_int_message.instance_offset
  10559. self.target_system = target_system
  10560. self.target_component = target_component
  10561. self.frame = frame
  10562. self.command = command
  10563. self.current = current
  10564. self.autocontinue = autocontinue
  10565. self.param1 = param1
  10566. self.param2 = param2
  10567. self.param3 = param3
  10568. self.param4 = param4
  10569. self.x = x
  10570. self.y = y
  10571. self.z = z
  10572. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10573. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.param1, self.param2, self.param3, self.param4, self.x, self.y, self.z, self.command, self.target_system, self.target_component, self.frame, self.current, self.autocontinue), force_mavlink1=force_mavlink1)
  10574. # Define name on the class for backwards compatibility (it is now msgname).
  10575. # Done with setattr to hide the class variable from mypy.
  10576. setattr(MAVLink_command_int_message, "name", mavlink_msg_deprecated_name_property())
  10577. class MAVLink_command_long_message(MAVLink_message):
  10578. """
  10579. Send a command with up to seven parameters to the MAV. COMMAND_INT
  10580. is generally preferred when sending MAV_CMD commands that include
  10581. positional information; it offers higher precision and allows the
  10582. MAV_FRAME to be specified (which may otherwise be ambiguous,
  10583. particularly for altitude). The command microservice is documented
  10584. at https://mavlink.io/en/services/command.html
  10585. """
  10586. id = MAVLINK_MSG_ID_COMMAND_LONG
  10587. msgname = "COMMAND_LONG"
  10588. fieldnames = ["target_system", "target_component", "command", "confirmation", "param1", "param2", "param3", "param4", "param5", "param6", "param7"]
  10589. ordered_fieldnames = ["param1", "param2", "param3", "param4", "param5", "param6", "param7", "command", "target_system", "target_component", "confirmation"]
  10590. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "uint8_t", "float", "float", "float", "float", "float", "float", "float"]
  10591. fielddisplays_by_name: Dict[str, str] = {}
  10592. fieldenums_by_name: Dict[str, str] = {"command": "MAV_CMD"}
  10593. fieldunits_by_name: Dict[str, str] = {}
  10594. native_format = bytearray(b"<fffffffHBBB")
  10595. orders = [8, 9, 7, 10, 0, 1, 2, 3, 4, 5, 6]
  10596. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  10597. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  10598. crc_extra = 152
  10599. unpacker = struct.Struct("<fffffffHBBB")
  10600. instance_field = None
  10601. instance_offset = -1
  10602. def __init__(self, target_system: int, target_component: int, command: int, confirmation: int, param1: float, param2: float, param3: float, param4: float, param5: float, param6: float, param7: float):
  10603. MAVLink_message.__init__(self, MAVLink_command_long_message.id, MAVLink_command_long_message.msgname)
  10604. self._fieldnames = MAVLink_command_long_message.fieldnames
  10605. self._instance_field = MAVLink_command_long_message.instance_field
  10606. self._instance_offset = MAVLink_command_long_message.instance_offset
  10607. self.target_system = target_system
  10608. self.target_component = target_component
  10609. self.command = command
  10610. self.confirmation = confirmation
  10611. self.param1 = param1
  10612. self.param2 = param2
  10613. self.param3 = param3
  10614. self.param4 = param4
  10615. self.param5 = param5
  10616. self.param6 = param6
  10617. self.param7 = param7
  10618. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10619. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.param1, self.param2, self.param3, self.param4, self.param5, self.param6, self.param7, self.command, self.target_system, self.target_component, self.confirmation), force_mavlink1=force_mavlink1)
  10620. # Define name on the class for backwards compatibility (it is now msgname).
  10621. # Done with setattr to hide the class variable from mypy.
  10622. setattr(MAVLink_command_long_message, "name", mavlink_msg_deprecated_name_property())
  10623. class MAVLink_command_ack_message(MAVLink_message):
  10624. """
  10625. Report status of a command. Includes feedback whether the command
  10626. was executed. The command microservice is documented at
  10627. https://mavlink.io/en/services/command.html
  10628. """
  10629. id = MAVLINK_MSG_ID_COMMAND_ACK
  10630. msgname = "COMMAND_ACK"
  10631. fieldnames = ["command", "result", "progress", "result_param2", "target_system", "target_component"]
  10632. ordered_fieldnames = ["command", "result", "progress", "result_param2", "target_system", "target_component"]
  10633. fieldtypes = ["uint16_t", "uint8_t", "uint8_t", "int32_t", "uint8_t", "uint8_t"]
  10634. fielddisplays_by_name: Dict[str, str] = {}
  10635. fieldenums_by_name: Dict[str, str] = {"command": "MAV_CMD", "result": "MAV_RESULT"}
  10636. fieldunits_by_name: Dict[str, str] = {"progress": "%"}
  10637. native_format = bytearray(b"<HBBiBB")
  10638. orders = [0, 1, 2, 3, 4, 5]
  10639. lengths = [1, 1, 1, 1, 1, 1]
  10640. array_lengths = [0, 0, 0, 0, 0, 0]
  10641. crc_extra = 143
  10642. unpacker = struct.Struct("<HBBiBB")
  10643. instance_field = None
  10644. instance_offset = -1
  10645. def __init__(self, command: int, result: int, progress: int = 0, result_param2: int = 0, target_system: int = 0, target_component: int = 0):
  10646. MAVLink_message.__init__(self, MAVLink_command_ack_message.id, MAVLink_command_ack_message.msgname)
  10647. self._fieldnames = MAVLink_command_ack_message.fieldnames
  10648. self._instance_field = MAVLink_command_ack_message.instance_field
  10649. self._instance_offset = MAVLink_command_ack_message.instance_offset
  10650. self.command = command
  10651. self.result = result
  10652. self.progress = progress
  10653. self.result_param2 = result_param2
  10654. self.target_system = target_system
  10655. self.target_component = target_component
  10656. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10657. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.command, self.result, self.progress, self.result_param2, self.target_system, self.target_component), force_mavlink1=force_mavlink1)
  10658. # Define name on the class for backwards compatibility (it is now msgname).
  10659. # Done with setattr to hide the class variable from mypy.
  10660. setattr(MAVLink_command_ack_message, "name", mavlink_msg_deprecated_name_property())
  10661. class MAVLink_command_cancel_message(MAVLink_message):
  10662. """
  10663. Cancel a long running command. The target system should respond
  10664. with a COMMAND_ACK to the original command with
  10665. result=MAV_RESULT_CANCELLED if the long running process was
  10666. cancelled. If it has already completed, the cancel action can be
  10667. ignored. The cancel action can be retried until some sort of
  10668. acknowledgement to the original command has been received. The
  10669. command microservice is documented at
  10670. https://mavlink.io/en/services/command.html
  10671. """
  10672. id = MAVLINK_MSG_ID_COMMAND_CANCEL
  10673. msgname = "COMMAND_CANCEL"
  10674. fieldnames = ["target_system", "target_component", "command"]
  10675. ordered_fieldnames = ["command", "target_system", "target_component"]
  10676. fieldtypes = ["uint8_t", "uint8_t", "uint16_t"]
  10677. fielddisplays_by_name: Dict[str, str] = {}
  10678. fieldenums_by_name: Dict[str, str] = {"command": "MAV_CMD"}
  10679. fieldunits_by_name: Dict[str, str] = {}
  10680. native_format = bytearray(b"<HBB")
  10681. orders = [1, 2, 0]
  10682. lengths = [1, 1, 1]
  10683. array_lengths = [0, 0, 0]
  10684. crc_extra = 14
  10685. unpacker = struct.Struct("<HBB")
  10686. instance_field = None
  10687. instance_offset = -1
  10688. def __init__(self, target_system: int, target_component: int, command: int):
  10689. MAVLink_message.__init__(self, MAVLink_command_cancel_message.id, MAVLink_command_cancel_message.msgname)
  10690. self._fieldnames = MAVLink_command_cancel_message.fieldnames
  10691. self._instance_field = MAVLink_command_cancel_message.instance_field
  10692. self._instance_offset = MAVLink_command_cancel_message.instance_offset
  10693. self.target_system = target_system
  10694. self.target_component = target_component
  10695. self.command = command
  10696. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10697. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.command, self.target_system, self.target_component), force_mavlink1=force_mavlink1)
  10698. # Define name on the class for backwards compatibility (it is now msgname).
  10699. # Done with setattr to hide the class variable from mypy.
  10700. setattr(MAVLink_command_cancel_message, "name", mavlink_msg_deprecated_name_property())
  10701. class MAVLink_manual_setpoint_message(MAVLink_message):
  10702. """
  10703. Setpoint in roll, pitch, yaw and thrust from the operator
  10704. """
  10705. id = MAVLINK_MSG_ID_MANUAL_SETPOINT
  10706. msgname = "MANUAL_SETPOINT"
  10707. fieldnames = ["time_boot_ms", "roll", "pitch", "yaw", "thrust", "mode_switch", "manual_override_switch"]
  10708. ordered_fieldnames = ["time_boot_ms", "roll", "pitch", "yaw", "thrust", "mode_switch", "manual_override_switch"]
  10709. fieldtypes = ["uint32_t", "float", "float", "float", "float", "uint8_t", "uint8_t"]
  10710. fielddisplays_by_name: Dict[str, str] = {}
  10711. fieldenums_by_name: Dict[str, str] = {}
  10712. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "roll": "rad/s", "pitch": "rad/s", "yaw": "rad/s"}
  10713. native_format = bytearray(b"<IffffBB")
  10714. orders = [0, 1, 2, 3, 4, 5, 6]
  10715. lengths = [1, 1, 1, 1, 1, 1, 1]
  10716. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  10717. crc_extra = 106
  10718. unpacker = struct.Struct("<IffffBB")
  10719. instance_field = None
  10720. instance_offset = -1
  10721. def __init__(self, time_boot_ms: int, roll: float, pitch: float, yaw: float, thrust: float, mode_switch: int, manual_override_switch: int):
  10722. MAVLink_message.__init__(self, MAVLink_manual_setpoint_message.id, MAVLink_manual_setpoint_message.msgname)
  10723. self._fieldnames = MAVLink_manual_setpoint_message.fieldnames
  10724. self._instance_field = MAVLink_manual_setpoint_message.instance_field
  10725. self._instance_offset = MAVLink_manual_setpoint_message.instance_offset
  10726. self.time_boot_ms = time_boot_ms
  10727. self.roll = roll
  10728. self.pitch = pitch
  10729. self.yaw = yaw
  10730. self.thrust = thrust
  10731. self.mode_switch = mode_switch
  10732. self.manual_override_switch = manual_override_switch
  10733. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10734. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.roll, self.pitch, self.yaw, self.thrust, self.mode_switch, self.manual_override_switch), force_mavlink1=force_mavlink1)
  10735. # Define name on the class for backwards compatibility (it is now msgname).
  10736. # Done with setattr to hide the class variable from mypy.
  10737. setattr(MAVLink_manual_setpoint_message, "name", mavlink_msg_deprecated_name_property())
  10738. class MAVLink_set_attitude_target_message(MAVLink_message):
  10739. """
  10740. Sets a desired vehicle attitude. Used by an external controller to
  10741. command the vehicle (manual controller or other system).
  10742. """
  10743. id = MAVLINK_MSG_ID_SET_ATTITUDE_TARGET
  10744. msgname = "SET_ATTITUDE_TARGET"
  10745. fieldnames = ["time_boot_ms", "target_system", "target_component", "type_mask", "q", "body_roll_rate", "body_pitch_rate", "body_yaw_rate", "thrust", "thrust_body"]
  10746. ordered_fieldnames = ["time_boot_ms", "q", "body_roll_rate", "body_pitch_rate", "body_yaw_rate", "thrust", "target_system", "target_component", "type_mask", "thrust_body"]
  10747. fieldtypes = ["uint32_t", "uint8_t", "uint8_t", "uint8_t", "float", "float", "float", "float", "float", "float"]
  10748. fielddisplays_by_name: Dict[str, str] = {"type_mask": "bitmask"}
  10749. fieldenums_by_name: Dict[str, str] = {"type_mask": "ATTITUDE_TARGET_TYPEMASK"}
  10750. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "body_roll_rate": "rad/s", "body_pitch_rate": "rad/s", "body_yaw_rate": "rad/s"}
  10751. native_format = bytearray(b"<IfffffBBBf")
  10752. orders = [0, 6, 7, 8, 1, 2, 3, 4, 5, 9]
  10753. lengths = [1, 4, 1, 1, 1, 1, 1, 1, 1, 3]
  10754. array_lengths = [0, 4, 0, 0, 0, 0, 0, 0, 0, 3]
  10755. crc_extra = 49
  10756. unpacker = struct.Struct("<I4fffffBBB3f")
  10757. instance_field = None
  10758. instance_offset = -1
  10759. def __init__(self, time_boot_ms: int, target_system: int, target_component: int, type_mask: int, q: Sequence[float], body_roll_rate: float, body_pitch_rate: float, body_yaw_rate: float, thrust: float, thrust_body: Sequence[float] = (0, 0, 0)):
  10760. MAVLink_message.__init__(self, MAVLink_set_attitude_target_message.id, MAVLink_set_attitude_target_message.msgname)
  10761. self._fieldnames = MAVLink_set_attitude_target_message.fieldnames
  10762. self._instance_field = MAVLink_set_attitude_target_message.instance_field
  10763. self._instance_offset = MAVLink_set_attitude_target_message.instance_offset
  10764. self.time_boot_ms = time_boot_ms
  10765. self.target_system = target_system
  10766. self.target_component = target_component
  10767. self.type_mask = type_mask
  10768. self.q = q
  10769. self.body_roll_rate = body_roll_rate
  10770. self.body_pitch_rate = body_pitch_rate
  10771. self.body_yaw_rate = body_yaw_rate
  10772. self.thrust = thrust
  10773. self.thrust_body = thrust_body
  10774. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10775. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.q[0], self.q[1], self.q[2], self.q[3], self.body_roll_rate, self.body_pitch_rate, self.body_yaw_rate, self.thrust, self.target_system, self.target_component, self.type_mask, self.thrust_body[0], self.thrust_body[1], self.thrust_body[2]), force_mavlink1=force_mavlink1)
  10776. # Define name on the class for backwards compatibility (it is now msgname).
  10777. # Done with setattr to hide the class variable from mypy.
  10778. setattr(MAVLink_set_attitude_target_message, "name", mavlink_msg_deprecated_name_property())
  10779. class MAVLink_attitude_target_message(MAVLink_message):
  10780. """
  10781. Reports the current commanded attitude of the vehicle as specified
  10782. by the autopilot. This should match the commands sent in a
  10783. SET_ATTITUDE_TARGET message if the vehicle is being controlled
  10784. this way.
  10785. """
  10786. id = MAVLINK_MSG_ID_ATTITUDE_TARGET
  10787. msgname = "ATTITUDE_TARGET"
  10788. fieldnames = ["time_boot_ms", "type_mask", "q", "body_roll_rate", "body_pitch_rate", "body_yaw_rate", "thrust"]
  10789. ordered_fieldnames = ["time_boot_ms", "q", "body_roll_rate", "body_pitch_rate", "body_yaw_rate", "thrust", "type_mask"]
  10790. fieldtypes = ["uint32_t", "uint8_t", "float", "float", "float", "float", "float"]
  10791. fielddisplays_by_name: Dict[str, str] = {"type_mask": "bitmask"}
  10792. fieldenums_by_name: Dict[str, str] = {"type_mask": "ATTITUDE_TARGET_TYPEMASK"}
  10793. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "body_roll_rate": "rad/s", "body_pitch_rate": "rad/s", "body_yaw_rate": "rad/s"}
  10794. native_format = bytearray(b"<IfffffB")
  10795. orders = [0, 6, 1, 2, 3, 4, 5]
  10796. lengths = [1, 4, 1, 1, 1, 1, 1]
  10797. array_lengths = [0, 4, 0, 0, 0, 0, 0]
  10798. crc_extra = 22
  10799. unpacker = struct.Struct("<I4fffffB")
  10800. instance_field = None
  10801. instance_offset = -1
  10802. def __init__(self, time_boot_ms: int, type_mask: int, q: Sequence[float], body_roll_rate: float, body_pitch_rate: float, body_yaw_rate: float, thrust: float):
  10803. MAVLink_message.__init__(self, MAVLink_attitude_target_message.id, MAVLink_attitude_target_message.msgname)
  10804. self._fieldnames = MAVLink_attitude_target_message.fieldnames
  10805. self._instance_field = MAVLink_attitude_target_message.instance_field
  10806. self._instance_offset = MAVLink_attitude_target_message.instance_offset
  10807. self.time_boot_ms = time_boot_ms
  10808. self.type_mask = type_mask
  10809. self.q = q
  10810. self.body_roll_rate = body_roll_rate
  10811. self.body_pitch_rate = body_pitch_rate
  10812. self.body_yaw_rate = body_yaw_rate
  10813. self.thrust = thrust
  10814. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10815. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.q[0], self.q[1], self.q[2], self.q[3], self.body_roll_rate, self.body_pitch_rate, self.body_yaw_rate, self.thrust, self.type_mask), force_mavlink1=force_mavlink1)
  10816. # Define name on the class for backwards compatibility (it is now msgname).
  10817. # Done with setattr to hide the class variable from mypy.
  10818. setattr(MAVLink_attitude_target_message, "name", mavlink_msg_deprecated_name_property())
  10819. class MAVLink_set_position_target_local_ned_message(MAVLink_message):
  10820. """
  10821. Sets a desired vehicle position in a local north-east-down
  10822. coordinate frame. Used by an external controller to command the
  10823. vehicle (manual controller or other system).
  10824. """
  10825. id = MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED
  10826. msgname = "SET_POSITION_TARGET_LOCAL_NED"
  10827. fieldnames = ["time_boot_ms", "target_system", "target_component", "coordinate_frame", "type_mask", "x", "y", "z", "vx", "vy", "vz", "afx", "afy", "afz", "yaw", "yaw_rate"]
  10828. ordered_fieldnames = ["time_boot_ms", "x", "y", "z", "vx", "vy", "vz", "afx", "afy", "afz", "yaw", "yaw_rate", "type_mask", "target_system", "target_component", "coordinate_frame"]
  10829. fieldtypes = ["uint32_t", "uint8_t", "uint8_t", "uint8_t", "uint16_t", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float"]
  10830. fielddisplays_by_name: Dict[str, str] = {"type_mask": "bitmask"}
  10831. fieldenums_by_name: Dict[str, str] = {"coordinate_frame": "MAV_FRAME", "type_mask": "POSITION_TARGET_TYPEMASK"}
  10832. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "x": "m", "y": "m", "z": "m", "vx": "m/s", "vy": "m/s", "vz": "m/s", "afx": "m/s/s", "afy": "m/s/s", "afz": "m/s/s", "yaw": "rad", "yaw_rate": "rad/s"}
  10833. native_format = bytearray(b"<IfffffffffffHBBB")
  10834. orders = [0, 13, 14, 15, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
  10835. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  10836. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  10837. crc_extra = 143
  10838. unpacker = struct.Struct("<IfffffffffffHBBB")
  10839. instance_field = None
  10840. instance_offset = -1
  10841. def __init__(self, time_boot_ms: int, target_system: int, target_component: int, coordinate_frame: int, type_mask: int, x: float, y: float, z: float, vx: float, vy: float, vz: float, afx: float, afy: float, afz: float, yaw: float, yaw_rate: float):
  10842. MAVLink_message.__init__(self, MAVLink_set_position_target_local_ned_message.id, MAVLink_set_position_target_local_ned_message.msgname)
  10843. self._fieldnames = MAVLink_set_position_target_local_ned_message.fieldnames
  10844. self._instance_field = MAVLink_set_position_target_local_ned_message.instance_field
  10845. self._instance_offset = MAVLink_set_position_target_local_ned_message.instance_offset
  10846. self.time_boot_ms = time_boot_ms
  10847. self.target_system = target_system
  10848. self.target_component = target_component
  10849. self.coordinate_frame = coordinate_frame
  10850. self.type_mask = type_mask
  10851. self.x = x
  10852. self.y = y
  10853. self.z = z
  10854. self.vx = vx
  10855. self.vy = vy
  10856. self.vz = vz
  10857. self.afx = afx
  10858. self.afy = afy
  10859. self.afz = afz
  10860. self.yaw = yaw
  10861. self.yaw_rate = yaw_rate
  10862. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10863. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.x, self.y, self.z, self.vx, self.vy, self.vz, self.afx, self.afy, self.afz, self.yaw, self.yaw_rate, self.type_mask, self.target_system, self.target_component, self.coordinate_frame), force_mavlink1=force_mavlink1)
  10864. # Define name on the class for backwards compatibility (it is now msgname).
  10865. # Done with setattr to hide the class variable from mypy.
  10866. setattr(MAVLink_set_position_target_local_ned_message, "name", mavlink_msg_deprecated_name_property())
  10867. class MAVLink_position_target_local_ned_message(MAVLink_message):
  10868. """
  10869. Reports the current commanded vehicle position, velocity, and
  10870. acceleration as specified by the autopilot. This should match the
  10871. commands sent in SET_POSITION_TARGET_LOCAL_NED if the vehicle is
  10872. being controlled this way.
  10873. """
  10874. id = MAVLINK_MSG_ID_POSITION_TARGET_LOCAL_NED
  10875. msgname = "POSITION_TARGET_LOCAL_NED"
  10876. fieldnames = ["time_boot_ms", "coordinate_frame", "type_mask", "x", "y", "z", "vx", "vy", "vz", "afx", "afy", "afz", "yaw", "yaw_rate"]
  10877. ordered_fieldnames = ["time_boot_ms", "x", "y", "z", "vx", "vy", "vz", "afx", "afy", "afz", "yaw", "yaw_rate", "type_mask", "coordinate_frame"]
  10878. fieldtypes = ["uint32_t", "uint8_t", "uint16_t", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float"]
  10879. fielddisplays_by_name: Dict[str, str] = {"type_mask": "bitmask"}
  10880. fieldenums_by_name: Dict[str, str] = {"coordinate_frame": "MAV_FRAME", "type_mask": "POSITION_TARGET_TYPEMASK"}
  10881. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "x": "m", "y": "m", "z": "m", "vx": "m/s", "vy": "m/s", "vz": "m/s", "afx": "m/s/s", "afy": "m/s/s", "afz": "m/s/s", "yaw": "rad", "yaw_rate": "rad/s"}
  10882. native_format = bytearray(b"<IfffffffffffHB")
  10883. orders = [0, 13, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
  10884. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  10885. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  10886. crc_extra = 140
  10887. unpacker = struct.Struct("<IfffffffffffHB")
  10888. instance_field = None
  10889. instance_offset = -1
  10890. def __init__(self, time_boot_ms: int, coordinate_frame: int, type_mask: int, x: float, y: float, z: float, vx: float, vy: float, vz: float, afx: float, afy: float, afz: float, yaw: float, yaw_rate: float):
  10891. MAVLink_message.__init__(self, MAVLink_position_target_local_ned_message.id, MAVLink_position_target_local_ned_message.msgname)
  10892. self._fieldnames = MAVLink_position_target_local_ned_message.fieldnames
  10893. self._instance_field = MAVLink_position_target_local_ned_message.instance_field
  10894. self._instance_offset = MAVLink_position_target_local_ned_message.instance_offset
  10895. self.time_boot_ms = time_boot_ms
  10896. self.coordinate_frame = coordinate_frame
  10897. self.type_mask = type_mask
  10898. self.x = x
  10899. self.y = y
  10900. self.z = z
  10901. self.vx = vx
  10902. self.vy = vy
  10903. self.vz = vz
  10904. self.afx = afx
  10905. self.afy = afy
  10906. self.afz = afz
  10907. self.yaw = yaw
  10908. self.yaw_rate = yaw_rate
  10909. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10910. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.x, self.y, self.z, self.vx, self.vy, self.vz, self.afx, self.afy, self.afz, self.yaw, self.yaw_rate, self.type_mask, self.coordinate_frame), force_mavlink1=force_mavlink1)
  10911. # Define name on the class for backwards compatibility (it is now msgname).
  10912. # Done with setattr to hide the class variable from mypy.
  10913. setattr(MAVLink_position_target_local_ned_message, "name", mavlink_msg_deprecated_name_property())
  10914. class MAVLink_set_position_target_global_int_message(MAVLink_message):
  10915. """
  10916. Sets a desired vehicle position, velocity, and/or acceleration in
  10917. a global coordinate system (WGS84). Used by an external controller
  10918. to command the vehicle (manual controller or other system).
  10919. """
  10920. id = MAVLINK_MSG_ID_SET_POSITION_TARGET_GLOBAL_INT
  10921. msgname = "SET_POSITION_TARGET_GLOBAL_INT"
  10922. fieldnames = ["time_boot_ms", "target_system", "target_component", "coordinate_frame", "type_mask", "lat_int", "lon_int", "alt", "vx", "vy", "vz", "afx", "afy", "afz", "yaw", "yaw_rate"]
  10923. ordered_fieldnames = ["time_boot_ms", "lat_int", "lon_int", "alt", "vx", "vy", "vz", "afx", "afy", "afz", "yaw", "yaw_rate", "type_mask", "target_system", "target_component", "coordinate_frame"]
  10924. fieldtypes = ["uint32_t", "uint8_t", "uint8_t", "uint8_t", "uint16_t", "int32_t", "int32_t", "float", "float", "float", "float", "float", "float", "float", "float", "float"]
  10925. fielddisplays_by_name: Dict[str, str] = {"type_mask": "bitmask"}
  10926. fieldenums_by_name: Dict[str, str] = {"coordinate_frame": "MAV_FRAME", "type_mask": "POSITION_TARGET_TYPEMASK"}
  10927. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "lat_int": "degE7", "lon_int": "degE7", "alt": "m", "vx": "m/s", "vy": "m/s", "vz": "m/s", "afx": "m/s/s", "afy": "m/s/s", "afz": "m/s/s", "yaw": "rad", "yaw_rate": "rad/s"}
  10928. native_format = bytearray(b"<IiifffffffffHBBB")
  10929. orders = [0, 13, 14, 15, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
  10930. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  10931. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  10932. crc_extra = 5
  10933. unpacker = struct.Struct("<IiifffffffffHBBB")
  10934. instance_field = None
  10935. instance_offset = -1
  10936. def __init__(self, time_boot_ms: int, target_system: int, target_component: int, coordinate_frame: int, type_mask: int, lat_int: int, lon_int: int, alt: float, vx: float, vy: float, vz: float, afx: float, afy: float, afz: float, yaw: float, yaw_rate: float):
  10937. MAVLink_message.__init__(self, MAVLink_set_position_target_global_int_message.id, MAVLink_set_position_target_global_int_message.msgname)
  10938. self._fieldnames = MAVLink_set_position_target_global_int_message.fieldnames
  10939. self._instance_field = MAVLink_set_position_target_global_int_message.instance_field
  10940. self._instance_offset = MAVLink_set_position_target_global_int_message.instance_offset
  10941. self.time_boot_ms = time_boot_ms
  10942. self.target_system = target_system
  10943. self.target_component = target_component
  10944. self.coordinate_frame = coordinate_frame
  10945. self.type_mask = type_mask
  10946. self.lat_int = lat_int
  10947. self.lon_int = lon_int
  10948. self.alt = alt
  10949. self.vx = vx
  10950. self.vy = vy
  10951. self.vz = vz
  10952. self.afx = afx
  10953. self.afy = afy
  10954. self.afz = afz
  10955. self.yaw = yaw
  10956. self.yaw_rate = yaw_rate
  10957. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10958. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.lat_int, self.lon_int, self.alt, self.vx, self.vy, self.vz, self.afx, self.afy, self.afz, self.yaw, self.yaw_rate, self.type_mask, self.target_system, self.target_component, self.coordinate_frame), force_mavlink1=force_mavlink1)
  10959. # Define name on the class for backwards compatibility (it is now msgname).
  10960. # Done with setattr to hide the class variable from mypy.
  10961. setattr(MAVLink_set_position_target_global_int_message, "name", mavlink_msg_deprecated_name_property())
  10962. class MAVLink_position_target_global_int_message(MAVLink_message):
  10963. """
  10964. Reports the current commanded vehicle position, velocity, and
  10965. acceleration as specified by the autopilot. This should match the
  10966. commands sent in SET_POSITION_TARGET_GLOBAL_INT if the vehicle is
  10967. being controlled this way.
  10968. """
  10969. id = MAVLINK_MSG_ID_POSITION_TARGET_GLOBAL_INT
  10970. msgname = "POSITION_TARGET_GLOBAL_INT"
  10971. fieldnames = ["time_boot_ms", "coordinate_frame", "type_mask", "lat_int", "lon_int", "alt", "vx", "vy", "vz", "afx", "afy", "afz", "yaw", "yaw_rate"]
  10972. ordered_fieldnames = ["time_boot_ms", "lat_int", "lon_int", "alt", "vx", "vy", "vz", "afx", "afy", "afz", "yaw", "yaw_rate", "type_mask", "coordinate_frame"]
  10973. fieldtypes = ["uint32_t", "uint8_t", "uint16_t", "int32_t", "int32_t", "float", "float", "float", "float", "float", "float", "float", "float", "float"]
  10974. fielddisplays_by_name: Dict[str, str] = {"type_mask": "bitmask"}
  10975. fieldenums_by_name: Dict[str, str] = {"coordinate_frame": "MAV_FRAME", "type_mask": "POSITION_TARGET_TYPEMASK"}
  10976. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "lat_int": "degE7", "lon_int": "degE7", "alt": "m", "vx": "m/s", "vy": "m/s", "vz": "m/s", "afx": "m/s/s", "afy": "m/s/s", "afz": "m/s/s", "yaw": "rad", "yaw_rate": "rad/s"}
  10977. native_format = bytearray(b"<IiifffffffffHB")
  10978. orders = [0, 13, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
  10979. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  10980. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  10981. crc_extra = 150
  10982. unpacker = struct.Struct("<IiifffffffffHB")
  10983. instance_field = None
  10984. instance_offset = -1
  10985. def __init__(self, time_boot_ms: int, coordinate_frame: int, type_mask: int, lat_int: int, lon_int: int, alt: float, vx: float, vy: float, vz: float, afx: float, afy: float, afz: float, yaw: float, yaw_rate: float):
  10986. MAVLink_message.__init__(self, MAVLink_position_target_global_int_message.id, MAVLink_position_target_global_int_message.msgname)
  10987. self._fieldnames = MAVLink_position_target_global_int_message.fieldnames
  10988. self._instance_field = MAVLink_position_target_global_int_message.instance_field
  10989. self._instance_offset = MAVLink_position_target_global_int_message.instance_offset
  10990. self.time_boot_ms = time_boot_ms
  10991. self.coordinate_frame = coordinate_frame
  10992. self.type_mask = type_mask
  10993. self.lat_int = lat_int
  10994. self.lon_int = lon_int
  10995. self.alt = alt
  10996. self.vx = vx
  10997. self.vy = vy
  10998. self.vz = vz
  10999. self.afx = afx
  11000. self.afy = afy
  11001. self.afz = afz
  11002. self.yaw = yaw
  11003. self.yaw_rate = yaw_rate
  11004. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11005. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.lat_int, self.lon_int, self.alt, self.vx, self.vy, self.vz, self.afx, self.afy, self.afz, self.yaw, self.yaw_rate, self.type_mask, self.coordinate_frame), force_mavlink1=force_mavlink1)
  11006. # Define name on the class for backwards compatibility (it is now msgname).
  11007. # Done with setattr to hide the class variable from mypy.
  11008. setattr(MAVLink_position_target_global_int_message, "name", mavlink_msg_deprecated_name_property())
  11009. class MAVLink_local_position_ned_system_global_offset_message(MAVLink_message):
  11010. """
  11011. The offset in X, Y, Z and yaw between the LOCAL_POSITION_NED
  11012. messages of MAV X and the global coordinate frame in NED
  11013. coordinates. Coordinate frame is right-handed, Z-axis down
  11014. (aeronautical frame, NED / north-east-down convention)
  11015. """
  11016. id = MAVLINK_MSG_ID_LOCAL_POSITION_NED_SYSTEM_GLOBAL_OFFSET
  11017. msgname = "LOCAL_POSITION_NED_SYSTEM_GLOBAL_OFFSET"
  11018. fieldnames = ["time_boot_ms", "x", "y", "z", "roll", "pitch", "yaw"]
  11019. ordered_fieldnames = ["time_boot_ms", "x", "y", "z", "roll", "pitch", "yaw"]
  11020. fieldtypes = ["uint32_t", "float", "float", "float", "float", "float", "float"]
  11021. fielddisplays_by_name: Dict[str, str] = {}
  11022. fieldenums_by_name: Dict[str, str] = {}
  11023. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "x": "m", "y": "m", "z": "m", "roll": "rad", "pitch": "rad", "yaw": "rad"}
  11024. native_format = bytearray(b"<Iffffff")
  11025. orders = [0, 1, 2, 3, 4, 5, 6]
  11026. lengths = [1, 1, 1, 1, 1, 1, 1]
  11027. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  11028. crc_extra = 231
  11029. unpacker = struct.Struct("<Iffffff")
  11030. instance_field = None
  11031. instance_offset = -1
  11032. def __init__(self, time_boot_ms: int, x: float, y: float, z: float, roll: float, pitch: float, yaw: float):
  11033. MAVLink_message.__init__(self, MAVLink_local_position_ned_system_global_offset_message.id, MAVLink_local_position_ned_system_global_offset_message.msgname)
  11034. self._fieldnames = MAVLink_local_position_ned_system_global_offset_message.fieldnames
  11035. self._instance_field = MAVLink_local_position_ned_system_global_offset_message.instance_field
  11036. self._instance_offset = MAVLink_local_position_ned_system_global_offset_message.instance_offset
  11037. self.time_boot_ms = time_boot_ms
  11038. self.x = x
  11039. self.y = y
  11040. self.z = z
  11041. self.roll = roll
  11042. self.pitch = pitch
  11043. self.yaw = yaw
  11044. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11045. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.x, self.y, self.z, self.roll, self.pitch, self.yaw), force_mavlink1=force_mavlink1)
  11046. # Define name on the class for backwards compatibility (it is now msgname).
  11047. # Done with setattr to hide the class variable from mypy.
  11048. setattr(MAVLink_local_position_ned_system_global_offset_message, "name", mavlink_msg_deprecated_name_property())
  11049. class MAVLink_hil_state_message(MAVLink_message):
  11050. """
  11051. Sent from simulation to autopilot. This packet is useful for high
  11052. throughput applications such as hardware in the loop simulations.
  11053. """
  11054. id = MAVLINK_MSG_ID_HIL_STATE
  11055. msgname = "HIL_STATE"
  11056. fieldnames = ["time_usec", "roll", "pitch", "yaw", "rollspeed", "pitchspeed", "yawspeed", "lat", "lon", "alt", "vx", "vy", "vz", "xacc", "yacc", "zacc"]
  11057. ordered_fieldnames = ["time_usec", "roll", "pitch", "yaw", "rollspeed", "pitchspeed", "yawspeed", "lat", "lon", "alt", "vx", "vy", "vz", "xacc", "yacc", "zacc"]
  11058. fieldtypes = ["uint64_t", "float", "float", "float", "float", "float", "float", "int32_t", "int32_t", "int32_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t"]
  11059. fielddisplays_by_name: Dict[str, str] = {}
  11060. fieldenums_by_name: Dict[str, str] = {}
  11061. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "roll": "rad", "pitch": "rad", "yaw": "rad", "rollspeed": "rad/s", "pitchspeed": "rad/s", "yawspeed": "rad/s", "lat": "degE7", "lon": "degE7", "alt": "mm", "vx": "cm/s", "vy": "cm/s", "vz": "cm/s", "xacc": "mG", "yacc": "mG", "zacc": "mG"}
  11062. native_format = bytearray(b"<Qffffffiiihhhhhh")
  11063. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
  11064. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  11065. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  11066. crc_extra = 183
  11067. unpacker = struct.Struct("<Qffffffiiihhhhhh")
  11068. instance_field = None
  11069. instance_offset = -1
  11070. def __init__(self, time_usec: int, roll: float, pitch: float, yaw: float, rollspeed: float, pitchspeed: float, yawspeed: float, lat: int, lon: int, alt: int, vx: int, vy: int, vz: int, xacc: int, yacc: int, zacc: int):
  11071. MAVLink_message.__init__(self, MAVLink_hil_state_message.id, MAVLink_hil_state_message.msgname)
  11072. self._fieldnames = MAVLink_hil_state_message.fieldnames
  11073. self._instance_field = MAVLink_hil_state_message.instance_field
  11074. self._instance_offset = MAVLink_hil_state_message.instance_offset
  11075. self.time_usec = time_usec
  11076. self.roll = roll
  11077. self.pitch = pitch
  11078. self.yaw = yaw
  11079. self.rollspeed = rollspeed
  11080. self.pitchspeed = pitchspeed
  11081. self.yawspeed = yawspeed
  11082. self.lat = lat
  11083. self.lon = lon
  11084. self.alt = alt
  11085. self.vx = vx
  11086. self.vy = vy
  11087. self.vz = vz
  11088. self.xacc = xacc
  11089. self.yacc = yacc
  11090. self.zacc = zacc
  11091. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11092. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.roll, self.pitch, self.yaw, self.rollspeed, self.pitchspeed, self.yawspeed, self.lat, self.lon, self.alt, self.vx, self.vy, self.vz, self.xacc, self.yacc, self.zacc), force_mavlink1=force_mavlink1)
  11093. # Define name on the class for backwards compatibility (it is now msgname).
  11094. # Done with setattr to hide the class variable from mypy.
  11095. setattr(MAVLink_hil_state_message, "name", mavlink_msg_deprecated_name_property())
  11096. class MAVLink_hil_controls_message(MAVLink_message):
  11097. """
  11098. Sent from autopilot to simulation. Hardware in the loop control
  11099. outputs
  11100. """
  11101. id = MAVLINK_MSG_ID_HIL_CONTROLS
  11102. msgname = "HIL_CONTROLS"
  11103. fieldnames = ["time_usec", "roll_ailerons", "pitch_elevator", "yaw_rudder", "throttle", "aux1", "aux2", "aux3", "aux4", "mode", "nav_mode"]
  11104. ordered_fieldnames = ["time_usec", "roll_ailerons", "pitch_elevator", "yaw_rudder", "throttle", "aux1", "aux2", "aux3", "aux4", "mode", "nav_mode"]
  11105. fieldtypes = ["uint64_t", "float", "float", "float", "float", "float", "float", "float", "float", "uint8_t", "uint8_t"]
  11106. fielddisplays_by_name: Dict[str, str] = {}
  11107. fieldenums_by_name: Dict[str, str] = {"mode": "MAV_MODE"}
  11108. fieldunits_by_name: Dict[str, str] = {"time_usec": "us"}
  11109. native_format = bytearray(b"<QffffffffBB")
  11110. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
  11111. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  11112. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  11113. crc_extra = 63
  11114. unpacker = struct.Struct("<QffffffffBB")
  11115. instance_field = None
  11116. instance_offset = -1
  11117. def __init__(self, time_usec: int, roll_ailerons: float, pitch_elevator: float, yaw_rudder: float, throttle: float, aux1: float, aux2: float, aux3: float, aux4: float, mode: int, nav_mode: int):
  11118. MAVLink_message.__init__(self, MAVLink_hil_controls_message.id, MAVLink_hil_controls_message.msgname)
  11119. self._fieldnames = MAVLink_hil_controls_message.fieldnames
  11120. self._instance_field = MAVLink_hil_controls_message.instance_field
  11121. self._instance_offset = MAVLink_hil_controls_message.instance_offset
  11122. self.time_usec = time_usec
  11123. self.roll_ailerons = roll_ailerons
  11124. self.pitch_elevator = pitch_elevator
  11125. self.yaw_rudder = yaw_rudder
  11126. self.throttle = throttle
  11127. self.aux1 = aux1
  11128. self.aux2 = aux2
  11129. self.aux3 = aux3
  11130. self.aux4 = aux4
  11131. self.mode = mode
  11132. self.nav_mode = nav_mode
  11133. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11134. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.roll_ailerons, self.pitch_elevator, self.yaw_rudder, self.throttle, self.aux1, self.aux2, self.aux3, self.aux4, self.mode, self.nav_mode), force_mavlink1=force_mavlink1)
  11135. # Define name on the class for backwards compatibility (it is now msgname).
  11136. # Done with setattr to hide the class variable from mypy.
  11137. setattr(MAVLink_hil_controls_message, "name", mavlink_msg_deprecated_name_property())
  11138. class MAVLink_hil_rc_inputs_raw_message(MAVLink_message):
  11139. """
  11140. Sent from simulation to autopilot. The RAW values of the RC
  11141. channels received. The standard PPM modulation is as follows: 1000
  11142. microseconds: 0%, 2000 microseconds: 100%. Individual
  11143. receivers/transmitters might violate this specification.
  11144. """
  11145. id = MAVLINK_MSG_ID_HIL_RC_INPUTS_RAW
  11146. msgname = "HIL_RC_INPUTS_RAW"
  11147. fieldnames = ["time_usec", "chan1_raw", "chan2_raw", "chan3_raw", "chan4_raw", "chan5_raw", "chan6_raw", "chan7_raw", "chan8_raw", "chan9_raw", "chan10_raw", "chan11_raw", "chan12_raw", "rssi"]
  11148. ordered_fieldnames = ["time_usec", "chan1_raw", "chan2_raw", "chan3_raw", "chan4_raw", "chan5_raw", "chan6_raw", "chan7_raw", "chan8_raw", "chan9_raw", "chan10_raw", "chan11_raw", "chan12_raw", "rssi"]
  11149. fieldtypes = ["uint64_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint8_t"]
  11150. fielddisplays_by_name: Dict[str, str] = {}
  11151. fieldenums_by_name: Dict[str, str] = {}
  11152. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "chan1_raw": "us", "chan2_raw": "us", "chan3_raw": "us", "chan4_raw": "us", "chan5_raw": "us", "chan6_raw": "us", "chan7_raw": "us", "chan8_raw": "us", "chan9_raw": "us", "chan10_raw": "us", "chan11_raw": "us", "chan12_raw": "us"}
  11153. native_format = bytearray(b"<QHHHHHHHHHHHHB")
  11154. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
  11155. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  11156. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  11157. crc_extra = 54
  11158. unpacker = struct.Struct("<QHHHHHHHHHHHHB")
  11159. instance_field = None
  11160. instance_offset = -1
  11161. def __init__(self, time_usec: int, chan1_raw: int, chan2_raw: int, chan3_raw: int, chan4_raw: int, chan5_raw: int, chan6_raw: int, chan7_raw: int, chan8_raw: int, chan9_raw: int, chan10_raw: int, chan11_raw: int, chan12_raw: int, rssi: int):
  11162. MAVLink_message.__init__(self, MAVLink_hil_rc_inputs_raw_message.id, MAVLink_hil_rc_inputs_raw_message.msgname)
  11163. self._fieldnames = MAVLink_hil_rc_inputs_raw_message.fieldnames
  11164. self._instance_field = MAVLink_hil_rc_inputs_raw_message.instance_field
  11165. self._instance_offset = MAVLink_hil_rc_inputs_raw_message.instance_offset
  11166. self.time_usec = time_usec
  11167. self.chan1_raw = chan1_raw
  11168. self.chan2_raw = chan2_raw
  11169. self.chan3_raw = chan3_raw
  11170. self.chan4_raw = chan4_raw
  11171. self.chan5_raw = chan5_raw
  11172. self.chan6_raw = chan6_raw
  11173. self.chan7_raw = chan7_raw
  11174. self.chan8_raw = chan8_raw
  11175. self.chan9_raw = chan9_raw
  11176. self.chan10_raw = chan10_raw
  11177. self.chan11_raw = chan11_raw
  11178. self.chan12_raw = chan12_raw
  11179. self.rssi = rssi
  11180. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11181. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.chan1_raw, self.chan2_raw, self.chan3_raw, self.chan4_raw, self.chan5_raw, self.chan6_raw, self.chan7_raw, self.chan8_raw, self.chan9_raw, self.chan10_raw, self.chan11_raw, self.chan12_raw, self.rssi), force_mavlink1=force_mavlink1)
  11182. # Define name on the class for backwards compatibility (it is now msgname).
  11183. # Done with setattr to hide the class variable from mypy.
  11184. setattr(MAVLink_hil_rc_inputs_raw_message, "name", mavlink_msg_deprecated_name_property())
  11185. class MAVLink_hil_actuator_controls_message(MAVLink_message):
  11186. """
  11187. Sent from autopilot to simulation. Hardware in the loop control
  11188. outputs (replacement for HIL_CONTROLS)
  11189. """
  11190. id = MAVLINK_MSG_ID_HIL_ACTUATOR_CONTROLS
  11191. msgname = "HIL_ACTUATOR_CONTROLS"
  11192. fieldnames = ["time_usec", "controls", "mode", "flags"]
  11193. ordered_fieldnames = ["time_usec", "flags", "controls", "mode"]
  11194. fieldtypes = ["uint64_t", "float", "uint8_t", "uint64_t"]
  11195. fielddisplays_by_name: Dict[str, str] = {"mode": "bitmask", "flags": "bitmask"}
  11196. fieldenums_by_name: Dict[str, str] = {"mode": "MAV_MODE_FLAG"}
  11197. fieldunits_by_name: Dict[str, str] = {"time_usec": "us"}
  11198. native_format = bytearray(b"<QQfB")
  11199. orders = [0, 2, 3, 1]
  11200. lengths = [1, 1, 16, 1]
  11201. array_lengths = [0, 0, 16, 0]
  11202. crc_extra = 47
  11203. unpacker = struct.Struct("<QQ16fB")
  11204. instance_field = None
  11205. instance_offset = -1
  11206. def __init__(self, time_usec: int, controls: Sequence[float], mode: int, flags: int):
  11207. MAVLink_message.__init__(self, MAVLink_hil_actuator_controls_message.id, MAVLink_hil_actuator_controls_message.msgname)
  11208. self._fieldnames = MAVLink_hil_actuator_controls_message.fieldnames
  11209. self._instance_field = MAVLink_hil_actuator_controls_message.instance_field
  11210. self._instance_offset = MAVLink_hil_actuator_controls_message.instance_offset
  11211. self.time_usec = time_usec
  11212. self.controls = controls
  11213. self.mode = mode
  11214. self.flags = flags
  11215. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11216. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.flags, self.controls[0], self.controls[1], self.controls[2], self.controls[3], self.controls[4], self.controls[5], self.controls[6], self.controls[7], self.controls[8], self.controls[9], self.controls[10], self.controls[11], self.controls[12], self.controls[13], self.controls[14], self.controls[15], self.mode), force_mavlink1=force_mavlink1)
  11217. # Define name on the class for backwards compatibility (it is now msgname).
  11218. # Done with setattr to hide the class variable from mypy.
  11219. setattr(MAVLink_hil_actuator_controls_message, "name", mavlink_msg_deprecated_name_property())
  11220. class MAVLink_optical_flow_message(MAVLink_message):
  11221. """
  11222. Optical flow from a flow sensor (e.g. optical mouse sensor)
  11223. """
  11224. id = MAVLINK_MSG_ID_OPTICAL_FLOW
  11225. msgname = "OPTICAL_FLOW"
  11226. fieldnames = ["time_usec", "sensor_id", "flow_x", "flow_y", "flow_comp_m_x", "flow_comp_m_y", "quality", "ground_distance", "flow_rate_x", "flow_rate_y"]
  11227. ordered_fieldnames = ["time_usec", "flow_comp_m_x", "flow_comp_m_y", "ground_distance", "flow_x", "flow_y", "sensor_id", "quality", "flow_rate_x", "flow_rate_y"]
  11228. fieldtypes = ["uint64_t", "uint8_t", "int16_t", "int16_t", "float", "float", "uint8_t", "float", "float", "float"]
  11229. fielddisplays_by_name: Dict[str, str] = {}
  11230. fieldenums_by_name: Dict[str, str] = {}
  11231. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "flow_x": "dpix", "flow_y": "dpix", "flow_comp_m_x": "m/s", "flow_comp_m_y": "m/s", "ground_distance": "m", "flow_rate_x": "rad/s", "flow_rate_y": "rad/s"}
  11232. native_format = bytearray(b"<QfffhhBBff")
  11233. orders = [0, 6, 4, 5, 1, 2, 7, 3, 8, 9]
  11234. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  11235. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  11236. crc_extra = 175
  11237. unpacker = struct.Struct("<QfffhhBBff")
  11238. instance_field = None
  11239. instance_offset = -1
  11240. def __init__(self, time_usec: int, sensor_id: int, flow_x: int, flow_y: int, flow_comp_m_x: float, flow_comp_m_y: float, quality: int, ground_distance: float, flow_rate_x: float = 0, flow_rate_y: float = 0):
  11241. MAVLink_message.__init__(self, MAVLink_optical_flow_message.id, MAVLink_optical_flow_message.msgname)
  11242. self._fieldnames = MAVLink_optical_flow_message.fieldnames
  11243. self._instance_field = MAVLink_optical_flow_message.instance_field
  11244. self._instance_offset = MAVLink_optical_flow_message.instance_offset
  11245. self.time_usec = time_usec
  11246. self.sensor_id = sensor_id
  11247. self.flow_x = flow_x
  11248. self.flow_y = flow_y
  11249. self.flow_comp_m_x = flow_comp_m_x
  11250. self.flow_comp_m_y = flow_comp_m_y
  11251. self.quality = quality
  11252. self.ground_distance = ground_distance
  11253. self.flow_rate_x = flow_rate_x
  11254. self.flow_rate_y = flow_rate_y
  11255. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11256. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.flow_comp_m_x, self.flow_comp_m_y, self.ground_distance, self.flow_x, self.flow_y, self.sensor_id, self.quality, self.flow_rate_x, self.flow_rate_y), force_mavlink1=force_mavlink1)
  11257. # Define name on the class for backwards compatibility (it is now msgname).
  11258. # Done with setattr to hide the class variable from mypy.
  11259. setattr(MAVLink_optical_flow_message, "name", mavlink_msg_deprecated_name_property())
  11260. class MAVLink_global_vision_position_estimate_message(MAVLink_message):
  11261. """
  11262. Global position/attitude estimate from a vision source.
  11263. """
  11264. id = MAVLINK_MSG_ID_GLOBAL_VISION_POSITION_ESTIMATE
  11265. msgname = "GLOBAL_VISION_POSITION_ESTIMATE"
  11266. fieldnames = ["usec", "x", "y", "z", "roll", "pitch", "yaw", "covariance", "reset_counter"]
  11267. ordered_fieldnames = ["usec", "x", "y", "z", "roll", "pitch", "yaw", "covariance", "reset_counter"]
  11268. fieldtypes = ["uint64_t", "float", "float", "float", "float", "float", "float", "float", "uint8_t"]
  11269. fielddisplays_by_name: Dict[str, str] = {}
  11270. fieldenums_by_name: Dict[str, str] = {}
  11271. fieldunits_by_name: Dict[str, str] = {"usec": "us", "x": "m", "y": "m", "z": "m", "roll": "rad", "pitch": "rad", "yaw": "rad"}
  11272. native_format = bytearray(b"<QfffffffB")
  11273. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8]
  11274. lengths = [1, 1, 1, 1, 1, 1, 1, 21, 1]
  11275. array_lengths = [0, 0, 0, 0, 0, 0, 0, 21, 0]
  11276. crc_extra = 102
  11277. unpacker = struct.Struct("<Qffffff21fB")
  11278. instance_field = None
  11279. instance_offset = -1
  11280. def __init__(self, usec: int, x: float, y: float, z: float, roll: float, pitch: float, yaw: float, covariance: Sequence[float] = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), reset_counter: int = 0):
  11281. MAVLink_message.__init__(self, MAVLink_global_vision_position_estimate_message.id, MAVLink_global_vision_position_estimate_message.msgname)
  11282. self._fieldnames = MAVLink_global_vision_position_estimate_message.fieldnames
  11283. self._instance_field = MAVLink_global_vision_position_estimate_message.instance_field
  11284. self._instance_offset = MAVLink_global_vision_position_estimate_message.instance_offset
  11285. self.usec = usec
  11286. self.x = x
  11287. self.y = y
  11288. self.z = z
  11289. self.roll = roll
  11290. self.pitch = pitch
  11291. self.yaw = yaw
  11292. self.covariance = covariance
  11293. self.reset_counter = reset_counter
  11294. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11295. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.usec, self.x, self.y, self.z, self.roll, self.pitch, self.yaw, self.covariance[0], self.covariance[1], self.covariance[2], self.covariance[3], self.covariance[4], self.covariance[5], self.covariance[6], self.covariance[7], self.covariance[8], self.covariance[9], self.covariance[10], self.covariance[11], self.covariance[12], self.covariance[13], self.covariance[14], self.covariance[15], self.covariance[16], self.covariance[17], self.covariance[18], self.covariance[19], self.covariance[20], self.reset_counter), force_mavlink1=force_mavlink1)
  11296. # Define name on the class for backwards compatibility (it is now msgname).
  11297. # Done with setattr to hide the class variable from mypy.
  11298. setattr(MAVLink_global_vision_position_estimate_message, "name", mavlink_msg_deprecated_name_property())
  11299. class MAVLink_vision_position_estimate_message(MAVLink_message):
  11300. """
  11301. Local position/attitude estimate from a vision source.
  11302. """
  11303. id = MAVLINK_MSG_ID_VISION_POSITION_ESTIMATE
  11304. msgname = "VISION_POSITION_ESTIMATE"
  11305. fieldnames = ["usec", "x", "y", "z", "roll", "pitch", "yaw", "covariance", "reset_counter"]
  11306. ordered_fieldnames = ["usec", "x", "y", "z", "roll", "pitch", "yaw", "covariance", "reset_counter"]
  11307. fieldtypes = ["uint64_t", "float", "float", "float", "float", "float", "float", "float", "uint8_t"]
  11308. fielddisplays_by_name: Dict[str, str] = {}
  11309. fieldenums_by_name: Dict[str, str] = {}
  11310. fieldunits_by_name: Dict[str, str] = {"usec": "us", "x": "m", "y": "m", "z": "m", "roll": "rad", "pitch": "rad", "yaw": "rad"}
  11311. native_format = bytearray(b"<QfffffffB")
  11312. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8]
  11313. lengths = [1, 1, 1, 1, 1, 1, 1, 21, 1]
  11314. array_lengths = [0, 0, 0, 0, 0, 0, 0, 21, 0]
  11315. crc_extra = 158
  11316. unpacker = struct.Struct("<Qffffff21fB")
  11317. instance_field = None
  11318. instance_offset = -1
  11319. def __init__(self, usec: int, x: float, y: float, z: float, roll: float, pitch: float, yaw: float, covariance: Sequence[float] = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), reset_counter: int = 0):
  11320. MAVLink_message.__init__(self, MAVLink_vision_position_estimate_message.id, MAVLink_vision_position_estimate_message.msgname)
  11321. self._fieldnames = MAVLink_vision_position_estimate_message.fieldnames
  11322. self._instance_field = MAVLink_vision_position_estimate_message.instance_field
  11323. self._instance_offset = MAVLink_vision_position_estimate_message.instance_offset
  11324. self.usec = usec
  11325. self.x = x
  11326. self.y = y
  11327. self.z = z
  11328. self.roll = roll
  11329. self.pitch = pitch
  11330. self.yaw = yaw
  11331. self.covariance = covariance
  11332. self.reset_counter = reset_counter
  11333. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11334. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.usec, self.x, self.y, self.z, self.roll, self.pitch, self.yaw, self.covariance[0], self.covariance[1], self.covariance[2], self.covariance[3], self.covariance[4], self.covariance[5], self.covariance[6], self.covariance[7], self.covariance[8], self.covariance[9], self.covariance[10], self.covariance[11], self.covariance[12], self.covariance[13], self.covariance[14], self.covariance[15], self.covariance[16], self.covariance[17], self.covariance[18], self.covariance[19], self.covariance[20], self.reset_counter), force_mavlink1=force_mavlink1)
  11335. # Define name on the class for backwards compatibility (it is now msgname).
  11336. # Done with setattr to hide the class variable from mypy.
  11337. setattr(MAVLink_vision_position_estimate_message, "name", mavlink_msg_deprecated_name_property())
  11338. class MAVLink_vision_speed_estimate_message(MAVLink_message):
  11339. """
  11340. Speed estimate from a vision source.
  11341. """
  11342. id = MAVLINK_MSG_ID_VISION_SPEED_ESTIMATE
  11343. msgname = "VISION_SPEED_ESTIMATE"
  11344. fieldnames = ["usec", "x", "y", "z", "covariance", "reset_counter"]
  11345. ordered_fieldnames = ["usec", "x", "y", "z", "covariance", "reset_counter"]
  11346. fieldtypes = ["uint64_t", "float", "float", "float", "float", "uint8_t"]
  11347. fielddisplays_by_name: Dict[str, str] = {}
  11348. fieldenums_by_name: Dict[str, str] = {}
  11349. fieldunits_by_name: Dict[str, str] = {"usec": "us", "x": "m/s", "y": "m/s", "z": "m/s"}
  11350. native_format = bytearray(b"<QffffB")
  11351. orders = [0, 1, 2, 3, 4, 5]
  11352. lengths = [1, 1, 1, 1, 9, 1]
  11353. array_lengths = [0, 0, 0, 0, 9, 0]
  11354. crc_extra = 208
  11355. unpacker = struct.Struct("<Qfff9fB")
  11356. instance_field = None
  11357. instance_offset = -1
  11358. def __init__(self, usec: int, x: float, y: float, z: float, covariance: Sequence[float] = (0, 0, 0, 0, 0, 0, 0, 0, 0), reset_counter: int = 0):
  11359. MAVLink_message.__init__(self, MAVLink_vision_speed_estimate_message.id, MAVLink_vision_speed_estimate_message.msgname)
  11360. self._fieldnames = MAVLink_vision_speed_estimate_message.fieldnames
  11361. self._instance_field = MAVLink_vision_speed_estimate_message.instance_field
  11362. self._instance_offset = MAVLink_vision_speed_estimate_message.instance_offset
  11363. self.usec = usec
  11364. self.x = x
  11365. self.y = y
  11366. self.z = z
  11367. self.covariance = covariance
  11368. self.reset_counter = reset_counter
  11369. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11370. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.usec, self.x, self.y, self.z, self.covariance[0], self.covariance[1], self.covariance[2], self.covariance[3], self.covariance[4], self.covariance[5], self.covariance[6], self.covariance[7], self.covariance[8], self.reset_counter), force_mavlink1=force_mavlink1)
  11371. # Define name on the class for backwards compatibility (it is now msgname).
  11372. # Done with setattr to hide the class variable from mypy.
  11373. setattr(MAVLink_vision_speed_estimate_message, "name", mavlink_msg_deprecated_name_property())
  11374. class MAVLink_vicon_position_estimate_message(MAVLink_message):
  11375. """
  11376. Global position estimate from a Vicon motion system source.
  11377. """
  11378. id = MAVLINK_MSG_ID_VICON_POSITION_ESTIMATE
  11379. msgname = "VICON_POSITION_ESTIMATE"
  11380. fieldnames = ["usec", "x", "y", "z", "roll", "pitch", "yaw", "covariance"]
  11381. ordered_fieldnames = ["usec", "x", "y", "z", "roll", "pitch", "yaw", "covariance"]
  11382. fieldtypes = ["uint64_t", "float", "float", "float", "float", "float", "float", "float"]
  11383. fielddisplays_by_name: Dict[str, str] = {}
  11384. fieldenums_by_name: Dict[str, str] = {}
  11385. fieldunits_by_name: Dict[str, str] = {"usec": "us", "x": "m", "y": "m", "z": "m", "roll": "rad", "pitch": "rad", "yaw": "rad"}
  11386. native_format = bytearray(b"<Qfffffff")
  11387. orders = [0, 1, 2, 3, 4, 5, 6, 7]
  11388. lengths = [1, 1, 1, 1, 1, 1, 1, 21]
  11389. array_lengths = [0, 0, 0, 0, 0, 0, 0, 21]
  11390. crc_extra = 56
  11391. unpacker = struct.Struct("<Qffffff21f")
  11392. instance_field = None
  11393. instance_offset = -1
  11394. def __init__(self, usec: int, x: float, y: float, z: float, roll: float, pitch: float, yaw: float, covariance: Sequence[float] = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)):
  11395. MAVLink_message.__init__(self, MAVLink_vicon_position_estimate_message.id, MAVLink_vicon_position_estimate_message.msgname)
  11396. self._fieldnames = MAVLink_vicon_position_estimate_message.fieldnames
  11397. self._instance_field = MAVLink_vicon_position_estimate_message.instance_field
  11398. self._instance_offset = MAVLink_vicon_position_estimate_message.instance_offset
  11399. self.usec = usec
  11400. self.x = x
  11401. self.y = y
  11402. self.z = z
  11403. self.roll = roll
  11404. self.pitch = pitch
  11405. self.yaw = yaw
  11406. self.covariance = covariance
  11407. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11408. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.usec, self.x, self.y, self.z, self.roll, self.pitch, self.yaw, self.covariance[0], self.covariance[1], self.covariance[2], self.covariance[3], self.covariance[4], self.covariance[5], self.covariance[6], self.covariance[7], self.covariance[8], self.covariance[9], self.covariance[10], self.covariance[11], self.covariance[12], self.covariance[13], self.covariance[14], self.covariance[15], self.covariance[16], self.covariance[17], self.covariance[18], self.covariance[19], self.covariance[20]), force_mavlink1=force_mavlink1)
  11409. # Define name on the class for backwards compatibility (it is now msgname).
  11410. # Done with setattr to hide the class variable from mypy.
  11411. setattr(MAVLink_vicon_position_estimate_message, "name", mavlink_msg_deprecated_name_property())
  11412. class MAVLink_highres_imu_message(MAVLink_message):
  11413. """
  11414. The IMU readings in SI units in NED body frame
  11415. """
  11416. id = MAVLINK_MSG_ID_HIGHRES_IMU
  11417. msgname = "HIGHRES_IMU"
  11418. fieldnames = ["time_usec", "xacc", "yacc", "zacc", "xgyro", "ygyro", "zgyro", "xmag", "ymag", "zmag", "abs_pressure", "diff_pressure", "pressure_alt", "temperature", "fields_updated", "id"]
  11419. ordered_fieldnames = ["time_usec", "xacc", "yacc", "zacc", "xgyro", "ygyro", "zgyro", "xmag", "ymag", "zmag", "abs_pressure", "diff_pressure", "pressure_alt", "temperature", "fields_updated", "id"]
  11420. fieldtypes = ["uint64_t", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "uint16_t", "uint8_t"]
  11421. fielddisplays_by_name: Dict[str, str] = {"fields_updated": "bitmask"}
  11422. fieldenums_by_name: Dict[str, str] = {"fields_updated": "HIGHRES_IMU_UPDATED_FLAGS"}
  11423. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "xacc": "m/s/s", "yacc": "m/s/s", "zacc": "m/s/s", "xgyro": "rad/s", "ygyro": "rad/s", "zgyro": "rad/s", "xmag": "gauss", "ymag": "gauss", "zmag": "gauss", "abs_pressure": "hPa", "diff_pressure": "hPa", "temperature": "degC"}
  11424. native_format = bytearray(b"<QfffffffffffffHB")
  11425. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
  11426. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  11427. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  11428. crc_extra = 93
  11429. unpacker = struct.Struct("<QfffffffffffffHB")
  11430. instance_field = "id"
  11431. instance_offset = 62
  11432. def __init__(self, time_usec: int, xacc: float, yacc: float, zacc: float, xgyro: float, ygyro: float, zgyro: float, xmag: float, ymag: float, zmag: float, abs_pressure: float, diff_pressure: float, pressure_alt: float, temperature: float, fields_updated: int, id: int = 0):
  11433. MAVLink_message.__init__(self, MAVLink_highres_imu_message.id, MAVLink_highres_imu_message.msgname)
  11434. self._fieldnames = MAVLink_highres_imu_message.fieldnames
  11435. self._instance_field = MAVLink_highres_imu_message.instance_field
  11436. self._instance_offset = MAVLink_highres_imu_message.instance_offset
  11437. self.time_usec = time_usec
  11438. self.xacc = xacc
  11439. self.yacc = yacc
  11440. self.zacc = zacc
  11441. self.xgyro = xgyro
  11442. self.ygyro = ygyro
  11443. self.zgyro = zgyro
  11444. self.xmag = xmag
  11445. self.ymag = ymag
  11446. self.zmag = zmag
  11447. self.abs_pressure = abs_pressure
  11448. self.diff_pressure = diff_pressure
  11449. self.pressure_alt = pressure_alt
  11450. self.temperature = temperature
  11451. self.fields_updated = fields_updated
  11452. self.id = id
  11453. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11454. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.xacc, self.yacc, self.zacc, self.xgyro, self.ygyro, self.zgyro, self.xmag, self.ymag, self.zmag, self.abs_pressure, self.diff_pressure, self.pressure_alt, self.temperature, self.fields_updated, self.id), force_mavlink1=force_mavlink1)
  11455. # Define name on the class for backwards compatibility (it is now msgname).
  11456. # Done with setattr to hide the class variable from mypy.
  11457. setattr(MAVLink_highres_imu_message, "name", mavlink_msg_deprecated_name_property())
  11458. class MAVLink_optical_flow_rad_message(MAVLink_message):
  11459. """
  11460. Optical flow from an angular rate flow sensor (e.g. PX4FLOW or
  11461. mouse sensor)
  11462. """
  11463. id = MAVLINK_MSG_ID_OPTICAL_FLOW_RAD
  11464. msgname = "OPTICAL_FLOW_RAD"
  11465. fieldnames = ["time_usec", "sensor_id", "integration_time_us", "integrated_x", "integrated_y", "integrated_xgyro", "integrated_ygyro", "integrated_zgyro", "temperature", "quality", "time_delta_distance_us", "distance"]
  11466. ordered_fieldnames = ["time_usec", "integration_time_us", "integrated_x", "integrated_y", "integrated_xgyro", "integrated_ygyro", "integrated_zgyro", "time_delta_distance_us", "distance", "temperature", "sensor_id", "quality"]
  11467. fieldtypes = ["uint64_t", "uint8_t", "uint32_t", "float", "float", "float", "float", "float", "int16_t", "uint8_t", "uint32_t", "float"]
  11468. fielddisplays_by_name: Dict[str, str] = {}
  11469. fieldenums_by_name: Dict[str, str] = {}
  11470. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "integration_time_us": "us", "integrated_x": "rad", "integrated_y": "rad", "integrated_xgyro": "rad", "integrated_ygyro": "rad", "integrated_zgyro": "rad", "temperature": "cdegC", "time_delta_distance_us": "us", "distance": "m"}
  11471. native_format = bytearray(b"<QIfffffIfhBB")
  11472. orders = [0, 10, 1, 2, 3, 4, 5, 6, 9, 11, 7, 8]
  11473. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  11474. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  11475. crc_extra = 138
  11476. unpacker = struct.Struct("<QIfffffIfhBB")
  11477. instance_field = "sensor_id"
  11478. instance_offset = 42
  11479. def __init__(self, time_usec: int, sensor_id: int, integration_time_us: int, integrated_x: float, integrated_y: float, integrated_xgyro: float, integrated_ygyro: float, integrated_zgyro: float, temperature: int, quality: int, time_delta_distance_us: int, distance: float):
  11480. MAVLink_message.__init__(self, MAVLink_optical_flow_rad_message.id, MAVLink_optical_flow_rad_message.msgname)
  11481. self._fieldnames = MAVLink_optical_flow_rad_message.fieldnames
  11482. self._instance_field = MAVLink_optical_flow_rad_message.instance_field
  11483. self._instance_offset = MAVLink_optical_flow_rad_message.instance_offset
  11484. self.time_usec = time_usec
  11485. self.sensor_id = sensor_id
  11486. self.integration_time_us = integration_time_us
  11487. self.integrated_x = integrated_x
  11488. self.integrated_y = integrated_y
  11489. self.integrated_xgyro = integrated_xgyro
  11490. self.integrated_ygyro = integrated_ygyro
  11491. self.integrated_zgyro = integrated_zgyro
  11492. self.temperature = temperature
  11493. self.quality = quality
  11494. self.time_delta_distance_us = time_delta_distance_us
  11495. self.distance = distance
  11496. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11497. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.integration_time_us, self.integrated_x, self.integrated_y, self.integrated_xgyro, self.integrated_ygyro, self.integrated_zgyro, self.time_delta_distance_us, self.distance, self.temperature, self.sensor_id, self.quality), force_mavlink1=force_mavlink1)
  11498. # Define name on the class for backwards compatibility (it is now msgname).
  11499. # Done with setattr to hide the class variable from mypy.
  11500. setattr(MAVLink_optical_flow_rad_message, "name", mavlink_msg_deprecated_name_property())
  11501. class MAVLink_hil_sensor_message(MAVLink_message):
  11502. """
  11503. The IMU readings in SI units in NED body frame
  11504. """
  11505. id = MAVLINK_MSG_ID_HIL_SENSOR
  11506. msgname = "HIL_SENSOR"
  11507. fieldnames = ["time_usec", "xacc", "yacc", "zacc", "xgyro", "ygyro", "zgyro", "xmag", "ymag", "zmag", "abs_pressure", "diff_pressure", "pressure_alt", "temperature", "fields_updated", "id"]
  11508. ordered_fieldnames = ["time_usec", "xacc", "yacc", "zacc", "xgyro", "ygyro", "zgyro", "xmag", "ymag", "zmag", "abs_pressure", "diff_pressure", "pressure_alt", "temperature", "fields_updated", "id"]
  11509. fieldtypes = ["uint64_t", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "uint32_t", "uint8_t"]
  11510. fielddisplays_by_name: Dict[str, str] = {"fields_updated": "bitmask"}
  11511. fieldenums_by_name: Dict[str, str] = {"fields_updated": "HIL_SENSOR_UPDATED_FLAGS"}
  11512. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "xacc": "m/s/s", "yacc": "m/s/s", "zacc": "m/s/s", "xgyro": "rad/s", "ygyro": "rad/s", "zgyro": "rad/s", "xmag": "gauss", "ymag": "gauss", "zmag": "gauss", "abs_pressure": "hPa", "diff_pressure": "hPa", "temperature": "degC"}
  11513. native_format = bytearray(b"<QfffffffffffffIB")
  11514. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
  11515. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  11516. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  11517. crc_extra = 108
  11518. unpacker = struct.Struct("<QfffffffffffffIB")
  11519. instance_field = None
  11520. instance_offset = -1
  11521. def __init__(self, time_usec: int, xacc: float, yacc: float, zacc: float, xgyro: float, ygyro: float, zgyro: float, xmag: float, ymag: float, zmag: float, abs_pressure: float, diff_pressure: float, pressure_alt: float, temperature: float, fields_updated: int, id: int = 0):
  11522. MAVLink_message.__init__(self, MAVLink_hil_sensor_message.id, MAVLink_hil_sensor_message.msgname)
  11523. self._fieldnames = MAVLink_hil_sensor_message.fieldnames
  11524. self._instance_field = MAVLink_hil_sensor_message.instance_field
  11525. self._instance_offset = MAVLink_hil_sensor_message.instance_offset
  11526. self.time_usec = time_usec
  11527. self.xacc = xacc
  11528. self.yacc = yacc
  11529. self.zacc = zacc
  11530. self.xgyro = xgyro
  11531. self.ygyro = ygyro
  11532. self.zgyro = zgyro
  11533. self.xmag = xmag
  11534. self.ymag = ymag
  11535. self.zmag = zmag
  11536. self.abs_pressure = abs_pressure
  11537. self.diff_pressure = diff_pressure
  11538. self.pressure_alt = pressure_alt
  11539. self.temperature = temperature
  11540. self.fields_updated = fields_updated
  11541. self.id = id
  11542. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11543. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.xacc, self.yacc, self.zacc, self.xgyro, self.ygyro, self.zgyro, self.xmag, self.ymag, self.zmag, self.abs_pressure, self.diff_pressure, self.pressure_alt, self.temperature, self.fields_updated, self.id), force_mavlink1=force_mavlink1)
  11544. # Define name on the class for backwards compatibility (it is now msgname).
  11545. # Done with setattr to hide the class variable from mypy.
  11546. setattr(MAVLink_hil_sensor_message, "name", mavlink_msg_deprecated_name_property())
  11547. class MAVLink_sim_state_message(MAVLink_message):
  11548. """
  11549. Status of simulation environment, if used
  11550. """
  11551. id = MAVLINK_MSG_ID_SIM_STATE
  11552. msgname = "SIM_STATE"
  11553. fieldnames = ["q1", "q2", "q3", "q4", "roll", "pitch", "yaw", "xacc", "yacc", "zacc", "xgyro", "ygyro", "zgyro", "lat", "lon", "alt", "std_dev_horz", "std_dev_vert", "vn", "ve", "vd", "lat_int", "lon_int"]
  11554. ordered_fieldnames = ["q1", "q2", "q3", "q4", "roll", "pitch", "yaw", "xacc", "yacc", "zacc", "xgyro", "ygyro", "zgyro", "lat", "lon", "alt", "std_dev_horz", "std_dev_vert", "vn", "ve", "vd", "lat_int", "lon_int"]
  11555. fieldtypes = ["float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "int32_t", "int32_t"]
  11556. fielddisplays_by_name: Dict[str, str] = {}
  11557. fieldenums_by_name: Dict[str, str] = {}
  11558. fieldunits_by_name: Dict[str, str] = {"xacc": "m/s/s", "yacc": "m/s/s", "zacc": "m/s/s", "xgyro": "rad/s", "ygyro": "rad/s", "zgyro": "rad/s", "lat": "deg", "lon": "deg", "alt": "m", "vn": "m/s", "ve": "m/s", "vd": "m/s", "lat_int": "degE7", "lon_int": "degE7"}
  11559. native_format = bytearray(b"<fffffffffffffffffffffii")
  11560. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22]
  11561. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  11562. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  11563. crc_extra = 32
  11564. unpacker = struct.Struct("<fffffffffffffffffffffii")
  11565. instance_field = None
  11566. instance_offset = -1
  11567. def __init__(self, q1: float, q2: float, q3: float, q4: float, roll: float, pitch: float, yaw: float, xacc: float, yacc: float, zacc: float, xgyro: float, ygyro: float, zgyro: float, lat: float, lon: float, alt: float, std_dev_horz: float, std_dev_vert: float, vn: float, ve: float, vd: float, lat_int: int = 0, lon_int: int = 0):
  11568. MAVLink_message.__init__(self, MAVLink_sim_state_message.id, MAVLink_sim_state_message.msgname)
  11569. self._fieldnames = MAVLink_sim_state_message.fieldnames
  11570. self._instance_field = MAVLink_sim_state_message.instance_field
  11571. self._instance_offset = MAVLink_sim_state_message.instance_offset
  11572. self.q1 = q1
  11573. self.q2 = q2
  11574. self.q3 = q3
  11575. self.q4 = q4
  11576. self.roll = roll
  11577. self.pitch = pitch
  11578. self.yaw = yaw
  11579. self.xacc = xacc
  11580. self.yacc = yacc
  11581. self.zacc = zacc
  11582. self.xgyro = xgyro
  11583. self.ygyro = ygyro
  11584. self.zgyro = zgyro
  11585. self.lat = lat
  11586. self.lon = lon
  11587. self.alt = alt
  11588. self.std_dev_horz = std_dev_horz
  11589. self.std_dev_vert = std_dev_vert
  11590. self.vn = vn
  11591. self.ve = ve
  11592. self.vd = vd
  11593. self.lat_int = lat_int
  11594. self.lon_int = lon_int
  11595. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11596. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.q1, self.q2, self.q3, self.q4, self.roll, self.pitch, self.yaw, self.xacc, self.yacc, self.zacc, self.xgyro, self.ygyro, self.zgyro, self.lat, self.lon, self.alt, self.std_dev_horz, self.std_dev_vert, self.vn, self.ve, self.vd, self.lat_int, self.lon_int), force_mavlink1=force_mavlink1)
  11597. # Define name on the class for backwards compatibility (it is now msgname).
  11598. # Done with setattr to hide the class variable from mypy.
  11599. setattr(MAVLink_sim_state_message, "name", mavlink_msg_deprecated_name_property())
  11600. class MAVLink_radio_status_message(MAVLink_message):
  11601. """
  11602. Status generated by radio and injected into MAVLink stream.
  11603. """
  11604. id = MAVLINK_MSG_ID_RADIO_STATUS
  11605. msgname = "RADIO_STATUS"
  11606. fieldnames = ["rssi", "remrssi", "txbuf", "noise", "remnoise", "rxerrors", "fixed"]
  11607. ordered_fieldnames = ["rxerrors", "fixed", "rssi", "remrssi", "txbuf", "noise", "remnoise"]
  11608. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint16_t", "uint16_t"]
  11609. fielddisplays_by_name: Dict[str, str] = {}
  11610. fieldenums_by_name: Dict[str, str] = {}
  11611. fieldunits_by_name: Dict[str, str] = {"txbuf": "%"}
  11612. native_format = bytearray(b"<HHBBBBB")
  11613. orders = [2, 3, 4, 5, 6, 0, 1]
  11614. lengths = [1, 1, 1, 1, 1, 1, 1]
  11615. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  11616. crc_extra = 185
  11617. unpacker = struct.Struct("<HHBBBBB")
  11618. instance_field = None
  11619. instance_offset = -1
  11620. def __init__(self, rssi: int, remrssi: int, txbuf: int, noise: int, remnoise: int, rxerrors: int, fixed: int):
  11621. MAVLink_message.__init__(self, MAVLink_radio_status_message.id, MAVLink_radio_status_message.msgname)
  11622. self._fieldnames = MAVLink_radio_status_message.fieldnames
  11623. self._instance_field = MAVLink_radio_status_message.instance_field
  11624. self._instance_offset = MAVLink_radio_status_message.instance_offset
  11625. self.rssi = rssi
  11626. self.remrssi = remrssi
  11627. self.txbuf = txbuf
  11628. self.noise = noise
  11629. self.remnoise = remnoise
  11630. self.rxerrors = rxerrors
  11631. self.fixed = fixed
  11632. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11633. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.rxerrors, self.fixed, self.rssi, self.remrssi, self.txbuf, self.noise, self.remnoise), force_mavlink1=force_mavlink1)
  11634. # Define name on the class for backwards compatibility (it is now msgname).
  11635. # Done with setattr to hide the class variable from mypy.
  11636. setattr(MAVLink_radio_status_message, "name", mavlink_msg_deprecated_name_property())
  11637. class MAVLink_file_transfer_protocol_message(MAVLink_message):
  11638. """
  11639. File transfer protocol message:
  11640. https://mavlink.io/en/services/ftp.html.
  11641. """
  11642. id = MAVLINK_MSG_ID_FILE_TRANSFER_PROTOCOL
  11643. msgname = "FILE_TRANSFER_PROTOCOL"
  11644. fieldnames = ["target_network", "target_system", "target_component", "payload"]
  11645. ordered_fieldnames = ["target_network", "target_system", "target_component", "payload"]
  11646. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t"]
  11647. fielddisplays_by_name: Dict[str, str] = {}
  11648. fieldenums_by_name: Dict[str, str] = {}
  11649. fieldunits_by_name: Dict[str, str] = {}
  11650. native_format = bytearray(b"<BBBB")
  11651. orders = [0, 1, 2, 3]
  11652. lengths = [1, 1, 1, 251]
  11653. array_lengths = [0, 0, 0, 251]
  11654. crc_extra = 84
  11655. unpacker = struct.Struct("<BBB251B")
  11656. instance_field = None
  11657. instance_offset = -1
  11658. def __init__(self, target_network: int, target_system: int, target_component: int, payload: Sequence[int]):
  11659. MAVLink_message.__init__(self, MAVLink_file_transfer_protocol_message.id, MAVLink_file_transfer_protocol_message.msgname)
  11660. self._fieldnames = MAVLink_file_transfer_protocol_message.fieldnames
  11661. self._instance_field = MAVLink_file_transfer_protocol_message.instance_field
  11662. self._instance_offset = MAVLink_file_transfer_protocol_message.instance_offset
  11663. self.target_network = target_network
  11664. self.target_system = target_system
  11665. self.target_component = target_component
  11666. self.payload = payload
  11667. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11668. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.target_network, self.target_system, self.target_component, self.payload[0], self.payload[1], self.payload[2], self.payload[3], self.payload[4], self.payload[5], self.payload[6], self.payload[7], self.payload[8], self.payload[9], self.payload[10], self.payload[11], self.payload[12], self.payload[13], self.payload[14], self.payload[15], self.payload[16], self.payload[17], self.payload[18], self.payload[19], self.payload[20], self.payload[21], self.payload[22], self.payload[23], self.payload[24], self.payload[25], self.payload[26], self.payload[27], self.payload[28], self.payload[29], self.payload[30], self.payload[31], self.payload[32], self.payload[33], self.payload[34], self.payload[35], self.payload[36], self.payload[37], self.payload[38], self.payload[39], self.payload[40], self.payload[41], self.payload[42], self.payload[43], self.payload[44], self.payload[45], self.payload[46], self.payload[47], self.payload[48], self.payload[49], self.payload[50], self.payload[51], self.payload[52], self.payload[53], self.payload[54], self.payload[55], self.payload[56], self.payload[57], self.payload[58], self.payload[59], self.payload[60], self.payload[61], self.payload[62], self.payload[63], self.payload[64], self.payload[65], self.payload[66], self.payload[67], self.payload[68], self.payload[69], self.payload[70], self.payload[71], self.payload[72], self.payload[73], self.payload[74], self.payload[75], self.payload[76], self.payload[77], self.payload[78], self.payload[79], self.payload[80], self.payload[81], self.payload[82], self.payload[83], self.payload[84], self.payload[85], self.payload[86], self.payload[87], self.payload[88], self.payload[89], self.payload[90], self.payload[91], self.payload[92], self.payload[93], self.payload[94], self.payload[95], self.payload[96], self.payload[97], self.payload[98], self.payload[99], self.payload[100], self.payload[101], self.payload[102], self.payload[103], self.payload[104], self.payload[105], self.payload[106], self.payload[107], self.payload[108], self.payload[109], self.payload[110], self.payload[111], self.payload[112], self.payload[113], self.payload[114], self.payload[115], self.payload[116], self.payload[117], self.payload[118], self.payload[119], self.payload[120], self.payload[121], self.payload[122], self.payload[123], self.payload[124], self.payload[125], self.payload[126], self.payload[127], self.payload[128], self.payload[129], self.payload[130], self.payload[131], self.payload[132], self.payload[133], self.payload[134], self.payload[135], self.payload[136], self.payload[137], self.payload[138], self.payload[139], self.payload[140], self.payload[141], self.payload[142], self.payload[143], self.payload[144], self.payload[145], self.payload[146], self.payload[147], self.payload[148], self.payload[149], self.payload[150], self.payload[151], self.payload[152], self.payload[153], self.payload[154], self.payload[155], self.payload[156], self.payload[157], self.payload[158], self.payload[159], self.payload[160], self.payload[161], self.payload[162], self.payload[163], self.payload[164], self.payload[165], self.payload[166], self.payload[167], self.payload[168], self.payload[169], self.payload[170], self.payload[171], self.payload[172], self.payload[173], self.payload[174], self.payload[175], self.payload[176], self.payload[177], self.payload[178], self.payload[179], self.payload[180], self.payload[181], self.payload[182], self.payload[183], self.payload[184], self.payload[185], self.payload[186], self.payload[187], self.payload[188], self.payload[189], self.payload[190], self.payload[191], self.payload[192], self.payload[193], self.payload[194], self.payload[195], self.payload[196], self.payload[197], self.payload[198], self.payload[199], self.payload[200], self.payload[201], self.payload[202], self.payload[203], self.payload[204], self.payload[205], self.payload[206], self.payload[207], self.payload[208], self.payload[209], self.payload[210], self.payload[211], self.payload[212], self.payload[213], self.payload[214], self.payload[215], self.payload[216], self.payload[217], self.payload[218], self.payload[219], self.payload[220], self.payload[221], self.payload[222], self.payload[223], self.payload[224], self.payload[225], self.payload[226], self.payload[227], self.payload[228], self.payload[229], self.payload[230], self.payload[231], self.payload[232], self.payload[233], self.payload[234], self.payload[235], self.payload[236], self.payload[237], self.payload[238], self.payload[239], self.payload[240], self.payload[241], self.payload[242], self.payload[243], self.payload[244], self.payload[245], self.payload[246], self.payload[247], self.payload[248], self.payload[249], self.payload[250]), force_mavlink1=force_mavlink1)
  11669. # Define name on the class for backwards compatibility (it is now msgname).
  11670. # Done with setattr to hide the class variable from mypy.
  11671. setattr(MAVLink_file_transfer_protocol_message, "name", mavlink_msg_deprecated_name_property())
  11672. class MAVLink_timesync_message(MAVLink_message):
  11673. """
  11674. Time synchronization message. The message is used for both
  11675. timesync requests and responses. The request is sent with
  11676. `ts1=syncing component timestamp` and `tc1=0`, and may be
  11677. broadcast or targeted to a specific system/component. The
  11678. response is sent with `ts1=syncing component timestamp` (mirror
  11679. back unchanged), and `tc1=responding component timestamp`, with
  11680. the `target_system` and `target_component` set to ids of the
  11681. original request. Systems can determine if they are
  11682. receiving a request or response based on the value of `tc`.
  11683. If the response has `target_system==target_component==0` the
  11684. remote system has not been updated to use the component IDs and
  11685. cannot reliably timesync; the requestor may report an error.
  11686. Timestamps are UNIX Epoch time or time since system boot in
  11687. nanoseconds (the timestamp format can be inferred by checking for
  11688. the magnitude of the number; generally it doesn't matter as only
  11689. the offset is used). The message sequence is repeated
  11690. numerous times with results being filtered/averaged to estimate
  11691. the offset.
  11692. """
  11693. id = MAVLINK_MSG_ID_TIMESYNC
  11694. msgname = "TIMESYNC"
  11695. fieldnames = ["tc1", "ts1", "target_system", "target_component"]
  11696. ordered_fieldnames = ["tc1", "ts1", "target_system", "target_component"]
  11697. fieldtypes = ["int64_t", "int64_t", "uint8_t", "uint8_t"]
  11698. fielddisplays_by_name: Dict[str, str] = {}
  11699. fieldenums_by_name: Dict[str, str] = {}
  11700. fieldunits_by_name: Dict[str, str] = {"tc1": "ns", "ts1": "ns"}
  11701. native_format = bytearray(b"<qqBB")
  11702. orders = [0, 1, 2, 3]
  11703. lengths = [1, 1, 1, 1]
  11704. array_lengths = [0, 0, 0, 0]
  11705. crc_extra = 34
  11706. unpacker = struct.Struct("<qqBB")
  11707. instance_field = None
  11708. instance_offset = -1
  11709. def __init__(self, tc1: int, ts1: int, target_system: int = 0, target_component: int = 0):
  11710. MAVLink_message.__init__(self, MAVLink_timesync_message.id, MAVLink_timesync_message.msgname)
  11711. self._fieldnames = MAVLink_timesync_message.fieldnames
  11712. self._instance_field = MAVLink_timesync_message.instance_field
  11713. self._instance_offset = MAVLink_timesync_message.instance_offset
  11714. self.tc1 = tc1
  11715. self.ts1 = ts1
  11716. self.target_system = target_system
  11717. self.target_component = target_component
  11718. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11719. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.tc1, self.ts1, self.target_system, self.target_component), force_mavlink1=force_mavlink1)
  11720. # Define name on the class for backwards compatibility (it is now msgname).
  11721. # Done with setattr to hide the class variable from mypy.
  11722. setattr(MAVLink_timesync_message, "name", mavlink_msg_deprecated_name_property())
  11723. class MAVLink_camera_trigger_message(MAVLink_message):
  11724. """
  11725. Camera-IMU triggering and synchronisation message.
  11726. """
  11727. id = MAVLINK_MSG_ID_CAMERA_TRIGGER
  11728. msgname = "CAMERA_TRIGGER"
  11729. fieldnames = ["time_usec", "seq"]
  11730. ordered_fieldnames = ["time_usec", "seq"]
  11731. fieldtypes = ["uint64_t", "uint32_t"]
  11732. fielddisplays_by_name: Dict[str, str] = {}
  11733. fieldenums_by_name: Dict[str, str] = {}
  11734. fieldunits_by_name: Dict[str, str] = {"time_usec": "us"}
  11735. native_format = bytearray(b"<QI")
  11736. orders = [0, 1]
  11737. lengths = [1, 1]
  11738. array_lengths = [0, 0]
  11739. crc_extra = 174
  11740. unpacker = struct.Struct("<QI")
  11741. instance_field = None
  11742. instance_offset = -1
  11743. def __init__(self, time_usec: int, seq: int):
  11744. MAVLink_message.__init__(self, MAVLink_camera_trigger_message.id, MAVLink_camera_trigger_message.msgname)
  11745. self._fieldnames = MAVLink_camera_trigger_message.fieldnames
  11746. self._instance_field = MAVLink_camera_trigger_message.instance_field
  11747. self._instance_offset = MAVLink_camera_trigger_message.instance_offset
  11748. self.time_usec = time_usec
  11749. self.seq = seq
  11750. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11751. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.seq), force_mavlink1=force_mavlink1)
  11752. # Define name on the class for backwards compatibility (it is now msgname).
  11753. # Done with setattr to hide the class variable from mypy.
  11754. setattr(MAVLink_camera_trigger_message, "name", mavlink_msg_deprecated_name_property())
  11755. class MAVLink_hil_gps_message(MAVLink_message):
  11756. """
  11757. The global position, as returned by the Global Positioning System
  11758. (GPS). This is NOT the global position estimate
  11759. of the system, but rather a RAW sensor value. See message
  11760. GLOBAL_POSITION_INT for the global position estimate.
  11761. """
  11762. id = MAVLINK_MSG_ID_HIL_GPS
  11763. msgname = "HIL_GPS"
  11764. fieldnames = ["time_usec", "fix_type", "lat", "lon", "alt", "eph", "epv", "vel", "vn", "ve", "vd", "cog", "satellites_visible", "id", "yaw"]
  11765. ordered_fieldnames = ["time_usec", "lat", "lon", "alt", "eph", "epv", "vel", "vn", "ve", "vd", "cog", "fix_type", "satellites_visible", "id", "yaw"]
  11766. fieldtypes = ["uint64_t", "uint8_t", "int32_t", "int32_t", "int32_t", "uint16_t", "uint16_t", "uint16_t", "int16_t", "int16_t", "int16_t", "uint16_t", "uint8_t", "uint8_t", "uint16_t"]
  11767. fielddisplays_by_name: Dict[str, str] = {}
  11768. fieldenums_by_name: Dict[str, str] = {}
  11769. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "lat": "degE7", "lon": "degE7", "alt": "mm", "vel": "cm/s", "vn": "cm/s", "ve": "cm/s", "vd": "cm/s", "cog": "cdeg", "yaw": "cdeg"}
  11770. native_format = bytearray(b"<QiiiHHHhhhHBBBH")
  11771. orders = [0, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14]
  11772. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  11773. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  11774. crc_extra = 124
  11775. unpacker = struct.Struct("<QiiiHHHhhhHBBBH")
  11776. instance_field = None
  11777. instance_offset = -1
  11778. def __init__(self, time_usec: int, fix_type: int, lat: int, lon: int, alt: int, eph: int, epv: int, vel: int, vn: int, ve: int, vd: int, cog: int, satellites_visible: int, id: int = 0, yaw: int = 0):
  11779. MAVLink_message.__init__(self, MAVLink_hil_gps_message.id, MAVLink_hil_gps_message.msgname)
  11780. self._fieldnames = MAVLink_hil_gps_message.fieldnames
  11781. self._instance_field = MAVLink_hil_gps_message.instance_field
  11782. self._instance_offset = MAVLink_hil_gps_message.instance_offset
  11783. self.time_usec = time_usec
  11784. self.fix_type = fix_type
  11785. self.lat = lat
  11786. self.lon = lon
  11787. self.alt = alt
  11788. self.eph = eph
  11789. self.epv = epv
  11790. self.vel = vel
  11791. self.vn = vn
  11792. self.ve = ve
  11793. self.vd = vd
  11794. self.cog = cog
  11795. self.satellites_visible = satellites_visible
  11796. self.id = id
  11797. self.yaw = yaw
  11798. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11799. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.lat, self.lon, self.alt, self.eph, self.epv, self.vel, self.vn, self.ve, self.vd, self.cog, self.fix_type, self.satellites_visible, self.id, self.yaw), force_mavlink1=force_mavlink1)
  11800. # Define name on the class for backwards compatibility (it is now msgname).
  11801. # Done with setattr to hide the class variable from mypy.
  11802. setattr(MAVLink_hil_gps_message, "name", mavlink_msg_deprecated_name_property())
  11803. class MAVLink_hil_optical_flow_message(MAVLink_message):
  11804. """
  11805. Simulated optical flow from a flow sensor (e.g. PX4FLOW or optical
  11806. mouse sensor)
  11807. """
  11808. id = MAVLINK_MSG_ID_HIL_OPTICAL_FLOW
  11809. msgname = "HIL_OPTICAL_FLOW"
  11810. fieldnames = ["time_usec", "sensor_id", "integration_time_us", "integrated_x", "integrated_y", "integrated_xgyro", "integrated_ygyro", "integrated_zgyro", "temperature", "quality", "time_delta_distance_us", "distance"]
  11811. ordered_fieldnames = ["time_usec", "integration_time_us", "integrated_x", "integrated_y", "integrated_xgyro", "integrated_ygyro", "integrated_zgyro", "time_delta_distance_us", "distance", "temperature", "sensor_id", "quality"]
  11812. fieldtypes = ["uint64_t", "uint8_t", "uint32_t", "float", "float", "float", "float", "float", "int16_t", "uint8_t", "uint32_t", "float"]
  11813. fielddisplays_by_name: Dict[str, str] = {}
  11814. fieldenums_by_name: Dict[str, str] = {}
  11815. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "integration_time_us": "us", "integrated_x": "rad", "integrated_y": "rad", "integrated_xgyro": "rad", "integrated_ygyro": "rad", "integrated_zgyro": "rad", "temperature": "cdegC", "time_delta_distance_us": "us", "distance": "m"}
  11816. native_format = bytearray(b"<QIfffffIfhBB")
  11817. orders = [0, 10, 1, 2, 3, 4, 5, 6, 9, 11, 7, 8]
  11818. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  11819. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  11820. crc_extra = 237
  11821. unpacker = struct.Struct("<QIfffffIfhBB")
  11822. instance_field = None
  11823. instance_offset = -1
  11824. def __init__(self, time_usec: int, sensor_id: int, integration_time_us: int, integrated_x: float, integrated_y: float, integrated_xgyro: float, integrated_ygyro: float, integrated_zgyro: float, temperature: int, quality: int, time_delta_distance_us: int, distance: float):
  11825. MAVLink_message.__init__(self, MAVLink_hil_optical_flow_message.id, MAVLink_hil_optical_flow_message.msgname)
  11826. self._fieldnames = MAVLink_hil_optical_flow_message.fieldnames
  11827. self._instance_field = MAVLink_hil_optical_flow_message.instance_field
  11828. self._instance_offset = MAVLink_hil_optical_flow_message.instance_offset
  11829. self.time_usec = time_usec
  11830. self.sensor_id = sensor_id
  11831. self.integration_time_us = integration_time_us
  11832. self.integrated_x = integrated_x
  11833. self.integrated_y = integrated_y
  11834. self.integrated_xgyro = integrated_xgyro
  11835. self.integrated_ygyro = integrated_ygyro
  11836. self.integrated_zgyro = integrated_zgyro
  11837. self.temperature = temperature
  11838. self.quality = quality
  11839. self.time_delta_distance_us = time_delta_distance_us
  11840. self.distance = distance
  11841. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11842. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.integration_time_us, self.integrated_x, self.integrated_y, self.integrated_xgyro, self.integrated_ygyro, self.integrated_zgyro, self.time_delta_distance_us, self.distance, self.temperature, self.sensor_id, self.quality), force_mavlink1=force_mavlink1)
  11843. # Define name on the class for backwards compatibility (it is now msgname).
  11844. # Done with setattr to hide the class variable from mypy.
  11845. setattr(MAVLink_hil_optical_flow_message, "name", mavlink_msg_deprecated_name_property())
  11846. class MAVLink_hil_state_quaternion_message(MAVLink_message):
  11847. """
  11848. Sent from simulation to autopilot, avoids in contrast to HIL_STATE
  11849. singularities. This packet is useful for high throughput
  11850. applications such as hardware in the loop simulations.
  11851. """
  11852. id = MAVLINK_MSG_ID_HIL_STATE_QUATERNION
  11853. msgname = "HIL_STATE_QUATERNION"
  11854. fieldnames = ["time_usec", "attitude_quaternion", "rollspeed", "pitchspeed", "yawspeed", "lat", "lon", "alt", "vx", "vy", "vz", "ind_airspeed", "true_airspeed", "xacc", "yacc", "zacc"]
  11855. ordered_fieldnames = ["time_usec", "attitude_quaternion", "rollspeed", "pitchspeed", "yawspeed", "lat", "lon", "alt", "vx", "vy", "vz", "ind_airspeed", "true_airspeed", "xacc", "yacc", "zacc"]
  11856. fieldtypes = ["uint64_t", "float", "float", "float", "float", "int32_t", "int32_t", "int32_t", "int16_t", "int16_t", "int16_t", "uint16_t", "uint16_t", "int16_t", "int16_t", "int16_t"]
  11857. fielddisplays_by_name: Dict[str, str] = {}
  11858. fieldenums_by_name: Dict[str, str] = {}
  11859. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "rollspeed": "rad/s", "pitchspeed": "rad/s", "yawspeed": "rad/s", "lat": "degE7", "lon": "degE7", "alt": "mm", "vx": "cm/s", "vy": "cm/s", "vz": "cm/s", "ind_airspeed": "cm/s", "true_airspeed": "cm/s", "xacc": "mG", "yacc": "mG", "zacc": "mG"}
  11860. native_format = bytearray(b"<QffffiiihhhHHhhh")
  11861. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
  11862. lengths = [1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  11863. array_lengths = [0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  11864. crc_extra = 4
  11865. unpacker = struct.Struct("<Q4ffffiiihhhHHhhh")
  11866. instance_field = None
  11867. instance_offset = -1
  11868. def __init__(self, time_usec: int, attitude_quaternion: Sequence[float], rollspeed: float, pitchspeed: float, yawspeed: float, lat: int, lon: int, alt: int, vx: int, vy: int, vz: int, ind_airspeed: int, true_airspeed: int, xacc: int, yacc: int, zacc: int):
  11869. MAVLink_message.__init__(self, MAVLink_hil_state_quaternion_message.id, MAVLink_hil_state_quaternion_message.msgname)
  11870. self._fieldnames = MAVLink_hil_state_quaternion_message.fieldnames
  11871. self._instance_field = MAVLink_hil_state_quaternion_message.instance_field
  11872. self._instance_offset = MAVLink_hil_state_quaternion_message.instance_offset
  11873. self.time_usec = time_usec
  11874. self.attitude_quaternion = attitude_quaternion
  11875. self.rollspeed = rollspeed
  11876. self.pitchspeed = pitchspeed
  11877. self.yawspeed = yawspeed
  11878. self.lat = lat
  11879. self.lon = lon
  11880. self.alt = alt
  11881. self.vx = vx
  11882. self.vy = vy
  11883. self.vz = vz
  11884. self.ind_airspeed = ind_airspeed
  11885. self.true_airspeed = true_airspeed
  11886. self.xacc = xacc
  11887. self.yacc = yacc
  11888. self.zacc = zacc
  11889. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11890. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.attitude_quaternion[0], self.attitude_quaternion[1], self.attitude_quaternion[2], self.attitude_quaternion[3], self.rollspeed, self.pitchspeed, self.yawspeed, self.lat, self.lon, self.alt, self.vx, self.vy, self.vz, self.ind_airspeed, self.true_airspeed, self.xacc, self.yacc, self.zacc), force_mavlink1=force_mavlink1)
  11891. # Define name on the class for backwards compatibility (it is now msgname).
  11892. # Done with setattr to hide the class variable from mypy.
  11893. setattr(MAVLink_hil_state_quaternion_message, "name", mavlink_msg_deprecated_name_property())
  11894. class MAVLink_scaled_imu2_message(MAVLink_message):
  11895. """
  11896. The RAW IMU readings for secondary 9DOF sensor setup. This message
  11897. should contain the scaled values to the described units
  11898. """
  11899. id = MAVLINK_MSG_ID_SCALED_IMU2
  11900. msgname = "SCALED_IMU2"
  11901. fieldnames = ["time_boot_ms", "xacc", "yacc", "zacc", "xgyro", "ygyro", "zgyro", "xmag", "ymag", "zmag", "temperature"]
  11902. ordered_fieldnames = ["time_boot_ms", "xacc", "yacc", "zacc", "xgyro", "ygyro", "zgyro", "xmag", "ymag", "zmag", "temperature"]
  11903. fieldtypes = ["uint32_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t"]
  11904. fielddisplays_by_name: Dict[str, str] = {}
  11905. fieldenums_by_name: Dict[str, str] = {}
  11906. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "xacc": "mG", "yacc": "mG", "zacc": "mG", "xgyro": "mrad/s", "ygyro": "mrad/s", "zgyro": "mrad/s", "xmag": "mgauss", "ymag": "mgauss", "zmag": "mgauss", "temperature": "cdegC"}
  11907. native_format = bytearray(b"<Ihhhhhhhhhh")
  11908. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
  11909. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  11910. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  11911. crc_extra = 76
  11912. unpacker = struct.Struct("<Ihhhhhhhhhh")
  11913. instance_field = None
  11914. instance_offset = -1
  11915. def __init__(self, time_boot_ms: int, xacc: int, yacc: int, zacc: int, xgyro: int, ygyro: int, zgyro: int, xmag: int, ymag: int, zmag: int, temperature: int = 0):
  11916. MAVLink_message.__init__(self, MAVLink_scaled_imu2_message.id, MAVLink_scaled_imu2_message.msgname)
  11917. self._fieldnames = MAVLink_scaled_imu2_message.fieldnames
  11918. self._instance_field = MAVLink_scaled_imu2_message.instance_field
  11919. self._instance_offset = MAVLink_scaled_imu2_message.instance_offset
  11920. self.time_boot_ms = time_boot_ms
  11921. self.xacc = xacc
  11922. self.yacc = yacc
  11923. self.zacc = zacc
  11924. self.xgyro = xgyro
  11925. self.ygyro = ygyro
  11926. self.zgyro = zgyro
  11927. self.xmag = xmag
  11928. self.ymag = ymag
  11929. self.zmag = zmag
  11930. self.temperature = temperature
  11931. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11932. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.xacc, self.yacc, self.zacc, self.xgyro, self.ygyro, self.zgyro, self.xmag, self.ymag, self.zmag, self.temperature), force_mavlink1=force_mavlink1)
  11933. # Define name on the class for backwards compatibility (it is now msgname).
  11934. # Done with setattr to hide the class variable from mypy.
  11935. setattr(MAVLink_scaled_imu2_message, "name", mavlink_msg_deprecated_name_property())
  11936. class MAVLink_log_request_list_message(MAVLink_message):
  11937. """
  11938. Request a list of available logs. On some systems calling this may
  11939. stop on-board logging until LOG_REQUEST_END is called. If there
  11940. are no log files available this request shall be answered with one
  11941. LOG_ENTRY message with id = 0 and num_logs = 0.
  11942. """
  11943. id = MAVLINK_MSG_ID_LOG_REQUEST_LIST
  11944. msgname = "LOG_REQUEST_LIST"
  11945. fieldnames = ["target_system", "target_component", "start", "end"]
  11946. ordered_fieldnames = ["start", "end", "target_system", "target_component"]
  11947. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "uint16_t"]
  11948. fielddisplays_by_name: Dict[str, str] = {}
  11949. fieldenums_by_name: Dict[str, str] = {}
  11950. fieldunits_by_name: Dict[str, str] = {}
  11951. native_format = bytearray(b"<HHBB")
  11952. orders = [2, 3, 0, 1]
  11953. lengths = [1, 1, 1, 1]
  11954. array_lengths = [0, 0, 0, 0]
  11955. crc_extra = 128
  11956. unpacker = struct.Struct("<HHBB")
  11957. instance_field = None
  11958. instance_offset = -1
  11959. def __init__(self, target_system: int, target_component: int, start: int, end: int):
  11960. MAVLink_message.__init__(self, MAVLink_log_request_list_message.id, MAVLink_log_request_list_message.msgname)
  11961. self._fieldnames = MAVLink_log_request_list_message.fieldnames
  11962. self._instance_field = MAVLink_log_request_list_message.instance_field
  11963. self._instance_offset = MAVLink_log_request_list_message.instance_offset
  11964. self.target_system = target_system
  11965. self.target_component = target_component
  11966. self.start = start
  11967. self.end = end
  11968. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11969. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.start, self.end, self.target_system, self.target_component), force_mavlink1=force_mavlink1)
  11970. # Define name on the class for backwards compatibility (it is now msgname).
  11971. # Done with setattr to hide the class variable from mypy.
  11972. setattr(MAVLink_log_request_list_message, "name", mavlink_msg_deprecated_name_property())
  11973. class MAVLink_log_entry_message(MAVLink_message):
  11974. """
  11975. Reply to LOG_REQUEST_LIST
  11976. """
  11977. id = MAVLINK_MSG_ID_LOG_ENTRY
  11978. msgname = "LOG_ENTRY"
  11979. fieldnames = ["id", "num_logs", "last_log_num", "time_utc", "size"]
  11980. ordered_fieldnames = ["time_utc", "size", "id", "num_logs", "last_log_num"]
  11981. fieldtypes = ["uint16_t", "uint16_t", "uint16_t", "uint32_t", "uint32_t"]
  11982. fielddisplays_by_name: Dict[str, str] = {}
  11983. fieldenums_by_name: Dict[str, str] = {}
  11984. fieldunits_by_name: Dict[str, str] = {"time_utc": "s", "size": "bytes"}
  11985. native_format = bytearray(b"<IIHHH")
  11986. orders = [2, 3, 4, 0, 1]
  11987. lengths = [1, 1, 1, 1, 1]
  11988. array_lengths = [0, 0, 0, 0, 0]
  11989. crc_extra = 56
  11990. unpacker = struct.Struct("<IIHHH")
  11991. instance_field = None
  11992. instance_offset = -1
  11993. def __init__(self, id: int, num_logs: int, last_log_num: int, time_utc: int, size: int):
  11994. MAVLink_message.__init__(self, MAVLink_log_entry_message.id, MAVLink_log_entry_message.msgname)
  11995. self._fieldnames = MAVLink_log_entry_message.fieldnames
  11996. self._instance_field = MAVLink_log_entry_message.instance_field
  11997. self._instance_offset = MAVLink_log_entry_message.instance_offset
  11998. self.id = id
  11999. self.num_logs = num_logs
  12000. self.last_log_num = last_log_num
  12001. self.time_utc = time_utc
  12002. self.size = size
  12003. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12004. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_utc, self.size, self.id, self.num_logs, self.last_log_num), force_mavlink1=force_mavlink1)
  12005. # Define name on the class for backwards compatibility (it is now msgname).
  12006. # Done with setattr to hide the class variable from mypy.
  12007. setattr(MAVLink_log_entry_message, "name", mavlink_msg_deprecated_name_property())
  12008. class MAVLink_log_request_data_message(MAVLink_message):
  12009. """
  12010. Request a chunk of a log
  12011. """
  12012. id = MAVLINK_MSG_ID_LOG_REQUEST_DATA
  12013. msgname = "LOG_REQUEST_DATA"
  12014. fieldnames = ["target_system", "target_component", "id", "ofs", "count"]
  12015. ordered_fieldnames = ["ofs", "count", "id", "target_system", "target_component"]
  12016. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "uint32_t", "uint32_t"]
  12017. fielddisplays_by_name: Dict[str, str] = {}
  12018. fieldenums_by_name: Dict[str, str] = {}
  12019. fieldunits_by_name: Dict[str, str] = {"count": "bytes"}
  12020. native_format = bytearray(b"<IIHBB")
  12021. orders = [3, 4, 2, 0, 1]
  12022. lengths = [1, 1, 1, 1, 1]
  12023. array_lengths = [0, 0, 0, 0, 0]
  12024. crc_extra = 116
  12025. unpacker = struct.Struct("<IIHBB")
  12026. instance_field = None
  12027. instance_offset = -1
  12028. def __init__(self, target_system: int, target_component: int, id: int, ofs: int, count: int):
  12029. MAVLink_message.__init__(self, MAVLink_log_request_data_message.id, MAVLink_log_request_data_message.msgname)
  12030. self._fieldnames = MAVLink_log_request_data_message.fieldnames
  12031. self._instance_field = MAVLink_log_request_data_message.instance_field
  12032. self._instance_offset = MAVLink_log_request_data_message.instance_offset
  12033. self.target_system = target_system
  12034. self.target_component = target_component
  12035. self.id = id
  12036. self.ofs = ofs
  12037. self.count = count
  12038. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12039. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.ofs, self.count, self.id, self.target_system, self.target_component), force_mavlink1=force_mavlink1)
  12040. # Define name on the class for backwards compatibility (it is now msgname).
  12041. # Done with setattr to hide the class variable from mypy.
  12042. setattr(MAVLink_log_request_data_message, "name", mavlink_msg_deprecated_name_property())
  12043. class MAVLink_log_data_message(MAVLink_message):
  12044. """
  12045. Reply to LOG_REQUEST_DATA
  12046. """
  12047. id = MAVLINK_MSG_ID_LOG_DATA
  12048. msgname = "LOG_DATA"
  12049. fieldnames = ["id", "ofs", "count", "data"]
  12050. ordered_fieldnames = ["ofs", "id", "count", "data"]
  12051. fieldtypes = ["uint16_t", "uint32_t", "uint8_t", "uint8_t"]
  12052. fielddisplays_by_name: Dict[str, str] = {}
  12053. fieldenums_by_name: Dict[str, str] = {}
  12054. fieldunits_by_name: Dict[str, str] = {"count": "bytes"}
  12055. native_format = bytearray(b"<IHBB")
  12056. orders = [1, 0, 2, 3]
  12057. lengths = [1, 1, 1, 90]
  12058. array_lengths = [0, 0, 0, 90]
  12059. crc_extra = 134
  12060. unpacker = struct.Struct("<IHB90B")
  12061. instance_field = None
  12062. instance_offset = -1
  12063. def __init__(self, id: int, ofs: int, count: int, data: Sequence[int]):
  12064. MAVLink_message.__init__(self, MAVLink_log_data_message.id, MAVLink_log_data_message.msgname)
  12065. self._fieldnames = MAVLink_log_data_message.fieldnames
  12066. self._instance_field = MAVLink_log_data_message.instance_field
  12067. self._instance_offset = MAVLink_log_data_message.instance_offset
  12068. self.id = id
  12069. self.ofs = ofs
  12070. self.count = count
  12071. self.data = data
  12072. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12073. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.ofs, self.id, self.count, self.data[0], self.data[1], self.data[2], self.data[3], self.data[4], self.data[5], self.data[6], self.data[7], self.data[8], self.data[9], self.data[10], self.data[11], self.data[12], self.data[13], self.data[14], self.data[15], self.data[16], self.data[17], self.data[18], self.data[19], self.data[20], self.data[21], self.data[22], self.data[23], self.data[24], self.data[25], self.data[26], self.data[27], self.data[28], self.data[29], self.data[30], self.data[31], self.data[32], self.data[33], self.data[34], self.data[35], self.data[36], self.data[37], self.data[38], self.data[39], self.data[40], self.data[41], self.data[42], self.data[43], self.data[44], self.data[45], self.data[46], self.data[47], self.data[48], self.data[49], self.data[50], self.data[51], self.data[52], self.data[53], self.data[54], self.data[55], self.data[56], self.data[57], self.data[58], self.data[59], self.data[60], self.data[61], self.data[62], self.data[63], self.data[64], self.data[65], self.data[66], self.data[67], self.data[68], self.data[69], self.data[70], self.data[71], self.data[72], self.data[73], self.data[74], self.data[75], self.data[76], self.data[77], self.data[78], self.data[79], self.data[80], self.data[81], self.data[82], self.data[83], self.data[84], self.data[85], self.data[86], self.data[87], self.data[88], self.data[89]), force_mavlink1=force_mavlink1)
  12074. # Define name on the class for backwards compatibility (it is now msgname).
  12075. # Done with setattr to hide the class variable from mypy.
  12076. setattr(MAVLink_log_data_message, "name", mavlink_msg_deprecated_name_property())
  12077. class MAVLink_log_erase_message(MAVLink_message):
  12078. """
  12079. Erase all logs
  12080. """
  12081. id = MAVLINK_MSG_ID_LOG_ERASE
  12082. msgname = "LOG_ERASE"
  12083. fieldnames = ["target_system", "target_component"]
  12084. ordered_fieldnames = ["target_system", "target_component"]
  12085. fieldtypes = ["uint8_t", "uint8_t"]
  12086. fielddisplays_by_name: Dict[str, str] = {}
  12087. fieldenums_by_name: Dict[str, str] = {}
  12088. fieldunits_by_name: Dict[str, str] = {}
  12089. native_format = bytearray(b"<BB")
  12090. orders = [0, 1]
  12091. lengths = [1, 1]
  12092. array_lengths = [0, 0]
  12093. crc_extra = 237
  12094. unpacker = struct.Struct("<BB")
  12095. instance_field = None
  12096. instance_offset = -1
  12097. def __init__(self, target_system: int, target_component: int):
  12098. MAVLink_message.__init__(self, MAVLink_log_erase_message.id, MAVLink_log_erase_message.msgname)
  12099. self._fieldnames = MAVLink_log_erase_message.fieldnames
  12100. self._instance_field = MAVLink_log_erase_message.instance_field
  12101. self._instance_offset = MAVLink_log_erase_message.instance_offset
  12102. self.target_system = target_system
  12103. self.target_component = target_component
  12104. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12105. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.target_system, self.target_component), force_mavlink1=force_mavlink1)
  12106. # Define name on the class for backwards compatibility (it is now msgname).
  12107. # Done with setattr to hide the class variable from mypy.
  12108. setattr(MAVLink_log_erase_message, "name", mavlink_msg_deprecated_name_property())
  12109. class MAVLink_log_request_end_message(MAVLink_message):
  12110. """
  12111. Stop log transfer and resume normal logging
  12112. """
  12113. id = MAVLINK_MSG_ID_LOG_REQUEST_END
  12114. msgname = "LOG_REQUEST_END"
  12115. fieldnames = ["target_system", "target_component"]
  12116. ordered_fieldnames = ["target_system", "target_component"]
  12117. fieldtypes = ["uint8_t", "uint8_t"]
  12118. fielddisplays_by_name: Dict[str, str] = {}
  12119. fieldenums_by_name: Dict[str, str] = {}
  12120. fieldunits_by_name: Dict[str, str] = {}
  12121. native_format = bytearray(b"<BB")
  12122. orders = [0, 1]
  12123. lengths = [1, 1]
  12124. array_lengths = [0, 0]
  12125. crc_extra = 203
  12126. unpacker = struct.Struct("<BB")
  12127. instance_field = None
  12128. instance_offset = -1
  12129. def __init__(self, target_system: int, target_component: int):
  12130. MAVLink_message.__init__(self, MAVLink_log_request_end_message.id, MAVLink_log_request_end_message.msgname)
  12131. self._fieldnames = MAVLink_log_request_end_message.fieldnames
  12132. self._instance_field = MAVLink_log_request_end_message.instance_field
  12133. self._instance_offset = MAVLink_log_request_end_message.instance_offset
  12134. self.target_system = target_system
  12135. self.target_component = target_component
  12136. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12137. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.target_system, self.target_component), force_mavlink1=force_mavlink1)
  12138. # Define name on the class for backwards compatibility (it is now msgname).
  12139. # Done with setattr to hide the class variable from mypy.
  12140. setattr(MAVLink_log_request_end_message, "name", mavlink_msg_deprecated_name_property())
  12141. class MAVLink_gps_inject_data_message(MAVLink_message):
  12142. """
  12143. Data for injecting into the onboard GPS (used for DGPS)
  12144. """
  12145. id = MAVLINK_MSG_ID_GPS_INJECT_DATA
  12146. msgname = "GPS_INJECT_DATA"
  12147. fieldnames = ["target_system", "target_component", "len", "data"]
  12148. ordered_fieldnames = ["target_system", "target_component", "len", "data"]
  12149. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t"]
  12150. fielddisplays_by_name: Dict[str, str] = {}
  12151. fieldenums_by_name: Dict[str, str] = {}
  12152. fieldunits_by_name: Dict[str, str] = {"len": "bytes"}
  12153. native_format = bytearray(b"<BBBB")
  12154. orders = [0, 1, 2, 3]
  12155. lengths = [1, 1, 1, 110]
  12156. array_lengths = [0, 0, 0, 110]
  12157. crc_extra = 250
  12158. unpacker = struct.Struct("<BBB110B")
  12159. instance_field = None
  12160. instance_offset = -1
  12161. def __init__(self, target_system: int, target_component: int, len: int, data: Sequence[int]):
  12162. MAVLink_message.__init__(self, MAVLink_gps_inject_data_message.id, MAVLink_gps_inject_data_message.msgname)
  12163. self._fieldnames = MAVLink_gps_inject_data_message.fieldnames
  12164. self._instance_field = MAVLink_gps_inject_data_message.instance_field
  12165. self._instance_offset = MAVLink_gps_inject_data_message.instance_offset
  12166. self.target_system = target_system
  12167. self.target_component = target_component
  12168. self.len = len
  12169. self.data = data
  12170. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12171. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.target_system, self.target_component, self.len, self.data[0], self.data[1], self.data[2], self.data[3], self.data[4], self.data[5], self.data[6], self.data[7], self.data[8], self.data[9], self.data[10], self.data[11], self.data[12], self.data[13], self.data[14], self.data[15], self.data[16], self.data[17], self.data[18], self.data[19], self.data[20], self.data[21], self.data[22], self.data[23], self.data[24], self.data[25], self.data[26], self.data[27], self.data[28], self.data[29], self.data[30], self.data[31], self.data[32], self.data[33], self.data[34], self.data[35], self.data[36], self.data[37], self.data[38], self.data[39], self.data[40], self.data[41], self.data[42], self.data[43], self.data[44], self.data[45], self.data[46], self.data[47], self.data[48], self.data[49], self.data[50], self.data[51], self.data[52], self.data[53], self.data[54], self.data[55], self.data[56], self.data[57], self.data[58], self.data[59], self.data[60], self.data[61], self.data[62], self.data[63], self.data[64], self.data[65], self.data[66], self.data[67], self.data[68], self.data[69], self.data[70], self.data[71], self.data[72], self.data[73], self.data[74], self.data[75], self.data[76], self.data[77], self.data[78], self.data[79], self.data[80], self.data[81], self.data[82], self.data[83], self.data[84], self.data[85], self.data[86], self.data[87], self.data[88], self.data[89], self.data[90], self.data[91], self.data[92], self.data[93], self.data[94], self.data[95], self.data[96], self.data[97], self.data[98], self.data[99], self.data[100], self.data[101], self.data[102], self.data[103], self.data[104], self.data[105], self.data[106], self.data[107], self.data[108], self.data[109]), force_mavlink1=force_mavlink1)
  12172. # Define name on the class for backwards compatibility (it is now msgname).
  12173. # Done with setattr to hide the class variable from mypy.
  12174. setattr(MAVLink_gps_inject_data_message, "name", mavlink_msg_deprecated_name_property())
  12175. class MAVLink_gps2_raw_message(MAVLink_message):
  12176. """
  12177. Second GPS data.
  12178. """
  12179. id = MAVLINK_MSG_ID_GPS2_RAW
  12180. msgname = "GPS2_RAW"
  12181. fieldnames = ["time_usec", "fix_type", "lat", "lon", "alt", "eph", "epv", "vel", "cog", "satellites_visible", "dgps_numch", "dgps_age", "yaw", "alt_ellipsoid", "h_acc", "v_acc", "vel_acc", "hdg_acc"]
  12182. ordered_fieldnames = ["time_usec", "lat", "lon", "alt", "dgps_age", "eph", "epv", "vel", "cog", "fix_type", "satellites_visible", "dgps_numch", "yaw", "alt_ellipsoid", "h_acc", "v_acc", "vel_acc", "hdg_acc"]
  12183. fieldtypes = ["uint64_t", "uint8_t", "int32_t", "int32_t", "int32_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint8_t", "uint8_t", "uint32_t", "uint16_t", "int32_t", "uint32_t", "uint32_t", "uint32_t", "uint32_t"]
  12184. fielddisplays_by_name: Dict[str, str] = {}
  12185. fieldenums_by_name: Dict[str, str] = {"fix_type": "GPS_FIX_TYPE"}
  12186. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "lat": "degE7", "lon": "degE7", "alt": "mm", "vel": "cm/s", "cog": "cdeg", "dgps_age": "ms", "yaw": "cdeg", "alt_ellipsoid": "mm", "h_acc": "mm", "v_acc": "mm", "vel_acc": "mm", "hdg_acc": "degE5"}
  12187. native_format = bytearray(b"<QiiiIHHHHBBBHiIIII")
  12188. orders = [0, 9, 1, 2, 3, 5, 6, 7, 8, 10, 11, 4, 12, 13, 14, 15, 16, 17]
  12189. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  12190. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  12191. crc_extra = 87
  12192. unpacker = struct.Struct("<QiiiIHHHHBBBHiIIII")
  12193. instance_field = None
  12194. instance_offset = -1
  12195. def __init__(self, time_usec: int, fix_type: int, lat: int, lon: int, alt: int, eph: int, epv: int, vel: int, cog: int, satellites_visible: int, dgps_numch: int, dgps_age: int, yaw: int = 0, alt_ellipsoid: int = 0, h_acc: int = 0, v_acc: int = 0, vel_acc: int = 0, hdg_acc: int = 0):
  12196. MAVLink_message.__init__(self, MAVLink_gps2_raw_message.id, MAVLink_gps2_raw_message.msgname)
  12197. self._fieldnames = MAVLink_gps2_raw_message.fieldnames
  12198. self._instance_field = MAVLink_gps2_raw_message.instance_field
  12199. self._instance_offset = MAVLink_gps2_raw_message.instance_offset
  12200. self.time_usec = time_usec
  12201. self.fix_type = fix_type
  12202. self.lat = lat
  12203. self.lon = lon
  12204. self.alt = alt
  12205. self.eph = eph
  12206. self.epv = epv
  12207. self.vel = vel
  12208. self.cog = cog
  12209. self.satellites_visible = satellites_visible
  12210. self.dgps_numch = dgps_numch
  12211. self.dgps_age = dgps_age
  12212. self.yaw = yaw
  12213. self.alt_ellipsoid = alt_ellipsoid
  12214. self.h_acc = h_acc
  12215. self.v_acc = v_acc
  12216. self.vel_acc = vel_acc
  12217. self.hdg_acc = hdg_acc
  12218. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12219. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.lat, self.lon, self.alt, self.dgps_age, self.eph, self.epv, self.vel, self.cog, self.fix_type, self.satellites_visible, self.dgps_numch, self.yaw, self.alt_ellipsoid, self.h_acc, self.v_acc, self.vel_acc, self.hdg_acc), force_mavlink1=force_mavlink1)
  12220. # Define name on the class for backwards compatibility (it is now msgname).
  12221. # Done with setattr to hide the class variable from mypy.
  12222. setattr(MAVLink_gps2_raw_message, "name", mavlink_msg_deprecated_name_property())
  12223. class MAVLink_power_status_message(MAVLink_message):
  12224. """
  12225. Power supply status
  12226. """
  12227. id = MAVLINK_MSG_ID_POWER_STATUS
  12228. msgname = "POWER_STATUS"
  12229. fieldnames = ["Vcc", "Vservo", "flags"]
  12230. ordered_fieldnames = ["Vcc", "Vservo", "flags"]
  12231. fieldtypes = ["uint16_t", "uint16_t", "uint16_t"]
  12232. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  12233. fieldenums_by_name: Dict[str, str] = {"flags": "MAV_POWER_STATUS"}
  12234. fieldunits_by_name: Dict[str, str] = {"Vcc": "mV", "Vservo": "mV"}
  12235. native_format = bytearray(b"<HHH")
  12236. orders = [0, 1, 2]
  12237. lengths = [1, 1, 1]
  12238. array_lengths = [0, 0, 0]
  12239. crc_extra = 203
  12240. unpacker = struct.Struct("<HHH")
  12241. instance_field = None
  12242. instance_offset = -1
  12243. def __init__(self, Vcc: int, Vservo: int, flags: int):
  12244. MAVLink_message.__init__(self, MAVLink_power_status_message.id, MAVLink_power_status_message.msgname)
  12245. self._fieldnames = MAVLink_power_status_message.fieldnames
  12246. self._instance_field = MAVLink_power_status_message.instance_field
  12247. self._instance_offset = MAVLink_power_status_message.instance_offset
  12248. self.Vcc = Vcc
  12249. self.Vservo = Vservo
  12250. self.flags = flags
  12251. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12252. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.Vcc, self.Vservo, self.flags), force_mavlink1=force_mavlink1)
  12253. # Define name on the class for backwards compatibility (it is now msgname).
  12254. # Done with setattr to hide the class variable from mypy.
  12255. setattr(MAVLink_power_status_message, "name", mavlink_msg_deprecated_name_property())
  12256. class MAVLink_serial_control_message(MAVLink_message):
  12257. """
  12258. Control a serial port. This can be used for raw access to an
  12259. onboard serial peripheral such as a GPS or telemetry radio. It is
  12260. designed to make it possible to update the devices firmware via
  12261. MAVLink messages or change the devices settings. A message with
  12262. zero bytes can be used to change just the baudrate.
  12263. """
  12264. id = MAVLINK_MSG_ID_SERIAL_CONTROL
  12265. msgname = "SERIAL_CONTROL"
  12266. fieldnames = ["device", "flags", "timeout", "baudrate", "count", "data", "target_system", "target_component"]
  12267. ordered_fieldnames = ["baudrate", "timeout", "device", "flags", "count", "data", "target_system", "target_component"]
  12268. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "uint32_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t"]
  12269. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  12270. fieldenums_by_name: Dict[str, str] = {"device": "SERIAL_CONTROL_DEV", "flags": "SERIAL_CONTROL_FLAG"}
  12271. fieldunits_by_name: Dict[str, str] = {"timeout": "ms", "baudrate": "bits/s", "count": "bytes"}
  12272. native_format = bytearray(b"<IHBBBBBB")
  12273. orders = [2, 3, 1, 0, 4, 5, 6, 7]
  12274. lengths = [1, 1, 1, 1, 1, 70, 1, 1]
  12275. array_lengths = [0, 0, 0, 0, 0, 70, 0, 0]
  12276. crc_extra = 220
  12277. unpacker = struct.Struct("<IHBBB70BBB")
  12278. instance_field = None
  12279. instance_offset = -1
  12280. def __init__(self, device: int, flags: int, timeout: int, baudrate: int, count: int, data: Sequence[int], target_system: int = 0, target_component: int = 0):
  12281. MAVLink_message.__init__(self, MAVLink_serial_control_message.id, MAVLink_serial_control_message.msgname)
  12282. self._fieldnames = MAVLink_serial_control_message.fieldnames
  12283. self._instance_field = MAVLink_serial_control_message.instance_field
  12284. self._instance_offset = MAVLink_serial_control_message.instance_offset
  12285. self.device = device
  12286. self.flags = flags
  12287. self.timeout = timeout
  12288. self.baudrate = baudrate
  12289. self.count = count
  12290. self.data = data
  12291. self.target_system = target_system
  12292. self.target_component = target_component
  12293. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12294. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.baudrate, self.timeout, self.device, self.flags, self.count, self.data[0], self.data[1], self.data[2], self.data[3], self.data[4], self.data[5], self.data[6], self.data[7], self.data[8], self.data[9], self.data[10], self.data[11], self.data[12], self.data[13], self.data[14], self.data[15], self.data[16], self.data[17], self.data[18], self.data[19], self.data[20], self.data[21], self.data[22], self.data[23], self.data[24], self.data[25], self.data[26], self.data[27], self.data[28], self.data[29], self.data[30], self.data[31], self.data[32], self.data[33], self.data[34], self.data[35], self.data[36], self.data[37], self.data[38], self.data[39], self.data[40], self.data[41], self.data[42], self.data[43], self.data[44], self.data[45], self.data[46], self.data[47], self.data[48], self.data[49], self.data[50], self.data[51], self.data[52], self.data[53], self.data[54], self.data[55], self.data[56], self.data[57], self.data[58], self.data[59], self.data[60], self.data[61], self.data[62], self.data[63], self.data[64], self.data[65], self.data[66], self.data[67], self.data[68], self.data[69], self.target_system, self.target_component), force_mavlink1=force_mavlink1)
  12295. # Define name on the class for backwards compatibility (it is now msgname).
  12296. # Done with setattr to hide the class variable from mypy.
  12297. setattr(MAVLink_serial_control_message, "name", mavlink_msg_deprecated_name_property())
  12298. class MAVLink_gps_rtk_message(MAVLink_message):
  12299. """
  12300. RTK GPS data. Gives information on the relative baseline
  12301. calculation the GPS is reporting
  12302. """
  12303. id = MAVLINK_MSG_ID_GPS_RTK
  12304. msgname = "GPS_RTK"
  12305. fieldnames = ["time_last_baseline_ms", "rtk_receiver_id", "wn", "tow", "rtk_health", "rtk_rate", "nsats", "baseline_coords_type", "baseline_a_mm", "baseline_b_mm", "baseline_c_mm", "accuracy", "iar_num_hypotheses"]
  12306. ordered_fieldnames = ["time_last_baseline_ms", "tow", "baseline_a_mm", "baseline_b_mm", "baseline_c_mm", "accuracy", "iar_num_hypotheses", "wn", "rtk_receiver_id", "rtk_health", "rtk_rate", "nsats", "baseline_coords_type"]
  12307. fieldtypes = ["uint32_t", "uint8_t", "uint16_t", "uint32_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "int32_t", "int32_t", "int32_t", "uint32_t", "int32_t"]
  12308. fielddisplays_by_name: Dict[str, str] = {}
  12309. fieldenums_by_name: Dict[str, str] = {"baseline_coords_type": "RTK_BASELINE_COORDINATE_SYSTEM"}
  12310. fieldunits_by_name: Dict[str, str] = {"time_last_baseline_ms": "ms", "tow": "ms", "rtk_rate": "Hz", "baseline_a_mm": "mm", "baseline_b_mm": "mm", "baseline_c_mm": "mm"}
  12311. native_format = bytearray(b"<IIiiiIiHBBBBB")
  12312. orders = [0, 8, 7, 1, 9, 10, 11, 12, 2, 3, 4, 5, 6]
  12313. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  12314. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  12315. crc_extra = 25
  12316. unpacker = struct.Struct("<IIiiiIiHBBBBB")
  12317. instance_field = None
  12318. instance_offset = -1
  12319. def __init__(self, time_last_baseline_ms: int, rtk_receiver_id: int, wn: int, tow: int, rtk_health: int, rtk_rate: int, nsats: int, baseline_coords_type: int, baseline_a_mm: int, baseline_b_mm: int, baseline_c_mm: int, accuracy: int, iar_num_hypotheses: int):
  12320. MAVLink_message.__init__(self, MAVLink_gps_rtk_message.id, MAVLink_gps_rtk_message.msgname)
  12321. self._fieldnames = MAVLink_gps_rtk_message.fieldnames
  12322. self._instance_field = MAVLink_gps_rtk_message.instance_field
  12323. self._instance_offset = MAVLink_gps_rtk_message.instance_offset
  12324. self.time_last_baseline_ms = time_last_baseline_ms
  12325. self.rtk_receiver_id = rtk_receiver_id
  12326. self.wn = wn
  12327. self.tow = tow
  12328. self.rtk_health = rtk_health
  12329. self.rtk_rate = rtk_rate
  12330. self.nsats = nsats
  12331. self.baseline_coords_type = baseline_coords_type
  12332. self.baseline_a_mm = baseline_a_mm
  12333. self.baseline_b_mm = baseline_b_mm
  12334. self.baseline_c_mm = baseline_c_mm
  12335. self.accuracy = accuracy
  12336. self.iar_num_hypotheses = iar_num_hypotheses
  12337. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12338. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_last_baseline_ms, self.tow, self.baseline_a_mm, self.baseline_b_mm, self.baseline_c_mm, self.accuracy, self.iar_num_hypotheses, self.wn, self.rtk_receiver_id, self.rtk_health, self.rtk_rate, self.nsats, self.baseline_coords_type), force_mavlink1=force_mavlink1)
  12339. # Define name on the class for backwards compatibility (it is now msgname).
  12340. # Done with setattr to hide the class variable from mypy.
  12341. setattr(MAVLink_gps_rtk_message, "name", mavlink_msg_deprecated_name_property())
  12342. class MAVLink_gps2_rtk_message(MAVLink_message):
  12343. """
  12344. RTK GPS data. Gives information on the relative baseline
  12345. calculation the GPS is reporting
  12346. """
  12347. id = MAVLINK_MSG_ID_GPS2_RTK
  12348. msgname = "GPS2_RTK"
  12349. fieldnames = ["time_last_baseline_ms", "rtk_receiver_id", "wn", "tow", "rtk_health", "rtk_rate", "nsats", "baseline_coords_type", "baseline_a_mm", "baseline_b_mm", "baseline_c_mm", "accuracy", "iar_num_hypotheses"]
  12350. ordered_fieldnames = ["time_last_baseline_ms", "tow", "baseline_a_mm", "baseline_b_mm", "baseline_c_mm", "accuracy", "iar_num_hypotheses", "wn", "rtk_receiver_id", "rtk_health", "rtk_rate", "nsats", "baseline_coords_type"]
  12351. fieldtypes = ["uint32_t", "uint8_t", "uint16_t", "uint32_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "int32_t", "int32_t", "int32_t", "uint32_t", "int32_t"]
  12352. fielddisplays_by_name: Dict[str, str] = {}
  12353. fieldenums_by_name: Dict[str, str] = {"baseline_coords_type": "RTK_BASELINE_COORDINATE_SYSTEM"}
  12354. fieldunits_by_name: Dict[str, str] = {"time_last_baseline_ms": "ms", "tow": "ms", "rtk_rate": "Hz", "baseline_a_mm": "mm", "baseline_b_mm": "mm", "baseline_c_mm": "mm"}
  12355. native_format = bytearray(b"<IIiiiIiHBBBBB")
  12356. orders = [0, 8, 7, 1, 9, 10, 11, 12, 2, 3, 4, 5, 6]
  12357. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  12358. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  12359. crc_extra = 226
  12360. unpacker = struct.Struct("<IIiiiIiHBBBBB")
  12361. instance_field = None
  12362. instance_offset = -1
  12363. def __init__(self, time_last_baseline_ms: int, rtk_receiver_id: int, wn: int, tow: int, rtk_health: int, rtk_rate: int, nsats: int, baseline_coords_type: int, baseline_a_mm: int, baseline_b_mm: int, baseline_c_mm: int, accuracy: int, iar_num_hypotheses: int):
  12364. MAVLink_message.__init__(self, MAVLink_gps2_rtk_message.id, MAVLink_gps2_rtk_message.msgname)
  12365. self._fieldnames = MAVLink_gps2_rtk_message.fieldnames
  12366. self._instance_field = MAVLink_gps2_rtk_message.instance_field
  12367. self._instance_offset = MAVLink_gps2_rtk_message.instance_offset
  12368. self.time_last_baseline_ms = time_last_baseline_ms
  12369. self.rtk_receiver_id = rtk_receiver_id
  12370. self.wn = wn
  12371. self.tow = tow
  12372. self.rtk_health = rtk_health
  12373. self.rtk_rate = rtk_rate
  12374. self.nsats = nsats
  12375. self.baseline_coords_type = baseline_coords_type
  12376. self.baseline_a_mm = baseline_a_mm
  12377. self.baseline_b_mm = baseline_b_mm
  12378. self.baseline_c_mm = baseline_c_mm
  12379. self.accuracy = accuracy
  12380. self.iar_num_hypotheses = iar_num_hypotheses
  12381. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12382. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_last_baseline_ms, self.tow, self.baseline_a_mm, self.baseline_b_mm, self.baseline_c_mm, self.accuracy, self.iar_num_hypotheses, self.wn, self.rtk_receiver_id, self.rtk_health, self.rtk_rate, self.nsats, self.baseline_coords_type), force_mavlink1=force_mavlink1)
  12383. # Define name on the class for backwards compatibility (it is now msgname).
  12384. # Done with setattr to hide the class variable from mypy.
  12385. setattr(MAVLink_gps2_rtk_message, "name", mavlink_msg_deprecated_name_property())
  12386. class MAVLink_scaled_imu3_message(MAVLink_message):
  12387. """
  12388. The RAW IMU readings for 3rd 9DOF sensor setup. This message
  12389. should contain the scaled values to the described units
  12390. """
  12391. id = MAVLINK_MSG_ID_SCALED_IMU3
  12392. msgname = "SCALED_IMU3"
  12393. fieldnames = ["time_boot_ms", "xacc", "yacc", "zacc", "xgyro", "ygyro", "zgyro", "xmag", "ymag", "zmag", "temperature"]
  12394. ordered_fieldnames = ["time_boot_ms", "xacc", "yacc", "zacc", "xgyro", "ygyro", "zgyro", "xmag", "ymag", "zmag", "temperature"]
  12395. fieldtypes = ["uint32_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t"]
  12396. fielddisplays_by_name: Dict[str, str] = {}
  12397. fieldenums_by_name: Dict[str, str] = {}
  12398. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "xacc": "mG", "yacc": "mG", "zacc": "mG", "xgyro": "mrad/s", "ygyro": "mrad/s", "zgyro": "mrad/s", "xmag": "mgauss", "ymag": "mgauss", "zmag": "mgauss", "temperature": "cdegC"}
  12399. native_format = bytearray(b"<Ihhhhhhhhhh")
  12400. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
  12401. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  12402. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  12403. crc_extra = 46
  12404. unpacker = struct.Struct("<Ihhhhhhhhhh")
  12405. instance_field = None
  12406. instance_offset = -1
  12407. def __init__(self, time_boot_ms: int, xacc: int, yacc: int, zacc: int, xgyro: int, ygyro: int, zgyro: int, xmag: int, ymag: int, zmag: int, temperature: int = 0):
  12408. MAVLink_message.__init__(self, MAVLink_scaled_imu3_message.id, MAVLink_scaled_imu3_message.msgname)
  12409. self._fieldnames = MAVLink_scaled_imu3_message.fieldnames
  12410. self._instance_field = MAVLink_scaled_imu3_message.instance_field
  12411. self._instance_offset = MAVLink_scaled_imu3_message.instance_offset
  12412. self.time_boot_ms = time_boot_ms
  12413. self.xacc = xacc
  12414. self.yacc = yacc
  12415. self.zacc = zacc
  12416. self.xgyro = xgyro
  12417. self.ygyro = ygyro
  12418. self.zgyro = zgyro
  12419. self.xmag = xmag
  12420. self.ymag = ymag
  12421. self.zmag = zmag
  12422. self.temperature = temperature
  12423. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12424. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.xacc, self.yacc, self.zacc, self.xgyro, self.ygyro, self.zgyro, self.xmag, self.ymag, self.zmag, self.temperature), force_mavlink1=force_mavlink1)
  12425. # Define name on the class for backwards compatibility (it is now msgname).
  12426. # Done with setattr to hide the class variable from mypy.
  12427. setattr(MAVLink_scaled_imu3_message, "name", mavlink_msg_deprecated_name_property())
  12428. class MAVLink_data_transmission_handshake_message(MAVLink_message):
  12429. """
  12430. Handshake message to initiate, control and stop image streaming
  12431. when using the Image Transmission Protocol:
  12432. https://mavlink.io/en/services/image_transmission.html.
  12433. """
  12434. id = MAVLINK_MSG_ID_DATA_TRANSMISSION_HANDSHAKE
  12435. msgname = "DATA_TRANSMISSION_HANDSHAKE"
  12436. fieldnames = ["type", "size", "width", "height", "packets", "payload", "jpg_quality"]
  12437. ordered_fieldnames = ["size", "width", "height", "packets", "type", "payload", "jpg_quality"]
  12438. fieldtypes = ["uint8_t", "uint32_t", "uint16_t", "uint16_t", "uint16_t", "uint8_t", "uint8_t"]
  12439. fielddisplays_by_name: Dict[str, str] = {}
  12440. fieldenums_by_name: Dict[str, str] = {"type": "MAVLINK_DATA_STREAM_TYPE"}
  12441. fieldunits_by_name: Dict[str, str] = {"size": "bytes", "payload": "bytes", "jpg_quality": "%"}
  12442. native_format = bytearray(b"<IHHHBBB")
  12443. orders = [4, 0, 1, 2, 3, 5, 6]
  12444. lengths = [1, 1, 1, 1, 1, 1, 1]
  12445. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  12446. crc_extra = 29
  12447. unpacker = struct.Struct("<IHHHBBB")
  12448. instance_field = None
  12449. instance_offset = -1
  12450. def __init__(self, type: int, size: int, width: int, height: int, packets: int, payload: int, jpg_quality: int):
  12451. MAVLink_message.__init__(self, MAVLink_data_transmission_handshake_message.id, MAVLink_data_transmission_handshake_message.msgname)
  12452. self._fieldnames = MAVLink_data_transmission_handshake_message.fieldnames
  12453. self._instance_field = MAVLink_data_transmission_handshake_message.instance_field
  12454. self._instance_offset = MAVLink_data_transmission_handshake_message.instance_offset
  12455. self.type = type
  12456. self.size = size
  12457. self.width = width
  12458. self.height = height
  12459. self.packets = packets
  12460. self.payload = payload
  12461. self.jpg_quality = jpg_quality
  12462. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12463. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.size, self.width, self.height, self.packets, self.type, self.payload, self.jpg_quality), force_mavlink1=force_mavlink1)
  12464. # Define name on the class for backwards compatibility (it is now msgname).
  12465. # Done with setattr to hide the class variable from mypy.
  12466. setattr(MAVLink_data_transmission_handshake_message, "name", mavlink_msg_deprecated_name_property())
  12467. class MAVLink_encapsulated_data_message(MAVLink_message):
  12468. """
  12469. Data packet for images sent using the Image Transmission Protocol:
  12470. https://mavlink.io/en/services/image_transmission.html.
  12471. """
  12472. id = MAVLINK_MSG_ID_ENCAPSULATED_DATA
  12473. msgname = "ENCAPSULATED_DATA"
  12474. fieldnames = ["seqnr", "data"]
  12475. ordered_fieldnames = ["seqnr", "data"]
  12476. fieldtypes = ["uint16_t", "uint8_t"]
  12477. fielddisplays_by_name: Dict[str, str] = {}
  12478. fieldenums_by_name: Dict[str, str] = {}
  12479. fieldunits_by_name: Dict[str, str] = {}
  12480. native_format = bytearray(b"<HB")
  12481. orders = [0, 1]
  12482. lengths = [1, 253]
  12483. array_lengths = [0, 253]
  12484. crc_extra = 223
  12485. unpacker = struct.Struct("<H253B")
  12486. instance_field = None
  12487. instance_offset = -1
  12488. def __init__(self, seqnr: int, data: Sequence[int]):
  12489. MAVLink_message.__init__(self, MAVLink_encapsulated_data_message.id, MAVLink_encapsulated_data_message.msgname)
  12490. self._fieldnames = MAVLink_encapsulated_data_message.fieldnames
  12491. self._instance_field = MAVLink_encapsulated_data_message.instance_field
  12492. self._instance_offset = MAVLink_encapsulated_data_message.instance_offset
  12493. self.seqnr = seqnr
  12494. self.data = data
  12495. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12496. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.seqnr, self.data[0], self.data[1], self.data[2], self.data[3], self.data[4], self.data[5], self.data[6], self.data[7], self.data[8], self.data[9], self.data[10], self.data[11], self.data[12], self.data[13], self.data[14], self.data[15], self.data[16], self.data[17], self.data[18], self.data[19], self.data[20], self.data[21], self.data[22], self.data[23], self.data[24], self.data[25], self.data[26], self.data[27], self.data[28], self.data[29], self.data[30], self.data[31], self.data[32], self.data[33], self.data[34], self.data[35], self.data[36], self.data[37], self.data[38], self.data[39], self.data[40], self.data[41], self.data[42], self.data[43], self.data[44], self.data[45], self.data[46], self.data[47], self.data[48], self.data[49], self.data[50], self.data[51], self.data[52], self.data[53], self.data[54], self.data[55], self.data[56], self.data[57], self.data[58], self.data[59], self.data[60], self.data[61], self.data[62], self.data[63], self.data[64], self.data[65], self.data[66], self.data[67], self.data[68], self.data[69], self.data[70], self.data[71], self.data[72], self.data[73], self.data[74], self.data[75], self.data[76], self.data[77], self.data[78], self.data[79], self.data[80], self.data[81], self.data[82], self.data[83], self.data[84], self.data[85], self.data[86], self.data[87], self.data[88], self.data[89], self.data[90], self.data[91], self.data[92], self.data[93], self.data[94], self.data[95], self.data[96], self.data[97], self.data[98], self.data[99], self.data[100], self.data[101], self.data[102], self.data[103], self.data[104], self.data[105], self.data[106], self.data[107], self.data[108], self.data[109], self.data[110], self.data[111], self.data[112], self.data[113], self.data[114], self.data[115], self.data[116], self.data[117], self.data[118], self.data[119], self.data[120], self.data[121], self.data[122], self.data[123], self.data[124], self.data[125], self.data[126], self.data[127], self.data[128], self.data[129], self.data[130], self.data[131], self.data[132], self.data[133], self.data[134], self.data[135], self.data[136], self.data[137], self.data[138], self.data[139], self.data[140], self.data[141], self.data[142], self.data[143], self.data[144], self.data[145], self.data[146], self.data[147], self.data[148], self.data[149], self.data[150], self.data[151], self.data[152], self.data[153], self.data[154], self.data[155], self.data[156], self.data[157], self.data[158], self.data[159], self.data[160], self.data[161], self.data[162], self.data[163], self.data[164], self.data[165], self.data[166], self.data[167], self.data[168], self.data[169], self.data[170], self.data[171], self.data[172], self.data[173], self.data[174], self.data[175], self.data[176], self.data[177], self.data[178], self.data[179], self.data[180], self.data[181], self.data[182], self.data[183], self.data[184], self.data[185], self.data[186], self.data[187], self.data[188], self.data[189], self.data[190], self.data[191], self.data[192], self.data[193], self.data[194], self.data[195], self.data[196], self.data[197], self.data[198], self.data[199], self.data[200], self.data[201], self.data[202], self.data[203], self.data[204], self.data[205], self.data[206], self.data[207], self.data[208], self.data[209], self.data[210], self.data[211], self.data[212], self.data[213], self.data[214], self.data[215], self.data[216], self.data[217], self.data[218], self.data[219], self.data[220], self.data[221], self.data[222], self.data[223], self.data[224], self.data[225], self.data[226], self.data[227], self.data[228], self.data[229], self.data[230], self.data[231], self.data[232], self.data[233], self.data[234], self.data[235], self.data[236], self.data[237], self.data[238], self.data[239], self.data[240], self.data[241], self.data[242], self.data[243], self.data[244], self.data[245], self.data[246], self.data[247], self.data[248], self.data[249], self.data[250], self.data[251], self.data[252]), force_mavlink1=force_mavlink1)
  12497. # Define name on the class for backwards compatibility (it is now msgname).
  12498. # Done with setattr to hide the class variable from mypy.
  12499. setattr(MAVLink_encapsulated_data_message, "name", mavlink_msg_deprecated_name_property())
  12500. class MAVLink_distance_sensor_message(MAVLink_message):
  12501. """
  12502. Distance sensor information for an onboard rangefinder.
  12503. """
  12504. id = MAVLINK_MSG_ID_DISTANCE_SENSOR
  12505. msgname = "DISTANCE_SENSOR"
  12506. fieldnames = ["time_boot_ms", "min_distance", "max_distance", "current_distance", "type", "id", "orientation", "covariance", "horizontal_fov", "vertical_fov", "quaternion", "signal_quality"]
  12507. ordered_fieldnames = ["time_boot_ms", "min_distance", "max_distance", "current_distance", "type", "id", "orientation", "covariance", "horizontal_fov", "vertical_fov", "quaternion", "signal_quality"]
  12508. fieldtypes = ["uint32_t", "uint16_t", "uint16_t", "uint16_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "float", "float", "float", "uint8_t"]
  12509. fielddisplays_by_name: Dict[str, str] = {}
  12510. fieldenums_by_name: Dict[str, str] = {"type": "MAV_DISTANCE_SENSOR", "orientation": "MAV_SENSOR_ORIENTATION"}
  12511. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "min_distance": "cm", "max_distance": "cm", "current_distance": "cm", "covariance": "cm^2", "horizontal_fov": "rad", "vertical_fov": "rad", "signal_quality": "%"}
  12512. native_format = bytearray(b"<IHHHBBBBfffB")
  12513. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
  12514. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1]
  12515. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0]
  12516. crc_extra = 85
  12517. unpacker = struct.Struct("<IHHHBBBBff4fB")
  12518. instance_field = "id"
  12519. instance_offset = 11
  12520. def __init__(self, time_boot_ms: int, min_distance: int, max_distance: int, current_distance: int, type: int, id: int, orientation: int, covariance: int, horizontal_fov: float = 0, vertical_fov: float = 0, quaternion: Sequence[float] = (0, 0, 0, 0), signal_quality: int = 0):
  12521. MAVLink_message.__init__(self, MAVLink_distance_sensor_message.id, MAVLink_distance_sensor_message.msgname)
  12522. self._fieldnames = MAVLink_distance_sensor_message.fieldnames
  12523. self._instance_field = MAVLink_distance_sensor_message.instance_field
  12524. self._instance_offset = MAVLink_distance_sensor_message.instance_offset
  12525. self.time_boot_ms = time_boot_ms
  12526. self.min_distance = min_distance
  12527. self.max_distance = max_distance
  12528. self.current_distance = current_distance
  12529. self.type = type
  12530. self.id = id
  12531. self.orientation = orientation
  12532. self.covariance = covariance
  12533. self.horizontal_fov = horizontal_fov
  12534. self.vertical_fov = vertical_fov
  12535. self.quaternion = quaternion
  12536. self.signal_quality = signal_quality
  12537. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12538. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.min_distance, self.max_distance, self.current_distance, self.type, self.id, self.orientation, self.covariance, self.horizontal_fov, self.vertical_fov, self.quaternion[0], self.quaternion[1], self.quaternion[2], self.quaternion[3], self.signal_quality), force_mavlink1=force_mavlink1)
  12539. # Define name on the class for backwards compatibility (it is now msgname).
  12540. # Done with setattr to hide the class variable from mypy.
  12541. setattr(MAVLink_distance_sensor_message, "name", mavlink_msg_deprecated_name_property())
  12542. class MAVLink_terrain_request_message(MAVLink_message):
  12543. """
  12544. Request for terrain data and terrain status. See terrain protocol
  12545. docs: https://mavlink.io/en/services/terrain.html
  12546. """
  12547. id = MAVLINK_MSG_ID_TERRAIN_REQUEST
  12548. msgname = "TERRAIN_REQUEST"
  12549. fieldnames = ["lat", "lon", "grid_spacing", "mask"]
  12550. ordered_fieldnames = ["mask", "lat", "lon", "grid_spacing"]
  12551. fieldtypes = ["int32_t", "int32_t", "uint16_t", "uint64_t"]
  12552. fielddisplays_by_name: Dict[str, str] = {"mask": "bitmask"}
  12553. fieldenums_by_name: Dict[str, str] = {}
  12554. fieldunits_by_name: Dict[str, str] = {"lat": "degE7", "lon": "degE7", "grid_spacing": "m"}
  12555. native_format = bytearray(b"<QiiH")
  12556. orders = [1, 2, 3, 0]
  12557. lengths = [1, 1, 1, 1]
  12558. array_lengths = [0, 0, 0, 0]
  12559. crc_extra = 6
  12560. unpacker = struct.Struct("<QiiH")
  12561. instance_field = None
  12562. instance_offset = -1
  12563. def __init__(self, lat: int, lon: int, grid_spacing: int, mask: int):
  12564. MAVLink_message.__init__(self, MAVLink_terrain_request_message.id, MAVLink_terrain_request_message.msgname)
  12565. self._fieldnames = MAVLink_terrain_request_message.fieldnames
  12566. self._instance_field = MAVLink_terrain_request_message.instance_field
  12567. self._instance_offset = MAVLink_terrain_request_message.instance_offset
  12568. self.lat = lat
  12569. self.lon = lon
  12570. self.grid_spacing = grid_spacing
  12571. self.mask = mask
  12572. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12573. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.mask, self.lat, self.lon, self.grid_spacing), force_mavlink1=force_mavlink1)
  12574. # Define name on the class for backwards compatibility (it is now msgname).
  12575. # Done with setattr to hide the class variable from mypy.
  12576. setattr(MAVLink_terrain_request_message, "name", mavlink_msg_deprecated_name_property())
  12577. class MAVLink_terrain_data_message(MAVLink_message):
  12578. """
  12579. Terrain data sent from GCS. The lat/lon and grid_spacing must be
  12580. the same as a lat/lon from a TERRAIN_REQUEST. See terrain protocol
  12581. docs: https://mavlink.io/en/services/terrain.html
  12582. """
  12583. id = MAVLINK_MSG_ID_TERRAIN_DATA
  12584. msgname = "TERRAIN_DATA"
  12585. fieldnames = ["lat", "lon", "grid_spacing", "gridbit", "data"]
  12586. ordered_fieldnames = ["lat", "lon", "grid_spacing", "data", "gridbit"]
  12587. fieldtypes = ["int32_t", "int32_t", "uint16_t", "uint8_t", "int16_t"]
  12588. fielddisplays_by_name: Dict[str, str] = {}
  12589. fieldenums_by_name: Dict[str, str] = {}
  12590. fieldunits_by_name: Dict[str, str] = {"lat": "degE7", "lon": "degE7", "grid_spacing": "m", "data": "m"}
  12591. native_format = bytearray(b"<iiHhB")
  12592. orders = [0, 1, 2, 4, 3]
  12593. lengths = [1, 1, 1, 16, 1]
  12594. array_lengths = [0, 0, 0, 16, 0]
  12595. crc_extra = 229
  12596. unpacker = struct.Struct("<iiH16hB")
  12597. instance_field = None
  12598. instance_offset = -1
  12599. def __init__(self, lat: int, lon: int, grid_spacing: int, gridbit: int, data: Sequence[int]):
  12600. MAVLink_message.__init__(self, MAVLink_terrain_data_message.id, MAVLink_terrain_data_message.msgname)
  12601. self._fieldnames = MAVLink_terrain_data_message.fieldnames
  12602. self._instance_field = MAVLink_terrain_data_message.instance_field
  12603. self._instance_offset = MAVLink_terrain_data_message.instance_offset
  12604. self.lat = lat
  12605. self.lon = lon
  12606. self.grid_spacing = grid_spacing
  12607. self.gridbit = gridbit
  12608. self.data = data
  12609. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12610. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.lat, self.lon, self.grid_spacing, self.data[0], self.data[1], self.data[2], self.data[3], self.data[4], self.data[5], self.data[6], self.data[7], self.data[8], self.data[9], self.data[10], self.data[11], self.data[12], self.data[13], self.data[14], self.data[15], self.gridbit), force_mavlink1=force_mavlink1)
  12611. # Define name on the class for backwards compatibility (it is now msgname).
  12612. # Done with setattr to hide the class variable from mypy.
  12613. setattr(MAVLink_terrain_data_message, "name", mavlink_msg_deprecated_name_property())
  12614. class MAVLink_terrain_check_message(MAVLink_message):
  12615. """
  12616. Request that the vehicle report terrain height at the given
  12617. location (expected response is a TERRAIN_REPORT). Used by GCS to
  12618. check if vehicle has all terrain data needed for a mission.
  12619. """
  12620. id = MAVLINK_MSG_ID_TERRAIN_CHECK
  12621. msgname = "TERRAIN_CHECK"
  12622. fieldnames = ["lat", "lon"]
  12623. ordered_fieldnames = ["lat", "lon"]
  12624. fieldtypes = ["int32_t", "int32_t"]
  12625. fielddisplays_by_name: Dict[str, str] = {}
  12626. fieldenums_by_name: Dict[str, str] = {}
  12627. fieldunits_by_name: Dict[str, str] = {"lat": "degE7", "lon": "degE7"}
  12628. native_format = bytearray(b"<ii")
  12629. orders = [0, 1]
  12630. lengths = [1, 1]
  12631. array_lengths = [0, 0]
  12632. crc_extra = 203
  12633. unpacker = struct.Struct("<ii")
  12634. instance_field = None
  12635. instance_offset = -1
  12636. def __init__(self, lat: int, lon: int):
  12637. MAVLink_message.__init__(self, MAVLink_terrain_check_message.id, MAVLink_terrain_check_message.msgname)
  12638. self._fieldnames = MAVLink_terrain_check_message.fieldnames
  12639. self._instance_field = MAVLink_terrain_check_message.instance_field
  12640. self._instance_offset = MAVLink_terrain_check_message.instance_offset
  12641. self.lat = lat
  12642. self.lon = lon
  12643. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12644. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.lat, self.lon), force_mavlink1=force_mavlink1)
  12645. # Define name on the class for backwards compatibility (it is now msgname).
  12646. # Done with setattr to hide the class variable from mypy.
  12647. setattr(MAVLink_terrain_check_message, "name", mavlink_msg_deprecated_name_property())
  12648. class MAVLink_terrain_report_message(MAVLink_message):
  12649. """
  12650. Streamed from drone to report progress of terrain map download
  12651. (initiated by TERRAIN_REQUEST), or sent as a response to a
  12652. TERRAIN_CHECK request. See terrain protocol docs:
  12653. https://mavlink.io/en/services/terrain.html
  12654. """
  12655. id = MAVLINK_MSG_ID_TERRAIN_REPORT
  12656. msgname = "TERRAIN_REPORT"
  12657. fieldnames = ["lat", "lon", "spacing", "terrain_height", "current_height", "pending", "loaded"]
  12658. ordered_fieldnames = ["lat", "lon", "terrain_height", "current_height", "spacing", "pending", "loaded"]
  12659. fieldtypes = ["int32_t", "int32_t", "uint16_t", "float", "float", "uint16_t", "uint16_t"]
  12660. fielddisplays_by_name: Dict[str, str] = {}
  12661. fieldenums_by_name: Dict[str, str] = {}
  12662. fieldunits_by_name: Dict[str, str] = {"lat": "degE7", "lon": "degE7", "terrain_height": "m", "current_height": "m"}
  12663. native_format = bytearray(b"<iiffHHH")
  12664. orders = [0, 1, 4, 2, 3, 5, 6]
  12665. lengths = [1, 1, 1, 1, 1, 1, 1]
  12666. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  12667. crc_extra = 1
  12668. unpacker = struct.Struct("<iiffHHH")
  12669. instance_field = None
  12670. instance_offset = -1
  12671. def __init__(self, lat: int, lon: int, spacing: int, terrain_height: float, current_height: float, pending: int, loaded: int):
  12672. MAVLink_message.__init__(self, MAVLink_terrain_report_message.id, MAVLink_terrain_report_message.msgname)
  12673. self._fieldnames = MAVLink_terrain_report_message.fieldnames
  12674. self._instance_field = MAVLink_terrain_report_message.instance_field
  12675. self._instance_offset = MAVLink_terrain_report_message.instance_offset
  12676. self.lat = lat
  12677. self.lon = lon
  12678. self.spacing = spacing
  12679. self.terrain_height = terrain_height
  12680. self.current_height = current_height
  12681. self.pending = pending
  12682. self.loaded = loaded
  12683. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12684. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.lat, self.lon, self.terrain_height, self.current_height, self.spacing, self.pending, self.loaded), force_mavlink1=force_mavlink1)
  12685. # Define name on the class for backwards compatibility (it is now msgname).
  12686. # Done with setattr to hide the class variable from mypy.
  12687. setattr(MAVLink_terrain_report_message, "name", mavlink_msg_deprecated_name_property())
  12688. class MAVLink_scaled_pressure2_message(MAVLink_message):
  12689. """
  12690. Barometer readings for 2nd barometer
  12691. """
  12692. id = MAVLINK_MSG_ID_SCALED_PRESSURE2
  12693. msgname = "SCALED_PRESSURE2"
  12694. fieldnames = ["time_boot_ms", "press_abs", "press_diff", "temperature", "temperature_press_diff"]
  12695. ordered_fieldnames = ["time_boot_ms", "press_abs", "press_diff", "temperature", "temperature_press_diff"]
  12696. fieldtypes = ["uint32_t", "float", "float", "int16_t", "int16_t"]
  12697. fielddisplays_by_name: Dict[str, str] = {}
  12698. fieldenums_by_name: Dict[str, str] = {}
  12699. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "press_abs": "hPa", "press_diff": "hPa", "temperature": "cdegC", "temperature_press_diff": "cdegC"}
  12700. native_format = bytearray(b"<Iffhh")
  12701. orders = [0, 1, 2, 3, 4]
  12702. lengths = [1, 1, 1, 1, 1]
  12703. array_lengths = [0, 0, 0, 0, 0]
  12704. crc_extra = 195
  12705. unpacker = struct.Struct("<Iffhh")
  12706. instance_field = None
  12707. instance_offset = -1
  12708. def __init__(self, time_boot_ms: int, press_abs: float, press_diff: float, temperature: int, temperature_press_diff: int = 0):
  12709. MAVLink_message.__init__(self, MAVLink_scaled_pressure2_message.id, MAVLink_scaled_pressure2_message.msgname)
  12710. self._fieldnames = MAVLink_scaled_pressure2_message.fieldnames
  12711. self._instance_field = MAVLink_scaled_pressure2_message.instance_field
  12712. self._instance_offset = MAVLink_scaled_pressure2_message.instance_offset
  12713. self.time_boot_ms = time_boot_ms
  12714. self.press_abs = press_abs
  12715. self.press_diff = press_diff
  12716. self.temperature = temperature
  12717. self.temperature_press_diff = temperature_press_diff
  12718. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12719. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.press_abs, self.press_diff, self.temperature, self.temperature_press_diff), force_mavlink1=force_mavlink1)
  12720. # Define name on the class for backwards compatibility (it is now msgname).
  12721. # Done with setattr to hide the class variable from mypy.
  12722. setattr(MAVLink_scaled_pressure2_message, "name", mavlink_msg_deprecated_name_property())
  12723. class MAVLink_att_pos_mocap_message(MAVLink_message):
  12724. """
  12725. Motion capture attitude and position
  12726. """
  12727. id = MAVLINK_MSG_ID_ATT_POS_MOCAP
  12728. msgname = "ATT_POS_MOCAP"
  12729. fieldnames = ["time_usec", "q", "x", "y", "z", "covariance"]
  12730. ordered_fieldnames = ["time_usec", "q", "x", "y", "z", "covariance"]
  12731. fieldtypes = ["uint64_t", "float", "float", "float", "float", "float"]
  12732. fielddisplays_by_name: Dict[str, str] = {}
  12733. fieldenums_by_name: Dict[str, str] = {}
  12734. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "x": "m", "y": "m", "z": "m"}
  12735. native_format = bytearray(b"<Qfffff")
  12736. orders = [0, 1, 2, 3, 4, 5]
  12737. lengths = [1, 4, 1, 1, 1, 21]
  12738. array_lengths = [0, 4, 0, 0, 0, 21]
  12739. crc_extra = 109
  12740. unpacker = struct.Struct("<Q4ffff21f")
  12741. instance_field = None
  12742. instance_offset = -1
  12743. def __init__(self, time_usec: int, q: Sequence[float], x: float, y: float, z: float, covariance: Sequence[float] = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)):
  12744. MAVLink_message.__init__(self, MAVLink_att_pos_mocap_message.id, MAVLink_att_pos_mocap_message.msgname)
  12745. self._fieldnames = MAVLink_att_pos_mocap_message.fieldnames
  12746. self._instance_field = MAVLink_att_pos_mocap_message.instance_field
  12747. self._instance_offset = MAVLink_att_pos_mocap_message.instance_offset
  12748. self.time_usec = time_usec
  12749. self.q = q
  12750. self.x = x
  12751. self.y = y
  12752. self.z = z
  12753. self.covariance = covariance
  12754. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12755. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.q[0], self.q[1], self.q[2], self.q[3], self.x, self.y, self.z, self.covariance[0], self.covariance[1], self.covariance[2], self.covariance[3], self.covariance[4], self.covariance[5], self.covariance[6], self.covariance[7], self.covariance[8], self.covariance[9], self.covariance[10], self.covariance[11], self.covariance[12], self.covariance[13], self.covariance[14], self.covariance[15], self.covariance[16], self.covariance[17], self.covariance[18], self.covariance[19], self.covariance[20]), force_mavlink1=force_mavlink1)
  12756. # Define name on the class for backwards compatibility (it is now msgname).
  12757. # Done with setattr to hide the class variable from mypy.
  12758. setattr(MAVLink_att_pos_mocap_message, "name", mavlink_msg_deprecated_name_property())
  12759. class MAVLink_set_actuator_control_target_message(MAVLink_message):
  12760. """
  12761. Set the vehicle attitude and body angular rates.
  12762. """
  12763. id = MAVLINK_MSG_ID_SET_ACTUATOR_CONTROL_TARGET
  12764. msgname = "SET_ACTUATOR_CONTROL_TARGET"
  12765. fieldnames = ["time_usec", "group_mlx", "target_system", "target_component", "controls"]
  12766. ordered_fieldnames = ["time_usec", "controls", "group_mlx", "target_system", "target_component"]
  12767. fieldtypes = ["uint64_t", "uint8_t", "uint8_t", "uint8_t", "float"]
  12768. fielddisplays_by_name: Dict[str, str] = {}
  12769. fieldenums_by_name: Dict[str, str] = {}
  12770. fieldunits_by_name: Dict[str, str] = {"time_usec": "us"}
  12771. native_format = bytearray(b"<QfBBB")
  12772. orders = [0, 2, 3, 4, 1]
  12773. lengths = [1, 8, 1, 1, 1]
  12774. array_lengths = [0, 8, 0, 0, 0]
  12775. crc_extra = 168
  12776. unpacker = struct.Struct("<Q8fBBB")
  12777. instance_field = None
  12778. instance_offset = -1
  12779. def __init__(self, time_usec: int, group_mlx: int, target_system: int, target_component: int, controls: Sequence[float]):
  12780. MAVLink_message.__init__(self, MAVLink_set_actuator_control_target_message.id, MAVLink_set_actuator_control_target_message.msgname)
  12781. self._fieldnames = MAVLink_set_actuator_control_target_message.fieldnames
  12782. self._instance_field = MAVLink_set_actuator_control_target_message.instance_field
  12783. self._instance_offset = MAVLink_set_actuator_control_target_message.instance_offset
  12784. self.time_usec = time_usec
  12785. self.group_mlx = group_mlx
  12786. self.target_system = target_system
  12787. self.target_component = target_component
  12788. self.controls = controls
  12789. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12790. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.controls[0], self.controls[1], self.controls[2], self.controls[3], self.controls[4], self.controls[5], self.controls[6], self.controls[7], self.group_mlx, self.target_system, self.target_component), force_mavlink1=force_mavlink1)
  12791. # Define name on the class for backwards compatibility (it is now msgname).
  12792. # Done with setattr to hide the class variable from mypy.
  12793. setattr(MAVLink_set_actuator_control_target_message, "name", mavlink_msg_deprecated_name_property())
  12794. class MAVLink_actuator_control_target_message(MAVLink_message):
  12795. """
  12796. Set the vehicle attitude and body angular rates.
  12797. """
  12798. id = MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET
  12799. msgname = "ACTUATOR_CONTROL_TARGET"
  12800. fieldnames = ["time_usec", "group_mlx", "controls"]
  12801. ordered_fieldnames = ["time_usec", "controls", "group_mlx"]
  12802. fieldtypes = ["uint64_t", "uint8_t", "float"]
  12803. fielddisplays_by_name: Dict[str, str] = {}
  12804. fieldenums_by_name: Dict[str, str] = {}
  12805. fieldunits_by_name: Dict[str, str] = {"time_usec": "us"}
  12806. native_format = bytearray(b"<QfB")
  12807. orders = [0, 2, 1]
  12808. lengths = [1, 8, 1]
  12809. array_lengths = [0, 8, 0]
  12810. crc_extra = 181
  12811. unpacker = struct.Struct("<Q8fB")
  12812. instance_field = None
  12813. instance_offset = -1
  12814. def __init__(self, time_usec: int, group_mlx: int, controls: Sequence[float]):
  12815. MAVLink_message.__init__(self, MAVLink_actuator_control_target_message.id, MAVLink_actuator_control_target_message.msgname)
  12816. self._fieldnames = MAVLink_actuator_control_target_message.fieldnames
  12817. self._instance_field = MAVLink_actuator_control_target_message.instance_field
  12818. self._instance_offset = MAVLink_actuator_control_target_message.instance_offset
  12819. self.time_usec = time_usec
  12820. self.group_mlx = group_mlx
  12821. self.controls = controls
  12822. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12823. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.controls[0], self.controls[1], self.controls[2], self.controls[3], self.controls[4], self.controls[5], self.controls[6], self.controls[7], self.group_mlx), force_mavlink1=force_mavlink1)
  12824. # Define name on the class for backwards compatibility (it is now msgname).
  12825. # Done with setattr to hide the class variable from mypy.
  12826. setattr(MAVLink_actuator_control_target_message, "name", mavlink_msg_deprecated_name_property())
  12827. class MAVLink_altitude_message(MAVLink_message):
  12828. """
  12829. The current system altitude.
  12830. """
  12831. id = MAVLINK_MSG_ID_ALTITUDE
  12832. msgname = "ALTITUDE"
  12833. fieldnames = ["time_usec", "altitude_monotonic", "altitude_amsl", "altitude_local", "altitude_relative", "altitude_terrain", "bottom_clearance"]
  12834. ordered_fieldnames = ["time_usec", "altitude_monotonic", "altitude_amsl", "altitude_local", "altitude_relative", "altitude_terrain", "bottom_clearance"]
  12835. fieldtypes = ["uint64_t", "float", "float", "float", "float", "float", "float"]
  12836. fielddisplays_by_name: Dict[str, str] = {}
  12837. fieldenums_by_name: Dict[str, str] = {}
  12838. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "altitude_monotonic": "m", "altitude_amsl": "m", "altitude_local": "m", "altitude_relative": "m", "altitude_terrain": "m", "bottom_clearance": "m"}
  12839. native_format = bytearray(b"<Qffffff")
  12840. orders = [0, 1, 2, 3, 4, 5, 6]
  12841. lengths = [1, 1, 1, 1, 1, 1, 1]
  12842. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  12843. crc_extra = 47
  12844. unpacker = struct.Struct("<Qffffff")
  12845. instance_field = None
  12846. instance_offset = -1
  12847. def __init__(self, time_usec: int, altitude_monotonic: float, altitude_amsl: float, altitude_local: float, altitude_relative: float, altitude_terrain: float, bottom_clearance: float):
  12848. MAVLink_message.__init__(self, MAVLink_altitude_message.id, MAVLink_altitude_message.msgname)
  12849. self._fieldnames = MAVLink_altitude_message.fieldnames
  12850. self._instance_field = MAVLink_altitude_message.instance_field
  12851. self._instance_offset = MAVLink_altitude_message.instance_offset
  12852. self.time_usec = time_usec
  12853. self.altitude_monotonic = altitude_monotonic
  12854. self.altitude_amsl = altitude_amsl
  12855. self.altitude_local = altitude_local
  12856. self.altitude_relative = altitude_relative
  12857. self.altitude_terrain = altitude_terrain
  12858. self.bottom_clearance = bottom_clearance
  12859. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12860. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.altitude_monotonic, self.altitude_amsl, self.altitude_local, self.altitude_relative, self.altitude_terrain, self.bottom_clearance), force_mavlink1=force_mavlink1)
  12861. # Define name on the class for backwards compatibility (it is now msgname).
  12862. # Done with setattr to hide the class variable from mypy.
  12863. setattr(MAVLink_altitude_message, "name", mavlink_msg_deprecated_name_property())
  12864. class MAVLink_resource_request_message(MAVLink_message):
  12865. """
  12866. The autopilot is requesting a resource (file, binary, other type
  12867. of data)
  12868. """
  12869. id = MAVLINK_MSG_ID_RESOURCE_REQUEST
  12870. msgname = "RESOURCE_REQUEST"
  12871. fieldnames = ["request_id", "uri_type", "uri", "transfer_type", "storage"]
  12872. ordered_fieldnames = ["request_id", "uri_type", "uri", "transfer_type", "storage"]
  12873. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t"]
  12874. fielddisplays_by_name: Dict[str, str] = {}
  12875. fieldenums_by_name: Dict[str, str] = {}
  12876. fieldunits_by_name: Dict[str, str] = {}
  12877. native_format = bytearray(b"<BBBBB")
  12878. orders = [0, 1, 2, 3, 4]
  12879. lengths = [1, 1, 120, 1, 120]
  12880. array_lengths = [0, 0, 120, 0, 120]
  12881. crc_extra = 72
  12882. unpacker = struct.Struct("<BB120BB120B")
  12883. instance_field = None
  12884. instance_offset = -1
  12885. def __init__(self, request_id: int, uri_type: int, uri: Sequence[int], transfer_type: int, storage: Sequence[int]):
  12886. MAVLink_message.__init__(self, MAVLink_resource_request_message.id, MAVLink_resource_request_message.msgname)
  12887. self._fieldnames = MAVLink_resource_request_message.fieldnames
  12888. self._instance_field = MAVLink_resource_request_message.instance_field
  12889. self._instance_offset = MAVLink_resource_request_message.instance_offset
  12890. self.request_id = request_id
  12891. self.uri_type = uri_type
  12892. self.uri = uri
  12893. self.transfer_type = transfer_type
  12894. self.storage = storage
  12895. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12896. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.request_id, self.uri_type, self.uri[0], self.uri[1], self.uri[2], self.uri[3], self.uri[4], self.uri[5], self.uri[6], self.uri[7], self.uri[8], self.uri[9], self.uri[10], self.uri[11], self.uri[12], self.uri[13], self.uri[14], self.uri[15], self.uri[16], self.uri[17], self.uri[18], self.uri[19], self.uri[20], self.uri[21], self.uri[22], self.uri[23], self.uri[24], self.uri[25], self.uri[26], self.uri[27], self.uri[28], self.uri[29], self.uri[30], self.uri[31], self.uri[32], self.uri[33], self.uri[34], self.uri[35], self.uri[36], self.uri[37], self.uri[38], self.uri[39], self.uri[40], self.uri[41], self.uri[42], self.uri[43], self.uri[44], self.uri[45], self.uri[46], self.uri[47], self.uri[48], self.uri[49], self.uri[50], self.uri[51], self.uri[52], self.uri[53], self.uri[54], self.uri[55], self.uri[56], self.uri[57], self.uri[58], self.uri[59], self.uri[60], self.uri[61], self.uri[62], self.uri[63], self.uri[64], self.uri[65], self.uri[66], self.uri[67], self.uri[68], self.uri[69], self.uri[70], self.uri[71], self.uri[72], self.uri[73], self.uri[74], self.uri[75], self.uri[76], self.uri[77], self.uri[78], self.uri[79], self.uri[80], self.uri[81], self.uri[82], self.uri[83], self.uri[84], self.uri[85], self.uri[86], self.uri[87], self.uri[88], self.uri[89], self.uri[90], self.uri[91], self.uri[92], self.uri[93], self.uri[94], self.uri[95], self.uri[96], self.uri[97], self.uri[98], self.uri[99], self.uri[100], self.uri[101], self.uri[102], self.uri[103], self.uri[104], self.uri[105], self.uri[106], self.uri[107], self.uri[108], self.uri[109], self.uri[110], self.uri[111], self.uri[112], self.uri[113], self.uri[114], self.uri[115], self.uri[116], self.uri[117], self.uri[118], self.uri[119], self.transfer_type, self.storage[0], self.storage[1], self.storage[2], self.storage[3], self.storage[4], self.storage[5], self.storage[6], self.storage[7], self.storage[8], self.storage[9], self.storage[10], self.storage[11], self.storage[12], self.storage[13], self.storage[14], self.storage[15], self.storage[16], self.storage[17], self.storage[18], self.storage[19], self.storage[20], self.storage[21], self.storage[22], self.storage[23], self.storage[24], self.storage[25], self.storage[26], self.storage[27], self.storage[28], self.storage[29], self.storage[30], self.storage[31], self.storage[32], self.storage[33], self.storage[34], self.storage[35], self.storage[36], self.storage[37], self.storage[38], self.storage[39], self.storage[40], self.storage[41], self.storage[42], self.storage[43], self.storage[44], self.storage[45], self.storage[46], self.storage[47], self.storage[48], self.storage[49], self.storage[50], self.storage[51], self.storage[52], self.storage[53], self.storage[54], self.storage[55], self.storage[56], self.storage[57], self.storage[58], self.storage[59], self.storage[60], self.storage[61], self.storage[62], self.storage[63], self.storage[64], self.storage[65], self.storage[66], self.storage[67], self.storage[68], self.storage[69], self.storage[70], self.storage[71], self.storage[72], self.storage[73], self.storage[74], self.storage[75], self.storage[76], self.storage[77], self.storage[78], self.storage[79], self.storage[80], self.storage[81], self.storage[82], self.storage[83], self.storage[84], self.storage[85], self.storage[86], self.storage[87], self.storage[88], self.storage[89], self.storage[90], self.storage[91], self.storage[92], self.storage[93], self.storage[94], self.storage[95], self.storage[96], self.storage[97], self.storage[98], self.storage[99], self.storage[100], self.storage[101], self.storage[102], self.storage[103], self.storage[104], self.storage[105], self.storage[106], self.storage[107], self.storage[108], self.storage[109], self.storage[110], self.storage[111], self.storage[112], self.storage[113], self.storage[114], self.storage[115], self.storage[116], self.storage[117], self.storage[118], self.storage[119]), force_mavlink1=force_mavlink1)
  12897. # Define name on the class for backwards compatibility (it is now msgname).
  12898. # Done with setattr to hide the class variable from mypy.
  12899. setattr(MAVLink_resource_request_message, "name", mavlink_msg_deprecated_name_property())
  12900. class MAVLink_scaled_pressure3_message(MAVLink_message):
  12901. """
  12902. Barometer readings for 3rd barometer
  12903. """
  12904. id = MAVLINK_MSG_ID_SCALED_PRESSURE3
  12905. msgname = "SCALED_PRESSURE3"
  12906. fieldnames = ["time_boot_ms", "press_abs", "press_diff", "temperature", "temperature_press_diff"]
  12907. ordered_fieldnames = ["time_boot_ms", "press_abs", "press_diff", "temperature", "temperature_press_diff"]
  12908. fieldtypes = ["uint32_t", "float", "float", "int16_t", "int16_t"]
  12909. fielddisplays_by_name: Dict[str, str] = {}
  12910. fieldenums_by_name: Dict[str, str] = {}
  12911. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "press_abs": "hPa", "press_diff": "hPa", "temperature": "cdegC", "temperature_press_diff": "cdegC"}
  12912. native_format = bytearray(b"<Iffhh")
  12913. orders = [0, 1, 2, 3, 4]
  12914. lengths = [1, 1, 1, 1, 1]
  12915. array_lengths = [0, 0, 0, 0, 0]
  12916. crc_extra = 131
  12917. unpacker = struct.Struct("<Iffhh")
  12918. instance_field = None
  12919. instance_offset = -1
  12920. def __init__(self, time_boot_ms: int, press_abs: float, press_diff: float, temperature: int, temperature_press_diff: int = 0):
  12921. MAVLink_message.__init__(self, MAVLink_scaled_pressure3_message.id, MAVLink_scaled_pressure3_message.msgname)
  12922. self._fieldnames = MAVLink_scaled_pressure3_message.fieldnames
  12923. self._instance_field = MAVLink_scaled_pressure3_message.instance_field
  12924. self._instance_offset = MAVLink_scaled_pressure3_message.instance_offset
  12925. self.time_boot_ms = time_boot_ms
  12926. self.press_abs = press_abs
  12927. self.press_diff = press_diff
  12928. self.temperature = temperature
  12929. self.temperature_press_diff = temperature_press_diff
  12930. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12931. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.press_abs, self.press_diff, self.temperature, self.temperature_press_diff), force_mavlink1=force_mavlink1)
  12932. # Define name on the class for backwards compatibility (it is now msgname).
  12933. # Done with setattr to hide the class variable from mypy.
  12934. setattr(MAVLink_scaled_pressure3_message, "name", mavlink_msg_deprecated_name_property())
  12935. class MAVLink_follow_target_message(MAVLink_message):
  12936. """
  12937. Current motion information from a designated system
  12938. """
  12939. id = MAVLINK_MSG_ID_FOLLOW_TARGET
  12940. msgname = "FOLLOW_TARGET"
  12941. fieldnames = ["timestamp", "est_capabilities", "lat", "lon", "alt", "vel", "acc", "attitude_q", "rates", "position_cov", "custom_state"]
  12942. ordered_fieldnames = ["timestamp", "custom_state", "lat", "lon", "alt", "vel", "acc", "attitude_q", "rates", "position_cov", "est_capabilities"]
  12943. fieldtypes = ["uint64_t", "uint8_t", "int32_t", "int32_t", "float", "float", "float", "float", "float", "float", "uint64_t"]
  12944. fielddisplays_by_name: Dict[str, str] = {}
  12945. fieldenums_by_name: Dict[str, str] = {}
  12946. fieldunits_by_name: Dict[str, str] = {"timestamp": "ms", "lat": "degE7", "lon": "degE7", "alt": "m", "vel": "m/s", "acc": "m/s/s"}
  12947. native_format = bytearray(b"<QQiiffffffB")
  12948. orders = [0, 10, 2, 3, 4, 5, 6, 7, 8, 9, 1]
  12949. lengths = [1, 1, 1, 1, 1, 3, 3, 4, 3, 3, 1]
  12950. array_lengths = [0, 0, 0, 0, 0, 3, 3, 4, 3, 3, 0]
  12951. crc_extra = 127
  12952. unpacker = struct.Struct("<QQiif3f3f4f3f3fB")
  12953. instance_field = None
  12954. instance_offset = -1
  12955. def __init__(self, timestamp: int, est_capabilities: int, lat: int, lon: int, alt: float, vel: Sequence[float], acc: Sequence[float], attitude_q: Sequence[float], rates: Sequence[float], position_cov: Sequence[float], custom_state: int):
  12956. MAVLink_message.__init__(self, MAVLink_follow_target_message.id, MAVLink_follow_target_message.msgname)
  12957. self._fieldnames = MAVLink_follow_target_message.fieldnames
  12958. self._instance_field = MAVLink_follow_target_message.instance_field
  12959. self._instance_offset = MAVLink_follow_target_message.instance_offset
  12960. self.timestamp = timestamp
  12961. self.est_capabilities = est_capabilities
  12962. self.lat = lat
  12963. self.lon = lon
  12964. self.alt = alt
  12965. self.vel = vel
  12966. self.acc = acc
  12967. self.attitude_q = attitude_q
  12968. self.rates = rates
  12969. self.position_cov = position_cov
  12970. self.custom_state = custom_state
  12971. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12972. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.timestamp, self.custom_state, self.lat, self.lon, self.alt, self.vel[0], self.vel[1], self.vel[2], self.acc[0], self.acc[1], self.acc[2], self.attitude_q[0], self.attitude_q[1], self.attitude_q[2], self.attitude_q[3], self.rates[0], self.rates[1], self.rates[2], self.position_cov[0], self.position_cov[1], self.position_cov[2], self.est_capabilities), force_mavlink1=force_mavlink1)
  12973. # Define name on the class for backwards compatibility (it is now msgname).
  12974. # Done with setattr to hide the class variable from mypy.
  12975. setattr(MAVLink_follow_target_message, "name", mavlink_msg_deprecated_name_property())
  12976. class MAVLink_control_system_state_message(MAVLink_message):
  12977. """
  12978. The smoothed, monotonic system state used to feed the control
  12979. loops of the system.
  12980. """
  12981. id = MAVLINK_MSG_ID_CONTROL_SYSTEM_STATE
  12982. msgname = "CONTROL_SYSTEM_STATE"
  12983. fieldnames = ["time_usec", "x_acc", "y_acc", "z_acc", "x_vel", "y_vel", "z_vel", "x_pos", "y_pos", "z_pos", "airspeed", "vel_variance", "pos_variance", "q", "roll_rate", "pitch_rate", "yaw_rate"]
  12984. ordered_fieldnames = ["time_usec", "x_acc", "y_acc", "z_acc", "x_vel", "y_vel", "z_vel", "x_pos", "y_pos", "z_pos", "airspeed", "vel_variance", "pos_variance", "q", "roll_rate", "pitch_rate", "yaw_rate"]
  12985. fieldtypes = ["uint64_t", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float"]
  12986. fielddisplays_by_name: Dict[str, str] = {}
  12987. fieldenums_by_name: Dict[str, str] = {}
  12988. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "x_acc": "m/s/s", "y_acc": "m/s/s", "z_acc": "m/s/s", "x_vel": "m/s", "y_vel": "m/s", "z_vel": "m/s", "x_pos": "m", "y_pos": "m", "z_pos": "m", "airspeed": "m/s", "roll_rate": "rad/s", "pitch_rate": "rad/s", "yaw_rate": "rad/s"}
  12989. native_format = bytearray(b"<Qffffffffffffffff")
  12990. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]
  12991. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 4, 1, 1, 1]
  12992. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 4, 0, 0, 0]
  12993. crc_extra = 103
  12994. unpacker = struct.Struct("<Qffffffffff3f3f4ffff")
  12995. instance_field = None
  12996. instance_offset = -1
  12997. def __init__(self, time_usec: int, x_acc: float, y_acc: float, z_acc: float, x_vel: float, y_vel: float, z_vel: float, x_pos: float, y_pos: float, z_pos: float, airspeed: float, vel_variance: Sequence[float], pos_variance: Sequence[float], q: Sequence[float], roll_rate: float, pitch_rate: float, yaw_rate: float):
  12998. MAVLink_message.__init__(self, MAVLink_control_system_state_message.id, MAVLink_control_system_state_message.msgname)
  12999. self._fieldnames = MAVLink_control_system_state_message.fieldnames
  13000. self._instance_field = MAVLink_control_system_state_message.instance_field
  13001. self._instance_offset = MAVLink_control_system_state_message.instance_offset
  13002. self.time_usec = time_usec
  13003. self.x_acc = x_acc
  13004. self.y_acc = y_acc
  13005. self.z_acc = z_acc
  13006. self.x_vel = x_vel
  13007. self.y_vel = y_vel
  13008. self.z_vel = z_vel
  13009. self.x_pos = x_pos
  13010. self.y_pos = y_pos
  13011. self.z_pos = z_pos
  13012. self.airspeed = airspeed
  13013. self.vel_variance = vel_variance
  13014. self.pos_variance = pos_variance
  13015. self.q = q
  13016. self.roll_rate = roll_rate
  13017. self.pitch_rate = pitch_rate
  13018. self.yaw_rate = yaw_rate
  13019. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13020. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.x_acc, self.y_acc, self.z_acc, self.x_vel, self.y_vel, self.z_vel, self.x_pos, self.y_pos, self.z_pos, self.airspeed, self.vel_variance[0], self.vel_variance[1], self.vel_variance[2], self.pos_variance[0], self.pos_variance[1], self.pos_variance[2], self.q[0], self.q[1], self.q[2], self.q[3], self.roll_rate, self.pitch_rate, self.yaw_rate), force_mavlink1=force_mavlink1)
  13021. # Define name on the class for backwards compatibility (it is now msgname).
  13022. # Done with setattr to hide the class variable from mypy.
  13023. setattr(MAVLink_control_system_state_message, "name", mavlink_msg_deprecated_name_property())
  13024. class MAVLink_battery_status_message(MAVLink_message):
  13025. """
  13026. Battery information. Updates GCS with flight controller battery
  13027. status. Smart batteries also use this message, but may
  13028. additionally send BATTERY_INFO.
  13029. """
  13030. id = MAVLINK_MSG_ID_BATTERY_STATUS
  13031. msgname = "BATTERY_STATUS"
  13032. fieldnames = ["id", "battery_function", "type", "temperature", "voltages", "current_battery", "current_consumed", "energy_consumed", "battery_remaining", "time_remaining", "charge_state", "voltages_ext", "mode", "fault_bitmask"]
  13033. ordered_fieldnames = ["current_consumed", "energy_consumed", "temperature", "voltages", "current_battery", "id", "battery_function", "type", "battery_remaining", "time_remaining", "charge_state", "voltages_ext", "mode", "fault_bitmask"]
  13034. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "int16_t", "uint16_t", "int16_t", "int32_t", "int32_t", "int8_t", "int32_t", "uint8_t", "uint16_t", "uint8_t", "uint32_t"]
  13035. fielddisplays_by_name: Dict[str, str] = {"fault_bitmask": "bitmask"}
  13036. fieldenums_by_name: Dict[str, str] = {"battery_function": "MAV_BATTERY_FUNCTION", "type": "MAV_BATTERY_TYPE", "charge_state": "MAV_BATTERY_CHARGE_STATE", "mode": "MAV_BATTERY_MODE", "fault_bitmask": "MAV_BATTERY_FAULT"}
  13037. fieldunits_by_name: Dict[str, str] = {"temperature": "cdegC", "voltages": "mV", "current_battery": "cA", "current_consumed": "mAh", "energy_consumed": "hJ", "battery_remaining": "%", "time_remaining": "s", "voltages_ext": "mV"}
  13038. native_format = bytearray(b"<iihHhBBBbiBHBI")
  13039. orders = [5, 6, 7, 2, 3, 4, 0, 1, 8, 9, 10, 11, 12, 13]
  13040. lengths = [1, 1, 1, 10, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1]
  13041. array_lengths = [0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0]
  13042. crc_extra = 154
  13043. unpacker = struct.Struct("<iih10HhBBBbiB4HBI")
  13044. instance_field = "id"
  13045. instance_offset = 32
  13046. def __init__(self, id: int, battery_function: int, type: int, temperature: int, voltages: Sequence[int], current_battery: int, current_consumed: int, energy_consumed: int, battery_remaining: int, time_remaining: int = 0, charge_state: int = 0, voltages_ext: Sequence[int] = (0, 0, 0, 0), mode: int = 0, fault_bitmask: int = 0):
  13047. MAVLink_message.__init__(self, MAVLink_battery_status_message.id, MAVLink_battery_status_message.msgname)
  13048. self._fieldnames = MAVLink_battery_status_message.fieldnames
  13049. self._instance_field = MAVLink_battery_status_message.instance_field
  13050. self._instance_offset = MAVLink_battery_status_message.instance_offset
  13051. self.id = id
  13052. self.battery_function = battery_function
  13053. self.type = type
  13054. self.temperature = temperature
  13055. self.voltages = voltages
  13056. self.current_battery = current_battery
  13057. self.current_consumed = current_consumed
  13058. self.energy_consumed = energy_consumed
  13059. self.battery_remaining = battery_remaining
  13060. self.time_remaining = time_remaining
  13061. self.charge_state = charge_state
  13062. self.voltages_ext = voltages_ext
  13063. self.mode = mode
  13064. self.fault_bitmask = fault_bitmask
  13065. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13066. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.current_consumed, self.energy_consumed, self.temperature, self.voltages[0], self.voltages[1], self.voltages[2], self.voltages[3], self.voltages[4], self.voltages[5], self.voltages[6], self.voltages[7], self.voltages[8], self.voltages[9], self.current_battery, self.id, self.battery_function, self.type, self.battery_remaining, self.time_remaining, self.charge_state, self.voltages_ext[0], self.voltages_ext[1], self.voltages_ext[2], self.voltages_ext[3], self.mode, self.fault_bitmask), force_mavlink1=force_mavlink1)
  13067. # Define name on the class for backwards compatibility (it is now msgname).
  13068. # Done with setattr to hide the class variable from mypy.
  13069. setattr(MAVLink_battery_status_message, "name", mavlink_msg_deprecated_name_property())
  13070. class MAVLink_autopilot_version_message(MAVLink_message):
  13071. """
  13072. Version and capability of autopilot software. This should be
  13073. emitted in response to a request with MAV_CMD_REQUEST_MESSAGE.
  13074. """
  13075. id = MAVLINK_MSG_ID_AUTOPILOT_VERSION
  13076. msgname = "AUTOPILOT_VERSION"
  13077. fieldnames = ["capabilities", "flight_sw_version", "middleware_sw_version", "os_sw_version", "board_version", "flight_custom_version", "middleware_custom_version", "os_custom_version", "vendor_id", "product_id", "uid", "uid2"]
  13078. ordered_fieldnames = ["capabilities", "uid", "flight_sw_version", "middleware_sw_version", "os_sw_version", "board_version", "vendor_id", "product_id", "flight_custom_version", "middleware_custom_version", "os_custom_version", "uid2"]
  13079. fieldtypes = ["uint64_t", "uint32_t", "uint32_t", "uint32_t", "uint32_t", "uint8_t", "uint8_t", "uint8_t", "uint16_t", "uint16_t", "uint64_t", "uint8_t"]
  13080. fielddisplays_by_name: Dict[str, str] = {"capabilities": "bitmask"}
  13081. fieldenums_by_name: Dict[str, str] = {"capabilities": "MAV_PROTOCOL_CAPABILITY"}
  13082. fieldunits_by_name: Dict[str, str] = {}
  13083. native_format = bytearray(b"<QQIIIIHHBBBB")
  13084. orders = [0, 2, 3, 4, 5, 8, 9, 10, 6, 7, 1, 11]
  13085. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 8, 8, 8, 18]
  13086. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 8, 8, 8, 18]
  13087. crc_extra = 178
  13088. unpacker = struct.Struct("<QQIIIIHH8B8B8B18B")
  13089. instance_field = None
  13090. instance_offset = -1
  13091. def __init__(self, capabilities: int, flight_sw_version: int, middleware_sw_version: int, os_sw_version: int, board_version: int, flight_custom_version: Sequence[int], middleware_custom_version: Sequence[int], os_custom_version: Sequence[int], vendor_id: int, product_id: int, uid: int, uid2: Sequence[int] = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)):
  13092. MAVLink_message.__init__(self, MAVLink_autopilot_version_message.id, MAVLink_autopilot_version_message.msgname)
  13093. self._fieldnames = MAVLink_autopilot_version_message.fieldnames
  13094. self._instance_field = MAVLink_autopilot_version_message.instance_field
  13095. self._instance_offset = MAVLink_autopilot_version_message.instance_offset
  13096. self.capabilities = capabilities
  13097. self.flight_sw_version = flight_sw_version
  13098. self.middleware_sw_version = middleware_sw_version
  13099. self.os_sw_version = os_sw_version
  13100. self.board_version = board_version
  13101. self.flight_custom_version = flight_custom_version
  13102. self.middleware_custom_version = middleware_custom_version
  13103. self.os_custom_version = os_custom_version
  13104. self.vendor_id = vendor_id
  13105. self.product_id = product_id
  13106. self.uid = uid
  13107. self.uid2 = uid2
  13108. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13109. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.capabilities, self.uid, self.flight_sw_version, self.middleware_sw_version, self.os_sw_version, self.board_version, self.vendor_id, self.product_id, self.flight_custom_version[0], self.flight_custom_version[1], self.flight_custom_version[2], self.flight_custom_version[3], self.flight_custom_version[4], self.flight_custom_version[5], self.flight_custom_version[6], self.flight_custom_version[7], self.middleware_custom_version[0], self.middleware_custom_version[1], self.middleware_custom_version[2], self.middleware_custom_version[3], self.middleware_custom_version[4], self.middleware_custom_version[5], self.middleware_custom_version[6], self.middleware_custom_version[7], self.os_custom_version[0], self.os_custom_version[1], self.os_custom_version[2], self.os_custom_version[3], self.os_custom_version[4], self.os_custom_version[5], self.os_custom_version[6], self.os_custom_version[7], self.uid2[0], self.uid2[1], self.uid2[2], self.uid2[3], self.uid2[4], self.uid2[5], self.uid2[6], self.uid2[7], self.uid2[8], self.uid2[9], self.uid2[10], self.uid2[11], self.uid2[12], self.uid2[13], self.uid2[14], self.uid2[15], self.uid2[16], self.uid2[17]), force_mavlink1=force_mavlink1)
  13110. # Define name on the class for backwards compatibility (it is now msgname).
  13111. # Done with setattr to hide the class variable from mypy.
  13112. setattr(MAVLink_autopilot_version_message, "name", mavlink_msg_deprecated_name_property())
  13113. class MAVLink_landing_target_message(MAVLink_message):
  13114. """
  13115. The location of a landing target. See:
  13116. https://mavlink.io/en/services/landing_target.html
  13117. """
  13118. id = MAVLINK_MSG_ID_LANDING_TARGET
  13119. msgname = "LANDING_TARGET"
  13120. fieldnames = ["time_usec", "target_num", "frame", "angle_x", "angle_y", "distance", "size_x", "size_y", "x", "y", "z", "q", "type", "position_valid"]
  13121. ordered_fieldnames = ["time_usec", "angle_x", "angle_y", "distance", "size_x", "size_y", "target_num", "frame", "x", "y", "z", "q", "type", "position_valid"]
  13122. fieldtypes = ["uint64_t", "uint8_t", "uint8_t", "float", "float", "float", "float", "float", "float", "float", "float", "float", "uint8_t", "uint8_t"]
  13123. fielddisplays_by_name: Dict[str, str] = {}
  13124. fieldenums_by_name: Dict[str, str] = {"frame": "MAV_FRAME", "type": "LANDING_TARGET_TYPE"}
  13125. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "angle_x": "rad", "angle_y": "rad", "distance": "m", "size_x": "rad", "size_y": "rad", "x": "m", "y": "m", "z": "m"}
  13126. native_format = bytearray(b"<QfffffBBffffBB")
  13127. orders = [0, 6, 7, 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 13]
  13128. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1]
  13129. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0]
  13130. crc_extra = 200
  13131. unpacker = struct.Struct("<QfffffBBfff4fBB")
  13132. instance_field = None
  13133. instance_offset = -1
  13134. def __init__(self, time_usec: int, target_num: int, frame: int, angle_x: float, angle_y: float, distance: float, size_x: float, size_y: float, x: float = 0, y: float = 0, z: float = 0, q: Sequence[float] = (0, 0, 0, 0), type: int = 0, position_valid: int = 0):
  13135. MAVLink_message.__init__(self, MAVLink_landing_target_message.id, MAVLink_landing_target_message.msgname)
  13136. self._fieldnames = MAVLink_landing_target_message.fieldnames
  13137. self._instance_field = MAVLink_landing_target_message.instance_field
  13138. self._instance_offset = MAVLink_landing_target_message.instance_offset
  13139. self.time_usec = time_usec
  13140. self.target_num = target_num
  13141. self.frame = frame
  13142. self.angle_x = angle_x
  13143. self.angle_y = angle_y
  13144. self.distance = distance
  13145. self.size_x = size_x
  13146. self.size_y = size_y
  13147. self.x = x
  13148. self.y = y
  13149. self.z = z
  13150. self.q = q
  13151. self.type = type
  13152. self.position_valid = position_valid
  13153. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13154. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.angle_x, self.angle_y, self.distance, self.size_x, self.size_y, self.target_num, self.frame, self.x, self.y, self.z, self.q[0], self.q[1], self.q[2], self.q[3], self.type, self.position_valid), force_mavlink1=force_mavlink1)
  13155. # Define name on the class for backwards compatibility (it is now msgname).
  13156. # Done with setattr to hide the class variable from mypy.
  13157. setattr(MAVLink_landing_target_message, "name", mavlink_msg_deprecated_name_property())
  13158. class MAVLink_fence_status_message(MAVLink_message):
  13159. """
  13160. Status of geo-fencing. Sent in extended status stream when fencing
  13161. enabled.
  13162. """
  13163. id = MAVLINK_MSG_ID_FENCE_STATUS
  13164. msgname = "FENCE_STATUS"
  13165. fieldnames = ["breach_status", "breach_count", "breach_type", "breach_time", "breach_mitigation"]
  13166. ordered_fieldnames = ["breach_time", "breach_count", "breach_status", "breach_type", "breach_mitigation"]
  13167. fieldtypes = ["uint8_t", "uint16_t", "uint8_t", "uint32_t", "uint8_t"]
  13168. fielddisplays_by_name: Dict[str, str] = {}
  13169. fieldenums_by_name: Dict[str, str] = {"breach_type": "FENCE_BREACH", "breach_mitigation": "FENCE_MITIGATE"}
  13170. fieldunits_by_name: Dict[str, str] = {"breach_time": "ms"}
  13171. native_format = bytearray(b"<IHBBB")
  13172. orders = [2, 1, 3, 0, 4]
  13173. lengths = [1, 1, 1, 1, 1]
  13174. array_lengths = [0, 0, 0, 0, 0]
  13175. crc_extra = 189
  13176. unpacker = struct.Struct("<IHBBB")
  13177. instance_field = None
  13178. instance_offset = -1
  13179. def __init__(self, breach_status: int, breach_count: int, breach_type: int, breach_time: int, breach_mitigation: int = 0):
  13180. MAVLink_message.__init__(self, MAVLink_fence_status_message.id, MAVLink_fence_status_message.msgname)
  13181. self._fieldnames = MAVLink_fence_status_message.fieldnames
  13182. self._instance_field = MAVLink_fence_status_message.instance_field
  13183. self._instance_offset = MAVLink_fence_status_message.instance_offset
  13184. self.breach_status = breach_status
  13185. self.breach_count = breach_count
  13186. self.breach_type = breach_type
  13187. self.breach_time = breach_time
  13188. self.breach_mitigation = breach_mitigation
  13189. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13190. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.breach_time, self.breach_count, self.breach_status, self.breach_type, self.breach_mitigation), force_mavlink1=force_mavlink1)
  13191. # Define name on the class for backwards compatibility (it is now msgname).
  13192. # Done with setattr to hide the class variable from mypy.
  13193. setattr(MAVLink_fence_status_message, "name", mavlink_msg_deprecated_name_property())
  13194. class MAVLink_mag_cal_report_message(MAVLink_message):
  13195. """
  13196. Reports results of completed compass calibration. Sent until
  13197. MAG_CAL_ACK received.
  13198. """
  13199. id = MAVLINK_MSG_ID_MAG_CAL_REPORT
  13200. msgname = "MAG_CAL_REPORT"
  13201. fieldnames = ["compass_id", "cal_mask", "cal_status", "autosaved", "fitness", "ofs_x", "ofs_y", "ofs_z", "diag_x", "diag_y", "diag_z", "offdiag_x", "offdiag_y", "offdiag_z", "orientation_confidence", "old_orientation", "new_orientation", "scale_factor"]
  13202. ordered_fieldnames = ["fitness", "ofs_x", "ofs_y", "ofs_z", "diag_x", "diag_y", "diag_z", "offdiag_x", "offdiag_y", "offdiag_z", "compass_id", "cal_mask", "cal_status", "autosaved", "orientation_confidence", "old_orientation", "new_orientation", "scale_factor"]
  13203. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "uint8_t", "uint8_t", "float"]
  13204. fielddisplays_by_name: Dict[str, str] = {"cal_mask": "bitmask"}
  13205. fieldenums_by_name: Dict[str, str] = {"cal_status": "MAG_CAL_STATUS", "old_orientation": "MAV_SENSOR_ORIENTATION", "new_orientation": "MAV_SENSOR_ORIENTATION"}
  13206. fieldunits_by_name: Dict[str, str] = {"fitness": "mgauss"}
  13207. native_format = bytearray(b"<ffffffffffBBBBfBBf")
  13208. orders = [10, 11, 12, 13, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 14, 15, 16, 17]
  13209. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  13210. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  13211. crc_extra = 36
  13212. unpacker = struct.Struct("<ffffffffffBBBBfBBf")
  13213. instance_field = "compass_id"
  13214. instance_offset = 40
  13215. def __init__(self, compass_id: int, cal_mask: int, cal_status: int, autosaved: int, fitness: float, ofs_x: float, ofs_y: float, ofs_z: float, diag_x: float, diag_y: float, diag_z: float, offdiag_x: float, offdiag_y: float, offdiag_z: float, orientation_confidence: float = 0, old_orientation: int = 0, new_orientation: int = 0, scale_factor: float = 0):
  13216. MAVLink_message.__init__(self, MAVLink_mag_cal_report_message.id, MAVLink_mag_cal_report_message.msgname)
  13217. self._fieldnames = MAVLink_mag_cal_report_message.fieldnames
  13218. self._instance_field = MAVLink_mag_cal_report_message.instance_field
  13219. self._instance_offset = MAVLink_mag_cal_report_message.instance_offset
  13220. self.compass_id = compass_id
  13221. self.cal_mask = cal_mask
  13222. self.cal_status = cal_status
  13223. self.autosaved = autosaved
  13224. self.fitness = fitness
  13225. self.ofs_x = ofs_x
  13226. self.ofs_y = ofs_y
  13227. self.ofs_z = ofs_z
  13228. self.diag_x = diag_x
  13229. self.diag_y = diag_y
  13230. self.diag_z = diag_z
  13231. self.offdiag_x = offdiag_x
  13232. self.offdiag_y = offdiag_y
  13233. self.offdiag_z = offdiag_z
  13234. self.orientation_confidence = orientation_confidence
  13235. self.old_orientation = old_orientation
  13236. self.new_orientation = new_orientation
  13237. self.scale_factor = scale_factor
  13238. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13239. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.fitness, self.ofs_x, self.ofs_y, self.ofs_z, self.diag_x, self.diag_y, self.diag_z, self.offdiag_x, self.offdiag_y, self.offdiag_z, self.compass_id, self.cal_mask, self.cal_status, self.autosaved, self.orientation_confidence, self.old_orientation, self.new_orientation, self.scale_factor), force_mavlink1=force_mavlink1)
  13240. # Define name on the class for backwards compatibility (it is now msgname).
  13241. # Done with setattr to hide the class variable from mypy.
  13242. setattr(MAVLink_mag_cal_report_message, "name", mavlink_msg_deprecated_name_property())
  13243. class MAVLink_efi_status_message(MAVLink_message):
  13244. """
  13245. EFI status output
  13246. """
  13247. id = MAVLINK_MSG_ID_EFI_STATUS
  13248. msgname = "EFI_STATUS"
  13249. fieldnames = ["health", "ecu_index", "rpm", "fuel_consumed", "fuel_flow", "engine_load", "throttle_position", "spark_dwell_time", "barometric_pressure", "intake_manifold_pressure", "intake_manifold_temperature", "cylinder_head_temperature", "ignition_timing", "injection_time", "exhaust_gas_temperature", "throttle_out", "pt_compensation", "ignition_voltage", "fuel_pressure"]
  13250. ordered_fieldnames = ["ecu_index", "rpm", "fuel_consumed", "fuel_flow", "engine_load", "throttle_position", "spark_dwell_time", "barometric_pressure", "intake_manifold_pressure", "intake_manifold_temperature", "cylinder_head_temperature", "ignition_timing", "injection_time", "exhaust_gas_temperature", "throttle_out", "pt_compensation", "health", "ignition_voltage", "fuel_pressure"]
  13251. fieldtypes = ["uint8_t", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float"]
  13252. fielddisplays_by_name: Dict[str, str] = {}
  13253. fieldenums_by_name: Dict[str, str] = {}
  13254. fieldunits_by_name: Dict[str, str] = {"fuel_consumed": "cm^3", "fuel_flow": "cm^3/min", "engine_load": "%", "throttle_position": "%", "spark_dwell_time": "ms", "barometric_pressure": "kPa", "intake_manifold_pressure": "kPa", "intake_manifold_temperature": "degC", "cylinder_head_temperature": "degC", "ignition_timing": "deg", "injection_time": "ms", "exhaust_gas_temperature": "degC", "throttle_out": "%", "ignition_voltage": "V", "fuel_pressure": "kPa"}
  13255. native_format = bytearray(b"<ffffffffffffffffBff")
  13256. orders = [16, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 18]
  13257. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  13258. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  13259. crc_extra = 208
  13260. unpacker = struct.Struct("<ffffffffffffffffBff")
  13261. instance_field = None
  13262. instance_offset = -1
  13263. def __init__(self, health: int, ecu_index: float, rpm: float, fuel_consumed: float, fuel_flow: float, engine_load: float, throttle_position: float, spark_dwell_time: float, barometric_pressure: float, intake_manifold_pressure: float, intake_manifold_temperature: float, cylinder_head_temperature: float, ignition_timing: float, injection_time: float, exhaust_gas_temperature: float, throttle_out: float, pt_compensation: float, ignition_voltage: float = 0, fuel_pressure: float = 0):
  13264. MAVLink_message.__init__(self, MAVLink_efi_status_message.id, MAVLink_efi_status_message.msgname)
  13265. self._fieldnames = MAVLink_efi_status_message.fieldnames
  13266. self._instance_field = MAVLink_efi_status_message.instance_field
  13267. self._instance_offset = MAVLink_efi_status_message.instance_offset
  13268. self.health = health
  13269. self.ecu_index = ecu_index
  13270. self.rpm = rpm
  13271. self.fuel_consumed = fuel_consumed
  13272. self.fuel_flow = fuel_flow
  13273. self.engine_load = engine_load
  13274. self.throttle_position = throttle_position
  13275. self.spark_dwell_time = spark_dwell_time
  13276. self.barometric_pressure = barometric_pressure
  13277. self.intake_manifold_pressure = intake_manifold_pressure
  13278. self.intake_manifold_temperature = intake_manifold_temperature
  13279. self.cylinder_head_temperature = cylinder_head_temperature
  13280. self.ignition_timing = ignition_timing
  13281. self.injection_time = injection_time
  13282. self.exhaust_gas_temperature = exhaust_gas_temperature
  13283. self.throttle_out = throttle_out
  13284. self.pt_compensation = pt_compensation
  13285. self.ignition_voltage = ignition_voltage
  13286. self.fuel_pressure = fuel_pressure
  13287. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13288. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.ecu_index, self.rpm, self.fuel_consumed, self.fuel_flow, self.engine_load, self.throttle_position, self.spark_dwell_time, self.barometric_pressure, self.intake_manifold_pressure, self.intake_manifold_temperature, self.cylinder_head_temperature, self.ignition_timing, self.injection_time, self.exhaust_gas_temperature, self.throttle_out, self.pt_compensation, self.health, self.ignition_voltage, self.fuel_pressure), force_mavlink1=force_mavlink1)
  13289. # Define name on the class for backwards compatibility (it is now msgname).
  13290. # Done with setattr to hide the class variable from mypy.
  13291. setattr(MAVLink_efi_status_message, "name", mavlink_msg_deprecated_name_property())
  13292. class MAVLink_estimator_status_message(MAVLink_message):
  13293. """
  13294. Estimator status message including flags, innovation test ratios
  13295. and estimated accuracies. The flags message is an integer bitmask
  13296. containing information on which EKF outputs are valid. See the
  13297. ESTIMATOR_STATUS_FLAGS enum definition for further information.
  13298. The innovation test ratios show the magnitude of the sensor
  13299. innovation divided by the innovation check threshold. Under normal
  13300. operation the innovation test ratios should be below 0.5 with
  13301. occasional values up to 1.0. Values greater than 1.0 should be
  13302. rare under normal operation and indicate that a measurement has
  13303. been rejected by the filter. The user should be notified if an
  13304. innovation test ratio greater than 1.0 is recorded. Notifications
  13305. for values in the range between 0.5 and 1.0 should be optional and
  13306. controllable by the user.
  13307. """
  13308. id = MAVLINK_MSG_ID_ESTIMATOR_STATUS
  13309. msgname = "ESTIMATOR_STATUS"
  13310. fieldnames = ["time_usec", "flags", "vel_ratio", "pos_horiz_ratio", "pos_vert_ratio", "mag_ratio", "hagl_ratio", "tas_ratio", "pos_horiz_accuracy", "pos_vert_accuracy"]
  13311. ordered_fieldnames = ["time_usec", "vel_ratio", "pos_horiz_ratio", "pos_vert_ratio", "mag_ratio", "hagl_ratio", "tas_ratio", "pos_horiz_accuracy", "pos_vert_accuracy", "flags"]
  13312. fieldtypes = ["uint64_t", "uint16_t", "float", "float", "float", "float", "float", "float", "float", "float"]
  13313. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  13314. fieldenums_by_name: Dict[str, str] = {"flags": "ESTIMATOR_STATUS_FLAGS"}
  13315. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "pos_horiz_accuracy": "m", "pos_vert_accuracy": "m"}
  13316. native_format = bytearray(b"<QffffffffH")
  13317. orders = [0, 9, 1, 2, 3, 4, 5, 6, 7, 8]
  13318. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  13319. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  13320. crc_extra = 163
  13321. unpacker = struct.Struct("<QffffffffH")
  13322. instance_field = None
  13323. instance_offset = -1
  13324. def __init__(self, time_usec: int, flags: int, vel_ratio: float, pos_horiz_ratio: float, pos_vert_ratio: float, mag_ratio: float, hagl_ratio: float, tas_ratio: float, pos_horiz_accuracy: float, pos_vert_accuracy: float):
  13325. MAVLink_message.__init__(self, MAVLink_estimator_status_message.id, MAVLink_estimator_status_message.msgname)
  13326. self._fieldnames = MAVLink_estimator_status_message.fieldnames
  13327. self._instance_field = MAVLink_estimator_status_message.instance_field
  13328. self._instance_offset = MAVLink_estimator_status_message.instance_offset
  13329. self.time_usec = time_usec
  13330. self.flags = flags
  13331. self.vel_ratio = vel_ratio
  13332. self.pos_horiz_ratio = pos_horiz_ratio
  13333. self.pos_vert_ratio = pos_vert_ratio
  13334. self.mag_ratio = mag_ratio
  13335. self.hagl_ratio = hagl_ratio
  13336. self.tas_ratio = tas_ratio
  13337. self.pos_horiz_accuracy = pos_horiz_accuracy
  13338. self.pos_vert_accuracy = pos_vert_accuracy
  13339. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13340. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.vel_ratio, self.pos_horiz_ratio, self.pos_vert_ratio, self.mag_ratio, self.hagl_ratio, self.tas_ratio, self.pos_horiz_accuracy, self.pos_vert_accuracy, self.flags), force_mavlink1=force_mavlink1)
  13341. # Define name on the class for backwards compatibility (it is now msgname).
  13342. # Done with setattr to hide the class variable from mypy.
  13343. setattr(MAVLink_estimator_status_message, "name", mavlink_msg_deprecated_name_property())
  13344. class MAVLink_wind_cov_message(MAVLink_message):
  13345. """
  13346. Wind estimate from vehicle. Note that despite the name, this
  13347. message does not actually contain any covariances but instead
  13348. variability and accuracy fields in terms of standard deviation
  13349. (1-STD).
  13350. """
  13351. id = MAVLINK_MSG_ID_WIND_COV
  13352. msgname = "WIND_COV"
  13353. fieldnames = ["time_usec", "wind_x", "wind_y", "wind_z", "var_horiz", "var_vert", "wind_alt", "horiz_accuracy", "vert_accuracy"]
  13354. ordered_fieldnames = ["time_usec", "wind_x", "wind_y", "wind_z", "var_horiz", "var_vert", "wind_alt", "horiz_accuracy", "vert_accuracy"]
  13355. fieldtypes = ["uint64_t", "float", "float", "float", "float", "float", "float", "float", "float"]
  13356. fielddisplays_by_name: Dict[str, str] = {}
  13357. fieldenums_by_name: Dict[str, str] = {}
  13358. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "wind_x": "m/s", "wind_y": "m/s", "wind_z": "m/s", "var_horiz": "m/s", "var_vert": "m/s", "wind_alt": "m", "horiz_accuracy": "m/s", "vert_accuracy": "m/s"}
  13359. native_format = bytearray(b"<Qffffffff")
  13360. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8]
  13361. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1]
  13362. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0]
  13363. crc_extra = 105
  13364. unpacker = struct.Struct("<Qffffffff")
  13365. instance_field = None
  13366. instance_offset = -1
  13367. def __init__(self, time_usec: int, wind_x: float, wind_y: float, wind_z: float, var_horiz: float, var_vert: float, wind_alt: float, horiz_accuracy: float, vert_accuracy: float):
  13368. MAVLink_message.__init__(self, MAVLink_wind_cov_message.id, MAVLink_wind_cov_message.msgname)
  13369. self._fieldnames = MAVLink_wind_cov_message.fieldnames
  13370. self._instance_field = MAVLink_wind_cov_message.instance_field
  13371. self._instance_offset = MAVLink_wind_cov_message.instance_offset
  13372. self.time_usec = time_usec
  13373. self.wind_x = wind_x
  13374. self.wind_y = wind_y
  13375. self.wind_z = wind_z
  13376. self.var_horiz = var_horiz
  13377. self.var_vert = var_vert
  13378. self.wind_alt = wind_alt
  13379. self.horiz_accuracy = horiz_accuracy
  13380. self.vert_accuracy = vert_accuracy
  13381. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13382. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.wind_x, self.wind_y, self.wind_z, self.var_horiz, self.var_vert, self.wind_alt, self.horiz_accuracy, self.vert_accuracy), force_mavlink1=force_mavlink1)
  13383. # Define name on the class for backwards compatibility (it is now msgname).
  13384. # Done with setattr to hide the class variable from mypy.
  13385. setattr(MAVLink_wind_cov_message, "name", mavlink_msg_deprecated_name_property())
  13386. class MAVLink_gps_input_message(MAVLink_message):
  13387. """
  13388. GPS sensor input message. This is a raw sensor value sent by the
  13389. GPS. This is NOT the global position estimate of the system.
  13390. """
  13391. id = MAVLINK_MSG_ID_GPS_INPUT
  13392. msgname = "GPS_INPUT"
  13393. fieldnames = ["time_usec", "gps_id", "ignore_flags", "time_week_ms", "time_week", "fix_type", "lat", "lon", "alt", "hdop", "vdop", "vn", "ve", "vd", "speed_accuracy", "horiz_accuracy", "vert_accuracy", "satellites_visible", "yaw"]
  13394. ordered_fieldnames = ["time_usec", "time_week_ms", "lat", "lon", "alt", "hdop", "vdop", "vn", "ve", "vd", "speed_accuracy", "horiz_accuracy", "vert_accuracy", "ignore_flags", "time_week", "gps_id", "fix_type", "satellites_visible", "yaw"]
  13395. fieldtypes = ["uint64_t", "uint8_t", "uint16_t", "uint32_t", "uint16_t", "uint8_t", "int32_t", "int32_t", "float", "float", "float", "float", "float", "float", "float", "float", "float", "uint8_t", "uint16_t"]
  13396. fielddisplays_by_name: Dict[str, str] = {"ignore_flags": "bitmask"}
  13397. fieldenums_by_name: Dict[str, str] = {"ignore_flags": "GPS_INPUT_IGNORE_FLAGS"}
  13398. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "time_week_ms": "ms", "lat": "degE7", "lon": "degE7", "alt": "m", "vn": "m/s", "ve": "m/s", "vd": "m/s", "speed_accuracy": "m/s", "horiz_accuracy": "m", "vert_accuracy": "m", "yaw": "cdeg"}
  13399. native_format = bytearray(b"<QIiifffffffffHHBBBH")
  13400. orders = [0, 15, 13, 1, 14, 16, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 17, 18]
  13401. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  13402. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  13403. crc_extra = 151
  13404. unpacker = struct.Struct("<QIiifffffffffHHBBBH")
  13405. instance_field = "gps_id"
  13406. instance_offset = 60
  13407. def __init__(self, time_usec: int, gps_id: int, ignore_flags: int, time_week_ms: int, time_week: int, fix_type: int, lat: int, lon: int, alt: float, hdop: float, vdop: float, vn: float, ve: float, vd: float, speed_accuracy: float, horiz_accuracy: float, vert_accuracy: float, satellites_visible: int, yaw: int = 0):
  13408. MAVLink_message.__init__(self, MAVLink_gps_input_message.id, MAVLink_gps_input_message.msgname)
  13409. self._fieldnames = MAVLink_gps_input_message.fieldnames
  13410. self._instance_field = MAVLink_gps_input_message.instance_field
  13411. self._instance_offset = MAVLink_gps_input_message.instance_offset
  13412. self.time_usec = time_usec
  13413. self.gps_id = gps_id
  13414. self.ignore_flags = ignore_flags
  13415. self.time_week_ms = time_week_ms
  13416. self.time_week = time_week
  13417. self.fix_type = fix_type
  13418. self.lat = lat
  13419. self.lon = lon
  13420. self.alt = alt
  13421. self.hdop = hdop
  13422. self.vdop = vdop
  13423. self.vn = vn
  13424. self.ve = ve
  13425. self.vd = vd
  13426. self.speed_accuracy = speed_accuracy
  13427. self.horiz_accuracy = horiz_accuracy
  13428. self.vert_accuracy = vert_accuracy
  13429. self.satellites_visible = satellites_visible
  13430. self.yaw = yaw
  13431. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13432. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.time_week_ms, self.lat, self.lon, self.alt, self.hdop, self.vdop, self.vn, self.ve, self.vd, self.speed_accuracy, self.horiz_accuracy, self.vert_accuracy, self.ignore_flags, self.time_week, self.gps_id, self.fix_type, self.satellites_visible, self.yaw), force_mavlink1=force_mavlink1)
  13433. # Define name on the class for backwards compatibility (it is now msgname).
  13434. # Done with setattr to hide the class variable from mypy.
  13435. setattr(MAVLink_gps_input_message, "name", mavlink_msg_deprecated_name_property())
  13436. class MAVLink_gps_rtcm_data_message(MAVLink_message):
  13437. """
  13438. RTCM message for injecting into the onboard GPS (used for DGPS)
  13439. """
  13440. id = MAVLINK_MSG_ID_GPS_RTCM_DATA
  13441. msgname = "GPS_RTCM_DATA"
  13442. fieldnames = ["flags", "len", "data"]
  13443. ordered_fieldnames = ["flags", "len", "data"]
  13444. fieldtypes = ["uint8_t", "uint8_t", "uint8_t"]
  13445. fielddisplays_by_name: Dict[str, str] = {}
  13446. fieldenums_by_name: Dict[str, str] = {}
  13447. fieldunits_by_name: Dict[str, str] = {"len": "bytes"}
  13448. native_format = bytearray(b"<BBB")
  13449. orders = [0, 1, 2]
  13450. lengths = [1, 1, 180]
  13451. array_lengths = [0, 0, 180]
  13452. crc_extra = 35
  13453. unpacker = struct.Struct("<BB180B")
  13454. instance_field = None
  13455. instance_offset = -1
  13456. def __init__(self, flags: int, len: int, data: Sequence[int]):
  13457. MAVLink_message.__init__(self, MAVLink_gps_rtcm_data_message.id, MAVLink_gps_rtcm_data_message.msgname)
  13458. self._fieldnames = MAVLink_gps_rtcm_data_message.fieldnames
  13459. self._instance_field = MAVLink_gps_rtcm_data_message.instance_field
  13460. self._instance_offset = MAVLink_gps_rtcm_data_message.instance_offset
  13461. self.flags = flags
  13462. self.len = len
  13463. self.data = data
  13464. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13465. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.flags, self.len, self.data[0], self.data[1], self.data[2], self.data[3], self.data[4], self.data[5], self.data[6], self.data[7], self.data[8], self.data[9], self.data[10], self.data[11], self.data[12], self.data[13], self.data[14], self.data[15], self.data[16], self.data[17], self.data[18], self.data[19], self.data[20], self.data[21], self.data[22], self.data[23], self.data[24], self.data[25], self.data[26], self.data[27], self.data[28], self.data[29], self.data[30], self.data[31], self.data[32], self.data[33], self.data[34], self.data[35], self.data[36], self.data[37], self.data[38], self.data[39], self.data[40], self.data[41], self.data[42], self.data[43], self.data[44], self.data[45], self.data[46], self.data[47], self.data[48], self.data[49], self.data[50], self.data[51], self.data[52], self.data[53], self.data[54], self.data[55], self.data[56], self.data[57], self.data[58], self.data[59], self.data[60], self.data[61], self.data[62], self.data[63], self.data[64], self.data[65], self.data[66], self.data[67], self.data[68], self.data[69], self.data[70], self.data[71], self.data[72], self.data[73], self.data[74], self.data[75], self.data[76], self.data[77], self.data[78], self.data[79], self.data[80], self.data[81], self.data[82], self.data[83], self.data[84], self.data[85], self.data[86], self.data[87], self.data[88], self.data[89], self.data[90], self.data[91], self.data[92], self.data[93], self.data[94], self.data[95], self.data[96], self.data[97], self.data[98], self.data[99], self.data[100], self.data[101], self.data[102], self.data[103], self.data[104], self.data[105], self.data[106], self.data[107], self.data[108], self.data[109], self.data[110], self.data[111], self.data[112], self.data[113], self.data[114], self.data[115], self.data[116], self.data[117], self.data[118], self.data[119], self.data[120], self.data[121], self.data[122], self.data[123], self.data[124], self.data[125], self.data[126], self.data[127], self.data[128], self.data[129], self.data[130], self.data[131], self.data[132], self.data[133], self.data[134], self.data[135], self.data[136], self.data[137], self.data[138], self.data[139], self.data[140], self.data[141], self.data[142], self.data[143], self.data[144], self.data[145], self.data[146], self.data[147], self.data[148], self.data[149], self.data[150], self.data[151], self.data[152], self.data[153], self.data[154], self.data[155], self.data[156], self.data[157], self.data[158], self.data[159], self.data[160], self.data[161], self.data[162], self.data[163], self.data[164], self.data[165], self.data[166], self.data[167], self.data[168], self.data[169], self.data[170], self.data[171], self.data[172], self.data[173], self.data[174], self.data[175], self.data[176], self.data[177], self.data[178], self.data[179]), force_mavlink1=force_mavlink1)
  13466. # Define name on the class for backwards compatibility (it is now msgname).
  13467. # Done with setattr to hide the class variable from mypy.
  13468. setattr(MAVLink_gps_rtcm_data_message, "name", mavlink_msg_deprecated_name_property())
  13469. class MAVLink_high_latency_message(MAVLink_message):
  13470. """
  13471. Message appropriate for high latency connections like Iridium
  13472. """
  13473. id = MAVLINK_MSG_ID_HIGH_LATENCY
  13474. msgname = "HIGH_LATENCY"
  13475. fieldnames = ["base_mode", "custom_mode", "landed_state", "roll", "pitch", "heading", "throttle", "heading_sp", "latitude", "longitude", "altitude_amsl", "altitude_sp", "airspeed", "airspeed_sp", "groundspeed", "climb_rate", "gps_nsat", "gps_fix_type", "battery_remaining", "temperature", "temperature_air", "failsafe", "wp_num", "wp_distance"]
  13476. ordered_fieldnames = ["custom_mode", "latitude", "longitude", "roll", "pitch", "heading", "heading_sp", "altitude_amsl", "altitude_sp", "wp_distance", "base_mode", "landed_state", "throttle", "airspeed", "airspeed_sp", "groundspeed", "climb_rate", "gps_nsat", "gps_fix_type", "battery_remaining", "temperature", "temperature_air", "failsafe", "wp_num"]
  13477. fieldtypes = ["uint8_t", "uint32_t", "uint8_t", "int16_t", "int16_t", "uint16_t", "int8_t", "int16_t", "int32_t", "int32_t", "int16_t", "int16_t", "uint8_t", "uint8_t", "uint8_t", "int8_t", "uint8_t", "uint8_t", "uint8_t", "int8_t", "int8_t", "uint8_t", "uint8_t", "uint16_t"]
  13478. fielddisplays_by_name: Dict[str, str] = {"base_mode": "bitmask", "custom_mode": "bitmask"}
  13479. fieldenums_by_name: Dict[str, str] = {"base_mode": "MAV_MODE_FLAG", "landed_state": "MAV_LANDED_STATE", "gps_fix_type": "GPS_FIX_TYPE"}
  13480. fieldunits_by_name: Dict[str, str] = {"roll": "cdeg", "pitch": "cdeg", "heading": "cdeg", "throttle": "%", "heading_sp": "cdeg", "latitude": "degE7", "longitude": "degE7", "altitude_amsl": "m", "altitude_sp": "m", "airspeed": "m/s", "airspeed_sp": "m/s", "groundspeed": "m/s", "climb_rate": "m/s", "battery_remaining": "%", "temperature": "degC", "temperature_air": "degC", "wp_distance": "m"}
  13481. native_format = bytearray(b"<IiihhHhhhHBBbBBBbBBBbbBB")
  13482. orders = [10, 0, 11, 3, 4, 5, 12, 6, 1, 2, 7, 8, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 9]
  13483. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  13484. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  13485. crc_extra = 150
  13486. unpacker = struct.Struct("<IiihhHhhhHBBbBBBbBBBbbBB")
  13487. instance_field = None
  13488. instance_offset = -1
  13489. def __init__(self, base_mode: int, custom_mode: int, landed_state: int, roll: int, pitch: int, heading: int, throttle: int, heading_sp: int, latitude: int, longitude: int, altitude_amsl: int, altitude_sp: int, airspeed: int, airspeed_sp: int, groundspeed: int, climb_rate: int, gps_nsat: int, gps_fix_type: int, battery_remaining: int, temperature: int, temperature_air: int, failsafe: int, wp_num: int, wp_distance: int):
  13490. MAVLink_message.__init__(self, MAVLink_high_latency_message.id, MAVLink_high_latency_message.msgname)
  13491. self._fieldnames = MAVLink_high_latency_message.fieldnames
  13492. self._instance_field = MAVLink_high_latency_message.instance_field
  13493. self._instance_offset = MAVLink_high_latency_message.instance_offset
  13494. self.base_mode = base_mode
  13495. self.custom_mode = custom_mode
  13496. self.landed_state = landed_state
  13497. self.roll = roll
  13498. self.pitch = pitch
  13499. self.heading = heading
  13500. self.throttle = throttle
  13501. self.heading_sp = heading_sp
  13502. self.latitude = latitude
  13503. self.longitude = longitude
  13504. self.altitude_amsl = altitude_amsl
  13505. self.altitude_sp = altitude_sp
  13506. self.airspeed = airspeed
  13507. self.airspeed_sp = airspeed_sp
  13508. self.groundspeed = groundspeed
  13509. self.climb_rate = climb_rate
  13510. self.gps_nsat = gps_nsat
  13511. self.gps_fix_type = gps_fix_type
  13512. self.battery_remaining = battery_remaining
  13513. self.temperature = temperature
  13514. self.temperature_air = temperature_air
  13515. self.failsafe = failsafe
  13516. self.wp_num = wp_num
  13517. self.wp_distance = wp_distance
  13518. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13519. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.custom_mode, self.latitude, self.longitude, self.roll, self.pitch, self.heading, self.heading_sp, self.altitude_amsl, self.altitude_sp, self.wp_distance, self.base_mode, self.landed_state, self.throttle, self.airspeed, self.airspeed_sp, self.groundspeed, self.climb_rate, self.gps_nsat, self.gps_fix_type, self.battery_remaining, self.temperature, self.temperature_air, self.failsafe, self.wp_num), force_mavlink1=force_mavlink1)
  13520. # Define name on the class for backwards compatibility (it is now msgname).
  13521. # Done with setattr to hide the class variable from mypy.
  13522. setattr(MAVLink_high_latency_message, "name", mavlink_msg_deprecated_name_property())
  13523. class MAVLink_high_latency2_message(MAVLink_message):
  13524. """
  13525. Message appropriate for high latency connections like Iridium
  13526. (version 2)
  13527. """
  13528. id = MAVLINK_MSG_ID_HIGH_LATENCY2
  13529. msgname = "HIGH_LATENCY2"
  13530. fieldnames = ["timestamp", "type", "autopilot", "custom_mode", "latitude", "longitude", "altitude", "target_altitude", "heading", "target_heading", "target_distance", "throttle", "airspeed", "airspeed_sp", "groundspeed", "windspeed", "wind_heading", "eph", "epv", "temperature_air", "climb_rate", "battery", "wp_num", "failure_flags", "custom0", "custom1", "custom2"]
  13531. ordered_fieldnames = ["timestamp", "latitude", "longitude", "custom_mode", "altitude", "target_altitude", "target_distance", "wp_num", "failure_flags", "type", "autopilot", "heading", "target_heading", "throttle", "airspeed", "airspeed_sp", "groundspeed", "windspeed", "wind_heading", "eph", "epv", "temperature_air", "climb_rate", "battery", "custom0", "custom1", "custom2"]
  13532. fieldtypes = ["uint32_t", "uint8_t", "uint8_t", "uint16_t", "int32_t", "int32_t", "int16_t", "int16_t", "uint8_t", "uint8_t", "uint16_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "int8_t", "int8_t", "int8_t", "uint16_t", "uint16_t", "int8_t", "int8_t", "int8_t"]
  13533. fielddisplays_by_name: Dict[str, str] = {"custom_mode": "bitmask", "failure_flags": "bitmask"}
  13534. fieldenums_by_name: Dict[str, str] = {"type": "MAV_TYPE", "autopilot": "MAV_AUTOPILOT", "failure_flags": "HL_FAILURE_FLAG"}
  13535. fieldunits_by_name: Dict[str, str] = {"timestamp": "ms", "latitude": "degE7", "longitude": "degE7", "altitude": "m", "target_altitude": "m", "heading": "deg/2", "target_heading": "deg/2", "target_distance": "dam", "throttle": "%", "airspeed": "m/s*5", "airspeed_sp": "m/s*5", "groundspeed": "m/s*5", "windspeed": "m/s*5", "wind_heading": "deg/2", "eph": "dm", "epv": "dm", "temperature_air": "degC", "climb_rate": "dm/s", "battery": "%"}
  13536. native_format = bytearray(b"<IiiHhhHHHBBBBBBBBBBBBbbbbbb")
  13537. orders = [0, 9, 10, 3, 1, 2, 4, 5, 11, 12, 6, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 7, 8, 24, 25, 26]
  13538. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  13539. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  13540. crc_extra = 179
  13541. unpacker = struct.Struct("<IiiHhhHHHBBBBBBBBBBBBbbbbbb")
  13542. instance_field = None
  13543. instance_offset = -1
  13544. def __init__(self, timestamp: int, type: int, autopilot: int, custom_mode: int, latitude: int, longitude: int, altitude: int, target_altitude: int, heading: int, target_heading: int, target_distance: int, throttle: int, airspeed: int, airspeed_sp: int, groundspeed: int, windspeed: int, wind_heading: int, eph: int, epv: int, temperature_air: int, climb_rate: int, battery: int, wp_num: int, failure_flags: int, custom0: int, custom1: int, custom2: int):
  13545. MAVLink_message.__init__(self, MAVLink_high_latency2_message.id, MAVLink_high_latency2_message.msgname)
  13546. self._fieldnames = MAVLink_high_latency2_message.fieldnames
  13547. self._instance_field = MAVLink_high_latency2_message.instance_field
  13548. self._instance_offset = MAVLink_high_latency2_message.instance_offset
  13549. self.timestamp = timestamp
  13550. self.type = type
  13551. self.autopilot = autopilot
  13552. self.custom_mode = custom_mode
  13553. self.latitude = latitude
  13554. self.longitude = longitude
  13555. self.altitude = altitude
  13556. self.target_altitude = target_altitude
  13557. self.heading = heading
  13558. self.target_heading = target_heading
  13559. self.target_distance = target_distance
  13560. self.throttle = throttle
  13561. self.airspeed = airspeed
  13562. self.airspeed_sp = airspeed_sp
  13563. self.groundspeed = groundspeed
  13564. self.windspeed = windspeed
  13565. self.wind_heading = wind_heading
  13566. self.eph = eph
  13567. self.epv = epv
  13568. self.temperature_air = temperature_air
  13569. self.climb_rate = climb_rate
  13570. self.battery = battery
  13571. self.wp_num = wp_num
  13572. self.failure_flags = failure_flags
  13573. self.custom0 = custom0
  13574. self.custom1 = custom1
  13575. self.custom2 = custom2
  13576. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13577. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.timestamp, self.latitude, self.longitude, self.custom_mode, self.altitude, self.target_altitude, self.target_distance, self.wp_num, self.failure_flags, self.type, self.autopilot, self.heading, self.target_heading, self.throttle, self.airspeed, self.airspeed_sp, self.groundspeed, self.windspeed, self.wind_heading, self.eph, self.epv, self.temperature_air, self.climb_rate, self.battery, self.custom0, self.custom1, self.custom2), force_mavlink1=force_mavlink1)
  13578. # Define name on the class for backwards compatibility (it is now msgname).
  13579. # Done with setattr to hide the class variable from mypy.
  13580. setattr(MAVLink_high_latency2_message, "name", mavlink_msg_deprecated_name_property())
  13581. class MAVLink_vibration_message(MAVLink_message):
  13582. """
  13583. Vibration levels and accelerometer clipping
  13584. """
  13585. id = MAVLINK_MSG_ID_VIBRATION
  13586. msgname = "VIBRATION"
  13587. fieldnames = ["time_usec", "vibration_x", "vibration_y", "vibration_z", "clipping_0", "clipping_1", "clipping_2"]
  13588. ordered_fieldnames = ["time_usec", "vibration_x", "vibration_y", "vibration_z", "clipping_0", "clipping_1", "clipping_2"]
  13589. fieldtypes = ["uint64_t", "float", "float", "float", "uint32_t", "uint32_t", "uint32_t"]
  13590. fielddisplays_by_name: Dict[str, str] = {}
  13591. fieldenums_by_name: Dict[str, str] = {}
  13592. fieldunits_by_name: Dict[str, str] = {"time_usec": "us"}
  13593. native_format = bytearray(b"<QfffIII")
  13594. orders = [0, 1, 2, 3, 4, 5, 6]
  13595. lengths = [1, 1, 1, 1, 1, 1, 1]
  13596. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  13597. crc_extra = 90
  13598. unpacker = struct.Struct("<QfffIII")
  13599. instance_field = None
  13600. instance_offset = -1
  13601. def __init__(self, time_usec: int, vibration_x: float, vibration_y: float, vibration_z: float, clipping_0: int, clipping_1: int, clipping_2: int):
  13602. MAVLink_message.__init__(self, MAVLink_vibration_message.id, MAVLink_vibration_message.msgname)
  13603. self._fieldnames = MAVLink_vibration_message.fieldnames
  13604. self._instance_field = MAVLink_vibration_message.instance_field
  13605. self._instance_offset = MAVLink_vibration_message.instance_offset
  13606. self.time_usec = time_usec
  13607. self.vibration_x = vibration_x
  13608. self.vibration_y = vibration_y
  13609. self.vibration_z = vibration_z
  13610. self.clipping_0 = clipping_0
  13611. self.clipping_1 = clipping_1
  13612. self.clipping_2 = clipping_2
  13613. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13614. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.vibration_x, self.vibration_y, self.vibration_z, self.clipping_0, self.clipping_1, self.clipping_2), force_mavlink1=force_mavlink1)
  13615. # Define name on the class for backwards compatibility (it is now msgname).
  13616. # Done with setattr to hide the class variable from mypy.
  13617. setattr(MAVLink_vibration_message, "name", mavlink_msg_deprecated_name_property())
  13618. class MAVLink_home_position_message(MAVLink_message):
  13619. """
  13620. Contains the home position. The home position is the
  13621. default position that the system will return to and land on.
  13622. The position must be set automatically by the system during the
  13623. takeoff, and may also be explicitly set using MAV_CMD_DO_SET_HOME.
  13624. The global and local positions encode the position in the
  13625. respective coordinate frames, while the q parameter encodes the
  13626. orientation of the surface. Under normal conditions it
  13627. describes the heading and terrain slope, which can be used by the
  13628. aircraft to adjust the approach. The approach 3D vector
  13629. describes the point to which the system should fly in normal
  13630. flight mode and then perform a landing sequence along the vector.
  13631. Note: this message can be requested by sending the
  13632. MAV_CMD_REQUEST_MESSAGE with param1=242 (or the deprecated
  13633. MAV_CMD_GET_HOME_POSITION command).
  13634. """
  13635. id = MAVLINK_MSG_ID_HOME_POSITION
  13636. msgname = "HOME_POSITION"
  13637. fieldnames = ["latitude", "longitude", "altitude", "x", "y", "z", "q", "approach_x", "approach_y", "approach_z", "time_usec"]
  13638. ordered_fieldnames = ["latitude", "longitude", "altitude", "x", "y", "z", "q", "approach_x", "approach_y", "approach_z", "time_usec"]
  13639. fieldtypes = ["int32_t", "int32_t", "int32_t", "float", "float", "float", "float", "float", "float", "float", "uint64_t"]
  13640. fielddisplays_by_name: Dict[str, str] = {}
  13641. fieldenums_by_name: Dict[str, str] = {}
  13642. fieldunits_by_name: Dict[str, str] = {"latitude": "degE7", "longitude": "degE7", "altitude": "mm", "x": "m", "y": "m", "z": "m", "approach_x": "m", "approach_y": "m", "approach_z": "m", "time_usec": "us"}
  13643. native_format = bytearray(b"<iiifffffffQ")
  13644. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
  13645. lengths = [1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1]
  13646. array_lengths = [0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0]
  13647. crc_extra = 104
  13648. unpacker = struct.Struct("<iiifff4ffffQ")
  13649. instance_field = None
  13650. instance_offset = -1
  13651. def __init__(self, latitude: int, longitude: int, altitude: int, x: float, y: float, z: float, q: Sequence[float], approach_x: float, approach_y: float, approach_z: float, time_usec: int = 0):
  13652. MAVLink_message.__init__(self, MAVLink_home_position_message.id, MAVLink_home_position_message.msgname)
  13653. self._fieldnames = MAVLink_home_position_message.fieldnames
  13654. self._instance_field = MAVLink_home_position_message.instance_field
  13655. self._instance_offset = MAVLink_home_position_message.instance_offset
  13656. self.latitude = latitude
  13657. self.longitude = longitude
  13658. self.altitude = altitude
  13659. self.x = x
  13660. self.y = y
  13661. self.z = z
  13662. self.q = q
  13663. self.approach_x = approach_x
  13664. self.approach_y = approach_y
  13665. self.approach_z = approach_z
  13666. self.time_usec = time_usec
  13667. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13668. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.latitude, self.longitude, self.altitude, self.x, self.y, self.z, self.q[0], self.q[1], self.q[2], self.q[3], self.approach_x, self.approach_y, self.approach_z, self.time_usec), force_mavlink1=force_mavlink1)
  13669. # Define name on the class for backwards compatibility (it is now msgname).
  13670. # Done with setattr to hide the class variable from mypy.
  13671. setattr(MAVLink_home_position_message, "name", mavlink_msg_deprecated_name_property())
  13672. class MAVLink_set_home_position_message(MAVLink_message):
  13673. """
  13674. Sets the home position. The home position is the default
  13675. position that the system will return to and land on. The
  13676. position is set automatically by the system during the takeoff
  13677. (and may also be set using this message). The global and
  13678. local positions encode the position in the respective coordinate
  13679. frames, while the q parameter encodes the orientation of the
  13680. surface. Under normal conditions it describes the heading
  13681. and terrain slope, which can be used by the aircraft to adjust the
  13682. approach. The approach 3D vector describes the point to
  13683. which the system should fly in normal flight mode and then perform
  13684. a landing sequence along the vector. Note: the current
  13685. home position may be emitted in a HOME_POSITION message on request
  13686. (using MAV_CMD_REQUEST_MESSAGE with param1=242).
  13687. """
  13688. id = MAVLINK_MSG_ID_SET_HOME_POSITION
  13689. msgname = "SET_HOME_POSITION"
  13690. fieldnames = ["target_system", "latitude", "longitude", "altitude", "x", "y", "z", "q", "approach_x", "approach_y", "approach_z", "time_usec"]
  13691. ordered_fieldnames = ["latitude", "longitude", "altitude", "x", "y", "z", "q", "approach_x", "approach_y", "approach_z", "target_system", "time_usec"]
  13692. fieldtypes = ["uint8_t", "int32_t", "int32_t", "int32_t", "float", "float", "float", "float", "float", "float", "float", "uint64_t"]
  13693. fielddisplays_by_name: Dict[str, str] = {}
  13694. fieldenums_by_name: Dict[str, str] = {}
  13695. fieldunits_by_name: Dict[str, str] = {"latitude": "degE7", "longitude": "degE7", "altitude": "mm", "x": "m", "y": "m", "z": "m", "approach_x": "m", "approach_y": "m", "approach_z": "m", "time_usec": "us"}
  13696. native_format = bytearray(b"<iiifffffffBQ")
  13697. orders = [10, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11]
  13698. lengths = [1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1]
  13699. array_lengths = [0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0]
  13700. crc_extra = 85
  13701. unpacker = struct.Struct("<iiifff4ffffBQ")
  13702. instance_field = None
  13703. instance_offset = -1
  13704. def __init__(self, target_system: int, latitude: int, longitude: int, altitude: int, x: float, y: float, z: float, q: Sequence[float], approach_x: float, approach_y: float, approach_z: float, time_usec: int = 0):
  13705. MAVLink_message.__init__(self, MAVLink_set_home_position_message.id, MAVLink_set_home_position_message.msgname)
  13706. self._fieldnames = MAVLink_set_home_position_message.fieldnames
  13707. self._instance_field = MAVLink_set_home_position_message.instance_field
  13708. self._instance_offset = MAVLink_set_home_position_message.instance_offset
  13709. self.target_system = target_system
  13710. self.latitude = latitude
  13711. self.longitude = longitude
  13712. self.altitude = altitude
  13713. self.x = x
  13714. self.y = y
  13715. self.z = z
  13716. self.q = q
  13717. self.approach_x = approach_x
  13718. self.approach_y = approach_y
  13719. self.approach_z = approach_z
  13720. self.time_usec = time_usec
  13721. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13722. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.latitude, self.longitude, self.altitude, self.x, self.y, self.z, self.q[0], self.q[1], self.q[2], self.q[3], self.approach_x, self.approach_y, self.approach_z, self.target_system, self.time_usec), force_mavlink1=force_mavlink1)
  13723. # Define name on the class for backwards compatibility (it is now msgname).
  13724. # Done with setattr to hide the class variable from mypy.
  13725. setattr(MAVLink_set_home_position_message, "name", mavlink_msg_deprecated_name_property())
  13726. class MAVLink_message_interval_message(MAVLink_message):
  13727. """
  13728. The interval between messages for a particular MAVLink message ID.
  13729. This message is sent in response to the MAV_CMD_REQUEST_MESSAGE
  13730. command with param1=244 (this message) and param2=message_id (the
  13731. id of the message for which the interval is required). It
  13732. may also be sent in response to MAV_CMD_GET_MESSAGE_INTERVAL.
  13733. This interface replaces DATA_STREAM.
  13734. """
  13735. id = MAVLINK_MSG_ID_MESSAGE_INTERVAL
  13736. msgname = "MESSAGE_INTERVAL"
  13737. fieldnames = ["message_id", "interval_us"]
  13738. ordered_fieldnames = ["interval_us", "message_id"]
  13739. fieldtypes = ["uint16_t", "int32_t"]
  13740. fielddisplays_by_name: Dict[str, str] = {}
  13741. fieldenums_by_name: Dict[str, str] = {}
  13742. fieldunits_by_name: Dict[str, str] = {"interval_us": "us"}
  13743. native_format = bytearray(b"<iH")
  13744. orders = [1, 0]
  13745. lengths = [1, 1]
  13746. array_lengths = [0, 0]
  13747. crc_extra = 95
  13748. unpacker = struct.Struct("<iH")
  13749. instance_field = None
  13750. instance_offset = -1
  13751. def __init__(self, message_id: int, interval_us: int):
  13752. MAVLink_message.__init__(self, MAVLink_message_interval_message.id, MAVLink_message_interval_message.msgname)
  13753. self._fieldnames = MAVLink_message_interval_message.fieldnames
  13754. self._instance_field = MAVLink_message_interval_message.instance_field
  13755. self._instance_offset = MAVLink_message_interval_message.instance_offset
  13756. self.message_id = message_id
  13757. self.interval_us = interval_us
  13758. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13759. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.interval_us, self.message_id), force_mavlink1=force_mavlink1)
  13760. # Define name on the class for backwards compatibility (it is now msgname).
  13761. # Done with setattr to hide the class variable from mypy.
  13762. setattr(MAVLink_message_interval_message, "name", mavlink_msg_deprecated_name_property())
  13763. class MAVLink_extended_sys_state_message(MAVLink_message):
  13764. """
  13765. Provides state for additional features
  13766. """
  13767. id = MAVLINK_MSG_ID_EXTENDED_SYS_STATE
  13768. msgname = "EXTENDED_SYS_STATE"
  13769. fieldnames = ["vtol_state", "landed_state"]
  13770. ordered_fieldnames = ["vtol_state", "landed_state"]
  13771. fieldtypes = ["uint8_t", "uint8_t"]
  13772. fielddisplays_by_name: Dict[str, str] = {}
  13773. fieldenums_by_name: Dict[str, str] = {"vtol_state": "MAV_VTOL_STATE", "landed_state": "MAV_LANDED_STATE"}
  13774. fieldunits_by_name: Dict[str, str] = {}
  13775. native_format = bytearray(b"<BB")
  13776. orders = [0, 1]
  13777. lengths = [1, 1]
  13778. array_lengths = [0, 0]
  13779. crc_extra = 130
  13780. unpacker = struct.Struct("<BB")
  13781. instance_field = None
  13782. instance_offset = -1
  13783. def __init__(self, vtol_state: int, landed_state: int):
  13784. MAVLink_message.__init__(self, MAVLink_extended_sys_state_message.id, MAVLink_extended_sys_state_message.msgname)
  13785. self._fieldnames = MAVLink_extended_sys_state_message.fieldnames
  13786. self._instance_field = MAVLink_extended_sys_state_message.instance_field
  13787. self._instance_offset = MAVLink_extended_sys_state_message.instance_offset
  13788. self.vtol_state = vtol_state
  13789. self.landed_state = landed_state
  13790. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13791. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.vtol_state, self.landed_state), force_mavlink1=force_mavlink1)
  13792. # Define name on the class for backwards compatibility (it is now msgname).
  13793. # Done with setattr to hide the class variable from mypy.
  13794. setattr(MAVLink_extended_sys_state_message, "name", mavlink_msg_deprecated_name_property())
  13795. class MAVLink_adsb_vehicle_message(MAVLink_message):
  13796. """
  13797. The location and information of an ADSB vehicle
  13798. """
  13799. id = MAVLINK_MSG_ID_ADSB_VEHICLE
  13800. msgname = "ADSB_VEHICLE"
  13801. fieldnames = ["ICAO_address", "lat", "lon", "altitude_type", "altitude", "heading", "hor_velocity", "ver_velocity", "callsign", "emitter_type", "tslc", "flags", "squawk"]
  13802. ordered_fieldnames = ["ICAO_address", "lat", "lon", "altitude", "heading", "hor_velocity", "ver_velocity", "flags", "squawk", "altitude_type", "callsign", "emitter_type", "tslc"]
  13803. fieldtypes = ["uint32_t", "int32_t", "int32_t", "uint8_t", "int32_t", "uint16_t", "uint16_t", "int16_t", "char", "uint8_t", "uint8_t", "uint16_t", "uint16_t"]
  13804. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  13805. fieldenums_by_name: Dict[str, str] = {"altitude_type": "ADSB_ALTITUDE_TYPE", "emitter_type": "ADSB_EMITTER_TYPE", "flags": "ADSB_FLAGS"}
  13806. fieldunits_by_name: Dict[str, str] = {"lat": "degE7", "lon": "degE7", "altitude": "mm", "heading": "cdeg", "hor_velocity": "cm/s", "ver_velocity": "cm/s", "tslc": "s"}
  13807. native_format = bytearray(b"<IiiiHHhHHBcBB")
  13808. orders = [0, 1, 2, 9, 3, 4, 5, 6, 10, 11, 12, 7, 8]
  13809. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  13810. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0]
  13811. crc_extra = 184
  13812. unpacker = struct.Struct("<IiiiHHhHHB9sBB")
  13813. instance_field = None
  13814. instance_offset = -1
  13815. def __init__(self, ICAO_address: int, lat: int, lon: int, altitude_type: int, altitude: int, heading: int, hor_velocity: int, ver_velocity: int, callsign: bytes, emitter_type: int, tslc: int, flags: int, squawk: int):
  13816. MAVLink_message.__init__(self, MAVLink_adsb_vehicle_message.id, MAVLink_adsb_vehicle_message.msgname)
  13817. self._fieldnames = MAVLink_adsb_vehicle_message.fieldnames
  13818. self._instance_field = MAVLink_adsb_vehicle_message.instance_field
  13819. self._instance_offset = MAVLink_adsb_vehicle_message.instance_offset
  13820. self.ICAO_address = ICAO_address
  13821. self.lat = lat
  13822. self.lon = lon
  13823. self.altitude_type = altitude_type
  13824. self.altitude = altitude
  13825. self.heading = heading
  13826. self.hor_velocity = hor_velocity
  13827. self.ver_velocity = ver_velocity
  13828. self._callsign_raw = callsign
  13829. self.callsign = callsign.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  13830. self.emitter_type = emitter_type
  13831. self.tslc = tslc
  13832. self.flags = flags
  13833. self.squawk = squawk
  13834. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13835. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.ICAO_address, self.lat, self.lon, self.altitude, self.heading, self.hor_velocity, self.ver_velocity, self.flags, self.squawk, self.altitude_type, self._callsign_raw, self.emitter_type, self.tslc), force_mavlink1=force_mavlink1)
  13836. # Define name on the class for backwards compatibility (it is now msgname).
  13837. # Done with setattr to hide the class variable from mypy.
  13838. setattr(MAVLink_adsb_vehicle_message, "name", mavlink_msg_deprecated_name_property())
  13839. class MAVLink_collision_message(MAVLink_message):
  13840. """
  13841. Information about a potential collision
  13842. """
  13843. id = MAVLINK_MSG_ID_COLLISION
  13844. msgname = "COLLISION"
  13845. fieldnames = ["src", "id", "action", "threat_level", "time_to_minimum_delta", "altitude_minimum_delta", "horizontal_minimum_delta"]
  13846. ordered_fieldnames = ["id", "time_to_minimum_delta", "altitude_minimum_delta", "horizontal_minimum_delta", "src", "action", "threat_level"]
  13847. fieldtypes = ["uint8_t", "uint32_t", "uint8_t", "uint8_t", "float", "float", "float"]
  13848. fielddisplays_by_name: Dict[str, str] = {}
  13849. fieldenums_by_name: Dict[str, str] = {"src": "MAV_COLLISION_SRC", "action": "MAV_COLLISION_ACTION", "threat_level": "MAV_COLLISION_THREAT_LEVEL"}
  13850. fieldunits_by_name: Dict[str, str] = {"time_to_minimum_delta": "s", "altitude_minimum_delta": "m", "horizontal_minimum_delta": "m"}
  13851. native_format = bytearray(b"<IfffBBB")
  13852. orders = [4, 0, 5, 6, 1, 2, 3]
  13853. lengths = [1, 1, 1, 1, 1, 1, 1]
  13854. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  13855. crc_extra = 81
  13856. unpacker = struct.Struct("<IfffBBB")
  13857. instance_field = None
  13858. instance_offset = -1
  13859. def __init__(self, src: int, id: int, action: int, threat_level: int, time_to_minimum_delta: float, altitude_minimum_delta: float, horizontal_minimum_delta: float):
  13860. MAVLink_message.__init__(self, MAVLink_collision_message.id, MAVLink_collision_message.msgname)
  13861. self._fieldnames = MAVLink_collision_message.fieldnames
  13862. self._instance_field = MAVLink_collision_message.instance_field
  13863. self._instance_offset = MAVLink_collision_message.instance_offset
  13864. self.src = src
  13865. self.id = id
  13866. self.action = action
  13867. self.threat_level = threat_level
  13868. self.time_to_minimum_delta = time_to_minimum_delta
  13869. self.altitude_minimum_delta = altitude_minimum_delta
  13870. self.horizontal_minimum_delta = horizontal_minimum_delta
  13871. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13872. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.id, self.time_to_minimum_delta, self.altitude_minimum_delta, self.horizontal_minimum_delta, self.src, self.action, self.threat_level), force_mavlink1=force_mavlink1)
  13873. # Define name on the class for backwards compatibility (it is now msgname).
  13874. # Done with setattr to hide the class variable from mypy.
  13875. setattr(MAVLink_collision_message, "name", mavlink_msg_deprecated_name_property())
  13876. class MAVLink_v2_extension_message(MAVLink_message):
  13877. """
  13878. Message implementing parts of the V2 payload specs in V1 frames
  13879. for transitional support.
  13880. """
  13881. id = MAVLINK_MSG_ID_V2_EXTENSION
  13882. msgname = "V2_EXTENSION"
  13883. fieldnames = ["target_network", "target_system", "target_component", "message_type", "payload"]
  13884. ordered_fieldnames = ["message_type", "target_network", "target_system", "target_component", "payload"]
  13885. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint16_t", "uint8_t"]
  13886. fielddisplays_by_name: Dict[str, str] = {}
  13887. fieldenums_by_name: Dict[str, str] = {}
  13888. fieldunits_by_name: Dict[str, str] = {}
  13889. native_format = bytearray(b"<HBBBB")
  13890. orders = [1, 2, 3, 0, 4]
  13891. lengths = [1, 1, 1, 1, 249]
  13892. array_lengths = [0, 0, 0, 0, 249]
  13893. crc_extra = 8
  13894. unpacker = struct.Struct("<HBBB249B")
  13895. instance_field = None
  13896. instance_offset = -1
  13897. def __init__(self, target_network: int, target_system: int, target_component: int, message_type: int, payload: Sequence[int]):
  13898. MAVLink_message.__init__(self, MAVLink_v2_extension_message.id, MAVLink_v2_extension_message.msgname)
  13899. self._fieldnames = MAVLink_v2_extension_message.fieldnames
  13900. self._instance_field = MAVLink_v2_extension_message.instance_field
  13901. self._instance_offset = MAVLink_v2_extension_message.instance_offset
  13902. self.target_network = target_network
  13903. self.target_system = target_system
  13904. self.target_component = target_component
  13905. self.message_type = message_type
  13906. self.payload = payload
  13907. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13908. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.message_type, self.target_network, self.target_system, self.target_component, self.payload[0], self.payload[1], self.payload[2], self.payload[3], self.payload[4], self.payload[5], self.payload[6], self.payload[7], self.payload[8], self.payload[9], self.payload[10], self.payload[11], self.payload[12], self.payload[13], self.payload[14], self.payload[15], self.payload[16], self.payload[17], self.payload[18], self.payload[19], self.payload[20], self.payload[21], self.payload[22], self.payload[23], self.payload[24], self.payload[25], self.payload[26], self.payload[27], self.payload[28], self.payload[29], self.payload[30], self.payload[31], self.payload[32], self.payload[33], self.payload[34], self.payload[35], self.payload[36], self.payload[37], self.payload[38], self.payload[39], self.payload[40], self.payload[41], self.payload[42], self.payload[43], self.payload[44], self.payload[45], self.payload[46], self.payload[47], self.payload[48], self.payload[49], self.payload[50], self.payload[51], self.payload[52], self.payload[53], self.payload[54], self.payload[55], self.payload[56], self.payload[57], self.payload[58], self.payload[59], self.payload[60], self.payload[61], self.payload[62], self.payload[63], self.payload[64], self.payload[65], self.payload[66], self.payload[67], self.payload[68], self.payload[69], self.payload[70], self.payload[71], self.payload[72], self.payload[73], self.payload[74], self.payload[75], self.payload[76], self.payload[77], self.payload[78], self.payload[79], self.payload[80], self.payload[81], self.payload[82], self.payload[83], self.payload[84], self.payload[85], self.payload[86], self.payload[87], self.payload[88], self.payload[89], self.payload[90], self.payload[91], self.payload[92], self.payload[93], self.payload[94], self.payload[95], self.payload[96], self.payload[97], self.payload[98], self.payload[99], self.payload[100], self.payload[101], self.payload[102], self.payload[103], self.payload[104], self.payload[105], self.payload[106], self.payload[107], self.payload[108], self.payload[109], self.payload[110], self.payload[111], self.payload[112], self.payload[113], self.payload[114], self.payload[115], self.payload[116], self.payload[117], self.payload[118], self.payload[119], self.payload[120], self.payload[121], self.payload[122], self.payload[123], self.payload[124], self.payload[125], self.payload[126], self.payload[127], self.payload[128], self.payload[129], self.payload[130], self.payload[131], self.payload[132], self.payload[133], self.payload[134], self.payload[135], self.payload[136], self.payload[137], self.payload[138], self.payload[139], self.payload[140], self.payload[141], self.payload[142], self.payload[143], self.payload[144], self.payload[145], self.payload[146], self.payload[147], self.payload[148], self.payload[149], self.payload[150], self.payload[151], self.payload[152], self.payload[153], self.payload[154], self.payload[155], self.payload[156], self.payload[157], self.payload[158], self.payload[159], self.payload[160], self.payload[161], self.payload[162], self.payload[163], self.payload[164], self.payload[165], self.payload[166], self.payload[167], self.payload[168], self.payload[169], self.payload[170], self.payload[171], self.payload[172], self.payload[173], self.payload[174], self.payload[175], self.payload[176], self.payload[177], self.payload[178], self.payload[179], self.payload[180], self.payload[181], self.payload[182], self.payload[183], self.payload[184], self.payload[185], self.payload[186], self.payload[187], self.payload[188], self.payload[189], self.payload[190], self.payload[191], self.payload[192], self.payload[193], self.payload[194], self.payload[195], self.payload[196], self.payload[197], self.payload[198], self.payload[199], self.payload[200], self.payload[201], self.payload[202], self.payload[203], self.payload[204], self.payload[205], self.payload[206], self.payload[207], self.payload[208], self.payload[209], self.payload[210], self.payload[211], self.payload[212], self.payload[213], self.payload[214], self.payload[215], self.payload[216], self.payload[217], self.payload[218], self.payload[219], self.payload[220], self.payload[221], self.payload[222], self.payload[223], self.payload[224], self.payload[225], self.payload[226], self.payload[227], self.payload[228], self.payload[229], self.payload[230], self.payload[231], self.payload[232], self.payload[233], self.payload[234], self.payload[235], self.payload[236], self.payload[237], self.payload[238], self.payload[239], self.payload[240], self.payload[241], self.payload[242], self.payload[243], self.payload[244], self.payload[245], self.payload[246], self.payload[247], self.payload[248]), force_mavlink1=force_mavlink1)
  13909. # Define name on the class for backwards compatibility (it is now msgname).
  13910. # Done with setattr to hide the class variable from mypy.
  13911. setattr(MAVLink_v2_extension_message, "name", mavlink_msg_deprecated_name_property())
  13912. class MAVLink_memory_vect_message(MAVLink_message):
  13913. """
  13914. Send raw controller memory. The use of this message is discouraged
  13915. for normal packets, but a quite efficient way for testing new
  13916. messages and getting experimental debug output.
  13917. """
  13918. id = MAVLINK_MSG_ID_MEMORY_VECT
  13919. msgname = "MEMORY_VECT"
  13920. fieldnames = ["address", "ver", "type", "value"]
  13921. ordered_fieldnames = ["address", "ver", "type", "value"]
  13922. fieldtypes = ["uint16_t", "uint8_t", "uint8_t", "int8_t"]
  13923. fielddisplays_by_name: Dict[str, str] = {}
  13924. fieldenums_by_name: Dict[str, str] = {}
  13925. fieldunits_by_name: Dict[str, str] = {}
  13926. native_format = bytearray(b"<HBBb")
  13927. orders = [0, 1, 2, 3]
  13928. lengths = [1, 1, 1, 32]
  13929. array_lengths = [0, 0, 0, 32]
  13930. crc_extra = 204
  13931. unpacker = struct.Struct("<HBB32b")
  13932. instance_field = None
  13933. instance_offset = -1
  13934. def __init__(self, address: int, ver: int, type: int, value: Sequence[int]):
  13935. MAVLink_message.__init__(self, MAVLink_memory_vect_message.id, MAVLink_memory_vect_message.msgname)
  13936. self._fieldnames = MAVLink_memory_vect_message.fieldnames
  13937. self._instance_field = MAVLink_memory_vect_message.instance_field
  13938. self._instance_offset = MAVLink_memory_vect_message.instance_offset
  13939. self.address = address
  13940. self.ver = ver
  13941. self.type = type
  13942. self.value = value
  13943. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13944. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.address, self.ver, self.type, self.value[0], self.value[1], self.value[2], self.value[3], self.value[4], self.value[5], self.value[6], self.value[7], self.value[8], self.value[9], self.value[10], self.value[11], self.value[12], self.value[13], self.value[14], self.value[15], self.value[16], self.value[17], self.value[18], self.value[19], self.value[20], self.value[21], self.value[22], self.value[23], self.value[24], self.value[25], self.value[26], self.value[27], self.value[28], self.value[29], self.value[30], self.value[31]), force_mavlink1=force_mavlink1)
  13945. # Define name on the class for backwards compatibility (it is now msgname).
  13946. # Done with setattr to hide the class variable from mypy.
  13947. setattr(MAVLink_memory_vect_message, "name", mavlink_msg_deprecated_name_property())
  13948. class MAVLink_debug_vect_message(MAVLink_message):
  13949. """
  13950. To debug something using a named 3D vector.
  13951. """
  13952. id = MAVLINK_MSG_ID_DEBUG_VECT
  13953. msgname = "DEBUG_VECT"
  13954. fieldnames = ["name", "time_usec", "x", "y", "z"]
  13955. ordered_fieldnames = ["time_usec", "x", "y", "z", "name"]
  13956. fieldtypes = ["char", "uint64_t", "float", "float", "float"]
  13957. fielddisplays_by_name: Dict[str, str] = {}
  13958. fieldenums_by_name: Dict[str, str] = {}
  13959. fieldunits_by_name: Dict[str, str] = {"time_usec": "us"}
  13960. native_format = bytearray(b"<Qfffc")
  13961. orders = [4, 0, 1, 2, 3]
  13962. lengths = [1, 1, 1, 1, 1]
  13963. array_lengths = [0, 0, 0, 0, 10]
  13964. crc_extra = 49
  13965. unpacker = struct.Struct("<Qfff10s")
  13966. instance_field = "name"
  13967. instance_offset = 20
  13968. def __init__(self, name: bytes, time_usec: int, x: float, y: float, z: float):
  13969. MAVLink_message.__init__(self, MAVLink_debug_vect_message.id, MAVLink_debug_vect_message.msgname)
  13970. self._fieldnames = MAVLink_debug_vect_message.fieldnames
  13971. self._instance_field = MAVLink_debug_vect_message.instance_field
  13972. self._instance_offset = MAVLink_debug_vect_message.instance_offset
  13973. self._name_raw = name
  13974. self.name = name.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  13975. self.time_usec = time_usec
  13976. self.x = x
  13977. self.y = y
  13978. self.z = z
  13979. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13980. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.x, self.y, self.z, self._name_raw), force_mavlink1=force_mavlink1)
  13981. # Define name on the class for backwards compatibility (it is now msgname).
  13982. # Done with setattr to hide the class variable from mypy.
  13983. setattr(MAVLink_debug_vect_message, "name", mavlink_msg_deprecated_name_property())
  13984. class MAVLink_named_value_float_message(MAVLink_message):
  13985. """
  13986. Send a key-value pair as float. The use of this message is
  13987. discouraged for normal packets, but a quite efficient way for
  13988. testing new messages and getting experimental debug output.
  13989. """
  13990. id = MAVLINK_MSG_ID_NAMED_VALUE_FLOAT
  13991. msgname = "NAMED_VALUE_FLOAT"
  13992. fieldnames = ["time_boot_ms", "name", "value"]
  13993. ordered_fieldnames = ["time_boot_ms", "value", "name"]
  13994. fieldtypes = ["uint32_t", "char", "float"]
  13995. fielddisplays_by_name: Dict[str, str] = {}
  13996. fieldenums_by_name: Dict[str, str] = {}
  13997. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms"}
  13998. native_format = bytearray(b"<Ifc")
  13999. orders = [0, 2, 1]
  14000. lengths = [1, 1, 1]
  14001. array_lengths = [0, 0, 10]
  14002. crc_extra = 170
  14003. unpacker = struct.Struct("<If10s")
  14004. instance_field = "name"
  14005. instance_offset = 8
  14006. def __init__(self, time_boot_ms: int, name: bytes, value: float):
  14007. MAVLink_message.__init__(self, MAVLink_named_value_float_message.id, MAVLink_named_value_float_message.msgname)
  14008. self._fieldnames = MAVLink_named_value_float_message.fieldnames
  14009. self._instance_field = MAVLink_named_value_float_message.instance_field
  14010. self._instance_offset = MAVLink_named_value_float_message.instance_offset
  14011. self.time_boot_ms = time_boot_ms
  14012. self._name_raw = name
  14013. self.name = name.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  14014. self.value = value
  14015. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14016. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.value, self._name_raw), force_mavlink1=force_mavlink1)
  14017. # Define name on the class for backwards compatibility (it is now msgname).
  14018. # Done with setattr to hide the class variable from mypy.
  14019. setattr(MAVLink_named_value_float_message, "name", mavlink_msg_deprecated_name_property())
  14020. class MAVLink_named_value_int_message(MAVLink_message):
  14021. """
  14022. Send a key-value pair as integer. The use of this message is
  14023. discouraged for normal packets, but a quite efficient way for
  14024. testing new messages and getting experimental debug output.
  14025. """
  14026. id = MAVLINK_MSG_ID_NAMED_VALUE_INT
  14027. msgname = "NAMED_VALUE_INT"
  14028. fieldnames = ["time_boot_ms", "name", "value"]
  14029. ordered_fieldnames = ["time_boot_ms", "value", "name"]
  14030. fieldtypes = ["uint32_t", "char", "int32_t"]
  14031. fielddisplays_by_name: Dict[str, str] = {}
  14032. fieldenums_by_name: Dict[str, str] = {}
  14033. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms"}
  14034. native_format = bytearray(b"<Iic")
  14035. orders = [0, 2, 1]
  14036. lengths = [1, 1, 1]
  14037. array_lengths = [0, 0, 10]
  14038. crc_extra = 44
  14039. unpacker = struct.Struct("<Ii10s")
  14040. instance_field = "name"
  14041. instance_offset = 8
  14042. def __init__(self, time_boot_ms: int, name: bytes, value: int):
  14043. MAVLink_message.__init__(self, MAVLink_named_value_int_message.id, MAVLink_named_value_int_message.msgname)
  14044. self._fieldnames = MAVLink_named_value_int_message.fieldnames
  14045. self._instance_field = MAVLink_named_value_int_message.instance_field
  14046. self._instance_offset = MAVLink_named_value_int_message.instance_offset
  14047. self.time_boot_ms = time_boot_ms
  14048. self._name_raw = name
  14049. self.name = name.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  14050. self.value = value
  14051. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14052. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.value, self._name_raw), force_mavlink1=force_mavlink1)
  14053. # Define name on the class for backwards compatibility (it is now msgname).
  14054. # Done with setattr to hide the class variable from mypy.
  14055. setattr(MAVLink_named_value_int_message, "name", mavlink_msg_deprecated_name_property())
  14056. class MAVLink_statustext_message(MAVLink_message):
  14057. """
  14058. Status text message. These messages are printed in yellow in the
  14059. COMM console of QGroundControl. WARNING: They consume quite some
  14060. bandwidth, so use only for important status and error messages. If
  14061. implemented wisely, these messages are buffered on the MCU and
  14062. sent only at a limited rate (e.g. 10 Hz).
  14063. """
  14064. id = MAVLINK_MSG_ID_STATUSTEXT
  14065. msgname = "STATUSTEXT"
  14066. fieldnames = ["severity", "text", "id", "chunk_seq"]
  14067. ordered_fieldnames = ["severity", "text", "id", "chunk_seq"]
  14068. fieldtypes = ["uint8_t", "char", "uint16_t", "uint8_t"]
  14069. fielddisplays_by_name: Dict[str, str] = {}
  14070. fieldenums_by_name: Dict[str, str] = {"severity": "MAV_SEVERITY"}
  14071. fieldunits_by_name: Dict[str, str] = {}
  14072. native_format = bytearray(b"<BcHB")
  14073. orders = [0, 1, 2, 3]
  14074. lengths = [1, 1, 1, 1]
  14075. array_lengths = [0, 50, 0, 0]
  14076. crc_extra = 83
  14077. unpacker = struct.Struct("<B50sHB")
  14078. instance_field = None
  14079. instance_offset = -1
  14080. def __init__(self, severity: int, text: bytes, id: int = 0, chunk_seq: int = 0):
  14081. MAVLink_message.__init__(self, MAVLink_statustext_message.id, MAVLink_statustext_message.msgname)
  14082. self._fieldnames = MAVLink_statustext_message.fieldnames
  14083. self._instance_field = MAVLink_statustext_message.instance_field
  14084. self._instance_offset = MAVLink_statustext_message.instance_offset
  14085. self.severity = severity
  14086. self._text_raw = text
  14087. self.text = text.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  14088. self.id = id
  14089. self.chunk_seq = chunk_seq
  14090. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14091. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.severity, self._text_raw, self.id, self.chunk_seq), force_mavlink1=force_mavlink1)
  14092. # Define name on the class for backwards compatibility (it is now msgname).
  14093. # Done with setattr to hide the class variable from mypy.
  14094. setattr(MAVLink_statustext_message, "name", mavlink_msg_deprecated_name_property())
  14095. class MAVLink_debug_message(MAVLink_message):
  14096. """
  14097. Send a debug value. The index is used to discriminate between
  14098. values. These values show up in the plot of QGroundControl as
  14099. DEBUG N.
  14100. """
  14101. id = MAVLINK_MSG_ID_DEBUG
  14102. msgname = "DEBUG"
  14103. fieldnames = ["time_boot_ms", "ind", "value"]
  14104. ordered_fieldnames = ["time_boot_ms", "value", "ind"]
  14105. fieldtypes = ["uint32_t", "uint8_t", "float"]
  14106. fielddisplays_by_name: Dict[str, str] = {}
  14107. fieldenums_by_name: Dict[str, str] = {}
  14108. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms"}
  14109. native_format = bytearray(b"<IfB")
  14110. orders = [0, 2, 1]
  14111. lengths = [1, 1, 1]
  14112. array_lengths = [0, 0, 0]
  14113. crc_extra = 46
  14114. unpacker = struct.Struct("<IfB")
  14115. instance_field = None
  14116. instance_offset = -1
  14117. def __init__(self, time_boot_ms: int, ind: int, value: float):
  14118. MAVLink_message.__init__(self, MAVLink_debug_message.id, MAVLink_debug_message.msgname)
  14119. self._fieldnames = MAVLink_debug_message.fieldnames
  14120. self._instance_field = MAVLink_debug_message.instance_field
  14121. self._instance_offset = MAVLink_debug_message.instance_offset
  14122. self.time_boot_ms = time_boot_ms
  14123. self.ind = ind
  14124. self.value = value
  14125. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14126. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.value, self.ind), force_mavlink1=force_mavlink1)
  14127. # Define name on the class for backwards compatibility (it is now msgname).
  14128. # Done with setattr to hide the class variable from mypy.
  14129. setattr(MAVLink_debug_message, "name", mavlink_msg_deprecated_name_property())
  14130. class MAVLink_setup_signing_message(MAVLink_message):
  14131. """
  14132. Setup a MAVLink2 signing key. If called with secret_key of all
  14133. zero and zero initial_timestamp will disable signing
  14134. """
  14135. id = MAVLINK_MSG_ID_SETUP_SIGNING
  14136. msgname = "SETUP_SIGNING"
  14137. fieldnames = ["target_system", "target_component", "secret_key", "initial_timestamp"]
  14138. ordered_fieldnames = ["initial_timestamp", "target_system", "target_component", "secret_key"]
  14139. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint64_t"]
  14140. fielddisplays_by_name: Dict[str, str] = {}
  14141. fieldenums_by_name: Dict[str, str] = {}
  14142. fieldunits_by_name: Dict[str, str] = {}
  14143. native_format = bytearray(b"<QBBB")
  14144. orders = [1, 2, 3, 0]
  14145. lengths = [1, 1, 1, 32]
  14146. array_lengths = [0, 0, 0, 32]
  14147. crc_extra = 71
  14148. unpacker = struct.Struct("<QBB32B")
  14149. instance_field = None
  14150. instance_offset = -1
  14151. def __init__(self, target_system: int, target_component: int, secret_key: Sequence[int], initial_timestamp: int):
  14152. MAVLink_message.__init__(self, MAVLink_setup_signing_message.id, MAVLink_setup_signing_message.msgname)
  14153. self._fieldnames = MAVLink_setup_signing_message.fieldnames
  14154. self._instance_field = MAVLink_setup_signing_message.instance_field
  14155. self._instance_offset = MAVLink_setup_signing_message.instance_offset
  14156. self.target_system = target_system
  14157. self.target_component = target_component
  14158. self.secret_key = secret_key
  14159. self.initial_timestamp = initial_timestamp
  14160. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14161. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.initial_timestamp, self.target_system, self.target_component, self.secret_key[0], self.secret_key[1], self.secret_key[2], self.secret_key[3], self.secret_key[4], self.secret_key[5], self.secret_key[6], self.secret_key[7], self.secret_key[8], self.secret_key[9], self.secret_key[10], self.secret_key[11], self.secret_key[12], self.secret_key[13], self.secret_key[14], self.secret_key[15], self.secret_key[16], self.secret_key[17], self.secret_key[18], self.secret_key[19], self.secret_key[20], self.secret_key[21], self.secret_key[22], self.secret_key[23], self.secret_key[24], self.secret_key[25], self.secret_key[26], self.secret_key[27], self.secret_key[28], self.secret_key[29], self.secret_key[30], self.secret_key[31]), force_mavlink1=force_mavlink1)
  14162. # Define name on the class for backwards compatibility (it is now msgname).
  14163. # Done with setattr to hide the class variable from mypy.
  14164. setattr(MAVLink_setup_signing_message, "name", mavlink_msg_deprecated_name_property())
  14165. class MAVLink_button_change_message(MAVLink_message):
  14166. """
  14167. Report button state change.
  14168. """
  14169. id = MAVLINK_MSG_ID_BUTTON_CHANGE
  14170. msgname = "BUTTON_CHANGE"
  14171. fieldnames = ["time_boot_ms", "last_change_ms", "state"]
  14172. ordered_fieldnames = ["time_boot_ms", "last_change_ms", "state"]
  14173. fieldtypes = ["uint32_t", "uint32_t", "uint8_t"]
  14174. fielddisplays_by_name: Dict[str, str] = {"state": "bitmask"}
  14175. fieldenums_by_name: Dict[str, str] = {}
  14176. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "last_change_ms": "ms"}
  14177. native_format = bytearray(b"<IIB")
  14178. orders = [0, 1, 2]
  14179. lengths = [1, 1, 1]
  14180. array_lengths = [0, 0, 0]
  14181. crc_extra = 131
  14182. unpacker = struct.Struct("<IIB")
  14183. instance_field = None
  14184. instance_offset = -1
  14185. def __init__(self, time_boot_ms: int, last_change_ms: int, state: int):
  14186. MAVLink_message.__init__(self, MAVLink_button_change_message.id, MAVLink_button_change_message.msgname)
  14187. self._fieldnames = MAVLink_button_change_message.fieldnames
  14188. self._instance_field = MAVLink_button_change_message.instance_field
  14189. self._instance_offset = MAVLink_button_change_message.instance_offset
  14190. self.time_boot_ms = time_boot_ms
  14191. self.last_change_ms = last_change_ms
  14192. self.state = state
  14193. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14194. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.last_change_ms, self.state), force_mavlink1=force_mavlink1)
  14195. # Define name on the class for backwards compatibility (it is now msgname).
  14196. # Done with setattr to hide the class variable from mypy.
  14197. setattr(MAVLink_button_change_message, "name", mavlink_msg_deprecated_name_property())
  14198. class MAVLink_play_tune_message(MAVLink_message):
  14199. """
  14200. Control vehicle tone generation (buzzer).
  14201. """
  14202. id = MAVLINK_MSG_ID_PLAY_TUNE
  14203. msgname = "PLAY_TUNE"
  14204. fieldnames = ["target_system", "target_component", "tune", "tune2"]
  14205. ordered_fieldnames = ["target_system", "target_component", "tune", "tune2"]
  14206. fieldtypes = ["uint8_t", "uint8_t", "char", "char"]
  14207. fielddisplays_by_name: Dict[str, str] = {}
  14208. fieldenums_by_name: Dict[str, str] = {}
  14209. fieldunits_by_name: Dict[str, str] = {}
  14210. native_format = bytearray(b"<BBcc")
  14211. orders = [0, 1, 2, 3]
  14212. lengths = [1, 1, 1, 1]
  14213. array_lengths = [0, 0, 30, 200]
  14214. crc_extra = 187
  14215. unpacker = struct.Struct("<BB30s200s")
  14216. instance_field = None
  14217. instance_offset = -1
  14218. def __init__(self, target_system: int, target_component: int, tune: bytes, tune2: bytes = b""):
  14219. MAVLink_message.__init__(self, MAVLink_play_tune_message.id, MAVLink_play_tune_message.msgname)
  14220. self._fieldnames = MAVLink_play_tune_message.fieldnames
  14221. self._instance_field = MAVLink_play_tune_message.instance_field
  14222. self._instance_offset = MAVLink_play_tune_message.instance_offset
  14223. self.target_system = target_system
  14224. self.target_component = target_component
  14225. self._tune_raw = tune
  14226. self.tune = tune.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  14227. self._tune2_raw = tune2
  14228. self.tune2 = tune2.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  14229. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14230. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.target_system, self.target_component, self._tune_raw, self._tune2_raw), force_mavlink1=force_mavlink1)
  14231. # Define name on the class for backwards compatibility (it is now msgname).
  14232. # Done with setattr to hide the class variable from mypy.
  14233. setattr(MAVLink_play_tune_message, "name", mavlink_msg_deprecated_name_property())
  14234. class MAVLink_camera_information_message(MAVLink_message):
  14235. """
  14236. Information about a camera. Can be requested with a
  14237. MAV_CMD_REQUEST_MESSAGE command.
  14238. """
  14239. id = MAVLINK_MSG_ID_CAMERA_INFORMATION
  14240. msgname = "CAMERA_INFORMATION"
  14241. fieldnames = ["time_boot_ms", "vendor_name", "model_name", "firmware_version", "focal_length", "sensor_size_h", "sensor_size_v", "resolution_h", "resolution_v", "lens_id", "flags", "cam_definition_version", "cam_definition_uri", "gimbal_device_id"]
  14242. ordered_fieldnames = ["time_boot_ms", "firmware_version", "focal_length", "sensor_size_h", "sensor_size_v", "flags", "resolution_h", "resolution_v", "cam_definition_version", "vendor_name", "model_name", "lens_id", "cam_definition_uri", "gimbal_device_id"]
  14243. fieldtypes = ["uint32_t", "uint8_t", "uint8_t", "uint32_t", "float", "float", "float", "uint16_t", "uint16_t", "uint8_t", "uint32_t", "uint16_t", "char", "uint8_t"]
  14244. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  14245. fieldenums_by_name: Dict[str, str] = {"flags": "CAMERA_CAP_FLAGS"}
  14246. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "focal_length": "mm", "sensor_size_h": "mm", "sensor_size_v": "mm", "resolution_h": "pix", "resolution_v": "pix"}
  14247. native_format = bytearray(b"<IIfffIHHHBBBcB")
  14248. orders = [0, 9, 10, 1, 2, 3, 4, 6, 7, 11, 5, 8, 12, 13]
  14249. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 32, 32, 1, 1, 1]
  14250. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 32, 0, 140, 0]
  14251. crc_extra = 92
  14252. unpacker = struct.Struct("<IIfffIHHH32B32BB140sB")
  14253. instance_field = None
  14254. instance_offset = -1
  14255. def __init__(self, time_boot_ms: int, vendor_name: Sequence[int], model_name: Sequence[int], firmware_version: int, focal_length: float, sensor_size_h: float, sensor_size_v: float, resolution_h: int, resolution_v: int, lens_id: int, flags: int, cam_definition_version: int, cam_definition_uri: bytes, gimbal_device_id: int = 0):
  14256. MAVLink_message.__init__(self, MAVLink_camera_information_message.id, MAVLink_camera_information_message.msgname)
  14257. self._fieldnames = MAVLink_camera_information_message.fieldnames
  14258. self._instance_field = MAVLink_camera_information_message.instance_field
  14259. self._instance_offset = MAVLink_camera_information_message.instance_offset
  14260. self.time_boot_ms = time_boot_ms
  14261. self.vendor_name = vendor_name
  14262. self.model_name = model_name
  14263. self.firmware_version = firmware_version
  14264. self.focal_length = focal_length
  14265. self.sensor_size_h = sensor_size_h
  14266. self.sensor_size_v = sensor_size_v
  14267. self.resolution_h = resolution_h
  14268. self.resolution_v = resolution_v
  14269. self.lens_id = lens_id
  14270. self.flags = flags
  14271. self.cam_definition_version = cam_definition_version
  14272. self._cam_definition_uri_raw = cam_definition_uri
  14273. self.cam_definition_uri = cam_definition_uri.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  14274. self.gimbal_device_id = gimbal_device_id
  14275. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14276. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.firmware_version, self.focal_length, self.sensor_size_h, self.sensor_size_v, self.flags, self.resolution_h, self.resolution_v, self.cam_definition_version, self.vendor_name[0], self.vendor_name[1], self.vendor_name[2], self.vendor_name[3], self.vendor_name[4], self.vendor_name[5], self.vendor_name[6], self.vendor_name[7], self.vendor_name[8], self.vendor_name[9], self.vendor_name[10], self.vendor_name[11], self.vendor_name[12], self.vendor_name[13], self.vendor_name[14], self.vendor_name[15], self.vendor_name[16], self.vendor_name[17], self.vendor_name[18], self.vendor_name[19], self.vendor_name[20], self.vendor_name[21], self.vendor_name[22], self.vendor_name[23], self.vendor_name[24], self.vendor_name[25], self.vendor_name[26], self.vendor_name[27], self.vendor_name[28], self.vendor_name[29], self.vendor_name[30], self.vendor_name[31], self.model_name[0], self.model_name[1], self.model_name[2], self.model_name[3], self.model_name[4], self.model_name[5], self.model_name[6], self.model_name[7], self.model_name[8], self.model_name[9], self.model_name[10], self.model_name[11], self.model_name[12], self.model_name[13], self.model_name[14], self.model_name[15], self.model_name[16], self.model_name[17], self.model_name[18], self.model_name[19], self.model_name[20], self.model_name[21], self.model_name[22], self.model_name[23], self.model_name[24], self.model_name[25], self.model_name[26], self.model_name[27], self.model_name[28], self.model_name[29], self.model_name[30], self.model_name[31], self.lens_id, self._cam_definition_uri_raw, self.gimbal_device_id), force_mavlink1=force_mavlink1)
  14277. # Define name on the class for backwards compatibility (it is now msgname).
  14278. # Done with setattr to hide the class variable from mypy.
  14279. setattr(MAVLink_camera_information_message, "name", mavlink_msg_deprecated_name_property())
  14280. class MAVLink_camera_settings_message(MAVLink_message):
  14281. """
  14282. Settings of a camera. Can be requested with a
  14283. MAV_CMD_REQUEST_MESSAGE command.
  14284. """
  14285. id = MAVLINK_MSG_ID_CAMERA_SETTINGS
  14286. msgname = "CAMERA_SETTINGS"
  14287. fieldnames = ["time_boot_ms", "mode_id", "zoomLevel", "focusLevel"]
  14288. ordered_fieldnames = ["time_boot_ms", "mode_id", "zoomLevel", "focusLevel"]
  14289. fieldtypes = ["uint32_t", "uint8_t", "float", "float"]
  14290. fielddisplays_by_name: Dict[str, str] = {}
  14291. fieldenums_by_name: Dict[str, str] = {"mode_id": "CAMERA_MODE"}
  14292. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms"}
  14293. native_format = bytearray(b"<IBff")
  14294. orders = [0, 1, 2, 3]
  14295. lengths = [1, 1, 1, 1]
  14296. array_lengths = [0, 0, 0, 0]
  14297. crc_extra = 146
  14298. unpacker = struct.Struct("<IBff")
  14299. instance_field = None
  14300. instance_offset = -1
  14301. def __init__(self, time_boot_ms: int, mode_id: int, zoomLevel: float = 0, focusLevel: float = 0):
  14302. MAVLink_message.__init__(self, MAVLink_camera_settings_message.id, MAVLink_camera_settings_message.msgname)
  14303. self._fieldnames = MAVLink_camera_settings_message.fieldnames
  14304. self._instance_field = MAVLink_camera_settings_message.instance_field
  14305. self._instance_offset = MAVLink_camera_settings_message.instance_offset
  14306. self.time_boot_ms = time_boot_ms
  14307. self.mode_id = mode_id
  14308. self.zoomLevel = zoomLevel
  14309. self.focusLevel = focusLevel
  14310. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14311. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.mode_id, self.zoomLevel, self.focusLevel), force_mavlink1=force_mavlink1)
  14312. # Define name on the class for backwards compatibility (it is now msgname).
  14313. # Done with setattr to hide the class variable from mypy.
  14314. setattr(MAVLink_camera_settings_message, "name", mavlink_msg_deprecated_name_property())
  14315. class MAVLink_storage_information_message(MAVLink_message):
  14316. """
  14317. Information about a storage medium. This message is sent in
  14318. response to a request with MAV_CMD_REQUEST_MESSAGE and whenever
  14319. the status of the storage changes (STORAGE_STATUS). Use
  14320. MAV_CMD_REQUEST_MESSAGE.param2 to indicate the index/id of
  14321. requested storage: 0 for all, 1 for first, 2 for second, etc.
  14322. """
  14323. id = MAVLINK_MSG_ID_STORAGE_INFORMATION
  14324. msgname = "STORAGE_INFORMATION"
  14325. fieldnames = ["time_boot_ms", "storage_id", "storage_count", "status", "total_capacity", "used_capacity", "available_capacity", "read_speed", "write_speed", "type", "name", "storage_usage"]
  14326. ordered_fieldnames = ["time_boot_ms", "total_capacity", "used_capacity", "available_capacity", "read_speed", "write_speed", "storage_id", "storage_count", "status", "type", "name", "storage_usage"]
  14327. fieldtypes = ["uint32_t", "uint8_t", "uint8_t", "uint8_t", "float", "float", "float", "float", "float", "uint8_t", "char", "uint8_t"]
  14328. fielddisplays_by_name: Dict[str, str] = {}
  14329. fieldenums_by_name: Dict[str, str] = {"status": "STORAGE_STATUS", "type": "STORAGE_TYPE", "storage_usage": "STORAGE_USAGE_FLAG"}
  14330. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "total_capacity": "MiB", "used_capacity": "MiB", "available_capacity": "MiB", "read_speed": "MiB/s", "write_speed": "MiB/s"}
  14331. native_format = bytearray(b"<IfffffBBBBcB")
  14332. orders = [0, 6, 7, 8, 1, 2, 3, 4, 5, 9, 10, 11]
  14333. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  14334. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 0]
  14335. crc_extra = 179
  14336. unpacker = struct.Struct("<IfffffBBBB32sB")
  14337. instance_field = "storage_id"
  14338. instance_offset = 24
  14339. def __init__(self, time_boot_ms: int, storage_id: int, storage_count: int, status: int, total_capacity: float, used_capacity: float, available_capacity: float, read_speed: float, write_speed: float, type: int = 0, name: bytes = b"", storage_usage: int = 0):
  14340. MAVLink_message.__init__(self, MAVLink_storage_information_message.id, MAVLink_storage_information_message.msgname)
  14341. self._fieldnames = MAVLink_storage_information_message.fieldnames
  14342. self._instance_field = MAVLink_storage_information_message.instance_field
  14343. self._instance_offset = MAVLink_storage_information_message.instance_offset
  14344. self.time_boot_ms = time_boot_ms
  14345. self.storage_id = storage_id
  14346. self.storage_count = storage_count
  14347. self.status = status
  14348. self.total_capacity = total_capacity
  14349. self.used_capacity = used_capacity
  14350. self.available_capacity = available_capacity
  14351. self.read_speed = read_speed
  14352. self.write_speed = write_speed
  14353. self.type = type
  14354. self._name_raw = name
  14355. self.name = name.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  14356. self.storage_usage = storage_usage
  14357. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14358. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.total_capacity, self.used_capacity, self.available_capacity, self.read_speed, self.write_speed, self.storage_id, self.storage_count, self.status, self.type, self._name_raw, self.storage_usage), force_mavlink1=force_mavlink1)
  14359. # Define name on the class for backwards compatibility (it is now msgname).
  14360. # Done with setattr to hide the class variable from mypy.
  14361. setattr(MAVLink_storage_information_message, "name", mavlink_msg_deprecated_name_property())
  14362. class MAVLink_camera_capture_status_message(MAVLink_message):
  14363. """
  14364. Information about the status of a capture. Can be requested with a
  14365. MAV_CMD_REQUEST_MESSAGE command.
  14366. """
  14367. id = MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS
  14368. msgname = "CAMERA_CAPTURE_STATUS"
  14369. fieldnames = ["time_boot_ms", "image_status", "video_status", "image_interval", "recording_time_ms", "available_capacity", "image_count"]
  14370. ordered_fieldnames = ["time_boot_ms", "image_interval", "recording_time_ms", "available_capacity", "image_status", "video_status", "image_count"]
  14371. fieldtypes = ["uint32_t", "uint8_t", "uint8_t", "float", "uint32_t", "float", "int32_t"]
  14372. fielddisplays_by_name: Dict[str, str] = {}
  14373. fieldenums_by_name: Dict[str, str] = {}
  14374. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "image_interval": "s", "recording_time_ms": "ms", "available_capacity": "MiB"}
  14375. native_format = bytearray(b"<IfIfBBi")
  14376. orders = [0, 4, 5, 1, 2, 3, 6]
  14377. lengths = [1, 1, 1, 1, 1, 1, 1]
  14378. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  14379. crc_extra = 12
  14380. unpacker = struct.Struct("<IfIfBBi")
  14381. instance_field = None
  14382. instance_offset = -1
  14383. def __init__(self, time_boot_ms: int, image_status: int, video_status: int, image_interval: float, recording_time_ms: int, available_capacity: float, image_count: int = 0):
  14384. MAVLink_message.__init__(self, MAVLink_camera_capture_status_message.id, MAVLink_camera_capture_status_message.msgname)
  14385. self._fieldnames = MAVLink_camera_capture_status_message.fieldnames
  14386. self._instance_field = MAVLink_camera_capture_status_message.instance_field
  14387. self._instance_offset = MAVLink_camera_capture_status_message.instance_offset
  14388. self.time_boot_ms = time_boot_ms
  14389. self.image_status = image_status
  14390. self.video_status = video_status
  14391. self.image_interval = image_interval
  14392. self.recording_time_ms = recording_time_ms
  14393. self.available_capacity = available_capacity
  14394. self.image_count = image_count
  14395. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14396. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.image_interval, self.recording_time_ms, self.available_capacity, self.image_status, self.video_status, self.image_count), force_mavlink1=force_mavlink1)
  14397. # Define name on the class for backwards compatibility (it is now msgname).
  14398. # Done with setattr to hide the class variable from mypy.
  14399. setattr(MAVLink_camera_capture_status_message, "name", mavlink_msg_deprecated_name_property())
  14400. class MAVLink_camera_image_captured_message(MAVLink_message):
  14401. """
  14402. Information about a captured image. This is emitted every time a
  14403. message is captured. MAV_CMD_REQUEST_MESSAGE can be used
  14404. to (re)request this message for a specific sequence number or
  14405. range of sequence numbers: MAV_CMD_REQUEST_MESSAGE.param2
  14406. indicates the sequence number the first image to send, or set to
  14407. -1 to send the message for all sequence numbers.
  14408. MAV_CMD_REQUEST_MESSAGE.param3 is used to specify a range of
  14409. messages to send: set to 0 (default) to send just the the
  14410. message for the sequence number in param 2, set to -1 to
  14411. send the message for the sequence number in param 2 and all the
  14412. following sequence numbers, set to the sequence number of
  14413. the final message in the range.
  14414. """
  14415. id = MAVLINK_MSG_ID_CAMERA_IMAGE_CAPTURED
  14416. msgname = "CAMERA_IMAGE_CAPTURED"
  14417. fieldnames = ["time_boot_ms", "time_utc", "camera_id", "lat", "lon", "alt", "relative_alt", "q", "image_index", "capture_result", "file_url"]
  14418. ordered_fieldnames = ["time_utc", "time_boot_ms", "lat", "lon", "alt", "relative_alt", "q", "image_index", "camera_id", "capture_result", "file_url"]
  14419. fieldtypes = ["uint32_t", "uint64_t", "uint8_t", "int32_t", "int32_t", "int32_t", "int32_t", "float", "int32_t", "int8_t", "char"]
  14420. fielddisplays_by_name: Dict[str, str] = {}
  14421. fieldenums_by_name: Dict[str, str] = {}
  14422. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "time_utc": "us", "lat": "degE7", "lon": "degE7", "alt": "mm", "relative_alt": "mm"}
  14423. native_format = bytearray(b"<QIiiiifiBbc")
  14424. orders = [1, 0, 8, 2, 3, 4, 5, 6, 7, 9, 10]
  14425. lengths = [1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1]
  14426. array_lengths = [0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 205]
  14427. crc_extra = 133
  14428. unpacker = struct.Struct("<QIiiii4fiBb205s")
  14429. instance_field = None
  14430. instance_offset = -1
  14431. def __init__(self, time_boot_ms: int, time_utc: int, camera_id: int, lat: int, lon: int, alt: int, relative_alt: int, q: Sequence[float], image_index: int, capture_result: int, file_url: bytes):
  14432. MAVLink_message.__init__(self, MAVLink_camera_image_captured_message.id, MAVLink_camera_image_captured_message.msgname)
  14433. self._fieldnames = MAVLink_camera_image_captured_message.fieldnames
  14434. self._instance_field = MAVLink_camera_image_captured_message.instance_field
  14435. self._instance_offset = MAVLink_camera_image_captured_message.instance_offset
  14436. self.time_boot_ms = time_boot_ms
  14437. self.time_utc = time_utc
  14438. self.camera_id = camera_id
  14439. self.lat = lat
  14440. self.lon = lon
  14441. self.alt = alt
  14442. self.relative_alt = relative_alt
  14443. self.q = q
  14444. self.image_index = image_index
  14445. self.capture_result = capture_result
  14446. self._file_url_raw = file_url
  14447. self.file_url = file_url.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  14448. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14449. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_utc, self.time_boot_ms, self.lat, self.lon, self.alt, self.relative_alt, self.q[0], self.q[1], self.q[2], self.q[3], self.image_index, self.camera_id, self.capture_result, self._file_url_raw), force_mavlink1=force_mavlink1)
  14450. # Define name on the class for backwards compatibility (it is now msgname).
  14451. # Done with setattr to hide the class variable from mypy.
  14452. setattr(MAVLink_camera_image_captured_message, "name", mavlink_msg_deprecated_name_property())
  14453. class MAVLink_flight_information_message(MAVLink_message):
  14454. """
  14455. Flight information. This includes time since boot for arm,
  14456. takeoff, and land, and a flight number. Takeoff and
  14457. landing values reset to zero on arm. This can be requested
  14458. using MAV_CMD_REQUEST_MESSAGE. Note, some fields are
  14459. misnamed - timestamps are from boot (not UTC) and the flight_uuid
  14460. is a sequence number.
  14461. """
  14462. id = MAVLINK_MSG_ID_FLIGHT_INFORMATION
  14463. msgname = "FLIGHT_INFORMATION"
  14464. fieldnames = ["time_boot_ms", "arming_time_utc", "takeoff_time_utc", "flight_uuid", "landing_time"]
  14465. ordered_fieldnames = ["arming_time_utc", "takeoff_time_utc", "flight_uuid", "time_boot_ms", "landing_time"]
  14466. fieldtypes = ["uint32_t", "uint64_t", "uint64_t", "uint64_t", "uint32_t"]
  14467. fielddisplays_by_name: Dict[str, str] = {}
  14468. fieldenums_by_name: Dict[str, str] = {}
  14469. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "arming_time_utc": "us", "takeoff_time_utc": "us", "landing_time": "ms"}
  14470. native_format = bytearray(b"<QQQII")
  14471. orders = [3, 0, 1, 2, 4]
  14472. lengths = [1, 1, 1, 1, 1]
  14473. array_lengths = [0, 0, 0, 0, 0]
  14474. crc_extra = 49
  14475. unpacker = struct.Struct("<QQQII")
  14476. instance_field = None
  14477. instance_offset = -1
  14478. def __init__(self, time_boot_ms: int, arming_time_utc: int, takeoff_time_utc: int, flight_uuid: int, landing_time: int = 0):
  14479. MAVLink_message.__init__(self, MAVLink_flight_information_message.id, MAVLink_flight_information_message.msgname)
  14480. self._fieldnames = MAVLink_flight_information_message.fieldnames
  14481. self._instance_field = MAVLink_flight_information_message.instance_field
  14482. self._instance_offset = MAVLink_flight_information_message.instance_offset
  14483. self.time_boot_ms = time_boot_ms
  14484. self.arming_time_utc = arming_time_utc
  14485. self.takeoff_time_utc = takeoff_time_utc
  14486. self.flight_uuid = flight_uuid
  14487. self.landing_time = landing_time
  14488. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14489. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.arming_time_utc, self.takeoff_time_utc, self.flight_uuid, self.time_boot_ms, self.landing_time), force_mavlink1=force_mavlink1)
  14490. # Define name on the class for backwards compatibility (it is now msgname).
  14491. # Done with setattr to hide the class variable from mypy.
  14492. setattr(MAVLink_flight_information_message, "name", mavlink_msg_deprecated_name_property())
  14493. class MAVLink_mount_orientation_message(MAVLink_message):
  14494. """
  14495. Orientation of a mount
  14496. """
  14497. id = MAVLINK_MSG_ID_MOUNT_ORIENTATION
  14498. msgname = "MOUNT_ORIENTATION"
  14499. fieldnames = ["time_boot_ms", "roll", "pitch", "yaw", "yaw_absolute"]
  14500. ordered_fieldnames = ["time_boot_ms", "roll", "pitch", "yaw", "yaw_absolute"]
  14501. fieldtypes = ["uint32_t", "float", "float", "float", "float"]
  14502. fielddisplays_by_name: Dict[str, str] = {}
  14503. fieldenums_by_name: Dict[str, str] = {}
  14504. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "roll": "deg", "pitch": "deg", "yaw": "deg", "yaw_absolute": "deg"}
  14505. native_format = bytearray(b"<Iffff")
  14506. orders = [0, 1, 2, 3, 4]
  14507. lengths = [1, 1, 1, 1, 1]
  14508. array_lengths = [0, 0, 0, 0, 0]
  14509. crc_extra = 26
  14510. unpacker = struct.Struct("<Iffff")
  14511. instance_field = None
  14512. instance_offset = -1
  14513. def __init__(self, time_boot_ms: int, roll: float, pitch: float, yaw: float, yaw_absolute: float = 0):
  14514. MAVLink_message.__init__(self, MAVLink_mount_orientation_message.id, MAVLink_mount_orientation_message.msgname)
  14515. self._fieldnames = MAVLink_mount_orientation_message.fieldnames
  14516. self._instance_field = MAVLink_mount_orientation_message.instance_field
  14517. self._instance_offset = MAVLink_mount_orientation_message.instance_offset
  14518. self.time_boot_ms = time_boot_ms
  14519. self.roll = roll
  14520. self.pitch = pitch
  14521. self.yaw = yaw
  14522. self.yaw_absolute = yaw_absolute
  14523. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14524. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.roll, self.pitch, self.yaw, self.yaw_absolute), force_mavlink1=force_mavlink1)
  14525. # Define name on the class for backwards compatibility (it is now msgname).
  14526. # Done with setattr to hide the class variable from mypy.
  14527. setattr(MAVLink_mount_orientation_message, "name", mavlink_msg_deprecated_name_property())
  14528. class MAVLink_logging_data_message(MAVLink_message):
  14529. """
  14530. A message containing logged data (see also MAV_CMD_LOGGING_START)
  14531. """
  14532. id = MAVLINK_MSG_ID_LOGGING_DATA
  14533. msgname = "LOGGING_DATA"
  14534. fieldnames = ["target_system", "target_component", "sequence", "length", "first_message_offset", "data"]
  14535. ordered_fieldnames = ["sequence", "target_system", "target_component", "length", "first_message_offset", "data"]
  14536. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "uint8_t", "uint8_t", "uint8_t"]
  14537. fielddisplays_by_name: Dict[str, str] = {}
  14538. fieldenums_by_name: Dict[str, str] = {}
  14539. fieldunits_by_name: Dict[str, str] = {"length": "bytes", "first_message_offset": "bytes"}
  14540. native_format = bytearray(b"<HBBBBB")
  14541. orders = [1, 2, 0, 3, 4, 5]
  14542. lengths = [1, 1, 1, 1, 1, 249]
  14543. array_lengths = [0, 0, 0, 0, 0, 249]
  14544. crc_extra = 193
  14545. unpacker = struct.Struct("<HBBBB249B")
  14546. instance_field = None
  14547. instance_offset = -1
  14548. def __init__(self, target_system: int, target_component: int, sequence: int, length: int, first_message_offset: int, data: Sequence[int]):
  14549. MAVLink_message.__init__(self, MAVLink_logging_data_message.id, MAVLink_logging_data_message.msgname)
  14550. self._fieldnames = MAVLink_logging_data_message.fieldnames
  14551. self._instance_field = MAVLink_logging_data_message.instance_field
  14552. self._instance_offset = MAVLink_logging_data_message.instance_offset
  14553. self.target_system = target_system
  14554. self.target_component = target_component
  14555. self.sequence = sequence
  14556. self.length = length
  14557. self.first_message_offset = first_message_offset
  14558. self.data = data
  14559. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14560. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.sequence, self.target_system, self.target_component, self.length, self.first_message_offset, self.data[0], self.data[1], self.data[2], self.data[3], self.data[4], self.data[5], self.data[6], self.data[7], self.data[8], self.data[9], self.data[10], self.data[11], self.data[12], self.data[13], self.data[14], self.data[15], self.data[16], self.data[17], self.data[18], self.data[19], self.data[20], self.data[21], self.data[22], self.data[23], self.data[24], self.data[25], self.data[26], self.data[27], self.data[28], self.data[29], self.data[30], self.data[31], self.data[32], self.data[33], self.data[34], self.data[35], self.data[36], self.data[37], self.data[38], self.data[39], self.data[40], self.data[41], self.data[42], self.data[43], self.data[44], self.data[45], self.data[46], self.data[47], self.data[48], self.data[49], self.data[50], self.data[51], self.data[52], self.data[53], self.data[54], self.data[55], self.data[56], self.data[57], self.data[58], self.data[59], self.data[60], self.data[61], self.data[62], self.data[63], self.data[64], self.data[65], self.data[66], self.data[67], self.data[68], self.data[69], self.data[70], self.data[71], self.data[72], self.data[73], self.data[74], self.data[75], self.data[76], self.data[77], self.data[78], self.data[79], self.data[80], self.data[81], self.data[82], self.data[83], self.data[84], self.data[85], self.data[86], self.data[87], self.data[88], self.data[89], self.data[90], self.data[91], self.data[92], self.data[93], self.data[94], self.data[95], self.data[96], self.data[97], self.data[98], self.data[99], self.data[100], self.data[101], self.data[102], self.data[103], self.data[104], self.data[105], self.data[106], self.data[107], self.data[108], self.data[109], self.data[110], self.data[111], self.data[112], self.data[113], self.data[114], self.data[115], self.data[116], self.data[117], self.data[118], self.data[119], self.data[120], self.data[121], self.data[122], self.data[123], self.data[124], self.data[125], self.data[126], self.data[127], self.data[128], self.data[129], self.data[130], self.data[131], self.data[132], self.data[133], self.data[134], self.data[135], self.data[136], self.data[137], self.data[138], self.data[139], self.data[140], self.data[141], self.data[142], self.data[143], self.data[144], self.data[145], self.data[146], self.data[147], self.data[148], self.data[149], self.data[150], self.data[151], self.data[152], self.data[153], self.data[154], self.data[155], self.data[156], self.data[157], self.data[158], self.data[159], self.data[160], self.data[161], self.data[162], self.data[163], self.data[164], self.data[165], self.data[166], self.data[167], self.data[168], self.data[169], self.data[170], self.data[171], self.data[172], self.data[173], self.data[174], self.data[175], self.data[176], self.data[177], self.data[178], self.data[179], self.data[180], self.data[181], self.data[182], self.data[183], self.data[184], self.data[185], self.data[186], self.data[187], self.data[188], self.data[189], self.data[190], self.data[191], self.data[192], self.data[193], self.data[194], self.data[195], self.data[196], self.data[197], self.data[198], self.data[199], self.data[200], self.data[201], self.data[202], self.data[203], self.data[204], self.data[205], self.data[206], self.data[207], self.data[208], self.data[209], self.data[210], self.data[211], self.data[212], self.data[213], self.data[214], self.data[215], self.data[216], self.data[217], self.data[218], self.data[219], self.data[220], self.data[221], self.data[222], self.data[223], self.data[224], self.data[225], self.data[226], self.data[227], self.data[228], self.data[229], self.data[230], self.data[231], self.data[232], self.data[233], self.data[234], self.data[235], self.data[236], self.data[237], self.data[238], self.data[239], self.data[240], self.data[241], self.data[242], self.data[243], self.data[244], self.data[245], self.data[246], self.data[247], self.data[248]), force_mavlink1=force_mavlink1)
  14561. # Define name on the class for backwards compatibility (it is now msgname).
  14562. # Done with setattr to hide the class variable from mypy.
  14563. setattr(MAVLink_logging_data_message, "name", mavlink_msg_deprecated_name_property())
  14564. class MAVLink_logging_data_acked_message(MAVLink_message):
  14565. """
  14566. A message containing logged data which requires a LOGGING_ACK to
  14567. be sent back
  14568. """
  14569. id = MAVLINK_MSG_ID_LOGGING_DATA_ACKED
  14570. msgname = "LOGGING_DATA_ACKED"
  14571. fieldnames = ["target_system", "target_component", "sequence", "length", "first_message_offset", "data"]
  14572. ordered_fieldnames = ["sequence", "target_system", "target_component", "length", "first_message_offset", "data"]
  14573. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "uint8_t", "uint8_t", "uint8_t"]
  14574. fielddisplays_by_name: Dict[str, str] = {}
  14575. fieldenums_by_name: Dict[str, str] = {}
  14576. fieldunits_by_name: Dict[str, str] = {"length": "bytes", "first_message_offset": "bytes"}
  14577. native_format = bytearray(b"<HBBBBB")
  14578. orders = [1, 2, 0, 3, 4, 5]
  14579. lengths = [1, 1, 1, 1, 1, 249]
  14580. array_lengths = [0, 0, 0, 0, 0, 249]
  14581. crc_extra = 35
  14582. unpacker = struct.Struct("<HBBBB249B")
  14583. instance_field = None
  14584. instance_offset = -1
  14585. def __init__(self, target_system: int, target_component: int, sequence: int, length: int, first_message_offset: int, data: Sequence[int]):
  14586. MAVLink_message.__init__(self, MAVLink_logging_data_acked_message.id, MAVLink_logging_data_acked_message.msgname)
  14587. self._fieldnames = MAVLink_logging_data_acked_message.fieldnames
  14588. self._instance_field = MAVLink_logging_data_acked_message.instance_field
  14589. self._instance_offset = MAVLink_logging_data_acked_message.instance_offset
  14590. self.target_system = target_system
  14591. self.target_component = target_component
  14592. self.sequence = sequence
  14593. self.length = length
  14594. self.first_message_offset = first_message_offset
  14595. self.data = data
  14596. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14597. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.sequence, self.target_system, self.target_component, self.length, self.first_message_offset, self.data[0], self.data[1], self.data[2], self.data[3], self.data[4], self.data[5], self.data[6], self.data[7], self.data[8], self.data[9], self.data[10], self.data[11], self.data[12], self.data[13], self.data[14], self.data[15], self.data[16], self.data[17], self.data[18], self.data[19], self.data[20], self.data[21], self.data[22], self.data[23], self.data[24], self.data[25], self.data[26], self.data[27], self.data[28], self.data[29], self.data[30], self.data[31], self.data[32], self.data[33], self.data[34], self.data[35], self.data[36], self.data[37], self.data[38], self.data[39], self.data[40], self.data[41], self.data[42], self.data[43], self.data[44], self.data[45], self.data[46], self.data[47], self.data[48], self.data[49], self.data[50], self.data[51], self.data[52], self.data[53], self.data[54], self.data[55], self.data[56], self.data[57], self.data[58], self.data[59], self.data[60], self.data[61], self.data[62], self.data[63], self.data[64], self.data[65], self.data[66], self.data[67], self.data[68], self.data[69], self.data[70], self.data[71], self.data[72], self.data[73], self.data[74], self.data[75], self.data[76], self.data[77], self.data[78], self.data[79], self.data[80], self.data[81], self.data[82], self.data[83], self.data[84], self.data[85], self.data[86], self.data[87], self.data[88], self.data[89], self.data[90], self.data[91], self.data[92], self.data[93], self.data[94], self.data[95], self.data[96], self.data[97], self.data[98], self.data[99], self.data[100], self.data[101], self.data[102], self.data[103], self.data[104], self.data[105], self.data[106], self.data[107], self.data[108], self.data[109], self.data[110], self.data[111], self.data[112], self.data[113], self.data[114], self.data[115], self.data[116], self.data[117], self.data[118], self.data[119], self.data[120], self.data[121], self.data[122], self.data[123], self.data[124], self.data[125], self.data[126], self.data[127], self.data[128], self.data[129], self.data[130], self.data[131], self.data[132], self.data[133], self.data[134], self.data[135], self.data[136], self.data[137], self.data[138], self.data[139], self.data[140], self.data[141], self.data[142], self.data[143], self.data[144], self.data[145], self.data[146], self.data[147], self.data[148], self.data[149], self.data[150], self.data[151], self.data[152], self.data[153], self.data[154], self.data[155], self.data[156], self.data[157], self.data[158], self.data[159], self.data[160], self.data[161], self.data[162], self.data[163], self.data[164], self.data[165], self.data[166], self.data[167], self.data[168], self.data[169], self.data[170], self.data[171], self.data[172], self.data[173], self.data[174], self.data[175], self.data[176], self.data[177], self.data[178], self.data[179], self.data[180], self.data[181], self.data[182], self.data[183], self.data[184], self.data[185], self.data[186], self.data[187], self.data[188], self.data[189], self.data[190], self.data[191], self.data[192], self.data[193], self.data[194], self.data[195], self.data[196], self.data[197], self.data[198], self.data[199], self.data[200], self.data[201], self.data[202], self.data[203], self.data[204], self.data[205], self.data[206], self.data[207], self.data[208], self.data[209], self.data[210], self.data[211], self.data[212], self.data[213], self.data[214], self.data[215], self.data[216], self.data[217], self.data[218], self.data[219], self.data[220], self.data[221], self.data[222], self.data[223], self.data[224], self.data[225], self.data[226], self.data[227], self.data[228], self.data[229], self.data[230], self.data[231], self.data[232], self.data[233], self.data[234], self.data[235], self.data[236], self.data[237], self.data[238], self.data[239], self.data[240], self.data[241], self.data[242], self.data[243], self.data[244], self.data[245], self.data[246], self.data[247], self.data[248]), force_mavlink1=force_mavlink1)
  14598. # Define name on the class for backwards compatibility (it is now msgname).
  14599. # Done with setattr to hide the class variable from mypy.
  14600. setattr(MAVLink_logging_data_acked_message, "name", mavlink_msg_deprecated_name_property())
  14601. class MAVLink_logging_ack_message(MAVLink_message):
  14602. """
  14603. An ack for a LOGGING_DATA_ACKED message
  14604. """
  14605. id = MAVLINK_MSG_ID_LOGGING_ACK
  14606. msgname = "LOGGING_ACK"
  14607. fieldnames = ["target_system", "target_component", "sequence"]
  14608. ordered_fieldnames = ["sequence", "target_system", "target_component"]
  14609. fieldtypes = ["uint8_t", "uint8_t", "uint16_t"]
  14610. fielddisplays_by_name: Dict[str, str] = {}
  14611. fieldenums_by_name: Dict[str, str] = {}
  14612. fieldunits_by_name: Dict[str, str] = {}
  14613. native_format = bytearray(b"<HBB")
  14614. orders = [1, 2, 0]
  14615. lengths = [1, 1, 1]
  14616. array_lengths = [0, 0, 0]
  14617. crc_extra = 14
  14618. unpacker = struct.Struct("<HBB")
  14619. instance_field = None
  14620. instance_offset = -1
  14621. def __init__(self, target_system: int, target_component: int, sequence: int):
  14622. MAVLink_message.__init__(self, MAVLink_logging_ack_message.id, MAVLink_logging_ack_message.msgname)
  14623. self._fieldnames = MAVLink_logging_ack_message.fieldnames
  14624. self._instance_field = MAVLink_logging_ack_message.instance_field
  14625. self._instance_offset = MAVLink_logging_ack_message.instance_offset
  14626. self.target_system = target_system
  14627. self.target_component = target_component
  14628. self.sequence = sequence
  14629. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14630. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.sequence, self.target_system, self.target_component), force_mavlink1=force_mavlink1)
  14631. # Define name on the class for backwards compatibility (it is now msgname).
  14632. # Done with setattr to hide the class variable from mypy.
  14633. setattr(MAVLink_logging_ack_message, "name", mavlink_msg_deprecated_name_property())
  14634. class MAVLink_video_stream_information_message(MAVLink_message):
  14635. """
  14636. Information about video stream. It may be requested using
  14637. MAV_CMD_REQUEST_MESSAGE, where param2 indicates the video stream
  14638. id: 0 for all streams, 1 for first, 2 for second, etc.
  14639. """
  14640. id = MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION
  14641. msgname = "VIDEO_STREAM_INFORMATION"
  14642. fieldnames = ["stream_id", "count", "type", "flags", "framerate", "resolution_h", "resolution_v", "bitrate", "rotation", "hfov", "name", "uri"]
  14643. ordered_fieldnames = ["framerate", "bitrate", "flags", "resolution_h", "resolution_v", "rotation", "hfov", "stream_id", "count", "type", "name", "uri"]
  14644. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint16_t", "float", "uint16_t", "uint16_t", "uint32_t", "uint16_t", "uint16_t", "char", "char"]
  14645. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  14646. fieldenums_by_name: Dict[str, str] = {"type": "VIDEO_STREAM_TYPE", "flags": "VIDEO_STREAM_STATUS_FLAGS"}
  14647. fieldunits_by_name: Dict[str, str] = {"framerate": "Hz", "resolution_h": "pix", "resolution_v": "pix", "bitrate": "bits/s", "rotation": "deg", "hfov": "deg"}
  14648. native_format = bytearray(b"<fIHHHHHBBBcc")
  14649. orders = [7, 8, 9, 2, 0, 3, 4, 1, 5, 6, 10, 11]
  14650. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  14651. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 160]
  14652. crc_extra = 109
  14653. unpacker = struct.Struct("<fIHHHHHBBB32s160s")
  14654. instance_field = "stream_id"
  14655. instance_offset = 18
  14656. def __init__(self, stream_id: int, count: int, type: int, flags: int, framerate: float, resolution_h: int, resolution_v: int, bitrate: int, rotation: int, hfov: int, name: bytes, uri: bytes):
  14657. MAVLink_message.__init__(self, MAVLink_video_stream_information_message.id, MAVLink_video_stream_information_message.msgname)
  14658. self._fieldnames = MAVLink_video_stream_information_message.fieldnames
  14659. self._instance_field = MAVLink_video_stream_information_message.instance_field
  14660. self._instance_offset = MAVLink_video_stream_information_message.instance_offset
  14661. self.stream_id = stream_id
  14662. self.count = count
  14663. self.type = type
  14664. self.flags = flags
  14665. self.framerate = framerate
  14666. self.resolution_h = resolution_h
  14667. self.resolution_v = resolution_v
  14668. self.bitrate = bitrate
  14669. self.rotation = rotation
  14670. self.hfov = hfov
  14671. self._name_raw = name
  14672. self.name = name.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  14673. self._uri_raw = uri
  14674. self.uri = uri.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  14675. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14676. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.framerate, self.bitrate, self.flags, self.resolution_h, self.resolution_v, self.rotation, self.hfov, self.stream_id, self.count, self.type, self._name_raw, self._uri_raw), force_mavlink1=force_mavlink1)
  14677. # Define name on the class for backwards compatibility (it is now msgname).
  14678. # Done with setattr to hide the class variable from mypy.
  14679. setattr(MAVLink_video_stream_information_message, "name", mavlink_msg_deprecated_name_property())
  14680. class MAVLink_video_stream_status_message(MAVLink_message):
  14681. """
  14682. Information about the status of a video stream. It may be
  14683. requested using MAV_CMD_REQUEST_MESSAGE.
  14684. """
  14685. id = MAVLINK_MSG_ID_VIDEO_STREAM_STATUS
  14686. msgname = "VIDEO_STREAM_STATUS"
  14687. fieldnames = ["stream_id", "flags", "framerate", "resolution_h", "resolution_v", "bitrate", "rotation", "hfov"]
  14688. ordered_fieldnames = ["framerate", "bitrate", "flags", "resolution_h", "resolution_v", "rotation", "hfov", "stream_id"]
  14689. fieldtypes = ["uint8_t", "uint16_t", "float", "uint16_t", "uint16_t", "uint32_t", "uint16_t", "uint16_t"]
  14690. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  14691. fieldenums_by_name: Dict[str, str] = {"flags": "VIDEO_STREAM_STATUS_FLAGS"}
  14692. fieldunits_by_name: Dict[str, str] = {"framerate": "Hz", "resolution_h": "pix", "resolution_v": "pix", "bitrate": "bits/s", "rotation": "deg", "hfov": "deg"}
  14693. native_format = bytearray(b"<fIHHHHHB")
  14694. orders = [7, 2, 0, 3, 4, 1, 5, 6]
  14695. lengths = [1, 1, 1, 1, 1, 1, 1, 1]
  14696. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0]
  14697. crc_extra = 59
  14698. unpacker = struct.Struct("<fIHHHHHB")
  14699. instance_field = "stream_id"
  14700. instance_offset = 18
  14701. def __init__(self, stream_id: int, flags: int, framerate: float, resolution_h: int, resolution_v: int, bitrate: int, rotation: int, hfov: int):
  14702. MAVLink_message.__init__(self, MAVLink_video_stream_status_message.id, MAVLink_video_stream_status_message.msgname)
  14703. self._fieldnames = MAVLink_video_stream_status_message.fieldnames
  14704. self._instance_field = MAVLink_video_stream_status_message.instance_field
  14705. self._instance_offset = MAVLink_video_stream_status_message.instance_offset
  14706. self.stream_id = stream_id
  14707. self.flags = flags
  14708. self.framerate = framerate
  14709. self.resolution_h = resolution_h
  14710. self.resolution_v = resolution_v
  14711. self.bitrate = bitrate
  14712. self.rotation = rotation
  14713. self.hfov = hfov
  14714. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14715. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.framerate, self.bitrate, self.flags, self.resolution_h, self.resolution_v, self.rotation, self.hfov, self.stream_id), force_mavlink1=force_mavlink1)
  14716. # Define name on the class for backwards compatibility (it is now msgname).
  14717. # Done with setattr to hide the class variable from mypy.
  14718. setattr(MAVLink_video_stream_status_message, "name", mavlink_msg_deprecated_name_property())
  14719. class MAVLink_camera_fov_status_message(MAVLink_message):
  14720. """
  14721. Information about the field of view of a camera. Can be requested
  14722. with a MAV_CMD_REQUEST_MESSAGE command.
  14723. """
  14724. id = MAVLINK_MSG_ID_CAMERA_FOV_STATUS
  14725. msgname = "CAMERA_FOV_STATUS"
  14726. fieldnames = ["time_boot_ms", "lat_camera", "lon_camera", "alt_camera", "lat_image", "lon_image", "alt_image", "q", "hfov", "vfov"]
  14727. ordered_fieldnames = ["time_boot_ms", "lat_camera", "lon_camera", "alt_camera", "lat_image", "lon_image", "alt_image", "q", "hfov", "vfov"]
  14728. fieldtypes = ["uint32_t", "int32_t", "int32_t", "int32_t", "int32_t", "int32_t", "int32_t", "float", "float", "float"]
  14729. fielddisplays_by_name: Dict[str, str] = {}
  14730. fieldenums_by_name: Dict[str, str] = {}
  14731. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "lat_camera": "degE7", "lon_camera": "degE7", "alt_camera": "mm", "lat_image": "degE7", "lon_image": "degE7", "alt_image": "mm", "hfov": "deg", "vfov": "deg"}
  14732. native_format = bytearray(b"<Iiiiiiifff")
  14733. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
  14734. lengths = [1, 1, 1, 1, 1, 1, 1, 4, 1, 1]
  14735. array_lengths = [0, 0, 0, 0, 0, 0, 0, 4, 0, 0]
  14736. crc_extra = 22
  14737. unpacker = struct.Struct("<Iiiiiii4fff")
  14738. instance_field = None
  14739. instance_offset = -1
  14740. def __init__(self, time_boot_ms: int, lat_camera: int, lon_camera: int, alt_camera: int, lat_image: int, lon_image: int, alt_image: int, q: Sequence[float], hfov: float, vfov: float):
  14741. MAVLink_message.__init__(self, MAVLink_camera_fov_status_message.id, MAVLink_camera_fov_status_message.msgname)
  14742. self._fieldnames = MAVLink_camera_fov_status_message.fieldnames
  14743. self._instance_field = MAVLink_camera_fov_status_message.instance_field
  14744. self._instance_offset = MAVLink_camera_fov_status_message.instance_offset
  14745. self.time_boot_ms = time_boot_ms
  14746. self.lat_camera = lat_camera
  14747. self.lon_camera = lon_camera
  14748. self.alt_camera = alt_camera
  14749. self.lat_image = lat_image
  14750. self.lon_image = lon_image
  14751. self.alt_image = alt_image
  14752. self.q = q
  14753. self.hfov = hfov
  14754. self.vfov = vfov
  14755. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14756. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.lat_camera, self.lon_camera, self.alt_camera, self.lat_image, self.lon_image, self.alt_image, self.q[0], self.q[1], self.q[2], self.q[3], self.hfov, self.vfov), force_mavlink1=force_mavlink1)
  14757. # Define name on the class for backwards compatibility (it is now msgname).
  14758. # Done with setattr to hide the class variable from mypy.
  14759. setattr(MAVLink_camera_fov_status_message, "name", mavlink_msg_deprecated_name_property())
  14760. class MAVLink_camera_tracking_image_status_message(MAVLink_message):
  14761. """
  14762. Camera tracking status, sent while in active tracking. Use
  14763. MAV_CMD_SET_MESSAGE_INTERVAL to define message interval.
  14764. """
  14765. id = MAVLINK_MSG_ID_CAMERA_TRACKING_IMAGE_STATUS
  14766. msgname = "CAMERA_TRACKING_IMAGE_STATUS"
  14767. fieldnames = ["tracking_status", "tracking_mode", "target_data", "point_x", "point_y", "radius", "rec_top_x", "rec_top_y", "rec_bottom_x", "rec_bottom_y"]
  14768. ordered_fieldnames = ["point_x", "point_y", "radius", "rec_top_x", "rec_top_y", "rec_bottom_x", "rec_bottom_y", "tracking_status", "tracking_mode", "target_data"]
  14769. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "float", "float", "float", "float", "float", "float", "float"]
  14770. fielddisplays_by_name: Dict[str, str] = {"target_data": "bitmask"}
  14771. fieldenums_by_name: Dict[str, str] = {"tracking_status": "CAMERA_TRACKING_STATUS_FLAGS", "tracking_mode": "CAMERA_TRACKING_MODE", "target_data": "CAMERA_TRACKING_TARGET_DATA"}
  14772. fieldunits_by_name: Dict[str, str] = {}
  14773. native_format = bytearray(b"<fffffffBBB")
  14774. orders = [7, 8, 9, 0, 1, 2, 3, 4, 5, 6]
  14775. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  14776. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  14777. crc_extra = 126
  14778. unpacker = struct.Struct("<fffffffBBB")
  14779. instance_field = None
  14780. instance_offset = -1
  14781. def __init__(self, tracking_status: int, tracking_mode: int, target_data: int, point_x: float, point_y: float, radius: float, rec_top_x: float, rec_top_y: float, rec_bottom_x: float, rec_bottom_y: float):
  14782. MAVLink_message.__init__(self, MAVLink_camera_tracking_image_status_message.id, MAVLink_camera_tracking_image_status_message.msgname)
  14783. self._fieldnames = MAVLink_camera_tracking_image_status_message.fieldnames
  14784. self._instance_field = MAVLink_camera_tracking_image_status_message.instance_field
  14785. self._instance_offset = MAVLink_camera_tracking_image_status_message.instance_offset
  14786. self.tracking_status = tracking_status
  14787. self.tracking_mode = tracking_mode
  14788. self.target_data = target_data
  14789. self.point_x = point_x
  14790. self.point_y = point_y
  14791. self.radius = radius
  14792. self.rec_top_x = rec_top_x
  14793. self.rec_top_y = rec_top_y
  14794. self.rec_bottom_x = rec_bottom_x
  14795. self.rec_bottom_y = rec_bottom_y
  14796. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14797. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.point_x, self.point_y, self.radius, self.rec_top_x, self.rec_top_y, self.rec_bottom_x, self.rec_bottom_y, self.tracking_status, self.tracking_mode, self.target_data), force_mavlink1=force_mavlink1)
  14798. # Define name on the class for backwards compatibility (it is now msgname).
  14799. # Done with setattr to hide the class variable from mypy.
  14800. setattr(MAVLink_camera_tracking_image_status_message, "name", mavlink_msg_deprecated_name_property())
  14801. class MAVLink_camera_tracking_geo_status_message(MAVLink_message):
  14802. """
  14803. Camera tracking status, sent while in active tracking. Use
  14804. MAV_CMD_SET_MESSAGE_INTERVAL to define message interval.
  14805. """
  14806. id = MAVLINK_MSG_ID_CAMERA_TRACKING_GEO_STATUS
  14807. msgname = "CAMERA_TRACKING_GEO_STATUS"
  14808. fieldnames = ["tracking_status", "lat", "lon", "alt", "h_acc", "v_acc", "vel_n", "vel_e", "vel_d", "vel_acc", "dist", "hdg", "hdg_acc"]
  14809. ordered_fieldnames = ["lat", "lon", "alt", "h_acc", "v_acc", "vel_n", "vel_e", "vel_d", "vel_acc", "dist", "hdg", "hdg_acc", "tracking_status"]
  14810. fieldtypes = ["uint8_t", "int32_t", "int32_t", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float"]
  14811. fielddisplays_by_name: Dict[str, str] = {}
  14812. fieldenums_by_name: Dict[str, str] = {"tracking_status": "CAMERA_TRACKING_STATUS_FLAGS"}
  14813. fieldunits_by_name: Dict[str, str] = {"lat": "degE7", "lon": "degE7", "alt": "m", "h_acc": "m", "v_acc": "m", "vel_n": "m/s", "vel_e": "m/s", "vel_d": "m/s", "vel_acc": "m/s", "dist": "m", "hdg": "rad", "hdg_acc": "rad"}
  14814. native_format = bytearray(b"<iiffffffffffB")
  14815. orders = [12, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
  14816. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  14817. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  14818. crc_extra = 18
  14819. unpacker = struct.Struct("<iiffffffffffB")
  14820. instance_field = None
  14821. instance_offset = -1
  14822. def __init__(self, tracking_status: int, lat: int, lon: int, alt: float, h_acc: float, v_acc: float, vel_n: float, vel_e: float, vel_d: float, vel_acc: float, dist: float, hdg: float, hdg_acc: float):
  14823. MAVLink_message.__init__(self, MAVLink_camera_tracking_geo_status_message.id, MAVLink_camera_tracking_geo_status_message.msgname)
  14824. self._fieldnames = MAVLink_camera_tracking_geo_status_message.fieldnames
  14825. self._instance_field = MAVLink_camera_tracking_geo_status_message.instance_field
  14826. self._instance_offset = MAVLink_camera_tracking_geo_status_message.instance_offset
  14827. self.tracking_status = tracking_status
  14828. self.lat = lat
  14829. self.lon = lon
  14830. self.alt = alt
  14831. self.h_acc = h_acc
  14832. self.v_acc = v_acc
  14833. self.vel_n = vel_n
  14834. self.vel_e = vel_e
  14835. self.vel_d = vel_d
  14836. self.vel_acc = vel_acc
  14837. self.dist = dist
  14838. self.hdg = hdg
  14839. self.hdg_acc = hdg_acc
  14840. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14841. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.lat, self.lon, self.alt, self.h_acc, self.v_acc, self.vel_n, self.vel_e, self.vel_d, self.vel_acc, self.dist, self.hdg, self.hdg_acc, self.tracking_status), force_mavlink1=force_mavlink1)
  14842. # Define name on the class for backwards compatibility (it is now msgname).
  14843. # Done with setattr to hide the class variable from mypy.
  14844. setattr(MAVLink_camera_tracking_geo_status_message, "name", mavlink_msg_deprecated_name_property())
  14845. class MAVLink_gimbal_manager_information_message(MAVLink_message):
  14846. """
  14847. Information about a high level gimbal manager. This message should
  14848. be requested by a ground station using MAV_CMD_REQUEST_MESSAGE.
  14849. """
  14850. id = MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION
  14851. msgname = "GIMBAL_MANAGER_INFORMATION"
  14852. fieldnames = ["time_boot_ms", "cap_flags", "gimbal_device_id", "roll_min", "roll_max", "pitch_min", "pitch_max", "yaw_min", "yaw_max"]
  14853. ordered_fieldnames = ["time_boot_ms", "cap_flags", "roll_min", "roll_max", "pitch_min", "pitch_max", "yaw_min", "yaw_max", "gimbal_device_id"]
  14854. fieldtypes = ["uint32_t", "uint32_t", "uint8_t", "float", "float", "float", "float", "float", "float"]
  14855. fielddisplays_by_name: Dict[str, str] = {"cap_flags": "bitmask"}
  14856. fieldenums_by_name: Dict[str, str] = {"cap_flags": "GIMBAL_MANAGER_CAP_FLAGS"}
  14857. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "roll_min": "rad", "roll_max": "rad", "pitch_min": "rad", "pitch_max": "rad", "yaw_min": "rad", "yaw_max": "rad"}
  14858. native_format = bytearray(b"<IIffffffB")
  14859. orders = [0, 1, 8, 2, 3, 4, 5, 6, 7]
  14860. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1]
  14861. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0]
  14862. crc_extra = 70
  14863. unpacker = struct.Struct("<IIffffffB")
  14864. instance_field = "gimbal_device_id"
  14865. instance_offset = 32
  14866. def __init__(self, time_boot_ms: int, cap_flags: int, gimbal_device_id: int, roll_min: float, roll_max: float, pitch_min: float, pitch_max: float, yaw_min: float, yaw_max: float):
  14867. MAVLink_message.__init__(self, MAVLink_gimbal_manager_information_message.id, MAVLink_gimbal_manager_information_message.msgname)
  14868. self._fieldnames = MAVLink_gimbal_manager_information_message.fieldnames
  14869. self._instance_field = MAVLink_gimbal_manager_information_message.instance_field
  14870. self._instance_offset = MAVLink_gimbal_manager_information_message.instance_offset
  14871. self.time_boot_ms = time_boot_ms
  14872. self.cap_flags = cap_flags
  14873. self.gimbal_device_id = gimbal_device_id
  14874. self.roll_min = roll_min
  14875. self.roll_max = roll_max
  14876. self.pitch_min = pitch_min
  14877. self.pitch_max = pitch_max
  14878. self.yaw_min = yaw_min
  14879. self.yaw_max = yaw_max
  14880. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14881. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.cap_flags, self.roll_min, self.roll_max, self.pitch_min, self.pitch_max, self.yaw_min, self.yaw_max, self.gimbal_device_id), force_mavlink1=force_mavlink1)
  14882. # Define name on the class for backwards compatibility (it is now msgname).
  14883. # Done with setattr to hide the class variable from mypy.
  14884. setattr(MAVLink_gimbal_manager_information_message, "name", mavlink_msg_deprecated_name_property())
  14885. class MAVLink_gimbal_manager_status_message(MAVLink_message):
  14886. """
  14887. Current status about a high level gimbal manager. This message
  14888. should be broadcast at a low regular rate (e.g. 5Hz).
  14889. """
  14890. id = MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS
  14891. msgname = "GIMBAL_MANAGER_STATUS"
  14892. fieldnames = ["time_boot_ms", "flags", "gimbal_device_id", "primary_control_sysid", "primary_control_compid", "secondary_control_sysid", "secondary_control_compid"]
  14893. ordered_fieldnames = ["time_boot_ms", "flags", "gimbal_device_id", "primary_control_sysid", "primary_control_compid", "secondary_control_sysid", "secondary_control_compid"]
  14894. fieldtypes = ["uint32_t", "uint32_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t"]
  14895. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  14896. fieldenums_by_name: Dict[str, str] = {"flags": "GIMBAL_MANAGER_FLAGS"}
  14897. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms"}
  14898. native_format = bytearray(b"<IIBBBBB")
  14899. orders = [0, 1, 2, 3, 4, 5, 6]
  14900. lengths = [1, 1, 1, 1, 1, 1, 1]
  14901. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  14902. crc_extra = 48
  14903. unpacker = struct.Struct("<IIBBBBB")
  14904. instance_field = "gimbal_device_id"
  14905. instance_offset = 8
  14906. def __init__(self, time_boot_ms: int, flags: int, gimbal_device_id: int, primary_control_sysid: int, primary_control_compid: int, secondary_control_sysid: int, secondary_control_compid: int):
  14907. MAVLink_message.__init__(self, MAVLink_gimbal_manager_status_message.id, MAVLink_gimbal_manager_status_message.msgname)
  14908. self._fieldnames = MAVLink_gimbal_manager_status_message.fieldnames
  14909. self._instance_field = MAVLink_gimbal_manager_status_message.instance_field
  14910. self._instance_offset = MAVLink_gimbal_manager_status_message.instance_offset
  14911. self.time_boot_ms = time_boot_ms
  14912. self.flags = flags
  14913. self.gimbal_device_id = gimbal_device_id
  14914. self.primary_control_sysid = primary_control_sysid
  14915. self.primary_control_compid = primary_control_compid
  14916. self.secondary_control_sysid = secondary_control_sysid
  14917. self.secondary_control_compid = secondary_control_compid
  14918. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14919. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.flags, self.gimbal_device_id, self.primary_control_sysid, self.primary_control_compid, self.secondary_control_sysid, self.secondary_control_compid), force_mavlink1=force_mavlink1)
  14920. # Define name on the class for backwards compatibility (it is now msgname).
  14921. # Done with setattr to hide the class variable from mypy.
  14922. setattr(MAVLink_gimbal_manager_status_message, "name", mavlink_msg_deprecated_name_property())
  14923. class MAVLink_gimbal_manager_set_attitude_message(MAVLink_message):
  14924. """
  14925. High level message to control a gimbal's attitude. This message is
  14926. to be sent to the gimbal manager (e.g. from a ground station).
  14927. Angles and rates can be set to NaN according to use case.
  14928. """
  14929. id = MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_ATTITUDE
  14930. msgname = "GIMBAL_MANAGER_SET_ATTITUDE"
  14931. fieldnames = ["target_system", "target_component", "flags", "gimbal_device_id", "q", "angular_velocity_x", "angular_velocity_y", "angular_velocity_z"]
  14932. ordered_fieldnames = ["flags", "q", "angular_velocity_x", "angular_velocity_y", "angular_velocity_z", "target_system", "target_component", "gimbal_device_id"]
  14933. fieldtypes = ["uint8_t", "uint8_t", "uint32_t", "uint8_t", "float", "float", "float", "float"]
  14934. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  14935. fieldenums_by_name: Dict[str, str] = {"flags": "GIMBAL_MANAGER_FLAGS"}
  14936. fieldunits_by_name: Dict[str, str] = {"angular_velocity_x": "rad/s", "angular_velocity_y": "rad/s", "angular_velocity_z": "rad/s"}
  14937. native_format = bytearray(b"<IffffBBB")
  14938. orders = [5, 6, 0, 7, 1, 2, 3, 4]
  14939. lengths = [1, 4, 1, 1, 1, 1, 1, 1]
  14940. array_lengths = [0, 4, 0, 0, 0, 0, 0, 0]
  14941. crc_extra = 123
  14942. unpacker = struct.Struct("<I4ffffBBB")
  14943. instance_field = "gimbal_device_id"
  14944. instance_offset = 34
  14945. def __init__(self, target_system: int, target_component: int, flags: int, gimbal_device_id: int, q: Sequence[float], angular_velocity_x: float, angular_velocity_y: float, angular_velocity_z: float):
  14946. MAVLink_message.__init__(self, MAVLink_gimbal_manager_set_attitude_message.id, MAVLink_gimbal_manager_set_attitude_message.msgname)
  14947. self._fieldnames = MAVLink_gimbal_manager_set_attitude_message.fieldnames
  14948. self._instance_field = MAVLink_gimbal_manager_set_attitude_message.instance_field
  14949. self._instance_offset = MAVLink_gimbal_manager_set_attitude_message.instance_offset
  14950. self.target_system = target_system
  14951. self.target_component = target_component
  14952. self.flags = flags
  14953. self.gimbal_device_id = gimbal_device_id
  14954. self.q = q
  14955. self.angular_velocity_x = angular_velocity_x
  14956. self.angular_velocity_y = angular_velocity_y
  14957. self.angular_velocity_z = angular_velocity_z
  14958. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14959. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.flags, self.q[0], self.q[1], self.q[2], self.q[3], self.angular_velocity_x, self.angular_velocity_y, self.angular_velocity_z, self.target_system, self.target_component, self.gimbal_device_id), force_mavlink1=force_mavlink1)
  14960. # Define name on the class for backwards compatibility (it is now msgname).
  14961. # Done with setattr to hide the class variable from mypy.
  14962. setattr(MAVLink_gimbal_manager_set_attitude_message, "name", mavlink_msg_deprecated_name_property())
  14963. class MAVLink_gimbal_device_information_message(MAVLink_message):
  14964. """
  14965. Information about a low level gimbal. This message should be
  14966. requested by the gimbal manager or a ground station using
  14967. MAV_CMD_REQUEST_MESSAGE. The maximum angles and rates are the
  14968. limits by hardware. However, the limits by software used are
  14969. likely different/smaller and dependent on mode/settings/etc..
  14970. """
  14971. id = MAVLINK_MSG_ID_GIMBAL_DEVICE_INFORMATION
  14972. msgname = "GIMBAL_DEVICE_INFORMATION"
  14973. fieldnames = ["time_boot_ms", "vendor_name", "model_name", "custom_name", "firmware_version", "hardware_version", "uid", "cap_flags", "custom_cap_flags", "roll_min", "roll_max", "pitch_min", "pitch_max", "yaw_min", "yaw_max", "gimbal_device_id"]
  14974. ordered_fieldnames = ["uid", "time_boot_ms", "firmware_version", "hardware_version", "roll_min", "roll_max", "pitch_min", "pitch_max", "yaw_min", "yaw_max", "cap_flags", "custom_cap_flags", "vendor_name", "model_name", "custom_name", "gimbal_device_id"]
  14975. fieldtypes = ["uint32_t", "char", "char", "char", "uint32_t", "uint32_t", "uint64_t", "uint16_t", "uint16_t", "float", "float", "float", "float", "float", "float", "uint8_t"]
  14976. fielddisplays_by_name: Dict[str, str] = {"cap_flags": "bitmask", "custom_cap_flags": "bitmask"}
  14977. fieldenums_by_name: Dict[str, str] = {"cap_flags": "GIMBAL_DEVICE_CAP_FLAGS"}
  14978. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "roll_min": "rad", "roll_max": "rad", "pitch_min": "rad", "pitch_max": "rad", "yaw_min": "rad", "yaw_max": "rad"}
  14979. native_format = bytearray(b"<QIIIffffffHHcccB")
  14980. orders = [1, 12, 13, 14, 2, 3, 0, 10, 11, 4, 5, 6, 7, 8, 9, 15]
  14981. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  14982. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 32, 32, 0]
  14983. crc_extra = 74
  14984. unpacker = struct.Struct("<QIIIffffffHH32s32s32sB")
  14985. instance_field = None
  14986. instance_offset = -1
  14987. def __init__(self, time_boot_ms: int, vendor_name: bytes, model_name: bytes, custom_name: bytes, firmware_version: int, hardware_version: int, uid: int, cap_flags: int, custom_cap_flags: int, roll_min: float, roll_max: float, pitch_min: float, pitch_max: float, yaw_min: float, yaw_max: float, gimbal_device_id: int = 0):
  14988. MAVLink_message.__init__(self, MAVLink_gimbal_device_information_message.id, MAVLink_gimbal_device_information_message.msgname)
  14989. self._fieldnames = MAVLink_gimbal_device_information_message.fieldnames
  14990. self._instance_field = MAVLink_gimbal_device_information_message.instance_field
  14991. self._instance_offset = MAVLink_gimbal_device_information_message.instance_offset
  14992. self.time_boot_ms = time_boot_ms
  14993. self._vendor_name_raw = vendor_name
  14994. self.vendor_name = vendor_name.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  14995. self._model_name_raw = model_name
  14996. self.model_name = model_name.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  14997. self._custom_name_raw = custom_name
  14998. self.custom_name = custom_name.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  14999. self.firmware_version = firmware_version
  15000. self.hardware_version = hardware_version
  15001. self.uid = uid
  15002. self.cap_flags = cap_flags
  15003. self.custom_cap_flags = custom_cap_flags
  15004. self.roll_min = roll_min
  15005. self.roll_max = roll_max
  15006. self.pitch_min = pitch_min
  15007. self.pitch_max = pitch_max
  15008. self.yaw_min = yaw_min
  15009. self.yaw_max = yaw_max
  15010. self.gimbal_device_id = gimbal_device_id
  15011. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15012. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.uid, self.time_boot_ms, self.firmware_version, self.hardware_version, self.roll_min, self.roll_max, self.pitch_min, self.pitch_max, self.yaw_min, self.yaw_max, self.cap_flags, self.custom_cap_flags, self._vendor_name_raw, self._model_name_raw, self._custom_name_raw, self.gimbal_device_id), force_mavlink1=force_mavlink1)
  15013. # Define name on the class for backwards compatibility (it is now msgname).
  15014. # Done with setattr to hide the class variable from mypy.
  15015. setattr(MAVLink_gimbal_device_information_message, "name", mavlink_msg_deprecated_name_property())
  15016. class MAVLink_gimbal_device_set_attitude_message(MAVLink_message):
  15017. """
  15018. Low level message to control a gimbal device's attitude.
  15019. This message is to be sent from the gimbal manager to the gimbal
  15020. device component. The quaternion and angular velocities
  15021. can be set to NaN according to use case. For the angles
  15022. encoded in the quaternion and the angular velocities holds:
  15023. If the flag GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME is set, then
  15024. they are relative to the vehicle heading (vehicle frame).
  15025. If the flag GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME is set, then
  15026. they are relative to absolute North (earth frame). If
  15027. neither of these flags are set, then (for backwards compatibility)
  15028. it holds: If the flag GIMBAL_DEVICE_FLAGS_YAW_LOCK is
  15029. set, then they are relative to absolute North (earth frame),
  15030. else they are relative to the vehicle heading (vehicle frame).
  15031. Setting both GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME and
  15032. GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME is not allowed.
  15033. These rules are to ensure backwards compatibility. New
  15034. implementations should always set either
  15035. GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME or
  15036. GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME.
  15037. """
  15038. id = MAVLINK_MSG_ID_GIMBAL_DEVICE_SET_ATTITUDE
  15039. msgname = "GIMBAL_DEVICE_SET_ATTITUDE"
  15040. fieldnames = ["target_system", "target_component", "flags", "q", "angular_velocity_x", "angular_velocity_y", "angular_velocity_z"]
  15041. ordered_fieldnames = ["q", "angular_velocity_x", "angular_velocity_y", "angular_velocity_z", "flags", "target_system", "target_component"]
  15042. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "float", "float", "float", "float"]
  15043. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  15044. fieldenums_by_name: Dict[str, str] = {"flags": "GIMBAL_DEVICE_FLAGS"}
  15045. fieldunits_by_name: Dict[str, str] = {"angular_velocity_x": "rad/s", "angular_velocity_y": "rad/s", "angular_velocity_z": "rad/s"}
  15046. native_format = bytearray(b"<ffffHBB")
  15047. orders = [5, 6, 4, 0, 1, 2, 3]
  15048. lengths = [4, 1, 1, 1, 1, 1, 1]
  15049. array_lengths = [4, 0, 0, 0, 0, 0, 0]
  15050. crc_extra = 99
  15051. unpacker = struct.Struct("<4ffffHBB")
  15052. instance_field = None
  15053. instance_offset = -1
  15054. def __init__(self, target_system: int, target_component: int, flags: int, q: Sequence[float], angular_velocity_x: float, angular_velocity_y: float, angular_velocity_z: float):
  15055. MAVLink_message.__init__(self, MAVLink_gimbal_device_set_attitude_message.id, MAVLink_gimbal_device_set_attitude_message.msgname)
  15056. self._fieldnames = MAVLink_gimbal_device_set_attitude_message.fieldnames
  15057. self._instance_field = MAVLink_gimbal_device_set_attitude_message.instance_field
  15058. self._instance_offset = MAVLink_gimbal_device_set_attitude_message.instance_offset
  15059. self.target_system = target_system
  15060. self.target_component = target_component
  15061. self.flags = flags
  15062. self.q = q
  15063. self.angular_velocity_x = angular_velocity_x
  15064. self.angular_velocity_y = angular_velocity_y
  15065. self.angular_velocity_z = angular_velocity_z
  15066. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15067. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.q[0], self.q[1], self.q[2], self.q[3], self.angular_velocity_x, self.angular_velocity_y, self.angular_velocity_z, self.flags, self.target_system, self.target_component), force_mavlink1=force_mavlink1)
  15068. # Define name on the class for backwards compatibility (it is now msgname).
  15069. # Done with setattr to hide the class variable from mypy.
  15070. setattr(MAVLink_gimbal_device_set_attitude_message, "name", mavlink_msg_deprecated_name_property())
  15071. class MAVLink_gimbal_device_attitude_status_message(MAVLink_message):
  15072. """
  15073. Message reporting the status of a gimbal device. This
  15074. message should be broadcast by a gimbal device component at a low
  15075. regular rate (e.g. 5 Hz). For the angles encoded in the
  15076. quaternion and the angular velocities holds: If the flag
  15077. GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME is set, then they are
  15078. relative to the vehicle heading (vehicle frame). If the
  15079. flag GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME is set, then they are
  15080. relative to absolute North (earth frame). If neither of
  15081. these flags are set, then (for backwards compatibility) it holds:
  15082. If the flag GIMBAL_DEVICE_FLAGS_YAW_LOCK is set, then they are
  15083. relative to absolute North (earth frame), else they are
  15084. relative to the vehicle heading (vehicle frame). Other
  15085. conditions of the flags are not allowed. The quaternion
  15086. and angular velocities in the other frame can be calculated from
  15087. delta_yaw and delta_yaw_velocity as q_earth =
  15088. q_delta_yaw * q_vehicle and w_earth = w_delta_yaw_velocity +
  15089. w_vehicle (if not NaN). If neither the
  15090. GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME nor the
  15091. GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME flag is set, then
  15092. (for backwards compatibility) the data in the delta_yaw and
  15093. delta_yaw_velocity fields are to be ignored. New
  15094. implementations should always set either
  15095. GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME or
  15096. GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME, and always
  15097. should set delta_yaw and delta_yaw_velocity either to the proper
  15098. value or NaN.
  15099. """
  15100. id = MAVLINK_MSG_ID_GIMBAL_DEVICE_ATTITUDE_STATUS
  15101. msgname = "GIMBAL_DEVICE_ATTITUDE_STATUS"
  15102. fieldnames = ["target_system", "target_component", "time_boot_ms", "flags", "q", "angular_velocity_x", "angular_velocity_y", "angular_velocity_z", "failure_flags", "delta_yaw", "delta_yaw_velocity", "gimbal_device_id"]
  15103. ordered_fieldnames = ["time_boot_ms", "q", "angular_velocity_x", "angular_velocity_y", "angular_velocity_z", "failure_flags", "flags", "target_system", "target_component", "delta_yaw", "delta_yaw_velocity", "gimbal_device_id"]
  15104. fieldtypes = ["uint8_t", "uint8_t", "uint32_t", "uint16_t", "float", "float", "float", "float", "uint32_t", "float", "float", "uint8_t"]
  15105. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask", "failure_flags": "bitmask"}
  15106. fieldenums_by_name: Dict[str, str] = {"flags": "GIMBAL_DEVICE_FLAGS", "failure_flags": "GIMBAL_DEVICE_ERROR_FLAGS"}
  15107. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "angular_velocity_x": "rad/s", "angular_velocity_y": "rad/s", "angular_velocity_z": "rad/s", "delta_yaw": "rad", "delta_yaw_velocity": "rad/s"}
  15108. native_format = bytearray(b"<IffffIHBBffB")
  15109. orders = [7, 8, 0, 6, 1, 2, 3, 4, 5, 9, 10, 11]
  15110. lengths = [1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  15111. array_lengths = [0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  15112. crc_extra = 137
  15113. unpacker = struct.Struct("<I4ffffIHBBffB")
  15114. instance_field = None
  15115. instance_offset = -1
  15116. def __init__(self, target_system: int, target_component: int, time_boot_ms: int, flags: int, q: Sequence[float], angular_velocity_x: float, angular_velocity_y: float, angular_velocity_z: float, failure_flags: int, delta_yaw: float = 0, delta_yaw_velocity: float = 0, gimbal_device_id: int = 0):
  15117. MAVLink_message.__init__(self, MAVLink_gimbal_device_attitude_status_message.id, MAVLink_gimbal_device_attitude_status_message.msgname)
  15118. self._fieldnames = MAVLink_gimbal_device_attitude_status_message.fieldnames
  15119. self._instance_field = MAVLink_gimbal_device_attitude_status_message.instance_field
  15120. self._instance_offset = MAVLink_gimbal_device_attitude_status_message.instance_offset
  15121. self.target_system = target_system
  15122. self.target_component = target_component
  15123. self.time_boot_ms = time_boot_ms
  15124. self.flags = flags
  15125. self.q = q
  15126. self.angular_velocity_x = angular_velocity_x
  15127. self.angular_velocity_y = angular_velocity_y
  15128. self.angular_velocity_z = angular_velocity_z
  15129. self.failure_flags = failure_flags
  15130. self.delta_yaw = delta_yaw
  15131. self.delta_yaw_velocity = delta_yaw_velocity
  15132. self.gimbal_device_id = gimbal_device_id
  15133. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15134. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.q[0], self.q[1], self.q[2], self.q[3], self.angular_velocity_x, self.angular_velocity_y, self.angular_velocity_z, self.failure_flags, self.flags, self.target_system, self.target_component, self.delta_yaw, self.delta_yaw_velocity, self.gimbal_device_id), force_mavlink1=force_mavlink1)
  15135. # Define name on the class for backwards compatibility (it is now msgname).
  15136. # Done with setattr to hide the class variable from mypy.
  15137. setattr(MAVLink_gimbal_device_attitude_status_message, "name", mavlink_msg_deprecated_name_property())
  15138. class MAVLink_autopilot_state_for_gimbal_device_message(MAVLink_message):
  15139. """
  15140. Low level message containing autopilot state relevant for a gimbal
  15141. device. This message is to be sent from the autopilot to the
  15142. gimbal device component. The data of this message are for the
  15143. gimbal device's estimator corrections, in particular horizon
  15144. compensation, as well as indicates autopilot control intentions,
  15145. e.g. feed forward angular control in the z-axis.
  15146. """
  15147. id = MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE
  15148. msgname = "AUTOPILOT_STATE_FOR_GIMBAL_DEVICE"
  15149. fieldnames = ["target_system", "target_component", "time_boot_us", "q", "q_estimated_delay_us", "vx", "vy", "vz", "v_estimated_delay_us", "feed_forward_angular_velocity_z", "estimator_status", "landed_state", "angular_velocity_z"]
  15150. ordered_fieldnames = ["time_boot_us", "q", "q_estimated_delay_us", "vx", "vy", "vz", "v_estimated_delay_us", "feed_forward_angular_velocity_z", "estimator_status", "target_system", "target_component", "landed_state", "angular_velocity_z"]
  15151. fieldtypes = ["uint8_t", "uint8_t", "uint64_t", "float", "uint32_t", "float", "float", "float", "uint32_t", "float", "uint16_t", "uint8_t", "float"]
  15152. fielddisplays_by_name: Dict[str, str] = {"estimator_status": "bitmask"}
  15153. fieldenums_by_name: Dict[str, str] = {"estimator_status": "ESTIMATOR_STATUS_FLAGS", "landed_state": "MAV_LANDED_STATE"}
  15154. fieldunits_by_name: Dict[str, str] = {"time_boot_us": "us", "q_estimated_delay_us": "us", "vx": "m/s", "vy": "m/s", "vz": "m/s", "v_estimated_delay_us": "us", "feed_forward_angular_velocity_z": "rad/s", "angular_velocity_z": "rad/s"}
  15155. native_format = bytearray(b"<QfIfffIfHBBBf")
  15156. orders = [9, 10, 0, 1, 2, 3, 4, 5, 6, 7, 8, 11, 12]
  15157. lengths = [1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  15158. array_lengths = [0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  15159. crc_extra = 210
  15160. unpacker = struct.Struct("<Q4fIfffIfHBBBf")
  15161. instance_field = None
  15162. instance_offset = -1
  15163. def __init__(self, target_system: int, target_component: int, time_boot_us: int, q: Sequence[float], q_estimated_delay_us: int, vx: float, vy: float, vz: float, v_estimated_delay_us: int, feed_forward_angular_velocity_z: float, estimator_status: int, landed_state: int, angular_velocity_z: float = 0):
  15164. MAVLink_message.__init__(self, MAVLink_autopilot_state_for_gimbal_device_message.id, MAVLink_autopilot_state_for_gimbal_device_message.msgname)
  15165. self._fieldnames = MAVLink_autopilot_state_for_gimbal_device_message.fieldnames
  15166. self._instance_field = MAVLink_autopilot_state_for_gimbal_device_message.instance_field
  15167. self._instance_offset = MAVLink_autopilot_state_for_gimbal_device_message.instance_offset
  15168. self.target_system = target_system
  15169. self.target_component = target_component
  15170. self.time_boot_us = time_boot_us
  15171. self.q = q
  15172. self.q_estimated_delay_us = q_estimated_delay_us
  15173. self.vx = vx
  15174. self.vy = vy
  15175. self.vz = vz
  15176. self.v_estimated_delay_us = v_estimated_delay_us
  15177. self.feed_forward_angular_velocity_z = feed_forward_angular_velocity_z
  15178. self.estimator_status = estimator_status
  15179. self.landed_state = landed_state
  15180. self.angular_velocity_z = angular_velocity_z
  15181. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15182. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_us, self.q[0], self.q[1], self.q[2], self.q[3], self.q_estimated_delay_us, self.vx, self.vy, self.vz, self.v_estimated_delay_us, self.feed_forward_angular_velocity_z, self.estimator_status, self.target_system, self.target_component, self.landed_state, self.angular_velocity_z), force_mavlink1=force_mavlink1)
  15183. # Define name on the class for backwards compatibility (it is now msgname).
  15184. # Done with setattr to hide the class variable from mypy.
  15185. setattr(MAVLink_autopilot_state_for_gimbal_device_message, "name", mavlink_msg_deprecated_name_property())
  15186. class MAVLink_gimbal_manager_set_pitchyaw_message(MAVLink_message):
  15187. """
  15188. Set gimbal manager pitch and yaw angles (high rate message). This
  15189. message is to be sent to the gimbal manager (e.g. from a ground
  15190. station) and will be ignored by gimbal devices. Angles and rates
  15191. can be set to NaN according to use case. Use
  15192. MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW for low-rate adjustments that
  15193. require confirmation.
  15194. """
  15195. id = MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_PITCHYAW
  15196. msgname = "GIMBAL_MANAGER_SET_PITCHYAW"
  15197. fieldnames = ["target_system", "target_component", "flags", "gimbal_device_id", "pitch", "yaw", "pitch_rate", "yaw_rate"]
  15198. ordered_fieldnames = ["flags", "pitch", "yaw", "pitch_rate", "yaw_rate", "target_system", "target_component", "gimbal_device_id"]
  15199. fieldtypes = ["uint8_t", "uint8_t", "uint32_t", "uint8_t", "float", "float", "float", "float"]
  15200. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  15201. fieldenums_by_name: Dict[str, str] = {"flags": "GIMBAL_MANAGER_FLAGS"}
  15202. fieldunits_by_name: Dict[str, str] = {"pitch": "rad", "yaw": "rad", "pitch_rate": "rad/s", "yaw_rate": "rad/s"}
  15203. native_format = bytearray(b"<IffffBBB")
  15204. orders = [5, 6, 0, 7, 1, 2, 3, 4]
  15205. lengths = [1, 1, 1, 1, 1, 1, 1, 1]
  15206. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0]
  15207. crc_extra = 1
  15208. unpacker = struct.Struct("<IffffBBB")
  15209. instance_field = "gimbal_device_id"
  15210. instance_offset = 22
  15211. def __init__(self, target_system: int, target_component: int, flags: int, gimbal_device_id: int, pitch: float, yaw: float, pitch_rate: float, yaw_rate: float):
  15212. MAVLink_message.__init__(self, MAVLink_gimbal_manager_set_pitchyaw_message.id, MAVLink_gimbal_manager_set_pitchyaw_message.msgname)
  15213. self._fieldnames = MAVLink_gimbal_manager_set_pitchyaw_message.fieldnames
  15214. self._instance_field = MAVLink_gimbal_manager_set_pitchyaw_message.instance_field
  15215. self._instance_offset = MAVLink_gimbal_manager_set_pitchyaw_message.instance_offset
  15216. self.target_system = target_system
  15217. self.target_component = target_component
  15218. self.flags = flags
  15219. self.gimbal_device_id = gimbal_device_id
  15220. self.pitch = pitch
  15221. self.yaw = yaw
  15222. self.pitch_rate = pitch_rate
  15223. self.yaw_rate = yaw_rate
  15224. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15225. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.flags, self.pitch, self.yaw, self.pitch_rate, self.yaw_rate, self.target_system, self.target_component, self.gimbal_device_id), force_mavlink1=force_mavlink1)
  15226. # Define name on the class for backwards compatibility (it is now msgname).
  15227. # Done with setattr to hide the class variable from mypy.
  15228. setattr(MAVLink_gimbal_manager_set_pitchyaw_message, "name", mavlink_msg_deprecated_name_property())
  15229. class MAVLink_gimbal_manager_set_manual_control_message(MAVLink_message):
  15230. """
  15231. High level message to control a gimbal manually. The angles or
  15232. angular rates are unitless; the actual rates will depend on
  15233. internal gimbal manager settings/configuration (e.g. set by
  15234. parameters). This message is to be sent to the gimbal manager
  15235. (e.g. from a ground station). Angles and rates can be set to NaN
  15236. according to use case.
  15237. """
  15238. id = MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_MANUAL_CONTROL
  15239. msgname = "GIMBAL_MANAGER_SET_MANUAL_CONTROL"
  15240. fieldnames = ["target_system", "target_component", "flags", "gimbal_device_id", "pitch", "yaw", "pitch_rate", "yaw_rate"]
  15241. ordered_fieldnames = ["flags", "pitch", "yaw", "pitch_rate", "yaw_rate", "target_system", "target_component", "gimbal_device_id"]
  15242. fieldtypes = ["uint8_t", "uint8_t", "uint32_t", "uint8_t", "float", "float", "float", "float"]
  15243. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  15244. fieldenums_by_name: Dict[str, str] = {"flags": "GIMBAL_MANAGER_FLAGS"}
  15245. fieldunits_by_name: Dict[str, str] = {}
  15246. native_format = bytearray(b"<IffffBBB")
  15247. orders = [5, 6, 0, 7, 1, 2, 3, 4]
  15248. lengths = [1, 1, 1, 1, 1, 1, 1, 1]
  15249. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0]
  15250. crc_extra = 20
  15251. unpacker = struct.Struct("<IffffBBB")
  15252. instance_field = "gimbal_device_id"
  15253. instance_offset = 22
  15254. def __init__(self, target_system: int, target_component: int, flags: int, gimbal_device_id: int, pitch: float, yaw: float, pitch_rate: float, yaw_rate: float):
  15255. MAVLink_message.__init__(self, MAVLink_gimbal_manager_set_manual_control_message.id, MAVLink_gimbal_manager_set_manual_control_message.msgname)
  15256. self._fieldnames = MAVLink_gimbal_manager_set_manual_control_message.fieldnames
  15257. self._instance_field = MAVLink_gimbal_manager_set_manual_control_message.instance_field
  15258. self._instance_offset = MAVLink_gimbal_manager_set_manual_control_message.instance_offset
  15259. self.target_system = target_system
  15260. self.target_component = target_component
  15261. self.flags = flags
  15262. self.gimbal_device_id = gimbal_device_id
  15263. self.pitch = pitch
  15264. self.yaw = yaw
  15265. self.pitch_rate = pitch_rate
  15266. self.yaw_rate = yaw_rate
  15267. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15268. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.flags, self.pitch, self.yaw, self.pitch_rate, self.yaw_rate, self.target_system, self.target_component, self.gimbal_device_id), force_mavlink1=force_mavlink1)
  15269. # Define name on the class for backwards compatibility (it is now msgname).
  15270. # Done with setattr to hide the class variable from mypy.
  15271. setattr(MAVLink_gimbal_manager_set_manual_control_message, "name", mavlink_msg_deprecated_name_property())
  15272. class MAVLink_esc_info_message(MAVLink_message):
  15273. """
  15274. ESC information for lower rate streaming. Recommended streaming
  15275. rate 1Hz. See ESC_STATUS for higher-rate ESC data.
  15276. """
  15277. id = MAVLINK_MSG_ID_ESC_INFO
  15278. msgname = "ESC_INFO"
  15279. fieldnames = ["index", "time_usec", "counter", "count", "connection_type", "info", "failure_flags", "error_count", "temperature"]
  15280. ordered_fieldnames = ["time_usec", "error_count", "counter", "failure_flags", "temperature", "index", "count", "connection_type", "info"]
  15281. fieldtypes = ["uint8_t", "uint64_t", "uint16_t", "uint8_t", "uint8_t", "uint8_t", "uint16_t", "uint32_t", "int16_t"]
  15282. fielddisplays_by_name: Dict[str, str] = {"info": "bitmask", "failure_flags": "bitmask"}
  15283. fieldenums_by_name: Dict[str, str] = {"connection_type": "ESC_CONNECTION_TYPE", "failure_flags": "ESC_FAILURE_FLAGS"}
  15284. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "temperature": "cdegC"}
  15285. native_format = bytearray(b"<QIHHhBBBB")
  15286. orders = [5, 0, 2, 6, 7, 8, 3, 1, 4]
  15287. lengths = [1, 4, 1, 4, 4, 1, 1, 1, 1]
  15288. array_lengths = [0, 4, 0, 4, 4, 0, 0, 0, 0]
  15289. crc_extra = 251
  15290. unpacker = struct.Struct("<Q4IH4H4hBBBB")
  15291. instance_field = "index"
  15292. instance_offset = 42
  15293. def __init__(self, index: int, time_usec: int, counter: int, count: int, connection_type: int, info: int, failure_flags: Sequence[int], error_count: Sequence[int], temperature: Sequence[int]):
  15294. MAVLink_message.__init__(self, MAVLink_esc_info_message.id, MAVLink_esc_info_message.msgname)
  15295. self._fieldnames = MAVLink_esc_info_message.fieldnames
  15296. self._instance_field = MAVLink_esc_info_message.instance_field
  15297. self._instance_offset = MAVLink_esc_info_message.instance_offset
  15298. self.index = index
  15299. self.time_usec = time_usec
  15300. self.counter = counter
  15301. self.count = count
  15302. self.connection_type = connection_type
  15303. self.info = info
  15304. self.failure_flags = failure_flags
  15305. self.error_count = error_count
  15306. self.temperature = temperature
  15307. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15308. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.error_count[0], self.error_count[1], self.error_count[2], self.error_count[3], self.counter, self.failure_flags[0], self.failure_flags[1], self.failure_flags[2], self.failure_flags[3], self.temperature[0], self.temperature[1], self.temperature[2], self.temperature[3], self.index, self.count, self.connection_type, self.info), force_mavlink1=force_mavlink1)
  15309. # Define name on the class for backwards compatibility (it is now msgname).
  15310. # Done with setattr to hide the class variable from mypy.
  15311. setattr(MAVLink_esc_info_message, "name", mavlink_msg_deprecated_name_property())
  15312. class MAVLink_esc_status_message(MAVLink_message):
  15313. """
  15314. ESC information for higher rate streaming. Recommended streaming
  15315. rate is ~10 Hz. Information that changes more slowly is sent in
  15316. ESC_INFO. It should typically only be streamed on high-bandwidth
  15317. links (i.e. to a companion computer).
  15318. """
  15319. id = MAVLINK_MSG_ID_ESC_STATUS
  15320. msgname = "ESC_STATUS"
  15321. fieldnames = ["index", "time_usec", "rpm", "voltage", "current"]
  15322. ordered_fieldnames = ["time_usec", "rpm", "voltage", "current", "index"]
  15323. fieldtypes = ["uint8_t", "uint64_t", "int32_t", "float", "float"]
  15324. fielddisplays_by_name: Dict[str, str] = {}
  15325. fieldenums_by_name: Dict[str, str] = {}
  15326. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "rpm": "rpm", "voltage": "V", "current": "A"}
  15327. native_format = bytearray(b"<QiffB")
  15328. orders = [4, 0, 1, 2, 3]
  15329. lengths = [1, 4, 4, 4, 1]
  15330. array_lengths = [0, 4, 4, 4, 0]
  15331. crc_extra = 10
  15332. unpacker = struct.Struct("<Q4i4f4fB")
  15333. instance_field = "index"
  15334. instance_offset = 56
  15335. def __init__(self, index: int, time_usec: int, rpm: Sequence[int], voltage: Sequence[float], current: Sequence[float]):
  15336. MAVLink_message.__init__(self, MAVLink_esc_status_message.id, MAVLink_esc_status_message.msgname)
  15337. self._fieldnames = MAVLink_esc_status_message.fieldnames
  15338. self._instance_field = MAVLink_esc_status_message.instance_field
  15339. self._instance_offset = MAVLink_esc_status_message.instance_offset
  15340. self.index = index
  15341. self.time_usec = time_usec
  15342. self.rpm = rpm
  15343. self.voltage = voltage
  15344. self.current = current
  15345. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15346. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.rpm[0], self.rpm[1], self.rpm[2], self.rpm[3], self.voltage[0], self.voltage[1], self.voltage[2], self.voltage[3], self.current[0], self.current[1], self.current[2], self.current[3], self.index), force_mavlink1=force_mavlink1)
  15347. # Define name on the class for backwards compatibility (it is now msgname).
  15348. # Done with setattr to hide the class variable from mypy.
  15349. setattr(MAVLink_esc_status_message, "name", mavlink_msg_deprecated_name_property())
  15350. class MAVLink_wifi_config_ap_message(MAVLink_message):
  15351. """
  15352. Configure WiFi AP SSID, password, and mode. This message is re-
  15353. emitted as an acknowledgement by the AP. The message may also be
  15354. explicitly requested using MAV_CMD_REQUEST_MESSAGE
  15355. """
  15356. id = MAVLINK_MSG_ID_WIFI_CONFIG_AP
  15357. msgname = "WIFI_CONFIG_AP"
  15358. fieldnames = ["ssid", "password", "mode", "response"]
  15359. ordered_fieldnames = ["ssid", "password", "mode", "response"]
  15360. fieldtypes = ["char", "char", "int8_t", "int8_t"]
  15361. fielddisplays_by_name: Dict[str, str] = {}
  15362. fieldenums_by_name: Dict[str, str] = {"mode": "WIFI_CONFIG_AP_MODE", "response": "WIFI_CONFIG_AP_RESPONSE"}
  15363. fieldunits_by_name: Dict[str, str] = {}
  15364. native_format = bytearray(b"<ccbb")
  15365. orders = [0, 1, 2, 3]
  15366. lengths = [1, 1, 1, 1]
  15367. array_lengths = [32, 64, 0, 0]
  15368. crc_extra = 19
  15369. unpacker = struct.Struct("<32s64sbb")
  15370. instance_field = None
  15371. instance_offset = -1
  15372. def __init__(self, ssid: bytes, password: bytes, mode: int = 0, response: int = 0):
  15373. MAVLink_message.__init__(self, MAVLink_wifi_config_ap_message.id, MAVLink_wifi_config_ap_message.msgname)
  15374. self._fieldnames = MAVLink_wifi_config_ap_message.fieldnames
  15375. self._instance_field = MAVLink_wifi_config_ap_message.instance_field
  15376. self._instance_offset = MAVLink_wifi_config_ap_message.instance_offset
  15377. self._ssid_raw = ssid
  15378. self.ssid = ssid.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15379. self._password_raw = password
  15380. self.password = password.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15381. self.mode = mode
  15382. self.response = response
  15383. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15384. return self._pack(mav, self.crc_extra, self.unpacker.pack(self._ssid_raw, self._password_raw, self.mode, self.response), force_mavlink1=force_mavlink1)
  15385. # Define name on the class for backwards compatibility (it is now msgname).
  15386. # Done with setattr to hide the class variable from mypy.
  15387. setattr(MAVLink_wifi_config_ap_message, "name", mavlink_msg_deprecated_name_property())
  15388. class MAVLink_ais_vessel_message(MAVLink_message):
  15389. """
  15390. The location and information of an AIS vessel
  15391. """
  15392. id = MAVLINK_MSG_ID_AIS_VESSEL
  15393. msgname = "AIS_VESSEL"
  15394. fieldnames = ["MMSI", "lat", "lon", "COG", "heading", "velocity", "turn_rate", "navigational_status", "type", "dimension_bow", "dimension_stern", "dimension_port", "dimension_starboard", "callsign", "name", "tslc", "flags"]
  15395. ordered_fieldnames = ["MMSI", "lat", "lon", "COG", "heading", "velocity", "dimension_bow", "dimension_stern", "tslc", "flags", "turn_rate", "navigational_status", "type", "dimension_port", "dimension_starboard", "callsign", "name"]
  15396. fieldtypes = ["uint32_t", "int32_t", "int32_t", "uint16_t", "uint16_t", "uint16_t", "int8_t", "uint8_t", "uint8_t", "uint16_t", "uint16_t", "uint8_t", "uint8_t", "char", "char", "uint16_t", "uint16_t"]
  15397. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  15398. fieldenums_by_name: Dict[str, str] = {"navigational_status": "AIS_NAV_STATUS", "type": "AIS_TYPE", "flags": "AIS_FLAGS"}
  15399. fieldunits_by_name: Dict[str, str] = {"lat": "degE7", "lon": "degE7", "COG": "cdeg", "heading": "cdeg", "velocity": "cm/s", "turn_rate": "cdeg/s", "dimension_bow": "m", "dimension_stern": "m", "dimension_port": "m", "dimension_starboard": "m", "tslc": "s"}
  15400. native_format = bytearray(b"<IiiHHHHHHHbBBBBcc")
  15401. orders = [0, 1, 2, 3, 4, 5, 10, 11, 12, 6, 7, 13, 14, 15, 16, 8, 9]
  15402. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  15403. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 20]
  15404. crc_extra = 243
  15405. unpacker = struct.Struct("<IiiHHHHHHHbBBBB7s20s")
  15406. instance_field = None
  15407. instance_offset = -1
  15408. def __init__(self, MMSI: int, lat: int, lon: int, COG: int, heading: int, velocity: int, turn_rate: int, navigational_status: int, type: int, dimension_bow: int, dimension_stern: int, dimension_port: int, dimension_starboard: int, callsign: bytes, name: bytes, tslc: int, flags: int):
  15409. MAVLink_message.__init__(self, MAVLink_ais_vessel_message.id, MAVLink_ais_vessel_message.msgname)
  15410. self._fieldnames = MAVLink_ais_vessel_message.fieldnames
  15411. self._instance_field = MAVLink_ais_vessel_message.instance_field
  15412. self._instance_offset = MAVLink_ais_vessel_message.instance_offset
  15413. self.MMSI = MMSI
  15414. self.lat = lat
  15415. self.lon = lon
  15416. self.COG = COG
  15417. self.heading = heading
  15418. self.velocity = velocity
  15419. self.turn_rate = turn_rate
  15420. self.navigational_status = navigational_status
  15421. self.type = type
  15422. self.dimension_bow = dimension_bow
  15423. self.dimension_stern = dimension_stern
  15424. self.dimension_port = dimension_port
  15425. self.dimension_starboard = dimension_starboard
  15426. self._callsign_raw = callsign
  15427. self.callsign = callsign.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15428. self._name_raw = name
  15429. self.name = name.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15430. self.tslc = tslc
  15431. self.flags = flags
  15432. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15433. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.MMSI, self.lat, self.lon, self.COG, self.heading, self.velocity, self.dimension_bow, self.dimension_stern, self.tslc, self.flags, self.turn_rate, self.navigational_status, self.type, self.dimension_port, self.dimension_starboard, self._callsign_raw, self._name_raw), force_mavlink1=force_mavlink1)
  15434. # Define name on the class for backwards compatibility (it is now msgname).
  15435. # Done with setattr to hide the class variable from mypy.
  15436. setattr(MAVLink_ais_vessel_message, "name", mavlink_msg_deprecated_name_property())
  15437. class MAVLink_uavcan_node_status_message(MAVLink_message):
  15438. """
  15439. General status information of an UAVCAN node. Please refer to the
  15440. definition of the UAVCAN message "uavcan.protocol.NodeStatus" for
  15441. the background information. The UAVCAN specification is available
  15442. at http://uavcan.org.
  15443. """
  15444. id = MAVLINK_MSG_ID_UAVCAN_NODE_STATUS
  15445. msgname = "UAVCAN_NODE_STATUS"
  15446. fieldnames = ["time_usec", "uptime_sec", "health", "mode", "sub_mode", "vendor_specific_status_code"]
  15447. ordered_fieldnames = ["time_usec", "uptime_sec", "vendor_specific_status_code", "health", "mode", "sub_mode"]
  15448. fieldtypes = ["uint64_t", "uint32_t", "uint8_t", "uint8_t", "uint8_t", "uint16_t"]
  15449. fielddisplays_by_name: Dict[str, str] = {}
  15450. fieldenums_by_name: Dict[str, str] = {"health": "UAVCAN_NODE_HEALTH", "mode": "UAVCAN_NODE_MODE"}
  15451. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "uptime_sec": "s"}
  15452. native_format = bytearray(b"<QIHBBB")
  15453. orders = [0, 1, 3, 4, 5, 2]
  15454. lengths = [1, 1, 1, 1, 1, 1]
  15455. array_lengths = [0, 0, 0, 0, 0, 0]
  15456. crc_extra = 28
  15457. unpacker = struct.Struct("<QIHBBB")
  15458. instance_field = None
  15459. instance_offset = -1
  15460. def __init__(self, time_usec: int, uptime_sec: int, health: int, mode: int, sub_mode: int, vendor_specific_status_code: int):
  15461. MAVLink_message.__init__(self, MAVLink_uavcan_node_status_message.id, MAVLink_uavcan_node_status_message.msgname)
  15462. self._fieldnames = MAVLink_uavcan_node_status_message.fieldnames
  15463. self._instance_field = MAVLink_uavcan_node_status_message.instance_field
  15464. self._instance_offset = MAVLink_uavcan_node_status_message.instance_offset
  15465. self.time_usec = time_usec
  15466. self.uptime_sec = uptime_sec
  15467. self.health = health
  15468. self.mode = mode
  15469. self.sub_mode = sub_mode
  15470. self.vendor_specific_status_code = vendor_specific_status_code
  15471. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15472. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.uptime_sec, self.vendor_specific_status_code, self.health, self.mode, self.sub_mode), force_mavlink1=force_mavlink1)
  15473. # Define name on the class for backwards compatibility (it is now msgname).
  15474. # Done with setattr to hide the class variable from mypy.
  15475. setattr(MAVLink_uavcan_node_status_message, "name", mavlink_msg_deprecated_name_property())
  15476. class MAVLink_uavcan_node_info_message(MAVLink_message):
  15477. """
  15478. General information describing a particular UAVCAN node. Please
  15479. refer to the definition of the UAVCAN service
  15480. "uavcan.protocol.GetNodeInfo" for the background information. This
  15481. message should be emitted by the system whenever a new node
  15482. appears online, or an existing node reboots. Additionally, it can
  15483. be emitted upon request from the other end of the MAVLink channel
  15484. (see MAV_CMD_UAVCAN_GET_NODE_INFO). It is also not prohibited to
  15485. emit this message unconditionally at a low frequency. The UAVCAN
  15486. specification is available at http://uavcan.org.
  15487. """
  15488. id = MAVLINK_MSG_ID_UAVCAN_NODE_INFO
  15489. msgname = "UAVCAN_NODE_INFO"
  15490. fieldnames = ["time_usec", "uptime_sec", "name", "hw_version_major", "hw_version_minor", "hw_unique_id", "sw_version_major", "sw_version_minor", "sw_vcs_commit"]
  15491. ordered_fieldnames = ["time_usec", "uptime_sec", "sw_vcs_commit", "name", "hw_version_major", "hw_version_minor", "hw_unique_id", "sw_version_major", "sw_version_minor"]
  15492. fieldtypes = ["uint64_t", "uint32_t", "char", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint32_t"]
  15493. fielddisplays_by_name: Dict[str, str] = {}
  15494. fieldenums_by_name: Dict[str, str] = {}
  15495. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "uptime_sec": "s"}
  15496. native_format = bytearray(b"<QIIcBBBBB")
  15497. orders = [0, 1, 3, 4, 5, 6, 7, 8, 2]
  15498. lengths = [1, 1, 1, 1, 1, 1, 16, 1, 1]
  15499. array_lengths = [0, 0, 0, 80, 0, 0, 16, 0, 0]
  15500. crc_extra = 95
  15501. unpacker = struct.Struct("<QII80sBB16BBB")
  15502. instance_field = None
  15503. instance_offset = -1
  15504. def __init__(self, time_usec: int, uptime_sec: int, name: bytes, hw_version_major: int, hw_version_minor: int, hw_unique_id: Sequence[int], sw_version_major: int, sw_version_minor: int, sw_vcs_commit: int):
  15505. MAVLink_message.__init__(self, MAVLink_uavcan_node_info_message.id, MAVLink_uavcan_node_info_message.msgname)
  15506. self._fieldnames = MAVLink_uavcan_node_info_message.fieldnames
  15507. self._instance_field = MAVLink_uavcan_node_info_message.instance_field
  15508. self._instance_offset = MAVLink_uavcan_node_info_message.instance_offset
  15509. self.time_usec = time_usec
  15510. self.uptime_sec = uptime_sec
  15511. self._name_raw = name
  15512. self.name = name.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15513. self.hw_version_major = hw_version_major
  15514. self.hw_version_minor = hw_version_minor
  15515. self.hw_unique_id = hw_unique_id
  15516. self.sw_version_major = sw_version_major
  15517. self.sw_version_minor = sw_version_minor
  15518. self.sw_vcs_commit = sw_vcs_commit
  15519. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15520. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.uptime_sec, self.sw_vcs_commit, self._name_raw, self.hw_version_major, self.hw_version_minor, self.hw_unique_id[0], self.hw_unique_id[1], self.hw_unique_id[2], self.hw_unique_id[3], self.hw_unique_id[4], self.hw_unique_id[5], self.hw_unique_id[6], self.hw_unique_id[7], self.hw_unique_id[8], self.hw_unique_id[9], self.hw_unique_id[10], self.hw_unique_id[11], self.hw_unique_id[12], self.hw_unique_id[13], self.hw_unique_id[14], self.hw_unique_id[15], self.sw_version_major, self.sw_version_minor), force_mavlink1=force_mavlink1)
  15521. # Define name on the class for backwards compatibility (it is now msgname).
  15522. # Done with setattr to hide the class variable from mypy.
  15523. setattr(MAVLink_uavcan_node_info_message, "name", mavlink_msg_deprecated_name_property())
  15524. class MAVLink_param_ext_request_read_message(MAVLink_message):
  15525. """
  15526. Request to read the value of a parameter with either the param_id
  15527. string id or param_index. PARAM_EXT_VALUE should be emitted in
  15528. response.
  15529. """
  15530. id = MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ
  15531. msgname = "PARAM_EXT_REQUEST_READ"
  15532. fieldnames = ["target_system", "target_component", "param_id", "param_index"]
  15533. ordered_fieldnames = ["param_index", "target_system", "target_component", "param_id"]
  15534. fieldtypes = ["uint8_t", "uint8_t", "char", "int16_t"]
  15535. fielddisplays_by_name: Dict[str, str] = {}
  15536. fieldenums_by_name: Dict[str, str] = {}
  15537. fieldunits_by_name: Dict[str, str] = {}
  15538. native_format = bytearray(b"<hBBc")
  15539. orders = [1, 2, 3, 0]
  15540. lengths = [1, 1, 1, 1]
  15541. array_lengths = [0, 0, 0, 16]
  15542. crc_extra = 243
  15543. unpacker = struct.Struct("<hBB16s")
  15544. instance_field = None
  15545. instance_offset = -1
  15546. def __init__(self, target_system: int, target_component: int, param_id: bytes, param_index: int):
  15547. MAVLink_message.__init__(self, MAVLink_param_ext_request_read_message.id, MAVLink_param_ext_request_read_message.msgname)
  15548. self._fieldnames = MAVLink_param_ext_request_read_message.fieldnames
  15549. self._instance_field = MAVLink_param_ext_request_read_message.instance_field
  15550. self._instance_offset = MAVLink_param_ext_request_read_message.instance_offset
  15551. self.target_system = target_system
  15552. self.target_component = target_component
  15553. self._param_id_raw = param_id
  15554. self.param_id = param_id.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15555. self.param_index = param_index
  15556. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15557. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.param_index, self.target_system, self.target_component, self._param_id_raw), force_mavlink1=force_mavlink1)
  15558. # Define name on the class for backwards compatibility (it is now msgname).
  15559. # Done with setattr to hide the class variable from mypy.
  15560. setattr(MAVLink_param_ext_request_read_message, "name", mavlink_msg_deprecated_name_property())
  15561. class MAVLink_param_ext_request_list_message(MAVLink_message):
  15562. """
  15563. Request all parameters of this component. All parameters should be
  15564. emitted in response as PARAM_EXT_VALUE.
  15565. """
  15566. id = MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST
  15567. msgname = "PARAM_EXT_REQUEST_LIST"
  15568. fieldnames = ["target_system", "target_component"]
  15569. ordered_fieldnames = ["target_system", "target_component"]
  15570. fieldtypes = ["uint8_t", "uint8_t"]
  15571. fielddisplays_by_name: Dict[str, str] = {}
  15572. fieldenums_by_name: Dict[str, str] = {}
  15573. fieldunits_by_name: Dict[str, str] = {}
  15574. native_format = bytearray(b"<BB")
  15575. orders = [0, 1]
  15576. lengths = [1, 1]
  15577. array_lengths = [0, 0]
  15578. crc_extra = 88
  15579. unpacker = struct.Struct("<BB")
  15580. instance_field = None
  15581. instance_offset = -1
  15582. def __init__(self, target_system: int, target_component: int):
  15583. MAVLink_message.__init__(self, MAVLink_param_ext_request_list_message.id, MAVLink_param_ext_request_list_message.msgname)
  15584. self._fieldnames = MAVLink_param_ext_request_list_message.fieldnames
  15585. self._instance_field = MAVLink_param_ext_request_list_message.instance_field
  15586. self._instance_offset = MAVLink_param_ext_request_list_message.instance_offset
  15587. self.target_system = target_system
  15588. self.target_component = target_component
  15589. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15590. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.target_system, self.target_component), force_mavlink1=force_mavlink1)
  15591. # Define name on the class for backwards compatibility (it is now msgname).
  15592. # Done with setattr to hide the class variable from mypy.
  15593. setattr(MAVLink_param_ext_request_list_message, "name", mavlink_msg_deprecated_name_property())
  15594. class MAVLink_param_ext_value_message(MAVLink_message):
  15595. """
  15596. Emit the value of a parameter. The inclusion of param_count and
  15597. param_index in the message allows the recipient to keep track of
  15598. received parameters and allows them to re-request missing
  15599. parameters after a loss or timeout.
  15600. """
  15601. id = MAVLINK_MSG_ID_PARAM_EXT_VALUE
  15602. msgname = "PARAM_EXT_VALUE"
  15603. fieldnames = ["param_id", "param_value", "param_type", "param_count", "param_index"]
  15604. ordered_fieldnames = ["param_count", "param_index", "param_id", "param_value", "param_type"]
  15605. fieldtypes = ["char", "char", "uint8_t", "uint16_t", "uint16_t"]
  15606. fielddisplays_by_name: Dict[str, str] = {}
  15607. fieldenums_by_name: Dict[str, str] = {"param_type": "MAV_PARAM_EXT_TYPE"}
  15608. fieldunits_by_name: Dict[str, str] = {}
  15609. native_format = bytearray(b"<HHccB")
  15610. orders = [2, 3, 4, 0, 1]
  15611. lengths = [1, 1, 1, 1, 1]
  15612. array_lengths = [0, 0, 16, 128, 0]
  15613. crc_extra = 243
  15614. unpacker = struct.Struct("<HH16s128sB")
  15615. instance_field = None
  15616. instance_offset = -1
  15617. def __init__(self, param_id: bytes, param_value: bytes, param_type: int, param_count: int, param_index: int):
  15618. MAVLink_message.__init__(self, MAVLink_param_ext_value_message.id, MAVLink_param_ext_value_message.msgname)
  15619. self._fieldnames = MAVLink_param_ext_value_message.fieldnames
  15620. self._instance_field = MAVLink_param_ext_value_message.instance_field
  15621. self._instance_offset = MAVLink_param_ext_value_message.instance_offset
  15622. self._param_id_raw = param_id
  15623. self.param_id = param_id.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15624. self._param_value_raw = param_value
  15625. self.param_value = param_value.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15626. self.param_type = param_type
  15627. self.param_count = param_count
  15628. self.param_index = param_index
  15629. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15630. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.param_count, self.param_index, self._param_id_raw, self._param_value_raw, self.param_type), force_mavlink1=force_mavlink1)
  15631. # Define name on the class for backwards compatibility (it is now msgname).
  15632. # Done with setattr to hide the class variable from mypy.
  15633. setattr(MAVLink_param_ext_value_message, "name", mavlink_msg_deprecated_name_property())
  15634. class MAVLink_param_ext_set_message(MAVLink_message):
  15635. """
  15636. Set a parameter value. In order to deal with message loss (and
  15637. retransmission of PARAM_EXT_SET), when setting a parameter value
  15638. and the new value is the same as the current value, you will
  15639. immediately get a PARAM_ACK_ACCEPTED response. If the current
  15640. state is PARAM_ACK_IN_PROGRESS, you will accordingly receive a
  15641. PARAM_ACK_IN_PROGRESS in response.
  15642. """
  15643. id = MAVLINK_MSG_ID_PARAM_EXT_SET
  15644. msgname = "PARAM_EXT_SET"
  15645. fieldnames = ["target_system", "target_component", "param_id", "param_value", "param_type"]
  15646. ordered_fieldnames = ["target_system", "target_component", "param_id", "param_value", "param_type"]
  15647. fieldtypes = ["uint8_t", "uint8_t", "char", "char", "uint8_t"]
  15648. fielddisplays_by_name: Dict[str, str] = {}
  15649. fieldenums_by_name: Dict[str, str] = {"param_type": "MAV_PARAM_EXT_TYPE"}
  15650. fieldunits_by_name: Dict[str, str] = {}
  15651. native_format = bytearray(b"<BBccB")
  15652. orders = [0, 1, 2, 3, 4]
  15653. lengths = [1, 1, 1, 1, 1]
  15654. array_lengths = [0, 0, 16, 128, 0]
  15655. crc_extra = 78
  15656. unpacker = struct.Struct("<BB16s128sB")
  15657. instance_field = None
  15658. instance_offset = -1
  15659. def __init__(self, target_system: int, target_component: int, param_id: bytes, param_value: bytes, param_type: int):
  15660. MAVLink_message.__init__(self, MAVLink_param_ext_set_message.id, MAVLink_param_ext_set_message.msgname)
  15661. self._fieldnames = MAVLink_param_ext_set_message.fieldnames
  15662. self._instance_field = MAVLink_param_ext_set_message.instance_field
  15663. self._instance_offset = MAVLink_param_ext_set_message.instance_offset
  15664. self.target_system = target_system
  15665. self.target_component = target_component
  15666. self._param_id_raw = param_id
  15667. self.param_id = param_id.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15668. self._param_value_raw = param_value
  15669. self.param_value = param_value.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15670. self.param_type = param_type
  15671. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15672. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.target_system, self.target_component, self._param_id_raw, self._param_value_raw, self.param_type), force_mavlink1=force_mavlink1)
  15673. # Define name on the class for backwards compatibility (it is now msgname).
  15674. # Done with setattr to hide the class variable from mypy.
  15675. setattr(MAVLink_param_ext_set_message, "name", mavlink_msg_deprecated_name_property())
  15676. class MAVLink_param_ext_ack_message(MAVLink_message):
  15677. """
  15678. Response from a PARAM_EXT_SET message.
  15679. """
  15680. id = MAVLINK_MSG_ID_PARAM_EXT_ACK
  15681. msgname = "PARAM_EXT_ACK"
  15682. fieldnames = ["param_id", "param_value", "param_type", "param_result"]
  15683. ordered_fieldnames = ["param_id", "param_value", "param_type", "param_result"]
  15684. fieldtypes = ["char", "char", "uint8_t", "uint8_t"]
  15685. fielddisplays_by_name: Dict[str, str] = {}
  15686. fieldenums_by_name: Dict[str, str] = {"param_type": "MAV_PARAM_EXT_TYPE", "param_result": "PARAM_ACK"}
  15687. fieldunits_by_name: Dict[str, str] = {}
  15688. native_format = bytearray(b"<ccBB")
  15689. orders = [0, 1, 2, 3]
  15690. lengths = [1, 1, 1, 1]
  15691. array_lengths = [16, 128, 0, 0]
  15692. crc_extra = 132
  15693. unpacker = struct.Struct("<16s128sBB")
  15694. instance_field = None
  15695. instance_offset = -1
  15696. def __init__(self, param_id: bytes, param_value: bytes, param_type: int, param_result: int):
  15697. MAVLink_message.__init__(self, MAVLink_param_ext_ack_message.id, MAVLink_param_ext_ack_message.msgname)
  15698. self._fieldnames = MAVLink_param_ext_ack_message.fieldnames
  15699. self._instance_field = MAVLink_param_ext_ack_message.instance_field
  15700. self._instance_offset = MAVLink_param_ext_ack_message.instance_offset
  15701. self._param_id_raw = param_id
  15702. self.param_id = param_id.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15703. self._param_value_raw = param_value
  15704. self.param_value = param_value.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15705. self.param_type = param_type
  15706. self.param_result = param_result
  15707. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15708. return self._pack(mav, self.crc_extra, self.unpacker.pack(self._param_id_raw, self._param_value_raw, self.param_type, self.param_result), force_mavlink1=force_mavlink1)
  15709. # Define name on the class for backwards compatibility (it is now msgname).
  15710. # Done with setattr to hide the class variable from mypy.
  15711. setattr(MAVLink_param_ext_ack_message, "name", mavlink_msg_deprecated_name_property())
  15712. class MAVLink_obstacle_distance_message(MAVLink_message):
  15713. """
  15714. Obstacle distances in front of the sensor, starting from the left
  15715. in increment degrees to the right
  15716. """
  15717. id = MAVLINK_MSG_ID_OBSTACLE_DISTANCE
  15718. msgname = "OBSTACLE_DISTANCE"
  15719. fieldnames = ["time_usec", "sensor_type", "distances", "increment", "min_distance", "max_distance", "increment_f", "angle_offset", "frame"]
  15720. ordered_fieldnames = ["time_usec", "distances", "min_distance", "max_distance", "sensor_type", "increment", "increment_f", "angle_offset", "frame"]
  15721. fieldtypes = ["uint64_t", "uint8_t", "uint16_t", "uint8_t", "uint16_t", "uint16_t", "float", "float", "uint8_t"]
  15722. fielddisplays_by_name: Dict[str, str] = {}
  15723. fieldenums_by_name: Dict[str, str] = {"sensor_type": "MAV_DISTANCE_SENSOR", "frame": "MAV_FRAME"}
  15724. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "distances": "cm", "increment": "deg", "min_distance": "cm", "max_distance": "cm", "increment_f": "deg", "angle_offset": "deg"}
  15725. native_format = bytearray(b"<QHHHBBffB")
  15726. orders = [0, 4, 1, 5, 2, 3, 6, 7, 8]
  15727. lengths = [1, 72, 1, 1, 1, 1, 1, 1, 1]
  15728. array_lengths = [0, 72, 0, 0, 0, 0, 0, 0, 0]
  15729. crc_extra = 23
  15730. unpacker = struct.Struct("<Q72HHHBBffB")
  15731. instance_field = None
  15732. instance_offset = -1
  15733. def __init__(self, time_usec: int, sensor_type: int, distances: Sequence[int], increment: int, min_distance: int, max_distance: int, increment_f: float = 0, angle_offset: float = 0, frame: int = 0):
  15734. MAVLink_message.__init__(self, MAVLink_obstacle_distance_message.id, MAVLink_obstacle_distance_message.msgname)
  15735. self._fieldnames = MAVLink_obstacle_distance_message.fieldnames
  15736. self._instance_field = MAVLink_obstacle_distance_message.instance_field
  15737. self._instance_offset = MAVLink_obstacle_distance_message.instance_offset
  15738. self.time_usec = time_usec
  15739. self.sensor_type = sensor_type
  15740. self.distances = distances
  15741. self.increment = increment
  15742. self.min_distance = min_distance
  15743. self.max_distance = max_distance
  15744. self.increment_f = increment_f
  15745. self.angle_offset = angle_offset
  15746. self.frame = frame
  15747. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15748. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.distances[0], self.distances[1], self.distances[2], self.distances[3], self.distances[4], self.distances[5], self.distances[6], self.distances[7], self.distances[8], self.distances[9], self.distances[10], self.distances[11], self.distances[12], self.distances[13], self.distances[14], self.distances[15], self.distances[16], self.distances[17], self.distances[18], self.distances[19], self.distances[20], self.distances[21], self.distances[22], self.distances[23], self.distances[24], self.distances[25], self.distances[26], self.distances[27], self.distances[28], self.distances[29], self.distances[30], self.distances[31], self.distances[32], self.distances[33], self.distances[34], self.distances[35], self.distances[36], self.distances[37], self.distances[38], self.distances[39], self.distances[40], self.distances[41], self.distances[42], self.distances[43], self.distances[44], self.distances[45], self.distances[46], self.distances[47], self.distances[48], self.distances[49], self.distances[50], self.distances[51], self.distances[52], self.distances[53], self.distances[54], self.distances[55], self.distances[56], self.distances[57], self.distances[58], self.distances[59], self.distances[60], self.distances[61], self.distances[62], self.distances[63], self.distances[64], self.distances[65], self.distances[66], self.distances[67], self.distances[68], self.distances[69], self.distances[70], self.distances[71], self.min_distance, self.max_distance, self.sensor_type, self.increment, self.increment_f, self.angle_offset, self.frame), force_mavlink1=force_mavlink1)
  15749. # Define name on the class for backwards compatibility (it is now msgname).
  15750. # Done with setattr to hide the class variable from mypy.
  15751. setattr(MAVLink_obstacle_distance_message, "name", mavlink_msg_deprecated_name_property())
  15752. class MAVLink_odometry_message(MAVLink_message):
  15753. """
  15754. Odometry message to communicate odometry information with an
  15755. external interface. Fits ROS REP 147 standard for aerial vehicles
  15756. (http://www.ros.org/reps/rep-0147.html).
  15757. """
  15758. id = MAVLINK_MSG_ID_ODOMETRY
  15759. msgname = "ODOMETRY"
  15760. fieldnames = ["time_usec", "frame_id", "child_frame_id", "x", "y", "z", "q", "vx", "vy", "vz", "rollspeed", "pitchspeed", "yawspeed", "pose_covariance", "velocity_covariance", "reset_counter", "estimator_type", "quality"]
  15761. ordered_fieldnames = ["time_usec", "x", "y", "z", "q", "vx", "vy", "vz", "rollspeed", "pitchspeed", "yawspeed", "pose_covariance", "velocity_covariance", "frame_id", "child_frame_id", "reset_counter", "estimator_type", "quality"]
  15762. fieldtypes = ["uint64_t", "uint8_t", "uint8_t", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "uint8_t", "uint8_t", "int8_t"]
  15763. fielddisplays_by_name: Dict[str, str] = {}
  15764. fieldenums_by_name: Dict[str, str] = {"frame_id": "MAV_FRAME", "child_frame_id": "MAV_FRAME", "estimator_type": "MAV_ESTIMATOR_TYPE"}
  15765. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "x": "m", "y": "m", "z": "m", "vx": "m/s", "vy": "m/s", "vz": "m/s", "rollspeed": "rad/s", "pitchspeed": "rad/s", "yawspeed": "rad/s", "quality": "%"}
  15766. native_format = bytearray(b"<QffffffffffffBBBBb")
  15767. orders = [0, 13, 14, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 15, 16, 17]
  15768. lengths = [1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, 21, 21, 1, 1, 1, 1, 1]
  15769. array_lengths = [0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 21, 21, 0, 0, 0, 0, 0]
  15770. crc_extra = 91
  15771. unpacker = struct.Struct("<Qfff4fffffff21f21fBBBBb")
  15772. instance_field = None
  15773. instance_offset = -1
  15774. def __init__(self, time_usec: int, frame_id: int, child_frame_id: int, x: float, y: float, z: float, q: Sequence[float], vx: float, vy: float, vz: float, rollspeed: float, pitchspeed: float, yawspeed: float, pose_covariance: Sequence[float], velocity_covariance: Sequence[float], reset_counter: int = 0, estimator_type: int = 0, quality: int = 0):
  15775. MAVLink_message.__init__(self, MAVLink_odometry_message.id, MAVLink_odometry_message.msgname)
  15776. self._fieldnames = MAVLink_odometry_message.fieldnames
  15777. self._instance_field = MAVLink_odometry_message.instance_field
  15778. self._instance_offset = MAVLink_odometry_message.instance_offset
  15779. self.time_usec = time_usec
  15780. self.frame_id = frame_id
  15781. self.child_frame_id = child_frame_id
  15782. self.x = x
  15783. self.y = y
  15784. self.z = z
  15785. self.q = q
  15786. self.vx = vx
  15787. self.vy = vy
  15788. self.vz = vz
  15789. self.rollspeed = rollspeed
  15790. self.pitchspeed = pitchspeed
  15791. self.yawspeed = yawspeed
  15792. self.pose_covariance = pose_covariance
  15793. self.velocity_covariance = velocity_covariance
  15794. self.reset_counter = reset_counter
  15795. self.estimator_type = estimator_type
  15796. self.quality = quality
  15797. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15798. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.x, self.y, self.z, self.q[0], self.q[1], self.q[2], self.q[3], self.vx, self.vy, self.vz, self.rollspeed, self.pitchspeed, self.yawspeed, self.pose_covariance[0], self.pose_covariance[1], self.pose_covariance[2], self.pose_covariance[3], self.pose_covariance[4], self.pose_covariance[5], self.pose_covariance[6], self.pose_covariance[7], self.pose_covariance[8], self.pose_covariance[9], self.pose_covariance[10], self.pose_covariance[11], self.pose_covariance[12], self.pose_covariance[13], self.pose_covariance[14], self.pose_covariance[15], self.pose_covariance[16], self.pose_covariance[17], self.pose_covariance[18], self.pose_covariance[19], self.pose_covariance[20], self.velocity_covariance[0], self.velocity_covariance[1], self.velocity_covariance[2], self.velocity_covariance[3], self.velocity_covariance[4], self.velocity_covariance[5], self.velocity_covariance[6], self.velocity_covariance[7], self.velocity_covariance[8], self.velocity_covariance[9], self.velocity_covariance[10], self.velocity_covariance[11], self.velocity_covariance[12], self.velocity_covariance[13], self.velocity_covariance[14], self.velocity_covariance[15], self.velocity_covariance[16], self.velocity_covariance[17], self.velocity_covariance[18], self.velocity_covariance[19], self.velocity_covariance[20], self.frame_id, self.child_frame_id, self.reset_counter, self.estimator_type, self.quality), force_mavlink1=force_mavlink1)
  15799. # Define name on the class for backwards compatibility (it is now msgname).
  15800. # Done with setattr to hide the class variable from mypy.
  15801. setattr(MAVLink_odometry_message, "name", mavlink_msg_deprecated_name_property())
  15802. class MAVLink_trajectory_representation_waypoints_message(MAVLink_message):
  15803. """
  15804. Describe a trajectory using an array of up-to 5 waypoints in the
  15805. local frame (MAV_FRAME_LOCAL_NED).
  15806. """
  15807. id = MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS
  15808. msgname = "TRAJECTORY_REPRESENTATION_WAYPOINTS"
  15809. fieldnames = ["time_usec", "valid_points", "pos_x", "pos_y", "pos_z", "vel_x", "vel_y", "vel_z", "acc_x", "acc_y", "acc_z", "pos_yaw", "vel_yaw", "command"]
  15810. ordered_fieldnames = ["time_usec", "pos_x", "pos_y", "pos_z", "vel_x", "vel_y", "vel_z", "acc_x", "acc_y", "acc_z", "pos_yaw", "vel_yaw", "command", "valid_points"]
  15811. fieldtypes = ["uint64_t", "uint8_t", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "uint16_t"]
  15812. fielddisplays_by_name: Dict[str, str] = {}
  15813. fieldenums_by_name: Dict[str, str] = {"command": "MAV_CMD"}
  15814. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "pos_x": "m", "pos_y": "m", "pos_z": "m", "vel_x": "m/s", "vel_y": "m/s", "vel_z": "m/s", "acc_x": "m/s/s", "acc_y": "m/s/s", "acc_z": "m/s/s", "pos_yaw": "rad", "vel_yaw": "rad/s"}
  15815. native_format = bytearray(b"<QfffffffffffHB")
  15816. orders = [0, 13, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
  15817. lengths = [1, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 1]
  15818. array_lengths = [0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0]
  15819. crc_extra = 236
  15820. unpacker = struct.Struct("<Q5f5f5f5f5f5f5f5f5f5f5f5HB")
  15821. instance_field = None
  15822. instance_offset = -1
  15823. def __init__(self, time_usec: int, valid_points: int, pos_x: Sequence[float], pos_y: Sequence[float], pos_z: Sequence[float], vel_x: Sequence[float], vel_y: Sequence[float], vel_z: Sequence[float], acc_x: Sequence[float], acc_y: Sequence[float], acc_z: Sequence[float], pos_yaw: Sequence[float], vel_yaw: Sequence[float], command: Sequence[int]):
  15824. MAVLink_message.__init__(self, MAVLink_trajectory_representation_waypoints_message.id, MAVLink_trajectory_representation_waypoints_message.msgname)
  15825. self._fieldnames = MAVLink_trajectory_representation_waypoints_message.fieldnames
  15826. self._instance_field = MAVLink_trajectory_representation_waypoints_message.instance_field
  15827. self._instance_offset = MAVLink_trajectory_representation_waypoints_message.instance_offset
  15828. self.time_usec = time_usec
  15829. self.valid_points = valid_points
  15830. self.pos_x = pos_x
  15831. self.pos_y = pos_y
  15832. self.pos_z = pos_z
  15833. self.vel_x = vel_x
  15834. self.vel_y = vel_y
  15835. self.vel_z = vel_z
  15836. self.acc_x = acc_x
  15837. self.acc_y = acc_y
  15838. self.acc_z = acc_z
  15839. self.pos_yaw = pos_yaw
  15840. self.vel_yaw = vel_yaw
  15841. self.command = command
  15842. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15843. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.pos_x[0], self.pos_x[1], self.pos_x[2], self.pos_x[3], self.pos_x[4], self.pos_y[0], self.pos_y[1], self.pos_y[2], self.pos_y[3], self.pos_y[4], self.pos_z[0], self.pos_z[1], self.pos_z[2], self.pos_z[3], self.pos_z[4], self.vel_x[0], self.vel_x[1], self.vel_x[2], self.vel_x[3], self.vel_x[4], self.vel_y[0], self.vel_y[1], self.vel_y[2], self.vel_y[3], self.vel_y[4], self.vel_z[0], self.vel_z[1], self.vel_z[2], self.vel_z[3], self.vel_z[4], self.acc_x[0], self.acc_x[1], self.acc_x[2], self.acc_x[3], self.acc_x[4], self.acc_y[0], self.acc_y[1], self.acc_y[2], self.acc_y[3], self.acc_y[4], self.acc_z[0], self.acc_z[1], self.acc_z[2], self.acc_z[3], self.acc_z[4], self.pos_yaw[0], self.pos_yaw[1], self.pos_yaw[2], self.pos_yaw[3], self.pos_yaw[4], self.vel_yaw[0], self.vel_yaw[1], self.vel_yaw[2], self.vel_yaw[3], self.vel_yaw[4], self.command[0], self.command[1], self.command[2], self.command[3], self.command[4], self.valid_points), force_mavlink1=force_mavlink1)
  15844. # Define name on the class for backwards compatibility (it is now msgname).
  15845. # Done with setattr to hide the class variable from mypy.
  15846. setattr(MAVLink_trajectory_representation_waypoints_message, "name", mavlink_msg_deprecated_name_property())
  15847. class MAVLink_trajectory_representation_bezier_message(MAVLink_message):
  15848. """
  15849. Describe a trajectory using an array of up-to 5 bezier control
  15850. points in the local frame (MAV_FRAME_LOCAL_NED).
  15851. """
  15852. id = MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_BEZIER
  15853. msgname = "TRAJECTORY_REPRESENTATION_BEZIER"
  15854. fieldnames = ["time_usec", "valid_points", "pos_x", "pos_y", "pos_z", "delta", "pos_yaw"]
  15855. ordered_fieldnames = ["time_usec", "pos_x", "pos_y", "pos_z", "delta", "pos_yaw", "valid_points"]
  15856. fieldtypes = ["uint64_t", "uint8_t", "float", "float", "float", "float", "float"]
  15857. fielddisplays_by_name: Dict[str, str] = {}
  15858. fieldenums_by_name: Dict[str, str] = {}
  15859. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "pos_x": "m", "pos_y": "m", "pos_z": "m", "delta": "s", "pos_yaw": "rad"}
  15860. native_format = bytearray(b"<QfffffB")
  15861. orders = [0, 6, 1, 2, 3, 4, 5]
  15862. lengths = [1, 5, 5, 5, 5, 5, 1]
  15863. array_lengths = [0, 5, 5, 5, 5, 5, 0]
  15864. crc_extra = 231
  15865. unpacker = struct.Struct("<Q5f5f5f5f5fB")
  15866. instance_field = None
  15867. instance_offset = -1
  15868. def __init__(self, time_usec: int, valid_points: int, pos_x: Sequence[float], pos_y: Sequence[float], pos_z: Sequence[float], delta: Sequence[float], pos_yaw: Sequence[float]):
  15869. MAVLink_message.__init__(self, MAVLink_trajectory_representation_bezier_message.id, MAVLink_trajectory_representation_bezier_message.msgname)
  15870. self._fieldnames = MAVLink_trajectory_representation_bezier_message.fieldnames
  15871. self._instance_field = MAVLink_trajectory_representation_bezier_message.instance_field
  15872. self._instance_offset = MAVLink_trajectory_representation_bezier_message.instance_offset
  15873. self.time_usec = time_usec
  15874. self.valid_points = valid_points
  15875. self.pos_x = pos_x
  15876. self.pos_y = pos_y
  15877. self.pos_z = pos_z
  15878. self.delta = delta
  15879. self.pos_yaw = pos_yaw
  15880. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15881. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.pos_x[0], self.pos_x[1], self.pos_x[2], self.pos_x[3], self.pos_x[4], self.pos_y[0], self.pos_y[1], self.pos_y[2], self.pos_y[3], self.pos_y[4], self.pos_z[0], self.pos_z[1], self.pos_z[2], self.pos_z[3], self.pos_z[4], self.delta[0], self.delta[1], self.delta[2], self.delta[3], self.delta[4], self.pos_yaw[0], self.pos_yaw[1], self.pos_yaw[2], self.pos_yaw[3], self.pos_yaw[4], self.valid_points), force_mavlink1=force_mavlink1)
  15882. # Define name on the class for backwards compatibility (it is now msgname).
  15883. # Done with setattr to hide the class variable from mypy.
  15884. setattr(MAVLink_trajectory_representation_bezier_message, "name", mavlink_msg_deprecated_name_property())
  15885. class MAVLink_cellular_status_message(MAVLink_message):
  15886. """
  15887. Report current used cellular network status
  15888. """
  15889. id = MAVLINK_MSG_ID_CELLULAR_STATUS
  15890. msgname = "CELLULAR_STATUS"
  15891. fieldnames = ["status", "failure_reason", "type", "quality", "mcc", "mnc", "lac"]
  15892. ordered_fieldnames = ["mcc", "mnc", "lac", "status", "failure_reason", "type", "quality"]
  15893. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint16_t", "uint16_t", "uint16_t"]
  15894. fielddisplays_by_name: Dict[str, str] = {}
  15895. fieldenums_by_name: Dict[str, str] = {"status": "CELLULAR_STATUS_FLAG", "failure_reason": "CELLULAR_NETWORK_FAILED_REASON", "type": "CELLULAR_NETWORK_RADIO_TYPE"}
  15896. fieldunits_by_name: Dict[str, str] = {}
  15897. native_format = bytearray(b"<HHHBBBB")
  15898. orders = [3, 4, 5, 6, 0, 1, 2]
  15899. lengths = [1, 1, 1, 1, 1, 1, 1]
  15900. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  15901. crc_extra = 72
  15902. unpacker = struct.Struct("<HHHBBBB")
  15903. instance_field = None
  15904. instance_offset = -1
  15905. def __init__(self, status: int, failure_reason: int, type: int, quality: int, mcc: int, mnc: int, lac: int):
  15906. MAVLink_message.__init__(self, MAVLink_cellular_status_message.id, MAVLink_cellular_status_message.msgname)
  15907. self._fieldnames = MAVLink_cellular_status_message.fieldnames
  15908. self._instance_field = MAVLink_cellular_status_message.instance_field
  15909. self._instance_offset = MAVLink_cellular_status_message.instance_offset
  15910. self.status = status
  15911. self.failure_reason = failure_reason
  15912. self.type = type
  15913. self.quality = quality
  15914. self.mcc = mcc
  15915. self.mnc = mnc
  15916. self.lac = lac
  15917. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15918. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.mcc, self.mnc, self.lac, self.status, self.failure_reason, self.type, self.quality), force_mavlink1=force_mavlink1)
  15919. # Define name on the class for backwards compatibility (it is now msgname).
  15920. # Done with setattr to hide the class variable from mypy.
  15921. setattr(MAVLink_cellular_status_message, "name", mavlink_msg_deprecated_name_property())
  15922. class MAVLink_isbd_link_status_message(MAVLink_message):
  15923. """
  15924. Status of the Iridium SBD link.
  15925. """
  15926. id = MAVLINK_MSG_ID_ISBD_LINK_STATUS
  15927. msgname = "ISBD_LINK_STATUS"
  15928. fieldnames = ["timestamp", "last_heartbeat", "failed_sessions", "successful_sessions", "signal_quality", "ring_pending", "tx_session_pending", "rx_session_pending"]
  15929. ordered_fieldnames = ["timestamp", "last_heartbeat", "failed_sessions", "successful_sessions", "signal_quality", "ring_pending", "tx_session_pending", "rx_session_pending"]
  15930. fieldtypes = ["uint64_t", "uint64_t", "uint16_t", "uint16_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t"]
  15931. fielddisplays_by_name: Dict[str, str] = {}
  15932. fieldenums_by_name: Dict[str, str] = {}
  15933. fieldunits_by_name: Dict[str, str] = {"timestamp": "us", "last_heartbeat": "us"}
  15934. native_format = bytearray(b"<QQHHBBBB")
  15935. orders = [0, 1, 2, 3, 4, 5, 6, 7]
  15936. lengths = [1, 1, 1, 1, 1, 1, 1, 1]
  15937. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0]
  15938. crc_extra = 225
  15939. unpacker = struct.Struct("<QQHHBBBB")
  15940. instance_field = None
  15941. instance_offset = -1
  15942. def __init__(self, timestamp: int, last_heartbeat: int, failed_sessions: int, successful_sessions: int, signal_quality: int, ring_pending: int, tx_session_pending: int, rx_session_pending: int):
  15943. MAVLink_message.__init__(self, MAVLink_isbd_link_status_message.id, MAVLink_isbd_link_status_message.msgname)
  15944. self._fieldnames = MAVLink_isbd_link_status_message.fieldnames
  15945. self._instance_field = MAVLink_isbd_link_status_message.instance_field
  15946. self._instance_offset = MAVLink_isbd_link_status_message.instance_offset
  15947. self.timestamp = timestamp
  15948. self.last_heartbeat = last_heartbeat
  15949. self.failed_sessions = failed_sessions
  15950. self.successful_sessions = successful_sessions
  15951. self.signal_quality = signal_quality
  15952. self.ring_pending = ring_pending
  15953. self.tx_session_pending = tx_session_pending
  15954. self.rx_session_pending = rx_session_pending
  15955. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15956. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.timestamp, self.last_heartbeat, self.failed_sessions, self.successful_sessions, self.signal_quality, self.ring_pending, self.tx_session_pending, self.rx_session_pending), force_mavlink1=force_mavlink1)
  15957. # Define name on the class for backwards compatibility (it is now msgname).
  15958. # Done with setattr to hide the class variable from mypy.
  15959. setattr(MAVLink_isbd_link_status_message, "name", mavlink_msg_deprecated_name_property())
  15960. class MAVLink_cellular_config_message(MAVLink_message):
  15961. """
  15962. Configure cellular modems. This message is re-emitted as
  15963. an acknowledgement by the modem. The message may also be
  15964. explicitly requested using MAV_CMD_REQUEST_MESSAGE.
  15965. """
  15966. id = MAVLINK_MSG_ID_CELLULAR_CONFIG
  15967. msgname = "CELLULAR_CONFIG"
  15968. fieldnames = ["enable_lte", "enable_pin", "pin", "new_pin", "apn", "puk", "roaming", "response"]
  15969. ordered_fieldnames = ["enable_lte", "enable_pin", "pin", "new_pin", "apn", "puk", "roaming", "response"]
  15970. fieldtypes = ["uint8_t", "uint8_t", "char", "char", "char", "char", "uint8_t", "uint8_t"]
  15971. fielddisplays_by_name: Dict[str, str] = {}
  15972. fieldenums_by_name: Dict[str, str] = {"response": "CELLULAR_CONFIG_RESPONSE"}
  15973. fieldunits_by_name: Dict[str, str] = {}
  15974. native_format = bytearray(b"<BBccccBB")
  15975. orders = [0, 1, 2, 3, 4, 5, 6, 7]
  15976. lengths = [1, 1, 1, 1, 1, 1, 1, 1]
  15977. array_lengths = [0, 0, 16, 16, 32, 16, 0, 0]
  15978. crc_extra = 245
  15979. unpacker = struct.Struct("<BB16s16s32s16sBB")
  15980. instance_field = None
  15981. instance_offset = -1
  15982. def __init__(self, enable_lte: int, enable_pin: int, pin: bytes, new_pin: bytes, apn: bytes, puk: bytes, roaming: int, response: int):
  15983. MAVLink_message.__init__(self, MAVLink_cellular_config_message.id, MAVLink_cellular_config_message.msgname)
  15984. self._fieldnames = MAVLink_cellular_config_message.fieldnames
  15985. self._instance_field = MAVLink_cellular_config_message.instance_field
  15986. self._instance_offset = MAVLink_cellular_config_message.instance_offset
  15987. self.enable_lte = enable_lte
  15988. self.enable_pin = enable_pin
  15989. self._pin_raw = pin
  15990. self.pin = pin.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15991. self._new_pin_raw = new_pin
  15992. self.new_pin = new_pin.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15993. self._apn_raw = apn
  15994. self.apn = apn.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15995. self._puk_raw = puk
  15996. self.puk = puk.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15997. self.roaming = roaming
  15998. self.response = response
  15999. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16000. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.enable_lte, self.enable_pin, self._pin_raw, self._new_pin_raw, self._apn_raw, self._puk_raw, self.roaming, self.response), force_mavlink1=force_mavlink1)
  16001. # Define name on the class for backwards compatibility (it is now msgname).
  16002. # Done with setattr to hide the class variable from mypy.
  16003. setattr(MAVLink_cellular_config_message, "name", mavlink_msg_deprecated_name_property())
  16004. class MAVLink_raw_rpm_message(MAVLink_message):
  16005. """
  16006. RPM sensor data message.
  16007. """
  16008. id = MAVLINK_MSG_ID_RAW_RPM
  16009. msgname = "RAW_RPM"
  16010. fieldnames = ["index", "frequency"]
  16011. ordered_fieldnames = ["frequency", "index"]
  16012. fieldtypes = ["uint8_t", "float"]
  16013. fielddisplays_by_name: Dict[str, str] = {}
  16014. fieldenums_by_name: Dict[str, str] = {}
  16015. fieldunits_by_name: Dict[str, str] = {"frequency": "rpm"}
  16016. native_format = bytearray(b"<fB")
  16017. orders = [1, 0]
  16018. lengths = [1, 1]
  16019. array_lengths = [0, 0]
  16020. crc_extra = 199
  16021. unpacker = struct.Struct("<fB")
  16022. instance_field = None
  16023. instance_offset = -1
  16024. def __init__(self, index: int, frequency: float):
  16025. MAVLink_message.__init__(self, MAVLink_raw_rpm_message.id, MAVLink_raw_rpm_message.msgname)
  16026. self._fieldnames = MAVLink_raw_rpm_message.fieldnames
  16027. self._instance_field = MAVLink_raw_rpm_message.instance_field
  16028. self._instance_offset = MAVLink_raw_rpm_message.instance_offset
  16029. self.index = index
  16030. self.frequency = frequency
  16031. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16032. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.frequency, self.index), force_mavlink1=force_mavlink1)
  16033. # Define name on the class for backwards compatibility (it is now msgname).
  16034. # Done with setattr to hide the class variable from mypy.
  16035. setattr(MAVLink_raw_rpm_message, "name", mavlink_msg_deprecated_name_property())
  16036. class MAVLink_utm_global_position_message(MAVLink_message):
  16037. """
  16038. The global position resulting from GPS and sensor fusion.
  16039. """
  16040. id = MAVLINK_MSG_ID_UTM_GLOBAL_POSITION
  16041. msgname = "UTM_GLOBAL_POSITION"
  16042. fieldnames = ["time", "uas_id", "lat", "lon", "alt", "relative_alt", "vx", "vy", "vz", "h_acc", "v_acc", "vel_acc", "next_lat", "next_lon", "next_alt", "update_rate", "flight_state", "flags"]
  16043. ordered_fieldnames = ["time", "lat", "lon", "alt", "relative_alt", "next_lat", "next_lon", "next_alt", "vx", "vy", "vz", "h_acc", "v_acc", "vel_acc", "update_rate", "uas_id", "flight_state", "flags"]
  16044. fieldtypes = ["uint64_t", "uint8_t", "int32_t", "int32_t", "int32_t", "int32_t", "int16_t", "int16_t", "int16_t", "uint16_t", "uint16_t", "uint16_t", "int32_t", "int32_t", "int32_t", "uint16_t", "uint8_t", "uint8_t"]
  16045. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  16046. fieldenums_by_name: Dict[str, str] = {"flight_state": "UTM_FLIGHT_STATE", "flags": "UTM_DATA_AVAIL_FLAGS"}
  16047. fieldunits_by_name: Dict[str, str] = {"time": "us", "lat": "degE7", "lon": "degE7", "alt": "mm", "relative_alt": "mm", "vx": "cm/s", "vy": "cm/s", "vz": "cm/s", "h_acc": "mm", "v_acc": "mm", "vel_acc": "cm/s", "next_lat": "degE7", "next_lon": "degE7", "next_alt": "mm", "update_rate": "cs"}
  16048. native_format = bytearray(b"<QiiiiiiihhhHHHHBBB")
  16049. orders = [0, 15, 1, 2, 3, 4, 8, 9, 10, 11, 12, 13, 5, 6, 7, 14, 16, 17]
  16050. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 18, 1, 1]
  16051. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 0, 0]
  16052. crc_extra = 99
  16053. unpacker = struct.Struct("<QiiiiiiihhhHHHH18BBB")
  16054. instance_field = None
  16055. instance_offset = -1
  16056. def __init__(self, time: int, uas_id: Sequence[int], lat: int, lon: int, alt: int, relative_alt: int, vx: int, vy: int, vz: int, h_acc: int, v_acc: int, vel_acc: int, next_lat: int, next_lon: int, next_alt: int, update_rate: int, flight_state: int, flags: int):
  16057. MAVLink_message.__init__(self, MAVLink_utm_global_position_message.id, MAVLink_utm_global_position_message.msgname)
  16058. self._fieldnames = MAVLink_utm_global_position_message.fieldnames
  16059. self._instance_field = MAVLink_utm_global_position_message.instance_field
  16060. self._instance_offset = MAVLink_utm_global_position_message.instance_offset
  16061. self.time = time
  16062. self.uas_id = uas_id
  16063. self.lat = lat
  16064. self.lon = lon
  16065. self.alt = alt
  16066. self.relative_alt = relative_alt
  16067. self.vx = vx
  16068. self.vy = vy
  16069. self.vz = vz
  16070. self.h_acc = h_acc
  16071. self.v_acc = v_acc
  16072. self.vel_acc = vel_acc
  16073. self.next_lat = next_lat
  16074. self.next_lon = next_lon
  16075. self.next_alt = next_alt
  16076. self.update_rate = update_rate
  16077. self.flight_state = flight_state
  16078. self.flags = flags
  16079. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16080. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time, self.lat, self.lon, self.alt, self.relative_alt, self.next_lat, self.next_lon, self.next_alt, self.vx, self.vy, self.vz, self.h_acc, self.v_acc, self.vel_acc, self.update_rate, self.uas_id[0], self.uas_id[1], self.uas_id[2], self.uas_id[3], self.uas_id[4], self.uas_id[5], self.uas_id[6], self.uas_id[7], self.uas_id[8], self.uas_id[9], self.uas_id[10], self.uas_id[11], self.uas_id[12], self.uas_id[13], self.uas_id[14], self.uas_id[15], self.uas_id[16], self.uas_id[17], self.flight_state, self.flags), force_mavlink1=force_mavlink1)
  16081. # Define name on the class for backwards compatibility (it is now msgname).
  16082. # Done with setattr to hide the class variable from mypy.
  16083. setattr(MAVLink_utm_global_position_message, "name", mavlink_msg_deprecated_name_property())
  16084. class MAVLink_debug_float_array_message(MAVLink_message):
  16085. """
  16086. Large debug/prototyping array. The message uses the maximum
  16087. available payload for data. The array_id and name fields are used
  16088. to discriminate between messages in code and in user interfaces
  16089. (respectively). Do not use in production code.
  16090. """
  16091. id = MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY
  16092. msgname = "DEBUG_FLOAT_ARRAY"
  16093. fieldnames = ["time_usec", "name", "array_id", "data"]
  16094. ordered_fieldnames = ["time_usec", "array_id", "name", "data"]
  16095. fieldtypes = ["uint64_t", "char", "uint16_t", "float"]
  16096. fielddisplays_by_name: Dict[str, str] = {}
  16097. fieldenums_by_name: Dict[str, str] = {}
  16098. fieldunits_by_name: Dict[str, str] = {"time_usec": "us"}
  16099. native_format = bytearray(b"<QHcf")
  16100. orders = [0, 2, 1, 3]
  16101. lengths = [1, 1, 1, 58]
  16102. array_lengths = [0, 0, 10, 58]
  16103. crc_extra = 232
  16104. unpacker = struct.Struct("<QH10s58f")
  16105. instance_field = "array_id"
  16106. instance_offset = 8
  16107. def __init__(self, time_usec: int, name: bytes, array_id: int, data: Sequence[float] = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)):
  16108. MAVLink_message.__init__(self, MAVLink_debug_float_array_message.id, MAVLink_debug_float_array_message.msgname)
  16109. self._fieldnames = MAVLink_debug_float_array_message.fieldnames
  16110. self._instance_field = MAVLink_debug_float_array_message.instance_field
  16111. self._instance_offset = MAVLink_debug_float_array_message.instance_offset
  16112. self.time_usec = time_usec
  16113. self._name_raw = name
  16114. self.name = name.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  16115. self.array_id = array_id
  16116. self.data = data
  16117. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16118. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.array_id, self._name_raw, self.data[0], self.data[1], self.data[2], self.data[3], self.data[4], self.data[5], self.data[6], self.data[7], self.data[8], self.data[9], self.data[10], self.data[11], self.data[12], self.data[13], self.data[14], self.data[15], self.data[16], self.data[17], self.data[18], self.data[19], self.data[20], self.data[21], self.data[22], self.data[23], self.data[24], self.data[25], self.data[26], self.data[27], self.data[28], self.data[29], self.data[30], self.data[31], self.data[32], self.data[33], self.data[34], self.data[35], self.data[36], self.data[37], self.data[38], self.data[39], self.data[40], self.data[41], self.data[42], self.data[43], self.data[44], self.data[45], self.data[46], self.data[47], self.data[48], self.data[49], self.data[50], self.data[51], self.data[52], self.data[53], self.data[54], self.data[55], self.data[56], self.data[57]), force_mavlink1=force_mavlink1)
  16119. # Define name on the class for backwards compatibility (it is now msgname).
  16120. # Done with setattr to hide the class variable from mypy.
  16121. setattr(MAVLink_debug_float_array_message, "name", mavlink_msg_deprecated_name_property())
  16122. class MAVLink_orbit_execution_status_message(MAVLink_message):
  16123. """
  16124. Vehicle status report that is sent out while orbit execution is in
  16125. progress (see MAV_CMD_DO_ORBIT).
  16126. """
  16127. id = MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS
  16128. msgname = "ORBIT_EXECUTION_STATUS"
  16129. fieldnames = ["time_usec", "radius", "frame", "x", "y", "z"]
  16130. ordered_fieldnames = ["time_usec", "radius", "x", "y", "z", "frame"]
  16131. fieldtypes = ["uint64_t", "float", "uint8_t", "int32_t", "int32_t", "float"]
  16132. fielddisplays_by_name: Dict[str, str] = {}
  16133. fieldenums_by_name: Dict[str, str] = {"frame": "MAV_FRAME"}
  16134. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "radius": "m", "z": "m"}
  16135. native_format = bytearray(b"<QfiifB")
  16136. orders = [0, 1, 5, 2, 3, 4]
  16137. lengths = [1, 1, 1, 1, 1, 1]
  16138. array_lengths = [0, 0, 0, 0, 0, 0]
  16139. crc_extra = 11
  16140. unpacker = struct.Struct("<QfiifB")
  16141. instance_field = None
  16142. instance_offset = -1
  16143. def __init__(self, time_usec: int, radius: float, frame: int, x: int, y: int, z: float):
  16144. MAVLink_message.__init__(self, MAVLink_orbit_execution_status_message.id, MAVLink_orbit_execution_status_message.msgname)
  16145. self._fieldnames = MAVLink_orbit_execution_status_message.fieldnames
  16146. self._instance_field = MAVLink_orbit_execution_status_message.instance_field
  16147. self._instance_offset = MAVLink_orbit_execution_status_message.instance_offset
  16148. self.time_usec = time_usec
  16149. self.radius = radius
  16150. self.frame = frame
  16151. self.x = x
  16152. self.y = y
  16153. self.z = z
  16154. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16155. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.radius, self.x, self.y, self.z, self.frame), force_mavlink1=force_mavlink1)
  16156. # Define name on the class for backwards compatibility (it is now msgname).
  16157. # Done with setattr to hide the class variable from mypy.
  16158. setattr(MAVLink_orbit_execution_status_message, "name", mavlink_msg_deprecated_name_property())
  16159. class MAVLink_battery_info_message(MAVLink_message):
  16160. """
  16161. Battery information that is static, or requires infrequent update.
  16162. This message should requested using MAV_CMD_REQUEST_MESSAGE and/or
  16163. streamed at very low rate. BATTERY_STATUS_V2 is used for
  16164. higher-rate battery status information.
  16165. """
  16166. id = MAVLINK_MSG_ID_BATTERY_INFO
  16167. msgname = "BATTERY_INFO"
  16168. fieldnames = ["id", "battery_function", "type", "state_of_health", "cells_in_series", "cycle_count", "weight", "discharge_minimum_voltage", "charging_minimum_voltage", "resting_minimum_voltage", "charging_maximum_voltage", "charging_maximum_current", "nominal_voltage", "discharge_maximum_current", "discharge_maximum_burst_current", "design_capacity", "full_charge_capacity", "manufacture_date", "serial_number", "name"]
  16169. ordered_fieldnames = ["discharge_minimum_voltage", "charging_minimum_voltage", "resting_minimum_voltage", "charging_maximum_voltage", "charging_maximum_current", "nominal_voltage", "discharge_maximum_current", "discharge_maximum_burst_current", "design_capacity", "full_charge_capacity", "cycle_count", "weight", "id", "battery_function", "type", "state_of_health", "cells_in_series", "manufacture_date", "serial_number", "name"]
  16170. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint16_t", "uint16_t", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "char", "char", "char"]
  16171. fielddisplays_by_name: Dict[str, str] = {}
  16172. fieldenums_by_name: Dict[str, str] = {"battery_function": "MAV_BATTERY_FUNCTION", "type": "MAV_BATTERY_TYPE"}
  16173. fieldunits_by_name: Dict[str, str] = {"state_of_health": "%", "weight": "g", "discharge_minimum_voltage": "V", "charging_minimum_voltage": "V", "resting_minimum_voltage": "V", "charging_maximum_voltage": "V", "charging_maximum_current": "A", "nominal_voltage": "V", "discharge_maximum_current": "A", "discharge_maximum_burst_current": "A", "design_capacity": "Ah", "full_charge_capacity": "Ah"}
  16174. native_format = bytearray(b"<ffffffffffHHBBBBBccc")
  16175. orders = [12, 13, 14, 15, 16, 10, 11, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 19]
  16176. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  16177. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 32, 50]
  16178. crc_extra = 26
  16179. unpacker = struct.Struct("<ffffffffffHHBBBBB9s32s50s")
  16180. instance_field = "id"
  16181. instance_offset = 44
  16182. def __init__(self, id: int, battery_function: int, type: int, state_of_health: int, cells_in_series: int, cycle_count: int, weight: int, discharge_minimum_voltage: float, charging_minimum_voltage: float, resting_minimum_voltage: float, charging_maximum_voltage: float, charging_maximum_current: float, nominal_voltage: float, discharge_maximum_current: float, discharge_maximum_burst_current: float, design_capacity: float, full_charge_capacity: float, manufacture_date: bytes, serial_number: bytes, name: bytes):
  16183. MAVLink_message.__init__(self, MAVLink_battery_info_message.id, MAVLink_battery_info_message.msgname)
  16184. self._fieldnames = MAVLink_battery_info_message.fieldnames
  16185. self._instance_field = MAVLink_battery_info_message.instance_field
  16186. self._instance_offset = MAVLink_battery_info_message.instance_offset
  16187. self.id = id
  16188. self.battery_function = battery_function
  16189. self.type = type
  16190. self.state_of_health = state_of_health
  16191. self.cells_in_series = cells_in_series
  16192. self.cycle_count = cycle_count
  16193. self.weight = weight
  16194. self.discharge_minimum_voltage = discharge_minimum_voltage
  16195. self.charging_minimum_voltage = charging_minimum_voltage
  16196. self.resting_minimum_voltage = resting_minimum_voltage
  16197. self.charging_maximum_voltage = charging_maximum_voltage
  16198. self.charging_maximum_current = charging_maximum_current
  16199. self.nominal_voltage = nominal_voltage
  16200. self.discharge_maximum_current = discharge_maximum_current
  16201. self.discharge_maximum_burst_current = discharge_maximum_burst_current
  16202. self.design_capacity = design_capacity
  16203. self.full_charge_capacity = full_charge_capacity
  16204. self._manufacture_date_raw = manufacture_date
  16205. self.manufacture_date = manufacture_date.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  16206. self._serial_number_raw = serial_number
  16207. self.serial_number = serial_number.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  16208. self._name_raw = name
  16209. self.name = name.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  16210. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16211. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.discharge_minimum_voltage, self.charging_minimum_voltage, self.resting_minimum_voltage, self.charging_maximum_voltage, self.charging_maximum_current, self.nominal_voltage, self.discharge_maximum_current, self.discharge_maximum_burst_current, self.design_capacity, self.full_charge_capacity, self.cycle_count, self.weight, self.id, self.battery_function, self.type, self.state_of_health, self.cells_in_series, self._manufacture_date_raw, self._serial_number_raw, self._name_raw), force_mavlink1=force_mavlink1)
  16212. # Define name on the class for backwards compatibility (it is now msgname).
  16213. # Done with setattr to hide the class variable from mypy.
  16214. setattr(MAVLink_battery_info_message, "name", mavlink_msg_deprecated_name_property())
  16215. class MAVLink_generator_status_message(MAVLink_message):
  16216. """
  16217. Telemetry of power generation system. Alternator or mechanical
  16218. generator.
  16219. """
  16220. id = MAVLINK_MSG_ID_GENERATOR_STATUS
  16221. msgname = "GENERATOR_STATUS"
  16222. fieldnames = ["status", "generator_speed", "battery_current", "load_current", "power_generated", "bus_voltage", "rectifier_temperature", "bat_current_setpoint", "generator_temperature", "runtime", "time_until_maintenance"]
  16223. ordered_fieldnames = ["status", "battery_current", "load_current", "power_generated", "bus_voltage", "bat_current_setpoint", "runtime", "time_until_maintenance", "generator_speed", "rectifier_temperature", "generator_temperature"]
  16224. fieldtypes = ["uint64_t", "uint16_t", "float", "float", "float", "float", "int16_t", "float", "int16_t", "uint32_t", "int32_t"]
  16225. fielddisplays_by_name: Dict[str, str] = {"status": "bitmask"}
  16226. fieldenums_by_name: Dict[str, str] = {"status": "MAV_GENERATOR_STATUS_FLAG"}
  16227. fieldunits_by_name: Dict[str, str] = {"generator_speed": "rpm", "battery_current": "A", "load_current": "A", "power_generated": "W", "bus_voltage": "V", "rectifier_temperature": "degC", "bat_current_setpoint": "A", "generator_temperature": "degC", "runtime": "s", "time_until_maintenance": "s"}
  16228. native_format = bytearray(b"<QfffffIiHhh")
  16229. orders = [0, 8, 1, 2, 3, 4, 9, 5, 10, 6, 7]
  16230. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  16231. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  16232. crc_extra = 117
  16233. unpacker = struct.Struct("<QfffffIiHhh")
  16234. instance_field = None
  16235. instance_offset = -1
  16236. def __init__(self, status: int, generator_speed: int, battery_current: float, load_current: float, power_generated: float, bus_voltage: float, rectifier_temperature: int, bat_current_setpoint: float, generator_temperature: int, runtime: int, time_until_maintenance: int):
  16237. MAVLink_message.__init__(self, MAVLink_generator_status_message.id, MAVLink_generator_status_message.msgname)
  16238. self._fieldnames = MAVLink_generator_status_message.fieldnames
  16239. self._instance_field = MAVLink_generator_status_message.instance_field
  16240. self._instance_offset = MAVLink_generator_status_message.instance_offset
  16241. self.status = status
  16242. self.generator_speed = generator_speed
  16243. self.battery_current = battery_current
  16244. self.load_current = load_current
  16245. self.power_generated = power_generated
  16246. self.bus_voltage = bus_voltage
  16247. self.rectifier_temperature = rectifier_temperature
  16248. self.bat_current_setpoint = bat_current_setpoint
  16249. self.generator_temperature = generator_temperature
  16250. self.runtime = runtime
  16251. self.time_until_maintenance = time_until_maintenance
  16252. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16253. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.status, self.battery_current, self.load_current, self.power_generated, self.bus_voltage, self.bat_current_setpoint, self.runtime, self.time_until_maintenance, self.generator_speed, self.rectifier_temperature, self.generator_temperature), force_mavlink1=force_mavlink1)
  16254. # Define name on the class for backwards compatibility (it is now msgname).
  16255. # Done with setattr to hide the class variable from mypy.
  16256. setattr(MAVLink_generator_status_message, "name", mavlink_msg_deprecated_name_property())
  16257. class MAVLink_actuator_output_status_message(MAVLink_message):
  16258. """
  16259. The raw values of the actuator outputs (e.g. on Pixhawk, from
  16260. MAIN, AUX ports). This message supersedes SERVO_OUTPUT_RAW.
  16261. """
  16262. id = MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS
  16263. msgname = "ACTUATOR_OUTPUT_STATUS"
  16264. fieldnames = ["time_usec", "active", "actuator"]
  16265. ordered_fieldnames = ["time_usec", "active", "actuator"]
  16266. fieldtypes = ["uint64_t", "uint32_t", "float"]
  16267. fielddisplays_by_name: Dict[str, str] = {"active": "bitmask"}
  16268. fieldenums_by_name: Dict[str, str] = {}
  16269. fieldunits_by_name: Dict[str, str] = {"time_usec": "us"}
  16270. native_format = bytearray(b"<QIf")
  16271. orders = [0, 1, 2]
  16272. lengths = [1, 1, 32]
  16273. array_lengths = [0, 0, 32]
  16274. crc_extra = 251
  16275. unpacker = struct.Struct("<QI32f")
  16276. instance_field = None
  16277. instance_offset = -1
  16278. def __init__(self, time_usec: int, active: int, actuator: Sequence[float]):
  16279. MAVLink_message.__init__(self, MAVLink_actuator_output_status_message.id, MAVLink_actuator_output_status_message.msgname)
  16280. self._fieldnames = MAVLink_actuator_output_status_message.fieldnames
  16281. self._instance_field = MAVLink_actuator_output_status_message.instance_field
  16282. self._instance_offset = MAVLink_actuator_output_status_message.instance_offset
  16283. self.time_usec = time_usec
  16284. self.active = active
  16285. self.actuator = actuator
  16286. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16287. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.active, self.actuator[0], self.actuator[1], self.actuator[2], self.actuator[3], self.actuator[4], self.actuator[5], self.actuator[6], self.actuator[7], self.actuator[8], self.actuator[9], self.actuator[10], self.actuator[11], self.actuator[12], self.actuator[13], self.actuator[14], self.actuator[15], self.actuator[16], self.actuator[17], self.actuator[18], self.actuator[19], self.actuator[20], self.actuator[21], self.actuator[22], self.actuator[23], self.actuator[24], self.actuator[25], self.actuator[26], self.actuator[27], self.actuator[28], self.actuator[29], self.actuator[30], self.actuator[31]), force_mavlink1=force_mavlink1)
  16288. # Define name on the class for backwards compatibility (it is now msgname).
  16289. # Done with setattr to hide the class variable from mypy.
  16290. setattr(MAVLink_actuator_output_status_message, "name", mavlink_msg_deprecated_name_property())
  16291. class MAVLink_time_estimate_to_target_message(MAVLink_message):
  16292. """
  16293. Time/duration estimates for various events and actions given the
  16294. current vehicle state and position.
  16295. """
  16296. id = MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET
  16297. msgname = "TIME_ESTIMATE_TO_TARGET"
  16298. fieldnames = ["safe_return", "land", "mission_next_item", "mission_end", "commanded_action"]
  16299. ordered_fieldnames = ["safe_return", "land", "mission_next_item", "mission_end", "commanded_action"]
  16300. fieldtypes = ["int32_t", "int32_t", "int32_t", "int32_t", "int32_t"]
  16301. fielddisplays_by_name: Dict[str, str] = {}
  16302. fieldenums_by_name: Dict[str, str] = {}
  16303. fieldunits_by_name: Dict[str, str] = {"safe_return": "s", "land": "s", "mission_next_item": "s", "mission_end": "s", "commanded_action": "s"}
  16304. native_format = bytearray(b"<iiiii")
  16305. orders = [0, 1, 2, 3, 4]
  16306. lengths = [1, 1, 1, 1, 1]
  16307. array_lengths = [0, 0, 0, 0, 0]
  16308. crc_extra = 232
  16309. unpacker = struct.Struct("<iiiii")
  16310. instance_field = None
  16311. instance_offset = -1
  16312. def __init__(self, safe_return: int, land: int, mission_next_item: int, mission_end: int, commanded_action: int):
  16313. MAVLink_message.__init__(self, MAVLink_time_estimate_to_target_message.id, MAVLink_time_estimate_to_target_message.msgname)
  16314. self._fieldnames = MAVLink_time_estimate_to_target_message.fieldnames
  16315. self._instance_field = MAVLink_time_estimate_to_target_message.instance_field
  16316. self._instance_offset = MAVLink_time_estimate_to_target_message.instance_offset
  16317. self.safe_return = safe_return
  16318. self.land = land
  16319. self.mission_next_item = mission_next_item
  16320. self.mission_end = mission_end
  16321. self.commanded_action = commanded_action
  16322. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16323. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.safe_return, self.land, self.mission_next_item, self.mission_end, self.commanded_action), force_mavlink1=force_mavlink1)
  16324. # Define name on the class for backwards compatibility (it is now msgname).
  16325. # Done with setattr to hide the class variable from mypy.
  16326. setattr(MAVLink_time_estimate_to_target_message, "name", mavlink_msg_deprecated_name_property())
  16327. class MAVLink_tunnel_message(MAVLink_message):
  16328. """
  16329. Message for transporting "arbitrary" variable-length data from one
  16330. component to another (broadcast is not forbidden, but
  16331. discouraged). The encoding of the data is usually extension
  16332. specific, i.e. determined by the source, and is usually not
  16333. documented as part of the MAVLink specification.
  16334. """
  16335. id = MAVLINK_MSG_ID_TUNNEL
  16336. msgname = "TUNNEL"
  16337. fieldnames = ["target_system", "target_component", "payload_type", "payload_length", "payload"]
  16338. ordered_fieldnames = ["payload_type", "target_system", "target_component", "payload_length", "payload"]
  16339. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "uint8_t", "uint8_t"]
  16340. fielddisplays_by_name: Dict[str, str] = {}
  16341. fieldenums_by_name: Dict[str, str] = {"payload_type": "MAV_TUNNEL_PAYLOAD_TYPE"}
  16342. fieldunits_by_name: Dict[str, str] = {}
  16343. native_format = bytearray(b"<HBBBB")
  16344. orders = [1, 2, 0, 3, 4]
  16345. lengths = [1, 1, 1, 1, 128]
  16346. array_lengths = [0, 0, 0, 0, 128]
  16347. crc_extra = 147
  16348. unpacker = struct.Struct("<HBBB128B")
  16349. instance_field = None
  16350. instance_offset = -1
  16351. def __init__(self, target_system: int, target_component: int, payload_type: int, payload_length: int, payload: Sequence[int]):
  16352. MAVLink_message.__init__(self, MAVLink_tunnel_message.id, MAVLink_tunnel_message.msgname)
  16353. self._fieldnames = MAVLink_tunnel_message.fieldnames
  16354. self._instance_field = MAVLink_tunnel_message.instance_field
  16355. self._instance_offset = MAVLink_tunnel_message.instance_offset
  16356. self.target_system = target_system
  16357. self.target_component = target_component
  16358. self.payload_type = payload_type
  16359. self.payload_length = payload_length
  16360. self.payload = payload
  16361. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16362. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.payload_type, self.target_system, self.target_component, self.payload_length, self.payload[0], self.payload[1], self.payload[2], self.payload[3], self.payload[4], self.payload[5], self.payload[6], self.payload[7], self.payload[8], self.payload[9], self.payload[10], self.payload[11], self.payload[12], self.payload[13], self.payload[14], self.payload[15], self.payload[16], self.payload[17], self.payload[18], self.payload[19], self.payload[20], self.payload[21], self.payload[22], self.payload[23], self.payload[24], self.payload[25], self.payload[26], self.payload[27], self.payload[28], self.payload[29], self.payload[30], self.payload[31], self.payload[32], self.payload[33], self.payload[34], self.payload[35], self.payload[36], self.payload[37], self.payload[38], self.payload[39], self.payload[40], self.payload[41], self.payload[42], self.payload[43], self.payload[44], self.payload[45], self.payload[46], self.payload[47], self.payload[48], self.payload[49], self.payload[50], self.payload[51], self.payload[52], self.payload[53], self.payload[54], self.payload[55], self.payload[56], self.payload[57], self.payload[58], self.payload[59], self.payload[60], self.payload[61], self.payload[62], self.payload[63], self.payload[64], self.payload[65], self.payload[66], self.payload[67], self.payload[68], self.payload[69], self.payload[70], self.payload[71], self.payload[72], self.payload[73], self.payload[74], self.payload[75], self.payload[76], self.payload[77], self.payload[78], self.payload[79], self.payload[80], self.payload[81], self.payload[82], self.payload[83], self.payload[84], self.payload[85], self.payload[86], self.payload[87], self.payload[88], self.payload[89], self.payload[90], self.payload[91], self.payload[92], self.payload[93], self.payload[94], self.payload[95], self.payload[96], self.payload[97], self.payload[98], self.payload[99], self.payload[100], self.payload[101], self.payload[102], self.payload[103], self.payload[104], self.payload[105], self.payload[106], self.payload[107], self.payload[108], self.payload[109], self.payload[110], self.payload[111], self.payload[112], self.payload[113], self.payload[114], self.payload[115], self.payload[116], self.payload[117], self.payload[118], self.payload[119], self.payload[120], self.payload[121], self.payload[122], self.payload[123], self.payload[124], self.payload[125], self.payload[126], self.payload[127]), force_mavlink1=force_mavlink1)
  16363. # Define name on the class for backwards compatibility (it is now msgname).
  16364. # Done with setattr to hide the class variable from mypy.
  16365. setattr(MAVLink_tunnel_message, "name", mavlink_msg_deprecated_name_property())
  16366. class MAVLink_can_frame_message(MAVLink_message):
  16367. """
  16368. A forwarded CAN frame as requested by MAV_CMD_CAN_FORWARD.
  16369. """
  16370. id = MAVLINK_MSG_ID_CAN_FRAME
  16371. msgname = "CAN_FRAME"
  16372. fieldnames = ["target_system", "target_component", "bus", "len", "id", "data"]
  16373. ordered_fieldnames = ["id", "target_system", "target_component", "bus", "len", "data"]
  16374. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint32_t", "uint8_t"]
  16375. fielddisplays_by_name: Dict[str, str] = {}
  16376. fieldenums_by_name: Dict[str, str] = {}
  16377. fieldunits_by_name: Dict[str, str] = {}
  16378. native_format = bytearray(b"<IBBBBB")
  16379. orders = [1, 2, 3, 4, 0, 5]
  16380. lengths = [1, 1, 1, 1, 1, 8]
  16381. array_lengths = [0, 0, 0, 0, 0, 8]
  16382. crc_extra = 132
  16383. unpacker = struct.Struct("<IBBBB8B")
  16384. instance_field = None
  16385. instance_offset = -1
  16386. def __init__(self, target_system: int, target_component: int, bus: int, len: int, id: int, data: Sequence[int]):
  16387. MAVLink_message.__init__(self, MAVLink_can_frame_message.id, MAVLink_can_frame_message.msgname)
  16388. self._fieldnames = MAVLink_can_frame_message.fieldnames
  16389. self._instance_field = MAVLink_can_frame_message.instance_field
  16390. self._instance_offset = MAVLink_can_frame_message.instance_offset
  16391. self.target_system = target_system
  16392. self.target_component = target_component
  16393. self.bus = bus
  16394. self.len = len
  16395. self.id = id
  16396. self.data = data
  16397. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16398. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.id, self.target_system, self.target_component, self.bus, self.len, self.data[0], self.data[1], self.data[2], self.data[3], self.data[4], self.data[5], self.data[6], self.data[7]), force_mavlink1=force_mavlink1)
  16399. # Define name on the class for backwards compatibility (it is now msgname).
  16400. # Done with setattr to hide the class variable from mypy.
  16401. setattr(MAVLink_can_frame_message, "name", mavlink_msg_deprecated_name_property())
  16402. class MAVLink_onboard_computer_status_message(MAVLink_message):
  16403. """
  16404. Hardware status sent by an onboard computer.
  16405. """
  16406. id = MAVLINK_MSG_ID_ONBOARD_COMPUTER_STATUS
  16407. msgname = "ONBOARD_COMPUTER_STATUS"
  16408. fieldnames = ["time_usec", "uptime", "type", "cpu_cores", "cpu_combined", "gpu_cores", "gpu_combined", "temperature_board", "temperature_core", "fan_speed", "ram_usage", "ram_total", "storage_type", "storage_usage", "storage_total", "link_type", "link_tx_rate", "link_rx_rate", "link_tx_max", "link_rx_max"]
  16409. ordered_fieldnames = ["time_usec", "uptime", "ram_usage", "ram_total", "storage_type", "storage_usage", "storage_total", "link_type", "link_tx_rate", "link_rx_rate", "link_tx_max", "link_rx_max", "fan_speed", "type", "cpu_cores", "cpu_combined", "gpu_cores", "gpu_combined", "temperature_board", "temperature_core"]
  16410. fieldtypes = ["uint64_t", "uint32_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "int8_t", "int8_t", "int16_t", "uint32_t", "uint32_t", "uint32_t", "uint32_t", "uint32_t", "uint32_t", "uint32_t", "uint32_t", "uint32_t", "uint32_t"]
  16411. fielddisplays_by_name: Dict[str, str] = {}
  16412. fieldenums_by_name: Dict[str, str] = {}
  16413. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "uptime": "ms", "temperature_board": "degC", "temperature_core": "degC", "fan_speed": "rpm", "ram_usage": "MiB", "ram_total": "MiB", "storage_usage": "MiB", "storage_total": "MiB", "link_tx_rate": "KiB/s", "link_rx_rate": "KiB/s", "link_tx_max": "KiB/s", "link_rx_max": "KiB/s"}
  16414. native_format = bytearray(b"<QIIIIIIIIIIIhBBBBBbb")
  16415. orders = [0, 1, 13, 14, 15, 16, 17, 18, 19, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
  16416. lengths = [1, 1, 1, 1, 4, 4, 4, 6, 6, 6, 6, 6, 4, 1, 8, 10, 4, 10, 1, 8]
  16417. array_lengths = [0, 0, 0, 0, 4, 4, 4, 6, 6, 6, 6, 6, 4, 0, 8, 10, 4, 10, 0, 8]
  16418. crc_extra = 156
  16419. unpacker = struct.Struct("<QIII4I4I4I6I6I6I6I6I4hB8B10B4B10Bb8b")
  16420. instance_field = None
  16421. instance_offset = -1
  16422. def __init__(self, time_usec: int, uptime: int, type: int, cpu_cores: Sequence[int], cpu_combined: Sequence[int], gpu_cores: Sequence[int], gpu_combined: Sequence[int], temperature_board: int, temperature_core: Sequence[int], fan_speed: Sequence[int], ram_usage: int, ram_total: int, storage_type: Sequence[int], storage_usage: Sequence[int], storage_total: Sequence[int], link_type: Sequence[int], link_tx_rate: Sequence[int], link_rx_rate: Sequence[int], link_tx_max: Sequence[int], link_rx_max: Sequence[int]):
  16423. MAVLink_message.__init__(self, MAVLink_onboard_computer_status_message.id, MAVLink_onboard_computer_status_message.msgname)
  16424. self._fieldnames = MAVLink_onboard_computer_status_message.fieldnames
  16425. self._instance_field = MAVLink_onboard_computer_status_message.instance_field
  16426. self._instance_offset = MAVLink_onboard_computer_status_message.instance_offset
  16427. self.time_usec = time_usec
  16428. self.uptime = uptime
  16429. self.type = type
  16430. self.cpu_cores = cpu_cores
  16431. self.cpu_combined = cpu_combined
  16432. self.gpu_cores = gpu_cores
  16433. self.gpu_combined = gpu_combined
  16434. self.temperature_board = temperature_board
  16435. self.temperature_core = temperature_core
  16436. self.fan_speed = fan_speed
  16437. self.ram_usage = ram_usage
  16438. self.ram_total = ram_total
  16439. self.storage_type = storage_type
  16440. self.storage_usage = storage_usage
  16441. self.storage_total = storage_total
  16442. self.link_type = link_type
  16443. self.link_tx_rate = link_tx_rate
  16444. self.link_rx_rate = link_rx_rate
  16445. self.link_tx_max = link_tx_max
  16446. self.link_rx_max = link_rx_max
  16447. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16448. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.uptime, self.ram_usage, self.ram_total, self.storage_type[0], self.storage_type[1], self.storage_type[2], self.storage_type[3], self.storage_usage[0], self.storage_usage[1], self.storage_usage[2], self.storage_usage[3], self.storage_total[0], self.storage_total[1], self.storage_total[2], self.storage_total[3], self.link_type[0], self.link_type[1], self.link_type[2], self.link_type[3], self.link_type[4], self.link_type[5], self.link_tx_rate[0], self.link_tx_rate[1], self.link_tx_rate[2], self.link_tx_rate[3], self.link_tx_rate[4], self.link_tx_rate[5], self.link_rx_rate[0], self.link_rx_rate[1], self.link_rx_rate[2], self.link_rx_rate[3], self.link_rx_rate[4], self.link_rx_rate[5], self.link_tx_max[0], self.link_tx_max[1], self.link_tx_max[2], self.link_tx_max[3], self.link_tx_max[4], self.link_tx_max[5], self.link_rx_max[0], self.link_rx_max[1], self.link_rx_max[2], self.link_rx_max[3], self.link_rx_max[4], self.link_rx_max[5], self.fan_speed[0], self.fan_speed[1], self.fan_speed[2], self.fan_speed[3], self.type, self.cpu_cores[0], self.cpu_cores[1], self.cpu_cores[2], self.cpu_cores[3], self.cpu_cores[4], self.cpu_cores[5], self.cpu_cores[6], self.cpu_cores[7], self.cpu_combined[0], self.cpu_combined[1], self.cpu_combined[2], self.cpu_combined[3], self.cpu_combined[4], self.cpu_combined[5], self.cpu_combined[6], self.cpu_combined[7], self.cpu_combined[8], self.cpu_combined[9], self.gpu_cores[0], self.gpu_cores[1], self.gpu_cores[2], self.gpu_cores[3], self.gpu_combined[0], self.gpu_combined[1], self.gpu_combined[2], self.gpu_combined[3], self.gpu_combined[4], self.gpu_combined[5], self.gpu_combined[6], self.gpu_combined[7], self.gpu_combined[8], self.gpu_combined[9], self.temperature_board, self.temperature_core[0], self.temperature_core[1], self.temperature_core[2], self.temperature_core[3], self.temperature_core[4], self.temperature_core[5], self.temperature_core[6], self.temperature_core[7]), force_mavlink1=force_mavlink1)
  16449. # Define name on the class for backwards compatibility (it is now msgname).
  16450. # Done with setattr to hide the class variable from mypy.
  16451. setattr(MAVLink_onboard_computer_status_message, "name", mavlink_msg_deprecated_name_property())
  16452. class MAVLink_component_information_message(MAVLink_message):
  16453. """
  16454. Component information message, which may be requested using
  16455. MAV_CMD_REQUEST_MESSAGE.
  16456. """
  16457. id = MAVLINK_MSG_ID_COMPONENT_INFORMATION
  16458. msgname = "COMPONENT_INFORMATION"
  16459. fieldnames = ["time_boot_ms", "general_metadata_file_crc", "general_metadata_uri", "peripherals_metadata_file_crc", "peripherals_metadata_uri"]
  16460. ordered_fieldnames = ["time_boot_ms", "general_metadata_file_crc", "peripherals_metadata_file_crc", "general_metadata_uri", "peripherals_metadata_uri"]
  16461. fieldtypes = ["uint32_t", "uint32_t", "char", "uint32_t", "char"]
  16462. fielddisplays_by_name: Dict[str, str] = {}
  16463. fieldenums_by_name: Dict[str, str] = {}
  16464. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms"}
  16465. native_format = bytearray(b"<IIIcc")
  16466. orders = [0, 1, 3, 2, 4]
  16467. lengths = [1, 1, 1, 1, 1]
  16468. array_lengths = [0, 0, 0, 100, 100]
  16469. crc_extra = 0
  16470. unpacker = struct.Struct("<III100s100s")
  16471. instance_field = None
  16472. instance_offset = -1
  16473. def __init__(self, time_boot_ms: int, general_metadata_file_crc: int, general_metadata_uri: bytes, peripherals_metadata_file_crc: int, peripherals_metadata_uri: bytes):
  16474. MAVLink_message.__init__(self, MAVLink_component_information_message.id, MAVLink_component_information_message.msgname)
  16475. self._fieldnames = MAVLink_component_information_message.fieldnames
  16476. self._instance_field = MAVLink_component_information_message.instance_field
  16477. self._instance_offset = MAVLink_component_information_message.instance_offset
  16478. self.time_boot_ms = time_boot_ms
  16479. self.general_metadata_file_crc = general_metadata_file_crc
  16480. self._general_metadata_uri_raw = general_metadata_uri
  16481. self.general_metadata_uri = general_metadata_uri.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  16482. self.peripherals_metadata_file_crc = peripherals_metadata_file_crc
  16483. self._peripherals_metadata_uri_raw = peripherals_metadata_uri
  16484. self.peripherals_metadata_uri = peripherals_metadata_uri.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  16485. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16486. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.general_metadata_file_crc, self.peripherals_metadata_file_crc, self._general_metadata_uri_raw, self._peripherals_metadata_uri_raw), force_mavlink1=force_mavlink1)
  16487. # Define name on the class for backwards compatibility (it is now msgname).
  16488. # Done with setattr to hide the class variable from mypy.
  16489. setattr(MAVLink_component_information_message, "name", mavlink_msg_deprecated_name_property())
  16490. class MAVLink_component_metadata_message(MAVLink_message):
  16491. """
  16492. Component metadata message, which may be requested using
  16493. MAV_CMD_REQUEST_MESSAGE. This contains the MAVLink FTP
  16494. URI and CRC for the component's general metadata file. The
  16495. file must be hosted on the component, and may be xz compressed.
  16496. The file CRC can be used for file caching. The general
  16497. metadata file can be read to get the locations of other metadata
  16498. files (COMP_METADATA_TYPE) and translations, which may be hosted
  16499. either on the vehicle or the internet. For more
  16500. information see:
  16501. https://mavlink.io/en/services/component_information.html.
  16502. Note: Camera components should use CAMERA_INFORMATION instead, and
  16503. autopilots may use both this message and AUTOPILOT_VERSION.
  16504. """
  16505. id = MAVLINK_MSG_ID_COMPONENT_METADATA
  16506. msgname = "COMPONENT_METADATA"
  16507. fieldnames = ["time_boot_ms", "file_crc", "uri"]
  16508. ordered_fieldnames = ["time_boot_ms", "file_crc", "uri"]
  16509. fieldtypes = ["uint32_t", "uint32_t", "char"]
  16510. fielddisplays_by_name: Dict[str, str] = {}
  16511. fieldenums_by_name: Dict[str, str] = {}
  16512. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms"}
  16513. native_format = bytearray(b"<IIc")
  16514. orders = [0, 1, 2]
  16515. lengths = [1, 1, 1]
  16516. array_lengths = [0, 0, 100]
  16517. crc_extra = 182
  16518. unpacker = struct.Struct("<II100s")
  16519. instance_field = None
  16520. instance_offset = -1
  16521. def __init__(self, time_boot_ms: int, file_crc: int, uri: bytes):
  16522. MAVLink_message.__init__(self, MAVLink_component_metadata_message.id, MAVLink_component_metadata_message.msgname)
  16523. self._fieldnames = MAVLink_component_metadata_message.fieldnames
  16524. self._instance_field = MAVLink_component_metadata_message.instance_field
  16525. self._instance_offset = MAVLink_component_metadata_message.instance_offset
  16526. self.time_boot_ms = time_boot_ms
  16527. self.file_crc = file_crc
  16528. self._uri_raw = uri
  16529. self.uri = uri.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  16530. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16531. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.file_crc, self._uri_raw), force_mavlink1=force_mavlink1)
  16532. # Define name on the class for backwards compatibility (it is now msgname).
  16533. # Done with setattr to hide the class variable from mypy.
  16534. setattr(MAVLink_component_metadata_message, "name", mavlink_msg_deprecated_name_property())
  16535. class MAVLink_play_tune_v2_message(MAVLink_message):
  16536. """
  16537. Play vehicle tone/tune (buzzer). Supersedes message PLAY_TUNE.
  16538. """
  16539. id = MAVLINK_MSG_ID_PLAY_TUNE_V2
  16540. msgname = "PLAY_TUNE_V2"
  16541. fieldnames = ["target_system", "target_component", "format", "tune"]
  16542. ordered_fieldnames = ["format", "target_system", "target_component", "tune"]
  16543. fieldtypes = ["uint8_t", "uint8_t", "uint32_t", "char"]
  16544. fielddisplays_by_name: Dict[str, str] = {"format": "bitmask"}
  16545. fieldenums_by_name: Dict[str, str] = {"format": "TUNE_FORMAT"}
  16546. fieldunits_by_name: Dict[str, str] = {}
  16547. native_format = bytearray(b"<IBBc")
  16548. orders = [1, 2, 0, 3]
  16549. lengths = [1, 1, 1, 1]
  16550. array_lengths = [0, 0, 0, 248]
  16551. crc_extra = 110
  16552. unpacker = struct.Struct("<IBB248s")
  16553. instance_field = None
  16554. instance_offset = -1
  16555. def __init__(self, target_system: int, target_component: int, format: int, tune: bytes):
  16556. MAVLink_message.__init__(self, MAVLink_play_tune_v2_message.id, MAVLink_play_tune_v2_message.msgname)
  16557. self._fieldnames = MAVLink_play_tune_v2_message.fieldnames
  16558. self._instance_field = MAVLink_play_tune_v2_message.instance_field
  16559. self._instance_offset = MAVLink_play_tune_v2_message.instance_offset
  16560. self.target_system = target_system
  16561. self.target_component = target_component
  16562. self.format = format
  16563. self._tune_raw = tune
  16564. self.tune = tune.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  16565. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16566. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.format, self.target_system, self.target_component, self._tune_raw), force_mavlink1=force_mavlink1)
  16567. # Define name on the class for backwards compatibility (it is now msgname).
  16568. # Done with setattr to hide the class variable from mypy.
  16569. setattr(MAVLink_play_tune_v2_message, "name", mavlink_msg_deprecated_name_property())
  16570. class MAVLink_supported_tunes_message(MAVLink_message):
  16571. """
  16572. Tune formats supported by vehicle. This should be emitted as
  16573. response to MAV_CMD_REQUEST_MESSAGE.
  16574. """
  16575. id = MAVLINK_MSG_ID_SUPPORTED_TUNES
  16576. msgname = "SUPPORTED_TUNES"
  16577. fieldnames = ["target_system", "target_component", "format"]
  16578. ordered_fieldnames = ["format", "target_system", "target_component"]
  16579. fieldtypes = ["uint8_t", "uint8_t", "uint32_t"]
  16580. fielddisplays_by_name: Dict[str, str] = {"format": "bitmask"}
  16581. fieldenums_by_name: Dict[str, str] = {"format": "TUNE_FORMAT"}
  16582. fieldunits_by_name: Dict[str, str] = {}
  16583. native_format = bytearray(b"<IBB")
  16584. orders = [1, 2, 0]
  16585. lengths = [1, 1, 1]
  16586. array_lengths = [0, 0, 0]
  16587. crc_extra = 183
  16588. unpacker = struct.Struct("<IBB")
  16589. instance_field = None
  16590. instance_offset = -1
  16591. def __init__(self, target_system: int, target_component: int, format: int):
  16592. MAVLink_message.__init__(self, MAVLink_supported_tunes_message.id, MAVLink_supported_tunes_message.msgname)
  16593. self._fieldnames = MAVLink_supported_tunes_message.fieldnames
  16594. self._instance_field = MAVLink_supported_tunes_message.instance_field
  16595. self._instance_offset = MAVLink_supported_tunes_message.instance_offset
  16596. self.target_system = target_system
  16597. self.target_component = target_component
  16598. self.format = format
  16599. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16600. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.format, self.target_system, self.target_component), force_mavlink1=force_mavlink1)
  16601. # Define name on the class for backwards compatibility (it is now msgname).
  16602. # Done with setattr to hide the class variable from mypy.
  16603. setattr(MAVLink_supported_tunes_message, "name", mavlink_msg_deprecated_name_property())
  16604. class MAVLink_event_message(MAVLink_message):
  16605. """
  16606. Event message. Each new event from a particular component gets a
  16607. new sequence number. The same message might be sent multiple times
  16608. if (re-)requested. Most events are broadcast, some can be specific
  16609. to a target component (as receivers keep track of the sequence for
  16610. missed events, all events need to be broadcast. Thus we use
  16611. destination_component instead of target_component).
  16612. """
  16613. id = MAVLINK_MSG_ID_EVENT
  16614. msgname = "EVENT"
  16615. fieldnames = ["destination_component", "destination_system", "id", "event_time_boot_ms", "sequence", "log_levels", "arguments"]
  16616. ordered_fieldnames = ["id", "event_time_boot_ms", "sequence", "destination_component", "destination_system", "log_levels", "arguments"]
  16617. fieldtypes = ["uint8_t", "uint8_t", "uint32_t", "uint32_t", "uint16_t", "uint8_t", "uint8_t"]
  16618. fielddisplays_by_name: Dict[str, str] = {}
  16619. fieldenums_by_name: Dict[str, str] = {}
  16620. fieldunits_by_name: Dict[str, str] = {"event_time_boot_ms": "ms"}
  16621. native_format = bytearray(b"<IIHBBBB")
  16622. orders = [3, 4, 0, 1, 2, 5, 6]
  16623. lengths = [1, 1, 1, 1, 1, 1, 40]
  16624. array_lengths = [0, 0, 0, 0, 0, 0, 40]
  16625. crc_extra = 160
  16626. unpacker = struct.Struct("<IIHBBB40B")
  16627. instance_field = None
  16628. instance_offset = -1
  16629. def __init__(self, destination_component: int, destination_system: int, id: int, event_time_boot_ms: int, sequence: int, log_levels: int, arguments: Sequence[int]):
  16630. MAVLink_message.__init__(self, MAVLink_event_message.id, MAVLink_event_message.msgname)
  16631. self._fieldnames = MAVLink_event_message.fieldnames
  16632. self._instance_field = MAVLink_event_message.instance_field
  16633. self._instance_offset = MAVLink_event_message.instance_offset
  16634. self.destination_component = destination_component
  16635. self.destination_system = destination_system
  16636. self.id = id
  16637. self.event_time_boot_ms = event_time_boot_ms
  16638. self.sequence = sequence
  16639. self.log_levels = log_levels
  16640. self.arguments = arguments
  16641. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16642. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.id, self.event_time_boot_ms, self.sequence, self.destination_component, self.destination_system, self.log_levels, self.arguments[0], self.arguments[1], self.arguments[2], self.arguments[3], self.arguments[4], self.arguments[5], self.arguments[6], self.arguments[7], self.arguments[8], self.arguments[9], self.arguments[10], self.arguments[11], self.arguments[12], self.arguments[13], self.arguments[14], self.arguments[15], self.arguments[16], self.arguments[17], self.arguments[18], self.arguments[19], self.arguments[20], self.arguments[21], self.arguments[22], self.arguments[23], self.arguments[24], self.arguments[25], self.arguments[26], self.arguments[27], self.arguments[28], self.arguments[29], self.arguments[30], self.arguments[31], self.arguments[32], self.arguments[33], self.arguments[34], self.arguments[35], self.arguments[36], self.arguments[37], self.arguments[38], self.arguments[39]), force_mavlink1=force_mavlink1)
  16643. # Define name on the class for backwards compatibility (it is now msgname).
  16644. # Done with setattr to hide the class variable from mypy.
  16645. setattr(MAVLink_event_message, "name", mavlink_msg_deprecated_name_property())
  16646. class MAVLink_current_event_sequence_message(MAVLink_message):
  16647. """
  16648. Regular broadcast for the current latest event sequence number for
  16649. a component. This is used to check for dropped events.
  16650. """
  16651. id = MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE
  16652. msgname = "CURRENT_EVENT_SEQUENCE"
  16653. fieldnames = ["sequence", "flags"]
  16654. ordered_fieldnames = ["sequence", "flags"]
  16655. fieldtypes = ["uint16_t", "uint8_t"]
  16656. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  16657. fieldenums_by_name: Dict[str, str] = {"flags": "MAV_EVENT_CURRENT_SEQUENCE_FLAGS"}
  16658. fieldunits_by_name: Dict[str, str] = {}
  16659. native_format = bytearray(b"<HB")
  16660. orders = [0, 1]
  16661. lengths = [1, 1]
  16662. array_lengths = [0, 0]
  16663. crc_extra = 106
  16664. unpacker = struct.Struct("<HB")
  16665. instance_field = None
  16666. instance_offset = -1
  16667. def __init__(self, sequence: int, flags: int):
  16668. MAVLink_message.__init__(self, MAVLink_current_event_sequence_message.id, MAVLink_current_event_sequence_message.msgname)
  16669. self._fieldnames = MAVLink_current_event_sequence_message.fieldnames
  16670. self._instance_field = MAVLink_current_event_sequence_message.instance_field
  16671. self._instance_offset = MAVLink_current_event_sequence_message.instance_offset
  16672. self.sequence = sequence
  16673. self.flags = flags
  16674. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16675. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.sequence, self.flags), force_mavlink1=force_mavlink1)
  16676. # Define name on the class for backwards compatibility (it is now msgname).
  16677. # Done with setattr to hide the class variable from mypy.
  16678. setattr(MAVLink_current_event_sequence_message, "name", mavlink_msg_deprecated_name_property())
  16679. class MAVLink_request_event_message(MAVLink_message):
  16680. """
  16681. Request one or more events to be (re-)sent. If
  16682. first_sequence==last_sequence, only a single event is requested.
  16683. Note that first_sequence can be larger than last_sequence (because
  16684. the sequence number can wrap). Each sequence will trigger an EVENT
  16685. or EVENT_ERROR response.
  16686. """
  16687. id = MAVLINK_MSG_ID_REQUEST_EVENT
  16688. msgname = "REQUEST_EVENT"
  16689. fieldnames = ["target_system", "target_component", "first_sequence", "last_sequence"]
  16690. ordered_fieldnames = ["first_sequence", "last_sequence", "target_system", "target_component"]
  16691. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "uint16_t"]
  16692. fielddisplays_by_name: Dict[str, str] = {}
  16693. fieldenums_by_name: Dict[str, str] = {}
  16694. fieldunits_by_name: Dict[str, str] = {}
  16695. native_format = bytearray(b"<HHBB")
  16696. orders = [2, 3, 0, 1]
  16697. lengths = [1, 1, 1, 1]
  16698. array_lengths = [0, 0, 0, 0]
  16699. crc_extra = 33
  16700. unpacker = struct.Struct("<HHBB")
  16701. instance_field = None
  16702. instance_offset = -1
  16703. def __init__(self, target_system: int, target_component: int, first_sequence: int, last_sequence: int):
  16704. MAVLink_message.__init__(self, MAVLink_request_event_message.id, MAVLink_request_event_message.msgname)
  16705. self._fieldnames = MAVLink_request_event_message.fieldnames
  16706. self._instance_field = MAVLink_request_event_message.instance_field
  16707. self._instance_offset = MAVLink_request_event_message.instance_offset
  16708. self.target_system = target_system
  16709. self.target_component = target_component
  16710. self.first_sequence = first_sequence
  16711. self.last_sequence = last_sequence
  16712. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16713. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.first_sequence, self.last_sequence, self.target_system, self.target_component), force_mavlink1=force_mavlink1)
  16714. # Define name on the class for backwards compatibility (it is now msgname).
  16715. # Done with setattr to hide the class variable from mypy.
  16716. setattr(MAVLink_request_event_message, "name", mavlink_msg_deprecated_name_property())
  16717. class MAVLink_response_event_error_message(MAVLink_message):
  16718. """
  16719. Response to a REQUEST_EVENT in case of an error (e.g. the event is
  16720. not available anymore).
  16721. """
  16722. id = MAVLINK_MSG_ID_RESPONSE_EVENT_ERROR
  16723. msgname = "RESPONSE_EVENT_ERROR"
  16724. fieldnames = ["target_system", "target_component", "sequence", "sequence_oldest_available", "reason"]
  16725. ordered_fieldnames = ["sequence", "sequence_oldest_available", "target_system", "target_component", "reason"]
  16726. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "uint16_t", "uint8_t"]
  16727. fielddisplays_by_name: Dict[str, str] = {}
  16728. fieldenums_by_name: Dict[str, str] = {"reason": "MAV_EVENT_ERROR_REASON"}
  16729. fieldunits_by_name: Dict[str, str] = {}
  16730. native_format = bytearray(b"<HHBBB")
  16731. orders = [2, 3, 0, 1, 4]
  16732. lengths = [1, 1, 1, 1, 1]
  16733. array_lengths = [0, 0, 0, 0, 0]
  16734. crc_extra = 77
  16735. unpacker = struct.Struct("<HHBBB")
  16736. instance_field = None
  16737. instance_offset = -1
  16738. def __init__(self, target_system: int, target_component: int, sequence: int, sequence_oldest_available: int, reason: int):
  16739. MAVLink_message.__init__(self, MAVLink_response_event_error_message.id, MAVLink_response_event_error_message.msgname)
  16740. self._fieldnames = MAVLink_response_event_error_message.fieldnames
  16741. self._instance_field = MAVLink_response_event_error_message.instance_field
  16742. self._instance_offset = MAVLink_response_event_error_message.instance_offset
  16743. self.target_system = target_system
  16744. self.target_component = target_component
  16745. self.sequence = sequence
  16746. self.sequence_oldest_available = sequence_oldest_available
  16747. self.reason = reason
  16748. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16749. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.sequence, self.sequence_oldest_available, self.target_system, self.target_component, self.reason), force_mavlink1=force_mavlink1)
  16750. # Define name on the class for backwards compatibility (it is now msgname).
  16751. # Done with setattr to hide the class variable from mypy.
  16752. setattr(MAVLink_response_event_error_message, "name", mavlink_msg_deprecated_name_property())
  16753. class MAVLink_canfd_frame_message(MAVLink_message):
  16754. """
  16755. A forwarded CANFD frame as requested by MAV_CMD_CAN_FORWARD. These
  16756. are separated from CAN_FRAME as they need different handling (eg.
  16757. TAO handling)
  16758. """
  16759. id = MAVLINK_MSG_ID_CANFD_FRAME
  16760. msgname = "CANFD_FRAME"
  16761. fieldnames = ["target_system", "target_component", "bus", "len", "id", "data"]
  16762. ordered_fieldnames = ["id", "target_system", "target_component", "bus", "len", "data"]
  16763. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint32_t", "uint8_t"]
  16764. fielddisplays_by_name: Dict[str, str] = {}
  16765. fieldenums_by_name: Dict[str, str] = {}
  16766. fieldunits_by_name: Dict[str, str] = {}
  16767. native_format = bytearray(b"<IBBBBB")
  16768. orders = [1, 2, 3, 4, 0, 5]
  16769. lengths = [1, 1, 1, 1, 1, 64]
  16770. array_lengths = [0, 0, 0, 0, 0, 64]
  16771. crc_extra = 4
  16772. unpacker = struct.Struct("<IBBBB64B")
  16773. instance_field = None
  16774. instance_offset = -1
  16775. def __init__(self, target_system: int, target_component: int, bus: int, len: int, id: int, data: Sequence[int]):
  16776. MAVLink_message.__init__(self, MAVLink_canfd_frame_message.id, MAVLink_canfd_frame_message.msgname)
  16777. self._fieldnames = MAVLink_canfd_frame_message.fieldnames
  16778. self._instance_field = MAVLink_canfd_frame_message.instance_field
  16779. self._instance_offset = MAVLink_canfd_frame_message.instance_offset
  16780. self.target_system = target_system
  16781. self.target_component = target_component
  16782. self.bus = bus
  16783. self.len = len
  16784. self.id = id
  16785. self.data = data
  16786. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16787. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.id, self.target_system, self.target_component, self.bus, self.len, self.data[0], self.data[1], self.data[2], self.data[3], self.data[4], self.data[5], self.data[6], self.data[7], self.data[8], self.data[9], self.data[10], self.data[11], self.data[12], self.data[13], self.data[14], self.data[15], self.data[16], self.data[17], self.data[18], self.data[19], self.data[20], self.data[21], self.data[22], self.data[23], self.data[24], self.data[25], self.data[26], self.data[27], self.data[28], self.data[29], self.data[30], self.data[31], self.data[32], self.data[33], self.data[34], self.data[35], self.data[36], self.data[37], self.data[38], self.data[39], self.data[40], self.data[41], self.data[42], self.data[43], self.data[44], self.data[45], self.data[46], self.data[47], self.data[48], self.data[49], self.data[50], self.data[51], self.data[52], self.data[53], self.data[54], self.data[55], self.data[56], self.data[57], self.data[58], self.data[59], self.data[60], self.data[61], self.data[62], self.data[63]), force_mavlink1=force_mavlink1)
  16788. # Define name on the class for backwards compatibility (it is now msgname).
  16789. # Done with setattr to hide the class variable from mypy.
  16790. setattr(MAVLink_canfd_frame_message, "name", mavlink_msg_deprecated_name_property())
  16791. class MAVLink_can_filter_modify_message(MAVLink_message):
  16792. """
  16793. Modify the filter of what CAN messages to forward over the
  16794. mavlink. This can be used to make CAN forwarding work well on low
  16795. bandwidth links. The filtering is applied on bits 8 to 24 of the
  16796. CAN id (2nd and 3rd bytes) which corresponds to the DroneCAN
  16797. message ID for DroneCAN. Filters with more than 16 IDs can be
  16798. constructed by sending multiple CAN_FILTER_MODIFY messages.
  16799. """
  16800. id = MAVLINK_MSG_ID_CAN_FILTER_MODIFY
  16801. msgname = "CAN_FILTER_MODIFY"
  16802. fieldnames = ["target_system", "target_component", "bus", "operation", "num_ids", "ids"]
  16803. ordered_fieldnames = ["ids", "target_system", "target_component", "bus", "operation", "num_ids"]
  16804. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint16_t"]
  16805. fielddisplays_by_name: Dict[str, str] = {}
  16806. fieldenums_by_name: Dict[str, str] = {"operation": "CAN_FILTER_OP"}
  16807. fieldunits_by_name: Dict[str, str] = {}
  16808. native_format = bytearray(b"<HBBBBB")
  16809. orders = [1, 2, 3, 4, 5, 0]
  16810. lengths = [16, 1, 1, 1, 1, 1]
  16811. array_lengths = [16, 0, 0, 0, 0, 0]
  16812. crc_extra = 8
  16813. unpacker = struct.Struct("<16HBBBBB")
  16814. instance_field = None
  16815. instance_offset = -1
  16816. def __init__(self, target_system: int, target_component: int, bus: int, operation: int, num_ids: int, ids: Sequence[int]):
  16817. MAVLink_message.__init__(self, MAVLink_can_filter_modify_message.id, MAVLink_can_filter_modify_message.msgname)
  16818. self._fieldnames = MAVLink_can_filter_modify_message.fieldnames
  16819. self._instance_field = MAVLink_can_filter_modify_message.instance_field
  16820. self._instance_offset = MAVLink_can_filter_modify_message.instance_offset
  16821. self.target_system = target_system
  16822. self.target_component = target_component
  16823. self.bus = bus
  16824. self.operation = operation
  16825. self.num_ids = num_ids
  16826. self.ids = ids
  16827. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16828. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.ids[0], self.ids[1], self.ids[2], self.ids[3], self.ids[4], self.ids[5], self.ids[6], self.ids[7], self.ids[8], self.ids[9], self.ids[10], self.ids[11], self.ids[12], self.ids[13], self.ids[14], self.ids[15], self.target_system, self.target_component, self.bus, self.operation, self.num_ids), force_mavlink1=force_mavlink1)
  16829. # Define name on the class for backwards compatibility (it is now msgname).
  16830. # Done with setattr to hide the class variable from mypy.
  16831. setattr(MAVLink_can_filter_modify_message, "name", mavlink_msg_deprecated_name_property())
  16832. class MAVLink_wheel_distance_message(MAVLink_message):
  16833. """
  16834. Cumulative distance traveled for each reported wheel.
  16835. """
  16836. id = MAVLINK_MSG_ID_WHEEL_DISTANCE
  16837. msgname = "WHEEL_DISTANCE"
  16838. fieldnames = ["time_usec", "count", "distance"]
  16839. ordered_fieldnames = ["time_usec", "distance", "count"]
  16840. fieldtypes = ["uint64_t", "uint8_t", "double"]
  16841. fielddisplays_by_name: Dict[str, str] = {}
  16842. fieldenums_by_name: Dict[str, str] = {}
  16843. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "distance": "m"}
  16844. native_format = bytearray(b"<QdB")
  16845. orders = [0, 2, 1]
  16846. lengths = [1, 16, 1]
  16847. array_lengths = [0, 16, 0]
  16848. crc_extra = 113
  16849. unpacker = struct.Struct("<Q16dB")
  16850. instance_field = None
  16851. instance_offset = -1
  16852. def __init__(self, time_usec: int, count: int, distance: Sequence[float]):
  16853. MAVLink_message.__init__(self, MAVLink_wheel_distance_message.id, MAVLink_wheel_distance_message.msgname)
  16854. self._fieldnames = MAVLink_wheel_distance_message.fieldnames
  16855. self._instance_field = MAVLink_wheel_distance_message.instance_field
  16856. self._instance_offset = MAVLink_wheel_distance_message.instance_offset
  16857. self.time_usec = time_usec
  16858. self.count = count
  16859. self.distance = distance
  16860. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16861. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.distance[0], self.distance[1], self.distance[2], self.distance[3], self.distance[4], self.distance[5], self.distance[6], self.distance[7], self.distance[8], self.distance[9], self.distance[10], self.distance[11], self.distance[12], self.distance[13], self.distance[14], self.distance[15], self.count), force_mavlink1=force_mavlink1)
  16862. # Define name on the class for backwards compatibility (it is now msgname).
  16863. # Done with setattr to hide the class variable from mypy.
  16864. setattr(MAVLink_wheel_distance_message, "name", mavlink_msg_deprecated_name_property())
  16865. class MAVLink_winch_status_message(MAVLink_message):
  16866. """
  16867. Winch status.
  16868. """
  16869. id = MAVLINK_MSG_ID_WINCH_STATUS
  16870. msgname = "WINCH_STATUS"
  16871. fieldnames = ["time_usec", "line_length", "speed", "tension", "voltage", "current", "temperature", "status"]
  16872. ordered_fieldnames = ["time_usec", "line_length", "speed", "tension", "voltage", "current", "status", "temperature"]
  16873. fieldtypes = ["uint64_t", "float", "float", "float", "float", "float", "int16_t", "uint32_t"]
  16874. fielddisplays_by_name: Dict[str, str] = {"status": "bitmask"}
  16875. fieldenums_by_name: Dict[str, str] = {"status": "MAV_WINCH_STATUS_FLAG"}
  16876. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "line_length": "m", "speed": "m/s", "tension": "kg", "voltage": "V", "current": "A", "temperature": "degC"}
  16877. native_format = bytearray(b"<QfffffIh")
  16878. orders = [0, 1, 2, 3, 4, 5, 7, 6]
  16879. lengths = [1, 1, 1, 1, 1, 1, 1, 1]
  16880. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0]
  16881. crc_extra = 117
  16882. unpacker = struct.Struct("<QfffffIh")
  16883. instance_field = None
  16884. instance_offset = -1
  16885. def __init__(self, time_usec: int, line_length: float, speed: float, tension: float, voltage: float, current: float, temperature: int, status: int):
  16886. MAVLink_message.__init__(self, MAVLink_winch_status_message.id, MAVLink_winch_status_message.msgname)
  16887. self._fieldnames = MAVLink_winch_status_message.fieldnames
  16888. self._instance_field = MAVLink_winch_status_message.instance_field
  16889. self._instance_offset = MAVLink_winch_status_message.instance_offset
  16890. self.time_usec = time_usec
  16891. self.line_length = line_length
  16892. self.speed = speed
  16893. self.tension = tension
  16894. self.voltage = voltage
  16895. self.current = current
  16896. self.temperature = temperature
  16897. self.status = status
  16898. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16899. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.line_length, self.speed, self.tension, self.voltage, self.current, self.status, self.temperature), force_mavlink1=force_mavlink1)
  16900. # Define name on the class for backwards compatibility (it is now msgname).
  16901. # Done with setattr to hide the class variable from mypy.
  16902. setattr(MAVLink_winch_status_message, "name", mavlink_msg_deprecated_name_property())
  16903. class MAVLink_open_drone_id_basic_id_message(MAVLink_message):
  16904. """
  16905. Data for filling the OpenDroneID Basic ID message. This and the
  16906. below messages are primarily meant for feeding data to/from an
  16907. OpenDroneID implementation. E.g.
  16908. https://github.com/opendroneid/opendroneid-core-c. These messages
  16909. are compatible with the ASTM F3411 Remote ID standard and the ASD-
  16910. STAN prEN 4709-002 Direct Remote ID standard. Additional
  16911. information and usage of these messages is documented at
  16912. https://mavlink.io/en/services/opendroneid.html.
  16913. """
  16914. id = MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID
  16915. msgname = "OPEN_DRONE_ID_BASIC_ID"
  16916. fieldnames = ["target_system", "target_component", "id_or_mac", "id_type", "ua_type", "uas_id"]
  16917. ordered_fieldnames = ["target_system", "target_component", "id_or_mac", "id_type", "ua_type", "uas_id"]
  16918. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t"]
  16919. fielddisplays_by_name: Dict[str, str] = {}
  16920. fieldenums_by_name: Dict[str, str] = {"id_type": "MAV_ODID_ID_TYPE", "ua_type": "MAV_ODID_UA_TYPE"}
  16921. fieldunits_by_name: Dict[str, str] = {}
  16922. native_format = bytearray(b"<BBBBBB")
  16923. orders = [0, 1, 2, 3, 4, 5]
  16924. lengths = [1, 1, 20, 1, 1, 20]
  16925. array_lengths = [0, 0, 20, 0, 0, 20]
  16926. crc_extra = 114
  16927. unpacker = struct.Struct("<BB20BBB20B")
  16928. instance_field = None
  16929. instance_offset = -1
  16930. def __init__(self, target_system: int, target_component: int, id_or_mac: Sequence[int], id_type: int, ua_type: int, uas_id: Sequence[int]):
  16931. MAVLink_message.__init__(self, MAVLink_open_drone_id_basic_id_message.id, MAVLink_open_drone_id_basic_id_message.msgname)
  16932. self._fieldnames = MAVLink_open_drone_id_basic_id_message.fieldnames
  16933. self._instance_field = MAVLink_open_drone_id_basic_id_message.instance_field
  16934. self._instance_offset = MAVLink_open_drone_id_basic_id_message.instance_offset
  16935. self.target_system = target_system
  16936. self.target_component = target_component
  16937. self.id_or_mac = id_or_mac
  16938. self.id_type = id_type
  16939. self.ua_type = ua_type
  16940. self.uas_id = uas_id
  16941. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16942. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.target_system, self.target_component, self.id_or_mac[0], self.id_or_mac[1], self.id_or_mac[2], self.id_or_mac[3], self.id_or_mac[4], self.id_or_mac[5], self.id_or_mac[6], self.id_or_mac[7], self.id_or_mac[8], self.id_or_mac[9], self.id_or_mac[10], self.id_or_mac[11], self.id_or_mac[12], self.id_or_mac[13], self.id_or_mac[14], self.id_or_mac[15], self.id_or_mac[16], self.id_or_mac[17], self.id_or_mac[18], self.id_or_mac[19], self.id_type, self.ua_type, self.uas_id[0], self.uas_id[1], self.uas_id[2], self.uas_id[3], self.uas_id[4], self.uas_id[5], self.uas_id[6], self.uas_id[7], self.uas_id[8], self.uas_id[9], self.uas_id[10], self.uas_id[11], self.uas_id[12], self.uas_id[13], self.uas_id[14], self.uas_id[15], self.uas_id[16], self.uas_id[17], self.uas_id[18], self.uas_id[19]), force_mavlink1=force_mavlink1)
  16943. # Define name on the class for backwards compatibility (it is now msgname).
  16944. # Done with setattr to hide the class variable from mypy.
  16945. setattr(MAVLink_open_drone_id_basic_id_message, "name", mavlink_msg_deprecated_name_property())
  16946. class MAVLink_open_drone_id_location_message(MAVLink_message):
  16947. """
  16948. Data for filling the OpenDroneID Location message. The float data
  16949. types are 32-bit IEEE 754. The Location message provides the
  16950. location, altitude, direction and speed of the aircraft.
  16951. """
  16952. id = MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION
  16953. msgname = "OPEN_DRONE_ID_LOCATION"
  16954. fieldnames = ["target_system", "target_component", "id_or_mac", "status", "direction", "speed_horizontal", "speed_vertical", "latitude", "longitude", "altitude_barometric", "altitude_geodetic", "height_reference", "height", "horizontal_accuracy", "vertical_accuracy", "barometer_accuracy", "speed_accuracy", "timestamp", "timestamp_accuracy"]
  16955. ordered_fieldnames = ["latitude", "longitude", "altitude_barometric", "altitude_geodetic", "height", "timestamp", "direction", "speed_horizontal", "speed_vertical", "target_system", "target_component", "id_or_mac", "status", "height_reference", "horizontal_accuracy", "vertical_accuracy", "barometer_accuracy", "speed_accuracy", "timestamp_accuracy"]
  16956. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint16_t", "uint16_t", "int16_t", "int32_t", "int32_t", "float", "float", "uint8_t", "float", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "float", "uint8_t"]
  16957. fielddisplays_by_name: Dict[str, str] = {}
  16958. fieldenums_by_name: Dict[str, str] = {"status": "MAV_ODID_STATUS", "height_reference": "MAV_ODID_HEIGHT_REF", "horizontal_accuracy": "MAV_ODID_HOR_ACC", "vertical_accuracy": "MAV_ODID_VER_ACC", "barometer_accuracy": "MAV_ODID_VER_ACC", "speed_accuracy": "MAV_ODID_SPEED_ACC", "timestamp_accuracy": "MAV_ODID_TIME_ACC"}
  16959. fieldunits_by_name: Dict[str, str] = {"direction": "cdeg", "speed_horizontal": "cm/s", "speed_vertical": "cm/s", "latitude": "degE7", "longitude": "degE7", "altitude_barometric": "m", "altitude_geodetic": "m", "height": "m", "timestamp": "s"}
  16960. native_format = bytearray(b"<iiffffHHhBBBBBBBBBB")
  16961. orders = [9, 10, 11, 12, 6, 7, 8, 0, 1, 2, 3, 13, 4, 14, 15, 16, 17, 5, 18]
  16962. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 20, 1, 1, 1, 1, 1, 1, 1]
  16963. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0]
  16964. crc_extra = 254
  16965. unpacker = struct.Struct("<iiffffHHhBB20BBBBBBBB")
  16966. instance_field = None
  16967. instance_offset = -1
  16968. def __init__(self, target_system: int, target_component: int, id_or_mac: Sequence[int], status: int, direction: int, speed_horizontal: int, speed_vertical: int, latitude: int, longitude: int, altitude_barometric: float, altitude_geodetic: float, height_reference: int, height: float, horizontal_accuracy: int, vertical_accuracy: int, barometer_accuracy: int, speed_accuracy: int, timestamp: float, timestamp_accuracy: int):
  16969. MAVLink_message.__init__(self, MAVLink_open_drone_id_location_message.id, MAVLink_open_drone_id_location_message.msgname)
  16970. self._fieldnames = MAVLink_open_drone_id_location_message.fieldnames
  16971. self._instance_field = MAVLink_open_drone_id_location_message.instance_field
  16972. self._instance_offset = MAVLink_open_drone_id_location_message.instance_offset
  16973. self.target_system = target_system
  16974. self.target_component = target_component
  16975. self.id_or_mac = id_or_mac
  16976. self.status = status
  16977. self.direction = direction
  16978. self.speed_horizontal = speed_horizontal
  16979. self.speed_vertical = speed_vertical
  16980. self.latitude = latitude
  16981. self.longitude = longitude
  16982. self.altitude_barometric = altitude_barometric
  16983. self.altitude_geodetic = altitude_geodetic
  16984. self.height_reference = height_reference
  16985. self.height = height
  16986. self.horizontal_accuracy = horizontal_accuracy
  16987. self.vertical_accuracy = vertical_accuracy
  16988. self.barometer_accuracy = barometer_accuracy
  16989. self.speed_accuracy = speed_accuracy
  16990. self.timestamp = timestamp
  16991. self.timestamp_accuracy = timestamp_accuracy
  16992. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16993. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.latitude, self.longitude, self.altitude_barometric, self.altitude_geodetic, self.height, self.timestamp, self.direction, self.speed_horizontal, self.speed_vertical, self.target_system, self.target_component, self.id_or_mac[0], self.id_or_mac[1], self.id_or_mac[2], self.id_or_mac[3], self.id_or_mac[4], self.id_or_mac[5], self.id_or_mac[6], self.id_or_mac[7], self.id_or_mac[8], self.id_or_mac[9], self.id_or_mac[10], self.id_or_mac[11], self.id_or_mac[12], self.id_or_mac[13], self.id_or_mac[14], self.id_or_mac[15], self.id_or_mac[16], self.id_or_mac[17], self.id_or_mac[18], self.id_or_mac[19], self.status, self.height_reference, self.horizontal_accuracy, self.vertical_accuracy, self.barometer_accuracy, self.speed_accuracy, self.timestamp_accuracy), force_mavlink1=force_mavlink1)
  16994. # Define name on the class for backwards compatibility (it is now msgname).
  16995. # Done with setattr to hide the class variable from mypy.
  16996. setattr(MAVLink_open_drone_id_location_message, "name", mavlink_msg_deprecated_name_property())
  16997. class MAVLink_open_drone_id_authentication_message(MAVLink_message):
  16998. """
  16999. Data for filling the OpenDroneID Authentication message. The
  17000. Authentication Message defines a field that can provide a means of
  17001. authenticity for the identity of the UAS (Unmanned Aircraft
  17002. System). The Authentication message can have two different
  17003. formats. For data page 0, the fields PageCount, Length and
  17004. TimeStamp are present and AuthData is only 17 bytes. For data page
  17005. 1 through 15, PageCount, Length and TimeStamp are not present and
  17006. the size of AuthData is 23 bytes.
  17007. """
  17008. id = MAVLINK_MSG_ID_OPEN_DRONE_ID_AUTHENTICATION
  17009. msgname = "OPEN_DRONE_ID_AUTHENTICATION"
  17010. fieldnames = ["target_system", "target_component", "id_or_mac", "authentication_type", "data_page", "last_page_index", "length", "timestamp", "authentication_data"]
  17011. ordered_fieldnames = ["timestamp", "target_system", "target_component", "id_or_mac", "authentication_type", "data_page", "last_page_index", "length", "authentication_data"]
  17012. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint32_t", "uint8_t"]
  17013. fielddisplays_by_name: Dict[str, str] = {}
  17014. fieldenums_by_name: Dict[str, str] = {"authentication_type": "MAV_ODID_AUTH_TYPE"}
  17015. fieldunits_by_name: Dict[str, str] = {"length": "bytes", "timestamp": "s"}
  17016. native_format = bytearray(b"<IBBBBBBBB")
  17017. orders = [1, 2, 3, 4, 5, 6, 7, 0, 8]
  17018. lengths = [1, 1, 1, 20, 1, 1, 1, 1, 23]
  17019. array_lengths = [0, 0, 0, 20, 0, 0, 0, 0, 23]
  17020. crc_extra = 140
  17021. unpacker = struct.Struct("<IBB20BBBBB23B")
  17022. instance_field = None
  17023. instance_offset = -1
  17024. def __init__(self, target_system: int, target_component: int, id_or_mac: Sequence[int], authentication_type: int, data_page: int, last_page_index: int, length: int, timestamp: int, authentication_data: Sequence[int]):
  17025. MAVLink_message.__init__(self, MAVLink_open_drone_id_authentication_message.id, MAVLink_open_drone_id_authentication_message.msgname)
  17026. self._fieldnames = MAVLink_open_drone_id_authentication_message.fieldnames
  17027. self._instance_field = MAVLink_open_drone_id_authentication_message.instance_field
  17028. self._instance_offset = MAVLink_open_drone_id_authentication_message.instance_offset
  17029. self.target_system = target_system
  17030. self.target_component = target_component
  17031. self.id_or_mac = id_or_mac
  17032. self.authentication_type = authentication_type
  17033. self.data_page = data_page
  17034. self.last_page_index = last_page_index
  17035. self.length = length
  17036. self.timestamp = timestamp
  17037. self.authentication_data = authentication_data
  17038. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  17039. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.timestamp, self.target_system, self.target_component, self.id_or_mac[0], self.id_or_mac[1], self.id_or_mac[2], self.id_or_mac[3], self.id_or_mac[4], self.id_or_mac[5], self.id_or_mac[6], self.id_or_mac[7], self.id_or_mac[8], self.id_or_mac[9], self.id_or_mac[10], self.id_or_mac[11], self.id_or_mac[12], self.id_or_mac[13], self.id_or_mac[14], self.id_or_mac[15], self.id_or_mac[16], self.id_or_mac[17], self.id_or_mac[18], self.id_or_mac[19], self.authentication_type, self.data_page, self.last_page_index, self.length, self.authentication_data[0], self.authentication_data[1], self.authentication_data[2], self.authentication_data[3], self.authentication_data[4], self.authentication_data[5], self.authentication_data[6], self.authentication_data[7], self.authentication_data[8], self.authentication_data[9], self.authentication_data[10], self.authentication_data[11], self.authentication_data[12], self.authentication_data[13], self.authentication_data[14], self.authentication_data[15], self.authentication_data[16], self.authentication_data[17], self.authentication_data[18], self.authentication_data[19], self.authentication_data[20], self.authentication_data[21], self.authentication_data[22]), force_mavlink1=force_mavlink1)
  17040. # Define name on the class for backwards compatibility (it is now msgname).
  17041. # Done with setattr to hide the class variable from mypy.
  17042. setattr(MAVLink_open_drone_id_authentication_message, "name", mavlink_msg_deprecated_name_property())
  17043. class MAVLink_open_drone_id_self_id_message(MAVLink_message):
  17044. """
  17045. Data for filling the OpenDroneID Self ID message. The Self ID
  17046. Message is an opportunity for the operator to (optionally) declare
  17047. their identity and purpose of the flight. This message can provide
  17048. additional information that could reduce the threat profile of a
  17049. UA (Unmanned Aircraft) flying in a particular area or manner. This
  17050. message can also be used to provide optional additional
  17051. clarification in an emergency/remote ID system failure situation.
  17052. """
  17053. id = MAVLINK_MSG_ID_OPEN_DRONE_ID_SELF_ID
  17054. msgname = "OPEN_DRONE_ID_SELF_ID"
  17055. fieldnames = ["target_system", "target_component", "id_or_mac", "description_type", "description"]
  17056. ordered_fieldnames = ["target_system", "target_component", "id_or_mac", "description_type", "description"]
  17057. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "char"]
  17058. fielddisplays_by_name: Dict[str, str] = {}
  17059. fieldenums_by_name: Dict[str, str] = {"description_type": "MAV_ODID_DESC_TYPE"}
  17060. fieldunits_by_name: Dict[str, str] = {}
  17061. native_format = bytearray(b"<BBBBc")
  17062. orders = [0, 1, 2, 3, 4]
  17063. lengths = [1, 1, 20, 1, 1]
  17064. array_lengths = [0, 0, 20, 0, 23]
  17065. crc_extra = 249
  17066. unpacker = struct.Struct("<BB20BB23s")
  17067. instance_field = None
  17068. instance_offset = -1
  17069. def __init__(self, target_system: int, target_component: int, id_or_mac: Sequence[int], description_type: int, description: bytes):
  17070. MAVLink_message.__init__(self, MAVLink_open_drone_id_self_id_message.id, MAVLink_open_drone_id_self_id_message.msgname)
  17071. self._fieldnames = MAVLink_open_drone_id_self_id_message.fieldnames
  17072. self._instance_field = MAVLink_open_drone_id_self_id_message.instance_field
  17073. self._instance_offset = MAVLink_open_drone_id_self_id_message.instance_offset
  17074. self.target_system = target_system
  17075. self.target_component = target_component
  17076. self.id_or_mac = id_or_mac
  17077. self.description_type = description_type
  17078. self._description_raw = description
  17079. self.description = description.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  17080. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  17081. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.target_system, self.target_component, self.id_or_mac[0], self.id_or_mac[1], self.id_or_mac[2], self.id_or_mac[3], self.id_or_mac[4], self.id_or_mac[5], self.id_or_mac[6], self.id_or_mac[7], self.id_or_mac[8], self.id_or_mac[9], self.id_or_mac[10], self.id_or_mac[11], self.id_or_mac[12], self.id_or_mac[13], self.id_or_mac[14], self.id_or_mac[15], self.id_or_mac[16], self.id_or_mac[17], self.id_or_mac[18], self.id_or_mac[19], self.description_type, self._description_raw), force_mavlink1=force_mavlink1)
  17082. # Define name on the class for backwards compatibility (it is now msgname).
  17083. # Done with setattr to hide the class variable from mypy.
  17084. setattr(MAVLink_open_drone_id_self_id_message, "name", mavlink_msg_deprecated_name_property())
  17085. class MAVLink_open_drone_id_system_message(MAVLink_message):
  17086. """
  17087. Data for filling the OpenDroneID System message. The System
  17088. Message contains general system information including the operator
  17089. location/altitude and possible aircraft group and/or
  17090. category/class information.
  17091. """
  17092. id = MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM
  17093. msgname = "OPEN_DRONE_ID_SYSTEM"
  17094. fieldnames = ["target_system", "target_component", "id_or_mac", "operator_location_type", "classification_type", "operator_latitude", "operator_longitude", "area_count", "area_radius", "area_ceiling", "area_floor", "category_eu", "class_eu", "operator_altitude_geo", "timestamp"]
  17095. ordered_fieldnames = ["operator_latitude", "operator_longitude", "area_ceiling", "area_floor", "operator_altitude_geo", "timestamp", "area_count", "area_radius", "target_system", "target_component", "id_or_mac", "operator_location_type", "classification_type", "category_eu", "class_eu"]
  17096. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "int32_t", "int32_t", "uint16_t", "uint16_t", "float", "float", "uint8_t", "uint8_t", "float", "uint32_t"]
  17097. fielddisplays_by_name: Dict[str, str] = {}
  17098. fieldenums_by_name: Dict[str, str] = {"operator_location_type": "MAV_ODID_OPERATOR_LOCATION_TYPE", "classification_type": "MAV_ODID_CLASSIFICATION_TYPE", "category_eu": "MAV_ODID_CATEGORY_EU", "class_eu": "MAV_ODID_CLASS_EU"}
  17099. fieldunits_by_name: Dict[str, str] = {"operator_latitude": "degE7", "operator_longitude": "degE7", "area_radius": "m", "area_ceiling": "m", "area_floor": "m", "operator_altitude_geo": "m", "timestamp": "s"}
  17100. native_format = bytearray(b"<iifffIHHBBBBBBB")
  17101. orders = [8, 9, 10, 11, 12, 0, 1, 6, 7, 2, 3, 13, 14, 4, 5]
  17102. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 20, 1, 1, 1, 1]
  17103. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0]
  17104. crc_extra = 77
  17105. unpacker = struct.Struct("<iifffIHHBB20BBBBB")
  17106. instance_field = None
  17107. instance_offset = -1
  17108. def __init__(self, target_system: int, target_component: int, id_or_mac: Sequence[int], operator_location_type: int, classification_type: int, operator_latitude: int, operator_longitude: int, area_count: int, area_radius: int, area_ceiling: float, area_floor: float, category_eu: int, class_eu: int, operator_altitude_geo: float, timestamp: int):
  17109. MAVLink_message.__init__(self, MAVLink_open_drone_id_system_message.id, MAVLink_open_drone_id_system_message.msgname)
  17110. self._fieldnames = MAVLink_open_drone_id_system_message.fieldnames
  17111. self._instance_field = MAVLink_open_drone_id_system_message.instance_field
  17112. self._instance_offset = MAVLink_open_drone_id_system_message.instance_offset
  17113. self.target_system = target_system
  17114. self.target_component = target_component
  17115. self.id_or_mac = id_or_mac
  17116. self.operator_location_type = operator_location_type
  17117. self.classification_type = classification_type
  17118. self.operator_latitude = operator_latitude
  17119. self.operator_longitude = operator_longitude
  17120. self.area_count = area_count
  17121. self.area_radius = area_radius
  17122. self.area_ceiling = area_ceiling
  17123. self.area_floor = area_floor
  17124. self.category_eu = category_eu
  17125. self.class_eu = class_eu
  17126. self.operator_altitude_geo = operator_altitude_geo
  17127. self.timestamp = timestamp
  17128. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  17129. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.operator_latitude, self.operator_longitude, self.area_ceiling, self.area_floor, self.operator_altitude_geo, self.timestamp, self.area_count, self.area_radius, self.target_system, self.target_component, self.id_or_mac[0], self.id_or_mac[1], self.id_or_mac[2], self.id_or_mac[3], self.id_or_mac[4], self.id_or_mac[5], self.id_or_mac[6], self.id_or_mac[7], self.id_or_mac[8], self.id_or_mac[9], self.id_or_mac[10], self.id_or_mac[11], self.id_or_mac[12], self.id_or_mac[13], self.id_or_mac[14], self.id_or_mac[15], self.id_or_mac[16], self.id_or_mac[17], self.id_or_mac[18], self.id_or_mac[19], self.operator_location_type, self.classification_type, self.category_eu, self.class_eu), force_mavlink1=force_mavlink1)
  17130. # Define name on the class for backwards compatibility (it is now msgname).
  17131. # Done with setattr to hide the class variable from mypy.
  17132. setattr(MAVLink_open_drone_id_system_message, "name", mavlink_msg_deprecated_name_property())
  17133. class MAVLink_open_drone_id_operator_id_message(MAVLink_message):
  17134. """
  17135. Data for filling the OpenDroneID Operator ID message, which
  17136. contains the CAA (Civil Aviation Authority) issued operator ID.
  17137. """
  17138. id = MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID
  17139. msgname = "OPEN_DRONE_ID_OPERATOR_ID"
  17140. fieldnames = ["target_system", "target_component", "id_or_mac", "operator_id_type", "operator_id"]
  17141. ordered_fieldnames = ["target_system", "target_component", "id_or_mac", "operator_id_type", "operator_id"]
  17142. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "char"]
  17143. fielddisplays_by_name: Dict[str, str] = {}
  17144. fieldenums_by_name: Dict[str, str] = {"operator_id_type": "MAV_ODID_OPERATOR_ID_TYPE"}
  17145. fieldunits_by_name: Dict[str, str] = {}
  17146. native_format = bytearray(b"<BBBBc")
  17147. orders = [0, 1, 2, 3, 4]
  17148. lengths = [1, 1, 20, 1, 1]
  17149. array_lengths = [0, 0, 20, 0, 20]
  17150. crc_extra = 49
  17151. unpacker = struct.Struct("<BB20BB20s")
  17152. instance_field = None
  17153. instance_offset = -1
  17154. def __init__(self, target_system: int, target_component: int, id_or_mac: Sequence[int], operator_id_type: int, operator_id: bytes):
  17155. MAVLink_message.__init__(self, MAVLink_open_drone_id_operator_id_message.id, MAVLink_open_drone_id_operator_id_message.msgname)
  17156. self._fieldnames = MAVLink_open_drone_id_operator_id_message.fieldnames
  17157. self._instance_field = MAVLink_open_drone_id_operator_id_message.instance_field
  17158. self._instance_offset = MAVLink_open_drone_id_operator_id_message.instance_offset
  17159. self.target_system = target_system
  17160. self.target_component = target_component
  17161. self.id_or_mac = id_or_mac
  17162. self.operator_id_type = operator_id_type
  17163. self._operator_id_raw = operator_id
  17164. self.operator_id = operator_id.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  17165. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  17166. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.target_system, self.target_component, self.id_or_mac[0], self.id_or_mac[1], self.id_or_mac[2], self.id_or_mac[3], self.id_or_mac[4], self.id_or_mac[5], self.id_or_mac[6], self.id_or_mac[7], self.id_or_mac[8], self.id_or_mac[9], self.id_or_mac[10], self.id_or_mac[11], self.id_or_mac[12], self.id_or_mac[13], self.id_or_mac[14], self.id_or_mac[15], self.id_or_mac[16], self.id_or_mac[17], self.id_or_mac[18], self.id_or_mac[19], self.operator_id_type, self._operator_id_raw), force_mavlink1=force_mavlink1)
  17167. # Define name on the class for backwards compatibility (it is now msgname).
  17168. # Done with setattr to hide the class variable from mypy.
  17169. setattr(MAVLink_open_drone_id_operator_id_message, "name", mavlink_msg_deprecated_name_property())
  17170. class MAVLink_open_drone_id_message_pack_message(MAVLink_message):
  17171. """
  17172. An OpenDroneID message pack is a container for multiple encoded
  17173. OpenDroneID messages (i.e. not in the format given for the above
  17174. message descriptions but after encoding into the compressed
  17175. OpenDroneID byte format). Used e.g. when transmitting on Bluetooth
  17176. 5.0 Long Range/Extended Advertising or on WiFi Neighbor Aware
  17177. Networking or on WiFi Beacon.
  17178. """
  17179. id = MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK
  17180. msgname = "OPEN_DRONE_ID_MESSAGE_PACK"
  17181. fieldnames = ["target_system", "target_component", "id_or_mac", "single_message_size", "msg_pack_size", "messages"]
  17182. ordered_fieldnames = ["target_system", "target_component", "id_or_mac", "single_message_size", "msg_pack_size", "messages"]
  17183. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t"]
  17184. fielddisplays_by_name: Dict[str, str] = {}
  17185. fieldenums_by_name: Dict[str, str] = {}
  17186. fieldunits_by_name: Dict[str, str] = {"single_message_size": "bytes"}
  17187. native_format = bytearray(b"<BBBBBB")
  17188. orders = [0, 1, 2, 3, 4, 5]
  17189. lengths = [1, 1, 20, 1, 1, 225]
  17190. array_lengths = [0, 0, 20, 0, 0, 225]
  17191. crc_extra = 94
  17192. unpacker = struct.Struct("<BB20BBB225B")
  17193. instance_field = None
  17194. instance_offset = -1
  17195. def __init__(self, target_system: int, target_component: int, id_or_mac: Sequence[int], single_message_size: int, msg_pack_size: int, messages: Sequence[int]):
  17196. MAVLink_message.__init__(self, MAVLink_open_drone_id_message_pack_message.id, MAVLink_open_drone_id_message_pack_message.msgname)
  17197. self._fieldnames = MAVLink_open_drone_id_message_pack_message.fieldnames
  17198. self._instance_field = MAVLink_open_drone_id_message_pack_message.instance_field
  17199. self._instance_offset = MAVLink_open_drone_id_message_pack_message.instance_offset
  17200. self.target_system = target_system
  17201. self.target_component = target_component
  17202. self.id_or_mac = id_or_mac
  17203. self.single_message_size = single_message_size
  17204. self.msg_pack_size = msg_pack_size
  17205. self.messages = messages
  17206. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  17207. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.target_system, self.target_component, self.id_or_mac[0], self.id_or_mac[1], self.id_or_mac[2], self.id_or_mac[3], self.id_or_mac[4], self.id_or_mac[5], self.id_or_mac[6], self.id_or_mac[7], self.id_or_mac[8], self.id_or_mac[9], self.id_or_mac[10], self.id_or_mac[11], self.id_or_mac[12], self.id_or_mac[13], self.id_or_mac[14], self.id_or_mac[15], self.id_or_mac[16], self.id_or_mac[17], self.id_or_mac[18], self.id_or_mac[19], self.single_message_size, self.msg_pack_size, self.messages[0], self.messages[1], self.messages[2], self.messages[3], self.messages[4], self.messages[5], self.messages[6], self.messages[7], self.messages[8], self.messages[9], self.messages[10], self.messages[11], self.messages[12], self.messages[13], self.messages[14], self.messages[15], self.messages[16], self.messages[17], self.messages[18], self.messages[19], self.messages[20], self.messages[21], self.messages[22], self.messages[23], self.messages[24], self.messages[25], self.messages[26], self.messages[27], self.messages[28], self.messages[29], self.messages[30], self.messages[31], self.messages[32], self.messages[33], self.messages[34], self.messages[35], self.messages[36], self.messages[37], self.messages[38], self.messages[39], self.messages[40], self.messages[41], self.messages[42], self.messages[43], self.messages[44], self.messages[45], self.messages[46], self.messages[47], self.messages[48], self.messages[49], self.messages[50], self.messages[51], self.messages[52], self.messages[53], self.messages[54], self.messages[55], self.messages[56], self.messages[57], self.messages[58], self.messages[59], self.messages[60], self.messages[61], self.messages[62], self.messages[63], self.messages[64], self.messages[65], self.messages[66], self.messages[67], self.messages[68], self.messages[69], self.messages[70], self.messages[71], self.messages[72], self.messages[73], self.messages[74], self.messages[75], self.messages[76], self.messages[77], self.messages[78], self.messages[79], self.messages[80], self.messages[81], self.messages[82], self.messages[83], self.messages[84], self.messages[85], self.messages[86], self.messages[87], self.messages[88], self.messages[89], self.messages[90], self.messages[91], self.messages[92], self.messages[93], self.messages[94], self.messages[95], self.messages[96], self.messages[97], self.messages[98], self.messages[99], self.messages[100], self.messages[101], self.messages[102], self.messages[103], self.messages[104], self.messages[105], self.messages[106], self.messages[107], self.messages[108], self.messages[109], self.messages[110], self.messages[111], self.messages[112], self.messages[113], self.messages[114], self.messages[115], self.messages[116], self.messages[117], self.messages[118], self.messages[119], self.messages[120], self.messages[121], self.messages[122], self.messages[123], self.messages[124], self.messages[125], self.messages[126], self.messages[127], self.messages[128], self.messages[129], self.messages[130], self.messages[131], self.messages[132], self.messages[133], self.messages[134], self.messages[135], self.messages[136], self.messages[137], self.messages[138], self.messages[139], self.messages[140], self.messages[141], self.messages[142], self.messages[143], self.messages[144], self.messages[145], self.messages[146], self.messages[147], self.messages[148], self.messages[149], self.messages[150], self.messages[151], self.messages[152], self.messages[153], self.messages[154], self.messages[155], self.messages[156], self.messages[157], self.messages[158], self.messages[159], self.messages[160], self.messages[161], self.messages[162], self.messages[163], self.messages[164], self.messages[165], self.messages[166], self.messages[167], self.messages[168], self.messages[169], self.messages[170], self.messages[171], self.messages[172], self.messages[173], self.messages[174], self.messages[175], self.messages[176], self.messages[177], self.messages[178], self.messages[179], self.messages[180], self.messages[181], self.messages[182], self.messages[183], self.messages[184], self.messages[185], self.messages[186], self.messages[187], self.messages[188], self.messages[189], self.messages[190], self.messages[191], self.messages[192], self.messages[193], self.messages[194], self.messages[195], self.messages[196], self.messages[197], self.messages[198], self.messages[199], self.messages[200], self.messages[201], self.messages[202], self.messages[203], self.messages[204], self.messages[205], self.messages[206], self.messages[207], self.messages[208], self.messages[209], self.messages[210], self.messages[211], self.messages[212], self.messages[213], self.messages[214], self.messages[215], self.messages[216], self.messages[217], self.messages[218], self.messages[219], self.messages[220], self.messages[221], self.messages[222], self.messages[223], self.messages[224]), force_mavlink1=force_mavlink1)
  17208. # Define name on the class for backwards compatibility (it is now msgname).
  17209. # Done with setattr to hide the class variable from mypy.
  17210. setattr(MAVLink_open_drone_id_message_pack_message, "name", mavlink_msg_deprecated_name_property())
  17211. class MAVLink_open_drone_id_arm_status_message(MAVLink_message):
  17212. """
  17213. Transmitter (remote ID system) is enabled and ready to start
  17214. sending location and other required information. This is streamed
  17215. by transmitter. A flight controller uses it as a condition to arm.
  17216. """
  17217. id = MAVLINK_MSG_ID_OPEN_DRONE_ID_ARM_STATUS
  17218. msgname = "OPEN_DRONE_ID_ARM_STATUS"
  17219. fieldnames = ["status", "error"]
  17220. ordered_fieldnames = ["status", "error"]
  17221. fieldtypes = ["uint8_t", "char"]
  17222. fielddisplays_by_name: Dict[str, str] = {}
  17223. fieldenums_by_name: Dict[str, str] = {"status": "MAV_ODID_ARM_STATUS"}
  17224. fieldunits_by_name: Dict[str, str] = {}
  17225. native_format = bytearray(b"<Bc")
  17226. orders = [0, 1]
  17227. lengths = [1, 1]
  17228. array_lengths = [0, 50]
  17229. crc_extra = 139
  17230. unpacker = struct.Struct("<B50s")
  17231. instance_field = None
  17232. instance_offset = -1
  17233. def __init__(self, status: int, error: bytes):
  17234. MAVLink_message.__init__(self, MAVLink_open_drone_id_arm_status_message.id, MAVLink_open_drone_id_arm_status_message.msgname)
  17235. self._fieldnames = MAVLink_open_drone_id_arm_status_message.fieldnames
  17236. self._instance_field = MAVLink_open_drone_id_arm_status_message.instance_field
  17237. self._instance_offset = MAVLink_open_drone_id_arm_status_message.instance_offset
  17238. self.status = status
  17239. self._error_raw = error
  17240. self.error = error.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  17241. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  17242. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.status, self._error_raw), force_mavlink1=force_mavlink1)
  17243. # Define name on the class for backwards compatibility (it is now msgname).
  17244. # Done with setattr to hide the class variable from mypy.
  17245. setattr(MAVLink_open_drone_id_arm_status_message, "name", mavlink_msg_deprecated_name_property())
  17246. class MAVLink_open_drone_id_system_update_message(MAVLink_message):
  17247. """
  17248. Update the data in the OPEN_DRONE_ID_SYSTEM message with new
  17249. location information. This can be sent to update the location
  17250. information for the operator when no other information in the
  17251. SYSTEM message has changed. This message allows for efficient
  17252. operation on radio links which have limited uplink bandwidth while
  17253. meeting requirements for update frequency of the operator
  17254. location.
  17255. """
  17256. id = MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE
  17257. msgname = "OPEN_DRONE_ID_SYSTEM_UPDATE"
  17258. fieldnames = ["target_system", "target_component", "operator_latitude", "operator_longitude", "operator_altitude_geo", "timestamp"]
  17259. ordered_fieldnames = ["operator_latitude", "operator_longitude", "operator_altitude_geo", "timestamp", "target_system", "target_component"]
  17260. fieldtypes = ["uint8_t", "uint8_t", "int32_t", "int32_t", "float", "uint32_t"]
  17261. fielddisplays_by_name: Dict[str, str] = {}
  17262. fieldenums_by_name: Dict[str, str] = {}
  17263. fieldunits_by_name: Dict[str, str] = {"operator_latitude": "degE7", "operator_longitude": "degE7", "operator_altitude_geo": "m", "timestamp": "s"}
  17264. native_format = bytearray(b"<iifIBB")
  17265. orders = [4, 5, 0, 1, 2, 3]
  17266. lengths = [1, 1, 1, 1, 1, 1]
  17267. array_lengths = [0, 0, 0, 0, 0, 0]
  17268. crc_extra = 7
  17269. unpacker = struct.Struct("<iifIBB")
  17270. instance_field = None
  17271. instance_offset = -1
  17272. def __init__(self, target_system: int, target_component: int, operator_latitude: int, operator_longitude: int, operator_altitude_geo: float, timestamp: int):
  17273. MAVLink_message.__init__(self, MAVLink_open_drone_id_system_update_message.id, MAVLink_open_drone_id_system_update_message.msgname)
  17274. self._fieldnames = MAVLink_open_drone_id_system_update_message.fieldnames
  17275. self._instance_field = MAVLink_open_drone_id_system_update_message.instance_field
  17276. self._instance_offset = MAVLink_open_drone_id_system_update_message.instance_offset
  17277. self.target_system = target_system
  17278. self.target_component = target_component
  17279. self.operator_latitude = operator_latitude
  17280. self.operator_longitude = operator_longitude
  17281. self.operator_altitude_geo = operator_altitude_geo
  17282. self.timestamp = timestamp
  17283. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  17284. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.operator_latitude, self.operator_longitude, self.operator_altitude_geo, self.timestamp, self.target_system, self.target_component), force_mavlink1=force_mavlink1)
  17285. # Define name on the class for backwards compatibility (it is now msgname).
  17286. # Done with setattr to hide the class variable from mypy.
  17287. setattr(MAVLink_open_drone_id_system_update_message, "name", mavlink_msg_deprecated_name_property())
  17288. class MAVLink_hygrometer_sensor_message(MAVLink_message):
  17289. """
  17290. Temperature and humidity from hygrometer.
  17291. """
  17292. id = MAVLINK_MSG_ID_HYGROMETER_SENSOR
  17293. msgname = "HYGROMETER_SENSOR"
  17294. fieldnames = ["id", "temperature", "humidity"]
  17295. ordered_fieldnames = ["temperature", "humidity", "id"]
  17296. fieldtypes = ["uint8_t", "int16_t", "uint16_t"]
  17297. fielddisplays_by_name: Dict[str, str] = {}
  17298. fieldenums_by_name: Dict[str, str] = {}
  17299. fieldunits_by_name: Dict[str, str] = {"temperature": "cdegC", "humidity": "c%"}
  17300. native_format = bytearray(b"<hHB")
  17301. orders = [2, 0, 1]
  17302. lengths = [1, 1, 1]
  17303. array_lengths = [0, 0, 0]
  17304. crc_extra = 20
  17305. unpacker = struct.Struct("<hHB")
  17306. instance_field = "id"
  17307. instance_offset = 4
  17308. def __init__(self, id: int, temperature: int, humidity: int):
  17309. MAVLink_message.__init__(self, MAVLink_hygrometer_sensor_message.id, MAVLink_hygrometer_sensor_message.msgname)
  17310. self._fieldnames = MAVLink_hygrometer_sensor_message.fieldnames
  17311. self._instance_field = MAVLink_hygrometer_sensor_message.instance_field
  17312. self._instance_offset = MAVLink_hygrometer_sensor_message.instance_offset
  17313. self.id = id
  17314. self.temperature = temperature
  17315. self.humidity = humidity
  17316. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  17317. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.temperature, self.humidity, self.id), force_mavlink1=force_mavlink1)
  17318. # Define name on the class for backwards compatibility (it is now msgname).
  17319. # Done with setattr to hide the class variable from mypy.
  17320. setattr(MAVLink_hygrometer_sensor_message, "name", mavlink_msg_deprecated_name_property())
  17321. class MAVLink_heartbeat_message(MAVLink_message):
  17322. """
  17323. The heartbeat message shows that a system or component is present
  17324. and responding. The type and autopilot fields (along with the
  17325. message component id), allow the receiving system to treat further
  17326. messages from this system appropriately (e.g. by laying out the
  17327. user interface based on the autopilot). This microservice is
  17328. documented at https://mavlink.io/en/services/heartbeat.html
  17329. """
  17330. id = MAVLINK_MSG_ID_HEARTBEAT
  17331. msgname = "HEARTBEAT"
  17332. fieldnames = ["type", "autopilot", "base_mode", "custom_mode", "system_status", "mavlink_version"]
  17333. ordered_fieldnames = ["custom_mode", "type", "autopilot", "base_mode", "system_status", "mavlink_version"]
  17334. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint32_t", "uint8_t", "uint8_t"]
  17335. fielddisplays_by_name: Dict[str, str] = {"base_mode": "bitmask"}
  17336. fieldenums_by_name: Dict[str, str] = {"type": "MAV_TYPE", "autopilot": "MAV_AUTOPILOT", "base_mode": "MAV_MODE_FLAG", "system_status": "MAV_STATE"}
  17337. fieldunits_by_name: Dict[str, str] = {}
  17338. native_format = bytearray(b"<IBBBBB")
  17339. orders = [1, 2, 3, 0, 4, 5]
  17340. lengths = [1, 1, 1, 1, 1, 1]
  17341. array_lengths = [0, 0, 0, 0, 0, 0]
  17342. crc_extra = 50
  17343. unpacker = struct.Struct("<IBBBBB")
  17344. instance_field = None
  17345. instance_offset = -1
  17346. def __init__(self, type: int, autopilot: int, base_mode: int, custom_mode: int, system_status: int, mavlink_version: int):
  17347. MAVLink_message.__init__(self, MAVLink_heartbeat_message.id, MAVLink_heartbeat_message.msgname)
  17348. self._fieldnames = MAVLink_heartbeat_message.fieldnames
  17349. self._instance_field = MAVLink_heartbeat_message.instance_field
  17350. self._instance_offset = MAVLink_heartbeat_message.instance_offset
  17351. self.type = type
  17352. self.autopilot = autopilot
  17353. self.base_mode = base_mode
  17354. self.custom_mode = custom_mode
  17355. self.system_status = system_status
  17356. self.mavlink_version = mavlink_version
  17357. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  17358. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.custom_mode, self.type, self.autopilot, self.base_mode, self.system_status, self.mavlink_version), force_mavlink1=force_mavlink1)
  17359. # Define name on the class for backwards compatibility (it is now msgname).
  17360. # Done with setattr to hide the class variable from mypy.
  17361. setattr(MAVLink_heartbeat_message, "name", mavlink_msg_deprecated_name_property())
  17362. class MAVLink_protocol_version_message(MAVLink_message):
  17363. """
  17364. Version and capability of protocol version. This message can be
  17365. requested with MAV_CMD_REQUEST_MESSAGE and is used as part of the
  17366. handshaking to establish which MAVLink version should be used on
  17367. the network. Every node should respond to a request for
  17368. PROTOCOL_VERSION to enable the handshaking. Library implementers
  17369. should consider adding this into the default decoding state
  17370. machine to allow the protocol core to respond directly.
  17371. """
  17372. id = MAVLINK_MSG_ID_PROTOCOL_VERSION
  17373. msgname = "PROTOCOL_VERSION"
  17374. fieldnames = ["version", "min_version", "max_version", "spec_version_hash", "library_version_hash"]
  17375. ordered_fieldnames = ["version", "min_version", "max_version", "spec_version_hash", "library_version_hash"]
  17376. fieldtypes = ["uint16_t", "uint16_t", "uint16_t", "uint8_t", "uint8_t"]
  17377. fielddisplays_by_name: Dict[str, str] = {}
  17378. fieldenums_by_name: Dict[str, str] = {}
  17379. fieldunits_by_name: Dict[str, str] = {}
  17380. native_format = bytearray(b"<HHHBB")
  17381. orders = [0, 1, 2, 3, 4]
  17382. lengths = [1, 1, 1, 8, 8]
  17383. array_lengths = [0, 0, 0, 8, 8]
  17384. crc_extra = 217
  17385. unpacker = struct.Struct("<HHH8B8B")
  17386. instance_field = None
  17387. instance_offset = -1
  17388. def __init__(self, version: int, min_version: int, max_version: int, spec_version_hash: Sequence[int], library_version_hash: Sequence[int]):
  17389. MAVLink_message.__init__(self, MAVLink_protocol_version_message.id, MAVLink_protocol_version_message.msgname)
  17390. self._fieldnames = MAVLink_protocol_version_message.fieldnames
  17391. self._instance_field = MAVLink_protocol_version_message.instance_field
  17392. self._instance_offset = MAVLink_protocol_version_message.instance_offset
  17393. self.version = version
  17394. self.min_version = min_version
  17395. self.max_version = max_version
  17396. self.spec_version_hash = spec_version_hash
  17397. self.library_version_hash = library_version_hash
  17398. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  17399. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.version, self.min_version, self.max_version, self.spec_version_hash[0], self.spec_version_hash[1], self.spec_version_hash[2], self.spec_version_hash[3], self.spec_version_hash[4], self.spec_version_hash[5], self.spec_version_hash[6], self.spec_version_hash[7], self.library_version_hash[0], self.library_version_hash[1], self.library_version_hash[2], self.library_version_hash[3], self.library_version_hash[4], self.library_version_hash[5], self.library_version_hash[6], self.library_version_hash[7]), force_mavlink1=force_mavlink1)
  17400. # Define name on the class for backwards compatibility (it is now msgname).
  17401. # Done with setattr to hide the class variable from mypy.
  17402. setattr(MAVLink_protocol_version_message, "name", mavlink_msg_deprecated_name_property())
  17403. mavlink_map: Dict[int, Type[MAVLink_message]] = {
  17404. MAVLINK_MSG_ID_VKINS_STATUS: MAVLink_vkins_status_message,
  17405. MAVLINK_MSG_ID_VKFMU_STATUS: MAVLink_vkfmu_status_message,
  17406. MAVLINK_MSG_ID_VK_ROI_TARGET: MAVLink_vk_roi_target_message,
  17407. MAVLINK_MSG_ID_VK_BMS_STATUS: MAVLink_vk_bms_status_message,
  17408. MAVLINK_MSG_ID_VK_FORMATION_LEADER: MAVLink_vk_formation_leader_message,
  17409. MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS: MAVLink_vk_engine_ecu_staus_message,
  17410. MAVLINK_MSG_ID_VK_COMP_VERSION: MAVLink_vk_comp_version_message,
  17411. MAVLINK_MSG_ID_VK_MOSAICH_GPS_RAW: MAVLink_vk_mosaich_gps_raw_message,
  17412. MAVLINK_MSG_ID_VK_DIGI_ESC_STATUS: MAVLink_vk_digi_esc_status_message,
  17413. MAVLINK_MSG_ID_VK_FIXEDWING_CONTROL_VALUE: MAVLink_vk_fixedwing_control_value_message,
  17414. MAVLINK_MSG_ID_VK_FIXEDWING_SERVO_SIGNAL: MAVLink_vk_fixedwing_servo_signal_message,
  17415. MAVLINK_MSG_ID_VK_FIXEDWING_RTL_CIRCLE_WP: MAVLink_vk_fixedwing_rtl_circle_wp_message,
  17416. MAVLINK_MSG_ID_VK_AIRSPEED: MAVLink_vk_airspeed_message,
  17417. MAVLINK_MSG_ID_VK_PARACHUTE_STATUS: MAVLink_vk_parachute_status_message,
  17418. MAVLINK_MSG_ID_VK_WEIGHER_STATE: MAVLink_vk_weigher_state_message,
  17419. MAVLINK_MSG_ID_VK_PAYLOAD_DATA_RELAY: MAVLink_vk_payload_data_relay_message,
  17420. MAVLINK_MSG_ID_VK_EXTERNAL_INS_NAV: MAVLink_vk_external_ins_nav_message,
  17421. MAVLINK_MSG_ID_VK_RTK_BASE_PVT: MAVLink_vk_rtk_base_pvt_message,
  17422. MAVLINK_MSG_ID_VKFLY_EDU_STATUS: MAVLink_vkfly_edu_status_message,
  17423. MAVLINK_MSG_ID_VKFLY_EDU_STATUS_ACK: MAVLink_vkfly_edu_status_ack_message,
  17424. MAVLINK_MSG_ID_VKFLY_TIANQU_SERVO_STATUS: MAVLink_vkfly_tianqu_servo_status_message,
  17425. MAVLINK_MSG_ID_VK_ADC_EXT_STATUS: MAVLink_vk_adc_ext_status_message,
  17426. MAVLINK_MSG_ID_VK_OBSTACLE_DISTANCE: MAVLink_vk_obstacle_distance_message,
  17427. MAVLINK_MSG_ID_VK_FW_UPDATE_BEGIN: MAVLink_vk_fw_update_begin_message,
  17428. MAVLINK_MSG_ID_VK_FW_UPDATE_ACK: MAVLink_vk_fw_update_ack_message,
  17429. MAVLINK_MSG_ID_VK_FW_UPDATE_DATA_REQUEST: MAVLink_vk_fw_update_data_request_message,
  17430. MAVLINK_MSG_ID_VK_FW_UPDATE_DATA: MAVLink_vk_fw_update_data_message,
  17431. MAVLINK_MSG_ID_VK_UPDATE_TERMINATE: MAVLink_vk_update_terminate_message,
  17432. MAVLINK_MSG_ID_VK_CACC_MANAGER_VERIFY: MAVLink_vk_cacc_manager_verify_message,
  17433. MAVLINK_MSG_ID_VK_EXT_VISION_FUSION: MAVLink_vk_ext_vision_fusion_message,
  17434. MAVLINK_MSG_ID_KMUB_STATUS: MAVLink_kmub_status_message,
  17435. MAVLINK_MSG_ID_QINGXIE_BMS: MAVLink_qingxie_bms_message,
  17436. MAVLINK_MSG_ID_SYS_STATUS: MAVLink_sys_status_message,
  17437. MAVLINK_MSG_ID_SYSTEM_TIME: MAVLink_system_time_message,
  17438. MAVLINK_MSG_ID_PING: MAVLink_ping_message,
  17439. MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL: MAVLink_change_operator_control_message,
  17440. MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK: MAVLink_change_operator_control_ack_message,
  17441. MAVLINK_MSG_ID_AUTH_KEY: MAVLink_auth_key_message,
  17442. MAVLINK_MSG_ID_LINK_NODE_STATUS: MAVLink_link_node_status_message,
  17443. MAVLINK_MSG_ID_SET_MODE: MAVLink_set_mode_message,
  17444. MAVLINK_MSG_ID_PARAM_REQUEST_READ: MAVLink_param_request_read_message,
  17445. MAVLINK_MSG_ID_PARAM_REQUEST_LIST: MAVLink_param_request_list_message,
  17446. MAVLINK_MSG_ID_PARAM_VALUE: MAVLink_param_value_message,
  17447. MAVLINK_MSG_ID_PARAM_SET: MAVLink_param_set_message,
  17448. MAVLINK_MSG_ID_GPS_RAW_INT: MAVLink_gps_raw_int_message,
  17449. MAVLINK_MSG_ID_GPS_STATUS: MAVLink_gps_status_message,
  17450. MAVLINK_MSG_ID_SCALED_IMU: MAVLink_scaled_imu_message,
  17451. MAVLINK_MSG_ID_RAW_IMU: MAVLink_raw_imu_message,
  17452. MAVLINK_MSG_ID_RAW_PRESSURE: MAVLink_raw_pressure_message,
  17453. MAVLINK_MSG_ID_SCALED_PRESSURE: MAVLink_scaled_pressure_message,
  17454. MAVLINK_MSG_ID_ATTITUDE: MAVLink_attitude_message,
  17455. MAVLINK_MSG_ID_ATTITUDE_QUATERNION: MAVLink_attitude_quaternion_message,
  17456. MAVLINK_MSG_ID_LOCAL_POSITION_NED: MAVLink_local_position_ned_message,
  17457. MAVLINK_MSG_ID_GLOBAL_POSITION_INT: MAVLink_global_position_int_message,
  17458. MAVLINK_MSG_ID_RC_CHANNELS_SCALED: MAVLink_rc_channels_scaled_message,
  17459. MAVLINK_MSG_ID_RC_CHANNELS_RAW: MAVLink_rc_channels_raw_message,
  17460. MAVLINK_MSG_ID_SERVO_OUTPUT_RAW: MAVLink_servo_output_raw_message,
  17461. MAVLINK_MSG_ID_MISSION_REQUEST_PARTIAL_LIST: MAVLink_mission_request_partial_list_message,
  17462. MAVLINK_MSG_ID_MISSION_WRITE_PARTIAL_LIST: MAVLink_mission_write_partial_list_message,
  17463. MAVLINK_MSG_ID_MISSION_ITEM: MAVLink_mission_item_message,
  17464. MAVLINK_MSG_ID_MISSION_REQUEST: MAVLink_mission_request_message,
  17465. MAVLINK_MSG_ID_MISSION_SET_CURRENT: MAVLink_mission_set_current_message,
  17466. MAVLINK_MSG_ID_MISSION_CURRENT: MAVLink_mission_current_message,
  17467. MAVLINK_MSG_ID_MISSION_REQUEST_LIST: MAVLink_mission_request_list_message,
  17468. MAVLINK_MSG_ID_MISSION_COUNT: MAVLink_mission_count_message,
  17469. MAVLINK_MSG_ID_MISSION_CLEAR_ALL: MAVLink_mission_clear_all_message,
  17470. MAVLINK_MSG_ID_MISSION_ITEM_REACHED: MAVLink_mission_item_reached_message,
  17471. MAVLINK_MSG_ID_MISSION_ACK: MAVLink_mission_ack_message,
  17472. MAVLINK_MSG_ID_SET_GPS_GLOBAL_ORIGIN: MAVLink_set_gps_global_origin_message,
  17473. MAVLINK_MSG_ID_GPS_GLOBAL_ORIGIN: MAVLink_gps_global_origin_message,
  17474. MAVLINK_MSG_ID_PARAM_MAP_RC: MAVLink_param_map_rc_message,
  17475. MAVLINK_MSG_ID_MISSION_REQUEST_INT: MAVLink_mission_request_int_message,
  17476. MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA: MAVLink_safety_set_allowed_area_message,
  17477. MAVLINK_MSG_ID_SAFETY_ALLOWED_AREA: MAVLink_safety_allowed_area_message,
  17478. MAVLINK_MSG_ID_ATTITUDE_QUATERNION_COV: MAVLink_attitude_quaternion_cov_message,
  17479. MAVLINK_MSG_ID_NAV_CONTROLLER_OUTPUT: MAVLink_nav_controller_output_message,
  17480. MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV: MAVLink_global_position_int_cov_message,
  17481. MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV: MAVLink_local_position_ned_cov_message,
  17482. MAVLINK_MSG_ID_RC_CHANNELS: MAVLink_rc_channels_message,
  17483. MAVLINK_MSG_ID_REQUEST_DATA_STREAM: MAVLink_request_data_stream_message,
  17484. MAVLINK_MSG_ID_DATA_STREAM: MAVLink_data_stream_message,
  17485. MAVLINK_MSG_ID_MANUAL_CONTROL: MAVLink_manual_control_message,
  17486. MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE: MAVLink_rc_channels_override_message,
  17487. MAVLINK_MSG_ID_MISSION_ITEM_INT: MAVLink_mission_item_int_message,
  17488. MAVLINK_MSG_ID_VFR_HUD: MAVLink_vfr_hud_message,
  17489. MAVLINK_MSG_ID_COMMAND_INT: MAVLink_command_int_message,
  17490. MAVLINK_MSG_ID_COMMAND_LONG: MAVLink_command_long_message,
  17491. MAVLINK_MSG_ID_COMMAND_ACK: MAVLink_command_ack_message,
  17492. MAVLINK_MSG_ID_COMMAND_CANCEL: MAVLink_command_cancel_message,
  17493. MAVLINK_MSG_ID_MANUAL_SETPOINT: MAVLink_manual_setpoint_message,
  17494. MAVLINK_MSG_ID_SET_ATTITUDE_TARGET: MAVLink_set_attitude_target_message,
  17495. MAVLINK_MSG_ID_ATTITUDE_TARGET: MAVLink_attitude_target_message,
  17496. MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED: MAVLink_set_position_target_local_ned_message,
  17497. MAVLINK_MSG_ID_POSITION_TARGET_LOCAL_NED: MAVLink_position_target_local_ned_message,
  17498. MAVLINK_MSG_ID_SET_POSITION_TARGET_GLOBAL_INT: MAVLink_set_position_target_global_int_message,
  17499. MAVLINK_MSG_ID_POSITION_TARGET_GLOBAL_INT: MAVLink_position_target_global_int_message,
  17500. MAVLINK_MSG_ID_LOCAL_POSITION_NED_SYSTEM_GLOBAL_OFFSET: MAVLink_local_position_ned_system_global_offset_message,
  17501. MAVLINK_MSG_ID_HIL_STATE: MAVLink_hil_state_message,
  17502. MAVLINK_MSG_ID_HIL_CONTROLS: MAVLink_hil_controls_message,
  17503. MAVLINK_MSG_ID_HIL_RC_INPUTS_RAW: MAVLink_hil_rc_inputs_raw_message,
  17504. MAVLINK_MSG_ID_HIL_ACTUATOR_CONTROLS: MAVLink_hil_actuator_controls_message,
  17505. MAVLINK_MSG_ID_OPTICAL_FLOW: MAVLink_optical_flow_message,
  17506. MAVLINK_MSG_ID_GLOBAL_VISION_POSITION_ESTIMATE: MAVLink_global_vision_position_estimate_message,
  17507. MAVLINK_MSG_ID_VISION_POSITION_ESTIMATE: MAVLink_vision_position_estimate_message,
  17508. MAVLINK_MSG_ID_VISION_SPEED_ESTIMATE: MAVLink_vision_speed_estimate_message,
  17509. MAVLINK_MSG_ID_VICON_POSITION_ESTIMATE: MAVLink_vicon_position_estimate_message,
  17510. MAVLINK_MSG_ID_HIGHRES_IMU: MAVLink_highres_imu_message,
  17511. MAVLINK_MSG_ID_OPTICAL_FLOW_RAD: MAVLink_optical_flow_rad_message,
  17512. MAVLINK_MSG_ID_HIL_SENSOR: MAVLink_hil_sensor_message,
  17513. MAVLINK_MSG_ID_SIM_STATE: MAVLink_sim_state_message,
  17514. MAVLINK_MSG_ID_RADIO_STATUS: MAVLink_radio_status_message,
  17515. MAVLINK_MSG_ID_FILE_TRANSFER_PROTOCOL: MAVLink_file_transfer_protocol_message,
  17516. MAVLINK_MSG_ID_TIMESYNC: MAVLink_timesync_message,
  17517. MAVLINK_MSG_ID_CAMERA_TRIGGER: MAVLink_camera_trigger_message,
  17518. MAVLINK_MSG_ID_HIL_GPS: MAVLink_hil_gps_message,
  17519. MAVLINK_MSG_ID_HIL_OPTICAL_FLOW: MAVLink_hil_optical_flow_message,
  17520. MAVLINK_MSG_ID_HIL_STATE_QUATERNION: MAVLink_hil_state_quaternion_message,
  17521. MAVLINK_MSG_ID_SCALED_IMU2: MAVLink_scaled_imu2_message,
  17522. MAVLINK_MSG_ID_LOG_REQUEST_LIST: MAVLink_log_request_list_message,
  17523. MAVLINK_MSG_ID_LOG_ENTRY: MAVLink_log_entry_message,
  17524. MAVLINK_MSG_ID_LOG_REQUEST_DATA: MAVLink_log_request_data_message,
  17525. MAVLINK_MSG_ID_LOG_DATA: MAVLink_log_data_message,
  17526. MAVLINK_MSG_ID_LOG_ERASE: MAVLink_log_erase_message,
  17527. MAVLINK_MSG_ID_LOG_REQUEST_END: MAVLink_log_request_end_message,
  17528. MAVLINK_MSG_ID_GPS_INJECT_DATA: MAVLink_gps_inject_data_message,
  17529. MAVLINK_MSG_ID_GPS2_RAW: MAVLink_gps2_raw_message,
  17530. MAVLINK_MSG_ID_POWER_STATUS: MAVLink_power_status_message,
  17531. MAVLINK_MSG_ID_SERIAL_CONTROL: MAVLink_serial_control_message,
  17532. MAVLINK_MSG_ID_GPS_RTK: MAVLink_gps_rtk_message,
  17533. MAVLINK_MSG_ID_GPS2_RTK: MAVLink_gps2_rtk_message,
  17534. MAVLINK_MSG_ID_SCALED_IMU3: MAVLink_scaled_imu3_message,
  17535. MAVLINK_MSG_ID_DATA_TRANSMISSION_HANDSHAKE: MAVLink_data_transmission_handshake_message,
  17536. MAVLINK_MSG_ID_ENCAPSULATED_DATA: MAVLink_encapsulated_data_message,
  17537. MAVLINK_MSG_ID_DISTANCE_SENSOR: MAVLink_distance_sensor_message,
  17538. MAVLINK_MSG_ID_TERRAIN_REQUEST: MAVLink_terrain_request_message,
  17539. MAVLINK_MSG_ID_TERRAIN_DATA: MAVLink_terrain_data_message,
  17540. MAVLINK_MSG_ID_TERRAIN_CHECK: MAVLink_terrain_check_message,
  17541. MAVLINK_MSG_ID_TERRAIN_REPORT: MAVLink_terrain_report_message,
  17542. MAVLINK_MSG_ID_SCALED_PRESSURE2: MAVLink_scaled_pressure2_message,
  17543. MAVLINK_MSG_ID_ATT_POS_MOCAP: MAVLink_att_pos_mocap_message,
  17544. MAVLINK_MSG_ID_SET_ACTUATOR_CONTROL_TARGET: MAVLink_set_actuator_control_target_message,
  17545. MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET: MAVLink_actuator_control_target_message,
  17546. MAVLINK_MSG_ID_ALTITUDE: MAVLink_altitude_message,
  17547. MAVLINK_MSG_ID_RESOURCE_REQUEST: MAVLink_resource_request_message,
  17548. MAVLINK_MSG_ID_SCALED_PRESSURE3: MAVLink_scaled_pressure3_message,
  17549. MAVLINK_MSG_ID_FOLLOW_TARGET: MAVLink_follow_target_message,
  17550. MAVLINK_MSG_ID_CONTROL_SYSTEM_STATE: MAVLink_control_system_state_message,
  17551. MAVLINK_MSG_ID_BATTERY_STATUS: MAVLink_battery_status_message,
  17552. MAVLINK_MSG_ID_AUTOPILOT_VERSION: MAVLink_autopilot_version_message,
  17553. MAVLINK_MSG_ID_LANDING_TARGET: MAVLink_landing_target_message,
  17554. MAVLINK_MSG_ID_FENCE_STATUS: MAVLink_fence_status_message,
  17555. MAVLINK_MSG_ID_MAG_CAL_REPORT: MAVLink_mag_cal_report_message,
  17556. MAVLINK_MSG_ID_EFI_STATUS: MAVLink_efi_status_message,
  17557. MAVLINK_MSG_ID_ESTIMATOR_STATUS: MAVLink_estimator_status_message,
  17558. MAVLINK_MSG_ID_WIND_COV: MAVLink_wind_cov_message,
  17559. MAVLINK_MSG_ID_GPS_INPUT: MAVLink_gps_input_message,
  17560. MAVLINK_MSG_ID_GPS_RTCM_DATA: MAVLink_gps_rtcm_data_message,
  17561. MAVLINK_MSG_ID_HIGH_LATENCY: MAVLink_high_latency_message,
  17562. MAVLINK_MSG_ID_HIGH_LATENCY2: MAVLink_high_latency2_message,
  17563. MAVLINK_MSG_ID_VIBRATION: MAVLink_vibration_message,
  17564. MAVLINK_MSG_ID_HOME_POSITION: MAVLink_home_position_message,
  17565. MAVLINK_MSG_ID_SET_HOME_POSITION: MAVLink_set_home_position_message,
  17566. MAVLINK_MSG_ID_MESSAGE_INTERVAL: MAVLink_message_interval_message,
  17567. MAVLINK_MSG_ID_EXTENDED_SYS_STATE: MAVLink_extended_sys_state_message,
  17568. MAVLINK_MSG_ID_ADSB_VEHICLE: MAVLink_adsb_vehicle_message,
  17569. MAVLINK_MSG_ID_COLLISION: MAVLink_collision_message,
  17570. MAVLINK_MSG_ID_V2_EXTENSION: MAVLink_v2_extension_message,
  17571. MAVLINK_MSG_ID_MEMORY_VECT: MAVLink_memory_vect_message,
  17572. MAVLINK_MSG_ID_DEBUG_VECT: MAVLink_debug_vect_message,
  17573. MAVLINK_MSG_ID_NAMED_VALUE_FLOAT: MAVLink_named_value_float_message,
  17574. MAVLINK_MSG_ID_NAMED_VALUE_INT: MAVLink_named_value_int_message,
  17575. MAVLINK_MSG_ID_STATUSTEXT: MAVLink_statustext_message,
  17576. MAVLINK_MSG_ID_DEBUG: MAVLink_debug_message,
  17577. MAVLINK_MSG_ID_SETUP_SIGNING: MAVLink_setup_signing_message,
  17578. MAVLINK_MSG_ID_BUTTON_CHANGE: MAVLink_button_change_message,
  17579. MAVLINK_MSG_ID_PLAY_TUNE: MAVLink_play_tune_message,
  17580. MAVLINK_MSG_ID_CAMERA_INFORMATION: MAVLink_camera_information_message,
  17581. MAVLINK_MSG_ID_CAMERA_SETTINGS: MAVLink_camera_settings_message,
  17582. MAVLINK_MSG_ID_STORAGE_INFORMATION: MAVLink_storage_information_message,
  17583. MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS: MAVLink_camera_capture_status_message,
  17584. MAVLINK_MSG_ID_CAMERA_IMAGE_CAPTURED: MAVLink_camera_image_captured_message,
  17585. MAVLINK_MSG_ID_FLIGHT_INFORMATION: MAVLink_flight_information_message,
  17586. MAVLINK_MSG_ID_MOUNT_ORIENTATION: MAVLink_mount_orientation_message,
  17587. MAVLINK_MSG_ID_LOGGING_DATA: MAVLink_logging_data_message,
  17588. MAVLINK_MSG_ID_LOGGING_DATA_ACKED: MAVLink_logging_data_acked_message,
  17589. MAVLINK_MSG_ID_LOGGING_ACK: MAVLink_logging_ack_message,
  17590. MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION: MAVLink_video_stream_information_message,
  17591. MAVLINK_MSG_ID_VIDEO_STREAM_STATUS: MAVLink_video_stream_status_message,
  17592. MAVLINK_MSG_ID_CAMERA_FOV_STATUS: MAVLink_camera_fov_status_message,
  17593. MAVLINK_MSG_ID_CAMERA_TRACKING_IMAGE_STATUS: MAVLink_camera_tracking_image_status_message,
  17594. MAVLINK_MSG_ID_CAMERA_TRACKING_GEO_STATUS: MAVLink_camera_tracking_geo_status_message,
  17595. MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION: MAVLink_gimbal_manager_information_message,
  17596. MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS: MAVLink_gimbal_manager_status_message,
  17597. MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_ATTITUDE: MAVLink_gimbal_manager_set_attitude_message,
  17598. MAVLINK_MSG_ID_GIMBAL_DEVICE_INFORMATION: MAVLink_gimbal_device_information_message,
  17599. MAVLINK_MSG_ID_GIMBAL_DEVICE_SET_ATTITUDE: MAVLink_gimbal_device_set_attitude_message,
  17600. MAVLINK_MSG_ID_GIMBAL_DEVICE_ATTITUDE_STATUS: MAVLink_gimbal_device_attitude_status_message,
  17601. MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE: MAVLink_autopilot_state_for_gimbal_device_message,
  17602. MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_PITCHYAW: MAVLink_gimbal_manager_set_pitchyaw_message,
  17603. MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_MANUAL_CONTROL: MAVLink_gimbal_manager_set_manual_control_message,
  17604. MAVLINK_MSG_ID_ESC_INFO: MAVLink_esc_info_message,
  17605. MAVLINK_MSG_ID_ESC_STATUS: MAVLink_esc_status_message,
  17606. MAVLINK_MSG_ID_WIFI_CONFIG_AP: MAVLink_wifi_config_ap_message,
  17607. MAVLINK_MSG_ID_AIS_VESSEL: MAVLink_ais_vessel_message,
  17608. MAVLINK_MSG_ID_UAVCAN_NODE_STATUS: MAVLink_uavcan_node_status_message,
  17609. MAVLINK_MSG_ID_UAVCAN_NODE_INFO: MAVLink_uavcan_node_info_message,
  17610. MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ: MAVLink_param_ext_request_read_message,
  17611. MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST: MAVLink_param_ext_request_list_message,
  17612. MAVLINK_MSG_ID_PARAM_EXT_VALUE: MAVLink_param_ext_value_message,
  17613. MAVLINK_MSG_ID_PARAM_EXT_SET: MAVLink_param_ext_set_message,
  17614. MAVLINK_MSG_ID_PARAM_EXT_ACK: MAVLink_param_ext_ack_message,
  17615. MAVLINK_MSG_ID_OBSTACLE_DISTANCE: MAVLink_obstacle_distance_message,
  17616. MAVLINK_MSG_ID_ODOMETRY: MAVLink_odometry_message,
  17617. MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS: MAVLink_trajectory_representation_waypoints_message,
  17618. MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_BEZIER: MAVLink_trajectory_representation_bezier_message,
  17619. MAVLINK_MSG_ID_CELLULAR_STATUS: MAVLink_cellular_status_message,
  17620. MAVLINK_MSG_ID_ISBD_LINK_STATUS: MAVLink_isbd_link_status_message,
  17621. MAVLINK_MSG_ID_CELLULAR_CONFIG: MAVLink_cellular_config_message,
  17622. MAVLINK_MSG_ID_RAW_RPM: MAVLink_raw_rpm_message,
  17623. MAVLINK_MSG_ID_UTM_GLOBAL_POSITION: MAVLink_utm_global_position_message,
  17624. MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY: MAVLink_debug_float_array_message,
  17625. MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS: MAVLink_orbit_execution_status_message,
  17626. MAVLINK_MSG_ID_BATTERY_INFO: MAVLink_battery_info_message,
  17627. MAVLINK_MSG_ID_GENERATOR_STATUS: MAVLink_generator_status_message,
  17628. MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS: MAVLink_actuator_output_status_message,
  17629. MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET: MAVLink_time_estimate_to_target_message,
  17630. MAVLINK_MSG_ID_TUNNEL: MAVLink_tunnel_message,
  17631. MAVLINK_MSG_ID_CAN_FRAME: MAVLink_can_frame_message,
  17632. MAVLINK_MSG_ID_ONBOARD_COMPUTER_STATUS: MAVLink_onboard_computer_status_message,
  17633. MAVLINK_MSG_ID_COMPONENT_INFORMATION: MAVLink_component_information_message,
  17634. MAVLINK_MSG_ID_COMPONENT_METADATA: MAVLink_component_metadata_message,
  17635. MAVLINK_MSG_ID_PLAY_TUNE_V2: MAVLink_play_tune_v2_message,
  17636. MAVLINK_MSG_ID_SUPPORTED_TUNES: MAVLink_supported_tunes_message,
  17637. MAVLINK_MSG_ID_EVENT: MAVLink_event_message,
  17638. MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE: MAVLink_current_event_sequence_message,
  17639. MAVLINK_MSG_ID_REQUEST_EVENT: MAVLink_request_event_message,
  17640. MAVLINK_MSG_ID_RESPONSE_EVENT_ERROR: MAVLink_response_event_error_message,
  17641. MAVLINK_MSG_ID_CANFD_FRAME: MAVLink_canfd_frame_message,
  17642. MAVLINK_MSG_ID_CAN_FILTER_MODIFY: MAVLink_can_filter_modify_message,
  17643. MAVLINK_MSG_ID_WHEEL_DISTANCE: MAVLink_wheel_distance_message,
  17644. MAVLINK_MSG_ID_WINCH_STATUS: MAVLink_winch_status_message,
  17645. MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID: MAVLink_open_drone_id_basic_id_message,
  17646. MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION: MAVLink_open_drone_id_location_message,
  17647. MAVLINK_MSG_ID_OPEN_DRONE_ID_AUTHENTICATION: MAVLink_open_drone_id_authentication_message,
  17648. MAVLINK_MSG_ID_OPEN_DRONE_ID_SELF_ID: MAVLink_open_drone_id_self_id_message,
  17649. MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM: MAVLink_open_drone_id_system_message,
  17650. MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID: MAVLink_open_drone_id_operator_id_message,
  17651. MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK: MAVLink_open_drone_id_message_pack_message,
  17652. MAVLINK_MSG_ID_OPEN_DRONE_ID_ARM_STATUS: MAVLink_open_drone_id_arm_status_message,
  17653. MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE: MAVLink_open_drone_id_system_update_message,
  17654. MAVLINK_MSG_ID_HYGROMETER_SENSOR: MAVLink_hygrometer_sensor_message,
  17655. MAVLINK_MSG_ID_HEARTBEAT: MAVLink_heartbeat_message,
  17656. MAVLINK_MSG_ID_PROTOCOL_VERSION: MAVLink_protocol_version_message,
  17657. }
  17658. class MAVError(Exception):
  17659. """MAVLink error class"""
  17660. def __init__(self, msg: str) -> None:
  17661. Exception.__init__(self, msg)
  17662. self.message = msg
  17663. class MAVLink_bad_data(MAVLink_message):
  17664. """
  17665. a piece of bad data in a mavlink stream
  17666. """
  17667. def __init__(self, data: Union[bytes, bytearray], reason: str) -> None:
  17668. MAVLink_message.__init__(self, MAVLINK_MSG_ID_BAD_DATA, "BAD_DATA")
  17669. self._fieldnames = ["data", "reason"]
  17670. self.data = data
  17671. self.reason = reason
  17672. self._msgbuf = bytearray(data)
  17673. self._instance_field = None
  17674. def __str__(self) -> str:
  17675. """Override the __str__ function from MAVLink_messages because non-printable characters are common in to be the reason for this message to exist."""
  17676. hexstr = ["{:x}".format(i) for i in self.data]
  17677. return "%s {%s, data:%s}" % (self._type, self.reason, hexstr)
  17678. class MAVLink_unknown(MAVLink_message):
  17679. """
  17680. a message that we don't have in the XML used when built
  17681. """
  17682. def __init__(self, msgid: int, data: Union[bytes, bytearray]) -> None:
  17683. MAVLink_message.__init__(self, MAVLINK_MSG_ID_UNKNOWN, "UNKNOWN_%u" % msgid)
  17684. self._fieldnames = ["data"]
  17685. self.data = data
  17686. self._msgbuf = bytearray(data)
  17687. self._instance_field = None
  17688. def __str__(self) -> str:
  17689. """Override the __str__ function from MAVLink_messages because non-printable characters are common."""
  17690. hexstr = ["{:x}".format(i) for i in self.data]
  17691. return "%s {data:%s}" % (self._type, hexstr)
  17692. class MAVLinkSigning(object):
  17693. """MAVLink signing state class"""
  17694. def __init__(self) -> None:
  17695. self.secret_key: Optional[bytes] = None
  17696. self.timestamp = 0
  17697. self.link_id = 0
  17698. self.sign_outgoing = False
  17699. self.allow_unsigned_callback: Optional[Callable[["MAVLink", int], bool]] = None
  17700. self.stream_timestamps: Dict[Tuple[int, int, int], int] = {}
  17701. self.sig_count = 0
  17702. self.badsig_count = 0
  17703. self.goodsig_count = 0
  17704. self.unsigned_count = 0
  17705. self.reject_count = 0
  17706. MAVLinkV1Header = Tuple[bytes, int, int, int, int, int]
  17707. MAVLinkV2Header = Tuple[bytes, int, int, int, int, int, int, int, int]
  17708. class MAVLink(object):
  17709. """MAVLink protocol handling class"""
  17710. def __init__(self, file: Any, srcSystem: int = 0, srcComponent: int = 0, use_native: bool = False) -> None:
  17711. self.seq = 0
  17712. self.file = file
  17713. self.srcSystem = srcSystem
  17714. self.srcComponent = srcComponent
  17715. self.callback: Optional[Callable[..., None]] = None
  17716. self.callback_args: Optional[Iterable[Any]] = None
  17717. self.callback_kwargs: Optional[Mapping[str, Any]] = None
  17718. self.send_callback: Optional[Callable[..., None]] = None
  17719. self.send_callback_args: Optional[Iterable[Any]] = None
  17720. self.send_callback_kwargs: Optional[Mapping[str, Any]] = None
  17721. self.buf = bytearray()
  17722. self.buf_index = 0
  17723. self.expected_length = HEADER_LEN_V1 + 2
  17724. self.have_prefix_error = False
  17725. self.robust_parsing = False
  17726. self.protocol_marker = 253
  17727. self.little_endian = True
  17728. self.crc_extra = True
  17729. self.sort_fields = True
  17730. self.total_packets_sent = 0
  17731. self.total_bytes_sent = 0
  17732. self.total_packets_received = 0
  17733. self.total_bytes_received = 0
  17734. self.total_receive_errors = 0
  17735. self.startup_time = time.time()
  17736. self.signing = MAVLinkSigning()
  17737. self.mav20_unpacker = struct.Struct("<cBBBBBBHB")
  17738. self.mav10_unpacker = struct.Struct("<cBBBBB")
  17739. self.mav20_h3_unpacker = struct.Struct("BBB")
  17740. self.mav_csum_unpacker = struct.Struct("<H")
  17741. self.mav_sign_unpacker = struct.Struct("<IH")
  17742. def set_callback(self, callback: Callable[..., None], *args: Any, **kwargs: Any) -> None:
  17743. self.callback = callback
  17744. self.callback_args = args
  17745. self.callback_kwargs = kwargs
  17746. def set_send_callback(self, callback: Callable[..., None], *args: Any, **kwargs: Any) -> None:
  17747. self.send_callback = callback
  17748. self.send_callback_args = args
  17749. self.send_callback_kwargs = kwargs
  17750. def send(self, mavmsg: MAVLink_message, force_mavlink1: bool = False) -> None:
  17751. """send a MAVLink message"""
  17752. buf = mavmsg.pack(self, force_mavlink1=force_mavlink1)
  17753. self.file.write(buf)
  17754. self.seq = (self.seq + 1) % 256
  17755. self.total_packets_sent += 1
  17756. self.total_bytes_sent += len(buf)
  17757. if self.send_callback is not None and self.send_callback_args is not None and self.send_callback_kwargs is not None:
  17758. self.send_callback(mavmsg, *self.send_callback_args, **self.send_callback_kwargs)
  17759. def buf_len(self) -> int:
  17760. return len(self.buf) - self.buf_index
  17761. def bytes_needed(self) -> int:
  17762. """return number of bytes needed for next parsing stage"""
  17763. ret = self.expected_length - self.buf_len()
  17764. if ret <= 0:
  17765. return 1
  17766. return ret
  17767. def __callbacks(self, msg: MAVLink_message) -> None:
  17768. """this method exists only to make profiling results easier to read"""
  17769. if self.callback is not None and self.callback_args is not None and self.callback_kwargs is not None:
  17770. self.callback(msg, *self.callback_args, **self.callback_kwargs)
  17771. def parse_char(self, c: Sequence[int]) -> Optional[MAVLink_message]:
  17772. """input some data bytes, possibly returning a new message"""
  17773. self.buf.extend(c)
  17774. self.total_bytes_received += len(c)
  17775. m = self.__parse_char_legacy()
  17776. if m is not None:
  17777. self.total_packets_received += 1
  17778. self.__callbacks(m)
  17779. # See if there's nothing left in the buffer, reset it to 0
  17780. # which frees the memory
  17781. if self.buf_index != 0 and self.buf_len() == 0:
  17782. self.buf = bytearray()
  17783. self.buf_index = 0
  17784. return m
  17785. def __parse_char_legacy(self) -> Optional[MAVLink_message]:
  17786. """input some data bytes, possibly returning a new message"""
  17787. header_len = HEADER_LEN_V1
  17788. if self.buf_len() >= 1 and self.buf[self.buf_index] == PROTOCOL_MARKER_V2:
  17789. header_len = HEADER_LEN_V2
  17790. m: Optional[MAVLink_message] = None
  17791. if self.buf_len() >= 1 and self.buf[self.buf_index] != PROTOCOL_MARKER_V1 and self.buf[self.buf_index] != PROTOCOL_MARKER_V2:
  17792. magic = self.buf[self.buf_index]
  17793. self.buf_index += 1
  17794. if self.robust_parsing:
  17795. invalid_prefix_start = self.buf_index - 1
  17796. while self.buf_len() >= 1 and self.buf[self.buf_index] != PROTOCOL_MARKER_V1 and self.buf[self.buf_index] != PROTOCOL_MARKER_V2:
  17797. self.buf_index += 1
  17798. m = MAVLink_bad_data(self.buf[invalid_prefix_start : self.buf_index], "Bad prefix")
  17799. self.expected_length = header_len + 2
  17800. self.total_receive_errors += 1
  17801. return m
  17802. if self.have_prefix_error:
  17803. return None
  17804. self.have_prefix_error = True
  17805. self.total_receive_errors += 1
  17806. raise MAVError("invalid MAVLink prefix '%s'" % magic)
  17807. self.have_prefix_error = False
  17808. if self.buf_len() >= 3:
  17809. sbuf = self.buf[self.buf_index : 3 + self.buf_index]
  17810. unpacked_h3: Tuple[int, int, int] = self.mav20_h3_unpacker.unpack(sbuf)
  17811. magic, self.expected_length, incompat_flags = unpacked_h3
  17812. if magic == PROTOCOL_MARKER_V2 and (incompat_flags & MAVLINK_IFLAG_SIGNED):
  17813. self.expected_length += MAVLINK_SIGNATURE_BLOCK_LEN
  17814. self.expected_length += header_len + 2
  17815. if self.expected_length >= (header_len + 2) and self.buf_len() >= self.expected_length:
  17816. mbuf = self.buf[self.buf_index : self.buf_index + self.expected_length]
  17817. self.buf_index += self.expected_length
  17818. self.expected_length = header_len + 2
  17819. if self.robust_parsing:
  17820. try:
  17821. if magic == PROTOCOL_MARKER_V2 and (incompat_flags & ~MAVLINK_IFLAG_SIGNED) != 0:
  17822. raise MAVError("invalid incompat_flags 0x%x 0x%x %u" % (incompat_flags, magic, self.expected_length))
  17823. m = self.decode(mbuf)
  17824. except MAVError as reason:
  17825. m = MAVLink_bad_data(mbuf, reason.message)
  17826. self.total_receive_errors += 1
  17827. else:
  17828. if magic == PROTOCOL_MARKER_V2 and (incompat_flags & ~MAVLINK_IFLAG_SIGNED) != 0:
  17829. raise MAVError("invalid incompat_flags 0x%x 0x%x %u" % (incompat_flags, magic, self.expected_length))
  17830. m = self.decode(mbuf)
  17831. return m
  17832. return None
  17833. def parse_buffer(self, s: Sequence[int]) -> Optional[List[MAVLink_message]]:
  17834. """input some data bytes, possibly returning a list of new messages"""
  17835. m = self.parse_char(s)
  17836. if m is None:
  17837. return None
  17838. ret = [m]
  17839. while True:
  17840. m = self.parse_char(b"")
  17841. if m is None:
  17842. return ret
  17843. ret.append(m)
  17844. def check_signature(self, msgbuf: bytearray, srcSystem: int, srcComponent: int) -> bool:
  17845. """check signature on incoming message"""
  17846. assert self.signing.secret_key is not None
  17847. timestamp_buf = msgbuf[-12:-6]
  17848. link_id = msgbuf[-13]
  17849. tbytes: Tuple[int, int] = self.mav_sign_unpacker.unpack(timestamp_buf)
  17850. tlow, thigh = tbytes
  17851. timestamp = tlow + (thigh << 32)
  17852. # see if the timestamp is acceptable
  17853. stream_key = (link_id, srcSystem, srcComponent)
  17854. if stream_key in self.signing.stream_timestamps:
  17855. if timestamp <= self.signing.stream_timestamps[stream_key]:
  17856. # reject old timestamp
  17857. logger.info("old timestamp")
  17858. return False
  17859. else:
  17860. # a new stream has appeared. Accept the timestamp if it is at most
  17861. # one minute behind our current timestamp
  17862. if timestamp + 6000 * 1000 < self.signing.timestamp:
  17863. logger.info("bad new stream %s %s", timestamp / (100.0 * 1000 * 60 * 60 * 24 * 365), self.signing.timestamp / (100.0 * 1000 * 60 * 60 * 24 * 365))
  17864. return False
  17865. logger.info("new stream")
  17866. # set the streams timestamp so we reject timestamps that go backwards
  17867. self.signing.stream_timestamps[stream_key] = timestamp
  17868. h = hashlib.new("sha256")
  17869. h.update(self.signing.secret_key)
  17870. h.update(msgbuf[:-6])
  17871. sig1 = h.digest()[:6]
  17872. sig2 = msgbuf[-6:]
  17873. if sig1 != sig2:
  17874. logger.info("sig mismatch")
  17875. return False
  17876. # the timestamp we next send with is the max of the received timestamp and
  17877. # our current timestamp
  17878. self.signing.timestamp = max(self.signing.timestamp, timestamp)
  17879. return True
  17880. def decode(self, msgbuf: bytearray) -> MAVLink_message:
  17881. """decode a buffer as a MAVLink message"""
  17882. # decode the header
  17883. if msgbuf[0] != PROTOCOL_MARKER_V1:
  17884. headerlen = 10
  17885. try:
  17886. header_v2: MAVLinkV2Header = self.mav20_unpacker.unpack(msgbuf[:headerlen])
  17887. except struct.error as emsg:
  17888. raise MAVError("Unable to unpack MAVLink header: %s" % emsg)
  17889. magic, mlen, incompat_flags, compat_flags, seq, srcSystem, srcComponent, msgIdlow, msgIdhigh = header_v2
  17890. msgId = msgIdlow | (msgIdhigh << 16)
  17891. else:
  17892. headerlen = 6
  17893. try:
  17894. header_v1: MAVLinkV1Header = self.mav10_unpacker.unpack(msgbuf[:headerlen])
  17895. except struct.error as emsg:
  17896. raise MAVError("Unable to unpack MAVLink header: %s" % emsg)
  17897. magic, mlen, seq, srcSystem, srcComponent, msgId = header_v1
  17898. incompat_flags = 0
  17899. compat_flags = 0
  17900. mapkey = msgId
  17901. if (incompat_flags & MAVLINK_IFLAG_SIGNED) != 0:
  17902. signature_len = MAVLINK_SIGNATURE_BLOCK_LEN
  17903. else:
  17904. signature_len = 0
  17905. if ord(magic) != PROTOCOL_MARKER_V1 and ord(magic) != PROTOCOL_MARKER_V2:
  17906. raise MAVError("invalid MAVLink prefix '{}'".format(hex(ord(magic))))
  17907. if mlen != len(msgbuf) - (headerlen + 2 + signature_len):
  17908. raise MAVError("invalid MAVLink message length. Got %u expected %u, msgId=%u headerlen=%u" % (len(msgbuf) - (headerlen + 2 + signature_len), mlen, msgId, headerlen))
  17909. if mapkey not in mavlink_map:
  17910. return MAVLink_unknown(msgId, msgbuf)
  17911. # decode the payload
  17912. msgtype = mavlink_map[mapkey]
  17913. order_map = msgtype.orders
  17914. len_map = msgtype.lengths
  17915. crc_extra = msgtype.crc_extra
  17916. # decode the checksum
  17917. try:
  17918. crc: int = self.mav_csum_unpacker.unpack(msgbuf[-(2 + signature_len) :][:2])[0]
  17919. except struct.error as emsg:
  17920. raise MAVError("Unable to unpack MAVLink CRC: %s" % emsg)
  17921. crcbuf = msgbuf[1 : -(2 + signature_len)]
  17922. # using CRC extra
  17923. crcbuf.append(crc_extra)
  17924. crc2 = x25crc(crcbuf)
  17925. if crc != crc2.crc and not MAVLINK_IGNORE_CRC:
  17926. raise MAVError("invalid MAVLink CRC in msgID %u 0x%04x should be 0x%04x" % (msgId, crc, crc2.crc))
  17927. sig_ok = False
  17928. if signature_len == MAVLINK_SIGNATURE_BLOCK_LEN:
  17929. self.signing.sig_count += 1
  17930. if self.signing.secret_key is not None:
  17931. accept_signature = False
  17932. if signature_len == MAVLINK_SIGNATURE_BLOCK_LEN:
  17933. sig_ok = self.check_signature(msgbuf, srcSystem, srcComponent)
  17934. accept_signature = sig_ok
  17935. if sig_ok:
  17936. self.signing.goodsig_count += 1
  17937. else:
  17938. self.signing.badsig_count += 1
  17939. if not accept_signature and self.signing.allow_unsigned_callback is not None:
  17940. accept_signature = self.signing.allow_unsigned_callback(self, msgId)
  17941. if accept_signature:
  17942. self.signing.unsigned_count += 1
  17943. else:
  17944. self.signing.reject_count += 1
  17945. elif self.signing.allow_unsigned_callback is not None:
  17946. accept_signature = self.signing.allow_unsigned_callback(self, msgId)
  17947. if accept_signature:
  17948. self.signing.unsigned_count += 1
  17949. else:
  17950. self.signing.reject_count += 1
  17951. if not accept_signature:
  17952. raise MAVError("Invalid signature")
  17953. csize = msgtype.unpacker.size
  17954. mbuf = msgbuf[headerlen : -(2 + signature_len)]
  17955. if len(mbuf) < csize:
  17956. # zero pad to give right size
  17957. mbuf.extend([0] * (csize - len(mbuf)))
  17958. if len(mbuf) < csize:
  17959. raise MAVError("Bad message of type %s length %u needs %s" % (msgtype, len(mbuf), csize))
  17960. mbuf = mbuf[:csize]
  17961. try:
  17962. t: Tuple[Union[bytes, int, float], ...] = msgtype.unpacker.unpack(mbuf)
  17963. except struct.error as emsg:
  17964. raise MAVError("Unable to unpack MAVLink payload type=%s payloadLength=%u: %s" % (msgtype, len(mbuf), emsg))
  17965. tlist: List[Union[bytes, float, int, Sequence[Union[bytes, float, int]]]] = list(t)
  17966. # handle sorted fields
  17967. if sum(len_map) == len(len_map):
  17968. # message has no arrays in it
  17969. for i in range(0, len(tlist)):
  17970. tlist[i] = t[order_map[i]]
  17971. else:
  17972. # message has some arrays
  17973. tlist = []
  17974. for i in range(0, len(order_map)):
  17975. order = order_map[i]
  17976. L = len_map[order]
  17977. tip = sum(len_map[:order])
  17978. field = t[tip]
  17979. if L == 1 or isinstance(field, bytes):
  17980. tlist.append(field)
  17981. else:
  17982. tlist.append(list(t[tip : (tip + L)]))
  17983. # terminate any strings
  17984. for i, elem in enumerate(tlist):
  17985. if isinstance(elem, bytes):
  17986. tlist[i] = elem.rstrip(b"\x00")
  17987. # construct the message object
  17988. try:
  17989. # Note that initializers don't follow the Liskov Substitution Principle
  17990. # therefore it can't be typechecked
  17991. m = msgtype(*tlist) # type: ignore
  17992. except Exception as emsg:
  17993. raise MAVError("Unable to instantiate MAVLink message of type %s : %s" % (msgtype, emsg))
  17994. m._signed = sig_ok
  17995. if m._signed:
  17996. m._link_id = msgbuf[-13]
  17997. m._msgbuf = msgbuf
  17998. m._payload = msgbuf[6 : -(2 + signature_len)]
  17999. m._crc = crc
  18000. m._header = MAVLink_header(msgId, incompat_flags, compat_flags, mlen, seq, srcSystem, srcComponent)
  18001. return m
  18002. def vkins_status_encode(self, time_boot_ms: int, nav_status: int, s_flag1: int, s_flag2: int, s_flag3: int, s_flag4: int, s_flag5: int, s_flag6: int, mag_calib_stage: int, g0: float, raw_latitude: int, raw_longitude: int, baro_alt: float, raw_gps_alt: float, solv_psat_num: int, solv_hsat_num: int, temperature: int, vibe_coe: int) -> MAVLink_vkins_status_message:
  18003. """
  18004. time_boot_ms : Timestamp in ms from system boot. [ms] (type:uint32_t)
  18005. nav_status : VKINS
  18006. navigation status flag. (type:uint8_t, values:VKFLY_VKINS_NAV_STATUS)
  18007. s_flag1 : vinks flag1 (type:uint8_t)
  18008. s_flag2 : vinks flag2. (type:uint8_t)
  18009. s_flag3 : vinks flag3. (type:uint8_t)
  18010. s_flag4 : vinks flag4. (type:uint8_t)
  18011. s_flag5 : vinks flag5. (type:uint8_t)
  18012. s_flag6 : vinks flag6. (type:uint8_t)
  18013. mag_calib_stage : vkins mag calib
  18014. stage. (type:uint8_t, values:VKFLY_MAGCALIB_STAGE)
  18015. g0 : vkins initial calibrated gravitation acceleration. [m/s/s] (type:float)
  18016. raw_latitude : raw longitude for data fusion [degE7] (type:int32_t)
  18017. raw_longitude : raw latitidue for data fusion [degE7] (type:int32_t)
  18018. baro_alt : raw baromoter altitude for data fusion [m] (type:float)
  18019. raw_gps_alt : gps amsl altitude for data fusion [m] (type:float)
  18020. solv_psat_num : satelites number for position (type:uint8_t)
  18021. solv_hsat_num : satelites number for heading (type:uint8_t)
  18022. temperature : temperature [degC] (type:int16_t)
  18023. vibe_coe : (type:uint8_t)
  18024. """
  18025. return MAVLink_vkins_status_message(time_boot_ms, nav_status, s_flag1, s_flag2, s_flag3, s_flag4, s_flag5, s_flag6, mag_calib_stage, g0, raw_latitude, raw_longitude, baro_alt, raw_gps_alt, solv_psat_num, solv_hsat_num, temperature, vibe_coe)
  18026. def vkins_status_send(self, time_boot_ms: int, nav_status: int, s_flag1: int, s_flag2: int, s_flag3: int, s_flag4: int, s_flag5: int, s_flag6: int, mag_calib_stage: int, g0: float, raw_latitude: int, raw_longitude: int, baro_alt: float, raw_gps_alt: float, solv_psat_num: int, solv_hsat_num: int, temperature: int, vibe_coe: int, force_mavlink1: bool = False) -> None:
  18027. """
  18028. time_boot_ms : Timestamp in ms from system boot. [ms] (type:uint32_t)
  18029. nav_status : VKINS
  18030. navigation status flag. (type:uint8_t, values:VKFLY_VKINS_NAV_STATUS)
  18031. s_flag1 : vinks flag1 (type:uint8_t)
  18032. s_flag2 : vinks flag2. (type:uint8_t)
  18033. s_flag3 : vinks flag3. (type:uint8_t)
  18034. s_flag4 : vinks flag4. (type:uint8_t)
  18035. s_flag5 : vinks flag5. (type:uint8_t)
  18036. s_flag6 : vinks flag6. (type:uint8_t)
  18037. mag_calib_stage : vkins mag calib
  18038. stage. (type:uint8_t, values:VKFLY_MAGCALIB_STAGE)
  18039. g0 : vkins initial calibrated gravitation acceleration. [m/s/s] (type:float)
  18040. raw_latitude : raw longitude for data fusion [degE7] (type:int32_t)
  18041. raw_longitude : raw latitidue for data fusion [degE7] (type:int32_t)
  18042. baro_alt : raw baromoter altitude for data fusion [m] (type:float)
  18043. raw_gps_alt : gps amsl altitude for data fusion [m] (type:float)
  18044. solv_psat_num : satelites number for position (type:uint8_t)
  18045. solv_hsat_num : satelites number for heading (type:uint8_t)
  18046. temperature : temperature [degC] (type:int16_t)
  18047. vibe_coe : (type:uint8_t)
  18048. """
  18049. self.send(self.vkins_status_encode(time_boot_ms, nav_status, s_flag1, s_flag2, s_flag3, s_flag4, s_flag5, s_flag6, mag_calib_stage, g0, raw_latitude, raw_longitude, baro_alt, raw_gps_alt, solv_psat_num, solv_hsat_num, temperature, vibe_coe), force_mavlink1=force_mavlink1)
  18050. def vkfmu_status_encode(self, time_boot_ms: int, rtl_reason: int, loiter_reason: int, s_flag3: int, ups_volt: int, adc_volt: int, flight_time: int, dist_to_tar: int, servo_state: int, flight_dist: float, servo_display: int = 0) -> MAVLink_vkfmu_status_message:
  18051. """
  18052. time_boot_ms : Timestamp in ms from system boot. [ms] (type:uint32_t)
  18053. rtl_reason : return to launch reason. (type:uint8_t, values:VKFLY_RTL_REASON)
  18054. loiter_reason : Loiter reason (type:uint8_t, values:VKFLY_LOITER_REASON)
  18055. s_flag3 : fmu sflag3 (type:uint8_t)
  18056. ups_volt : ups voltage in 0.1V (type:uint16_t)
  18057. adc_volt : adc voltage in 0.1V (type:uint16_t)
  18058. flight_time : flight time in seconds [s] (type:uint32_t)
  18059. dist_to_tar : distance to target position in cm [cm] (type:uint32_t)
  18060. servo_state : bitmap for servo state (type:uint16_t)
  18061. flight_dist : flight distance since this power up [m] (type:float)
  18062. servo_display : bitmap for servo state display (type:uint16_t)
  18063. """
  18064. return MAVLink_vkfmu_status_message(time_boot_ms, rtl_reason, loiter_reason, s_flag3, ups_volt, adc_volt, flight_time, dist_to_tar, servo_state, flight_dist, servo_display)
  18065. def vkfmu_status_send(self, time_boot_ms: int, rtl_reason: int, loiter_reason: int, s_flag3: int, ups_volt: int, adc_volt: int, flight_time: int, dist_to_tar: int, servo_state: int, flight_dist: float, servo_display: int = 0, force_mavlink1: bool = False) -> None:
  18066. """
  18067. time_boot_ms : Timestamp in ms from system boot. [ms] (type:uint32_t)
  18068. rtl_reason : return to launch reason. (type:uint8_t, values:VKFLY_RTL_REASON)
  18069. loiter_reason : Loiter reason (type:uint8_t, values:VKFLY_LOITER_REASON)
  18070. s_flag3 : fmu sflag3 (type:uint8_t)
  18071. ups_volt : ups voltage in 0.1V (type:uint16_t)
  18072. adc_volt : adc voltage in 0.1V (type:uint16_t)
  18073. flight_time : flight time in seconds [s] (type:uint32_t)
  18074. dist_to_tar : distance to target position in cm [cm] (type:uint32_t)
  18075. servo_state : bitmap for servo state (type:uint16_t)
  18076. flight_dist : flight distance since this power up [m] (type:float)
  18077. servo_display : bitmap for servo state display (type:uint16_t)
  18078. """
  18079. self.send(self.vkfmu_status_encode(time_boot_ms, rtl_reason, loiter_reason, s_flag3, ups_volt, adc_volt, flight_time, dist_to_tar, servo_state, flight_dist, servo_display), force_mavlink1=force_mavlink1)
  18080. def vk_roi_target_encode(self, time_boot_ms: int, lat: int, lon: int, alt: float, state: int) -> MAVLink_vk_roi_target_message:
  18081. """
  18082. time_boot_ms : Timestamp in ms from system boot. [ms] (type:uint32_t)
  18083. lat : wgs48 latitude [degE7] (type:int32_t)
  18084. lon : wgs48 longitude [degE7] (type:int32_t)
  18085. alt : altitude amsl, wgs48 [m] (type:float)
  18086. state : Bitmap to indicate ROI state (type:uint16_t, values:VKFLY_ROI_STATE)
  18087. """
  18088. return MAVLink_vk_roi_target_message(time_boot_ms, lat, lon, alt, state)
  18089. def vk_roi_target_send(self, time_boot_ms: int, lat: int, lon: int, alt: float, state: int, force_mavlink1: bool = False) -> None:
  18090. """
  18091. time_boot_ms : Timestamp in ms from system boot. [ms] (type:uint32_t)
  18092. lat : wgs48 latitude [degE7] (type:int32_t)
  18093. lon : wgs48 longitude [degE7] (type:int32_t)
  18094. alt : altitude amsl, wgs48 [m] (type:float)
  18095. state : Bitmap to indicate ROI state (type:uint16_t, values:VKFLY_ROI_STATE)
  18096. """
  18097. self.send(self.vk_roi_target_encode(time_boot_ms, lat, lon, alt, state), force_mavlink1=force_mavlink1)
  18098. def vk_bms_status_encode(self, time_boot_ms: int, voltage: int, current: int, temperature: int, cap_percent: int, bat_id: int, err_code: int, cell_num: int, cell_volt: Sequence[int], cyc_cnt: int, health: int) -> MAVLink_vk_bms_status_message:
  18099. """
  18100. battery bms status message
  18101. time_boot_ms : Timestamp in ms from system boot. [ms] (type:uint32_t)
  18102. voltage : BMS voltage in mV [mV] (type:uint32_t)
  18103. current : BMS current in cA, negative value means in
  18104. charging [cA] (type:int32_t)
  18105. temperature : BMS temperature in degC [degC] (type:int16_t)
  18106. cap_percent : BMS remaining power in percentage [%] (type:int8_t)
  18107. bat_id : BMS id, start from
  18108. 0 (type:uint8_t)
  18109. err_code : BMS error code,
  18110. 0 means no error (type:uint32_t)
  18111. cell_num : BMS cell numbers (type:uint16_t)
  18112. cell_volt : BMS cell voltage in mV [mV] (type:uint16_t)
  18113. cyc_cnt : charge and discharge times (type:uint16_t)
  18114. health : battery healthiness in
  18115. percentage (type:uint8_t)
  18116. """
  18117. return MAVLink_vk_bms_status_message(time_boot_ms, voltage, current, temperature, cap_percent, bat_id, err_code, cell_num, cell_volt, cyc_cnt, health)
  18118. def vk_bms_status_send(self, time_boot_ms: int, voltage: int, current: int, temperature: int, cap_percent: int, bat_id: int, err_code: int, cell_num: int, cell_volt: Sequence[int], cyc_cnt: int, health: int, force_mavlink1: bool = False) -> None:
  18119. """
  18120. battery bms status message
  18121. time_boot_ms : Timestamp in ms from system boot. [ms] (type:uint32_t)
  18122. voltage : BMS voltage in mV [mV] (type:uint32_t)
  18123. current : BMS current in cA, negative value means in
  18124. charging [cA] (type:int32_t)
  18125. temperature : BMS temperature in degC [degC] (type:int16_t)
  18126. cap_percent : BMS remaining power in percentage [%] (type:int8_t)
  18127. bat_id : BMS id, start from
  18128. 0 (type:uint8_t)
  18129. err_code : BMS error code,
  18130. 0 means no error (type:uint32_t)
  18131. cell_num : BMS cell numbers (type:uint16_t)
  18132. cell_volt : BMS cell voltage in mV [mV] (type:uint16_t)
  18133. cyc_cnt : charge and discharge times (type:uint16_t)
  18134. health : battery healthiness in
  18135. percentage (type:uint8_t)
  18136. """
  18137. self.send(self.vk_bms_status_encode(time_boot_ms, voltage, current, temperature, cap_percent, bat_id, err_code, cell_num, cell_volt, cyc_cnt, health), force_mavlink1=force_mavlink1)
  18138. def vk_formation_leader_encode(self, timestamp: int, state: int, lat: int, lon: int, msl: float, ve: float, vn: float, vu: float, yaw: float, formation_type: int, x_dist: int, y_dist: int, z_dist: int, rect_col_num: int, formation_heading: float = 0, form_head_lock: float = 0, ae: float = 0, an: float = 0, au: float = 0) -> MAVLink_vk_formation_leader_message:
  18139. """
  18140. formation fly leader status message
  18141. timestamp : Timestamp in ms from system boot. [ms] (type:uint32_t)
  18142. state : formation leader drone state bitmap (type:uint32_t)
  18143. lat : formation leader latitude in 1e-7deg [degE7] (type:int32_t)
  18144. lon : formation leader longitude in 1e-7deg [degE7] (type:int32_t)
  18145. msl : formation leader msl altitude in meter [m] (type:float)
  18146. ve : formation leader east speed [m/s] (type:float)
  18147. vn : formation leader north speed [m/s] (type:float)
  18148. vu : formation leader up speed [m/s] (type:float)
  18149. yaw : formation leader yaw [deg] (type:float)
  18150. formation_type : formation type (type:uint8_t, values:VKFLY_FORMATION_TYPE)
  18151. x_dist : distance between drones in x axis [cm] (type:int16_t)
  18152. y_dist : distance between drones in y axis [cm] (type:int16_t)
  18153. z_dist : distance between drones in z axis [cm] (type:int16_t)
  18154. rect_col_num : columns number of rectangle formation (type:uint16_t)
  18155. formation_heading : if nan, use yaw as formation heading [deg] (type:float)
  18156. form_head_lock : 0 unlock, 1 lock (type:float)
  18157. ae : formation leader east acceleration [m/s/s] (type:float)
  18158. an : formation leader east acceleration [m/s/s] (type:float)
  18159. au : formation leader east acceleration [m/s/s] (type:float)
  18160. """
  18161. return MAVLink_vk_formation_leader_message(timestamp, state, lat, lon, msl, ve, vn, vu, yaw, formation_type, x_dist, y_dist, z_dist, rect_col_num, formation_heading, form_head_lock, ae, an, au)
  18162. def vk_formation_leader_send(self, timestamp: int, state: int, lat: int, lon: int, msl: float, ve: float, vn: float, vu: float, yaw: float, formation_type: int, x_dist: int, y_dist: int, z_dist: int, rect_col_num: int, formation_heading: float = 0, form_head_lock: float = 0, ae: float = 0, an: float = 0, au: float = 0, force_mavlink1: bool = False) -> None:
  18163. """
  18164. formation fly leader status message
  18165. timestamp : Timestamp in ms from system boot. [ms] (type:uint32_t)
  18166. state : formation leader drone state bitmap (type:uint32_t)
  18167. lat : formation leader latitude in 1e-7deg [degE7] (type:int32_t)
  18168. lon : formation leader longitude in 1e-7deg [degE7] (type:int32_t)
  18169. msl : formation leader msl altitude in meter [m] (type:float)
  18170. ve : formation leader east speed [m/s] (type:float)
  18171. vn : formation leader north speed [m/s] (type:float)
  18172. vu : formation leader up speed [m/s] (type:float)
  18173. yaw : formation leader yaw [deg] (type:float)
  18174. formation_type : formation type (type:uint8_t, values:VKFLY_FORMATION_TYPE)
  18175. x_dist : distance between drones in x axis [cm] (type:int16_t)
  18176. y_dist : distance between drones in y axis [cm] (type:int16_t)
  18177. z_dist : distance between drones in z axis [cm] (type:int16_t)
  18178. rect_col_num : columns number of rectangle formation (type:uint16_t)
  18179. formation_heading : if nan, use yaw as formation heading [deg] (type:float)
  18180. form_head_lock : 0 unlock, 1 lock (type:float)
  18181. ae : formation leader east acceleration [m/s/s] (type:float)
  18182. an : formation leader east acceleration [m/s/s] (type:float)
  18183. au : formation leader east acceleration [m/s/s] (type:float)
  18184. """
  18185. self.send(self.vk_formation_leader_encode(timestamp, state, lat, lon, msl, ve, vn, vu, yaw, formation_type, x_dist, y_dist, z_dist, rect_col_num, formation_heading, form_head_lock, ae, an, au), force_mavlink1=force_mavlink1)
  18186. def vk_engine_ecu_staus_encode(self, timestamp: int, spd_rpm: int, thr_pos: int, fuel_pos: int, cylinderA_temp: int, cylinderB_temp: int, coolant_temp: int, fuel_remain: int, alarm: int, total_runtime: int, runtime: int, service_time: int, output_volt: int, output_curr: int, fault: int, engine_state: int, index: int, reserve: Sequence[int], inlet_pressure: int = 0, ge_temp: int = 0, air_temp: int = 0, temp_1: int = 0, volt_2: int = 0) -> MAVLink_vk_engine_ecu_staus_message:
  18187. """
  18188. engine ecu status message
  18189. timestamp : Timestamp in ms from system boot. [ms] (type:uint32_t)
  18190. spd_rpm : rotational speed in rpm (type:uint16_t)
  18191. thr_pos : throttle
  18192. position [%] (type:uint8_t)
  18193. fuel_pos : fuel
  18194. position [%] (type:uint8_t)
  18195. cylinderA_temp : CylinderA head temperature [degC] (type:int16_t)
  18196. cylinderB_temp : CylinderB head temperature [degC] (type:int16_t)
  18197. coolant_temp : coolant head temperature [degC] (type:int16_t)
  18198. fuel_remain : engine index (type:uint16_t)
  18199. alarm : range extender alarm bitmap (type:uint16_t)
  18200. total_runtime : range extender output voltage [min] (type:uint32_t)
  18201. runtime : range extender output voltage [min] (type:uint16_t)
  18202. service_time : left time for service [min] (type:uint16_t)
  18203. output_volt : range extender output voltage [dV] (type:uint16_t)
  18204. output_curr : range extender output current [dA] (type:uint16_t)
  18205. fault : engine fault (type:uint8_t)
  18206. engine_state : engine state (type:uint8_t)
  18207. index : engine index (type:uint8_t)
  18208. reserve : engine state (type:uint8_t)
  18209. inlet_pressure : inlet air pressure [hPa] (type:uint16_t)
  18210. ge_temp : Ge temperature [degC] (type:int16_t)
  18211. air_temp : air temperature [degC] (type:int16_t)
  18212. temp_1 : temperature 1 [degC] (type:int16_t)
  18213. volt_2 : volt 2 [dV] (type:int16_t)
  18214. """
  18215. return MAVLink_vk_engine_ecu_staus_message(timestamp, spd_rpm, thr_pos, fuel_pos, cylinderA_temp, cylinderB_temp, coolant_temp, fuel_remain, alarm, total_runtime, runtime, service_time, output_volt, output_curr, fault, engine_state, index, reserve, inlet_pressure, ge_temp, air_temp, temp_1, volt_2)
  18216. def vk_engine_ecu_staus_send(self, timestamp: int, spd_rpm: int, thr_pos: int, fuel_pos: int, cylinderA_temp: int, cylinderB_temp: int, coolant_temp: int, fuel_remain: int, alarm: int, total_runtime: int, runtime: int, service_time: int, output_volt: int, output_curr: int, fault: int, engine_state: int, index: int, reserve: Sequence[int], inlet_pressure: int = 0, ge_temp: int = 0, air_temp: int = 0, temp_1: int = 0, volt_2: int = 0, force_mavlink1: bool = False) -> None:
  18217. """
  18218. engine ecu status message
  18219. timestamp : Timestamp in ms from system boot. [ms] (type:uint32_t)
  18220. spd_rpm : rotational speed in rpm (type:uint16_t)
  18221. thr_pos : throttle
  18222. position [%] (type:uint8_t)
  18223. fuel_pos : fuel
  18224. position [%] (type:uint8_t)
  18225. cylinderA_temp : CylinderA head temperature [degC] (type:int16_t)
  18226. cylinderB_temp : CylinderB head temperature [degC] (type:int16_t)
  18227. coolant_temp : coolant head temperature [degC] (type:int16_t)
  18228. fuel_remain : engine index (type:uint16_t)
  18229. alarm : range extender alarm bitmap (type:uint16_t)
  18230. total_runtime : range extender output voltage [min] (type:uint32_t)
  18231. runtime : range extender output voltage [min] (type:uint16_t)
  18232. service_time : left time for service [min] (type:uint16_t)
  18233. output_volt : range extender output voltage [dV] (type:uint16_t)
  18234. output_curr : range extender output current [dA] (type:uint16_t)
  18235. fault : engine fault (type:uint8_t)
  18236. engine_state : engine state (type:uint8_t)
  18237. index : engine index (type:uint8_t)
  18238. reserve : engine state (type:uint8_t)
  18239. inlet_pressure : inlet air pressure [hPa] (type:uint16_t)
  18240. ge_temp : Ge temperature [degC] (type:int16_t)
  18241. air_temp : air temperature [degC] (type:int16_t)
  18242. temp_1 : temperature 1 [degC] (type:int16_t)
  18243. volt_2 : volt 2 [dV] (type:int16_t)
  18244. """
  18245. self.send(self.vk_engine_ecu_staus_encode(timestamp, spd_rpm, thr_pos, fuel_pos, cylinderA_temp, cylinderB_temp, coolant_temp, fuel_remain, alarm, total_runtime, runtime, service_time, output_volt, output_curr, fault, engine_state, index, reserve, inlet_pressure, ge_temp, air_temp, temp_1, volt_2), force_mavlink1=force_mavlink1)
  18246. def vk_comp_version_encode(self, comp_id: int, hw_ver: Sequence[int], fw_ver: Sequence[int], SN: Sequence[int], manufactory: Sequence[int], model: Sequence[int], priv_data: Sequence[int]) -> MAVLink_vk_comp_version_message:
  18247. """
  18248. vkfly gps version
  18249. comp_id : component id (type:uint16_t, values:VKFLY_USER_COMP_ID)
  18250. hw_ver : hardware version (type:uint8_t)
  18251. fw_ver : firmware version (type:uint8_t)
  18252. SN : SN number (type:uint8_t)
  18253. manufactory : manufactory (type:uint8_t)
  18254. model : model (type:uint8_t)
  18255. priv_data : gnss configuration (type:uint8_t)
  18256. """
  18257. return MAVLink_vk_comp_version_message(comp_id, hw_ver, fw_ver, SN, manufactory, model, priv_data)
  18258. def vk_comp_version_send(self, comp_id: int, hw_ver: Sequence[int], fw_ver: Sequence[int], SN: Sequence[int], manufactory: Sequence[int], model: Sequence[int], priv_data: Sequence[int], force_mavlink1: bool = False) -> None:
  18259. """
  18260. vkfly gps version
  18261. comp_id : component id (type:uint16_t, values:VKFLY_USER_COMP_ID)
  18262. hw_ver : hardware version (type:uint8_t)
  18263. fw_ver : firmware version (type:uint8_t)
  18264. SN : SN number (type:uint8_t)
  18265. manufactory : manufactory (type:uint8_t)
  18266. model : model (type:uint8_t)
  18267. priv_data : gnss configuration (type:uint8_t)
  18268. """
  18269. self.send(self.vk_comp_version_encode(comp_id, hw_ver, fw_ver, SN, manufactory, model, priv_data), force_mavlink1=force_mavlink1)
  18270. def vk_mosaich_gps_raw_encode(self, time_usec: int, fix_type: int, psv_num: int, pvt_err: int, pvt_mode: int, lat: int, lon: int, ellipsoid_alt: float, ve: float, vn: float, vu: float, h_acc: int, v_acc: int, yaw: float, pitch: float, hsv_num: int, att_err: int, att_mode: int, reserved: int) -> MAVLink_vk_mosaich_gps_raw_message:
  18271. """
  18272. Mosaic_h gps raw data
  18273. time_usec : Timestamp (UNIX Epoch time or time since
  18274. system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system
  18275. boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  18276. fix_type : GPS fix type. (type:uint8_t, values:GPS_FIX_TYPE)
  18277. psv_num : Number of satellites for positioning ANT (type:uint8_t)
  18278. pvt_err : refer to mosaic_h reference page 308 (type:uint8_t)
  18279. pvt_mode : refer to mosaic_h reference page 308 (type:uint8_t)
  18280. lat : Latitude (WGS84, EGM96 ellipsoid) [degE7] (type:int32_t)
  18281. lon : Longitude (WGS84, EGM96 ellipsoid) [degE7] (type:int32_t)
  18282. ellipsoid_alt : Altitude (Ellipsoild). Positive for up. [m] (type:float)
  18283. ve : Ease speed in m/s. [m/s] (type:float)
  18284. vn : North speed in m/s. [m/s] (type:float)
  18285. vu : Up speed in m/s. [m/s] (type:float)
  18286. h_acc : Position uncertainty. [cm] (type:uint16_t)
  18287. v_acc : Altitude uncertainty. [cm] (type:uint16_t)
  18288. yaw : Attitude euler yaw. [deg] (type:float)
  18289. pitch : Attitude euler pitch. [deg] (type:float)
  18290. hsv_num : Number of satellites for heading ANT (type:uint8_t)
  18291. att_err : refer to mosaic_h reference page 336. (type:uint8_t)
  18292. att_mode : refer to mosaic_h reference page 336. (type:uint8_t)
  18293. reserved : reserved (type:uint8_t)
  18294. """
  18295. return MAVLink_vk_mosaich_gps_raw_message(time_usec, fix_type, psv_num, pvt_err, pvt_mode, lat, lon, ellipsoid_alt, ve, vn, vu, h_acc, v_acc, yaw, pitch, hsv_num, att_err, att_mode, reserved)
  18296. def vk_mosaich_gps_raw_send(self, time_usec: int, fix_type: int, psv_num: int, pvt_err: int, pvt_mode: int, lat: int, lon: int, ellipsoid_alt: float, ve: float, vn: float, vu: float, h_acc: int, v_acc: int, yaw: float, pitch: float, hsv_num: int, att_err: int, att_mode: int, reserved: int, force_mavlink1: bool = False) -> None:
  18297. """
  18298. Mosaic_h gps raw data
  18299. time_usec : Timestamp (UNIX Epoch time or time since
  18300. system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system
  18301. boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  18302. fix_type : GPS fix type. (type:uint8_t, values:GPS_FIX_TYPE)
  18303. psv_num : Number of satellites for positioning ANT (type:uint8_t)
  18304. pvt_err : refer to mosaic_h reference page 308 (type:uint8_t)
  18305. pvt_mode : refer to mosaic_h reference page 308 (type:uint8_t)
  18306. lat : Latitude (WGS84, EGM96 ellipsoid) [degE7] (type:int32_t)
  18307. lon : Longitude (WGS84, EGM96 ellipsoid) [degE7] (type:int32_t)
  18308. ellipsoid_alt : Altitude (Ellipsoild). Positive for up. [m] (type:float)
  18309. ve : Ease speed in m/s. [m/s] (type:float)
  18310. vn : North speed in m/s. [m/s] (type:float)
  18311. vu : Up speed in m/s. [m/s] (type:float)
  18312. h_acc : Position uncertainty. [cm] (type:uint16_t)
  18313. v_acc : Altitude uncertainty. [cm] (type:uint16_t)
  18314. yaw : Attitude euler yaw. [deg] (type:float)
  18315. pitch : Attitude euler pitch. [deg] (type:float)
  18316. hsv_num : Number of satellites for heading ANT (type:uint8_t)
  18317. att_err : refer to mosaic_h reference page 336. (type:uint8_t)
  18318. att_mode : refer to mosaic_h reference page 336. (type:uint8_t)
  18319. reserved : reserved (type:uint8_t)
  18320. """
  18321. self.send(self.vk_mosaich_gps_raw_encode(time_usec, fix_type, psv_num, pvt_err, pvt_mode, lat, lon, ellipsoid_alt, ve, vn, vu, h_acc, v_acc, yaw, pitch, hsv_num, att_err, att_mode, reserved), force_mavlink1=force_mavlink1)
  18322. def vk_digi_esc_status_encode(self, index: int, timestamp: int, rpm: Sequence[int], voltage: Sequence[float], current: Sequence[float], temperature: Sequence[int], status: Sequence[int], motor_temp: Sequence[int] = (0, 0, 0, 0), cap_temp: Sequence[int] = (0, 0, 0, 0), status2: Sequence[int] = (0, 0, 0, 0)) -> MAVLink_vk_digi_esc_status_message:
  18323. """
  18324. Mosaic_h gps raw data
  18325. index : Index of the first ESC in this message.
  18326. minValue = 0, maxValue = 60, increment = 4. (type:uint8_t)
  18327. timestamp : Timestamp from system boot. [ms] (type:uint32_t)
  18328. rpm : Reported motor RPM from each ESC (negative for
  18329. reverse rotation). [rpm] (type:int32_t)
  18330. voltage : Voltage measured from each ESC. [V] (type:float)
  18331. current : Current measured from each ESC. [A] (type:float)
  18332. temperature : Temperature measured from each ESC. [degC] (type:int16_t)
  18333. status : Status data from each ESC. (type:uint32_t)
  18334. motor_temp : Motro temperature from each ESC. [degC] (type:int16_t)
  18335. cap_temp : Capacity temperature from each ESC. [degC] (type:int16_t)
  18336. status2 : Status2 data from each ESC. (type:uint32_t)
  18337. """
  18338. return MAVLink_vk_digi_esc_status_message(index, timestamp, rpm, voltage, current, temperature, status, motor_temp, cap_temp, status2)
  18339. def vk_digi_esc_status_send(self, index: int, timestamp: int, rpm: Sequence[int], voltage: Sequence[float], current: Sequence[float], temperature: Sequence[int], status: Sequence[int], motor_temp: Sequence[int] = (0, 0, 0, 0), cap_temp: Sequence[int] = (0, 0, 0, 0), status2: Sequence[int] = (0, 0, 0, 0), force_mavlink1: bool = False) -> None:
  18340. """
  18341. Mosaic_h gps raw data
  18342. index : Index of the first ESC in this message.
  18343. minValue = 0, maxValue = 60, increment = 4. (type:uint8_t)
  18344. timestamp : Timestamp from system boot. [ms] (type:uint32_t)
  18345. rpm : Reported motor RPM from each ESC (negative for
  18346. reverse rotation). [rpm] (type:int32_t)
  18347. voltage : Voltage measured from each ESC. [V] (type:float)
  18348. current : Current measured from each ESC. [A] (type:float)
  18349. temperature : Temperature measured from each ESC. [degC] (type:int16_t)
  18350. status : Status data from each ESC. (type:uint32_t)
  18351. motor_temp : Motro temperature from each ESC. [degC] (type:int16_t)
  18352. cap_temp : Capacity temperature from each ESC. [degC] (type:int16_t)
  18353. status2 : Status2 data from each ESC. (type:uint32_t)
  18354. """
  18355. self.send(self.vk_digi_esc_status_encode(index, timestamp, rpm, voltage, current, temperature, status, motor_temp, cap_temp, status2), force_mavlink1=force_mavlink1)
  18356. def vk_fixedwing_control_value_encode(self, timestamp: int, roll_value: float, pitch_value: float, throttle_value: float, yaw_value: float) -> MAVLink_vk_fixedwing_control_value_message:
  18357. """
  18358. Mosaic_h gps raw data
  18359. timestamp : Timestamp from system boot. [ms] (type:uint32_t)
  18360. roll_value : Roll control value,
  18361. negative value means roll left. (type:float)
  18362. pitch_value : Pitch control value,
  18363. negative value means pitch down. (type:float)
  18364. throttle_value : Throttle control
  18365. value, negative value means throttle off (type:float)
  18366. yaw_value : Throttle control
  18367. value, negative value means turn left (type:float)
  18368. """
  18369. return MAVLink_vk_fixedwing_control_value_message(timestamp, roll_value, pitch_value, throttle_value, yaw_value)
  18370. def vk_fixedwing_control_value_send(self, timestamp: int, roll_value: float, pitch_value: float, throttle_value: float, yaw_value: float, force_mavlink1: bool = False) -> None:
  18371. """
  18372. Mosaic_h gps raw data
  18373. timestamp : Timestamp from system boot. [ms] (type:uint32_t)
  18374. roll_value : Roll control value,
  18375. negative value means roll left. (type:float)
  18376. pitch_value : Pitch control value,
  18377. negative value means pitch down. (type:float)
  18378. throttle_value : Throttle control
  18379. value, negative value means throttle off (type:float)
  18380. yaw_value : Throttle control
  18381. value, negative value means turn left (type:float)
  18382. """
  18383. self.send(self.vk_fixedwing_control_value_encode(timestamp, roll_value, pitch_value, throttle_value, yaw_value), force_mavlink1=force_mavlink1)
  18384. def vk_fixedwing_servo_signal_encode(self, timestamp: int, servo_signal: Sequence[int]) -> MAVLink_vk_fixedwing_servo_signal_message:
  18385. """
  18386. Mosaic_h gps raw data
  18387. timestamp : Timestamp from system boot. [ms] (type:uint32_t)
  18388. servo_signal : Servo signal (type:uint16_t)
  18389. """
  18390. return MAVLink_vk_fixedwing_servo_signal_message(timestamp, servo_signal)
  18391. def vk_fixedwing_servo_signal_send(self, timestamp: int, servo_signal: Sequence[int], force_mavlink1: bool = False) -> None:
  18392. """
  18393. Mosaic_h gps raw data
  18394. timestamp : Timestamp from system boot. [ms] (type:uint32_t)
  18395. servo_signal : Servo signal (type:uint16_t)
  18396. """
  18397. self.send(self.vk_fixedwing_servo_signal_encode(timestamp, servo_signal), force_mavlink1=force_mavlink1)
  18398. def vk_fixedwing_rtl_circle_wp_encode(self, latitude: int, longitude: int, altitude: float, radius: float) -> MAVLink_vk_fixedwing_rtl_circle_wp_message:
  18399. """
  18400. latitude : Latitude in wgs84 [degE7] (type:int32_t)
  18401. longitude : Longitude in wgs84 [degE7] (type:int32_t)
  18402. altitude : Relativ altitude [m] (type:float)
  18403. radius : Radius in m, NAN means use default radius. [m] (type:float)
  18404. """
  18405. return MAVLink_vk_fixedwing_rtl_circle_wp_message(latitude, longitude, altitude, radius)
  18406. def vk_fixedwing_rtl_circle_wp_send(self, latitude: int, longitude: int, altitude: float, radius: float, force_mavlink1: bool = False) -> None:
  18407. """
  18408. latitude : Latitude in wgs84 [degE7] (type:int32_t)
  18409. longitude : Longitude in wgs84 [degE7] (type:int32_t)
  18410. altitude : Relativ altitude [m] (type:float)
  18411. radius : Radius in m, NAN means use default radius. [m] (type:float)
  18412. """
  18413. self.send(self.vk_fixedwing_rtl_circle_wp_encode(latitude, longitude, altitude, radius), force_mavlink1=force_mavlink1)
  18414. def vk_airspeed_encode(self, id: int, airspeed: float, temperature: int, raw_press: float, flags: int) -> MAVLink_vk_airspeed_message:
  18415. """
  18416. Airspeed information from a sensor.
  18417. id : Sensor ID. (type:uint8_t)
  18418. airspeed : Calibrated airspeed (CAS). [m/s] (type:float)
  18419. temperature : Temperature. [cdegC] (type:int16_t)
  18420. raw_press : Raw differential pressure. [hPa] (type:float)
  18421. flags : Airspeed sensor flags. (type:uint8_t)
  18422. """
  18423. return MAVLink_vk_airspeed_message(id, airspeed, temperature, raw_press, flags)
  18424. def vk_airspeed_send(self, id: int, airspeed: float, temperature: int, raw_press: float, flags: int, force_mavlink1: bool = False) -> None:
  18425. """
  18426. Airspeed information from a sensor.
  18427. id : Sensor ID. (type:uint8_t)
  18428. airspeed : Calibrated airspeed (CAS). [m/s] (type:float)
  18429. temperature : Temperature. [cdegC] (type:int16_t)
  18430. raw_press : Raw differential pressure. [hPa] (type:float)
  18431. flags : Airspeed sensor flags. (type:uint8_t)
  18432. """
  18433. self.send(self.vk_airspeed_encode(id, airspeed, temperature, raw_press, flags), force_mavlink1=force_mavlink1)
  18434. def vk_parachute_status_encode(self, timestamp: int, state: int, auto_launch: int, uav_cmd: int, err_code: int, backvolt: float) -> MAVLink_vk_parachute_status_message:
  18435. """
  18436. parachute status
  18437. timestamp : timestamp from system boot [ms] (type:uint32_t)
  18438. state : parachute state (type:uint8_t)
  18439. auto_launch : is auto launch enabled (type:uint8_t)
  18440. uav_cmd : uav command from parachute (type:uint8_t)
  18441. err_code : parachute error code (type:uint16_t)
  18442. backvolt : parachute backup voltage (type:float)
  18443. """
  18444. return MAVLink_vk_parachute_status_message(timestamp, state, auto_launch, uav_cmd, err_code, backvolt)
  18445. def vk_parachute_status_send(self, timestamp: int, state: int, auto_launch: int, uav_cmd: int, err_code: int, backvolt: float, force_mavlink1: bool = False) -> None:
  18446. """
  18447. parachute status
  18448. timestamp : timestamp from system boot [ms] (type:uint32_t)
  18449. state : parachute state (type:uint8_t)
  18450. auto_launch : is auto launch enabled (type:uint8_t)
  18451. uav_cmd : uav command from parachute (type:uint8_t)
  18452. err_code : parachute error code (type:uint16_t)
  18453. backvolt : parachute backup voltage (type:float)
  18454. """
  18455. self.send(self.vk_parachute_status_encode(timestamp, state, auto_launch, uav_cmd, err_code, backvolt), force_mavlink1=force_mavlink1)
  18456. def vk_weigher_state_encode(self, timestamp: int, weight: int, weight_d: int, work_state: int, err_code: int, attitude_Q: Sequence[float] = (0, 0, 0, 0), rope_length: float = 0, rope_vel: float = 0) -> MAVLink_vk_weigher_state_message:
  18457. """
  18458. Weigher state
  18459. timestamp : timestamp from system boot [ms] (type:uint32_t)
  18460. weight : weight in gram [g] (type:uint32_t)
  18461. weight_d : weight variant rate (type:uint16_t)
  18462. work_state : (type:uint8_t)
  18463. err_code : (type:uint8_t)
  18464. attitude_Q : (type:float)
  18465. rope_length : length in m, NAN means ignore (type:float)
  18466. rope_vel : velocity in m/s, NAN means ignore (type:float)
  18467. """
  18468. return MAVLink_vk_weigher_state_message(timestamp, weight, weight_d, work_state, err_code, attitude_Q, rope_length, rope_vel)
  18469. def vk_weigher_state_send(self, timestamp: int, weight: int, weight_d: int, work_state: int, err_code: int, attitude_Q: Sequence[float] = (0, 0, 0, 0), rope_length: float = 0, rope_vel: float = 0, force_mavlink1: bool = False) -> None:
  18470. """
  18471. Weigher state
  18472. timestamp : timestamp from system boot [ms] (type:uint32_t)
  18473. weight : weight in gram [g] (type:uint32_t)
  18474. weight_d : weight variant rate (type:uint16_t)
  18475. work_state : (type:uint8_t)
  18476. err_code : (type:uint8_t)
  18477. attitude_Q : (type:float)
  18478. rope_length : length in m, NAN means ignore (type:float)
  18479. rope_vel : velocity in m/s, NAN means ignore (type:float)
  18480. """
  18481. self.send(self.vk_weigher_state_encode(timestamp, weight, weight_d, work_state, err_code, attitude_Q, rope_length, rope_vel), force_mavlink1=force_mavlink1)
  18482. def vk_payload_data_relay_encode(self, payload_addr: int, reserve: int, data_len: int, data: Sequence[int]) -> MAVLink_vk_payload_data_relay_message:
  18483. """
  18484. VK payload message relay
  18485. payload_addr : payload address code (type:uint16_t)
  18486. reserve : reserve (type:uint8_t)
  18487. data_len : data field length in bytes (type:uint8_t)
  18488. data : data to relay (type:uint8_t)
  18489. """
  18490. return MAVLink_vk_payload_data_relay_message(payload_addr, reserve, data_len, data)
  18491. def vk_payload_data_relay_send(self, payload_addr: int, reserve: int, data_len: int, data: Sequence[int], force_mavlink1: bool = False) -> None:
  18492. """
  18493. VK payload message relay
  18494. payload_addr : payload address code (type:uint16_t)
  18495. reserve : reserve (type:uint8_t)
  18496. data_len : data field length in bytes (type:uint8_t)
  18497. data : data to relay (type:uint8_t)
  18498. """
  18499. self.send(self.vk_payload_data_relay_encode(payload_addr, reserve, data_len, data), force_mavlink1=force_mavlink1)
  18500. def vk_external_ins_nav_encode(self, timestamp: int, lon: int, lat: int, msl: float, ve: float, vn: float, vu: float, yaw: float, pitch: float, roll: float, gx: float, gy: float, gz: float, ax: float, ay: float, az: float, sat_lon: int, sat_lat: int, sat_msl: float, sat_ve: float, sat_vn: float, sat_vu: float, sat_pfix: int, sat_hfix: int, wk_state: int, err_code: int) -> MAVLink_vk_external_ins_nav_message:
  18501. """
  18502. VK external INS navigation
  18503. timestamp : timestamp from system boot [ms] (type:uint32_t)
  18504. lon : solved longitude [degE7] (type:int32_t)
  18505. lat : solved latitude [degE7] (type:int32_t)
  18506. msl : solved latitude [m] (type:float)
  18507. ve : solved east speed [m/s] (type:float)
  18508. vn : solved north speed [m/s] (type:float)
  18509. vu : solved up speed [m/s] (type:float)
  18510. yaw : yaw angle [deg] (type:float)
  18511. pitch : pitch angle [deg] (type:float)
  18512. roll : roll angle [deg] (type:float)
  18513. gx : roll angle [deg/s] (type:float)
  18514. gy : roll angle [deg/s] (type:float)
  18515. gz : roll angle [deg/s] (type:float)
  18516. ax : roll angle [m/s/s] (type:float)
  18517. ay : roll angle [m/s/s] (type:float)
  18518. az : roll angle [m/s/s] (type:float)
  18519. sat_lon : gps longitude [degE7] (type:int32_t)
  18520. sat_lat : gps latitude [degE7] (type:int32_t)
  18521. sat_msl : gps altitude [m] (type:float)
  18522. sat_ve : gps east speed [m/s] (type:float)
  18523. sat_vn : gps north speed [m/s] (type:float)
  18524. sat_vu : gps up speed [m/s] (type:float)
  18525. sat_pfix : gps position fix (type:uint8_t)
  18526. sat_hfix : gps heading fix (type:uint8_t)
  18527. wk_state : work state (type:uint8_t)
  18528. err_code : error code (type:uint8_t)
  18529. """
  18530. return MAVLink_vk_external_ins_nav_message(timestamp, lon, lat, msl, ve, vn, vu, yaw, pitch, roll, gx, gy, gz, ax, ay, az, sat_lon, sat_lat, sat_msl, sat_ve, sat_vn, sat_vu, sat_pfix, sat_hfix, wk_state, err_code)
  18531. def vk_external_ins_nav_send(self, timestamp: int, lon: int, lat: int, msl: float, ve: float, vn: float, vu: float, yaw: float, pitch: float, roll: float, gx: float, gy: float, gz: float, ax: float, ay: float, az: float, sat_lon: int, sat_lat: int, sat_msl: float, sat_ve: float, sat_vn: float, sat_vu: float, sat_pfix: int, sat_hfix: int, wk_state: int, err_code: int, force_mavlink1: bool = False) -> None:
  18532. """
  18533. VK external INS navigation
  18534. timestamp : timestamp from system boot [ms] (type:uint32_t)
  18535. lon : solved longitude [degE7] (type:int32_t)
  18536. lat : solved latitude [degE7] (type:int32_t)
  18537. msl : solved latitude [m] (type:float)
  18538. ve : solved east speed [m/s] (type:float)
  18539. vn : solved north speed [m/s] (type:float)
  18540. vu : solved up speed [m/s] (type:float)
  18541. yaw : yaw angle [deg] (type:float)
  18542. pitch : pitch angle [deg] (type:float)
  18543. roll : roll angle [deg] (type:float)
  18544. gx : roll angle [deg/s] (type:float)
  18545. gy : roll angle [deg/s] (type:float)
  18546. gz : roll angle [deg/s] (type:float)
  18547. ax : roll angle [m/s/s] (type:float)
  18548. ay : roll angle [m/s/s] (type:float)
  18549. az : roll angle [m/s/s] (type:float)
  18550. sat_lon : gps longitude [degE7] (type:int32_t)
  18551. sat_lat : gps latitude [degE7] (type:int32_t)
  18552. sat_msl : gps altitude [m] (type:float)
  18553. sat_ve : gps east speed [m/s] (type:float)
  18554. sat_vn : gps north speed [m/s] (type:float)
  18555. sat_vu : gps up speed [m/s] (type:float)
  18556. sat_pfix : gps position fix (type:uint8_t)
  18557. sat_hfix : gps heading fix (type:uint8_t)
  18558. wk_state : work state (type:uint8_t)
  18559. err_code : error code (type:uint8_t)
  18560. """
  18561. self.send(self.vk_external_ins_nav_encode(timestamp, lon, lat, msl, ve, vn, vu, yaw, pitch, roll, gx, gy, gz, ax, ay, az, sat_lon, sat_lat, sat_msl, sat_ve, sat_vn, sat_vu, sat_pfix, sat_hfix, wk_state, err_code), force_mavlink1=force_mavlink1)
  18562. def vk_rtk_base_pvt_encode(self, timestamp: int, lon: int, lat: int, msl: float, ve: float, vn: float, vu: float, heading: float, pitch: float, p_sat_num: int, h_sat_num: int, p_type: int, h_type: int) -> MAVLink_vk_rtk_base_pvt_message:
  18563. """
  18564. RTK basestaion pvt
  18565. timestamp : timestamp from system boot [ms] (type:uint32_t)
  18566. lon : solved longitude [degE7] (type:int32_t)
  18567. lat : solved latitude [degE7] (type:int32_t)
  18568. msl : solved latitude [m] (type:float)
  18569. ve : solved east speed [m/s] (type:float)
  18570. vn : solved north speed [m/s] (type:float)
  18571. vu : solved up speed [m/s] (type:float)
  18572. heading : yaw angle [deg] (type:float)
  18573. pitch : pitch angle [deg] (type:float)
  18574. p_sat_num : position satellite number (type:uint8_t)
  18575. h_sat_num : heading satellite number (type:uint8_t)
  18576. p_type : heading satellite number (type:uint8_t)
  18577. h_type : heading satellite number (type:uint8_t)
  18578. """
  18579. return MAVLink_vk_rtk_base_pvt_message(timestamp, lon, lat, msl, ve, vn, vu, heading, pitch, p_sat_num, h_sat_num, p_type, h_type)
  18580. def vk_rtk_base_pvt_send(self, timestamp: int, lon: int, lat: int, msl: float, ve: float, vn: float, vu: float, heading: float, pitch: float, p_sat_num: int, h_sat_num: int, p_type: int, h_type: int, force_mavlink1: bool = False) -> None:
  18581. """
  18582. RTK basestaion pvt
  18583. timestamp : timestamp from system boot [ms] (type:uint32_t)
  18584. lon : solved longitude [degE7] (type:int32_t)
  18585. lat : solved latitude [degE7] (type:int32_t)
  18586. msl : solved latitude [m] (type:float)
  18587. ve : solved east speed [m/s] (type:float)
  18588. vn : solved north speed [m/s] (type:float)
  18589. vu : solved up speed [m/s] (type:float)
  18590. heading : yaw angle [deg] (type:float)
  18591. pitch : pitch angle [deg] (type:float)
  18592. p_sat_num : position satellite number (type:uint8_t)
  18593. h_sat_num : heading satellite number (type:uint8_t)
  18594. p_type : heading satellite number (type:uint8_t)
  18595. h_type : heading satellite number (type:uint8_t)
  18596. """
  18597. self.send(self.vk_rtk_base_pvt_encode(timestamp, lon, lat, msl, ve, vn, vu, heading, pitch, p_sat_num, h_sat_num, p_type, h_type), force_mavlink1=force_mavlink1)
  18598. def vkfly_edu_status_encode(self, unix_timestamp: int, boot_timestamp: int, seq: int, dev_sn: int, dev_type: int, retry_cnt: int, fix_type: int, reserve: int, longitude: int, latitude: int, amsl: float, alt_relative: float, ve: int, vn: int, vu: int, yaw: int, pitch: int, roll: int, yaw_rate: int, flight_mode: int) -> MAVLink_vkfly_edu_status_message:
  18599. """
  18600. EDU status
  18601. unix_timestamp : Unix timestamp in ms, from 1 Jan 1970. [ms] (type:uint64_t)
  18602. boot_timestamp : Timestamp in ms from system boot. [ms] (type:uint32_t)
  18603. seq : Sequence number for this package. (type:uint32_t)
  18604. dev_sn : Device SN number. (type:uint32_t)
  18605. dev_type : 0 for flight controller. 1 for elec-stake (type:uint8_t)
  18606. retry_cnt : Retry send this message count. (type:uint8_t)
  18607. fix_type : 0 no fix, 1 single, 2 RTK (type:uint8_t)
  18608. reserve : (type:uint8_t)
  18609. longitude : wgs84 longitude [degE7] (type:int32_t)
  18610. latitude : wgs84 latitude [degE7] (type:int32_t)
  18611. amsl : altitude amsl [m] (type:float)
  18612. alt_relative : altitude above takeoff [m] (type:float)
  18613. ve : [cm/s] (type:int16_t)
  18614. vn : [cm/s] (type:int16_t)
  18615. vu : [cm/s] (type:int16_t)
  18616. yaw : [cdeg] (type:int16_t)
  18617. pitch : [cdeg] (type:int16_t)
  18618. roll : [cdeg] (type:int16_t)
  18619. yaw_rate : [cdeg/s] (type:int16_t)
  18620. flight_mode : (type:uint8_t)
  18621. """
  18622. return MAVLink_vkfly_edu_status_message(unix_timestamp, boot_timestamp, seq, dev_sn, dev_type, retry_cnt, fix_type, reserve, longitude, latitude, amsl, alt_relative, ve, vn, vu, yaw, pitch, roll, yaw_rate, flight_mode)
  18623. def vkfly_edu_status_send(self, unix_timestamp: int, boot_timestamp: int, seq: int, dev_sn: int, dev_type: int, retry_cnt: int, fix_type: int, reserve: int, longitude: int, latitude: int, amsl: float, alt_relative: float, ve: int, vn: int, vu: int, yaw: int, pitch: int, roll: int, yaw_rate: int, flight_mode: int, force_mavlink1: bool = False) -> None:
  18624. """
  18625. EDU status
  18626. unix_timestamp : Unix timestamp in ms, from 1 Jan 1970. [ms] (type:uint64_t)
  18627. boot_timestamp : Timestamp in ms from system boot. [ms] (type:uint32_t)
  18628. seq : Sequence number for this package. (type:uint32_t)
  18629. dev_sn : Device SN number. (type:uint32_t)
  18630. dev_type : 0 for flight controller. 1 for elec-stake (type:uint8_t)
  18631. retry_cnt : Retry send this message count. (type:uint8_t)
  18632. fix_type : 0 no fix, 1 single, 2 RTK (type:uint8_t)
  18633. reserve : (type:uint8_t)
  18634. longitude : wgs84 longitude [degE7] (type:int32_t)
  18635. latitude : wgs84 latitude [degE7] (type:int32_t)
  18636. amsl : altitude amsl [m] (type:float)
  18637. alt_relative : altitude above takeoff [m] (type:float)
  18638. ve : [cm/s] (type:int16_t)
  18639. vn : [cm/s] (type:int16_t)
  18640. vu : [cm/s] (type:int16_t)
  18641. yaw : [cdeg] (type:int16_t)
  18642. pitch : [cdeg] (type:int16_t)
  18643. roll : [cdeg] (type:int16_t)
  18644. yaw_rate : [cdeg/s] (type:int16_t)
  18645. flight_mode : (type:uint8_t)
  18646. """
  18647. self.send(self.vkfly_edu_status_encode(unix_timestamp, boot_timestamp, seq, dev_sn, dev_type, retry_cnt, fix_type, reserve, longitude, latitude, amsl, alt_relative, ve, vn, vu, yaw, pitch, roll, yaw_rate, flight_mode), force_mavlink1=force_mavlink1)
  18648. def vkfly_edu_status_ack_encode(self, unix_timestamp: int, seq: int) -> MAVLink_vkfly_edu_status_ack_message:
  18649. """
  18650. EDU status ack
  18651. unix_timestamp : Unix timestamp in ms, from 1 Jan 1970. [ms] (type:uint64_t)
  18652. seq : Sequence number in the received VKFLY_EDU_STATUS. (type:uint32_t)
  18653. """
  18654. return MAVLink_vkfly_edu_status_ack_message(unix_timestamp, seq)
  18655. def vkfly_edu_status_ack_send(self, unix_timestamp: int, seq: int, force_mavlink1: bool = False) -> None:
  18656. """
  18657. EDU status ack
  18658. unix_timestamp : Unix timestamp in ms, from 1 Jan 1970. [ms] (type:uint64_t)
  18659. seq : Sequence number in the received VKFLY_EDU_STATUS. (type:uint32_t)
  18660. """
  18661. self.send(self.vkfly_edu_status_ack_encode(unix_timestamp, seq), force_mavlink1=force_mavlink1)
  18662. def vkfly_tianqu_servo_status_encode(self, timestamp: int, load_status: int, servo_status: int) -> MAVLink_vkfly_tianqu_servo_status_message:
  18663. """
  18664. TianQu servo status
  18665. timestamp : (type:uint32_t)
  18666. load_status : (type:uint32_t)
  18667. servo_status : (type:uint32_t)
  18668. """
  18669. return MAVLink_vkfly_tianqu_servo_status_message(timestamp, load_status, servo_status)
  18670. def vkfly_tianqu_servo_status_send(self, timestamp: int, load_status: int, servo_status: int, force_mavlink1: bool = False) -> None:
  18671. """
  18672. TianQu servo status
  18673. timestamp : (type:uint32_t)
  18674. load_status : (type:uint32_t)
  18675. servo_status : (type:uint32_t)
  18676. """
  18677. self.send(self.vkfly_tianqu_servo_status_encode(timestamp, load_status, servo_status), force_mavlink1=force_mavlink1)
  18678. def vk_adc_ext_status_encode(self, time_boot_ms: int, type: int, valid: int, raw_voltage: float, voltage_ratio: float, voltage: float, current: float, fuel_percent: float, fuel_low1: int, fuel_low2: int) -> MAVLink_vk_adc_ext_status_message:
  18679. """
  18680. External ADC interpreted status.
  18681. time_boot_ms : Timestamp in ms from system boot. [ms] (type:uint32_t)
  18682. type : 0:disable, 1:voltage, 2:current, 3:fuel (type:uint8_t)
  18683. valid : 0:invalid, 1:valid (type:uint8_t)
  18684. raw_voltage : Calibrated ADC_EX voltage. [V] (type:float)
  18685. voltage_ratio : ADC_EXT_V_DIV ratio applied to raw_voltage. (type:float)
  18686. voltage : Voltage mode value. [V] (type:float)
  18687. current : Current mode value. [A] (type:float)
  18688. fuel_percent : Fuel mode value. [%] (type:float)
  18689. fuel_low1 : 0:normal, 1:below ADC_EXT_FUEL_LOW1 (type:uint8_t)
  18690. fuel_low2 : 0:normal, 1:below ADC_EXT_FUEL_LOW2 (type:uint8_t)
  18691. """
  18692. return MAVLink_vk_adc_ext_status_message(time_boot_ms, type, valid, raw_voltage, voltage_ratio, voltage, current, fuel_percent, fuel_low1, fuel_low2)
  18693. def vk_adc_ext_status_send(self, time_boot_ms: int, type: int, valid: int, raw_voltage: float, voltage_ratio: float, voltage: float, current: float, fuel_percent: float, fuel_low1: int, fuel_low2: int, force_mavlink1: bool = False) -> None:
  18694. """
  18695. External ADC interpreted status.
  18696. time_boot_ms : Timestamp in ms from system boot. [ms] (type:uint32_t)
  18697. type : 0:disable, 1:voltage, 2:current, 3:fuel (type:uint8_t)
  18698. valid : 0:invalid, 1:valid (type:uint8_t)
  18699. raw_voltage : Calibrated ADC_EX voltage. [V] (type:float)
  18700. voltage_ratio : ADC_EXT_V_DIV ratio applied to raw_voltage. (type:float)
  18701. voltage : Voltage mode value. [V] (type:float)
  18702. current : Current mode value. [A] (type:float)
  18703. fuel_percent : Fuel mode value. [%] (type:float)
  18704. fuel_low1 : 0:normal, 1:below ADC_EXT_FUEL_LOW1 (type:uint8_t)
  18705. fuel_low2 : 0:normal, 1:below ADC_EXT_FUEL_LOW2 (type:uint8_t)
  18706. """
  18707. self.send(self.vk_adc_ext_status_encode(time_boot_ms, type, valid, raw_voltage, voltage_ratio, voltage, current, fuel_percent, fuel_low1, fuel_low2), force_mavlink1=force_mavlink1)
  18708. def vk_obstacle_distance_encode(self, source_sequence: int, source_age_ms: float, distances: Sequence[int], min_distance_cm: int, max_distance_cm: int, fragment_index: int, status: int, gravity_projected_body_z: Sequence[int]) -> MAVLink_vk_obstacle_distance_message:
  18709. """
  18710. Two fragments form one 72-bin scan, clockwise from heading in 5 degree
  18711. sectors. Incompatible with the former unfragmented layout.
  18712. Each bin reports the nearest obstacle in its sector.
  18713. source_sequence : Sequence number of the source data. (type:uint64_t)
  18714. source_age_ms : Age of the source data. [ms] (type:float)
  18715. distances : Horizontal distances: 0 contact, up to max_distance_cm obstacle, max_distance_cm+1 clear to range, UINT16_MAX unknown. [cm] (type:uint16_t)
  18716. min_distance_cm : Minimum measurable distance. [cm] (type:uint16_t)
  18717. max_distance_cm : Maximum measurable distance. [cm] (type:uint16_t)
  18718. fragment_index : 0: bins 0-35; 1: bins 36-71. Both fragments share a source_sequence. (type:uint8_t)
  18719. status : 0: healthy; nonzero: invalid source. (type:uint8_t)
  18720. gravity_projected_body_z : Vertical obstacle displacement, down positive; INT16_MAX unknown. [cm] (type:int16_t)
  18721. """
  18722. return MAVLink_vk_obstacle_distance_message(source_sequence, source_age_ms, distances, min_distance_cm, max_distance_cm, fragment_index, status, gravity_projected_body_z)
  18723. def vk_obstacle_distance_send(self, source_sequence: int, source_age_ms: float, distances: Sequence[int], min_distance_cm: int, max_distance_cm: int, fragment_index: int, status: int, gravity_projected_body_z: Sequence[int], force_mavlink1: bool = False) -> None:
  18724. """
  18725. Two fragments form one 72-bin scan, clockwise from heading in 5 degree
  18726. sectors. Incompatible with the former unfragmented layout.
  18727. Each bin reports the nearest obstacle in its sector.
  18728. source_sequence : Sequence number of the source data. (type:uint64_t)
  18729. source_age_ms : Age of the source data. [ms] (type:float)
  18730. distances : Horizontal distances: 0 contact, up to max_distance_cm obstacle, max_distance_cm+1 clear to range, UINT16_MAX unknown. [cm] (type:uint16_t)
  18731. min_distance_cm : Minimum measurable distance. [cm] (type:uint16_t)
  18732. max_distance_cm : Maximum measurable distance. [cm] (type:uint16_t)
  18733. fragment_index : 0: bins 0-35; 1: bins 36-71. Both fragments share a source_sequence. (type:uint8_t)
  18734. status : 0: healthy; nonzero: invalid source. (type:uint8_t)
  18735. gravity_projected_body_z : Vertical obstacle displacement, down positive; INT16_MAX unknown. [cm] (type:int16_t)
  18736. """
  18737. self.send(self.vk_obstacle_distance_encode(source_sequence, source_age_ms, distances, min_distance_cm, max_distance_cm, fragment_index, status, gravity_projected_body_z), force_mavlink1=force_mavlink1)
  18738. def vk_fw_update_begin_encode(self, target_system: int, target_comp: int, file_size: int) -> MAVLink_vk_fw_update_begin_message:
  18739. """
  18740. VKFLY autopilot update firmware begin. This message send from GCS to
  18741. autopilot.
  18742. target_system : Target system id. (type:uint8_t)
  18743. target_comp : Target compid id. (type:uint8_t)
  18744. file_size : Size of the firmware file in bytes. [bytes] (type:uint32_t)
  18745. """
  18746. return MAVLink_vk_fw_update_begin_message(target_system, target_comp, file_size)
  18747. def vk_fw_update_begin_send(self, target_system: int, target_comp: int, file_size: int, force_mavlink1: bool = False) -> None:
  18748. """
  18749. VKFLY autopilot update firmware begin. This message send from GCS to
  18750. autopilot.
  18751. target_system : Target system id. (type:uint8_t)
  18752. target_comp : Target compid id. (type:uint8_t)
  18753. file_size : Size of the firmware file in bytes. [bytes] (type:uint32_t)
  18754. """
  18755. self.send(self.vk_fw_update_begin_encode(target_system, target_comp, file_size), force_mavlink1=force_mavlink1)
  18756. def vk_fw_update_ack_encode(self, result: int) -> MAVLink_vk_fw_update_ack_message:
  18757. """
  18758. VKFLY udpate acknowledge.
  18759. result : Update begin ack. (type:uint8_t, values:MAV_RESULT)
  18760. """
  18761. return MAVLink_vk_fw_update_ack_message(result)
  18762. def vk_fw_update_ack_send(self, result: int, force_mavlink1: bool = False) -> None:
  18763. """
  18764. VKFLY udpate acknowledge.
  18765. result : Update begin ack. (type:uint8_t, values:MAV_RESULT)
  18766. """
  18767. self.send(self.vk_fw_update_ack_encode(result), force_mavlink1=force_mavlink1)
  18768. def vk_fw_update_data_request_encode(self, offset: int, count: int) -> MAVLink_vk_fw_update_data_request_message:
  18769. """
  18770. VKFLY autopilot request update file data from GCS.
  18771. offset : Offset into the update file. (type:uint32_t)
  18772. count : Number of bytes. (type:uint32_t)
  18773. """
  18774. return MAVLink_vk_fw_update_data_request_message(offset, count)
  18775. def vk_fw_update_data_request_send(self, offset: int, count: int, force_mavlink1: bool = False) -> None:
  18776. """
  18777. VKFLY autopilot request update file data from GCS.
  18778. offset : Offset into the update file. (type:uint32_t)
  18779. count : Number of bytes. (type:uint32_t)
  18780. """
  18781. self.send(self.vk_fw_update_data_request_encode(offset, count), force_mavlink1=force_mavlink1)
  18782. def vk_fw_update_data_encode(self, offset: int, count: int, data: Sequence[int]) -> MAVLink_vk_fw_update_data_message:
  18783. """
  18784. VKFLY transfer update file data.
  18785. offset : Offset into the update file. (type:uint32_t)
  18786. count : Number of bytes.
  18787. Zero for end of file. (type:uint8_t)
  18788. data : File data. (type:uint8_t)
  18789. """
  18790. return MAVLink_vk_fw_update_data_message(offset, count, data)
  18791. def vk_fw_update_data_send(self, offset: int, count: int, data: Sequence[int], force_mavlink1: bool = False) -> None:
  18792. """
  18793. VKFLY transfer update file data.
  18794. offset : Offset into the update file. (type:uint32_t)
  18795. count : Number of bytes.
  18796. Zero for end of file. (type:uint8_t)
  18797. data : File data. (type:uint8_t)
  18798. """
  18799. self.send(self.vk_fw_update_data_encode(offset, count, data), force_mavlink1=force_mavlink1)
  18800. def vk_update_terminate_encode(self, target_system: int, target_comp: int) -> MAVLink_vk_update_terminate_message:
  18801. """
  18802. VKFLY transfer update terminate. Send this message to terminate a
  18803. update file transfer.
  18804. target_system : Target system id. (type:uint8_t)
  18805. target_comp : Target compid id. (type:uint8_t)
  18806. """
  18807. return MAVLink_vk_update_terminate_message(target_system, target_comp)
  18808. def vk_update_terminate_send(self, target_system: int, target_comp: int, force_mavlink1: bool = False) -> None:
  18809. """
  18810. VKFLY transfer update terminate. Send this message to terminate a
  18811. update file transfer.
  18812. target_system : Target system id. (type:uint8_t)
  18813. target_comp : Target compid id. (type:uint8_t)
  18814. """
  18815. self.send(self.vk_update_terminate_encode(target_system, target_comp), force_mavlink1=force_mavlink1)
  18816. def vk_cacc_manager_verify_encode(self, len: int, json_data: Sequence[int]) -> MAVLink_vk_cacc_manager_verify_message:
  18817. """
  18818. CACC manager verify message, in json format.
  18819. len : json data length in byte. (type:uint8_t)
  18820. json_data : json data. (type:uint8_t)
  18821. """
  18822. return MAVLink_vk_cacc_manager_verify_message(len, json_data)
  18823. def vk_cacc_manager_verify_send(self, len: int, json_data: Sequence[int], force_mavlink1: bool = False) -> None:
  18824. """
  18825. CACC manager verify message, in json format.
  18826. len : json data length in byte. (type:uint8_t)
  18827. json_data : json data. (type:uint8_t)
  18828. """
  18829. self.send(self.vk_cacc_manager_verify_encode(len, json_data), force_mavlink1=force_mavlink1)
  18830. def vk_ext_vision_fusion_encode(self, timestamp: int, pos_frd: Sequence[float], vel_frd: Sequence[float], Q_g: Sequence[float], lat: int, lon: int, alt_amsl: float, hR: float, vel_ned: Sequence[float], bias_acc: Sequence[float], bias_gyr: Sequence[float], cov_att: Sequence[float], cov_pos: Sequence[float], cov_vel: Sequence[float], unhealthy: int, flag: int, reset_cnt: int) -> MAVLink_vk_ext_vision_fusion_message:
  18831. """
  18832. external vision fusion data
  18833. timestamp : timestamp from system boot [ms] (type:uint32_t)
  18834. pos_frd : position in vision frd frame [m] (type:float)
  18835. vel_frd : velocity in vision frd frame [m/s] (type:float)
  18836. Q_g : attitude quaternion by FRD_NED (type:float)
  18837. lat : latitidue (type:int32_t)
  18838. lon : longitude (type:int32_t)
  18839. alt_amsl : amsl latitidue (type:float)
  18840. hR : relative altitude (type:float)
  18841. vel_ned : velocity in NED frame [m/s] (type:float)
  18842. bias_acc : acceleration bias in body XYZ [m/s/s] (type:float)
  18843. bias_gyr : gyroscope bias in body XYZ [rad/s] (type:float)
  18844. cov_att : attitude covariance [rad] (type:float)
  18845. cov_pos : position covariance [m] (type:float)
  18846. cov_vel : [m/s] (type:float)
  18847. unhealthy : unhealthy flag (type:uint8_t)
  18848. flag : work status flag (type:uint8_t)
  18849. reset_cnt : reset count (type:uint8_t)
  18850. """
  18851. return MAVLink_vk_ext_vision_fusion_message(timestamp, pos_frd, vel_frd, Q_g, lat, lon, alt_amsl, hR, vel_ned, bias_acc, bias_gyr, cov_att, cov_pos, cov_vel, unhealthy, flag, reset_cnt)
  18852. def vk_ext_vision_fusion_send(self, timestamp: int, pos_frd: Sequence[float], vel_frd: Sequence[float], Q_g: Sequence[float], lat: int, lon: int, alt_amsl: float, hR: float, vel_ned: Sequence[float], bias_acc: Sequence[float], bias_gyr: Sequence[float], cov_att: Sequence[float], cov_pos: Sequence[float], cov_vel: Sequence[float], unhealthy: int, flag: int, reset_cnt: int, force_mavlink1: bool = False) -> None:
  18853. """
  18854. external vision fusion data
  18855. timestamp : timestamp from system boot [ms] (type:uint32_t)
  18856. pos_frd : position in vision frd frame [m] (type:float)
  18857. vel_frd : velocity in vision frd frame [m/s] (type:float)
  18858. Q_g : attitude quaternion by FRD_NED (type:float)
  18859. lat : latitidue (type:int32_t)
  18860. lon : longitude (type:int32_t)
  18861. alt_amsl : amsl latitidue (type:float)
  18862. hR : relative altitude (type:float)
  18863. vel_ned : velocity in NED frame [m/s] (type:float)
  18864. bias_acc : acceleration bias in body XYZ [m/s/s] (type:float)
  18865. bias_gyr : gyroscope bias in body XYZ [rad/s] (type:float)
  18866. cov_att : attitude covariance [rad] (type:float)
  18867. cov_pos : position covariance [m] (type:float)
  18868. cov_vel : [m/s] (type:float)
  18869. unhealthy : unhealthy flag (type:uint8_t)
  18870. flag : work status flag (type:uint8_t)
  18871. reset_cnt : reset count (type:uint8_t)
  18872. """
  18873. self.send(self.vk_ext_vision_fusion_encode(timestamp, pos_frd, vel_frd, Q_g, lat, lon, alt_amsl, hR, vel_ned, bias_acc, bias_gyr, cov_att, cov_pos, cov_vel, unhealthy, flag, reset_cnt), force_mavlink1=force_mavlink1)
  18874. def kmub_status_encode(self, timestamp: int, roll: float, pitch: float, yaw: float, vn: float, ve: float, vd: float, ax: float, ay: float, az: float, gx: float, gy: float, gz: float, lat: int, lon: int, amsl: float, ins_status: int, ins_flag: int, throttle: int, flight_mode: int, btake_status: int) -> MAVLink_kmub_status_message:
  18875. """
  18876. EV2 FMU backup status.
  18877. timestamp : timestamp from systemboot in ms. [ms] (type:uint32_t)
  18878. roll : euler roll angle. [rad] (type:float)
  18879. pitch : euler pitch angle. [rad] (type:float)
  18880. yaw : euler yaw angle. [rad] (type:float)
  18881. vn : velocity in northward axis. [m/s] (type:float)
  18882. ve : velocity in eastward axis. [m/s] (type:float)
  18883. vd : velocity in downward axis. [m/s] (type:float)
  18884. ax : acceleration in x axis. [m/s/s] (type:float)
  18885. ay : acceleration in y axis. [m/s/s] (type:float)
  18886. az : acceleration in z axis. [m/s/s] (type:float)
  18887. gx : angular velocity in x axis. [rad/s] (type:float)
  18888. gy : angular velocity in y axis. [rad/s] (type:float)
  18889. gz : angular velocity in z axis. [rad/s] (type:float)
  18890. lat : latitude. [degE7] (type:int32_t)
  18891. lon : longitude. [degE7] (type:int32_t)
  18892. amsl : altitude above mean sea level. [m] (type:float)
  18893. ins_status : (type:int32_t)
  18894. ins_flag : (type:int32_t)
  18895. throttle : throttle
  18896. output. (type:uint16_t)
  18897. flight_mode : flight mode. (type:uint8_t)
  18898. btake_status : backup
  18899. takeover
  18900. status. (type:uint8_t)
  18901. """
  18902. return MAVLink_kmub_status_message(timestamp, roll, pitch, yaw, vn, ve, vd, ax, ay, az, gx, gy, gz, lat, lon, amsl, ins_status, ins_flag, throttle, flight_mode, btake_status)
  18903. def kmub_status_send(self, timestamp: int, roll: float, pitch: float, yaw: float, vn: float, ve: float, vd: float, ax: float, ay: float, az: float, gx: float, gy: float, gz: float, lat: int, lon: int, amsl: float, ins_status: int, ins_flag: int, throttle: int, flight_mode: int, btake_status: int, force_mavlink1: bool = False) -> None:
  18904. """
  18905. EV2 FMU backup status.
  18906. timestamp : timestamp from systemboot in ms. [ms] (type:uint32_t)
  18907. roll : euler roll angle. [rad] (type:float)
  18908. pitch : euler pitch angle. [rad] (type:float)
  18909. yaw : euler yaw angle. [rad] (type:float)
  18910. vn : velocity in northward axis. [m/s] (type:float)
  18911. ve : velocity in eastward axis. [m/s] (type:float)
  18912. vd : velocity in downward axis. [m/s] (type:float)
  18913. ax : acceleration in x axis. [m/s/s] (type:float)
  18914. ay : acceleration in y axis. [m/s/s] (type:float)
  18915. az : acceleration in z axis. [m/s/s] (type:float)
  18916. gx : angular velocity in x axis. [rad/s] (type:float)
  18917. gy : angular velocity in y axis. [rad/s] (type:float)
  18918. gz : angular velocity in z axis. [rad/s] (type:float)
  18919. lat : latitude. [degE7] (type:int32_t)
  18920. lon : longitude. [degE7] (type:int32_t)
  18921. amsl : altitude above mean sea level. [m] (type:float)
  18922. ins_status : (type:int32_t)
  18923. ins_flag : (type:int32_t)
  18924. throttle : throttle
  18925. output. (type:uint16_t)
  18926. flight_mode : flight mode. (type:uint8_t)
  18927. btake_status : backup
  18928. takeover
  18929. status. (type:uint8_t)
  18930. """
  18931. self.send(self.kmub_status_encode(timestamp, roll, pitch, yaw, vn, ve, vd, ax, ay, az, gx, gy, gz, lat, lon, amsl, ins_status, ins_flag, throttle, flight_mode, btake_status), force_mavlink1=force_mavlink1)
  18932. def qingxie_bms_encode(self, bat_voltage: int, servo_current: int, stack_voltage: int, servo_voltage: int, bat_refuel_current: int, gas_tank_pressure: int, pipe_pressure: int, pcb_temp: int, stack_temp: int, work_status: int, falt_status: int, self_check: int, Id: int, gass_mass: int = 0, gass_percent: int = 0, runtime_remain: int = 0, fan_percent: int = 0, fan_rpm: int = 0, sys_run_state: int = 0, sys_fault_state: int = 0, sys_fault_code: int = 0, lipo_current: int = 0, total_runtime: int = 0) -> MAVLink_qingxie_bms_message:
  18933. """
  18934. VKFLY transfer update terminate. Send this message to terminate a
  18935. update file transfer.
  18936. bat_voltage : Battery voltage. [cV] (type:uint16_t)
  18937. servo_current : Servo current. [cA] (type:uint16_t)
  18938. stack_voltage : Stack voltage. [cV] (type:uint16_t)
  18939. servo_voltage : Servo voltage. [cV] (type:uint16_t)
  18940. bat_refuel_current : Battery refuel current. [cA] (type:uint16_t)
  18941. gas_tank_pressure : Gas tank pressure. (type:uint16_t)
  18942. pipe_pressure : Pipe pressure. (type:uint16_t)
  18943. pcb_temp : PCB temperature. (type:uint16_t)
  18944. stack_temp : Stack temperature. (type:uint16_t)
  18945. work_status : (type:uint16_t)
  18946. falt_status : (type:uint16_t)
  18947. self_check : (type:uint8_t)
  18948. Id : (type:uint8_t)
  18949. gass_mass : [dg] (type:uint16_t)
  18950. gass_percent : [%] (type:uint16_t)
  18951. runtime_remain : (type:uint16_t)
  18952. fan_percent : (type:uint8_t)
  18953. fan_rpm : (type:uint8_t)
  18954. sys_run_state : (type:uint8_t)
  18955. sys_fault_state : (type:uint8_t)
  18956. sys_fault_code : (type:uint16_t)
  18957. lipo_current : [dA] (type:uint16_t)
  18958. total_runtime : [dh] (type:uint16_t)
  18959. """
  18960. return MAVLink_qingxie_bms_message(bat_voltage, servo_current, stack_voltage, servo_voltage, bat_refuel_current, gas_tank_pressure, pipe_pressure, pcb_temp, stack_temp, work_status, falt_status, self_check, Id, gass_mass, gass_percent, runtime_remain, fan_percent, fan_rpm, sys_run_state, sys_fault_state, sys_fault_code, lipo_current, total_runtime)
  18961. def qingxie_bms_send(self, bat_voltage: int, servo_current: int, stack_voltage: int, servo_voltage: int, bat_refuel_current: int, gas_tank_pressure: int, pipe_pressure: int, pcb_temp: int, stack_temp: int, work_status: int, falt_status: int, self_check: int, Id: int, gass_mass: int = 0, gass_percent: int = 0, runtime_remain: int = 0, fan_percent: int = 0, fan_rpm: int = 0, sys_run_state: int = 0, sys_fault_state: int = 0, sys_fault_code: int = 0, lipo_current: int = 0, total_runtime: int = 0, force_mavlink1: bool = False) -> None:
  18962. """
  18963. VKFLY transfer update terminate. Send this message to terminate a
  18964. update file transfer.
  18965. bat_voltage : Battery voltage. [cV] (type:uint16_t)
  18966. servo_current : Servo current. [cA] (type:uint16_t)
  18967. stack_voltage : Stack voltage. [cV] (type:uint16_t)
  18968. servo_voltage : Servo voltage. [cV] (type:uint16_t)
  18969. bat_refuel_current : Battery refuel current. [cA] (type:uint16_t)
  18970. gas_tank_pressure : Gas tank pressure. (type:uint16_t)
  18971. pipe_pressure : Pipe pressure. (type:uint16_t)
  18972. pcb_temp : PCB temperature. (type:uint16_t)
  18973. stack_temp : Stack temperature. (type:uint16_t)
  18974. work_status : (type:uint16_t)
  18975. falt_status : (type:uint16_t)
  18976. self_check : (type:uint8_t)
  18977. Id : (type:uint8_t)
  18978. gass_mass : [dg] (type:uint16_t)
  18979. gass_percent : [%] (type:uint16_t)
  18980. runtime_remain : (type:uint16_t)
  18981. fan_percent : (type:uint8_t)
  18982. fan_rpm : (type:uint8_t)
  18983. sys_run_state : (type:uint8_t)
  18984. sys_fault_state : (type:uint8_t)
  18985. sys_fault_code : (type:uint16_t)
  18986. lipo_current : [dA] (type:uint16_t)
  18987. total_runtime : [dh] (type:uint16_t)
  18988. """
  18989. self.send(self.qingxie_bms_encode(bat_voltage, servo_current, stack_voltage, servo_voltage, bat_refuel_current, gas_tank_pressure, pipe_pressure, pcb_temp, stack_temp, work_status, falt_status, self_check, Id, gass_mass, gass_percent, runtime_remain, fan_percent, fan_rpm, sys_run_state, sys_fault_state, sys_fault_code, lipo_current, total_runtime), force_mavlink1=force_mavlink1)
  18990. def sys_status_encode(self, onboard_control_sensors_present: int, onboard_control_sensors_enabled: int, onboard_control_sensors_health: int, load: int, voltage_battery: int, current_battery: int, battery_remaining: int, drop_rate_comm: int, errors_comm: int, errors_count1: int, errors_count2: int, errors_count3: int, errors_count4: int, onboard_control_sensors_present_extended: int = 0, onboard_control_sensors_enabled_extended: int = 0, onboard_control_sensors_health_extended: int = 0) -> MAVLink_sys_status_message:
  18991. """
  18992. The general system state. If the system is following the MAVLink
  18993. standard, the system state is mainly defined by three
  18994. orthogonal states/modes: The system mode, which is either
  18995. LOCKED (motors shut down and locked), MANUAL (system under RC
  18996. control), GUIDED (system with autonomous position control,
  18997. position setpoint controlled manually) or AUTO (system guided
  18998. by path/waypoint planner). The NAV_MODE defined the current
  18999. flight state: LIFTOFF (often an open-loop maneuver), LANDING,
  19000. WAYPOINTS or VECTOR. This represents the internal navigation
  19001. state machine. The system status shows whether the system is
  19002. currently active or not and if an emergency occurred. During
  19003. the CRITICAL and EMERGENCY states the MAV is still considered
  19004. to be active, but should start emergency procedures
  19005. autonomously. After a failure occurred it should first move
  19006. from active to critical to allow manual intervention and then
  19007. move to emergency after a certain timeout.
  19008. onboard_control_sensors_present : Bitmap showing which onboard controllers and sensors are present. Value of 0: not present. Value of 1: present. (type:uint32_t, values:MAV_SYS_STATUS_SENSOR)
  19009. onboard_control_sensors_enabled : Bitmap showing which onboard controllers and sensors are enabled: Value of 0: not enabled. Value of 1: enabled. (type:uint32_t, values:MAV_SYS_STATUS_SENSOR)
  19010. onboard_control_sensors_health : Bitmap showing which onboard controllers and sensors have an error (or are operational). Value of 0: error. Value of 1: healthy. (type:uint32_t, values:MAV_SYS_STATUS_SENSOR)
  19011. load : Maximum usage in percent of the mainloop time. Values: [0-1000] - should always be below 1000 [d%] (type:uint16_t)
  19012. voltage_battery : Battery voltage, UINT16_MAX: Voltage not sent by autopilot [mV] (type:uint16_t)
  19013. current_battery : Battery current, -1: Current not sent by autopilot [cA] (type:int16_t)
  19014. battery_remaining : Battery energy remaining, -1: Battery remaining energy not sent by autopilot [%] (type:int8_t)
  19015. drop_rate_comm : Communication drop rate, (UART, I2C, SPI, CAN), dropped packets on all links (packets that were corrupted on reception on the MAV) [c%] (type:uint16_t)
  19016. errors_comm : Communication errors (UART, I2C, SPI, CAN), dropped packets on all links (packets that were corrupted on reception on the MAV) (type:uint16_t)
  19017. errors_count1 : Autopilot-specific errors (type:uint16_t)
  19018. errors_count2 : Autopilot-specific errors (type:uint16_t)
  19019. errors_count3 : Autopilot-specific errors (type:uint16_t)
  19020. errors_count4 : Autopilot-specific errors (type:uint16_t)
  19021. onboard_control_sensors_present_extended : Bitmap showing which onboard controllers and sensors are present. Value of 0: not present. Value of 1: present. (type:uint32_t, values:MAV_SYS_STATUS_SENSOR_EXTENDED)
  19022. onboard_control_sensors_enabled_extended : Bitmap showing which onboard controllers and sensors are enabled: Value of 0: not enabled. Value of 1: enabled. (type:uint32_t, values:MAV_SYS_STATUS_SENSOR_EXTENDED)
  19023. onboard_control_sensors_health_extended : Bitmap showing which onboard controllers and sensors have an error (or are operational). Value of 0: error. Value of 1: healthy. (type:uint32_t, values:MAV_SYS_STATUS_SENSOR_EXTENDED)
  19024. """
  19025. return MAVLink_sys_status_message(onboard_control_sensors_present, onboard_control_sensors_enabled, onboard_control_sensors_health, load, voltage_battery, current_battery, battery_remaining, drop_rate_comm, errors_comm, errors_count1, errors_count2, errors_count3, errors_count4, onboard_control_sensors_present_extended, onboard_control_sensors_enabled_extended, onboard_control_sensors_health_extended)
  19026. def sys_status_send(self, onboard_control_sensors_present: int, onboard_control_sensors_enabled: int, onboard_control_sensors_health: int, load: int, voltage_battery: int, current_battery: int, battery_remaining: int, drop_rate_comm: int, errors_comm: int, errors_count1: int, errors_count2: int, errors_count3: int, errors_count4: int, onboard_control_sensors_present_extended: int = 0, onboard_control_sensors_enabled_extended: int = 0, onboard_control_sensors_health_extended: int = 0, force_mavlink1: bool = False) -> None:
  19027. """
  19028. The general system state. If the system is following the MAVLink
  19029. standard, the system state is mainly defined by three
  19030. orthogonal states/modes: The system mode, which is either
  19031. LOCKED (motors shut down and locked), MANUAL (system under RC
  19032. control), GUIDED (system with autonomous position control,
  19033. position setpoint controlled manually) or AUTO (system guided
  19034. by path/waypoint planner). The NAV_MODE defined the current
  19035. flight state: LIFTOFF (often an open-loop maneuver), LANDING,
  19036. WAYPOINTS or VECTOR. This represents the internal navigation
  19037. state machine. The system status shows whether the system is
  19038. currently active or not and if an emergency occurred. During
  19039. the CRITICAL and EMERGENCY states the MAV is still considered
  19040. to be active, but should start emergency procedures
  19041. autonomously. After a failure occurred it should first move
  19042. from active to critical to allow manual intervention and then
  19043. move to emergency after a certain timeout.
  19044. onboard_control_sensors_present : Bitmap showing which onboard controllers and sensors are present. Value of 0: not present. Value of 1: present. (type:uint32_t, values:MAV_SYS_STATUS_SENSOR)
  19045. onboard_control_sensors_enabled : Bitmap showing which onboard controllers and sensors are enabled: Value of 0: not enabled. Value of 1: enabled. (type:uint32_t, values:MAV_SYS_STATUS_SENSOR)
  19046. onboard_control_sensors_health : Bitmap showing which onboard controllers and sensors have an error (or are operational). Value of 0: error. Value of 1: healthy. (type:uint32_t, values:MAV_SYS_STATUS_SENSOR)
  19047. load : Maximum usage in percent of the mainloop time. Values: [0-1000] - should always be below 1000 [d%] (type:uint16_t)
  19048. voltage_battery : Battery voltage, UINT16_MAX: Voltage not sent by autopilot [mV] (type:uint16_t)
  19049. current_battery : Battery current, -1: Current not sent by autopilot [cA] (type:int16_t)
  19050. battery_remaining : Battery energy remaining, -1: Battery remaining energy not sent by autopilot [%] (type:int8_t)
  19051. drop_rate_comm : Communication drop rate, (UART, I2C, SPI, CAN), dropped packets on all links (packets that were corrupted on reception on the MAV) [c%] (type:uint16_t)
  19052. errors_comm : Communication errors (UART, I2C, SPI, CAN), dropped packets on all links (packets that were corrupted on reception on the MAV) (type:uint16_t)
  19053. errors_count1 : Autopilot-specific errors (type:uint16_t)
  19054. errors_count2 : Autopilot-specific errors (type:uint16_t)
  19055. errors_count3 : Autopilot-specific errors (type:uint16_t)
  19056. errors_count4 : Autopilot-specific errors (type:uint16_t)
  19057. onboard_control_sensors_present_extended : Bitmap showing which onboard controllers and sensors are present. Value of 0: not present. Value of 1: present. (type:uint32_t, values:MAV_SYS_STATUS_SENSOR_EXTENDED)
  19058. onboard_control_sensors_enabled_extended : Bitmap showing which onboard controllers and sensors are enabled: Value of 0: not enabled. Value of 1: enabled. (type:uint32_t, values:MAV_SYS_STATUS_SENSOR_EXTENDED)
  19059. onboard_control_sensors_health_extended : Bitmap showing which onboard controllers and sensors have an error (or are operational). Value of 0: error. Value of 1: healthy. (type:uint32_t, values:MAV_SYS_STATUS_SENSOR_EXTENDED)
  19060. """
  19061. self.send(self.sys_status_encode(onboard_control_sensors_present, onboard_control_sensors_enabled, onboard_control_sensors_health, load, voltage_battery, current_battery, battery_remaining, drop_rate_comm, errors_comm, errors_count1, errors_count2, errors_count3, errors_count4, onboard_control_sensors_present_extended, onboard_control_sensors_enabled_extended, onboard_control_sensors_health_extended), force_mavlink1=force_mavlink1)
  19062. def system_time_encode(self, time_unix_usec: int, time_boot_ms: int) -> MAVLink_system_time_message:
  19063. """
  19064. The system time is the time of the master clock, typically the
  19065. computer clock of the main onboard computer.
  19066. time_unix_usec : Timestamp (UNIX epoch time). [us] (type:uint64_t)
  19067. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19068. """
  19069. return MAVLink_system_time_message(time_unix_usec, time_boot_ms)
  19070. def system_time_send(self, time_unix_usec: int, time_boot_ms: int, force_mavlink1: bool = False) -> None:
  19071. """
  19072. The system time is the time of the master clock, typically the
  19073. computer clock of the main onboard computer.
  19074. time_unix_usec : Timestamp (UNIX epoch time). [us] (type:uint64_t)
  19075. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19076. """
  19077. self.send(self.system_time_encode(time_unix_usec, time_boot_ms), force_mavlink1=force_mavlink1)
  19078. def ping_encode(self, time_usec: int, seq: int, target_system: int, target_component: int) -> MAVLink_ping_message:
  19079. """
  19080. A ping message either requesting or responding to a ping. This allows
  19081. to measure the system latencies, including serial port, radio
  19082. modem and UDP connections. The ping microservice is documented
  19083. at https://mavlink.io/en/services/ping.html
  19084. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  19085. seq : PING sequence (type:uint32_t)
  19086. target_system : 0: request ping from all receiving systems. If greater than 0: message is a ping response and number is the system id of the requesting system (type:uint8_t)
  19087. target_component : 0: request ping from all receiving components. If greater than 0: message is a ping response and number is the component id of the requesting component. (type:uint8_t)
  19088. """
  19089. return MAVLink_ping_message(time_usec, seq, target_system, target_component)
  19090. def ping_send(self, time_usec: int, seq: int, target_system: int, target_component: int, force_mavlink1: bool = False) -> None:
  19091. """
  19092. A ping message either requesting or responding to a ping. This allows
  19093. to measure the system latencies, including serial port, radio
  19094. modem and UDP connections. The ping microservice is documented
  19095. at https://mavlink.io/en/services/ping.html
  19096. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  19097. seq : PING sequence (type:uint32_t)
  19098. target_system : 0: request ping from all receiving systems. If greater than 0: message is a ping response and number is the system id of the requesting system (type:uint8_t)
  19099. target_component : 0: request ping from all receiving components. If greater than 0: message is a ping response and number is the component id of the requesting component. (type:uint8_t)
  19100. """
  19101. self.send(self.ping_encode(time_usec, seq, target_system, target_component), force_mavlink1=force_mavlink1)
  19102. def change_operator_control_encode(self, target_system: int, control_request: int, version: int, passkey: bytes) -> MAVLink_change_operator_control_message:
  19103. """
  19104. Request to control this MAV
  19105. target_system : System the GCS requests control for (type:uint8_t)
  19106. control_request : 0: request control of this MAV, 1: Release control of this MAV (type:uint8_t)
  19107. version : 0: key as plaintext, 1-255: future, different hashing/encryption variants. The GCS should in general use the safest mode possible initially and then gradually move down the encryption level if it gets a NACK message indicating an encryption mismatch. [rad] (type:uint8_t)
  19108. passkey : Password / Key, depending on version plaintext or encrypted. 25 or less characters, NULL terminated. The characters may involve A-Z, a-z, 0-9, and "!?,.-" (type:char)
  19109. """
  19110. return MAVLink_change_operator_control_message(target_system, control_request, version, passkey)
  19111. def change_operator_control_send(self, target_system: int, control_request: int, version: int, passkey: bytes, force_mavlink1: bool = False) -> None:
  19112. """
  19113. Request to control this MAV
  19114. target_system : System the GCS requests control for (type:uint8_t)
  19115. control_request : 0: request control of this MAV, 1: Release control of this MAV (type:uint8_t)
  19116. version : 0: key as plaintext, 1-255: future, different hashing/encryption variants. The GCS should in general use the safest mode possible initially and then gradually move down the encryption level if it gets a NACK message indicating an encryption mismatch. [rad] (type:uint8_t)
  19117. passkey : Password / Key, depending on version plaintext or encrypted. 25 or less characters, NULL terminated. The characters may involve A-Z, a-z, 0-9, and "!?,.-" (type:char)
  19118. """
  19119. self.send(self.change_operator_control_encode(target_system, control_request, version, passkey), force_mavlink1=force_mavlink1)
  19120. def change_operator_control_ack_encode(self, gcs_system_id: int, control_request: int, ack: int) -> MAVLink_change_operator_control_ack_message:
  19121. """
  19122. Accept / deny control of this MAV
  19123. gcs_system_id : ID of the GCS this message (type:uint8_t)
  19124. control_request : 0: request control of this MAV, 1: Release control of this MAV (type:uint8_t)
  19125. ack : 0: ACK, 1: NACK: Wrong passkey, 2: NACK: Unsupported passkey encryption method, 3: NACK: Already under control (type:uint8_t)
  19126. """
  19127. return MAVLink_change_operator_control_ack_message(gcs_system_id, control_request, ack)
  19128. def change_operator_control_ack_send(self, gcs_system_id: int, control_request: int, ack: int, force_mavlink1: bool = False) -> None:
  19129. """
  19130. Accept / deny control of this MAV
  19131. gcs_system_id : ID of the GCS this message (type:uint8_t)
  19132. control_request : 0: request control of this MAV, 1: Release control of this MAV (type:uint8_t)
  19133. ack : 0: ACK, 1: NACK: Wrong passkey, 2: NACK: Unsupported passkey encryption method, 3: NACK: Already under control (type:uint8_t)
  19134. """
  19135. self.send(self.change_operator_control_ack_encode(gcs_system_id, control_request, ack), force_mavlink1=force_mavlink1)
  19136. def auth_key_encode(self, key: bytes) -> MAVLink_auth_key_message:
  19137. """
  19138. Emit an encrypted signature / key identifying this system. PLEASE
  19139. NOTE: This protocol has been kept simple, so transmitting the
  19140. key requires an encrypted channel for true safety.
  19141. key : key (type:char)
  19142. """
  19143. return MAVLink_auth_key_message(key)
  19144. def auth_key_send(self, key: bytes, force_mavlink1: bool = False) -> None:
  19145. """
  19146. Emit an encrypted signature / key identifying this system. PLEASE
  19147. NOTE: This protocol has been kept simple, so transmitting the
  19148. key requires an encrypted channel for true safety.
  19149. key : key (type:char)
  19150. """
  19151. self.send(self.auth_key_encode(key), force_mavlink1=force_mavlink1)
  19152. def link_node_status_encode(self, timestamp: int, tx_buf: int, rx_buf: int, tx_rate: int, rx_rate: int, rx_parse_err: int, tx_overflows: int, rx_overflows: int, messages_sent: int, messages_received: int, messages_lost: int) -> MAVLink_link_node_status_message:
  19153. """
  19154. Status generated in each node in the communication chain and injected
  19155. into MAVLink stream.
  19156. timestamp : Timestamp (time since system boot). [ms] (type:uint64_t)
  19157. tx_buf : Remaining free transmit buffer space [%] (type:uint8_t)
  19158. rx_buf : Remaining free receive buffer space [%] (type:uint8_t)
  19159. tx_rate : Transmit rate [bytes/s] (type:uint32_t)
  19160. rx_rate : Receive rate [bytes/s] (type:uint32_t)
  19161. rx_parse_err : Number of bytes that could not be parsed correctly. [bytes] (type:uint16_t)
  19162. tx_overflows : Transmit buffer overflows. This number wraps around as it reaches UINT16_MAX [bytes] (type:uint16_t)
  19163. rx_overflows : Receive buffer overflows. This number wraps around as it reaches UINT16_MAX [bytes] (type:uint16_t)
  19164. messages_sent : Messages sent (type:uint32_t)
  19165. messages_received : Messages received (estimated from counting seq) (type:uint32_t)
  19166. messages_lost : Messages lost (estimated from counting seq) (type:uint32_t)
  19167. """
  19168. return MAVLink_link_node_status_message(timestamp, tx_buf, rx_buf, tx_rate, rx_rate, rx_parse_err, tx_overflows, rx_overflows, messages_sent, messages_received, messages_lost)
  19169. def link_node_status_send(self, timestamp: int, tx_buf: int, rx_buf: int, tx_rate: int, rx_rate: int, rx_parse_err: int, tx_overflows: int, rx_overflows: int, messages_sent: int, messages_received: int, messages_lost: int, force_mavlink1: bool = False) -> None:
  19170. """
  19171. Status generated in each node in the communication chain and injected
  19172. into MAVLink stream.
  19173. timestamp : Timestamp (time since system boot). [ms] (type:uint64_t)
  19174. tx_buf : Remaining free transmit buffer space [%] (type:uint8_t)
  19175. rx_buf : Remaining free receive buffer space [%] (type:uint8_t)
  19176. tx_rate : Transmit rate [bytes/s] (type:uint32_t)
  19177. rx_rate : Receive rate [bytes/s] (type:uint32_t)
  19178. rx_parse_err : Number of bytes that could not be parsed correctly. [bytes] (type:uint16_t)
  19179. tx_overflows : Transmit buffer overflows. This number wraps around as it reaches UINT16_MAX [bytes] (type:uint16_t)
  19180. rx_overflows : Receive buffer overflows. This number wraps around as it reaches UINT16_MAX [bytes] (type:uint16_t)
  19181. messages_sent : Messages sent (type:uint32_t)
  19182. messages_received : Messages received (estimated from counting seq) (type:uint32_t)
  19183. messages_lost : Messages lost (estimated from counting seq) (type:uint32_t)
  19184. """
  19185. self.send(self.link_node_status_encode(timestamp, tx_buf, rx_buf, tx_rate, rx_rate, rx_parse_err, tx_overflows, rx_overflows, messages_sent, messages_received, messages_lost), force_mavlink1=force_mavlink1)
  19186. def set_mode_encode(self, target_system: int, base_mode: int, custom_mode: int) -> MAVLink_set_mode_message:
  19187. """
  19188. Set the system mode, as defined by enum MAV_MODE. There is no target
  19189. component id as the mode is by definition for the overall
  19190. aircraft, not only for one component.
  19191. target_system : The system setting the mode (type:uint8_t)
  19192. base_mode : The new base mode. (type:uint8_t, values:MAV_MODE)
  19193. custom_mode : The new autopilot-specific mode. This field can be ignored by an autopilot. (type:uint32_t)
  19194. """
  19195. return MAVLink_set_mode_message(target_system, base_mode, custom_mode)
  19196. def set_mode_send(self, target_system: int, base_mode: int, custom_mode: int, force_mavlink1: bool = False) -> None:
  19197. """
  19198. Set the system mode, as defined by enum MAV_MODE. There is no target
  19199. component id as the mode is by definition for the overall
  19200. aircraft, not only for one component.
  19201. target_system : The system setting the mode (type:uint8_t)
  19202. base_mode : The new base mode. (type:uint8_t, values:MAV_MODE)
  19203. custom_mode : The new autopilot-specific mode. This field can be ignored by an autopilot. (type:uint32_t)
  19204. """
  19205. self.send(self.set_mode_encode(target_system, base_mode, custom_mode), force_mavlink1=force_mavlink1)
  19206. def param_request_read_encode(self, target_system: int, target_component: int, param_id: bytes, param_index: int) -> MAVLink_param_request_read_message:
  19207. """
  19208. Request to read the onboard parameter with the param_id string id.
  19209. Onboard parameters are stored as key[const char*] ->
  19210. value[float]. This allows to send a parameter to any other
  19211. component (such as the GCS) without the need of previous
  19212. knowledge of possible parameter names. Thus the same GCS can
  19213. store different parameters for different autopilots. See also
  19214. https://mavlink.io/en/services/parameter.html for a full
  19215. documentation of QGroundControl and IMU code.
  19216. target_system : System ID (type:uint8_t)
  19217. target_component : Component ID (type:uint8_t)
  19218. param_id : Onboard parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string (type:char)
  19219. param_index : Parameter index. Send -1 to use the param ID field as identifier (else the param id will be ignored) (type:int16_t)
  19220. """
  19221. return MAVLink_param_request_read_message(target_system, target_component, param_id, param_index)
  19222. def param_request_read_send(self, target_system: int, target_component: int, param_id: bytes, param_index: int, force_mavlink1: bool = False) -> None:
  19223. """
  19224. Request to read the onboard parameter with the param_id string id.
  19225. Onboard parameters are stored as key[const char*] ->
  19226. value[float]. This allows to send a parameter to any other
  19227. component (such as the GCS) without the need of previous
  19228. knowledge of possible parameter names. Thus the same GCS can
  19229. store different parameters for different autopilots. See also
  19230. https://mavlink.io/en/services/parameter.html for a full
  19231. documentation of QGroundControl and IMU code.
  19232. target_system : System ID (type:uint8_t)
  19233. target_component : Component ID (type:uint8_t)
  19234. param_id : Onboard parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string (type:char)
  19235. param_index : Parameter index. Send -1 to use the param ID field as identifier (else the param id will be ignored) (type:int16_t)
  19236. """
  19237. self.send(self.param_request_read_encode(target_system, target_component, param_id, param_index), force_mavlink1=force_mavlink1)
  19238. def param_request_list_encode(self, target_system: int, target_component: int) -> MAVLink_param_request_list_message:
  19239. """
  19240. Request all parameters of this component. After this request, all
  19241. parameters are emitted. The parameter microservice is
  19242. documented at https://mavlink.io/en/services/parameter.html
  19243. target_system : System ID (type:uint8_t)
  19244. target_component : Component ID (type:uint8_t)
  19245. """
  19246. return MAVLink_param_request_list_message(target_system, target_component)
  19247. def param_request_list_send(self, target_system: int, target_component: int, force_mavlink1: bool = False) -> None:
  19248. """
  19249. Request all parameters of this component. After this request, all
  19250. parameters are emitted. The parameter microservice is
  19251. documented at https://mavlink.io/en/services/parameter.html
  19252. target_system : System ID (type:uint8_t)
  19253. target_component : Component ID (type:uint8_t)
  19254. """
  19255. self.send(self.param_request_list_encode(target_system, target_component), force_mavlink1=force_mavlink1)
  19256. def param_value_encode(self, param_id: bytes, param_value: float, param_type: int, param_count: int, param_index: int) -> MAVLink_param_value_message:
  19257. """
  19258. Emit the value of a onboard parameter. The inclusion of param_count
  19259. and param_index in the message allows the recipient to keep
  19260. track of received parameters and allows him to re-request
  19261. missing parameters after a loss or timeout. The parameter
  19262. microservice is documented at
  19263. https://mavlink.io/en/services/parameter.html
  19264. param_id : Onboard parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string (type:char)
  19265. param_value : Onboard parameter value (type:float)
  19266. param_type : Onboard parameter type. (type:uint8_t, values:MAV_PARAM_TYPE)
  19267. param_count : Total number of onboard parameters (type:uint16_t)
  19268. param_index : Index of this onboard parameter (type:uint16_t)
  19269. """
  19270. return MAVLink_param_value_message(param_id, param_value, param_type, param_count, param_index)
  19271. def param_value_send(self, param_id: bytes, param_value: float, param_type: int, param_count: int, param_index: int, force_mavlink1: bool = False) -> None:
  19272. """
  19273. Emit the value of a onboard parameter. The inclusion of param_count
  19274. and param_index in the message allows the recipient to keep
  19275. track of received parameters and allows him to re-request
  19276. missing parameters after a loss or timeout. The parameter
  19277. microservice is documented at
  19278. https://mavlink.io/en/services/parameter.html
  19279. param_id : Onboard parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string (type:char)
  19280. param_value : Onboard parameter value (type:float)
  19281. param_type : Onboard parameter type. (type:uint8_t, values:MAV_PARAM_TYPE)
  19282. param_count : Total number of onboard parameters (type:uint16_t)
  19283. param_index : Index of this onboard parameter (type:uint16_t)
  19284. """
  19285. self.send(self.param_value_encode(param_id, param_value, param_type, param_count, param_index), force_mavlink1=force_mavlink1)
  19286. def param_set_encode(self, target_system: int, target_component: int, param_id: bytes, param_value: float, param_type: int) -> MAVLink_param_set_message:
  19287. """
  19288. Set a parameter value (write new value to permanent storage).
  19289. The receiving component should acknowledge the new parameter
  19290. value by broadcasting a PARAM_VALUE message (broadcasting
  19291. ensures that multiple GCS all have an up-to-date list of all
  19292. parameters). If the sending GCS did not receive a PARAM_VALUE
  19293. within its timeout time, it should re-send the PARAM_SET
  19294. message. The parameter microservice is documented at
  19295. https://mavlink.io/en/services/parameter.html.
  19296. PARAM_SET may also be called within the context of a
  19297. transaction (started with MAV_CMD_PARAM_TRANSACTION). Within a
  19298. transaction the receiving component should respond with
  19299. PARAM_ACK_TRANSACTION to the setter component (instead of
  19300. broadcasting PARAM_VALUE), and PARAM_SET should be re-sent if
  19301. this is ACK not received.
  19302. target_system : System ID (type:uint8_t)
  19303. target_component : Component ID (type:uint8_t)
  19304. param_id : Onboard parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string (type:char)
  19305. param_value : Onboard parameter value (type:float)
  19306. param_type : Onboard parameter type. (type:uint8_t, values:MAV_PARAM_TYPE)
  19307. """
  19308. return MAVLink_param_set_message(target_system, target_component, param_id, param_value, param_type)
  19309. def param_set_send(self, target_system: int, target_component: int, param_id: bytes, param_value: float, param_type: int, force_mavlink1: bool = False) -> None:
  19310. """
  19311. Set a parameter value (write new value to permanent storage).
  19312. The receiving component should acknowledge the new parameter
  19313. value by broadcasting a PARAM_VALUE message (broadcasting
  19314. ensures that multiple GCS all have an up-to-date list of all
  19315. parameters). If the sending GCS did not receive a PARAM_VALUE
  19316. within its timeout time, it should re-send the PARAM_SET
  19317. message. The parameter microservice is documented at
  19318. https://mavlink.io/en/services/parameter.html.
  19319. PARAM_SET may also be called within the context of a
  19320. transaction (started with MAV_CMD_PARAM_TRANSACTION). Within a
  19321. transaction the receiving component should respond with
  19322. PARAM_ACK_TRANSACTION to the setter component (instead of
  19323. broadcasting PARAM_VALUE), and PARAM_SET should be re-sent if
  19324. this is ACK not received.
  19325. target_system : System ID (type:uint8_t)
  19326. target_component : Component ID (type:uint8_t)
  19327. param_id : Onboard parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string (type:char)
  19328. param_value : Onboard parameter value (type:float)
  19329. param_type : Onboard parameter type. (type:uint8_t, values:MAV_PARAM_TYPE)
  19330. """
  19331. self.send(self.param_set_encode(target_system, target_component, param_id, param_value, param_type), force_mavlink1=force_mavlink1)
  19332. def gps_raw_int_encode(self, time_usec: int, fix_type: int, lat: int, lon: int, alt: int, eph: int, epv: int, vel: int, cog: int, satellites_visible: int, alt_ellipsoid: int = 0, h_acc: int = 0, v_acc: int = 0, vel_acc: int = 0, hdg_acc: int = 0, yaw: int = 0) -> MAVLink_gps_raw_int_message:
  19333. """
  19334. The global position, as returned by the Global Positioning System
  19335. (GPS). This is NOT the global position
  19336. estimate of the system, but rather a RAW sensor value. See
  19337. message GLOBAL_POSITION_INT for the global position estimate.
  19338. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  19339. fix_type : GPS fix type. (type:uint8_t, values:GPS_FIX_TYPE)
  19340. lat : Latitude (WGS84, EGM96 ellipsoid) [degE7] (type:int32_t)
  19341. lon : Longitude (WGS84, EGM96 ellipsoid) [degE7] (type:int32_t)
  19342. alt : Altitude (MSL). Positive for up. Note that virtually all GPS modules provide the MSL altitude in addition to the WGS84 altitude. [mm] (type:int32_t)
  19343. eph : GPS HDOP horizontal dilution of position (unitless * 100). If unknown, set to: UINT16_MAX (type:uint16_t)
  19344. epv : GPS VDOP vertical dilution of position (unitless * 100). If unknown, set to: UINT16_MAX (type:uint16_t)
  19345. vel : GPS ground speed. If unknown, set to: UINT16_MAX [cm/s] (type:uint16_t)
  19346. cog : Course over ground (NOT heading, but direction of movement) in degrees * 100, 0.0..359.99 degrees. If unknown, set to: UINT16_MAX [cdeg] (type:uint16_t)
  19347. satellites_visible : Number of satellites visible. If unknown, set to UINT8_MAX (type:uint8_t)
  19348. alt_ellipsoid : Altitude (above WGS84, EGM96 ellipsoid). Positive for up. [mm] (type:int32_t)
  19349. h_acc : Position uncertainty. [mm] (type:uint32_t)
  19350. v_acc : Altitude uncertainty. [mm] (type:uint32_t)
  19351. vel_acc : Speed uncertainty. [mm] (type:uint32_t)
  19352. hdg_acc : Heading / track uncertainty [degE5] (type:uint32_t)
  19353. yaw : Yaw in earth frame from north. Use 0 if this GPS does not provide yaw. Use UINT16_MAX if this GPS is configured to provide yaw and is currently unable to provide it. Use 36000 for north. [cdeg] (type:uint16_t)
  19354. """
  19355. return MAVLink_gps_raw_int_message(time_usec, fix_type, lat, lon, alt, eph, epv, vel, cog, satellites_visible, alt_ellipsoid, h_acc, v_acc, vel_acc, hdg_acc, yaw)
  19356. def gps_raw_int_send(self, time_usec: int, fix_type: int, lat: int, lon: int, alt: int, eph: int, epv: int, vel: int, cog: int, satellites_visible: int, alt_ellipsoid: int = 0, h_acc: int = 0, v_acc: int = 0, vel_acc: int = 0, hdg_acc: int = 0, yaw: int = 0, force_mavlink1: bool = False) -> None:
  19357. """
  19358. The global position, as returned by the Global Positioning System
  19359. (GPS). This is NOT the global position
  19360. estimate of the system, but rather a RAW sensor value. See
  19361. message GLOBAL_POSITION_INT for the global position estimate.
  19362. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  19363. fix_type : GPS fix type. (type:uint8_t, values:GPS_FIX_TYPE)
  19364. lat : Latitude (WGS84, EGM96 ellipsoid) [degE7] (type:int32_t)
  19365. lon : Longitude (WGS84, EGM96 ellipsoid) [degE7] (type:int32_t)
  19366. alt : Altitude (MSL). Positive for up. Note that virtually all GPS modules provide the MSL altitude in addition to the WGS84 altitude. [mm] (type:int32_t)
  19367. eph : GPS HDOP horizontal dilution of position (unitless * 100). If unknown, set to: UINT16_MAX (type:uint16_t)
  19368. epv : GPS VDOP vertical dilution of position (unitless * 100). If unknown, set to: UINT16_MAX (type:uint16_t)
  19369. vel : GPS ground speed. If unknown, set to: UINT16_MAX [cm/s] (type:uint16_t)
  19370. cog : Course over ground (NOT heading, but direction of movement) in degrees * 100, 0.0..359.99 degrees. If unknown, set to: UINT16_MAX [cdeg] (type:uint16_t)
  19371. satellites_visible : Number of satellites visible. If unknown, set to UINT8_MAX (type:uint8_t)
  19372. alt_ellipsoid : Altitude (above WGS84, EGM96 ellipsoid). Positive for up. [mm] (type:int32_t)
  19373. h_acc : Position uncertainty. [mm] (type:uint32_t)
  19374. v_acc : Altitude uncertainty. [mm] (type:uint32_t)
  19375. vel_acc : Speed uncertainty. [mm] (type:uint32_t)
  19376. hdg_acc : Heading / track uncertainty [degE5] (type:uint32_t)
  19377. yaw : Yaw in earth frame from north. Use 0 if this GPS does not provide yaw. Use UINT16_MAX if this GPS is configured to provide yaw and is currently unable to provide it. Use 36000 for north. [cdeg] (type:uint16_t)
  19378. """
  19379. self.send(self.gps_raw_int_encode(time_usec, fix_type, lat, lon, alt, eph, epv, vel, cog, satellites_visible, alt_ellipsoid, h_acc, v_acc, vel_acc, hdg_acc, yaw), force_mavlink1=force_mavlink1)
  19380. def gps_status_encode(self, satellites_visible: int, satellite_prn: Sequence[int], satellite_used: Sequence[int], satellite_elevation: Sequence[int], satellite_azimuth: Sequence[int], satellite_snr: Sequence[int]) -> MAVLink_gps_status_message:
  19381. """
  19382. The positioning status, as reported by GPS. This message is intended
  19383. to display status information about each satellite visible to
  19384. the receiver. See message GLOBAL_POSITION_INT for the global
  19385. position estimate. This message can contain information for up
  19386. to 20 satellites.
  19387. satellites_visible : Number of satellites visible (type:uint8_t)
  19388. satellite_prn : Global satellite ID (type:uint8_t)
  19389. satellite_used : 0: Satellite not used, 1: used for localization (type:uint8_t)
  19390. satellite_elevation : Elevation (0: right on top of receiver, 90: on the horizon) of satellite [deg] (type:uint8_t)
  19391. satellite_azimuth : Direction of satellite, 0: 0 deg, 255: 360 deg. [deg] (type:uint8_t)
  19392. satellite_snr : Signal to noise ratio of satellite [dB] (type:uint8_t)
  19393. """
  19394. return MAVLink_gps_status_message(satellites_visible, satellite_prn, satellite_used, satellite_elevation, satellite_azimuth, satellite_snr)
  19395. def gps_status_send(self, satellites_visible: int, satellite_prn: Sequence[int], satellite_used: Sequence[int], satellite_elevation: Sequence[int], satellite_azimuth: Sequence[int], satellite_snr: Sequence[int], force_mavlink1: bool = False) -> None:
  19396. """
  19397. The positioning status, as reported by GPS. This message is intended
  19398. to display status information about each satellite visible to
  19399. the receiver. See message GLOBAL_POSITION_INT for the global
  19400. position estimate. This message can contain information for up
  19401. to 20 satellites.
  19402. satellites_visible : Number of satellites visible (type:uint8_t)
  19403. satellite_prn : Global satellite ID (type:uint8_t)
  19404. satellite_used : 0: Satellite not used, 1: used for localization (type:uint8_t)
  19405. satellite_elevation : Elevation (0: right on top of receiver, 90: on the horizon) of satellite [deg] (type:uint8_t)
  19406. satellite_azimuth : Direction of satellite, 0: 0 deg, 255: 360 deg. [deg] (type:uint8_t)
  19407. satellite_snr : Signal to noise ratio of satellite [dB] (type:uint8_t)
  19408. """
  19409. self.send(self.gps_status_encode(satellites_visible, satellite_prn, satellite_used, satellite_elevation, satellite_azimuth, satellite_snr), force_mavlink1=force_mavlink1)
  19410. def scaled_imu_encode(self, time_boot_ms: int, xacc: int, yacc: int, zacc: int, xgyro: int, ygyro: int, zgyro: int, xmag: int, ymag: int, zmag: int, temperature: int = 0) -> MAVLink_scaled_imu_message:
  19411. """
  19412. The RAW IMU readings for the usual 9DOF sensor setup. This message
  19413. should contain the scaled values to the described units
  19414. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19415. xacc : X acceleration [mG] (type:int16_t)
  19416. yacc : Y acceleration [mG] (type:int16_t)
  19417. zacc : Z acceleration [mG] (type:int16_t)
  19418. xgyro : Angular speed around X axis [mrad/s] (type:int16_t)
  19419. ygyro : Angular speed around Y axis [mrad/s] (type:int16_t)
  19420. zgyro : Angular speed around Z axis [mrad/s] (type:int16_t)
  19421. xmag : X Magnetic field [mgauss] (type:int16_t)
  19422. ymag : Y Magnetic field [mgauss] (type:int16_t)
  19423. zmag : Z Magnetic field [mgauss] (type:int16_t)
  19424. temperature : Temperature, 0: IMU does not provide temperature values. If the IMU is at 0C it must send 1 (0.01C). [cdegC] (type:int16_t)
  19425. """
  19426. return MAVLink_scaled_imu_message(time_boot_ms, xacc, yacc, zacc, xgyro, ygyro, zgyro, xmag, ymag, zmag, temperature)
  19427. def scaled_imu_send(self, time_boot_ms: int, xacc: int, yacc: int, zacc: int, xgyro: int, ygyro: int, zgyro: int, xmag: int, ymag: int, zmag: int, temperature: int = 0, force_mavlink1: bool = False) -> None:
  19428. """
  19429. The RAW IMU readings for the usual 9DOF sensor setup. This message
  19430. should contain the scaled values to the described units
  19431. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19432. xacc : X acceleration [mG] (type:int16_t)
  19433. yacc : Y acceleration [mG] (type:int16_t)
  19434. zacc : Z acceleration [mG] (type:int16_t)
  19435. xgyro : Angular speed around X axis [mrad/s] (type:int16_t)
  19436. ygyro : Angular speed around Y axis [mrad/s] (type:int16_t)
  19437. zgyro : Angular speed around Z axis [mrad/s] (type:int16_t)
  19438. xmag : X Magnetic field [mgauss] (type:int16_t)
  19439. ymag : Y Magnetic field [mgauss] (type:int16_t)
  19440. zmag : Z Magnetic field [mgauss] (type:int16_t)
  19441. temperature : Temperature, 0: IMU does not provide temperature values. If the IMU is at 0C it must send 1 (0.01C). [cdegC] (type:int16_t)
  19442. """
  19443. self.send(self.scaled_imu_encode(time_boot_ms, xacc, yacc, zacc, xgyro, ygyro, zgyro, xmag, ymag, zmag, temperature), force_mavlink1=force_mavlink1)
  19444. def raw_imu_encode(self, time_usec: int, xacc: int, yacc: int, zacc: int, xgyro: int, ygyro: int, zgyro: int, xmag: int, ymag: int, zmag: int, id: int = 0, temperature: int = 0) -> MAVLink_raw_imu_message:
  19445. """
  19446. The RAW IMU readings for a 9DOF sensor, which is identified by the id
  19447. (default IMU1). This message should always contain the true
  19448. raw values without any scaling to allow data capture and
  19449. system debugging.
  19450. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  19451. xacc : X acceleration (raw) (type:int16_t)
  19452. yacc : Y acceleration (raw) (type:int16_t)
  19453. zacc : Z acceleration (raw) (type:int16_t)
  19454. xgyro : Angular speed around X axis (raw) (type:int16_t)
  19455. ygyro : Angular speed around Y axis (raw) (type:int16_t)
  19456. zgyro : Angular speed around Z axis (raw) (type:int16_t)
  19457. xmag : X Magnetic field (raw) (type:int16_t)
  19458. ymag : Y Magnetic field (raw) (type:int16_t)
  19459. zmag : Z Magnetic field (raw) (type:int16_t)
  19460. id : Id. Ids are numbered from 0 and map to IMUs numbered from 1 (e.g. IMU1 will have a message with id=0) (type:uint8_t)
  19461. temperature : Temperature, 0: IMU does not provide temperature values. If the IMU is at 0C it must send 1 (0.01C). [cdegC] (type:int16_t)
  19462. """
  19463. return MAVLink_raw_imu_message(time_usec, xacc, yacc, zacc, xgyro, ygyro, zgyro, xmag, ymag, zmag, id, temperature)
  19464. def raw_imu_send(self, time_usec: int, xacc: int, yacc: int, zacc: int, xgyro: int, ygyro: int, zgyro: int, xmag: int, ymag: int, zmag: int, id: int = 0, temperature: int = 0, force_mavlink1: bool = False) -> None:
  19465. """
  19466. The RAW IMU readings for a 9DOF sensor, which is identified by the id
  19467. (default IMU1). This message should always contain the true
  19468. raw values without any scaling to allow data capture and
  19469. system debugging.
  19470. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  19471. xacc : X acceleration (raw) (type:int16_t)
  19472. yacc : Y acceleration (raw) (type:int16_t)
  19473. zacc : Z acceleration (raw) (type:int16_t)
  19474. xgyro : Angular speed around X axis (raw) (type:int16_t)
  19475. ygyro : Angular speed around Y axis (raw) (type:int16_t)
  19476. zgyro : Angular speed around Z axis (raw) (type:int16_t)
  19477. xmag : X Magnetic field (raw) (type:int16_t)
  19478. ymag : Y Magnetic field (raw) (type:int16_t)
  19479. zmag : Z Magnetic field (raw) (type:int16_t)
  19480. id : Id. Ids are numbered from 0 and map to IMUs numbered from 1 (e.g. IMU1 will have a message with id=0) (type:uint8_t)
  19481. temperature : Temperature, 0: IMU does not provide temperature values. If the IMU is at 0C it must send 1 (0.01C). [cdegC] (type:int16_t)
  19482. """
  19483. self.send(self.raw_imu_encode(time_usec, xacc, yacc, zacc, xgyro, ygyro, zgyro, xmag, ymag, zmag, id, temperature), force_mavlink1=force_mavlink1)
  19484. def raw_pressure_encode(self, time_usec: int, press_abs: int, press_diff1: int, press_diff2: int, temperature: int) -> MAVLink_raw_pressure_message:
  19485. """
  19486. The RAW pressure readings for the typical setup of one absolute
  19487. pressure and one differential pressure sensor. The sensor
  19488. values should be the raw, UNSCALED ADC values.
  19489. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  19490. press_abs : Absolute pressure (raw) (type:int16_t)
  19491. press_diff1 : Differential pressure 1 (raw, 0 if nonexistent) (type:int16_t)
  19492. press_diff2 : Differential pressure 2 (raw, 0 if nonexistent) (type:int16_t)
  19493. temperature : Raw Temperature measurement (raw) (type:int16_t)
  19494. """
  19495. return MAVLink_raw_pressure_message(time_usec, press_abs, press_diff1, press_diff2, temperature)
  19496. def raw_pressure_send(self, time_usec: int, press_abs: int, press_diff1: int, press_diff2: int, temperature: int, force_mavlink1: bool = False) -> None:
  19497. """
  19498. The RAW pressure readings for the typical setup of one absolute
  19499. pressure and one differential pressure sensor. The sensor
  19500. values should be the raw, UNSCALED ADC values.
  19501. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  19502. press_abs : Absolute pressure (raw) (type:int16_t)
  19503. press_diff1 : Differential pressure 1 (raw, 0 if nonexistent) (type:int16_t)
  19504. press_diff2 : Differential pressure 2 (raw, 0 if nonexistent) (type:int16_t)
  19505. temperature : Raw Temperature measurement (raw) (type:int16_t)
  19506. """
  19507. self.send(self.raw_pressure_encode(time_usec, press_abs, press_diff1, press_diff2, temperature), force_mavlink1=force_mavlink1)
  19508. def scaled_pressure_encode(self, time_boot_ms: int, press_abs: float, press_diff: float, temperature: int, temperature_press_diff: int = 0) -> MAVLink_scaled_pressure_message:
  19509. """
  19510. The pressure readings for the typical setup of one absolute and
  19511. differential pressure sensor. The units are as specified in
  19512. each field.
  19513. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19514. press_abs : Absolute pressure [hPa] (type:float)
  19515. press_diff : Differential pressure 1 [hPa] (type:float)
  19516. temperature : Absolute pressure temperature [cdegC] (type:int16_t)
  19517. temperature_press_diff : Differential pressure temperature (0, if not available). Report values of 0 (or 1) as 1 cdegC. [cdegC] (type:int16_t)
  19518. """
  19519. return MAVLink_scaled_pressure_message(time_boot_ms, press_abs, press_diff, temperature, temperature_press_diff)
  19520. def scaled_pressure_send(self, time_boot_ms: int, press_abs: float, press_diff: float, temperature: int, temperature_press_diff: int = 0, force_mavlink1: bool = False) -> None:
  19521. """
  19522. The pressure readings for the typical setup of one absolute and
  19523. differential pressure sensor. The units are as specified in
  19524. each field.
  19525. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19526. press_abs : Absolute pressure [hPa] (type:float)
  19527. press_diff : Differential pressure 1 [hPa] (type:float)
  19528. temperature : Absolute pressure temperature [cdegC] (type:int16_t)
  19529. temperature_press_diff : Differential pressure temperature (0, if not available). Report values of 0 (or 1) as 1 cdegC. [cdegC] (type:int16_t)
  19530. """
  19531. self.send(self.scaled_pressure_encode(time_boot_ms, press_abs, press_diff, temperature, temperature_press_diff), force_mavlink1=force_mavlink1)
  19532. def attitude_encode(self, time_boot_ms: int, roll: float, pitch: float, yaw: float, rollspeed: float, pitchspeed: float, yawspeed: float) -> MAVLink_attitude_message:
  19533. """
  19534. The attitude in the aeronautical frame (right-handed, Z-down, Y-right,
  19535. X-front, ZYX, intrinsic).
  19536. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19537. roll : Roll angle (-pi..+pi) [rad] (type:float)
  19538. pitch : Pitch angle (-pi..+pi) [rad] (type:float)
  19539. yaw : Yaw angle (-pi..+pi) [rad] (type:float)
  19540. rollspeed : Roll angular speed [rad/s] (type:float)
  19541. pitchspeed : Pitch angular speed [rad/s] (type:float)
  19542. yawspeed : Yaw angular speed [rad/s] (type:float)
  19543. """
  19544. return MAVLink_attitude_message(time_boot_ms, roll, pitch, yaw, rollspeed, pitchspeed, yawspeed)
  19545. def attitude_send(self, time_boot_ms: int, roll: float, pitch: float, yaw: float, rollspeed: float, pitchspeed: float, yawspeed: float, force_mavlink1: bool = False) -> None:
  19546. """
  19547. The attitude in the aeronautical frame (right-handed, Z-down, Y-right,
  19548. X-front, ZYX, intrinsic).
  19549. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19550. roll : Roll angle (-pi..+pi) [rad] (type:float)
  19551. pitch : Pitch angle (-pi..+pi) [rad] (type:float)
  19552. yaw : Yaw angle (-pi..+pi) [rad] (type:float)
  19553. rollspeed : Roll angular speed [rad/s] (type:float)
  19554. pitchspeed : Pitch angular speed [rad/s] (type:float)
  19555. yawspeed : Yaw angular speed [rad/s] (type:float)
  19556. """
  19557. self.send(self.attitude_encode(time_boot_ms, roll, pitch, yaw, rollspeed, pitchspeed, yawspeed), force_mavlink1=force_mavlink1)
  19558. def attitude_quaternion_encode(self, time_boot_ms: int, q1: float, q2: float, q3: float, q4: float, rollspeed: float, pitchspeed: float, yawspeed: float, repr_offset_q: Sequence[float] = (0, 0, 0, 0)) -> MAVLink_attitude_quaternion_message:
  19559. """
  19560. The attitude in the aeronautical frame (right-handed, Z-down, X-front,
  19561. Y-right), expressed as quaternion. Quaternion order is w, x,
  19562. y, z and a zero rotation would be expressed as (1 0 0 0).
  19563. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19564. q1 : Quaternion component 1, w (1 in null-rotation) (type:float)
  19565. q2 : Quaternion component 2, x (0 in null-rotation) (type:float)
  19566. q3 : Quaternion component 3, y (0 in null-rotation) (type:float)
  19567. q4 : Quaternion component 4, z (0 in null-rotation) (type:float)
  19568. rollspeed : Roll angular speed [rad/s] (type:float)
  19569. pitchspeed : Pitch angular speed [rad/s] (type:float)
  19570. yawspeed : Yaw angular speed [rad/s] (type:float)
  19571. repr_offset_q : Rotation offset by which the attitude quaternion and angular speed vector should be rotated for user display (quaternion with [w, x, y, z] order, zero-rotation is [1, 0, 0, 0], send [0, 0, 0, 0] if field not supported). This field is intended for systems in which the reference attitude may change during flight. For example, tailsitters VTOLs rotate their reference attitude by 90 degrees between hover mode and fixed wing mode, thus repr_offset_q is equal to [1, 0, 0, 0] in hover mode and equal to [0.7071, 0, 0.7071, 0] in fixed wing mode. (type:float)
  19572. """
  19573. return MAVLink_attitude_quaternion_message(time_boot_ms, q1, q2, q3, q4, rollspeed, pitchspeed, yawspeed, repr_offset_q)
  19574. def attitude_quaternion_send(self, time_boot_ms: int, q1: float, q2: float, q3: float, q4: float, rollspeed: float, pitchspeed: float, yawspeed: float, repr_offset_q: Sequence[float] = (0, 0, 0, 0), force_mavlink1: bool = False) -> None:
  19575. """
  19576. The attitude in the aeronautical frame (right-handed, Z-down, X-front,
  19577. Y-right), expressed as quaternion. Quaternion order is w, x,
  19578. y, z and a zero rotation would be expressed as (1 0 0 0).
  19579. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19580. q1 : Quaternion component 1, w (1 in null-rotation) (type:float)
  19581. q2 : Quaternion component 2, x (0 in null-rotation) (type:float)
  19582. q3 : Quaternion component 3, y (0 in null-rotation) (type:float)
  19583. q4 : Quaternion component 4, z (0 in null-rotation) (type:float)
  19584. rollspeed : Roll angular speed [rad/s] (type:float)
  19585. pitchspeed : Pitch angular speed [rad/s] (type:float)
  19586. yawspeed : Yaw angular speed [rad/s] (type:float)
  19587. repr_offset_q : Rotation offset by which the attitude quaternion and angular speed vector should be rotated for user display (quaternion with [w, x, y, z] order, zero-rotation is [1, 0, 0, 0], send [0, 0, 0, 0] if field not supported). This field is intended for systems in which the reference attitude may change during flight. For example, tailsitters VTOLs rotate their reference attitude by 90 degrees between hover mode and fixed wing mode, thus repr_offset_q is equal to [1, 0, 0, 0] in hover mode and equal to [0.7071, 0, 0.7071, 0] in fixed wing mode. (type:float)
  19588. """
  19589. self.send(self.attitude_quaternion_encode(time_boot_ms, q1, q2, q3, q4, rollspeed, pitchspeed, yawspeed, repr_offset_q), force_mavlink1=force_mavlink1)
  19590. def local_position_ned_encode(self, time_boot_ms: int, x: float, y: float, z: float, vx: float, vy: float, vz: float) -> MAVLink_local_position_ned_message:
  19591. """
  19592. The filtered local position (e.g. fused computer vision and
  19593. accelerometers). Coordinate frame is right-handed, Z-axis down
  19594. (aeronautical frame, NED / north-east-down convention)
  19595. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19596. x : X Position [m] (type:float)
  19597. y : Y Position [m] (type:float)
  19598. z : Z Position [m] (type:float)
  19599. vx : X Speed [m/s] (type:float)
  19600. vy : Y Speed [m/s] (type:float)
  19601. vz : Z Speed [m/s] (type:float)
  19602. """
  19603. return MAVLink_local_position_ned_message(time_boot_ms, x, y, z, vx, vy, vz)
  19604. def local_position_ned_send(self, time_boot_ms: int, x: float, y: float, z: float, vx: float, vy: float, vz: float, force_mavlink1: bool = False) -> None:
  19605. """
  19606. The filtered local position (e.g. fused computer vision and
  19607. accelerometers). Coordinate frame is right-handed, Z-axis down
  19608. (aeronautical frame, NED / north-east-down convention)
  19609. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19610. x : X Position [m] (type:float)
  19611. y : Y Position [m] (type:float)
  19612. z : Z Position [m] (type:float)
  19613. vx : X Speed [m/s] (type:float)
  19614. vy : Y Speed [m/s] (type:float)
  19615. vz : Z Speed [m/s] (type:float)
  19616. """
  19617. self.send(self.local_position_ned_encode(time_boot_ms, x, y, z, vx, vy, vz), force_mavlink1=force_mavlink1)
  19618. def global_position_int_encode(self, time_boot_ms: int, lat: int, lon: int, alt: int, relative_alt: int, vx: int, vy: int, vz: int, hdg: int) -> MAVLink_global_position_int_message:
  19619. """
  19620. The filtered global position (e.g. fused GPS and accelerometers). The
  19621. position is in GPS-frame (right-handed, Z-up). It
  19622. is designed as scaled integer message since the resolution of
  19623. float is not sufficient.
  19624. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19625. lat : Latitude, expressed [degE7] (type:int32_t)
  19626. lon : Longitude, expressed [degE7] (type:int32_t)
  19627. alt : Altitude (MSL). Note that virtually all GPS modules provide both WGS84 and MSL. [mm] (type:int32_t)
  19628. relative_alt : Altitude above ground [mm] (type:int32_t)
  19629. vx : Ground X Speed (Latitude, positive north) [cm/s] (type:int16_t)
  19630. vy : Ground Y Speed (Longitude, positive east) [cm/s] (type:int16_t)
  19631. vz : Ground Z Speed (Altitude, positive down) [cm/s] (type:int16_t)
  19632. hdg : Vehicle heading (yaw angle), 0.0..359.99 degrees. If unknown, set to: UINT16_MAX [cdeg] (type:uint16_t)
  19633. """
  19634. return MAVLink_global_position_int_message(time_boot_ms, lat, lon, alt, relative_alt, vx, vy, vz, hdg)
  19635. def global_position_int_send(self, time_boot_ms: int, lat: int, lon: int, alt: int, relative_alt: int, vx: int, vy: int, vz: int, hdg: int, force_mavlink1: bool = False) -> None:
  19636. """
  19637. The filtered global position (e.g. fused GPS and accelerometers). The
  19638. position is in GPS-frame (right-handed, Z-up). It
  19639. is designed as scaled integer message since the resolution of
  19640. float is not sufficient.
  19641. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19642. lat : Latitude, expressed [degE7] (type:int32_t)
  19643. lon : Longitude, expressed [degE7] (type:int32_t)
  19644. alt : Altitude (MSL). Note that virtually all GPS modules provide both WGS84 and MSL. [mm] (type:int32_t)
  19645. relative_alt : Altitude above ground [mm] (type:int32_t)
  19646. vx : Ground X Speed (Latitude, positive north) [cm/s] (type:int16_t)
  19647. vy : Ground Y Speed (Longitude, positive east) [cm/s] (type:int16_t)
  19648. vz : Ground Z Speed (Altitude, positive down) [cm/s] (type:int16_t)
  19649. hdg : Vehicle heading (yaw angle), 0.0..359.99 degrees. If unknown, set to: UINT16_MAX [cdeg] (type:uint16_t)
  19650. """
  19651. self.send(self.global_position_int_encode(time_boot_ms, lat, lon, alt, relative_alt, vx, vy, vz, hdg), force_mavlink1=force_mavlink1)
  19652. def rc_channels_scaled_encode(self, time_boot_ms: int, port: int, chan1_scaled: int, chan2_scaled: int, chan3_scaled: int, chan4_scaled: int, chan5_scaled: int, chan6_scaled: int, chan7_scaled: int, chan8_scaled: int, rssi: int) -> MAVLink_rc_channels_scaled_message:
  19653. """
  19654. The scaled values of the RC channels received: (-100%) -10000, (0%) 0,
  19655. (100%) 10000. Channels that are inactive should be set to
  19656. INT16_MAX.
  19657. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19658. port : Servo output port (set of 8 outputs = 1 port). Flight stacks running on Pixhawk should use: 0 = MAIN, 1 = AUX. (type:uint8_t)
  19659. chan1_scaled : RC channel 1 value scaled. (type:int16_t)
  19660. chan2_scaled : RC channel 2 value scaled. (type:int16_t)
  19661. chan3_scaled : RC channel 3 value scaled. (type:int16_t)
  19662. chan4_scaled : RC channel 4 value scaled. (type:int16_t)
  19663. chan5_scaled : RC channel 5 value scaled. (type:int16_t)
  19664. chan6_scaled : RC channel 6 value scaled. (type:int16_t)
  19665. chan7_scaled : RC channel 7 value scaled. (type:int16_t)
  19666. chan8_scaled : RC channel 8 value scaled. (type:int16_t)
  19667. rssi : Receive signal strength indicator in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown. (type:uint8_t)
  19668. """
  19669. return MAVLink_rc_channels_scaled_message(time_boot_ms, port, chan1_scaled, chan2_scaled, chan3_scaled, chan4_scaled, chan5_scaled, chan6_scaled, chan7_scaled, chan8_scaled, rssi)
  19670. def rc_channels_scaled_send(self, time_boot_ms: int, port: int, chan1_scaled: int, chan2_scaled: int, chan3_scaled: int, chan4_scaled: int, chan5_scaled: int, chan6_scaled: int, chan7_scaled: int, chan8_scaled: int, rssi: int, force_mavlink1: bool = False) -> None:
  19671. """
  19672. The scaled values of the RC channels received: (-100%) -10000, (0%) 0,
  19673. (100%) 10000. Channels that are inactive should be set to
  19674. INT16_MAX.
  19675. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19676. port : Servo output port (set of 8 outputs = 1 port). Flight stacks running on Pixhawk should use: 0 = MAIN, 1 = AUX. (type:uint8_t)
  19677. chan1_scaled : RC channel 1 value scaled. (type:int16_t)
  19678. chan2_scaled : RC channel 2 value scaled. (type:int16_t)
  19679. chan3_scaled : RC channel 3 value scaled. (type:int16_t)
  19680. chan4_scaled : RC channel 4 value scaled. (type:int16_t)
  19681. chan5_scaled : RC channel 5 value scaled. (type:int16_t)
  19682. chan6_scaled : RC channel 6 value scaled. (type:int16_t)
  19683. chan7_scaled : RC channel 7 value scaled. (type:int16_t)
  19684. chan8_scaled : RC channel 8 value scaled. (type:int16_t)
  19685. rssi : Receive signal strength indicator in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown. (type:uint8_t)
  19686. """
  19687. self.send(self.rc_channels_scaled_encode(time_boot_ms, port, chan1_scaled, chan2_scaled, chan3_scaled, chan4_scaled, chan5_scaled, chan6_scaled, chan7_scaled, chan8_scaled, rssi), force_mavlink1=force_mavlink1)
  19688. def rc_channels_raw_encode(self, time_boot_ms: int, port: int, chan1_raw: int, chan2_raw: int, chan3_raw: int, chan4_raw: int, chan5_raw: int, chan6_raw: int, chan7_raw: int, chan8_raw: int, rssi: int) -> MAVLink_rc_channels_raw_message:
  19689. """
  19690. The RAW values of the RC channels received. The standard PPM
  19691. modulation is as follows: 1000 microseconds: 0%, 2000
  19692. microseconds: 100%. A value of UINT16_MAX implies the channel
  19693. is unused. Individual receivers/transmitters might violate
  19694. this specification.
  19695. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19696. port : Servo output port (set of 8 outputs = 1 port). Flight stacks running on Pixhawk should use: 0 = MAIN, 1 = AUX. (type:uint8_t)
  19697. chan1_raw : RC channel 1 value. [us] (type:uint16_t)
  19698. chan2_raw : RC channel 2 value. [us] (type:uint16_t)
  19699. chan3_raw : RC channel 3 value. [us] (type:uint16_t)
  19700. chan4_raw : RC channel 4 value. [us] (type:uint16_t)
  19701. chan5_raw : RC channel 5 value. [us] (type:uint16_t)
  19702. chan6_raw : RC channel 6 value. [us] (type:uint16_t)
  19703. chan7_raw : RC channel 7 value. [us] (type:uint16_t)
  19704. chan8_raw : RC channel 8 value. [us] (type:uint16_t)
  19705. rssi : Receive signal strength indicator in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown. (type:uint8_t)
  19706. """
  19707. return MAVLink_rc_channels_raw_message(time_boot_ms, port, chan1_raw, chan2_raw, chan3_raw, chan4_raw, chan5_raw, chan6_raw, chan7_raw, chan8_raw, rssi)
  19708. def rc_channels_raw_send(self, time_boot_ms: int, port: int, chan1_raw: int, chan2_raw: int, chan3_raw: int, chan4_raw: int, chan5_raw: int, chan6_raw: int, chan7_raw: int, chan8_raw: int, rssi: int, force_mavlink1: bool = False) -> None:
  19709. """
  19710. The RAW values of the RC channels received. The standard PPM
  19711. modulation is as follows: 1000 microseconds: 0%, 2000
  19712. microseconds: 100%. A value of UINT16_MAX implies the channel
  19713. is unused. Individual receivers/transmitters might violate
  19714. this specification.
  19715. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19716. port : Servo output port (set of 8 outputs = 1 port). Flight stacks running on Pixhawk should use: 0 = MAIN, 1 = AUX. (type:uint8_t)
  19717. chan1_raw : RC channel 1 value. [us] (type:uint16_t)
  19718. chan2_raw : RC channel 2 value. [us] (type:uint16_t)
  19719. chan3_raw : RC channel 3 value. [us] (type:uint16_t)
  19720. chan4_raw : RC channel 4 value. [us] (type:uint16_t)
  19721. chan5_raw : RC channel 5 value. [us] (type:uint16_t)
  19722. chan6_raw : RC channel 6 value. [us] (type:uint16_t)
  19723. chan7_raw : RC channel 7 value. [us] (type:uint16_t)
  19724. chan8_raw : RC channel 8 value. [us] (type:uint16_t)
  19725. rssi : Receive signal strength indicator in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown. (type:uint8_t)
  19726. """
  19727. self.send(self.rc_channels_raw_encode(time_boot_ms, port, chan1_raw, chan2_raw, chan3_raw, chan4_raw, chan5_raw, chan6_raw, chan7_raw, chan8_raw, rssi), force_mavlink1=force_mavlink1)
  19728. def servo_output_raw_encode(self, time_usec: int, port: int, servo1_raw: int, servo2_raw: int, servo3_raw: int, servo4_raw: int, servo5_raw: int, servo6_raw: int, servo7_raw: int, servo8_raw: int, servo9_raw: int = 0, servo10_raw: int = 0, servo11_raw: int = 0, servo12_raw: int = 0, servo13_raw: int = 0, servo14_raw: int = 0, servo15_raw: int = 0, servo16_raw: int = 0) -> MAVLink_servo_output_raw_message:
  19729. """
  19730. Superseded by ACTUATOR_OUTPUT_STATUS. The RAW values of the servo
  19731. outputs (for RC input from the remote, use the RC_CHANNELS
  19732. messages). The standard PPM modulation is as follows: 1000
  19733. microseconds: 0%, 2000 microseconds: 100%.
  19734. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint32_t)
  19735. port : Servo output port (set of 8 outputs = 1 port). Flight stacks running on Pixhawk should use: 0 = MAIN, 1 = AUX. (type:uint8_t)
  19736. servo1_raw : Servo output 1 value [us] (type:uint16_t)
  19737. servo2_raw : Servo output 2 value [us] (type:uint16_t)
  19738. servo3_raw : Servo output 3 value [us] (type:uint16_t)
  19739. servo4_raw : Servo output 4 value [us] (type:uint16_t)
  19740. servo5_raw : Servo output 5 value [us] (type:uint16_t)
  19741. servo6_raw : Servo output 6 value [us] (type:uint16_t)
  19742. servo7_raw : Servo output 7 value [us] (type:uint16_t)
  19743. servo8_raw : Servo output 8 value [us] (type:uint16_t)
  19744. servo9_raw : Servo output 9 value [us] (type:uint16_t)
  19745. servo10_raw : Servo output 10 value [us] (type:uint16_t)
  19746. servo11_raw : Servo output 11 value [us] (type:uint16_t)
  19747. servo12_raw : Servo output 12 value [us] (type:uint16_t)
  19748. servo13_raw : Servo output 13 value [us] (type:uint16_t)
  19749. servo14_raw : Servo output 14 value [us] (type:uint16_t)
  19750. servo15_raw : Servo output 15 value [us] (type:uint16_t)
  19751. servo16_raw : Servo output 16 value [us] (type:uint16_t)
  19752. """
  19753. return MAVLink_servo_output_raw_message(time_usec, port, servo1_raw, servo2_raw, servo3_raw, servo4_raw, servo5_raw, servo6_raw, servo7_raw, servo8_raw, servo9_raw, servo10_raw, servo11_raw, servo12_raw, servo13_raw, servo14_raw, servo15_raw, servo16_raw)
  19754. def servo_output_raw_send(self, time_usec: int, port: int, servo1_raw: int, servo2_raw: int, servo3_raw: int, servo4_raw: int, servo5_raw: int, servo6_raw: int, servo7_raw: int, servo8_raw: int, servo9_raw: int = 0, servo10_raw: int = 0, servo11_raw: int = 0, servo12_raw: int = 0, servo13_raw: int = 0, servo14_raw: int = 0, servo15_raw: int = 0, servo16_raw: int = 0, force_mavlink1: bool = False) -> None:
  19755. """
  19756. Superseded by ACTUATOR_OUTPUT_STATUS. The RAW values of the servo
  19757. outputs (for RC input from the remote, use the RC_CHANNELS
  19758. messages). The standard PPM modulation is as follows: 1000
  19759. microseconds: 0%, 2000 microseconds: 100%.
  19760. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint32_t)
  19761. port : Servo output port (set of 8 outputs = 1 port). Flight stacks running on Pixhawk should use: 0 = MAIN, 1 = AUX. (type:uint8_t)
  19762. servo1_raw : Servo output 1 value [us] (type:uint16_t)
  19763. servo2_raw : Servo output 2 value [us] (type:uint16_t)
  19764. servo3_raw : Servo output 3 value [us] (type:uint16_t)
  19765. servo4_raw : Servo output 4 value [us] (type:uint16_t)
  19766. servo5_raw : Servo output 5 value [us] (type:uint16_t)
  19767. servo6_raw : Servo output 6 value [us] (type:uint16_t)
  19768. servo7_raw : Servo output 7 value [us] (type:uint16_t)
  19769. servo8_raw : Servo output 8 value [us] (type:uint16_t)
  19770. servo9_raw : Servo output 9 value [us] (type:uint16_t)
  19771. servo10_raw : Servo output 10 value [us] (type:uint16_t)
  19772. servo11_raw : Servo output 11 value [us] (type:uint16_t)
  19773. servo12_raw : Servo output 12 value [us] (type:uint16_t)
  19774. servo13_raw : Servo output 13 value [us] (type:uint16_t)
  19775. servo14_raw : Servo output 14 value [us] (type:uint16_t)
  19776. servo15_raw : Servo output 15 value [us] (type:uint16_t)
  19777. servo16_raw : Servo output 16 value [us] (type:uint16_t)
  19778. """
  19779. self.send(self.servo_output_raw_encode(time_usec, port, servo1_raw, servo2_raw, servo3_raw, servo4_raw, servo5_raw, servo6_raw, servo7_raw, servo8_raw, servo9_raw, servo10_raw, servo11_raw, servo12_raw, servo13_raw, servo14_raw, servo15_raw, servo16_raw), force_mavlink1=force_mavlink1)
  19780. def mission_request_partial_list_encode(self, target_system: int, target_component: int, start_index: int, end_index: int, mission_type: int = 0) -> MAVLink_mission_request_partial_list_message:
  19781. """
  19782. Request a partial list of mission items from the system/component.
  19783. https://mavlink.io/en/services/mission.html. If start and end
  19784. index are the same, just send one waypoint.
  19785. target_system : System ID (type:uint8_t)
  19786. target_component : Component ID (type:uint8_t)
  19787. start_index : Start index (type:int16_t)
  19788. end_index : End index, -1 by default (-1: send list to end). Else a valid index of the list (type:int16_t)
  19789. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  19790. """
  19791. return MAVLink_mission_request_partial_list_message(target_system, target_component, start_index, end_index, mission_type)
  19792. def mission_request_partial_list_send(self, target_system: int, target_component: int, start_index: int, end_index: int, mission_type: int = 0, force_mavlink1: bool = False) -> None:
  19793. """
  19794. Request a partial list of mission items from the system/component.
  19795. https://mavlink.io/en/services/mission.html. If start and end
  19796. index are the same, just send one waypoint.
  19797. target_system : System ID (type:uint8_t)
  19798. target_component : Component ID (type:uint8_t)
  19799. start_index : Start index (type:int16_t)
  19800. end_index : End index, -1 by default (-1: send list to end). Else a valid index of the list (type:int16_t)
  19801. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  19802. """
  19803. self.send(self.mission_request_partial_list_encode(target_system, target_component, start_index, end_index, mission_type), force_mavlink1=force_mavlink1)
  19804. def mission_write_partial_list_encode(self, target_system: int, target_component: int, start_index: int, end_index: int, mission_type: int = 0) -> MAVLink_mission_write_partial_list_message:
  19805. """
  19806. This message is sent to the MAV to write a partial list. If start
  19807. index == end index, only one item will be transmitted /
  19808. updated. If the start index is NOT 0 and above the current
  19809. list size, this request should be REJECTED!
  19810. target_system : System ID (type:uint8_t)
  19811. target_component : Component ID (type:uint8_t)
  19812. start_index : Start index. Must be smaller / equal to the largest index of the current onboard list. (type:int16_t)
  19813. end_index : End index, equal or greater than start index. (type:int16_t)
  19814. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  19815. """
  19816. return MAVLink_mission_write_partial_list_message(target_system, target_component, start_index, end_index, mission_type)
  19817. def mission_write_partial_list_send(self, target_system: int, target_component: int, start_index: int, end_index: int, mission_type: int = 0, force_mavlink1: bool = False) -> None:
  19818. """
  19819. This message is sent to the MAV to write a partial list. If start
  19820. index == end index, only one item will be transmitted /
  19821. updated. If the start index is NOT 0 and above the current
  19822. list size, this request should be REJECTED!
  19823. target_system : System ID (type:uint8_t)
  19824. target_component : Component ID (type:uint8_t)
  19825. start_index : Start index. Must be smaller / equal to the largest index of the current onboard list. (type:int16_t)
  19826. end_index : End index, equal or greater than start index. (type:int16_t)
  19827. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  19828. """
  19829. self.send(self.mission_write_partial_list_encode(target_system, target_component, start_index, end_index, mission_type), force_mavlink1=force_mavlink1)
  19830. def mission_item_encode(self, target_system: int, target_component: int, seq: int, frame: int, command: int, current: int, autocontinue: int, param1: float, param2: float, param3: float, param4: float, x: float, y: float, z: float, mission_type: int = 0) -> MAVLink_mission_item_message:
  19831. """
  19832. Message encoding a mission item. This message is emitted to announce
  19833. the presence of a mission item and to set a mission item on
  19834. the system. The mission item can be either in x, y, z meters
  19835. (type: LOCAL) or x:lat, y:lon, z:altitude. Local frame is
  19836. Z-down, right handed (NED), global frame is Z-up, right handed
  19837. (ENU). NaN may be used to indicate an optional/default value
  19838. (e.g. to use the system's current latitude or yaw rather than
  19839. a specific value). See also
  19840. https://mavlink.io/en/services/mission.html.
  19841. target_system : System ID (type:uint8_t)
  19842. target_component : Component ID (type:uint8_t)
  19843. seq : Sequence (type:uint16_t)
  19844. frame : The coordinate system of the waypoint. (type:uint8_t, values:MAV_FRAME)
  19845. command : The scheduled action for the waypoint. (type:uint16_t, values:MAV_CMD)
  19846. current : false:0, true:1 (type:uint8_t)
  19847. autocontinue : Autocontinue to next waypoint. 0: false, 1: true. Set false to pause mission after the item completes. (type:uint8_t)
  19848. param1 : PARAM1, see MAV_CMD enum (type:float)
  19849. param2 : PARAM2, see MAV_CMD enum (type:float)
  19850. param3 : PARAM3, see MAV_CMD enum (type:float)
  19851. param4 : PARAM4, see MAV_CMD enum (type:float)
  19852. x : PARAM5 / local: X coordinate, global: latitude (type:float)
  19853. y : PARAM6 / local: Y coordinate, global: longitude (type:float)
  19854. z : PARAM7 / local: Z coordinate, global: altitude (relative or absolute, depending on frame). (type:float)
  19855. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  19856. """
  19857. return MAVLink_mission_item_message(target_system, target_component, seq, frame, command, current, autocontinue, param1, param2, param3, param4, x, y, z, mission_type)
  19858. def mission_item_send(self, target_system: int, target_component: int, seq: int, frame: int, command: int, current: int, autocontinue: int, param1: float, param2: float, param3: float, param4: float, x: float, y: float, z: float, mission_type: int = 0, force_mavlink1: bool = False) -> None:
  19859. """
  19860. Message encoding a mission item. This message is emitted to announce
  19861. the presence of a mission item and to set a mission item on
  19862. the system. The mission item can be either in x, y, z meters
  19863. (type: LOCAL) or x:lat, y:lon, z:altitude. Local frame is
  19864. Z-down, right handed (NED), global frame is Z-up, right handed
  19865. (ENU). NaN may be used to indicate an optional/default value
  19866. (e.g. to use the system's current latitude or yaw rather than
  19867. a specific value). See also
  19868. https://mavlink.io/en/services/mission.html.
  19869. target_system : System ID (type:uint8_t)
  19870. target_component : Component ID (type:uint8_t)
  19871. seq : Sequence (type:uint16_t)
  19872. frame : The coordinate system of the waypoint. (type:uint8_t, values:MAV_FRAME)
  19873. command : The scheduled action for the waypoint. (type:uint16_t, values:MAV_CMD)
  19874. current : false:0, true:1 (type:uint8_t)
  19875. autocontinue : Autocontinue to next waypoint. 0: false, 1: true. Set false to pause mission after the item completes. (type:uint8_t)
  19876. param1 : PARAM1, see MAV_CMD enum (type:float)
  19877. param2 : PARAM2, see MAV_CMD enum (type:float)
  19878. param3 : PARAM3, see MAV_CMD enum (type:float)
  19879. param4 : PARAM4, see MAV_CMD enum (type:float)
  19880. x : PARAM5 / local: X coordinate, global: latitude (type:float)
  19881. y : PARAM6 / local: Y coordinate, global: longitude (type:float)
  19882. z : PARAM7 / local: Z coordinate, global: altitude (relative or absolute, depending on frame). (type:float)
  19883. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  19884. """
  19885. self.send(self.mission_item_encode(target_system, target_component, seq, frame, command, current, autocontinue, param1, param2, param3, param4, x, y, z, mission_type), force_mavlink1=force_mavlink1)
  19886. def mission_request_encode(self, target_system: int, target_component: int, seq: int, mission_type: int = 0) -> MAVLink_mission_request_message:
  19887. """
  19888. Request the information of the mission item with the sequence number
  19889. seq. The response of the system to this message should be a
  19890. MISSION_ITEM message.
  19891. https://mavlink.io/en/services/mission.html
  19892. target_system : System ID (type:uint8_t)
  19893. target_component : Component ID (type:uint8_t)
  19894. seq : Sequence (type:uint16_t)
  19895. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  19896. """
  19897. return MAVLink_mission_request_message(target_system, target_component, seq, mission_type)
  19898. def mission_request_send(self, target_system: int, target_component: int, seq: int, mission_type: int = 0, force_mavlink1: bool = False) -> None:
  19899. """
  19900. Request the information of the mission item with the sequence number
  19901. seq. The response of the system to this message should be a
  19902. MISSION_ITEM message.
  19903. https://mavlink.io/en/services/mission.html
  19904. target_system : System ID (type:uint8_t)
  19905. target_component : Component ID (type:uint8_t)
  19906. seq : Sequence (type:uint16_t)
  19907. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  19908. """
  19909. self.send(self.mission_request_encode(target_system, target_component, seq, mission_type), force_mavlink1=force_mavlink1)
  19910. def mission_set_current_encode(self, target_system: int, target_component: int, seq: int) -> MAVLink_mission_set_current_message:
  19911. """
  19912. Set the mission item with sequence number seq as the current item and
  19913. emit MISSION_CURRENT (whether or not the mission number
  19914. changed). If a mission is currently being executed,
  19915. the system will continue to this new mission item on the
  19916. shortest path, skipping any intermediate mission items.
  19917. Note that mission jump repeat counters are not reset (see
  19918. MAV_CMD_DO_JUMP param2). This message may trigger a
  19919. mission state-machine change on some systems: for example from
  19920. MISSION_STATE_NOT_STARTED or MISSION_STATE_PAUSED to
  19921. MISSION_STATE_ACTIVE. If the system is in mission
  19922. mode, on those systems this command might therefore start,
  19923. restart or resume the mission. If the system is not in
  19924. mission mode this message must not trigger a switch to mission
  19925. mode.
  19926. target_system : System ID (type:uint8_t)
  19927. target_component : Component ID (type:uint8_t)
  19928. seq : Sequence (type:uint16_t)
  19929. """
  19930. return MAVLink_mission_set_current_message(target_system, target_component, seq)
  19931. def mission_set_current_send(self, target_system: int, target_component: int, seq: int, force_mavlink1: bool = False) -> None:
  19932. """
  19933. Set the mission item with sequence number seq as the current item and
  19934. emit MISSION_CURRENT (whether or not the mission number
  19935. changed). If a mission is currently being executed,
  19936. the system will continue to this new mission item on the
  19937. shortest path, skipping any intermediate mission items.
  19938. Note that mission jump repeat counters are not reset (see
  19939. MAV_CMD_DO_JUMP param2). This message may trigger a
  19940. mission state-machine change on some systems: for example from
  19941. MISSION_STATE_NOT_STARTED or MISSION_STATE_PAUSED to
  19942. MISSION_STATE_ACTIVE. If the system is in mission
  19943. mode, on those systems this command might therefore start,
  19944. restart or resume the mission. If the system is not in
  19945. mission mode this message must not trigger a switch to mission
  19946. mode.
  19947. target_system : System ID (type:uint8_t)
  19948. target_component : Component ID (type:uint8_t)
  19949. seq : Sequence (type:uint16_t)
  19950. """
  19951. self.send(self.mission_set_current_encode(target_system, target_component, seq), force_mavlink1=force_mavlink1)
  19952. def mission_current_encode(self, seq: int, total: int = 0, mission_state: int = 0, mission_mode: int = 0, mission_id: int = 0, fence_id: int = 0, rally_points_id: int = 0) -> MAVLink_mission_current_message:
  19953. """
  19954. Message that announces the sequence number of the current target
  19955. mission item (that the system will fly towards/execute when
  19956. the mission is running). This message should be
  19957. streamed all the time (nominally at 1Hz). This message
  19958. should be emitted following a call to
  19959. MAV_CMD_DO_SET_MISSION_CURRENT or SET_MISSION_CURRENT.
  19960. seq : Sequence (type:uint16_t)
  19961. total : Total number of mission items on vehicle (on last item, sequence == total). If the autopilot stores its home location as part of the mission this will be excluded from the total. 0: Not supported, UINT16_MAX if no mission is present on the vehicle. (type:uint16_t)
  19962. mission_state : Mission state machine state. MISSION_STATE_UNKNOWN if state reporting not supported. (type:uint8_t, values:MISSION_STATE)
  19963. mission_mode : Vehicle is in a mode that can execute mission items or suspended. 0: Unknown, 1: In mission mode, 2: Suspended (not in mission mode). (type:uint8_t)
  19964. mission_id : Id of current on-vehicle mission plan, or 0 if IDs are not supported or there is no mission loaded. GCS can use this to track changes to the mission plan type. The same value is returned on mission upload (in the MISSION_ACK). (type:uint32_t)
  19965. fence_id : Id of current on-vehicle fence plan, or 0 if IDs are not supported or there is no fence loaded. GCS can use this to track changes to the fence plan type. The same value is returned on fence upload (in the MISSION_ACK). (type:uint32_t)
  19966. rally_points_id : Id of current on-vehicle rally point plan, or 0 if IDs are not supported or there are no rally points loaded. GCS can use this to track changes to the rally point plan type. The same value is returned on rally point upload (in the MISSION_ACK). (type:uint32_t)
  19967. """
  19968. return MAVLink_mission_current_message(seq, total, mission_state, mission_mode, mission_id, fence_id, rally_points_id)
  19969. def mission_current_send(self, seq: int, total: int = 0, mission_state: int = 0, mission_mode: int = 0, mission_id: int = 0, fence_id: int = 0, rally_points_id: int = 0, force_mavlink1: bool = False) -> None:
  19970. """
  19971. Message that announces the sequence number of the current target
  19972. mission item (that the system will fly towards/execute when
  19973. the mission is running). This message should be
  19974. streamed all the time (nominally at 1Hz). This message
  19975. should be emitted following a call to
  19976. MAV_CMD_DO_SET_MISSION_CURRENT or SET_MISSION_CURRENT.
  19977. seq : Sequence (type:uint16_t)
  19978. total : Total number of mission items on vehicle (on last item, sequence == total). If the autopilot stores its home location as part of the mission this will be excluded from the total. 0: Not supported, UINT16_MAX if no mission is present on the vehicle. (type:uint16_t)
  19979. mission_state : Mission state machine state. MISSION_STATE_UNKNOWN if state reporting not supported. (type:uint8_t, values:MISSION_STATE)
  19980. mission_mode : Vehicle is in a mode that can execute mission items or suspended. 0: Unknown, 1: In mission mode, 2: Suspended (not in mission mode). (type:uint8_t)
  19981. mission_id : Id of current on-vehicle mission plan, or 0 if IDs are not supported or there is no mission loaded. GCS can use this to track changes to the mission plan type. The same value is returned on mission upload (in the MISSION_ACK). (type:uint32_t)
  19982. fence_id : Id of current on-vehicle fence plan, or 0 if IDs are not supported or there is no fence loaded. GCS can use this to track changes to the fence plan type. The same value is returned on fence upload (in the MISSION_ACK). (type:uint32_t)
  19983. rally_points_id : Id of current on-vehicle rally point plan, or 0 if IDs are not supported or there are no rally points loaded. GCS can use this to track changes to the rally point plan type. The same value is returned on rally point upload (in the MISSION_ACK). (type:uint32_t)
  19984. """
  19985. self.send(self.mission_current_encode(seq, total, mission_state, mission_mode, mission_id, fence_id, rally_points_id), force_mavlink1=force_mavlink1)
  19986. def mission_request_list_encode(self, target_system: int, target_component: int, mission_type: int = 0) -> MAVLink_mission_request_list_message:
  19987. """
  19988. Request the overall list of mission items from the system/component.
  19989. target_system : System ID (type:uint8_t)
  19990. target_component : Component ID (type:uint8_t)
  19991. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  19992. """
  19993. return MAVLink_mission_request_list_message(target_system, target_component, mission_type)
  19994. def mission_request_list_send(self, target_system: int, target_component: int, mission_type: int = 0, force_mavlink1: bool = False) -> None:
  19995. """
  19996. Request the overall list of mission items from the system/component.
  19997. target_system : System ID (type:uint8_t)
  19998. target_component : Component ID (type:uint8_t)
  19999. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  20000. """
  20001. self.send(self.mission_request_list_encode(target_system, target_component, mission_type), force_mavlink1=force_mavlink1)
  20002. def mission_count_encode(self, target_system: int, target_component: int, count: int, mission_type: int = 0, opaque_id: int = 0) -> MAVLink_mission_count_message:
  20003. """
  20004. This message is emitted as response to MISSION_REQUEST_LIST by the MAV
  20005. and to initiate a write transaction. The GCS can then request
  20006. the individual mission item based on the knowledge of the
  20007. total number of waypoints.
  20008. target_system : System ID (type:uint8_t)
  20009. target_component : Component ID (type:uint8_t)
  20010. count : Number of mission items in the sequence (type:uint16_t)
  20011. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  20012. opaque_id : Id of current on-vehicle mission, fence, or rally point plan (on download from vehicle).
  20013. This field is used when downloading a plan from a vehicle to a GCS.
  20014. 0 on upload to the vehicle from GCS.
  20015. 0 if plan ids are not supported.
  20016. The current on-vehicle plan ids are streamed in `MISSION_CURRENT`, allowing a GCS to determine if any part of the plan has changed and needs to be re-uploaded.
  20017. The ids are recalculated by the vehicle when any part of the on-vehicle plan changes (when a new plan is uploaded, the vehicle returns the new id to the GCS in MISSION_ACK). (type:uint32_t)
  20018. """
  20019. return MAVLink_mission_count_message(target_system, target_component, count, mission_type, opaque_id)
  20020. def mission_count_send(self, target_system: int, target_component: int, count: int, mission_type: int = 0, opaque_id: int = 0, force_mavlink1: bool = False) -> None:
  20021. """
  20022. This message is emitted as response to MISSION_REQUEST_LIST by the MAV
  20023. and to initiate a write transaction. The GCS can then request
  20024. the individual mission item based on the knowledge of the
  20025. total number of waypoints.
  20026. target_system : System ID (type:uint8_t)
  20027. target_component : Component ID (type:uint8_t)
  20028. count : Number of mission items in the sequence (type:uint16_t)
  20029. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  20030. opaque_id : Id of current on-vehicle mission, fence, or rally point plan (on download from vehicle).
  20031. This field is used when downloading a plan from a vehicle to a GCS.
  20032. 0 on upload to the vehicle from GCS.
  20033. 0 if plan ids are not supported.
  20034. The current on-vehicle plan ids are streamed in `MISSION_CURRENT`, allowing a GCS to determine if any part of the plan has changed and needs to be re-uploaded.
  20035. The ids are recalculated by the vehicle when any part of the on-vehicle plan changes (when a new plan is uploaded, the vehicle returns the new id to the GCS in MISSION_ACK). (type:uint32_t)
  20036. """
  20037. self.send(self.mission_count_encode(target_system, target_component, count, mission_type, opaque_id), force_mavlink1=force_mavlink1)
  20038. def mission_clear_all_encode(self, target_system: int, target_component: int, mission_type: int = 0) -> MAVLink_mission_clear_all_message:
  20039. """
  20040. Delete all mission items at once.
  20041. target_system : System ID (type:uint8_t)
  20042. target_component : Component ID (type:uint8_t)
  20043. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  20044. """
  20045. return MAVLink_mission_clear_all_message(target_system, target_component, mission_type)
  20046. def mission_clear_all_send(self, target_system: int, target_component: int, mission_type: int = 0, force_mavlink1: bool = False) -> None:
  20047. """
  20048. Delete all mission items at once.
  20049. target_system : System ID (type:uint8_t)
  20050. target_component : Component ID (type:uint8_t)
  20051. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  20052. """
  20053. self.send(self.mission_clear_all_encode(target_system, target_component, mission_type), force_mavlink1=force_mavlink1)
  20054. def mission_item_reached_encode(self, seq: int) -> MAVLink_mission_item_reached_message:
  20055. """
  20056. A certain mission item has been reached. The system will either hold
  20057. this position (or circle on the orbit) or (if the autocontinue
  20058. on the WP was set) continue to the next waypoint.
  20059. seq : Sequence (type:uint16_t)
  20060. """
  20061. return MAVLink_mission_item_reached_message(seq)
  20062. def mission_item_reached_send(self, seq: int, force_mavlink1: bool = False) -> None:
  20063. """
  20064. A certain mission item has been reached. The system will either hold
  20065. this position (or circle on the orbit) or (if the autocontinue
  20066. on the WP was set) continue to the next waypoint.
  20067. seq : Sequence (type:uint16_t)
  20068. """
  20069. self.send(self.mission_item_reached_encode(seq), force_mavlink1=force_mavlink1)
  20070. def mission_ack_encode(self, target_system: int, target_component: int, type: int, mission_type: int = 0, opaque_id: int = 0) -> MAVLink_mission_ack_message:
  20071. """
  20072. Acknowledgment message during waypoint handling. The type field states
  20073. if this message is a positive ack (type=0) or if an error
  20074. happened (type=non-zero).
  20075. target_system : System ID (type:uint8_t)
  20076. target_component : Component ID (type:uint8_t)
  20077. type : Mission result. (type:uint8_t, values:MAV_MISSION_RESULT)
  20078. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  20079. opaque_id : Id of new on-vehicle mission, fence, or rally point plan (on upload to vehicle).
  20080. The id is calculated and returned by a vehicle when a new plan is uploaded by a GCS.
  20081. The only requirement on the id is that it must change when there is any change to the on-vehicle plan type (there is no requirement that the id be globally unique).
  20082. 0 on download from the vehicle to the GCS (on download the ID is set in MISSION_COUNT).
  20083. 0 if plan ids are not supported.
  20084. The current on-vehicle plan ids are streamed in `MISSION_CURRENT`, allowing a GCS to determine if any part of the plan has changed and needs to be re-uploaded. (type:uint32_t)
  20085. """
  20086. return MAVLink_mission_ack_message(target_system, target_component, type, mission_type, opaque_id)
  20087. def mission_ack_send(self, target_system: int, target_component: int, type: int, mission_type: int = 0, opaque_id: int = 0, force_mavlink1: bool = False) -> None:
  20088. """
  20089. Acknowledgment message during waypoint handling. The type field states
  20090. if this message is a positive ack (type=0) or if an error
  20091. happened (type=non-zero).
  20092. target_system : System ID (type:uint8_t)
  20093. target_component : Component ID (type:uint8_t)
  20094. type : Mission result. (type:uint8_t, values:MAV_MISSION_RESULT)
  20095. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  20096. opaque_id : Id of new on-vehicle mission, fence, or rally point plan (on upload to vehicle).
  20097. The id is calculated and returned by a vehicle when a new plan is uploaded by a GCS.
  20098. The only requirement on the id is that it must change when there is any change to the on-vehicle plan type (there is no requirement that the id be globally unique).
  20099. 0 on download from the vehicle to the GCS (on download the ID is set in MISSION_COUNT).
  20100. 0 if plan ids are not supported.
  20101. The current on-vehicle plan ids are streamed in `MISSION_CURRENT`, allowing a GCS to determine if any part of the plan has changed and needs to be re-uploaded. (type:uint32_t)
  20102. """
  20103. self.send(self.mission_ack_encode(target_system, target_component, type, mission_type, opaque_id), force_mavlink1=force_mavlink1)
  20104. def set_gps_global_origin_encode(self, target_system: int, latitude: int, longitude: int, altitude: int, time_usec: int = 0) -> MAVLink_set_gps_global_origin_message:
  20105. """
  20106. Sets the GPS coordinates of the vehicle local origin (0,0,0) position.
  20107. Vehicle should emit GPS_GLOBAL_ORIGIN irrespective of whether
  20108. the origin is changed. This enables transform between the
  20109. local coordinate frame and the global (GPS) coordinate frame,
  20110. which may be necessary when (for example) indoor and outdoor
  20111. settings are connected and the MAV should move from in- to
  20112. outdoor.
  20113. target_system : System ID (type:uint8_t)
  20114. latitude : Latitude (WGS84) [degE7] (type:int32_t)
  20115. longitude : Longitude (WGS84) [degE7] (type:int32_t)
  20116. altitude : Altitude (MSL). Positive for up. [mm] (type:int32_t)
  20117. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  20118. """
  20119. return MAVLink_set_gps_global_origin_message(target_system, latitude, longitude, altitude, time_usec)
  20120. def set_gps_global_origin_send(self, target_system: int, latitude: int, longitude: int, altitude: int, time_usec: int = 0, force_mavlink1: bool = False) -> None:
  20121. """
  20122. Sets the GPS coordinates of the vehicle local origin (0,0,0) position.
  20123. Vehicle should emit GPS_GLOBAL_ORIGIN irrespective of whether
  20124. the origin is changed. This enables transform between the
  20125. local coordinate frame and the global (GPS) coordinate frame,
  20126. which may be necessary when (for example) indoor and outdoor
  20127. settings are connected and the MAV should move from in- to
  20128. outdoor.
  20129. target_system : System ID (type:uint8_t)
  20130. latitude : Latitude (WGS84) [degE7] (type:int32_t)
  20131. longitude : Longitude (WGS84) [degE7] (type:int32_t)
  20132. altitude : Altitude (MSL). Positive for up. [mm] (type:int32_t)
  20133. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  20134. """
  20135. self.send(self.set_gps_global_origin_encode(target_system, latitude, longitude, altitude, time_usec), force_mavlink1=force_mavlink1)
  20136. def gps_global_origin_encode(self, latitude: int, longitude: int, altitude: int, time_usec: int = 0) -> MAVLink_gps_global_origin_message:
  20137. """
  20138. Publishes the GPS coordinates of the vehicle local origin (0,0,0)
  20139. position. Emitted whenever a new GPS-Local position mapping is
  20140. requested or set - e.g. following SET_GPS_GLOBAL_ORIGIN
  20141. message.
  20142. latitude : Latitude (WGS84) [degE7] (type:int32_t)
  20143. longitude : Longitude (WGS84) [degE7] (type:int32_t)
  20144. altitude : Altitude (MSL). Positive for up. [mm] (type:int32_t)
  20145. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  20146. """
  20147. return MAVLink_gps_global_origin_message(latitude, longitude, altitude, time_usec)
  20148. def gps_global_origin_send(self, latitude: int, longitude: int, altitude: int, time_usec: int = 0, force_mavlink1: bool = False) -> None:
  20149. """
  20150. Publishes the GPS coordinates of the vehicle local origin (0,0,0)
  20151. position. Emitted whenever a new GPS-Local position mapping is
  20152. requested or set - e.g. following SET_GPS_GLOBAL_ORIGIN
  20153. message.
  20154. latitude : Latitude (WGS84) [degE7] (type:int32_t)
  20155. longitude : Longitude (WGS84) [degE7] (type:int32_t)
  20156. altitude : Altitude (MSL). Positive for up. [mm] (type:int32_t)
  20157. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  20158. """
  20159. self.send(self.gps_global_origin_encode(latitude, longitude, altitude, time_usec), force_mavlink1=force_mavlink1)
  20160. def param_map_rc_encode(self, target_system: int, target_component: int, param_id: bytes, param_index: int, parameter_rc_channel_index: int, param_value0: float, scale: float, param_value_min: float, param_value_max: float) -> MAVLink_param_map_rc_message:
  20161. """
  20162. Bind a RC channel to a parameter. The parameter should change
  20163. according to the RC channel value.
  20164. target_system : System ID (type:uint8_t)
  20165. target_component : Component ID (type:uint8_t)
  20166. param_id : Onboard parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string (type:char)
  20167. param_index : Parameter index. Send -1 to use the param ID field as identifier (else the param id will be ignored), send -2 to disable any existing map for this rc_channel_index. (type:int16_t)
  20168. parameter_rc_channel_index : Index of parameter RC channel. Not equal to the RC channel id. Typically corresponds to a potentiometer-knob on the RC. (type:uint8_t)
  20169. param_value0 : Initial parameter value (type:float)
  20170. scale : Scale, maps the RC range [-1, 1] to a parameter value (type:float)
  20171. param_value_min : Minimum param value. The protocol does not define if this overwrites an onboard minimum value. (Depends on implementation) (type:float)
  20172. param_value_max : Maximum param value. The protocol does not define if this overwrites an onboard maximum value. (Depends on implementation) (type:float)
  20173. """
  20174. return MAVLink_param_map_rc_message(target_system, target_component, param_id, param_index, parameter_rc_channel_index, param_value0, scale, param_value_min, param_value_max)
  20175. def param_map_rc_send(self, target_system: int, target_component: int, param_id: bytes, param_index: int, parameter_rc_channel_index: int, param_value0: float, scale: float, param_value_min: float, param_value_max: float, force_mavlink1: bool = False) -> None:
  20176. """
  20177. Bind a RC channel to a parameter. The parameter should change
  20178. according to the RC channel value.
  20179. target_system : System ID (type:uint8_t)
  20180. target_component : Component ID (type:uint8_t)
  20181. param_id : Onboard parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string (type:char)
  20182. param_index : Parameter index. Send -1 to use the param ID field as identifier (else the param id will be ignored), send -2 to disable any existing map for this rc_channel_index. (type:int16_t)
  20183. parameter_rc_channel_index : Index of parameter RC channel. Not equal to the RC channel id. Typically corresponds to a potentiometer-knob on the RC. (type:uint8_t)
  20184. param_value0 : Initial parameter value (type:float)
  20185. scale : Scale, maps the RC range [-1, 1] to a parameter value (type:float)
  20186. param_value_min : Minimum param value. The protocol does not define if this overwrites an onboard minimum value. (Depends on implementation) (type:float)
  20187. param_value_max : Maximum param value. The protocol does not define if this overwrites an onboard maximum value. (Depends on implementation) (type:float)
  20188. """
  20189. self.send(self.param_map_rc_encode(target_system, target_component, param_id, param_index, parameter_rc_channel_index, param_value0, scale, param_value_min, param_value_max), force_mavlink1=force_mavlink1)
  20190. def mission_request_int_encode(self, target_system: int, target_component: int, seq: int, mission_type: int = 0) -> MAVLink_mission_request_int_message:
  20191. """
  20192. Request the information of the mission item with the sequence number
  20193. seq. The response of the system to this message should be a
  20194. MISSION_ITEM_INT message.
  20195. https://mavlink.io/en/services/mission.html
  20196. target_system : System ID (type:uint8_t)
  20197. target_component : Component ID (type:uint8_t)
  20198. seq : Sequence (type:uint16_t)
  20199. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  20200. """
  20201. return MAVLink_mission_request_int_message(target_system, target_component, seq, mission_type)
  20202. def mission_request_int_send(self, target_system: int, target_component: int, seq: int, mission_type: int = 0, force_mavlink1: bool = False) -> None:
  20203. """
  20204. Request the information of the mission item with the sequence number
  20205. seq. The response of the system to this message should be a
  20206. MISSION_ITEM_INT message.
  20207. https://mavlink.io/en/services/mission.html
  20208. target_system : System ID (type:uint8_t)
  20209. target_component : Component ID (type:uint8_t)
  20210. seq : Sequence (type:uint16_t)
  20211. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  20212. """
  20213. self.send(self.mission_request_int_encode(target_system, target_component, seq, mission_type), force_mavlink1=force_mavlink1)
  20214. def safety_set_allowed_area_encode(self, target_system: int, target_component: int, frame: int, p1x: float, p1y: float, p1z: float, p2x: float, p2y: float, p2z: float) -> MAVLink_safety_set_allowed_area_message:
  20215. """
  20216. Set a safety zone (volume), which is defined by two corners of a cube.
  20217. This message can be used to tell the MAV which
  20218. setpoints/waypoints to accept and which to reject. Safety
  20219. areas are often enforced by national or competition
  20220. regulations.
  20221. target_system : System ID (type:uint8_t)
  20222. target_component : Component ID (type:uint8_t)
  20223. frame : Coordinate frame. Can be either global, GPS, right-handed with Z axis up or local, right handed, Z axis down. (type:uint8_t, values:MAV_FRAME)
  20224. p1x : x position 1 / Latitude 1 [m] (type:float)
  20225. p1y : y position 1 / Longitude 1 [m] (type:float)
  20226. p1z : z position 1 / Altitude 1 [m] (type:float)
  20227. p2x : x position 2 / Latitude 2 [m] (type:float)
  20228. p2y : y position 2 / Longitude 2 [m] (type:float)
  20229. p2z : z position 2 / Altitude 2 [m] (type:float)
  20230. """
  20231. return MAVLink_safety_set_allowed_area_message(target_system, target_component, frame, p1x, p1y, p1z, p2x, p2y, p2z)
  20232. def safety_set_allowed_area_send(self, target_system: int, target_component: int, frame: int, p1x: float, p1y: float, p1z: float, p2x: float, p2y: float, p2z: float, force_mavlink1: bool = False) -> None:
  20233. """
  20234. Set a safety zone (volume), which is defined by two corners of a cube.
  20235. This message can be used to tell the MAV which
  20236. setpoints/waypoints to accept and which to reject. Safety
  20237. areas are often enforced by national or competition
  20238. regulations.
  20239. target_system : System ID (type:uint8_t)
  20240. target_component : Component ID (type:uint8_t)
  20241. frame : Coordinate frame. Can be either global, GPS, right-handed with Z axis up or local, right handed, Z axis down. (type:uint8_t, values:MAV_FRAME)
  20242. p1x : x position 1 / Latitude 1 [m] (type:float)
  20243. p1y : y position 1 / Longitude 1 [m] (type:float)
  20244. p1z : z position 1 / Altitude 1 [m] (type:float)
  20245. p2x : x position 2 / Latitude 2 [m] (type:float)
  20246. p2y : y position 2 / Longitude 2 [m] (type:float)
  20247. p2z : z position 2 / Altitude 2 [m] (type:float)
  20248. """
  20249. self.send(self.safety_set_allowed_area_encode(target_system, target_component, frame, p1x, p1y, p1z, p2x, p2y, p2z), force_mavlink1=force_mavlink1)
  20250. def safety_allowed_area_encode(self, frame: int, p1x: float, p1y: float, p1z: float, p2x: float, p2y: float, p2z: float) -> MAVLink_safety_allowed_area_message:
  20251. """
  20252. Read out the safety zone the MAV currently assumes.
  20253. frame : Coordinate frame. Can be either global, GPS, right-handed with Z axis up or local, right handed, Z axis down. (type:uint8_t, values:MAV_FRAME)
  20254. p1x : x position 1 / Latitude 1 [m] (type:float)
  20255. p1y : y position 1 / Longitude 1 [m] (type:float)
  20256. p1z : z position 1 / Altitude 1 [m] (type:float)
  20257. p2x : x position 2 / Latitude 2 [m] (type:float)
  20258. p2y : y position 2 / Longitude 2 [m] (type:float)
  20259. p2z : z position 2 / Altitude 2 [m] (type:float)
  20260. """
  20261. return MAVLink_safety_allowed_area_message(frame, p1x, p1y, p1z, p2x, p2y, p2z)
  20262. def safety_allowed_area_send(self, frame: int, p1x: float, p1y: float, p1z: float, p2x: float, p2y: float, p2z: float, force_mavlink1: bool = False) -> None:
  20263. """
  20264. Read out the safety zone the MAV currently assumes.
  20265. frame : Coordinate frame. Can be either global, GPS, right-handed with Z axis up or local, right handed, Z axis down. (type:uint8_t, values:MAV_FRAME)
  20266. p1x : x position 1 / Latitude 1 [m] (type:float)
  20267. p1y : y position 1 / Longitude 1 [m] (type:float)
  20268. p1z : z position 1 / Altitude 1 [m] (type:float)
  20269. p2x : x position 2 / Latitude 2 [m] (type:float)
  20270. p2y : y position 2 / Longitude 2 [m] (type:float)
  20271. p2z : z position 2 / Altitude 2 [m] (type:float)
  20272. """
  20273. self.send(self.safety_allowed_area_encode(frame, p1x, p1y, p1z, p2x, p2y, p2z), force_mavlink1=force_mavlink1)
  20274. def attitude_quaternion_cov_encode(self, time_usec: int, q: Sequence[float], rollspeed: float, pitchspeed: float, yawspeed: float, covariance: Sequence[float]) -> MAVLink_attitude_quaternion_cov_message:
  20275. """
  20276. The attitude in the aeronautical frame (right-handed, Z-down, X-front,
  20277. Y-right), expressed as quaternion. Quaternion order is w, x,
  20278. y, z and a zero rotation would be expressed as (1 0 0 0).
  20279. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  20280. q : Quaternion components, w, x, y, z (1 0 0 0 is the null-rotation) (type:float)
  20281. rollspeed : Roll angular speed [rad/s] (type:float)
  20282. pitchspeed : Pitch angular speed [rad/s] (type:float)
  20283. yawspeed : Yaw angular speed [rad/s] (type:float)
  20284. covariance : Row-major representation of a 3x3 attitude covariance matrix (states: roll, pitch, yaw; first three entries are the first ROW, next three entries are the second row, etc.). If unknown, assign NaN value to first element in the array. (type:float)
  20285. """
  20286. return MAVLink_attitude_quaternion_cov_message(time_usec, q, rollspeed, pitchspeed, yawspeed, covariance)
  20287. def attitude_quaternion_cov_send(self, time_usec: int, q: Sequence[float], rollspeed: float, pitchspeed: float, yawspeed: float, covariance: Sequence[float], force_mavlink1: bool = False) -> None:
  20288. """
  20289. The attitude in the aeronautical frame (right-handed, Z-down, X-front,
  20290. Y-right), expressed as quaternion. Quaternion order is w, x,
  20291. y, z and a zero rotation would be expressed as (1 0 0 0).
  20292. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  20293. q : Quaternion components, w, x, y, z (1 0 0 0 is the null-rotation) (type:float)
  20294. rollspeed : Roll angular speed [rad/s] (type:float)
  20295. pitchspeed : Pitch angular speed [rad/s] (type:float)
  20296. yawspeed : Yaw angular speed [rad/s] (type:float)
  20297. covariance : Row-major representation of a 3x3 attitude covariance matrix (states: roll, pitch, yaw; first three entries are the first ROW, next three entries are the second row, etc.). If unknown, assign NaN value to first element in the array. (type:float)
  20298. """
  20299. self.send(self.attitude_quaternion_cov_encode(time_usec, q, rollspeed, pitchspeed, yawspeed, covariance), force_mavlink1=force_mavlink1)
  20300. def nav_controller_output_encode(self, nav_roll: float, nav_pitch: float, nav_bearing: int, target_bearing: int, wp_dist: int, alt_error: float, aspd_error: float, xtrack_error: float) -> MAVLink_nav_controller_output_message:
  20301. """
  20302. The state of the navigation and position controller.
  20303. nav_roll : Current desired roll [deg] (type:float)
  20304. nav_pitch : Current desired pitch [deg] (type:float)
  20305. nav_bearing : Current desired heading [deg] (type:int16_t)
  20306. target_bearing : Bearing to current waypoint/target [deg] (type:int16_t)
  20307. wp_dist : Distance to active waypoint [m] (type:uint16_t)
  20308. alt_error : Current altitude error [m] (type:float)
  20309. aspd_error : Current airspeed error [m/s] (type:float)
  20310. xtrack_error : Current crosstrack error on x-y plane [m] (type:float)
  20311. """
  20312. return MAVLink_nav_controller_output_message(nav_roll, nav_pitch, nav_bearing, target_bearing, wp_dist, alt_error, aspd_error, xtrack_error)
  20313. def nav_controller_output_send(self, nav_roll: float, nav_pitch: float, nav_bearing: int, target_bearing: int, wp_dist: int, alt_error: float, aspd_error: float, xtrack_error: float, force_mavlink1: bool = False) -> None:
  20314. """
  20315. The state of the navigation and position controller.
  20316. nav_roll : Current desired roll [deg] (type:float)
  20317. nav_pitch : Current desired pitch [deg] (type:float)
  20318. nav_bearing : Current desired heading [deg] (type:int16_t)
  20319. target_bearing : Bearing to current waypoint/target [deg] (type:int16_t)
  20320. wp_dist : Distance to active waypoint [m] (type:uint16_t)
  20321. alt_error : Current altitude error [m] (type:float)
  20322. aspd_error : Current airspeed error [m/s] (type:float)
  20323. xtrack_error : Current crosstrack error on x-y plane [m] (type:float)
  20324. """
  20325. self.send(self.nav_controller_output_encode(nav_roll, nav_pitch, nav_bearing, target_bearing, wp_dist, alt_error, aspd_error, xtrack_error), force_mavlink1=force_mavlink1)
  20326. def global_position_int_cov_encode(self, time_usec: int, estimator_type: int, lat: int, lon: int, alt: int, relative_alt: int, vx: float, vy: float, vz: float, covariance: Sequence[float]) -> MAVLink_global_position_int_cov_message:
  20327. """
  20328. The filtered global position (e.g. fused GPS and accelerometers). The
  20329. position is in GPS-frame (right-handed, Z-up). It is designed
  20330. as scaled integer message since the resolution of float is not
  20331. sufficient. NOTE: This message is intended for onboard
  20332. networks / companion computers and higher-bandwidth links and
  20333. optimized for accuracy and completeness. Please use the
  20334. GLOBAL_POSITION_INT message for a minimal subset.
  20335. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  20336. estimator_type : Class id of the estimator this estimate originated from. (type:uint8_t, values:MAV_ESTIMATOR_TYPE)
  20337. lat : Latitude [degE7] (type:int32_t)
  20338. lon : Longitude [degE7] (type:int32_t)
  20339. alt : Altitude in meters above MSL [mm] (type:int32_t)
  20340. relative_alt : Altitude above ground [mm] (type:int32_t)
  20341. vx : Ground X Speed (Latitude) [m/s] (type:float)
  20342. vy : Ground Y Speed (Longitude) [m/s] (type:float)
  20343. vz : Ground Z Speed (Altitude) [m/s] (type:float)
  20344. covariance : Row-major representation of a 6x6 position and velocity 6x6 cross-covariance matrix (states: lat, lon, alt, vx, vy, vz; first six entries are the first ROW, next six entries are the second row, etc.). If unknown, assign NaN value to first element in the array. (type:float)
  20345. """
  20346. return MAVLink_global_position_int_cov_message(time_usec, estimator_type, lat, lon, alt, relative_alt, vx, vy, vz, covariance)
  20347. def global_position_int_cov_send(self, time_usec: int, estimator_type: int, lat: int, lon: int, alt: int, relative_alt: int, vx: float, vy: float, vz: float, covariance: Sequence[float], force_mavlink1: bool = False) -> None:
  20348. """
  20349. The filtered global position (e.g. fused GPS and accelerometers). The
  20350. position is in GPS-frame (right-handed, Z-up). It is designed
  20351. as scaled integer message since the resolution of float is not
  20352. sufficient. NOTE: This message is intended for onboard
  20353. networks / companion computers and higher-bandwidth links and
  20354. optimized for accuracy and completeness. Please use the
  20355. GLOBAL_POSITION_INT message for a minimal subset.
  20356. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  20357. estimator_type : Class id of the estimator this estimate originated from. (type:uint8_t, values:MAV_ESTIMATOR_TYPE)
  20358. lat : Latitude [degE7] (type:int32_t)
  20359. lon : Longitude [degE7] (type:int32_t)
  20360. alt : Altitude in meters above MSL [mm] (type:int32_t)
  20361. relative_alt : Altitude above ground [mm] (type:int32_t)
  20362. vx : Ground X Speed (Latitude) [m/s] (type:float)
  20363. vy : Ground Y Speed (Longitude) [m/s] (type:float)
  20364. vz : Ground Z Speed (Altitude) [m/s] (type:float)
  20365. covariance : Row-major representation of a 6x6 position and velocity 6x6 cross-covariance matrix (states: lat, lon, alt, vx, vy, vz; first six entries are the first ROW, next six entries are the second row, etc.). If unknown, assign NaN value to first element in the array. (type:float)
  20366. """
  20367. self.send(self.global_position_int_cov_encode(time_usec, estimator_type, lat, lon, alt, relative_alt, vx, vy, vz, covariance), force_mavlink1=force_mavlink1)
  20368. def local_position_ned_cov_encode(self, time_usec: int, estimator_type: int, x: float, y: float, z: float, vx: float, vy: float, vz: float, ax: float, ay: float, az: float, covariance: Sequence[float]) -> MAVLink_local_position_ned_cov_message:
  20369. """
  20370. The filtered local position (e.g. fused computer vision and
  20371. accelerometers). Coordinate frame is right-handed, Z-axis down
  20372. (aeronautical frame, NED / north-east-down convention)
  20373. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  20374. estimator_type : Class id of the estimator this estimate originated from. (type:uint8_t, values:MAV_ESTIMATOR_TYPE)
  20375. x : X Position [m] (type:float)
  20376. y : Y Position [m] (type:float)
  20377. z : Z Position [m] (type:float)
  20378. vx : X Speed [m/s] (type:float)
  20379. vy : Y Speed [m/s] (type:float)
  20380. vz : Z Speed [m/s] (type:float)
  20381. ax : X Acceleration [m/s/s] (type:float)
  20382. ay : Y Acceleration [m/s/s] (type:float)
  20383. az : Z Acceleration [m/s/s] (type:float)
  20384. covariance : Row-major representation of position, velocity and acceleration 9x9 cross-covariance matrix upper right triangle (states: x, y, z, vx, vy, vz, ax, ay, az; first nine entries are the first ROW, next eight entries are the second row, etc.). If unknown, assign NaN value to first element in the array. (type:float)
  20385. """
  20386. return MAVLink_local_position_ned_cov_message(time_usec, estimator_type, x, y, z, vx, vy, vz, ax, ay, az, covariance)
  20387. def local_position_ned_cov_send(self, time_usec: int, estimator_type: int, x: float, y: float, z: float, vx: float, vy: float, vz: float, ax: float, ay: float, az: float, covariance: Sequence[float], force_mavlink1: bool = False) -> None:
  20388. """
  20389. The filtered local position (e.g. fused computer vision and
  20390. accelerometers). Coordinate frame is right-handed, Z-axis down
  20391. (aeronautical frame, NED / north-east-down convention)
  20392. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  20393. estimator_type : Class id of the estimator this estimate originated from. (type:uint8_t, values:MAV_ESTIMATOR_TYPE)
  20394. x : X Position [m] (type:float)
  20395. y : Y Position [m] (type:float)
  20396. z : Z Position [m] (type:float)
  20397. vx : X Speed [m/s] (type:float)
  20398. vy : Y Speed [m/s] (type:float)
  20399. vz : Z Speed [m/s] (type:float)
  20400. ax : X Acceleration [m/s/s] (type:float)
  20401. ay : Y Acceleration [m/s/s] (type:float)
  20402. az : Z Acceleration [m/s/s] (type:float)
  20403. covariance : Row-major representation of position, velocity and acceleration 9x9 cross-covariance matrix upper right triangle (states: x, y, z, vx, vy, vz, ax, ay, az; first nine entries are the first ROW, next eight entries are the second row, etc.). If unknown, assign NaN value to first element in the array. (type:float)
  20404. """
  20405. self.send(self.local_position_ned_cov_encode(time_usec, estimator_type, x, y, z, vx, vy, vz, ax, ay, az, covariance), force_mavlink1=force_mavlink1)
  20406. def rc_channels_encode(self, time_boot_ms: int, chancount: int, chan1_raw: int, chan2_raw: int, chan3_raw: int, chan4_raw: int, chan5_raw: int, chan6_raw: int, chan7_raw: int, chan8_raw: int, chan9_raw: int, chan10_raw: int, chan11_raw: int, chan12_raw: int, chan13_raw: int, chan14_raw: int, chan15_raw: int, chan16_raw: int, chan17_raw: int, chan18_raw: int, rssi: int) -> MAVLink_rc_channels_message:
  20407. """
  20408. The PPM values of the RC channels received. The standard PPM
  20409. modulation is as follows: 1000 microseconds: 0%, 2000
  20410. microseconds: 100%. A value of UINT16_MAX implies the channel
  20411. is unused. Individual receivers/transmitters might violate
  20412. this specification.
  20413. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  20414. chancount : Total number of RC channels being received. This can be larger than 18, indicating that more channels are available but not given in this message. This value should be 0 when no RC channels are available. (type:uint8_t)
  20415. chan1_raw : RC channel 1 value. [us] (type:uint16_t)
  20416. chan2_raw : RC channel 2 value. [us] (type:uint16_t)
  20417. chan3_raw : RC channel 3 value. [us] (type:uint16_t)
  20418. chan4_raw : RC channel 4 value. [us] (type:uint16_t)
  20419. chan5_raw : RC channel 5 value. [us] (type:uint16_t)
  20420. chan6_raw : RC channel 6 value. [us] (type:uint16_t)
  20421. chan7_raw : RC channel 7 value. [us] (type:uint16_t)
  20422. chan8_raw : RC channel 8 value. [us] (type:uint16_t)
  20423. chan9_raw : RC channel 9 value. [us] (type:uint16_t)
  20424. chan10_raw : RC channel 10 value. [us] (type:uint16_t)
  20425. chan11_raw : RC channel 11 value. [us] (type:uint16_t)
  20426. chan12_raw : RC channel 12 value. [us] (type:uint16_t)
  20427. chan13_raw : RC channel 13 value. [us] (type:uint16_t)
  20428. chan14_raw : RC channel 14 value. [us] (type:uint16_t)
  20429. chan15_raw : RC channel 15 value. [us] (type:uint16_t)
  20430. chan16_raw : RC channel 16 value. [us] (type:uint16_t)
  20431. chan17_raw : RC channel 17 value. [us] (type:uint16_t)
  20432. chan18_raw : RC channel 18 value. [us] (type:uint16_t)
  20433. rssi : Receive signal strength indicator in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown. (type:uint8_t)
  20434. """
  20435. return MAVLink_rc_channels_message(time_boot_ms, chancount, chan1_raw, chan2_raw, chan3_raw, chan4_raw, chan5_raw, chan6_raw, chan7_raw, chan8_raw, chan9_raw, chan10_raw, chan11_raw, chan12_raw, chan13_raw, chan14_raw, chan15_raw, chan16_raw, chan17_raw, chan18_raw, rssi)
  20436. def rc_channels_send(self, time_boot_ms: int, chancount: int, chan1_raw: int, chan2_raw: int, chan3_raw: int, chan4_raw: int, chan5_raw: int, chan6_raw: int, chan7_raw: int, chan8_raw: int, chan9_raw: int, chan10_raw: int, chan11_raw: int, chan12_raw: int, chan13_raw: int, chan14_raw: int, chan15_raw: int, chan16_raw: int, chan17_raw: int, chan18_raw: int, rssi: int, force_mavlink1: bool = False) -> None:
  20437. """
  20438. The PPM values of the RC channels received. The standard PPM
  20439. modulation is as follows: 1000 microseconds: 0%, 2000
  20440. microseconds: 100%. A value of UINT16_MAX implies the channel
  20441. is unused. Individual receivers/transmitters might violate
  20442. this specification.
  20443. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  20444. chancount : Total number of RC channels being received. This can be larger than 18, indicating that more channels are available but not given in this message. This value should be 0 when no RC channels are available. (type:uint8_t)
  20445. chan1_raw : RC channel 1 value. [us] (type:uint16_t)
  20446. chan2_raw : RC channel 2 value. [us] (type:uint16_t)
  20447. chan3_raw : RC channel 3 value. [us] (type:uint16_t)
  20448. chan4_raw : RC channel 4 value. [us] (type:uint16_t)
  20449. chan5_raw : RC channel 5 value. [us] (type:uint16_t)
  20450. chan6_raw : RC channel 6 value. [us] (type:uint16_t)
  20451. chan7_raw : RC channel 7 value. [us] (type:uint16_t)
  20452. chan8_raw : RC channel 8 value. [us] (type:uint16_t)
  20453. chan9_raw : RC channel 9 value. [us] (type:uint16_t)
  20454. chan10_raw : RC channel 10 value. [us] (type:uint16_t)
  20455. chan11_raw : RC channel 11 value. [us] (type:uint16_t)
  20456. chan12_raw : RC channel 12 value. [us] (type:uint16_t)
  20457. chan13_raw : RC channel 13 value. [us] (type:uint16_t)
  20458. chan14_raw : RC channel 14 value. [us] (type:uint16_t)
  20459. chan15_raw : RC channel 15 value. [us] (type:uint16_t)
  20460. chan16_raw : RC channel 16 value. [us] (type:uint16_t)
  20461. chan17_raw : RC channel 17 value. [us] (type:uint16_t)
  20462. chan18_raw : RC channel 18 value. [us] (type:uint16_t)
  20463. rssi : Receive signal strength indicator in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown. (type:uint8_t)
  20464. """
  20465. self.send(self.rc_channels_encode(time_boot_ms, chancount, chan1_raw, chan2_raw, chan3_raw, chan4_raw, chan5_raw, chan6_raw, chan7_raw, chan8_raw, chan9_raw, chan10_raw, chan11_raw, chan12_raw, chan13_raw, chan14_raw, chan15_raw, chan16_raw, chan17_raw, chan18_raw, rssi), force_mavlink1=force_mavlink1)
  20466. def request_data_stream_encode(self, target_system: int, target_component: int, req_stream_id: int, req_message_rate: int, start_stop: int) -> MAVLink_request_data_stream_message:
  20467. """
  20468. Request a data stream.
  20469. target_system : The target requested to send the message stream. (type:uint8_t)
  20470. target_component : The target requested to send the message stream. (type:uint8_t)
  20471. req_stream_id : The ID of the requested data stream (type:uint8_t)
  20472. req_message_rate : The requested message rate [Hz] (type:uint16_t)
  20473. start_stop : 1 to start sending, 0 to stop sending. (type:uint8_t)
  20474. """
  20475. return MAVLink_request_data_stream_message(target_system, target_component, req_stream_id, req_message_rate, start_stop)
  20476. def request_data_stream_send(self, target_system: int, target_component: int, req_stream_id: int, req_message_rate: int, start_stop: int, force_mavlink1: bool = False) -> None:
  20477. """
  20478. Request a data stream.
  20479. target_system : The target requested to send the message stream. (type:uint8_t)
  20480. target_component : The target requested to send the message stream. (type:uint8_t)
  20481. req_stream_id : The ID of the requested data stream (type:uint8_t)
  20482. req_message_rate : The requested message rate [Hz] (type:uint16_t)
  20483. start_stop : 1 to start sending, 0 to stop sending. (type:uint8_t)
  20484. """
  20485. self.send(self.request_data_stream_encode(target_system, target_component, req_stream_id, req_message_rate, start_stop), force_mavlink1=force_mavlink1)
  20486. def data_stream_encode(self, stream_id: int, message_rate: int, on_off: int) -> MAVLink_data_stream_message:
  20487. """
  20488. Data stream status information.
  20489. stream_id : The ID of the requested data stream (type:uint8_t)
  20490. message_rate : The message rate [Hz] (type:uint16_t)
  20491. on_off : 1 stream is enabled, 0 stream is stopped. (type:uint8_t)
  20492. """
  20493. return MAVLink_data_stream_message(stream_id, message_rate, on_off)
  20494. def data_stream_send(self, stream_id: int, message_rate: int, on_off: int, force_mavlink1: bool = False) -> None:
  20495. """
  20496. Data stream status information.
  20497. stream_id : The ID of the requested data stream (type:uint8_t)
  20498. message_rate : The message rate [Hz] (type:uint16_t)
  20499. on_off : 1 stream is enabled, 0 stream is stopped. (type:uint8_t)
  20500. """
  20501. self.send(self.data_stream_encode(stream_id, message_rate, on_off), force_mavlink1=force_mavlink1)
  20502. def manual_control_encode(self, target: int, x: int, y: int, z: int, r: int, buttons: int, buttons2: int = 0, enabled_extensions: int = 0, s: int = 0, t: int = 0, aux1: int = 0, aux2: int = 0, aux3: int = 0, aux4: int = 0, aux5: int = 0, aux6: int = 0) -> MAVLink_manual_control_message:
  20503. """
  20504. This message provides an API for manually controlling the vehicle
  20505. using standard joystick axes nomenclature, along with a
  20506. joystick-like input device. Unused axes can be disabled and
  20507. buttons states are transmitted as individual on/off bits of a
  20508. bitmask
  20509. target : The system to be controlled. (type:uint8_t)
  20510. x : X-axis, normalized to the range [-1000,1000]. A value of INT16_MAX indicates that this axis is invalid. Generally corresponds to forward(1000)-backward(-1000) movement on a joystick and the pitch of a vehicle. (type:int16_t)
  20511. y : Y-axis, normalized to the range [-1000,1000]. A value of INT16_MAX indicates that this axis is invalid. Generally corresponds to left(-1000)-right(1000) movement on a joystick and the roll of a vehicle. (type:int16_t)
  20512. z : Z-axis, normalized to the range [-1000,1000]. A value of INT16_MAX indicates that this axis is invalid. Generally corresponds to a separate slider movement with maximum being 1000 and minimum being -1000 on a joystick and the thrust of a vehicle. Positive values are positive thrust, negative values are negative thrust. (type:int16_t)
  20513. r : R-axis, normalized to the range [-1000,1000]. A value of INT16_MAX indicates that this axis is invalid. Generally corresponds to a twisting of the joystick, with counter-clockwise being 1000 and clockwise being -1000, and the yaw of a vehicle. (type:int16_t)
  20514. buttons : A bitfield corresponding to the joystick buttons' 0-15 current state, 1 for pressed, 0 for released. The lowest bit corresponds to Button 1. (type:uint16_t)
  20515. buttons2 : A bitfield corresponding to the joystick buttons' 16-31 current state, 1 for pressed, 0 for released. The lowest bit corresponds to Button 16. (type:uint16_t)
  20516. enabled_extensions : Set bits to 1 to indicate which of the following extension fields contain valid data: bit 0: pitch, bit 1: roll, bit 2: aux1, bit 3: aux2, bit 4: aux3, bit 5: aux4, bit 6: aux5, bit 7: aux6 (type:uint8_t)
  20517. s : Pitch-only-axis, normalized to the range [-1000,1000]. Generally corresponds to pitch on vehicles with additional degrees of freedom. Valid if bit 0 of enabled_extensions field is set. Set to 0 if invalid. (type:int16_t)
  20518. t : Roll-only-axis, normalized to the range [-1000,1000]. Generally corresponds to roll on vehicles with additional degrees of freedom. Valid if bit 1 of enabled_extensions field is set. Set to 0 if invalid. (type:int16_t)
  20519. aux1 : Aux continuous input field 1. Normalized in the range [-1000,1000]. Purpose defined by recipient. Valid data if bit 2 of enabled_extensions field is set. 0 if bit 2 is unset. (type:int16_t)
  20520. aux2 : Aux continuous input field 2. Normalized in the range [-1000,1000]. Purpose defined by recipient. Valid data if bit 3 of enabled_extensions field is set. 0 if bit 3 is unset. (type:int16_t)
  20521. aux3 : Aux continuous input field 3. Normalized in the range [-1000,1000]. Purpose defined by recipient. Valid data if bit 4 of enabled_extensions field is set. 0 if bit 4 is unset. (type:int16_t)
  20522. aux4 : Aux continuous input field 4. Normalized in the range [-1000,1000]. Purpose defined by recipient. Valid data if bit 5 of enabled_extensions field is set. 0 if bit 5 is unset. (type:int16_t)
  20523. aux5 : Aux continuous input field 5. Normalized in the range [-1000,1000]. Purpose defined by recipient. Valid data if bit 6 of enabled_extensions field is set. 0 if bit 6 is unset. (type:int16_t)
  20524. aux6 : Aux continuous input field 6. Normalized in the range [-1000,1000]. Purpose defined by recipient. Valid data if bit 7 of enabled_extensions field is set. 0 if bit 7 is unset. (type:int16_t)
  20525. """
  20526. return MAVLink_manual_control_message(target, x, y, z, r, buttons, buttons2, enabled_extensions, s, t, aux1, aux2, aux3, aux4, aux5, aux6)
  20527. def manual_control_send(self, target: int, x: int, y: int, z: int, r: int, buttons: int, buttons2: int = 0, enabled_extensions: int = 0, s: int = 0, t: int = 0, aux1: int = 0, aux2: int = 0, aux3: int = 0, aux4: int = 0, aux5: int = 0, aux6: int = 0, force_mavlink1: bool = False) -> None:
  20528. """
  20529. This message provides an API for manually controlling the vehicle
  20530. using standard joystick axes nomenclature, along with a
  20531. joystick-like input device. Unused axes can be disabled and
  20532. buttons states are transmitted as individual on/off bits of a
  20533. bitmask
  20534. target : The system to be controlled. (type:uint8_t)
  20535. x : X-axis, normalized to the range [-1000,1000]. A value of INT16_MAX indicates that this axis is invalid. Generally corresponds to forward(1000)-backward(-1000) movement on a joystick and the pitch of a vehicle. (type:int16_t)
  20536. y : Y-axis, normalized to the range [-1000,1000]. A value of INT16_MAX indicates that this axis is invalid. Generally corresponds to left(-1000)-right(1000) movement on a joystick and the roll of a vehicle. (type:int16_t)
  20537. z : Z-axis, normalized to the range [-1000,1000]. A value of INT16_MAX indicates that this axis is invalid. Generally corresponds to a separate slider movement with maximum being 1000 and minimum being -1000 on a joystick and the thrust of a vehicle. Positive values are positive thrust, negative values are negative thrust. (type:int16_t)
  20538. r : R-axis, normalized to the range [-1000,1000]. A value of INT16_MAX indicates that this axis is invalid. Generally corresponds to a twisting of the joystick, with counter-clockwise being 1000 and clockwise being -1000, and the yaw of a vehicle. (type:int16_t)
  20539. buttons : A bitfield corresponding to the joystick buttons' 0-15 current state, 1 for pressed, 0 for released. The lowest bit corresponds to Button 1. (type:uint16_t)
  20540. buttons2 : A bitfield corresponding to the joystick buttons' 16-31 current state, 1 for pressed, 0 for released. The lowest bit corresponds to Button 16. (type:uint16_t)
  20541. enabled_extensions : Set bits to 1 to indicate which of the following extension fields contain valid data: bit 0: pitch, bit 1: roll, bit 2: aux1, bit 3: aux2, bit 4: aux3, bit 5: aux4, bit 6: aux5, bit 7: aux6 (type:uint8_t)
  20542. s : Pitch-only-axis, normalized to the range [-1000,1000]. Generally corresponds to pitch on vehicles with additional degrees of freedom. Valid if bit 0 of enabled_extensions field is set. Set to 0 if invalid. (type:int16_t)
  20543. t : Roll-only-axis, normalized to the range [-1000,1000]. Generally corresponds to roll on vehicles with additional degrees of freedom. Valid if bit 1 of enabled_extensions field is set. Set to 0 if invalid. (type:int16_t)
  20544. aux1 : Aux continuous input field 1. Normalized in the range [-1000,1000]. Purpose defined by recipient. Valid data if bit 2 of enabled_extensions field is set. 0 if bit 2 is unset. (type:int16_t)
  20545. aux2 : Aux continuous input field 2. Normalized in the range [-1000,1000]. Purpose defined by recipient. Valid data if bit 3 of enabled_extensions field is set. 0 if bit 3 is unset. (type:int16_t)
  20546. aux3 : Aux continuous input field 3. Normalized in the range [-1000,1000]. Purpose defined by recipient. Valid data if bit 4 of enabled_extensions field is set. 0 if bit 4 is unset. (type:int16_t)
  20547. aux4 : Aux continuous input field 4. Normalized in the range [-1000,1000]. Purpose defined by recipient. Valid data if bit 5 of enabled_extensions field is set. 0 if bit 5 is unset. (type:int16_t)
  20548. aux5 : Aux continuous input field 5. Normalized in the range [-1000,1000]. Purpose defined by recipient. Valid data if bit 6 of enabled_extensions field is set. 0 if bit 6 is unset. (type:int16_t)
  20549. aux6 : Aux continuous input field 6. Normalized in the range [-1000,1000]. Purpose defined by recipient. Valid data if bit 7 of enabled_extensions field is set. 0 if bit 7 is unset. (type:int16_t)
  20550. """
  20551. self.send(self.manual_control_encode(target, x, y, z, r, buttons, buttons2, enabled_extensions, s, t, aux1, aux2, aux3, aux4, aux5, aux6), force_mavlink1=force_mavlink1)
  20552. def rc_channels_override_encode(self, target_system: int, target_component: int, chan1_raw: int, chan2_raw: int, chan3_raw: int, chan4_raw: int, chan5_raw: int, chan6_raw: int, chan7_raw: int, chan8_raw: int, chan9_raw: int = 0, chan10_raw: int = 0, chan11_raw: int = 0, chan12_raw: int = 0, chan13_raw: int = 0, chan14_raw: int = 0, chan15_raw: int = 0, chan16_raw: int = 0, chan17_raw: int = 0, chan18_raw: int = 0) -> MAVLink_rc_channels_override_message:
  20553. """
  20554. The RAW values of the RC channels sent to the MAV to override info
  20555. received from the RC radio. The standard PPM modulation is as
  20556. follows: 1000 microseconds: 0%, 2000 microseconds: 100%.
  20557. Individual receivers/transmitters might violate this
  20558. specification. Note carefully the semantic differences
  20559. between the first 8 channels and the subsequent channels
  20560. target_system : System ID (type:uint8_t)
  20561. target_component : Component ID (type:uint8_t)
  20562. chan1_raw : RC channel 1 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20563. chan2_raw : RC channel 2 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20564. chan3_raw : RC channel 3 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20565. chan4_raw : RC channel 4 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20566. chan5_raw : RC channel 5 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20567. chan6_raw : RC channel 6 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20568. chan7_raw : RC channel 7 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20569. chan8_raw : RC channel 8 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20570. chan9_raw : RC channel 9 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20571. chan10_raw : RC channel 10 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20572. chan11_raw : RC channel 11 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20573. chan12_raw : RC channel 12 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20574. chan13_raw : RC channel 13 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20575. chan14_raw : RC channel 14 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20576. chan15_raw : RC channel 15 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20577. chan16_raw : RC channel 16 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20578. chan17_raw : RC channel 17 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20579. chan18_raw : RC channel 18 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20580. """
  20581. return MAVLink_rc_channels_override_message(target_system, target_component, chan1_raw, chan2_raw, chan3_raw, chan4_raw, chan5_raw, chan6_raw, chan7_raw, chan8_raw, chan9_raw, chan10_raw, chan11_raw, chan12_raw, chan13_raw, chan14_raw, chan15_raw, chan16_raw, chan17_raw, chan18_raw)
  20582. def rc_channels_override_send(self, target_system: int, target_component: int, chan1_raw: int, chan2_raw: int, chan3_raw: int, chan4_raw: int, chan5_raw: int, chan6_raw: int, chan7_raw: int, chan8_raw: int, chan9_raw: int = 0, chan10_raw: int = 0, chan11_raw: int = 0, chan12_raw: int = 0, chan13_raw: int = 0, chan14_raw: int = 0, chan15_raw: int = 0, chan16_raw: int = 0, chan17_raw: int = 0, chan18_raw: int = 0, force_mavlink1: bool = False) -> None:
  20583. """
  20584. The RAW values of the RC channels sent to the MAV to override info
  20585. received from the RC radio. The standard PPM modulation is as
  20586. follows: 1000 microseconds: 0%, 2000 microseconds: 100%.
  20587. Individual receivers/transmitters might violate this
  20588. specification. Note carefully the semantic differences
  20589. between the first 8 channels and the subsequent channels
  20590. target_system : System ID (type:uint8_t)
  20591. target_component : Component ID (type:uint8_t)
  20592. chan1_raw : RC channel 1 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20593. chan2_raw : RC channel 2 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20594. chan3_raw : RC channel 3 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20595. chan4_raw : RC channel 4 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20596. chan5_raw : RC channel 5 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20597. chan6_raw : RC channel 6 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20598. chan7_raw : RC channel 7 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20599. chan8_raw : RC channel 8 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20600. chan9_raw : RC channel 9 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20601. chan10_raw : RC channel 10 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20602. chan11_raw : RC channel 11 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20603. chan12_raw : RC channel 12 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20604. chan13_raw : RC channel 13 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20605. chan14_raw : RC channel 14 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20606. chan15_raw : RC channel 15 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20607. chan16_raw : RC channel 16 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20608. chan17_raw : RC channel 17 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20609. chan18_raw : RC channel 18 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio. [us] (type:uint16_t)
  20610. """
  20611. self.send(self.rc_channels_override_encode(target_system, target_component, chan1_raw, chan2_raw, chan3_raw, chan4_raw, chan5_raw, chan6_raw, chan7_raw, chan8_raw, chan9_raw, chan10_raw, chan11_raw, chan12_raw, chan13_raw, chan14_raw, chan15_raw, chan16_raw, chan17_raw, chan18_raw), force_mavlink1=force_mavlink1)
  20612. def mission_item_int_encode(self, target_system: int, target_component: int, seq: int, frame: int, command: int, current: int, autocontinue: int, param1: float, param2: float, param3: float, param4: float, x: int, y: int, z: float, mission_type: int = 0) -> MAVLink_mission_item_int_message:
  20613. """
  20614. Message encoding a mission item. This message is emitted to announce
  20615. the presence of a mission item and to set a mission item on
  20616. the system. The mission item can be either in x, y, z meters
  20617. (type: LOCAL) or x:lat, y:lon, z:altitude. Local frame is
  20618. Z-down, right handed (NED), global frame is Z-up, right handed
  20619. (ENU). NaN or INT32_MAX may be used in float/integer params
  20620. (respectively) to indicate optional/default values (e.g. to
  20621. use the component's current latitude, yaw rather than a
  20622. specific value). See also
  20623. https://mavlink.io/en/services/mission.html.
  20624. target_system : System ID (type:uint8_t)
  20625. target_component : Component ID (type:uint8_t)
  20626. seq : Waypoint ID (sequence number). Starts at zero. Increases monotonically for each waypoint, no gaps in the sequence (0,1,2,3,4). (type:uint16_t)
  20627. frame : The coordinate system of the waypoint. (type:uint8_t, values:MAV_FRAME)
  20628. command : The scheduled action for the waypoint. (type:uint16_t, values:MAV_CMD)
  20629. current : false:0, true:1 (type:uint8_t)
  20630. autocontinue : Autocontinue to next waypoint. 0: false, 1: true. Set false to pause mission after the item completes. (type:uint8_t)
  20631. param1 : PARAM1, see MAV_CMD enum (type:float)
  20632. param2 : PARAM2, see MAV_CMD enum (type:float)
  20633. param3 : PARAM3, see MAV_CMD enum (type:float)
  20634. param4 : PARAM4, see MAV_CMD enum (type:float)
  20635. x : PARAM5 / local: x position in meters * 1e4, global: latitude in degrees * 10^7 (type:int32_t)
  20636. y : PARAM6 / y position: local: x position in meters * 1e4, global: longitude in degrees *10^7 (type:int32_t)
  20637. z : PARAM7 / z position: global: altitude in meters (relative or absolute, depending on frame. (type:float)
  20638. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  20639. """
  20640. return MAVLink_mission_item_int_message(target_system, target_component, seq, frame, command, current, autocontinue, param1, param2, param3, param4, x, y, z, mission_type)
  20641. def mission_item_int_send(self, target_system: int, target_component: int, seq: int, frame: int, command: int, current: int, autocontinue: int, param1: float, param2: float, param3: float, param4: float, x: int, y: int, z: float, mission_type: int = 0, force_mavlink1: bool = False) -> None:
  20642. """
  20643. Message encoding a mission item. This message is emitted to announce
  20644. the presence of a mission item and to set a mission item on
  20645. the system. The mission item can be either in x, y, z meters
  20646. (type: LOCAL) or x:lat, y:lon, z:altitude. Local frame is
  20647. Z-down, right handed (NED), global frame is Z-up, right handed
  20648. (ENU). NaN or INT32_MAX may be used in float/integer params
  20649. (respectively) to indicate optional/default values (e.g. to
  20650. use the component's current latitude, yaw rather than a
  20651. specific value). See also
  20652. https://mavlink.io/en/services/mission.html.
  20653. target_system : System ID (type:uint8_t)
  20654. target_component : Component ID (type:uint8_t)
  20655. seq : Waypoint ID (sequence number). Starts at zero. Increases monotonically for each waypoint, no gaps in the sequence (0,1,2,3,4). (type:uint16_t)
  20656. frame : The coordinate system of the waypoint. (type:uint8_t, values:MAV_FRAME)
  20657. command : The scheduled action for the waypoint. (type:uint16_t, values:MAV_CMD)
  20658. current : false:0, true:1 (type:uint8_t)
  20659. autocontinue : Autocontinue to next waypoint. 0: false, 1: true. Set false to pause mission after the item completes. (type:uint8_t)
  20660. param1 : PARAM1, see MAV_CMD enum (type:float)
  20661. param2 : PARAM2, see MAV_CMD enum (type:float)
  20662. param3 : PARAM3, see MAV_CMD enum (type:float)
  20663. param4 : PARAM4, see MAV_CMD enum (type:float)
  20664. x : PARAM5 / local: x position in meters * 1e4, global: latitude in degrees * 10^7 (type:int32_t)
  20665. y : PARAM6 / y position: local: x position in meters * 1e4, global: longitude in degrees *10^7 (type:int32_t)
  20666. z : PARAM7 / z position: global: altitude in meters (relative or absolute, depending on frame. (type:float)
  20667. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  20668. """
  20669. self.send(self.mission_item_int_encode(target_system, target_component, seq, frame, command, current, autocontinue, param1, param2, param3, param4, x, y, z, mission_type), force_mavlink1=force_mavlink1)
  20670. def vfr_hud_encode(self, airspeed: float, groundspeed: float, heading: int, throttle: int, alt: float, climb: float) -> MAVLink_vfr_hud_message:
  20671. """
  20672. Metrics typically displayed on a HUD for fixed wing aircraft.
  20673. airspeed : Vehicle speed in form appropriate for vehicle type. For standard aircraft this is typically calibrated airspeed (CAS) or indicated airspeed (IAS) - either of which can be used by a pilot to estimate stall speed. [m/s] (type:float)
  20674. groundspeed : Current ground speed. [m/s] (type:float)
  20675. heading : Current heading in compass units (0-360, 0=north). [deg] (type:int16_t)
  20676. throttle : Current throttle setting (0 to 100). [%] (type:uint16_t)
  20677. alt : Current altitude (MSL). [m] (type:float)
  20678. climb : Current climb rate. [m/s] (type:float)
  20679. """
  20680. return MAVLink_vfr_hud_message(airspeed, groundspeed, heading, throttle, alt, climb)
  20681. def vfr_hud_send(self, airspeed: float, groundspeed: float, heading: int, throttle: int, alt: float, climb: float, force_mavlink1: bool = False) -> None:
  20682. """
  20683. Metrics typically displayed on a HUD for fixed wing aircraft.
  20684. airspeed : Vehicle speed in form appropriate for vehicle type. For standard aircraft this is typically calibrated airspeed (CAS) or indicated airspeed (IAS) - either of which can be used by a pilot to estimate stall speed. [m/s] (type:float)
  20685. groundspeed : Current ground speed. [m/s] (type:float)
  20686. heading : Current heading in compass units (0-360, 0=north). [deg] (type:int16_t)
  20687. throttle : Current throttle setting (0 to 100). [%] (type:uint16_t)
  20688. alt : Current altitude (MSL). [m] (type:float)
  20689. climb : Current climb rate. [m/s] (type:float)
  20690. """
  20691. self.send(self.vfr_hud_encode(airspeed, groundspeed, heading, throttle, alt, climb), force_mavlink1=force_mavlink1)
  20692. def command_int_encode(self, target_system: int, target_component: int, frame: int, command: int, current: int, autocontinue: int, param1: float, param2: float, param3: float, param4: float, x: int, y: int, z: float) -> MAVLink_command_int_message:
  20693. """
  20694. Send a command with up to seven parameters to the MAV, where params 5
  20695. and 6 are integers and the other values are floats. This is
  20696. preferred over COMMAND_LONG as it allows the MAV_FRAME to be
  20697. specified for interpreting positional information, such as
  20698. altitude. COMMAND_INT is also preferred when sending latitude
  20699. and longitude data in params 5 and 6, as it allows for greater
  20700. precision. Param 5 and 6 encode positional data as scaled
  20701. integers, where the scaling depends on the actual command
  20702. value. NaN or INT32_MAX may be used in float/integer params
  20703. (respectively) to indicate optional/default values (e.g. to
  20704. use the component's current latitude, yaw rather than a
  20705. specific value). The command microservice is documented at
  20706. https://mavlink.io/en/services/command.html
  20707. target_system : System ID (type:uint8_t)
  20708. target_component : Component ID (type:uint8_t)
  20709. frame : The coordinate system of the COMMAND. (type:uint8_t, values:MAV_FRAME)
  20710. command : The scheduled action for the mission item. (type:uint16_t, values:MAV_CMD)
  20711. current : Not used. (type:uint8_t)
  20712. autocontinue : Not used (set 0). (type:uint8_t)
  20713. param1 : PARAM1, see MAV_CMD enum (type:float)
  20714. param2 : PARAM2, see MAV_CMD enum (type:float)
  20715. param3 : PARAM3, see MAV_CMD enum (type:float)
  20716. param4 : PARAM4, see MAV_CMD enum (type:float)
  20717. x : PARAM5 / local: x position in meters * 1e4, global: latitude in degrees * 10^7 (type:int32_t)
  20718. y : PARAM6 / local: y position in meters * 1e4, global: longitude in degrees * 10^7 (type:int32_t)
  20719. z : PARAM7 / z position: global: altitude in meters (relative or absolute, depending on frame). (type:float)
  20720. """
  20721. return MAVLink_command_int_message(target_system, target_component, frame, command, current, autocontinue, param1, param2, param3, param4, x, y, z)
  20722. def command_int_send(self, target_system: int, target_component: int, frame: int, command: int, current: int, autocontinue: int, param1: float, param2: float, param3: float, param4: float, x: int, y: int, z: float, force_mavlink1: bool = False) -> None:
  20723. """
  20724. Send a command with up to seven parameters to the MAV, where params 5
  20725. and 6 are integers and the other values are floats. This is
  20726. preferred over COMMAND_LONG as it allows the MAV_FRAME to be
  20727. specified for interpreting positional information, such as
  20728. altitude. COMMAND_INT is also preferred when sending latitude
  20729. and longitude data in params 5 and 6, as it allows for greater
  20730. precision. Param 5 and 6 encode positional data as scaled
  20731. integers, where the scaling depends on the actual command
  20732. value. NaN or INT32_MAX may be used in float/integer params
  20733. (respectively) to indicate optional/default values (e.g. to
  20734. use the component's current latitude, yaw rather than a
  20735. specific value). The command microservice is documented at
  20736. https://mavlink.io/en/services/command.html
  20737. target_system : System ID (type:uint8_t)
  20738. target_component : Component ID (type:uint8_t)
  20739. frame : The coordinate system of the COMMAND. (type:uint8_t, values:MAV_FRAME)
  20740. command : The scheduled action for the mission item. (type:uint16_t, values:MAV_CMD)
  20741. current : Not used. (type:uint8_t)
  20742. autocontinue : Not used (set 0). (type:uint8_t)
  20743. param1 : PARAM1, see MAV_CMD enum (type:float)
  20744. param2 : PARAM2, see MAV_CMD enum (type:float)
  20745. param3 : PARAM3, see MAV_CMD enum (type:float)
  20746. param4 : PARAM4, see MAV_CMD enum (type:float)
  20747. x : PARAM5 / local: x position in meters * 1e4, global: latitude in degrees * 10^7 (type:int32_t)
  20748. y : PARAM6 / local: y position in meters * 1e4, global: longitude in degrees * 10^7 (type:int32_t)
  20749. z : PARAM7 / z position: global: altitude in meters (relative or absolute, depending on frame). (type:float)
  20750. """
  20751. self.send(self.command_int_encode(target_system, target_component, frame, command, current, autocontinue, param1, param2, param3, param4, x, y, z), force_mavlink1=force_mavlink1)
  20752. def command_long_encode(self, target_system: int, target_component: int, command: int, confirmation: int, param1: float, param2: float, param3: float, param4: float, param5: float, param6: float, param7: float) -> MAVLink_command_long_message:
  20753. """
  20754. Send a command with up to seven parameters to the MAV. COMMAND_INT is
  20755. generally preferred when sending MAV_CMD commands that include
  20756. positional information; it offers higher precision and allows
  20757. the MAV_FRAME to be specified (which may otherwise be
  20758. ambiguous, particularly for altitude). The command
  20759. microservice is documented at
  20760. https://mavlink.io/en/services/command.html
  20761. target_system : System which should execute the command (type:uint8_t)
  20762. target_component : Component which should execute the command, 0 for all components (type:uint8_t)
  20763. command : Command ID (of command to send). (type:uint16_t, values:MAV_CMD)
  20764. confirmation : 0: First transmission of this command. 1-255: Confirmation transmissions (e.g. for kill command) (type:uint8_t)
  20765. param1 : Parameter 1 (for the specific command). (type:float)
  20766. param2 : Parameter 2 (for the specific command). (type:float)
  20767. param3 : Parameter 3 (for the specific command). (type:float)
  20768. param4 : Parameter 4 (for the specific command). (type:float)
  20769. param5 : Parameter 5 (for the specific command). (type:float)
  20770. param6 : Parameter 6 (for the specific command). (type:float)
  20771. param7 : Parameter 7 (for the specific command). (type:float)
  20772. """
  20773. return MAVLink_command_long_message(target_system, target_component, command, confirmation, param1, param2, param3, param4, param5, param6, param7)
  20774. def command_long_send(self, target_system: int, target_component: int, command: int, confirmation: int, param1: float, param2: float, param3: float, param4: float, param5: float, param6: float, param7: float, force_mavlink1: bool = False) -> None:
  20775. """
  20776. Send a command with up to seven parameters to the MAV. COMMAND_INT is
  20777. generally preferred when sending MAV_CMD commands that include
  20778. positional information; it offers higher precision and allows
  20779. the MAV_FRAME to be specified (which may otherwise be
  20780. ambiguous, particularly for altitude). The command
  20781. microservice is documented at
  20782. https://mavlink.io/en/services/command.html
  20783. target_system : System which should execute the command (type:uint8_t)
  20784. target_component : Component which should execute the command, 0 for all components (type:uint8_t)
  20785. command : Command ID (of command to send). (type:uint16_t, values:MAV_CMD)
  20786. confirmation : 0: First transmission of this command. 1-255: Confirmation transmissions (e.g. for kill command) (type:uint8_t)
  20787. param1 : Parameter 1 (for the specific command). (type:float)
  20788. param2 : Parameter 2 (for the specific command). (type:float)
  20789. param3 : Parameter 3 (for the specific command). (type:float)
  20790. param4 : Parameter 4 (for the specific command). (type:float)
  20791. param5 : Parameter 5 (for the specific command). (type:float)
  20792. param6 : Parameter 6 (for the specific command). (type:float)
  20793. param7 : Parameter 7 (for the specific command). (type:float)
  20794. """
  20795. self.send(self.command_long_encode(target_system, target_component, command, confirmation, param1, param2, param3, param4, param5, param6, param7), force_mavlink1=force_mavlink1)
  20796. def command_ack_encode(self, command: int, result: int, progress: int = 0, result_param2: int = 0, target_system: int = 0, target_component: int = 0) -> MAVLink_command_ack_message:
  20797. """
  20798. Report status of a command. Includes feedback whether the command was
  20799. executed. The command microservice is documented at
  20800. https://mavlink.io/en/services/command.html
  20801. command : Command ID (of acknowledged command). (type:uint16_t, values:MAV_CMD)
  20802. result : Result of command. (type:uint8_t, values:MAV_RESULT)
  20803. progress : The progress percentage when result is MAV_RESULT_IN_PROGRESS. Values: [0-100], or UINT8_MAX if the progress is unknown. [%] (type:uint8_t)
  20804. result_param2 : Additional result information. Can be set with a command-specific enum containing command-specific error reasons for why the command might be denied. If used, the associated enum must be documented in the corresponding MAV_CMD (this enum should have a 0 value to indicate "unused" or "unknown"). (type:int32_t)
  20805. target_system : System ID of the target recipient. This is the ID of the system that sent the command for which this COMMAND_ACK is an acknowledgement. (type:uint8_t)
  20806. target_component : Component ID of the target recipient. This is the ID of the system that sent the command for which this COMMAND_ACK is an acknowledgement. (type:uint8_t)
  20807. """
  20808. return MAVLink_command_ack_message(command, result, progress, result_param2, target_system, target_component)
  20809. def command_ack_send(self, command: int, result: int, progress: int = 0, result_param2: int = 0, target_system: int = 0, target_component: int = 0, force_mavlink1: bool = False) -> None:
  20810. """
  20811. Report status of a command. Includes feedback whether the command was
  20812. executed. The command microservice is documented at
  20813. https://mavlink.io/en/services/command.html
  20814. command : Command ID (of acknowledged command). (type:uint16_t, values:MAV_CMD)
  20815. result : Result of command. (type:uint8_t, values:MAV_RESULT)
  20816. progress : The progress percentage when result is MAV_RESULT_IN_PROGRESS. Values: [0-100], or UINT8_MAX if the progress is unknown. [%] (type:uint8_t)
  20817. result_param2 : Additional result information. Can be set with a command-specific enum containing command-specific error reasons for why the command might be denied. If used, the associated enum must be documented in the corresponding MAV_CMD (this enum should have a 0 value to indicate "unused" or "unknown"). (type:int32_t)
  20818. target_system : System ID of the target recipient. This is the ID of the system that sent the command for which this COMMAND_ACK is an acknowledgement. (type:uint8_t)
  20819. target_component : Component ID of the target recipient. This is the ID of the system that sent the command for which this COMMAND_ACK is an acknowledgement. (type:uint8_t)
  20820. """
  20821. self.send(self.command_ack_encode(command, result, progress, result_param2, target_system, target_component), force_mavlink1=force_mavlink1)
  20822. def command_cancel_encode(self, target_system: int, target_component: int, command: int) -> MAVLink_command_cancel_message:
  20823. """
  20824. Cancel a long running command. The target system should respond with a
  20825. COMMAND_ACK to the original command with
  20826. result=MAV_RESULT_CANCELLED if the long running process was
  20827. cancelled. If it has already completed, the cancel action can
  20828. be ignored. The cancel action can be retried until some sort
  20829. of acknowledgement to the original command has been received.
  20830. The command microservice is documented at
  20831. https://mavlink.io/en/services/command.html
  20832. target_system : System executing long running command. Should not be broadcast (0). (type:uint8_t)
  20833. target_component : Component executing long running command. (type:uint8_t)
  20834. command : Command ID (of command to cancel). (type:uint16_t, values:MAV_CMD)
  20835. """
  20836. return MAVLink_command_cancel_message(target_system, target_component, command)
  20837. def command_cancel_send(self, target_system: int, target_component: int, command: int, force_mavlink1: bool = False) -> None:
  20838. """
  20839. Cancel a long running command. The target system should respond with a
  20840. COMMAND_ACK to the original command with
  20841. result=MAV_RESULT_CANCELLED if the long running process was
  20842. cancelled. If it has already completed, the cancel action can
  20843. be ignored. The cancel action can be retried until some sort
  20844. of acknowledgement to the original command has been received.
  20845. The command microservice is documented at
  20846. https://mavlink.io/en/services/command.html
  20847. target_system : System executing long running command. Should not be broadcast (0). (type:uint8_t)
  20848. target_component : Component executing long running command. (type:uint8_t)
  20849. command : Command ID (of command to cancel). (type:uint16_t, values:MAV_CMD)
  20850. """
  20851. self.send(self.command_cancel_encode(target_system, target_component, command), force_mavlink1=force_mavlink1)
  20852. def manual_setpoint_encode(self, time_boot_ms: int, roll: float, pitch: float, yaw: float, thrust: float, mode_switch: int, manual_override_switch: int) -> MAVLink_manual_setpoint_message:
  20853. """
  20854. Setpoint in roll, pitch, yaw and thrust from the operator
  20855. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  20856. roll : Desired roll rate [rad/s] (type:float)
  20857. pitch : Desired pitch rate [rad/s] (type:float)
  20858. yaw : Desired yaw rate [rad/s] (type:float)
  20859. thrust : Collective thrust, normalized to 0 .. 1 (type:float)
  20860. mode_switch : Flight mode switch position, 0.. 255 (type:uint8_t)
  20861. manual_override_switch : Override mode switch position, 0.. 255 (type:uint8_t)
  20862. """
  20863. return MAVLink_manual_setpoint_message(time_boot_ms, roll, pitch, yaw, thrust, mode_switch, manual_override_switch)
  20864. def manual_setpoint_send(self, time_boot_ms: int, roll: float, pitch: float, yaw: float, thrust: float, mode_switch: int, manual_override_switch: int, force_mavlink1: bool = False) -> None:
  20865. """
  20866. Setpoint in roll, pitch, yaw and thrust from the operator
  20867. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  20868. roll : Desired roll rate [rad/s] (type:float)
  20869. pitch : Desired pitch rate [rad/s] (type:float)
  20870. yaw : Desired yaw rate [rad/s] (type:float)
  20871. thrust : Collective thrust, normalized to 0 .. 1 (type:float)
  20872. mode_switch : Flight mode switch position, 0.. 255 (type:uint8_t)
  20873. manual_override_switch : Override mode switch position, 0.. 255 (type:uint8_t)
  20874. """
  20875. self.send(self.manual_setpoint_encode(time_boot_ms, roll, pitch, yaw, thrust, mode_switch, manual_override_switch), force_mavlink1=force_mavlink1)
  20876. def set_attitude_target_encode(self, time_boot_ms: int, target_system: int, target_component: int, type_mask: int, q: Sequence[float], body_roll_rate: float, body_pitch_rate: float, body_yaw_rate: float, thrust: float, thrust_body: Sequence[float] = (0, 0, 0)) -> MAVLink_set_attitude_target_message:
  20877. """
  20878. Sets a desired vehicle attitude. Used by an external controller to
  20879. command the vehicle (manual controller or other system).
  20880. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  20881. target_system : System ID (type:uint8_t)
  20882. target_component : Component ID (type:uint8_t)
  20883. type_mask : Bitmap to indicate which dimensions should be ignored by the vehicle. (type:uint8_t, values:ATTITUDE_TARGET_TYPEMASK)
  20884. q : Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0) from MAV_FRAME_LOCAL_NED to MAV_FRAME_BODY_FRD (type:float)
  20885. body_roll_rate : Body roll rate [rad/s] (type:float)
  20886. body_pitch_rate : Body pitch rate [rad/s] (type:float)
  20887. body_yaw_rate : Body yaw rate [rad/s] (type:float)
  20888. thrust : Collective thrust, normalized to 0 .. 1 (-1 .. 1 for vehicles capable of reverse trust) (type:float)
  20889. thrust_body : 3D thrust setpoint in the body NED frame, normalized to -1 .. 1 (type:float)
  20890. """
  20891. return MAVLink_set_attitude_target_message(time_boot_ms, target_system, target_component, type_mask, q, body_roll_rate, body_pitch_rate, body_yaw_rate, thrust, thrust_body)
  20892. def set_attitude_target_send(self, time_boot_ms: int, target_system: int, target_component: int, type_mask: int, q: Sequence[float], body_roll_rate: float, body_pitch_rate: float, body_yaw_rate: float, thrust: float, thrust_body: Sequence[float] = (0, 0, 0), force_mavlink1: bool = False) -> None:
  20893. """
  20894. Sets a desired vehicle attitude. Used by an external controller to
  20895. command the vehicle (manual controller or other system).
  20896. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  20897. target_system : System ID (type:uint8_t)
  20898. target_component : Component ID (type:uint8_t)
  20899. type_mask : Bitmap to indicate which dimensions should be ignored by the vehicle. (type:uint8_t, values:ATTITUDE_TARGET_TYPEMASK)
  20900. q : Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0) from MAV_FRAME_LOCAL_NED to MAV_FRAME_BODY_FRD (type:float)
  20901. body_roll_rate : Body roll rate [rad/s] (type:float)
  20902. body_pitch_rate : Body pitch rate [rad/s] (type:float)
  20903. body_yaw_rate : Body yaw rate [rad/s] (type:float)
  20904. thrust : Collective thrust, normalized to 0 .. 1 (-1 .. 1 for vehicles capable of reverse trust) (type:float)
  20905. thrust_body : 3D thrust setpoint in the body NED frame, normalized to -1 .. 1 (type:float)
  20906. """
  20907. self.send(self.set_attitude_target_encode(time_boot_ms, target_system, target_component, type_mask, q, body_roll_rate, body_pitch_rate, body_yaw_rate, thrust, thrust_body), force_mavlink1=force_mavlink1)
  20908. def attitude_target_encode(self, time_boot_ms: int, type_mask: int, q: Sequence[float], body_roll_rate: float, body_pitch_rate: float, body_yaw_rate: float, thrust: float) -> MAVLink_attitude_target_message:
  20909. """
  20910. Reports the current commanded attitude of the vehicle as specified by
  20911. the autopilot. This should match the commands sent in a
  20912. SET_ATTITUDE_TARGET message if the vehicle is being controlled
  20913. this way.
  20914. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  20915. type_mask : Bitmap to indicate which dimensions should be ignored by the vehicle. (type:uint8_t, values:ATTITUDE_TARGET_TYPEMASK)
  20916. q : Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0) (type:float)
  20917. body_roll_rate : Body roll rate [rad/s] (type:float)
  20918. body_pitch_rate : Body pitch rate [rad/s] (type:float)
  20919. body_yaw_rate : Body yaw rate [rad/s] (type:float)
  20920. thrust : Collective thrust, normalized to 0 .. 1 (-1 .. 1 for vehicles capable of reverse trust) (type:float)
  20921. """
  20922. return MAVLink_attitude_target_message(time_boot_ms, type_mask, q, body_roll_rate, body_pitch_rate, body_yaw_rate, thrust)
  20923. def attitude_target_send(self, time_boot_ms: int, type_mask: int, q: Sequence[float], body_roll_rate: float, body_pitch_rate: float, body_yaw_rate: float, thrust: float, force_mavlink1: bool = False) -> None:
  20924. """
  20925. Reports the current commanded attitude of the vehicle as specified by
  20926. the autopilot. This should match the commands sent in a
  20927. SET_ATTITUDE_TARGET message if the vehicle is being controlled
  20928. this way.
  20929. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  20930. type_mask : Bitmap to indicate which dimensions should be ignored by the vehicle. (type:uint8_t, values:ATTITUDE_TARGET_TYPEMASK)
  20931. q : Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0) (type:float)
  20932. body_roll_rate : Body roll rate [rad/s] (type:float)
  20933. body_pitch_rate : Body pitch rate [rad/s] (type:float)
  20934. body_yaw_rate : Body yaw rate [rad/s] (type:float)
  20935. thrust : Collective thrust, normalized to 0 .. 1 (-1 .. 1 for vehicles capable of reverse trust) (type:float)
  20936. """
  20937. self.send(self.attitude_target_encode(time_boot_ms, type_mask, q, body_roll_rate, body_pitch_rate, body_yaw_rate, thrust), force_mavlink1=force_mavlink1)
  20938. def set_position_target_local_ned_encode(self, time_boot_ms: int, target_system: int, target_component: int, coordinate_frame: int, type_mask: int, x: float, y: float, z: float, vx: float, vy: float, vz: float, afx: float, afy: float, afz: float, yaw: float, yaw_rate: float) -> MAVLink_set_position_target_local_ned_message:
  20939. """
  20940. Sets a desired vehicle position in a local north-east-down coordinate
  20941. frame. Used by an external controller to command the vehicle
  20942. (manual controller or other system).
  20943. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  20944. target_system : System ID (type:uint8_t)
  20945. target_component : Component ID (type:uint8_t)
  20946. coordinate_frame : Valid options are: MAV_FRAME_LOCAL_NED = 1, MAV_FRAME_LOCAL_OFFSET_NED = 7, MAV_FRAME_BODY_NED = 8, MAV_FRAME_BODY_OFFSET_NED = 9 (type:uint8_t, values:MAV_FRAME)
  20947. type_mask : Bitmap to indicate which dimensions should be ignored by the vehicle. (type:uint16_t, values:POSITION_TARGET_TYPEMASK)
  20948. x : X Position in NED frame [m] (type:float)
  20949. y : Y Position in NED frame [m] (type:float)
  20950. z : Z Position in NED frame (note, altitude is negative in NED) [m] (type:float)
  20951. vx : X velocity in NED frame [m/s] (type:float)
  20952. vy : Y velocity in NED frame [m/s] (type:float)
  20953. vz : Z velocity in NED frame [m/s] (type:float)
  20954. afx : X acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N [m/s/s] (type:float)
  20955. afy : Y acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N [m/s/s] (type:float)
  20956. afz : Z acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N [m/s/s] (type:float)
  20957. yaw : yaw setpoint [rad] (type:float)
  20958. yaw_rate : yaw rate setpoint [rad/s] (type:float)
  20959. """
  20960. return MAVLink_set_position_target_local_ned_message(time_boot_ms, target_system, target_component, coordinate_frame, type_mask, x, y, z, vx, vy, vz, afx, afy, afz, yaw, yaw_rate)
  20961. def set_position_target_local_ned_send(self, time_boot_ms: int, target_system: int, target_component: int, coordinate_frame: int, type_mask: int, x: float, y: float, z: float, vx: float, vy: float, vz: float, afx: float, afy: float, afz: float, yaw: float, yaw_rate: float, force_mavlink1: bool = False) -> None:
  20962. """
  20963. Sets a desired vehicle position in a local north-east-down coordinate
  20964. frame. Used by an external controller to command the vehicle
  20965. (manual controller or other system).
  20966. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  20967. target_system : System ID (type:uint8_t)
  20968. target_component : Component ID (type:uint8_t)
  20969. coordinate_frame : Valid options are: MAV_FRAME_LOCAL_NED = 1, MAV_FRAME_LOCAL_OFFSET_NED = 7, MAV_FRAME_BODY_NED = 8, MAV_FRAME_BODY_OFFSET_NED = 9 (type:uint8_t, values:MAV_FRAME)
  20970. type_mask : Bitmap to indicate which dimensions should be ignored by the vehicle. (type:uint16_t, values:POSITION_TARGET_TYPEMASK)
  20971. x : X Position in NED frame [m] (type:float)
  20972. y : Y Position in NED frame [m] (type:float)
  20973. z : Z Position in NED frame (note, altitude is negative in NED) [m] (type:float)
  20974. vx : X velocity in NED frame [m/s] (type:float)
  20975. vy : Y velocity in NED frame [m/s] (type:float)
  20976. vz : Z velocity in NED frame [m/s] (type:float)
  20977. afx : X acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N [m/s/s] (type:float)
  20978. afy : Y acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N [m/s/s] (type:float)
  20979. afz : Z acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N [m/s/s] (type:float)
  20980. yaw : yaw setpoint [rad] (type:float)
  20981. yaw_rate : yaw rate setpoint [rad/s] (type:float)
  20982. """
  20983. self.send(self.set_position_target_local_ned_encode(time_boot_ms, target_system, target_component, coordinate_frame, type_mask, x, y, z, vx, vy, vz, afx, afy, afz, yaw, yaw_rate), force_mavlink1=force_mavlink1)
  20984. def position_target_local_ned_encode(self, time_boot_ms: int, coordinate_frame: int, type_mask: int, x: float, y: float, z: float, vx: float, vy: float, vz: float, afx: float, afy: float, afz: float, yaw: float, yaw_rate: float) -> MAVLink_position_target_local_ned_message:
  20985. """
  20986. Reports the current commanded vehicle position, velocity, and
  20987. acceleration as specified by the autopilot. This should match
  20988. the commands sent in SET_POSITION_TARGET_LOCAL_NED if the
  20989. vehicle is being controlled this way.
  20990. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  20991. coordinate_frame : Valid options are: MAV_FRAME_LOCAL_NED = 1, MAV_FRAME_LOCAL_OFFSET_NED = 7, MAV_FRAME_BODY_NED = 8, MAV_FRAME_BODY_OFFSET_NED = 9 (type:uint8_t, values:MAV_FRAME)
  20992. type_mask : Bitmap to indicate which dimensions should be ignored by the vehicle. (type:uint16_t, values:POSITION_TARGET_TYPEMASK)
  20993. x : X Position in NED frame [m] (type:float)
  20994. y : Y Position in NED frame [m] (type:float)
  20995. z : Z Position in NED frame (note, altitude is negative in NED) [m] (type:float)
  20996. vx : X velocity in NED frame [m/s] (type:float)
  20997. vy : Y velocity in NED frame [m/s] (type:float)
  20998. vz : Z velocity in NED frame [m/s] (type:float)
  20999. afx : X acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N [m/s/s] (type:float)
  21000. afy : Y acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N [m/s/s] (type:float)
  21001. afz : Z acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N [m/s/s] (type:float)
  21002. yaw : yaw setpoint [rad] (type:float)
  21003. yaw_rate : yaw rate setpoint [rad/s] (type:float)
  21004. """
  21005. return MAVLink_position_target_local_ned_message(time_boot_ms, coordinate_frame, type_mask, x, y, z, vx, vy, vz, afx, afy, afz, yaw, yaw_rate)
  21006. def position_target_local_ned_send(self, time_boot_ms: int, coordinate_frame: int, type_mask: int, x: float, y: float, z: float, vx: float, vy: float, vz: float, afx: float, afy: float, afz: float, yaw: float, yaw_rate: float, force_mavlink1: bool = False) -> None:
  21007. """
  21008. Reports the current commanded vehicle position, velocity, and
  21009. acceleration as specified by the autopilot. This should match
  21010. the commands sent in SET_POSITION_TARGET_LOCAL_NED if the
  21011. vehicle is being controlled this way.
  21012. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  21013. coordinate_frame : Valid options are: MAV_FRAME_LOCAL_NED = 1, MAV_FRAME_LOCAL_OFFSET_NED = 7, MAV_FRAME_BODY_NED = 8, MAV_FRAME_BODY_OFFSET_NED = 9 (type:uint8_t, values:MAV_FRAME)
  21014. type_mask : Bitmap to indicate which dimensions should be ignored by the vehicle. (type:uint16_t, values:POSITION_TARGET_TYPEMASK)
  21015. x : X Position in NED frame [m] (type:float)
  21016. y : Y Position in NED frame [m] (type:float)
  21017. z : Z Position in NED frame (note, altitude is negative in NED) [m] (type:float)
  21018. vx : X velocity in NED frame [m/s] (type:float)
  21019. vy : Y velocity in NED frame [m/s] (type:float)
  21020. vz : Z velocity in NED frame [m/s] (type:float)
  21021. afx : X acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N [m/s/s] (type:float)
  21022. afy : Y acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N [m/s/s] (type:float)
  21023. afz : Z acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N [m/s/s] (type:float)
  21024. yaw : yaw setpoint [rad] (type:float)
  21025. yaw_rate : yaw rate setpoint [rad/s] (type:float)
  21026. """
  21027. self.send(self.position_target_local_ned_encode(time_boot_ms, coordinate_frame, type_mask, x, y, z, vx, vy, vz, afx, afy, afz, yaw, yaw_rate), force_mavlink1=force_mavlink1)
  21028. def set_position_target_global_int_encode(self, time_boot_ms: int, target_system: int, target_component: int, coordinate_frame: int, type_mask: int, lat_int: int, lon_int: int, alt: float, vx: float, vy: float, vz: float, afx: float, afy: float, afz: float, yaw: float, yaw_rate: float) -> MAVLink_set_position_target_global_int_message:
  21029. """
  21030. Sets a desired vehicle position, velocity, and/or acceleration in a
  21031. global coordinate system (WGS84). Used by an external
  21032. controller to command the vehicle (manual controller or other
  21033. system).
  21034. time_boot_ms : Timestamp (time since system boot). The rationale for the timestamp in the setpoint is to allow the system to compensate for the transport delay of the setpoint. This allows the system to compensate processing latency. [ms] (type:uint32_t)
  21035. target_system : System ID (type:uint8_t)
  21036. target_component : Component ID (type:uint8_t)
  21037. coordinate_frame : Valid options are: MAV_FRAME_GLOBAL_INT = 5, MAV_FRAME_GLOBAL_RELATIVE_ALT_INT = 6, MAV_FRAME_GLOBAL_TERRAIN_ALT_INT = 11 (type:uint8_t, values:MAV_FRAME)
  21038. type_mask : Bitmap to indicate which dimensions should be ignored by the vehicle. (type:uint16_t, values:POSITION_TARGET_TYPEMASK)
  21039. lat_int : X Position in WGS84 frame [degE7] (type:int32_t)
  21040. lon_int : Y Position in WGS84 frame [degE7] (type:int32_t)
  21041. alt : Altitude (MSL, Relative to home, or AGL - depending on frame) [m] (type:float)
  21042. vx : X velocity in NED frame [m/s] (type:float)
  21043. vy : Y velocity in NED frame [m/s] (type:float)
  21044. vz : Z velocity in NED frame [m/s] (type:float)
  21045. afx : X acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N [m/s/s] (type:float)
  21046. afy : Y acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N [m/s/s] (type:float)
  21047. afz : Z acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N [m/s/s] (type:float)
  21048. yaw : yaw setpoint [rad] (type:float)
  21049. yaw_rate : yaw rate setpoint [rad/s] (type:float)
  21050. """
  21051. return MAVLink_set_position_target_global_int_message(time_boot_ms, target_system, target_component, coordinate_frame, type_mask, lat_int, lon_int, alt, vx, vy, vz, afx, afy, afz, yaw, yaw_rate)
  21052. def set_position_target_global_int_send(self, time_boot_ms: int, target_system: int, target_component: int, coordinate_frame: int, type_mask: int, lat_int: int, lon_int: int, alt: float, vx: float, vy: float, vz: float, afx: float, afy: float, afz: float, yaw: float, yaw_rate: float, force_mavlink1: bool = False) -> None:
  21053. """
  21054. Sets a desired vehicle position, velocity, and/or acceleration in a
  21055. global coordinate system (WGS84). Used by an external
  21056. controller to command the vehicle (manual controller or other
  21057. system).
  21058. time_boot_ms : Timestamp (time since system boot). The rationale for the timestamp in the setpoint is to allow the system to compensate for the transport delay of the setpoint. This allows the system to compensate processing latency. [ms] (type:uint32_t)
  21059. target_system : System ID (type:uint8_t)
  21060. target_component : Component ID (type:uint8_t)
  21061. coordinate_frame : Valid options are: MAV_FRAME_GLOBAL_INT = 5, MAV_FRAME_GLOBAL_RELATIVE_ALT_INT = 6, MAV_FRAME_GLOBAL_TERRAIN_ALT_INT = 11 (type:uint8_t, values:MAV_FRAME)
  21062. type_mask : Bitmap to indicate which dimensions should be ignored by the vehicle. (type:uint16_t, values:POSITION_TARGET_TYPEMASK)
  21063. lat_int : X Position in WGS84 frame [degE7] (type:int32_t)
  21064. lon_int : Y Position in WGS84 frame [degE7] (type:int32_t)
  21065. alt : Altitude (MSL, Relative to home, or AGL - depending on frame) [m] (type:float)
  21066. vx : X velocity in NED frame [m/s] (type:float)
  21067. vy : Y velocity in NED frame [m/s] (type:float)
  21068. vz : Z velocity in NED frame [m/s] (type:float)
  21069. afx : X acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N [m/s/s] (type:float)
  21070. afy : Y acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N [m/s/s] (type:float)
  21071. afz : Z acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N [m/s/s] (type:float)
  21072. yaw : yaw setpoint [rad] (type:float)
  21073. yaw_rate : yaw rate setpoint [rad/s] (type:float)
  21074. """
  21075. self.send(self.set_position_target_global_int_encode(time_boot_ms, target_system, target_component, coordinate_frame, type_mask, lat_int, lon_int, alt, vx, vy, vz, afx, afy, afz, yaw, yaw_rate), force_mavlink1=force_mavlink1)
  21076. def position_target_global_int_encode(self, time_boot_ms: int, coordinate_frame: int, type_mask: int, lat_int: int, lon_int: int, alt: float, vx: float, vy: float, vz: float, afx: float, afy: float, afz: float, yaw: float, yaw_rate: float) -> MAVLink_position_target_global_int_message:
  21077. """
  21078. Reports the current commanded vehicle position, velocity, and
  21079. acceleration as specified by the autopilot. This should match
  21080. the commands sent in SET_POSITION_TARGET_GLOBAL_INT if the
  21081. vehicle is being controlled this way.
  21082. time_boot_ms : Timestamp (time since system boot). The rationale for the timestamp in the setpoint is to allow the system to compensate for the transport delay of the setpoint. This allows the system to compensate processing latency. [ms] (type:uint32_t)
  21083. coordinate_frame : Valid options are: MAV_FRAME_GLOBAL_INT = 5, MAV_FRAME_GLOBAL_RELATIVE_ALT_INT = 6, MAV_FRAME_GLOBAL_TERRAIN_ALT_INT = 11 (type:uint8_t, values:MAV_FRAME)
  21084. type_mask : Bitmap to indicate which dimensions should be ignored by the vehicle. (type:uint16_t, values:POSITION_TARGET_TYPEMASK)
  21085. lat_int : X Position in WGS84 frame [degE7] (type:int32_t)
  21086. lon_int : Y Position in WGS84 frame [degE7] (type:int32_t)
  21087. alt : Altitude (MSL, AGL or relative to home altitude, depending on frame) [m] (type:float)
  21088. vx : X velocity in NED frame [m/s] (type:float)
  21089. vy : Y velocity in NED frame [m/s] (type:float)
  21090. vz : Z velocity in NED frame [m/s] (type:float)
  21091. afx : X acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N [m/s/s] (type:float)
  21092. afy : Y acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N [m/s/s] (type:float)
  21093. afz : Z acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N [m/s/s] (type:float)
  21094. yaw : yaw setpoint [rad] (type:float)
  21095. yaw_rate : yaw rate setpoint [rad/s] (type:float)
  21096. """
  21097. return MAVLink_position_target_global_int_message(time_boot_ms, coordinate_frame, type_mask, lat_int, lon_int, alt, vx, vy, vz, afx, afy, afz, yaw, yaw_rate)
  21098. def position_target_global_int_send(self, time_boot_ms: int, coordinate_frame: int, type_mask: int, lat_int: int, lon_int: int, alt: float, vx: float, vy: float, vz: float, afx: float, afy: float, afz: float, yaw: float, yaw_rate: float, force_mavlink1: bool = False) -> None:
  21099. """
  21100. Reports the current commanded vehicle position, velocity, and
  21101. acceleration as specified by the autopilot. This should match
  21102. the commands sent in SET_POSITION_TARGET_GLOBAL_INT if the
  21103. vehicle is being controlled this way.
  21104. time_boot_ms : Timestamp (time since system boot). The rationale for the timestamp in the setpoint is to allow the system to compensate for the transport delay of the setpoint. This allows the system to compensate processing latency. [ms] (type:uint32_t)
  21105. coordinate_frame : Valid options are: MAV_FRAME_GLOBAL_INT = 5, MAV_FRAME_GLOBAL_RELATIVE_ALT_INT = 6, MAV_FRAME_GLOBAL_TERRAIN_ALT_INT = 11 (type:uint8_t, values:MAV_FRAME)
  21106. type_mask : Bitmap to indicate which dimensions should be ignored by the vehicle. (type:uint16_t, values:POSITION_TARGET_TYPEMASK)
  21107. lat_int : X Position in WGS84 frame [degE7] (type:int32_t)
  21108. lon_int : Y Position in WGS84 frame [degE7] (type:int32_t)
  21109. alt : Altitude (MSL, AGL or relative to home altitude, depending on frame) [m] (type:float)
  21110. vx : X velocity in NED frame [m/s] (type:float)
  21111. vy : Y velocity in NED frame [m/s] (type:float)
  21112. vz : Z velocity in NED frame [m/s] (type:float)
  21113. afx : X acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N [m/s/s] (type:float)
  21114. afy : Y acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N [m/s/s] (type:float)
  21115. afz : Z acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N [m/s/s] (type:float)
  21116. yaw : yaw setpoint [rad] (type:float)
  21117. yaw_rate : yaw rate setpoint [rad/s] (type:float)
  21118. """
  21119. self.send(self.position_target_global_int_encode(time_boot_ms, coordinate_frame, type_mask, lat_int, lon_int, alt, vx, vy, vz, afx, afy, afz, yaw, yaw_rate), force_mavlink1=force_mavlink1)
  21120. def local_position_ned_system_global_offset_encode(self, time_boot_ms: int, x: float, y: float, z: float, roll: float, pitch: float, yaw: float) -> MAVLink_local_position_ned_system_global_offset_message:
  21121. """
  21122. The offset in X, Y, Z and yaw between the LOCAL_POSITION_NED messages
  21123. of MAV X and the global coordinate frame in NED coordinates.
  21124. Coordinate frame is right-handed, Z-axis down (aeronautical
  21125. frame, NED / north-east-down convention)
  21126. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  21127. x : X Position [m] (type:float)
  21128. y : Y Position [m] (type:float)
  21129. z : Z Position [m] (type:float)
  21130. roll : Roll [rad] (type:float)
  21131. pitch : Pitch [rad] (type:float)
  21132. yaw : Yaw [rad] (type:float)
  21133. """
  21134. return MAVLink_local_position_ned_system_global_offset_message(time_boot_ms, x, y, z, roll, pitch, yaw)
  21135. def local_position_ned_system_global_offset_send(self, time_boot_ms: int, x: float, y: float, z: float, roll: float, pitch: float, yaw: float, force_mavlink1: bool = False) -> None:
  21136. """
  21137. The offset in X, Y, Z and yaw between the LOCAL_POSITION_NED messages
  21138. of MAV X and the global coordinate frame in NED coordinates.
  21139. Coordinate frame is right-handed, Z-axis down (aeronautical
  21140. frame, NED / north-east-down convention)
  21141. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  21142. x : X Position [m] (type:float)
  21143. y : Y Position [m] (type:float)
  21144. z : Z Position [m] (type:float)
  21145. roll : Roll [rad] (type:float)
  21146. pitch : Pitch [rad] (type:float)
  21147. yaw : Yaw [rad] (type:float)
  21148. """
  21149. self.send(self.local_position_ned_system_global_offset_encode(time_boot_ms, x, y, z, roll, pitch, yaw), force_mavlink1=force_mavlink1)
  21150. def hil_state_encode(self, time_usec: int, roll: float, pitch: float, yaw: float, rollspeed: float, pitchspeed: float, yawspeed: float, lat: int, lon: int, alt: int, vx: int, vy: int, vz: int, xacc: int, yacc: int, zacc: int) -> MAVLink_hil_state_message:
  21151. """
  21152. Sent from simulation to autopilot. This packet is useful for high
  21153. throughput applications such as hardware in the loop
  21154. simulations.
  21155. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  21156. roll : Roll angle [rad] (type:float)
  21157. pitch : Pitch angle [rad] (type:float)
  21158. yaw : Yaw angle [rad] (type:float)
  21159. rollspeed : Body frame roll / phi angular speed [rad/s] (type:float)
  21160. pitchspeed : Body frame pitch / theta angular speed [rad/s] (type:float)
  21161. yawspeed : Body frame yaw / psi angular speed [rad/s] (type:float)
  21162. lat : Latitude [degE7] (type:int32_t)
  21163. lon : Longitude [degE7] (type:int32_t)
  21164. alt : Altitude [mm] (type:int32_t)
  21165. vx : Ground X Speed (Latitude) [cm/s] (type:int16_t)
  21166. vy : Ground Y Speed (Longitude) [cm/s] (type:int16_t)
  21167. vz : Ground Z Speed (Altitude) [cm/s] (type:int16_t)
  21168. xacc : X acceleration [mG] (type:int16_t)
  21169. yacc : Y acceleration [mG] (type:int16_t)
  21170. zacc : Z acceleration [mG] (type:int16_t)
  21171. """
  21172. return MAVLink_hil_state_message(time_usec, roll, pitch, yaw, rollspeed, pitchspeed, yawspeed, lat, lon, alt, vx, vy, vz, xacc, yacc, zacc)
  21173. def hil_state_send(self, time_usec: int, roll: float, pitch: float, yaw: float, rollspeed: float, pitchspeed: float, yawspeed: float, lat: int, lon: int, alt: int, vx: int, vy: int, vz: int, xacc: int, yacc: int, zacc: int, force_mavlink1: bool = False) -> None:
  21174. """
  21175. Sent from simulation to autopilot. This packet is useful for high
  21176. throughput applications such as hardware in the loop
  21177. simulations.
  21178. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  21179. roll : Roll angle [rad] (type:float)
  21180. pitch : Pitch angle [rad] (type:float)
  21181. yaw : Yaw angle [rad] (type:float)
  21182. rollspeed : Body frame roll / phi angular speed [rad/s] (type:float)
  21183. pitchspeed : Body frame pitch / theta angular speed [rad/s] (type:float)
  21184. yawspeed : Body frame yaw / psi angular speed [rad/s] (type:float)
  21185. lat : Latitude [degE7] (type:int32_t)
  21186. lon : Longitude [degE7] (type:int32_t)
  21187. alt : Altitude [mm] (type:int32_t)
  21188. vx : Ground X Speed (Latitude) [cm/s] (type:int16_t)
  21189. vy : Ground Y Speed (Longitude) [cm/s] (type:int16_t)
  21190. vz : Ground Z Speed (Altitude) [cm/s] (type:int16_t)
  21191. xacc : X acceleration [mG] (type:int16_t)
  21192. yacc : Y acceleration [mG] (type:int16_t)
  21193. zacc : Z acceleration [mG] (type:int16_t)
  21194. """
  21195. self.send(self.hil_state_encode(time_usec, roll, pitch, yaw, rollspeed, pitchspeed, yawspeed, lat, lon, alt, vx, vy, vz, xacc, yacc, zacc), force_mavlink1=force_mavlink1)
  21196. def hil_controls_encode(self, time_usec: int, roll_ailerons: float, pitch_elevator: float, yaw_rudder: float, throttle: float, aux1: float, aux2: float, aux3: float, aux4: float, mode: int, nav_mode: int) -> MAVLink_hil_controls_message:
  21197. """
  21198. Sent from autopilot to simulation. Hardware in the loop control
  21199. outputs
  21200. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  21201. roll_ailerons : Control output -1 .. 1 (type:float)
  21202. pitch_elevator : Control output -1 .. 1 (type:float)
  21203. yaw_rudder : Control output -1 .. 1 (type:float)
  21204. throttle : Throttle 0 .. 1 (type:float)
  21205. aux1 : Aux 1, -1 .. 1 (type:float)
  21206. aux2 : Aux 2, -1 .. 1 (type:float)
  21207. aux3 : Aux 3, -1 .. 1 (type:float)
  21208. aux4 : Aux 4, -1 .. 1 (type:float)
  21209. mode : System mode. (type:uint8_t, values:MAV_MODE)
  21210. nav_mode : Navigation mode (MAV_NAV_MODE) (type:uint8_t)
  21211. """
  21212. return MAVLink_hil_controls_message(time_usec, roll_ailerons, pitch_elevator, yaw_rudder, throttle, aux1, aux2, aux3, aux4, mode, nav_mode)
  21213. def hil_controls_send(self, time_usec: int, roll_ailerons: float, pitch_elevator: float, yaw_rudder: float, throttle: float, aux1: float, aux2: float, aux3: float, aux4: float, mode: int, nav_mode: int, force_mavlink1: bool = False) -> None:
  21214. """
  21215. Sent from autopilot to simulation. Hardware in the loop control
  21216. outputs
  21217. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  21218. roll_ailerons : Control output -1 .. 1 (type:float)
  21219. pitch_elevator : Control output -1 .. 1 (type:float)
  21220. yaw_rudder : Control output -1 .. 1 (type:float)
  21221. throttle : Throttle 0 .. 1 (type:float)
  21222. aux1 : Aux 1, -1 .. 1 (type:float)
  21223. aux2 : Aux 2, -1 .. 1 (type:float)
  21224. aux3 : Aux 3, -1 .. 1 (type:float)
  21225. aux4 : Aux 4, -1 .. 1 (type:float)
  21226. mode : System mode. (type:uint8_t, values:MAV_MODE)
  21227. nav_mode : Navigation mode (MAV_NAV_MODE) (type:uint8_t)
  21228. """
  21229. self.send(self.hil_controls_encode(time_usec, roll_ailerons, pitch_elevator, yaw_rudder, throttle, aux1, aux2, aux3, aux4, mode, nav_mode), force_mavlink1=force_mavlink1)
  21230. def hil_rc_inputs_raw_encode(self, time_usec: int, chan1_raw: int, chan2_raw: int, chan3_raw: int, chan4_raw: int, chan5_raw: int, chan6_raw: int, chan7_raw: int, chan8_raw: int, chan9_raw: int, chan10_raw: int, chan11_raw: int, chan12_raw: int, rssi: int) -> MAVLink_hil_rc_inputs_raw_message:
  21231. """
  21232. Sent from simulation to autopilot. The RAW values of the RC channels
  21233. received. The standard PPM modulation is as follows: 1000
  21234. microseconds: 0%, 2000 microseconds: 100%. Individual
  21235. receivers/transmitters might violate this specification.
  21236. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  21237. chan1_raw : RC channel 1 value [us] (type:uint16_t)
  21238. chan2_raw : RC channel 2 value [us] (type:uint16_t)
  21239. chan3_raw : RC channel 3 value [us] (type:uint16_t)
  21240. chan4_raw : RC channel 4 value [us] (type:uint16_t)
  21241. chan5_raw : RC channel 5 value [us] (type:uint16_t)
  21242. chan6_raw : RC channel 6 value [us] (type:uint16_t)
  21243. chan7_raw : RC channel 7 value [us] (type:uint16_t)
  21244. chan8_raw : RC channel 8 value [us] (type:uint16_t)
  21245. chan9_raw : RC channel 9 value [us] (type:uint16_t)
  21246. chan10_raw : RC channel 10 value [us] (type:uint16_t)
  21247. chan11_raw : RC channel 11 value [us] (type:uint16_t)
  21248. chan12_raw : RC channel 12 value [us] (type:uint16_t)
  21249. rssi : Receive signal strength indicator in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown. (type:uint8_t)
  21250. """
  21251. return MAVLink_hil_rc_inputs_raw_message(time_usec, chan1_raw, chan2_raw, chan3_raw, chan4_raw, chan5_raw, chan6_raw, chan7_raw, chan8_raw, chan9_raw, chan10_raw, chan11_raw, chan12_raw, rssi)
  21252. def hil_rc_inputs_raw_send(self, time_usec: int, chan1_raw: int, chan2_raw: int, chan3_raw: int, chan4_raw: int, chan5_raw: int, chan6_raw: int, chan7_raw: int, chan8_raw: int, chan9_raw: int, chan10_raw: int, chan11_raw: int, chan12_raw: int, rssi: int, force_mavlink1: bool = False) -> None:
  21253. """
  21254. Sent from simulation to autopilot. The RAW values of the RC channels
  21255. received. The standard PPM modulation is as follows: 1000
  21256. microseconds: 0%, 2000 microseconds: 100%. Individual
  21257. receivers/transmitters might violate this specification.
  21258. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  21259. chan1_raw : RC channel 1 value [us] (type:uint16_t)
  21260. chan2_raw : RC channel 2 value [us] (type:uint16_t)
  21261. chan3_raw : RC channel 3 value [us] (type:uint16_t)
  21262. chan4_raw : RC channel 4 value [us] (type:uint16_t)
  21263. chan5_raw : RC channel 5 value [us] (type:uint16_t)
  21264. chan6_raw : RC channel 6 value [us] (type:uint16_t)
  21265. chan7_raw : RC channel 7 value [us] (type:uint16_t)
  21266. chan8_raw : RC channel 8 value [us] (type:uint16_t)
  21267. chan9_raw : RC channel 9 value [us] (type:uint16_t)
  21268. chan10_raw : RC channel 10 value [us] (type:uint16_t)
  21269. chan11_raw : RC channel 11 value [us] (type:uint16_t)
  21270. chan12_raw : RC channel 12 value [us] (type:uint16_t)
  21271. rssi : Receive signal strength indicator in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown. (type:uint8_t)
  21272. """
  21273. self.send(self.hil_rc_inputs_raw_encode(time_usec, chan1_raw, chan2_raw, chan3_raw, chan4_raw, chan5_raw, chan6_raw, chan7_raw, chan8_raw, chan9_raw, chan10_raw, chan11_raw, chan12_raw, rssi), force_mavlink1=force_mavlink1)
  21274. def hil_actuator_controls_encode(self, time_usec: int, controls: Sequence[float], mode: int, flags: int) -> MAVLink_hil_actuator_controls_message:
  21275. """
  21276. Sent from autopilot to simulation. Hardware in the loop control
  21277. outputs (replacement for HIL_CONTROLS)
  21278. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  21279. controls : Control outputs -1 .. 1. Channel assignment depends on the simulated hardware. (type:float)
  21280. mode : System mode. Includes arming state. (type:uint8_t, values:MAV_MODE_FLAG)
  21281. flags : Flags as bitfield, 1: indicate simulation using lockstep. (type:uint64_t)
  21282. """
  21283. return MAVLink_hil_actuator_controls_message(time_usec, controls, mode, flags)
  21284. def hil_actuator_controls_send(self, time_usec: int, controls: Sequence[float], mode: int, flags: int, force_mavlink1: bool = False) -> None:
  21285. """
  21286. Sent from autopilot to simulation. Hardware in the loop control
  21287. outputs (replacement for HIL_CONTROLS)
  21288. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  21289. controls : Control outputs -1 .. 1. Channel assignment depends on the simulated hardware. (type:float)
  21290. mode : System mode. Includes arming state. (type:uint8_t, values:MAV_MODE_FLAG)
  21291. flags : Flags as bitfield, 1: indicate simulation using lockstep. (type:uint64_t)
  21292. """
  21293. self.send(self.hil_actuator_controls_encode(time_usec, controls, mode, flags), force_mavlink1=force_mavlink1)
  21294. def optical_flow_encode(self, time_usec: int, sensor_id: int, flow_x: int, flow_y: int, flow_comp_m_x: float, flow_comp_m_y: float, quality: int, ground_distance: float, flow_rate_x: float = 0, flow_rate_y: float = 0) -> MAVLink_optical_flow_message:
  21295. """
  21296. Optical flow from a flow sensor (e.g. optical mouse sensor)
  21297. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  21298. sensor_id : Sensor ID (type:uint8_t)
  21299. flow_x : Flow in x-sensor direction [dpix] (type:int16_t)
  21300. flow_y : Flow in y-sensor direction [dpix] (type:int16_t)
  21301. flow_comp_m_x : Flow in x-sensor direction, angular-speed compensated [m/s] (type:float)
  21302. flow_comp_m_y : Flow in y-sensor direction, angular-speed compensated [m/s] (type:float)
  21303. quality : Optical flow quality / confidence. 0: bad, 255: maximum quality (type:uint8_t)
  21304. ground_distance : Ground distance. Positive value: distance known. Negative value: Unknown distance [m] (type:float)
  21305. flow_rate_x : Flow rate about X axis [rad/s] (type:float)
  21306. flow_rate_y : Flow rate about Y axis [rad/s] (type:float)
  21307. """
  21308. return MAVLink_optical_flow_message(time_usec, sensor_id, flow_x, flow_y, flow_comp_m_x, flow_comp_m_y, quality, ground_distance, flow_rate_x, flow_rate_y)
  21309. def optical_flow_send(self, time_usec: int, sensor_id: int, flow_x: int, flow_y: int, flow_comp_m_x: float, flow_comp_m_y: float, quality: int, ground_distance: float, flow_rate_x: float = 0, flow_rate_y: float = 0, force_mavlink1: bool = False) -> None:
  21310. """
  21311. Optical flow from a flow sensor (e.g. optical mouse sensor)
  21312. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  21313. sensor_id : Sensor ID (type:uint8_t)
  21314. flow_x : Flow in x-sensor direction [dpix] (type:int16_t)
  21315. flow_y : Flow in y-sensor direction [dpix] (type:int16_t)
  21316. flow_comp_m_x : Flow in x-sensor direction, angular-speed compensated [m/s] (type:float)
  21317. flow_comp_m_y : Flow in y-sensor direction, angular-speed compensated [m/s] (type:float)
  21318. quality : Optical flow quality / confidence. 0: bad, 255: maximum quality (type:uint8_t)
  21319. ground_distance : Ground distance. Positive value: distance known. Negative value: Unknown distance [m] (type:float)
  21320. flow_rate_x : Flow rate about X axis [rad/s] (type:float)
  21321. flow_rate_y : Flow rate about Y axis [rad/s] (type:float)
  21322. """
  21323. self.send(self.optical_flow_encode(time_usec, sensor_id, flow_x, flow_y, flow_comp_m_x, flow_comp_m_y, quality, ground_distance, flow_rate_x, flow_rate_y), force_mavlink1=force_mavlink1)
  21324. def global_vision_position_estimate_encode(self, usec: int, x: float, y: float, z: float, roll: float, pitch: float, yaw: float, covariance: Sequence[float] = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), reset_counter: int = 0) -> MAVLink_global_vision_position_estimate_message:
  21325. """
  21326. Global position/attitude estimate from a vision source.
  21327. usec : Timestamp (UNIX time or since system boot) [us] (type:uint64_t)
  21328. x : Global X position [m] (type:float)
  21329. y : Global Y position [m] (type:float)
  21330. z : Global Z position [m] (type:float)
  21331. roll : Roll angle [rad] (type:float)
  21332. pitch : Pitch angle [rad] (type:float)
  21333. yaw : Yaw angle [rad] (type:float)
  21334. covariance : Row-major representation of pose 6x6 cross-covariance matrix upper right triangle (states: x_global, y_global, z_global, roll, pitch, yaw; first six entries are the first ROW, next five entries are the second ROW, etc.). If unknown, assign NaN value to first element in the array. (type:float)
  21335. reset_counter : Estimate reset counter. This should be incremented when the estimate resets in any of the dimensions (position, velocity, attitude, angular speed). This is designed to be used when e.g an external SLAM system detects a loop-closure and the estimate jumps. (type:uint8_t)
  21336. """
  21337. return MAVLink_global_vision_position_estimate_message(usec, x, y, z, roll, pitch, yaw, covariance, reset_counter)
  21338. def global_vision_position_estimate_send(self, usec: int, x: float, y: float, z: float, roll: float, pitch: float, yaw: float, covariance: Sequence[float] = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), reset_counter: int = 0, force_mavlink1: bool = False) -> None:
  21339. """
  21340. Global position/attitude estimate from a vision source.
  21341. usec : Timestamp (UNIX time or since system boot) [us] (type:uint64_t)
  21342. x : Global X position [m] (type:float)
  21343. y : Global Y position [m] (type:float)
  21344. z : Global Z position [m] (type:float)
  21345. roll : Roll angle [rad] (type:float)
  21346. pitch : Pitch angle [rad] (type:float)
  21347. yaw : Yaw angle [rad] (type:float)
  21348. covariance : Row-major representation of pose 6x6 cross-covariance matrix upper right triangle (states: x_global, y_global, z_global, roll, pitch, yaw; first six entries are the first ROW, next five entries are the second ROW, etc.). If unknown, assign NaN value to first element in the array. (type:float)
  21349. reset_counter : Estimate reset counter. This should be incremented when the estimate resets in any of the dimensions (position, velocity, attitude, angular speed). This is designed to be used when e.g an external SLAM system detects a loop-closure and the estimate jumps. (type:uint8_t)
  21350. """
  21351. self.send(self.global_vision_position_estimate_encode(usec, x, y, z, roll, pitch, yaw, covariance, reset_counter), force_mavlink1=force_mavlink1)
  21352. def vision_position_estimate_encode(self, usec: int, x: float, y: float, z: float, roll: float, pitch: float, yaw: float, covariance: Sequence[float] = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), reset_counter: int = 0) -> MAVLink_vision_position_estimate_message:
  21353. """
  21354. Local position/attitude estimate from a vision source.
  21355. usec : Timestamp (UNIX time or time since system boot) [us] (type:uint64_t)
  21356. x : Local X position [m] (type:float)
  21357. y : Local Y position [m] (type:float)
  21358. z : Local Z position [m] (type:float)
  21359. roll : Roll angle [rad] (type:float)
  21360. pitch : Pitch angle [rad] (type:float)
  21361. yaw : Yaw angle [rad] (type:float)
  21362. covariance : Row-major representation of pose 6x6 cross-covariance matrix upper right triangle (states: x, y, z, roll, pitch, yaw; first six entries are the first ROW, next five entries are the second ROW, etc.). If unknown, assign NaN value to first element in the array. (type:float)
  21363. reset_counter : Estimate reset counter. This should be incremented when the estimate resets in any of the dimensions (position, velocity, attitude, angular speed). This is designed to be used when e.g an external SLAM system detects a loop-closure and the estimate jumps. (type:uint8_t)
  21364. """
  21365. return MAVLink_vision_position_estimate_message(usec, x, y, z, roll, pitch, yaw, covariance, reset_counter)
  21366. def vision_position_estimate_send(self, usec: int, x: float, y: float, z: float, roll: float, pitch: float, yaw: float, covariance: Sequence[float] = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), reset_counter: int = 0, force_mavlink1: bool = False) -> None:
  21367. """
  21368. Local position/attitude estimate from a vision source.
  21369. usec : Timestamp (UNIX time or time since system boot) [us] (type:uint64_t)
  21370. x : Local X position [m] (type:float)
  21371. y : Local Y position [m] (type:float)
  21372. z : Local Z position [m] (type:float)
  21373. roll : Roll angle [rad] (type:float)
  21374. pitch : Pitch angle [rad] (type:float)
  21375. yaw : Yaw angle [rad] (type:float)
  21376. covariance : Row-major representation of pose 6x6 cross-covariance matrix upper right triangle (states: x, y, z, roll, pitch, yaw; first six entries are the first ROW, next five entries are the second ROW, etc.). If unknown, assign NaN value to first element in the array. (type:float)
  21377. reset_counter : Estimate reset counter. This should be incremented when the estimate resets in any of the dimensions (position, velocity, attitude, angular speed). This is designed to be used when e.g an external SLAM system detects a loop-closure and the estimate jumps. (type:uint8_t)
  21378. """
  21379. self.send(self.vision_position_estimate_encode(usec, x, y, z, roll, pitch, yaw, covariance, reset_counter), force_mavlink1=force_mavlink1)
  21380. def vision_speed_estimate_encode(self, usec: int, x: float, y: float, z: float, covariance: Sequence[float] = (0, 0, 0, 0, 0, 0, 0, 0, 0), reset_counter: int = 0) -> MAVLink_vision_speed_estimate_message:
  21381. """
  21382. Speed estimate from a vision source.
  21383. usec : Timestamp (UNIX time or time since system boot) [us] (type:uint64_t)
  21384. x : Global X speed [m/s] (type:float)
  21385. y : Global Y speed [m/s] (type:float)
  21386. z : Global Z speed [m/s] (type:float)
  21387. covariance : Row-major representation of 3x3 linear velocity covariance matrix (states: vx, vy, vz; 1st three entries - 1st row, etc.). If unknown, assign NaN value to first element in the array. (type:float)
  21388. reset_counter : Estimate reset counter. This should be incremented when the estimate resets in any of the dimensions (position, velocity, attitude, angular speed). This is designed to be used when e.g an external SLAM system detects a loop-closure and the estimate jumps. (type:uint8_t)
  21389. """
  21390. return MAVLink_vision_speed_estimate_message(usec, x, y, z, covariance, reset_counter)
  21391. def vision_speed_estimate_send(self, usec: int, x: float, y: float, z: float, covariance: Sequence[float] = (0, 0, 0, 0, 0, 0, 0, 0, 0), reset_counter: int = 0, force_mavlink1: bool = False) -> None:
  21392. """
  21393. Speed estimate from a vision source.
  21394. usec : Timestamp (UNIX time or time since system boot) [us] (type:uint64_t)
  21395. x : Global X speed [m/s] (type:float)
  21396. y : Global Y speed [m/s] (type:float)
  21397. z : Global Z speed [m/s] (type:float)
  21398. covariance : Row-major representation of 3x3 linear velocity covariance matrix (states: vx, vy, vz; 1st three entries - 1st row, etc.). If unknown, assign NaN value to first element in the array. (type:float)
  21399. reset_counter : Estimate reset counter. This should be incremented when the estimate resets in any of the dimensions (position, velocity, attitude, angular speed). This is designed to be used when e.g an external SLAM system detects a loop-closure and the estimate jumps. (type:uint8_t)
  21400. """
  21401. self.send(self.vision_speed_estimate_encode(usec, x, y, z, covariance, reset_counter), force_mavlink1=force_mavlink1)
  21402. def vicon_position_estimate_encode(self, usec: int, x: float, y: float, z: float, roll: float, pitch: float, yaw: float, covariance: Sequence[float] = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)) -> MAVLink_vicon_position_estimate_message:
  21403. """
  21404. Global position estimate from a Vicon motion system source.
  21405. usec : Timestamp (UNIX time or time since system boot) [us] (type:uint64_t)
  21406. x : Global X position [m] (type:float)
  21407. y : Global Y position [m] (type:float)
  21408. z : Global Z position [m] (type:float)
  21409. roll : Roll angle [rad] (type:float)
  21410. pitch : Pitch angle [rad] (type:float)
  21411. yaw : Yaw angle [rad] (type:float)
  21412. covariance : Row-major representation of 6x6 pose cross-covariance matrix upper right triangle (states: x, y, z, roll, pitch, yaw; first six entries are the first ROW, next five entries are the second ROW, etc.). If unknown, assign NaN value to first element in the array. (type:float)
  21413. """
  21414. return MAVLink_vicon_position_estimate_message(usec, x, y, z, roll, pitch, yaw, covariance)
  21415. def vicon_position_estimate_send(self, usec: int, x: float, y: float, z: float, roll: float, pitch: float, yaw: float, covariance: Sequence[float] = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), force_mavlink1: bool = False) -> None:
  21416. """
  21417. Global position estimate from a Vicon motion system source.
  21418. usec : Timestamp (UNIX time or time since system boot) [us] (type:uint64_t)
  21419. x : Global X position [m] (type:float)
  21420. y : Global Y position [m] (type:float)
  21421. z : Global Z position [m] (type:float)
  21422. roll : Roll angle [rad] (type:float)
  21423. pitch : Pitch angle [rad] (type:float)
  21424. yaw : Yaw angle [rad] (type:float)
  21425. covariance : Row-major representation of 6x6 pose cross-covariance matrix upper right triangle (states: x, y, z, roll, pitch, yaw; first six entries are the first ROW, next five entries are the second ROW, etc.). If unknown, assign NaN value to first element in the array. (type:float)
  21426. """
  21427. self.send(self.vicon_position_estimate_encode(usec, x, y, z, roll, pitch, yaw, covariance), force_mavlink1=force_mavlink1)
  21428. def highres_imu_encode(self, time_usec: int, xacc: float, yacc: float, zacc: float, xgyro: float, ygyro: float, zgyro: float, xmag: float, ymag: float, zmag: float, abs_pressure: float, diff_pressure: float, pressure_alt: float, temperature: float, fields_updated: int, id: int = 0) -> MAVLink_highres_imu_message:
  21429. """
  21430. The IMU readings in SI units in NED body frame
  21431. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  21432. xacc : X acceleration [m/s/s] (type:float)
  21433. yacc : Y acceleration [m/s/s] (type:float)
  21434. zacc : Z acceleration [m/s/s] (type:float)
  21435. xgyro : Angular speed around X axis [rad/s] (type:float)
  21436. ygyro : Angular speed around Y axis [rad/s] (type:float)
  21437. zgyro : Angular speed around Z axis [rad/s] (type:float)
  21438. xmag : X Magnetic field [gauss] (type:float)
  21439. ymag : Y Magnetic field [gauss] (type:float)
  21440. zmag : Z Magnetic field [gauss] (type:float)
  21441. abs_pressure : Absolute pressure [hPa] (type:float)
  21442. diff_pressure : Differential pressure [hPa] (type:float)
  21443. pressure_alt : Altitude calculated from pressure (type:float)
  21444. temperature : Temperature [degC] (type:float)
  21445. fields_updated : Bitmap for fields that have updated since last message (type:uint16_t, values:HIGHRES_IMU_UPDATED_FLAGS)
  21446. id : Id. Ids are numbered from 0 and map to IMUs numbered from 1 (e.g. IMU1 will have a message with id=0) (type:uint8_t)
  21447. """
  21448. return MAVLink_highres_imu_message(time_usec, xacc, yacc, zacc, xgyro, ygyro, zgyro, xmag, ymag, zmag, abs_pressure, diff_pressure, pressure_alt, temperature, fields_updated, id)
  21449. def highres_imu_send(self, time_usec: int, xacc: float, yacc: float, zacc: float, xgyro: float, ygyro: float, zgyro: float, xmag: float, ymag: float, zmag: float, abs_pressure: float, diff_pressure: float, pressure_alt: float, temperature: float, fields_updated: int, id: int = 0, force_mavlink1: bool = False) -> None:
  21450. """
  21451. The IMU readings in SI units in NED body frame
  21452. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  21453. xacc : X acceleration [m/s/s] (type:float)
  21454. yacc : Y acceleration [m/s/s] (type:float)
  21455. zacc : Z acceleration [m/s/s] (type:float)
  21456. xgyro : Angular speed around X axis [rad/s] (type:float)
  21457. ygyro : Angular speed around Y axis [rad/s] (type:float)
  21458. zgyro : Angular speed around Z axis [rad/s] (type:float)
  21459. xmag : X Magnetic field [gauss] (type:float)
  21460. ymag : Y Magnetic field [gauss] (type:float)
  21461. zmag : Z Magnetic field [gauss] (type:float)
  21462. abs_pressure : Absolute pressure [hPa] (type:float)
  21463. diff_pressure : Differential pressure [hPa] (type:float)
  21464. pressure_alt : Altitude calculated from pressure (type:float)
  21465. temperature : Temperature [degC] (type:float)
  21466. fields_updated : Bitmap for fields that have updated since last message (type:uint16_t, values:HIGHRES_IMU_UPDATED_FLAGS)
  21467. id : Id. Ids are numbered from 0 and map to IMUs numbered from 1 (e.g. IMU1 will have a message with id=0) (type:uint8_t)
  21468. """
  21469. self.send(self.highres_imu_encode(time_usec, xacc, yacc, zacc, xgyro, ygyro, zgyro, xmag, ymag, zmag, abs_pressure, diff_pressure, pressure_alt, temperature, fields_updated, id), force_mavlink1=force_mavlink1)
  21470. def optical_flow_rad_encode(self, time_usec: int, sensor_id: int, integration_time_us: int, integrated_x: float, integrated_y: float, integrated_xgyro: float, integrated_ygyro: float, integrated_zgyro: float, temperature: int, quality: int, time_delta_distance_us: int, distance: float) -> MAVLink_optical_flow_rad_message:
  21471. """
  21472. Optical flow from an angular rate flow sensor (e.g. PX4FLOW or mouse
  21473. sensor)
  21474. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  21475. sensor_id : Sensor ID (type:uint8_t)
  21476. integration_time_us : Integration time. Divide integrated_x and integrated_y by the integration time to obtain average flow. The integration time also indicates the. [us] (type:uint32_t)
  21477. integrated_x : Flow around X axis (Sensor RH rotation about the X axis induces a positive flow. Sensor linear motion along the positive Y axis induces a negative flow.) [rad] (type:float)
  21478. integrated_y : Flow around Y axis (Sensor RH rotation about the Y axis induces a positive flow. Sensor linear motion along the positive X axis induces a positive flow.) [rad] (type:float)
  21479. integrated_xgyro : RH rotation around X axis [rad] (type:float)
  21480. integrated_ygyro : RH rotation around Y axis [rad] (type:float)
  21481. integrated_zgyro : RH rotation around Z axis [rad] (type:float)
  21482. temperature : Temperature [cdegC] (type:int16_t)
  21483. quality : Optical flow quality / confidence. 0: no valid flow, 255: maximum quality (type:uint8_t)
  21484. time_delta_distance_us : Time since the distance was sampled. [us] (type:uint32_t)
  21485. distance : Distance to the center of the flow field. Positive value (including zero): distance known. Negative value: Unknown distance. [m] (type:float)
  21486. """
  21487. return MAVLink_optical_flow_rad_message(time_usec, sensor_id, integration_time_us, integrated_x, integrated_y, integrated_xgyro, integrated_ygyro, integrated_zgyro, temperature, quality, time_delta_distance_us, distance)
  21488. def optical_flow_rad_send(self, time_usec: int, sensor_id: int, integration_time_us: int, integrated_x: float, integrated_y: float, integrated_xgyro: float, integrated_ygyro: float, integrated_zgyro: float, temperature: int, quality: int, time_delta_distance_us: int, distance: float, force_mavlink1: bool = False) -> None:
  21489. """
  21490. Optical flow from an angular rate flow sensor (e.g. PX4FLOW or mouse
  21491. sensor)
  21492. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  21493. sensor_id : Sensor ID (type:uint8_t)
  21494. integration_time_us : Integration time. Divide integrated_x and integrated_y by the integration time to obtain average flow. The integration time also indicates the. [us] (type:uint32_t)
  21495. integrated_x : Flow around X axis (Sensor RH rotation about the X axis induces a positive flow. Sensor linear motion along the positive Y axis induces a negative flow.) [rad] (type:float)
  21496. integrated_y : Flow around Y axis (Sensor RH rotation about the Y axis induces a positive flow. Sensor linear motion along the positive X axis induces a positive flow.) [rad] (type:float)
  21497. integrated_xgyro : RH rotation around X axis [rad] (type:float)
  21498. integrated_ygyro : RH rotation around Y axis [rad] (type:float)
  21499. integrated_zgyro : RH rotation around Z axis [rad] (type:float)
  21500. temperature : Temperature [cdegC] (type:int16_t)
  21501. quality : Optical flow quality / confidence. 0: no valid flow, 255: maximum quality (type:uint8_t)
  21502. time_delta_distance_us : Time since the distance was sampled. [us] (type:uint32_t)
  21503. distance : Distance to the center of the flow field. Positive value (including zero): distance known. Negative value: Unknown distance. [m] (type:float)
  21504. """
  21505. self.send(self.optical_flow_rad_encode(time_usec, sensor_id, integration_time_us, integrated_x, integrated_y, integrated_xgyro, integrated_ygyro, integrated_zgyro, temperature, quality, time_delta_distance_us, distance), force_mavlink1=force_mavlink1)
  21506. def hil_sensor_encode(self, time_usec: int, xacc: float, yacc: float, zacc: float, xgyro: float, ygyro: float, zgyro: float, xmag: float, ymag: float, zmag: float, abs_pressure: float, diff_pressure: float, pressure_alt: float, temperature: float, fields_updated: int, id: int = 0) -> MAVLink_hil_sensor_message:
  21507. """
  21508. The IMU readings in SI units in NED body frame
  21509. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  21510. xacc : X acceleration [m/s/s] (type:float)
  21511. yacc : Y acceleration [m/s/s] (type:float)
  21512. zacc : Z acceleration [m/s/s] (type:float)
  21513. xgyro : Angular speed around X axis in body frame [rad/s] (type:float)
  21514. ygyro : Angular speed around Y axis in body frame [rad/s] (type:float)
  21515. zgyro : Angular speed around Z axis in body frame [rad/s] (type:float)
  21516. xmag : X Magnetic field [gauss] (type:float)
  21517. ymag : Y Magnetic field [gauss] (type:float)
  21518. zmag : Z Magnetic field [gauss] (type:float)
  21519. abs_pressure : Absolute pressure [hPa] (type:float)
  21520. diff_pressure : Differential pressure (airspeed) [hPa] (type:float)
  21521. pressure_alt : Altitude calculated from pressure (type:float)
  21522. temperature : Temperature [degC] (type:float)
  21523. fields_updated : Bitmap for fields that have updated since last message (type:uint32_t, values:HIL_SENSOR_UPDATED_FLAGS)
  21524. id : Sensor ID (zero indexed). Used for multiple sensor inputs (type:uint8_t)
  21525. """
  21526. return MAVLink_hil_sensor_message(time_usec, xacc, yacc, zacc, xgyro, ygyro, zgyro, xmag, ymag, zmag, abs_pressure, diff_pressure, pressure_alt, temperature, fields_updated, id)
  21527. def hil_sensor_send(self, time_usec: int, xacc: float, yacc: float, zacc: float, xgyro: float, ygyro: float, zgyro: float, xmag: float, ymag: float, zmag: float, abs_pressure: float, diff_pressure: float, pressure_alt: float, temperature: float, fields_updated: int, id: int = 0, force_mavlink1: bool = False) -> None:
  21528. """
  21529. The IMU readings in SI units in NED body frame
  21530. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  21531. xacc : X acceleration [m/s/s] (type:float)
  21532. yacc : Y acceleration [m/s/s] (type:float)
  21533. zacc : Z acceleration [m/s/s] (type:float)
  21534. xgyro : Angular speed around X axis in body frame [rad/s] (type:float)
  21535. ygyro : Angular speed around Y axis in body frame [rad/s] (type:float)
  21536. zgyro : Angular speed around Z axis in body frame [rad/s] (type:float)
  21537. xmag : X Magnetic field [gauss] (type:float)
  21538. ymag : Y Magnetic field [gauss] (type:float)
  21539. zmag : Z Magnetic field [gauss] (type:float)
  21540. abs_pressure : Absolute pressure [hPa] (type:float)
  21541. diff_pressure : Differential pressure (airspeed) [hPa] (type:float)
  21542. pressure_alt : Altitude calculated from pressure (type:float)
  21543. temperature : Temperature [degC] (type:float)
  21544. fields_updated : Bitmap for fields that have updated since last message (type:uint32_t, values:HIL_SENSOR_UPDATED_FLAGS)
  21545. id : Sensor ID (zero indexed). Used for multiple sensor inputs (type:uint8_t)
  21546. """
  21547. self.send(self.hil_sensor_encode(time_usec, xacc, yacc, zacc, xgyro, ygyro, zgyro, xmag, ymag, zmag, abs_pressure, diff_pressure, pressure_alt, temperature, fields_updated, id), force_mavlink1=force_mavlink1)
  21548. def sim_state_encode(self, q1: float, q2: float, q3: float, q4: float, roll: float, pitch: float, yaw: float, xacc: float, yacc: float, zacc: float, xgyro: float, ygyro: float, zgyro: float, lat: float, lon: float, alt: float, std_dev_horz: float, std_dev_vert: float, vn: float, ve: float, vd: float, lat_int: int = 0, lon_int: int = 0) -> MAVLink_sim_state_message:
  21549. """
  21550. Status of simulation environment, if used
  21551. q1 : True attitude quaternion component 1, w (1 in null-rotation) (type:float)
  21552. q2 : True attitude quaternion component 2, x (0 in null-rotation) (type:float)
  21553. q3 : True attitude quaternion component 3, y (0 in null-rotation) (type:float)
  21554. q4 : True attitude quaternion component 4, z (0 in null-rotation) (type:float)
  21555. roll : Attitude roll expressed as Euler angles, not recommended except for human-readable outputs (type:float)
  21556. pitch : Attitude pitch expressed as Euler angles, not recommended except for human-readable outputs (type:float)
  21557. yaw : Attitude yaw expressed as Euler angles, not recommended except for human-readable outputs (type:float)
  21558. xacc : X acceleration [m/s/s] (type:float)
  21559. yacc : Y acceleration [m/s/s] (type:float)
  21560. zacc : Z acceleration [m/s/s] (type:float)
  21561. xgyro : Angular speed around X axis [rad/s] (type:float)
  21562. ygyro : Angular speed around Y axis [rad/s] (type:float)
  21563. zgyro : Angular speed around Z axis [rad/s] (type:float)
  21564. lat : Latitude (lower precision). Both this and the lat_int field should be set. [deg] (type:float)
  21565. lon : Longitude (lower precision). Both this and the lon_int field should be set. [deg] (type:float)
  21566. alt : Altitude [m] (type:float)
  21567. std_dev_horz : Horizontal position standard deviation (type:float)
  21568. std_dev_vert : Vertical position standard deviation (type:float)
  21569. vn : True velocity in north direction in earth-fixed NED frame [m/s] (type:float)
  21570. ve : True velocity in east direction in earth-fixed NED frame [m/s] (type:float)
  21571. vd : True velocity in down direction in earth-fixed NED frame [m/s] (type:float)
  21572. lat_int : Latitude (higher precision). If 0, recipients should use the lat field value (otherwise this field is preferred). [degE7] (type:int32_t)
  21573. lon_int : Longitude (higher precision). If 0, recipients should use the lon field value (otherwise this field is preferred). [degE7] (type:int32_t)
  21574. """
  21575. return MAVLink_sim_state_message(q1, q2, q3, q4, roll, pitch, yaw, xacc, yacc, zacc, xgyro, ygyro, zgyro, lat, lon, alt, std_dev_horz, std_dev_vert, vn, ve, vd, lat_int, lon_int)
  21576. def sim_state_send(self, q1: float, q2: float, q3: float, q4: float, roll: float, pitch: float, yaw: float, xacc: float, yacc: float, zacc: float, xgyro: float, ygyro: float, zgyro: float, lat: float, lon: float, alt: float, std_dev_horz: float, std_dev_vert: float, vn: float, ve: float, vd: float, lat_int: int = 0, lon_int: int = 0, force_mavlink1: bool = False) -> None:
  21577. """
  21578. Status of simulation environment, if used
  21579. q1 : True attitude quaternion component 1, w (1 in null-rotation) (type:float)
  21580. q2 : True attitude quaternion component 2, x (0 in null-rotation) (type:float)
  21581. q3 : True attitude quaternion component 3, y (0 in null-rotation) (type:float)
  21582. q4 : True attitude quaternion component 4, z (0 in null-rotation) (type:float)
  21583. roll : Attitude roll expressed as Euler angles, not recommended except for human-readable outputs (type:float)
  21584. pitch : Attitude pitch expressed as Euler angles, not recommended except for human-readable outputs (type:float)
  21585. yaw : Attitude yaw expressed as Euler angles, not recommended except for human-readable outputs (type:float)
  21586. xacc : X acceleration [m/s/s] (type:float)
  21587. yacc : Y acceleration [m/s/s] (type:float)
  21588. zacc : Z acceleration [m/s/s] (type:float)
  21589. xgyro : Angular speed around X axis [rad/s] (type:float)
  21590. ygyro : Angular speed around Y axis [rad/s] (type:float)
  21591. zgyro : Angular speed around Z axis [rad/s] (type:float)
  21592. lat : Latitude (lower precision). Both this and the lat_int field should be set. [deg] (type:float)
  21593. lon : Longitude (lower precision). Both this and the lon_int field should be set. [deg] (type:float)
  21594. alt : Altitude [m] (type:float)
  21595. std_dev_horz : Horizontal position standard deviation (type:float)
  21596. std_dev_vert : Vertical position standard deviation (type:float)
  21597. vn : True velocity in north direction in earth-fixed NED frame [m/s] (type:float)
  21598. ve : True velocity in east direction in earth-fixed NED frame [m/s] (type:float)
  21599. vd : True velocity in down direction in earth-fixed NED frame [m/s] (type:float)
  21600. lat_int : Latitude (higher precision). If 0, recipients should use the lat field value (otherwise this field is preferred). [degE7] (type:int32_t)
  21601. lon_int : Longitude (higher precision). If 0, recipients should use the lon field value (otherwise this field is preferred). [degE7] (type:int32_t)
  21602. """
  21603. self.send(self.sim_state_encode(q1, q2, q3, q4, roll, pitch, yaw, xacc, yacc, zacc, xgyro, ygyro, zgyro, lat, lon, alt, std_dev_horz, std_dev_vert, vn, ve, vd, lat_int, lon_int), force_mavlink1=force_mavlink1)
  21604. def radio_status_encode(self, rssi: int, remrssi: int, txbuf: int, noise: int, remnoise: int, rxerrors: int, fixed: int) -> MAVLink_radio_status_message:
  21605. """
  21606. Status generated by radio and injected into MAVLink stream.
  21607. rssi : Local (message sender) received signal strength indication in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown. (type:uint8_t)
  21608. remrssi : Remote (message receiver) signal strength indication in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown. (type:uint8_t)
  21609. txbuf : Remaining free transmitter buffer space. [%] (type:uint8_t)
  21610. noise : Local background noise level. These are device dependent RSSI values (scale as approx 2x dB on SiK radios). Values: [0-254], UINT8_MAX: invalid/unknown. (type:uint8_t)
  21611. remnoise : Remote background noise level. These are device dependent RSSI values (scale as approx 2x dB on SiK radios). Values: [0-254], UINT8_MAX: invalid/unknown. (type:uint8_t)
  21612. rxerrors : Count of radio packet receive errors (since boot). (type:uint16_t)
  21613. fixed : Count of error corrected radio packets (since boot). (type:uint16_t)
  21614. """
  21615. return MAVLink_radio_status_message(rssi, remrssi, txbuf, noise, remnoise, rxerrors, fixed)
  21616. def radio_status_send(self, rssi: int, remrssi: int, txbuf: int, noise: int, remnoise: int, rxerrors: int, fixed: int, force_mavlink1: bool = False) -> None:
  21617. """
  21618. Status generated by radio and injected into MAVLink stream.
  21619. rssi : Local (message sender) received signal strength indication in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown. (type:uint8_t)
  21620. remrssi : Remote (message receiver) signal strength indication in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown. (type:uint8_t)
  21621. txbuf : Remaining free transmitter buffer space. [%] (type:uint8_t)
  21622. noise : Local background noise level. These are device dependent RSSI values (scale as approx 2x dB on SiK radios). Values: [0-254], UINT8_MAX: invalid/unknown. (type:uint8_t)
  21623. remnoise : Remote background noise level. These are device dependent RSSI values (scale as approx 2x dB on SiK radios). Values: [0-254], UINT8_MAX: invalid/unknown. (type:uint8_t)
  21624. rxerrors : Count of radio packet receive errors (since boot). (type:uint16_t)
  21625. fixed : Count of error corrected radio packets (since boot). (type:uint16_t)
  21626. """
  21627. self.send(self.radio_status_encode(rssi, remrssi, txbuf, noise, remnoise, rxerrors, fixed), force_mavlink1=force_mavlink1)
  21628. def file_transfer_protocol_encode(self, target_network: int, target_system: int, target_component: int, payload: Sequence[int]) -> MAVLink_file_transfer_protocol_message:
  21629. """
  21630. File transfer protocol message:
  21631. https://mavlink.io/en/services/ftp.html.
  21632. target_network : Network ID (0 for broadcast) (type:uint8_t)
  21633. target_system : System ID (0 for broadcast) (type:uint8_t)
  21634. target_component : Component ID (0 for broadcast) (type:uint8_t)
  21635. payload : Variable length payload. The length is defined by the remaining message length when subtracting the header and other fields. The content/format of this block is defined in https://mavlink.io/en/services/ftp.html. (type:uint8_t)
  21636. """
  21637. return MAVLink_file_transfer_protocol_message(target_network, target_system, target_component, payload)
  21638. def file_transfer_protocol_send(self, target_network: int, target_system: int, target_component: int, payload: Sequence[int], force_mavlink1: bool = False) -> None:
  21639. """
  21640. File transfer protocol message:
  21641. https://mavlink.io/en/services/ftp.html.
  21642. target_network : Network ID (0 for broadcast) (type:uint8_t)
  21643. target_system : System ID (0 for broadcast) (type:uint8_t)
  21644. target_component : Component ID (0 for broadcast) (type:uint8_t)
  21645. payload : Variable length payload. The length is defined by the remaining message length when subtracting the header and other fields. The content/format of this block is defined in https://mavlink.io/en/services/ftp.html. (type:uint8_t)
  21646. """
  21647. self.send(self.file_transfer_protocol_encode(target_network, target_system, target_component, payload), force_mavlink1=force_mavlink1)
  21648. def timesync_encode(self, tc1: int, ts1: int, target_system: int = 0, target_component: int = 0) -> MAVLink_timesync_message:
  21649. """
  21650. Time synchronization message. The message is used for both
  21651. timesync requests and responses. The request is sent
  21652. with `ts1=syncing component timestamp` and `tc1=0`, and may be
  21653. broadcast or targeted to a specific system/component.
  21654. The response is sent with `ts1=syncing component timestamp`
  21655. (mirror back unchanged), and `tc1=responding component
  21656. timestamp`, with the `target_system` and `target_component`
  21657. set to ids of the original request. Systems can
  21658. determine if they are receiving a request or response based on
  21659. the value of `tc`. If the response has
  21660. `target_system==target_component==0` the remote system has not
  21661. been updated to use the component IDs and cannot reliably
  21662. timesync; the requestor may report an error.
  21663. Timestamps are UNIX Epoch time or time since system boot in
  21664. nanoseconds (the timestamp format can be inferred by checking
  21665. for the magnitude of the number; generally it doesn't matter
  21666. as only the offset is used). The message sequence is
  21667. repeated numerous times with results being filtered/averaged
  21668. to estimate the offset.
  21669. tc1 : Time sync timestamp 1. Syncing: 0. Responding: Timestamp of responding component. [ns] (type:int64_t)
  21670. ts1 : Time sync timestamp 2. Timestamp of syncing component (mirrored in response). [ns] (type:int64_t)
  21671. target_system : Target system id. Request: 0 (broadcast) or id of specific system. Response must contain system id of the requesting component. (type:uint8_t)
  21672. target_component : Target component id. Request: 0 (broadcast) or id of specific component. Response must contain component id of the requesting component. (type:uint8_t)
  21673. """
  21674. return MAVLink_timesync_message(tc1, ts1, target_system, target_component)
  21675. def timesync_send(self, tc1: int, ts1: int, target_system: int = 0, target_component: int = 0, force_mavlink1: bool = False) -> None:
  21676. """
  21677. Time synchronization message. The message is used for both
  21678. timesync requests and responses. The request is sent
  21679. with `ts1=syncing component timestamp` and `tc1=0`, and may be
  21680. broadcast or targeted to a specific system/component.
  21681. The response is sent with `ts1=syncing component timestamp`
  21682. (mirror back unchanged), and `tc1=responding component
  21683. timestamp`, with the `target_system` and `target_component`
  21684. set to ids of the original request. Systems can
  21685. determine if they are receiving a request or response based on
  21686. the value of `tc`. If the response has
  21687. `target_system==target_component==0` the remote system has not
  21688. been updated to use the component IDs and cannot reliably
  21689. timesync; the requestor may report an error.
  21690. Timestamps are UNIX Epoch time or time since system boot in
  21691. nanoseconds (the timestamp format can be inferred by checking
  21692. for the magnitude of the number; generally it doesn't matter
  21693. as only the offset is used). The message sequence is
  21694. repeated numerous times with results being filtered/averaged
  21695. to estimate the offset.
  21696. tc1 : Time sync timestamp 1. Syncing: 0. Responding: Timestamp of responding component. [ns] (type:int64_t)
  21697. ts1 : Time sync timestamp 2. Timestamp of syncing component (mirrored in response). [ns] (type:int64_t)
  21698. target_system : Target system id. Request: 0 (broadcast) or id of specific system. Response must contain system id of the requesting component. (type:uint8_t)
  21699. target_component : Target component id. Request: 0 (broadcast) or id of specific component. Response must contain component id of the requesting component. (type:uint8_t)
  21700. """
  21701. self.send(self.timesync_encode(tc1, ts1, target_system, target_component), force_mavlink1=force_mavlink1)
  21702. def camera_trigger_encode(self, time_usec: int, seq: int) -> MAVLink_camera_trigger_message:
  21703. """
  21704. Camera-IMU triggering and synchronisation message.
  21705. time_usec : Timestamp for image frame (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  21706. seq : Image frame sequence (type:uint32_t)
  21707. """
  21708. return MAVLink_camera_trigger_message(time_usec, seq)
  21709. def camera_trigger_send(self, time_usec: int, seq: int, force_mavlink1: bool = False) -> None:
  21710. """
  21711. Camera-IMU triggering and synchronisation message.
  21712. time_usec : Timestamp for image frame (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  21713. seq : Image frame sequence (type:uint32_t)
  21714. """
  21715. self.send(self.camera_trigger_encode(time_usec, seq), force_mavlink1=force_mavlink1)
  21716. def hil_gps_encode(self, time_usec: int, fix_type: int, lat: int, lon: int, alt: int, eph: int, epv: int, vel: int, vn: int, ve: int, vd: int, cog: int, satellites_visible: int, id: int = 0, yaw: int = 0) -> MAVLink_hil_gps_message:
  21717. """
  21718. The global position, as returned by the Global Positioning System
  21719. (GPS). This is NOT the global position
  21720. estimate of the system, but rather a RAW sensor value. See
  21721. message GLOBAL_POSITION_INT for the global position estimate.
  21722. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  21723. fix_type : 0-1: no fix, 2: 2D fix, 3: 3D fix. Some applications will not use the value of this field unless it is at least two, so always correctly fill in the fix. (type:uint8_t)
  21724. lat : Latitude (WGS84) [degE7] (type:int32_t)
  21725. lon : Longitude (WGS84) [degE7] (type:int32_t)
  21726. alt : Altitude (MSL). Positive for up. [mm] (type:int32_t)
  21727. eph : GPS HDOP horizontal dilution of position (unitless * 100). If unknown, set to: UINT16_MAX (type:uint16_t)
  21728. epv : GPS VDOP vertical dilution of position (unitless * 100). If unknown, set to: UINT16_MAX (type:uint16_t)
  21729. vel : GPS ground speed. If unknown, set to: UINT16_MAX [cm/s] (type:uint16_t)
  21730. vn : GPS velocity in north direction in earth-fixed NED frame [cm/s] (type:int16_t)
  21731. ve : GPS velocity in east direction in earth-fixed NED frame [cm/s] (type:int16_t)
  21732. vd : GPS velocity in down direction in earth-fixed NED frame [cm/s] (type:int16_t)
  21733. cog : Course over ground (NOT heading, but direction of movement), 0.0..359.99 degrees. If unknown, set to: UINT16_MAX [cdeg] (type:uint16_t)
  21734. satellites_visible : Number of satellites visible. If unknown, set to UINT8_MAX (type:uint8_t)
  21735. id : GPS ID (zero indexed). Used for multiple GPS inputs (type:uint8_t)
  21736. yaw : Yaw of vehicle relative to Earth's North, zero means not available, use 36000 for north [cdeg] (type:uint16_t)
  21737. """
  21738. return MAVLink_hil_gps_message(time_usec, fix_type, lat, lon, alt, eph, epv, vel, vn, ve, vd, cog, satellites_visible, id, yaw)
  21739. def hil_gps_send(self, time_usec: int, fix_type: int, lat: int, lon: int, alt: int, eph: int, epv: int, vel: int, vn: int, ve: int, vd: int, cog: int, satellites_visible: int, id: int = 0, yaw: int = 0, force_mavlink1: bool = False) -> None:
  21740. """
  21741. The global position, as returned by the Global Positioning System
  21742. (GPS). This is NOT the global position
  21743. estimate of the system, but rather a RAW sensor value. See
  21744. message GLOBAL_POSITION_INT for the global position estimate.
  21745. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  21746. fix_type : 0-1: no fix, 2: 2D fix, 3: 3D fix. Some applications will not use the value of this field unless it is at least two, so always correctly fill in the fix. (type:uint8_t)
  21747. lat : Latitude (WGS84) [degE7] (type:int32_t)
  21748. lon : Longitude (WGS84) [degE7] (type:int32_t)
  21749. alt : Altitude (MSL). Positive for up. [mm] (type:int32_t)
  21750. eph : GPS HDOP horizontal dilution of position (unitless * 100). If unknown, set to: UINT16_MAX (type:uint16_t)
  21751. epv : GPS VDOP vertical dilution of position (unitless * 100). If unknown, set to: UINT16_MAX (type:uint16_t)
  21752. vel : GPS ground speed. If unknown, set to: UINT16_MAX [cm/s] (type:uint16_t)
  21753. vn : GPS velocity in north direction in earth-fixed NED frame [cm/s] (type:int16_t)
  21754. ve : GPS velocity in east direction in earth-fixed NED frame [cm/s] (type:int16_t)
  21755. vd : GPS velocity in down direction in earth-fixed NED frame [cm/s] (type:int16_t)
  21756. cog : Course over ground (NOT heading, but direction of movement), 0.0..359.99 degrees. If unknown, set to: UINT16_MAX [cdeg] (type:uint16_t)
  21757. satellites_visible : Number of satellites visible. If unknown, set to UINT8_MAX (type:uint8_t)
  21758. id : GPS ID (zero indexed). Used for multiple GPS inputs (type:uint8_t)
  21759. yaw : Yaw of vehicle relative to Earth's North, zero means not available, use 36000 for north [cdeg] (type:uint16_t)
  21760. """
  21761. self.send(self.hil_gps_encode(time_usec, fix_type, lat, lon, alt, eph, epv, vel, vn, ve, vd, cog, satellites_visible, id, yaw), force_mavlink1=force_mavlink1)
  21762. def hil_optical_flow_encode(self, time_usec: int, sensor_id: int, integration_time_us: int, integrated_x: float, integrated_y: float, integrated_xgyro: float, integrated_ygyro: float, integrated_zgyro: float, temperature: int, quality: int, time_delta_distance_us: int, distance: float) -> MAVLink_hil_optical_flow_message:
  21763. """
  21764. Simulated optical flow from a flow sensor (e.g. PX4FLOW or optical
  21765. mouse sensor)
  21766. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  21767. sensor_id : Sensor ID (type:uint8_t)
  21768. integration_time_us : Integration time. Divide integrated_x and integrated_y by the integration time to obtain average flow. The integration time also indicates the. [us] (type:uint32_t)
  21769. integrated_x : Flow in radians around X axis (Sensor RH rotation about the X axis induces a positive flow. Sensor linear motion along the positive Y axis induces a negative flow.) [rad] (type:float)
  21770. integrated_y : Flow in radians around Y axis (Sensor RH rotation about the Y axis induces a positive flow. Sensor linear motion along the positive X axis induces a positive flow.) [rad] (type:float)
  21771. integrated_xgyro : RH rotation around X axis [rad] (type:float)
  21772. integrated_ygyro : RH rotation around Y axis [rad] (type:float)
  21773. integrated_zgyro : RH rotation around Z axis [rad] (type:float)
  21774. temperature : Temperature [cdegC] (type:int16_t)
  21775. quality : Optical flow quality / confidence. 0: no valid flow, 255: maximum quality (type:uint8_t)
  21776. time_delta_distance_us : Time since the distance was sampled. [us] (type:uint32_t)
  21777. distance : Distance to the center of the flow field. Positive value (including zero): distance known. Negative value: Unknown distance. [m] (type:float)
  21778. """
  21779. return MAVLink_hil_optical_flow_message(time_usec, sensor_id, integration_time_us, integrated_x, integrated_y, integrated_xgyro, integrated_ygyro, integrated_zgyro, temperature, quality, time_delta_distance_us, distance)
  21780. def hil_optical_flow_send(self, time_usec: int, sensor_id: int, integration_time_us: int, integrated_x: float, integrated_y: float, integrated_xgyro: float, integrated_ygyro: float, integrated_zgyro: float, temperature: int, quality: int, time_delta_distance_us: int, distance: float, force_mavlink1: bool = False) -> None:
  21781. """
  21782. Simulated optical flow from a flow sensor (e.g. PX4FLOW or optical
  21783. mouse sensor)
  21784. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  21785. sensor_id : Sensor ID (type:uint8_t)
  21786. integration_time_us : Integration time. Divide integrated_x and integrated_y by the integration time to obtain average flow. The integration time also indicates the. [us] (type:uint32_t)
  21787. integrated_x : Flow in radians around X axis (Sensor RH rotation about the X axis induces a positive flow. Sensor linear motion along the positive Y axis induces a negative flow.) [rad] (type:float)
  21788. integrated_y : Flow in radians around Y axis (Sensor RH rotation about the Y axis induces a positive flow. Sensor linear motion along the positive X axis induces a positive flow.) [rad] (type:float)
  21789. integrated_xgyro : RH rotation around X axis [rad] (type:float)
  21790. integrated_ygyro : RH rotation around Y axis [rad] (type:float)
  21791. integrated_zgyro : RH rotation around Z axis [rad] (type:float)
  21792. temperature : Temperature [cdegC] (type:int16_t)
  21793. quality : Optical flow quality / confidence. 0: no valid flow, 255: maximum quality (type:uint8_t)
  21794. time_delta_distance_us : Time since the distance was sampled. [us] (type:uint32_t)
  21795. distance : Distance to the center of the flow field. Positive value (including zero): distance known. Negative value: Unknown distance. [m] (type:float)
  21796. """
  21797. self.send(self.hil_optical_flow_encode(time_usec, sensor_id, integration_time_us, integrated_x, integrated_y, integrated_xgyro, integrated_ygyro, integrated_zgyro, temperature, quality, time_delta_distance_us, distance), force_mavlink1=force_mavlink1)
  21798. def hil_state_quaternion_encode(self, time_usec: int, attitude_quaternion: Sequence[float], rollspeed: float, pitchspeed: float, yawspeed: float, lat: int, lon: int, alt: int, vx: int, vy: int, vz: int, ind_airspeed: int, true_airspeed: int, xacc: int, yacc: int, zacc: int) -> MAVLink_hil_state_quaternion_message:
  21799. """
  21800. Sent from simulation to autopilot, avoids in contrast to HIL_STATE
  21801. singularities. This packet is useful for high throughput
  21802. applications such as hardware in the loop simulations.
  21803. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  21804. attitude_quaternion : Vehicle attitude expressed as normalized quaternion in w, x, y, z order (with 1 0 0 0 being the null-rotation) (type:float)
  21805. rollspeed : Body frame roll / phi angular speed [rad/s] (type:float)
  21806. pitchspeed : Body frame pitch / theta angular speed [rad/s] (type:float)
  21807. yawspeed : Body frame yaw / psi angular speed [rad/s] (type:float)
  21808. lat : Latitude [degE7] (type:int32_t)
  21809. lon : Longitude [degE7] (type:int32_t)
  21810. alt : Altitude [mm] (type:int32_t)
  21811. vx : Ground X Speed (Latitude) [cm/s] (type:int16_t)
  21812. vy : Ground Y Speed (Longitude) [cm/s] (type:int16_t)
  21813. vz : Ground Z Speed (Altitude) [cm/s] (type:int16_t)
  21814. ind_airspeed : Indicated airspeed [cm/s] (type:uint16_t)
  21815. true_airspeed : True airspeed [cm/s] (type:uint16_t)
  21816. xacc : X acceleration [mG] (type:int16_t)
  21817. yacc : Y acceleration [mG] (type:int16_t)
  21818. zacc : Z acceleration [mG] (type:int16_t)
  21819. """
  21820. return MAVLink_hil_state_quaternion_message(time_usec, attitude_quaternion, rollspeed, pitchspeed, yawspeed, lat, lon, alt, vx, vy, vz, ind_airspeed, true_airspeed, xacc, yacc, zacc)
  21821. def hil_state_quaternion_send(self, time_usec: int, attitude_quaternion: Sequence[float], rollspeed: float, pitchspeed: float, yawspeed: float, lat: int, lon: int, alt: int, vx: int, vy: int, vz: int, ind_airspeed: int, true_airspeed: int, xacc: int, yacc: int, zacc: int, force_mavlink1: bool = False) -> None:
  21822. """
  21823. Sent from simulation to autopilot, avoids in contrast to HIL_STATE
  21824. singularities. This packet is useful for high throughput
  21825. applications such as hardware in the loop simulations.
  21826. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  21827. attitude_quaternion : Vehicle attitude expressed as normalized quaternion in w, x, y, z order (with 1 0 0 0 being the null-rotation) (type:float)
  21828. rollspeed : Body frame roll / phi angular speed [rad/s] (type:float)
  21829. pitchspeed : Body frame pitch / theta angular speed [rad/s] (type:float)
  21830. yawspeed : Body frame yaw / psi angular speed [rad/s] (type:float)
  21831. lat : Latitude [degE7] (type:int32_t)
  21832. lon : Longitude [degE7] (type:int32_t)
  21833. alt : Altitude [mm] (type:int32_t)
  21834. vx : Ground X Speed (Latitude) [cm/s] (type:int16_t)
  21835. vy : Ground Y Speed (Longitude) [cm/s] (type:int16_t)
  21836. vz : Ground Z Speed (Altitude) [cm/s] (type:int16_t)
  21837. ind_airspeed : Indicated airspeed [cm/s] (type:uint16_t)
  21838. true_airspeed : True airspeed [cm/s] (type:uint16_t)
  21839. xacc : X acceleration [mG] (type:int16_t)
  21840. yacc : Y acceleration [mG] (type:int16_t)
  21841. zacc : Z acceleration [mG] (type:int16_t)
  21842. """
  21843. self.send(self.hil_state_quaternion_encode(time_usec, attitude_quaternion, rollspeed, pitchspeed, yawspeed, lat, lon, alt, vx, vy, vz, ind_airspeed, true_airspeed, xacc, yacc, zacc), force_mavlink1=force_mavlink1)
  21844. def scaled_imu2_encode(self, time_boot_ms: int, xacc: int, yacc: int, zacc: int, xgyro: int, ygyro: int, zgyro: int, xmag: int, ymag: int, zmag: int, temperature: int = 0) -> MAVLink_scaled_imu2_message:
  21845. """
  21846. The RAW IMU readings for secondary 9DOF sensor setup. This message
  21847. should contain the scaled values to the described units
  21848. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  21849. xacc : X acceleration [mG] (type:int16_t)
  21850. yacc : Y acceleration [mG] (type:int16_t)
  21851. zacc : Z acceleration [mG] (type:int16_t)
  21852. xgyro : Angular speed around X axis [mrad/s] (type:int16_t)
  21853. ygyro : Angular speed around Y axis [mrad/s] (type:int16_t)
  21854. zgyro : Angular speed around Z axis [mrad/s] (type:int16_t)
  21855. xmag : X Magnetic field [mgauss] (type:int16_t)
  21856. ymag : Y Magnetic field [mgauss] (type:int16_t)
  21857. zmag : Z Magnetic field [mgauss] (type:int16_t)
  21858. temperature : Temperature, 0: IMU does not provide temperature values. If the IMU is at 0C it must send 1 (0.01C). [cdegC] (type:int16_t)
  21859. """
  21860. return MAVLink_scaled_imu2_message(time_boot_ms, xacc, yacc, zacc, xgyro, ygyro, zgyro, xmag, ymag, zmag, temperature)
  21861. def scaled_imu2_send(self, time_boot_ms: int, xacc: int, yacc: int, zacc: int, xgyro: int, ygyro: int, zgyro: int, xmag: int, ymag: int, zmag: int, temperature: int = 0, force_mavlink1: bool = False) -> None:
  21862. """
  21863. The RAW IMU readings for secondary 9DOF sensor setup. This message
  21864. should contain the scaled values to the described units
  21865. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  21866. xacc : X acceleration [mG] (type:int16_t)
  21867. yacc : Y acceleration [mG] (type:int16_t)
  21868. zacc : Z acceleration [mG] (type:int16_t)
  21869. xgyro : Angular speed around X axis [mrad/s] (type:int16_t)
  21870. ygyro : Angular speed around Y axis [mrad/s] (type:int16_t)
  21871. zgyro : Angular speed around Z axis [mrad/s] (type:int16_t)
  21872. xmag : X Magnetic field [mgauss] (type:int16_t)
  21873. ymag : Y Magnetic field [mgauss] (type:int16_t)
  21874. zmag : Z Magnetic field [mgauss] (type:int16_t)
  21875. temperature : Temperature, 0: IMU does not provide temperature values. If the IMU is at 0C it must send 1 (0.01C). [cdegC] (type:int16_t)
  21876. """
  21877. self.send(self.scaled_imu2_encode(time_boot_ms, xacc, yacc, zacc, xgyro, ygyro, zgyro, xmag, ymag, zmag, temperature), force_mavlink1=force_mavlink1)
  21878. def log_request_list_encode(self, target_system: int, target_component: int, start: int, end: int) -> MAVLink_log_request_list_message:
  21879. """
  21880. Request a list of available logs. On some systems calling this may
  21881. stop on-board logging until LOG_REQUEST_END is called. If
  21882. there are no log files available this request shall be
  21883. answered with one LOG_ENTRY message with id = 0 and num_logs =
  21884. 0.
  21885. target_system : System ID (type:uint8_t)
  21886. target_component : Component ID (type:uint8_t)
  21887. start : First log id (0 for first available) (type:uint16_t)
  21888. end : Last log id (0xffff for last available) (type:uint16_t)
  21889. """
  21890. return MAVLink_log_request_list_message(target_system, target_component, start, end)
  21891. def log_request_list_send(self, target_system: int, target_component: int, start: int, end: int, force_mavlink1: bool = False) -> None:
  21892. """
  21893. Request a list of available logs. On some systems calling this may
  21894. stop on-board logging until LOG_REQUEST_END is called. If
  21895. there are no log files available this request shall be
  21896. answered with one LOG_ENTRY message with id = 0 and num_logs =
  21897. 0.
  21898. target_system : System ID (type:uint8_t)
  21899. target_component : Component ID (type:uint8_t)
  21900. start : First log id (0 for first available) (type:uint16_t)
  21901. end : Last log id (0xffff for last available) (type:uint16_t)
  21902. """
  21903. self.send(self.log_request_list_encode(target_system, target_component, start, end), force_mavlink1=force_mavlink1)
  21904. def log_entry_encode(self, id: int, num_logs: int, last_log_num: int, time_utc: int, size: int) -> MAVLink_log_entry_message:
  21905. """
  21906. Reply to LOG_REQUEST_LIST
  21907. id : Log id (type:uint16_t)
  21908. num_logs : Total number of logs (type:uint16_t)
  21909. last_log_num : High log number (type:uint16_t)
  21910. time_utc : UTC timestamp of log since 1970, or 0 if not available [s] (type:uint32_t)
  21911. size : Size of the log (may be approximate) [bytes] (type:uint32_t)
  21912. """
  21913. return MAVLink_log_entry_message(id, num_logs, last_log_num, time_utc, size)
  21914. def log_entry_send(self, id: int, num_logs: int, last_log_num: int, time_utc: int, size: int, force_mavlink1: bool = False) -> None:
  21915. """
  21916. Reply to LOG_REQUEST_LIST
  21917. id : Log id (type:uint16_t)
  21918. num_logs : Total number of logs (type:uint16_t)
  21919. last_log_num : High log number (type:uint16_t)
  21920. time_utc : UTC timestamp of log since 1970, or 0 if not available [s] (type:uint32_t)
  21921. size : Size of the log (may be approximate) [bytes] (type:uint32_t)
  21922. """
  21923. self.send(self.log_entry_encode(id, num_logs, last_log_num, time_utc, size), force_mavlink1=force_mavlink1)
  21924. def log_request_data_encode(self, target_system: int, target_component: int, id: int, ofs: int, count: int) -> MAVLink_log_request_data_message:
  21925. """
  21926. Request a chunk of a log
  21927. target_system : System ID (type:uint8_t)
  21928. target_component : Component ID (type:uint8_t)
  21929. id : Log id (from LOG_ENTRY reply) (type:uint16_t)
  21930. ofs : Offset into the log (type:uint32_t)
  21931. count : Number of bytes [bytes] (type:uint32_t)
  21932. """
  21933. return MAVLink_log_request_data_message(target_system, target_component, id, ofs, count)
  21934. def log_request_data_send(self, target_system: int, target_component: int, id: int, ofs: int, count: int, force_mavlink1: bool = False) -> None:
  21935. """
  21936. Request a chunk of a log
  21937. target_system : System ID (type:uint8_t)
  21938. target_component : Component ID (type:uint8_t)
  21939. id : Log id (from LOG_ENTRY reply) (type:uint16_t)
  21940. ofs : Offset into the log (type:uint32_t)
  21941. count : Number of bytes [bytes] (type:uint32_t)
  21942. """
  21943. self.send(self.log_request_data_encode(target_system, target_component, id, ofs, count), force_mavlink1=force_mavlink1)
  21944. def log_data_encode(self, id: int, ofs: int, count: int, data: Sequence[int]) -> MAVLink_log_data_message:
  21945. """
  21946. Reply to LOG_REQUEST_DATA
  21947. id : Log id (from LOG_ENTRY reply) (type:uint16_t)
  21948. ofs : Offset into the log (type:uint32_t)
  21949. count : Number of bytes (zero for end of log) [bytes] (type:uint8_t)
  21950. data : log data (type:uint8_t)
  21951. """
  21952. return MAVLink_log_data_message(id, ofs, count, data)
  21953. def log_data_send(self, id: int, ofs: int, count: int, data: Sequence[int], force_mavlink1: bool = False) -> None:
  21954. """
  21955. Reply to LOG_REQUEST_DATA
  21956. id : Log id (from LOG_ENTRY reply) (type:uint16_t)
  21957. ofs : Offset into the log (type:uint32_t)
  21958. count : Number of bytes (zero for end of log) [bytes] (type:uint8_t)
  21959. data : log data (type:uint8_t)
  21960. """
  21961. self.send(self.log_data_encode(id, ofs, count, data), force_mavlink1=force_mavlink1)
  21962. def log_erase_encode(self, target_system: int, target_component: int) -> MAVLink_log_erase_message:
  21963. """
  21964. Erase all logs
  21965. target_system : System ID (type:uint8_t)
  21966. target_component : Component ID (type:uint8_t)
  21967. """
  21968. return MAVLink_log_erase_message(target_system, target_component)
  21969. def log_erase_send(self, target_system: int, target_component: int, force_mavlink1: bool = False) -> None:
  21970. """
  21971. Erase all logs
  21972. target_system : System ID (type:uint8_t)
  21973. target_component : Component ID (type:uint8_t)
  21974. """
  21975. self.send(self.log_erase_encode(target_system, target_component), force_mavlink1=force_mavlink1)
  21976. def log_request_end_encode(self, target_system: int, target_component: int) -> MAVLink_log_request_end_message:
  21977. """
  21978. Stop log transfer and resume normal logging
  21979. target_system : System ID (type:uint8_t)
  21980. target_component : Component ID (type:uint8_t)
  21981. """
  21982. return MAVLink_log_request_end_message(target_system, target_component)
  21983. def log_request_end_send(self, target_system: int, target_component: int, force_mavlink1: bool = False) -> None:
  21984. """
  21985. Stop log transfer and resume normal logging
  21986. target_system : System ID (type:uint8_t)
  21987. target_component : Component ID (type:uint8_t)
  21988. """
  21989. self.send(self.log_request_end_encode(target_system, target_component), force_mavlink1=force_mavlink1)
  21990. def gps_inject_data_encode(self, target_system: int, target_component: int, len: int, data: Sequence[int]) -> MAVLink_gps_inject_data_message:
  21991. """
  21992. Data for injecting into the onboard GPS (used for DGPS)
  21993. target_system : System ID (type:uint8_t)
  21994. target_component : Component ID (type:uint8_t)
  21995. len : Data length [bytes] (type:uint8_t)
  21996. data : Raw data (110 is enough for 12 satellites of RTCMv2) (type:uint8_t)
  21997. """
  21998. return MAVLink_gps_inject_data_message(target_system, target_component, len, data)
  21999. def gps_inject_data_send(self, target_system: int, target_component: int, len: int, data: Sequence[int], force_mavlink1: bool = False) -> None:
  22000. """
  22001. Data for injecting into the onboard GPS (used for DGPS)
  22002. target_system : System ID (type:uint8_t)
  22003. target_component : Component ID (type:uint8_t)
  22004. len : Data length [bytes] (type:uint8_t)
  22005. data : Raw data (110 is enough for 12 satellites of RTCMv2) (type:uint8_t)
  22006. """
  22007. self.send(self.gps_inject_data_encode(target_system, target_component, len, data), force_mavlink1=force_mavlink1)
  22008. def gps2_raw_encode(self, time_usec: int, fix_type: int, lat: int, lon: int, alt: int, eph: int, epv: int, vel: int, cog: int, satellites_visible: int, dgps_numch: int, dgps_age: int, yaw: int = 0, alt_ellipsoid: int = 0, h_acc: int = 0, v_acc: int = 0, vel_acc: int = 0, hdg_acc: int = 0) -> MAVLink_gps2_raw_message:
  22009. """
  22010. Second GPS data.
  22011. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  22012. fix_type : GPS fix type. (type:uint8_t, values:GPS_FIX_TYPE)
  22013. lat : Latitude (WGS84) [degE7] (type:int32_t)
  22014. lon : Longitude (WGS84) [degE7] (type:int32_t)
  22015. alt : Altitude (MSL). Positive for up. [mm] (type:int32_t)
  22016. eph : GPS HDOP horizontal dilution of position (unitless * 100). If unknown, set to: UINT16_MAX (type:uint16_t)
  22017. epv : GPS VDOP vertical dilution of position (unitless * 100). If unknown, set to: UINT16_MAX (type:uint16_t)
  22018. vel : GPS ground speed. If unknown, set to: UINT16_MAX [cm/s] (type:uint16_t)
  22019. cog : Course over ground (NOT heading, but direction of movement): 0.0..359.99 degrees. If unknown, set to: UINT16_MAX [cdeg] (type:uint16_t)
  22020. satellites_visible : Number of satellites visible. If unknown, set to UINT8_MAX (type:uint8_t)
  22021. dgps_numch : Number of DGPS satellites (type:uint8_t)
  22022. dgps_age : Age of DGPS info [ms] (type:uint32_t)
  22023. yaw : Yaw in earth frame from north. Use 0 if this GPS does not provide yaw. Use UINT16_MAX if this GPS is configured to provide yaw and is currently unable to provide it. Use 36000 for north. [cdeg] (type:uint16_t)
  22024. alt_ellipsoid : Altitude (above WGS84, EGM96 ellipsoid). Positive for up. [mm] (type:int32_t)
  22025. h_acc : Position uncertainty. [mm] (type:uint32_t)
  22026. v_acc : Altitude uncertainty. [mm] (type:uint32_t)
  22027. vel_acc : Speed uncertainty. [mm] (type:uint32_t)
  22028. hdg_acc : Heading / track uncertainty [degE5] (type:uint32_t)
  22029. """
  22030. return MAVLink_gps2_raw_message(time_usec, fix_type, lat, lon, alt, eph, epv, vel, cog, satellites_visible, dgps_numch, dgps_age, yaw, alt_ellipsoid, h_acc, v_acc, vel_acc, hdg_acc)
  22031. def gps2_raw_send(self, time_usec: int, fix_type: int, lat: int, lon: int, alt: int, eph: int, epv: int, vel: int, cog: int, satellites_visible: int, dgps_numch: int, dgps_age: int, yaw: int = 0, alt_ellipsoid: int = 0, h_acc: int = 0, v_acc: int = 0, vel_acc: int = 0, hdg_acc: int = 0, force_mavlink1: bool = False) -> None:
  22032. """
  22033. Second GPS data.
  22034. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  22035. fix_type : GPS fix type. (type:uint8_t, values:GPS_FIX_TYPE)
  22036. lat : Latitude (WGS84) [degE7] (type:int32_t)
  22037. lon : Longitude (WGS84) [degE7] (type:int32_t)
  22038. alt : Altitude (MSL). Positive for up. [mm] (type:int32_t)
  22039. eph : GPS HDOP horizontal dilution of position (unitless * 100). If unknown, set to: UINT16_MAX (type:uint16_t)
  22040. epv : GPS VDOP vertical dilution of position (unitless * 100). If unknown, set to: UINT16_MAX (type:uint16_t)
  22041. vel : GPS ground speed. If unknown, set to: UINT16_MAX [cm/s] (type:uint16_t)
  22042. cog : Course over ground (NOT heading, but direction of movement): 0.0..359.99 degrees. If unknown, set to: UINT16_MAX [cdeg] (type:uint16_t)
  22043. satellites_visible : Number of satellites visible. If unknown, set to UINT8_MAX (type:uint8_t)
  22044. dgps_numch : Number of DGPS satellites (type:uint8_t)
  22045. dgps_age : Age of DGPS info [ms] (type:uint32_t)
  22046. yaw : Yaw in earth frame from north. Use 0 if this GPS does not provide yaw. Use UINT16_MAX if this GPS is configured to provide yaw and is currently unable to provide it. Use 36000 for north. [cdeg] (type:uint16_t)
  22047. alt_ellipsoid : Altitude (above WGS84, EGM96 ellipsoid). Positive for up. [mm] (type:int32_t)
  22048. h_acc : Position uncertainty. [mm] (type:uint32_t)
  22049. v_acc : Altitude uncertainty. [mm] (type:uint32_t)
  22050. vel_acc : Speed uncertainty. [mm] (type:uint32_t)
  22051. hdg_acc : Heading / track uncertainty [degE5] (type:uint32_t)
  22052. """
  22053. self.send(self.gps2_raw_encode(time_usec, fix_type, lat, lon, alt, eph, epv, vel, cog, satellites_visible, dgps_numch, dgps_age, yaw, alt_ellipsoid, h_acc, v_acc, vel_acc, hdg_acc), force_mavlink1=force_mavlink1)
  22054. def power_status_encode(self, Vcc: int, Vservo: int, flags: int) -> MAVLink_power_status_message:
  22055. """
  22056. Power supply status
  22057. Vcc : 5V rail voltage. [mV] (type:uint16_t)
  22058. Vservo : Servo rail voltage. [mV] (type:uint16_t)
  22059. flags : Bitmap of power supply status flags. (type:uint16_t, values:MAV_POWER_STATUS)
  22060. """
  22061. return MAVLink_power_status_message(Vcc, Vservo, flags)
  22062. def power_status_send(self, Vcc: int, Vservo: int, flags: int, force_mavlink1: bool = False) -> None:
  22063. """
  22064. Power supply status
  22065. Vcc : 5V rail voltage. [mV] (type:uint16_t)
  22066. Vservo : Servo rail voltage. [mV] (type:uint16_t)
  22067. flags : Bitmap of power supply status flags. (type:uint16_t, values:MAV_POWER_STATUS)
  22068. """
  22069. self.send(self.power_status_encode(Vcc, Vservo, flags), force_mavlink1=force_mavlink1)
  22070. def serial_control_encode(self, device: int, flags: int, timeout: int, baudrate: int, count: int, data: Sequence[int], target_system: int = 0, target_component: int = 0) -> MAVLink_serial_control_message:
  22071. """
  22072. Control a serial port. This can be used for raw access to an onboard
  22073. serial peripheral such as a GPS or telemetry radio. It is
  22074. designed to make it possible to update the devices firmware
  22075. via MAVLink messages or change the devices settings. A message
  22076. with zero bytes can be used to change just the baudrate.
  22077. device : Serial control device type. (type:uint8_t, values:SERIAL_CONTROL_DEV)
  22078. flags : Bitmap of serial control flags. (type:uint8_t, values:SERIAL_CONTROL_FLAG)
  22079. timeout : Timeout for reply data [ms] (type:uint16_t)
  22080. baudrate : Baudrate of transfer. Zero means no change. [bits/s] (type:uint32_t)
  22081. count : how many bytes in this transfer [bytes] (type:uint8_t)
  22082. data : serial data (type:uint8_t)
  22083. target_system : System ID (type:uint8_t)
  22084. target_component : Component ID (type:uint8_t)
  22085. """
  22086. return MAVLink_serial_control_message(device, flags, timeout, baudrate, count, data, target_system, target_component)
  22087. def serial_control_send(self, device: int, flags: int, timeout: int, baudrate: int, count: int, data: Sequence[int], target_system: int = 0, target_component: int = 0, force_mavlink1: bool = False) -> None:
  22088. """
  22089. Control a serial port. This can be used for raw access to an onboard
  22090. serial peripheral such as a GPS or telemetry radio. It is
  22091. designed to make it possible to update the devices firmware
  22092. via MAVLink messages or change the devices settings. A message
  22093. with zero bytes can be used to change just the baudrate.
  22094. device : Serial control device type. (type:uint8_t, values:SERIAL_CONTROL_DEV)
  22095. flags : Bitmap of serial control flags. (type:uint8_t, values:SERIAL_CONTROL_FLAG)
  22096. timeout : Timeout for reply data [ms] (type:uint16_t)
  22097. baudrate : Baudrate of transfer. Zero means no change. [bits/s] (type:uint32_t)
  22098. count : how many bytes in this transfer [bytes] (type:uint8_t)
  22099. data : serial data (type:uint8_t)
  22100. target_system : System ID (type:uint8_t)
  22101. target_component : Component ID (type:uint8_t)
  22102. """
  22103. self.send(self.serial_control_encode(device, flags, timeout, baudrate, count, data, target_system, target_component), force_mavlink1=force_mavlink1)
  22104. def gps_rtk_encode(self, time_last_baseline_ms: int, rtk_receiver_id: int, wn: int, tow: int, rtk_health: int, rtk_rate: int, nsats: int, baseline_coords_type: int, baseline_a_mm: int, baseline_b_mm: int, baseline_c_mm: int, accuracy: int, iar_num_hypotheses: int) -> MAVLink_gps_rtk_message:
  22105. """
  22106. RTK GPS data. Gives information on the relative baseline calculation
  22107. the GPS is reporting
  22108. time_last_baseline_ms : Time since boot of last baseline message received. [ms] (type:uint32_t)
  22109. rtk_receiver_id : Identification of connected RTK receiver. (type:uint8_t)
  22110. wn : GPS Week Number of last baseline (type:uint16_t)
  22111. tow : GPS Time of Week of last baseline [ms] (type:uint32_t)
  22112. rtk_health : GPS-specific health report for RTK data. (type:uint8_t)
  22113. rtk_rate : Rate of baseline messages being received by GPS [Hz] (type:uint8_t)
  22114. nsats : Current number of sats used for RTK calculation. (type:uint8_t)
  22115. baseline_coords_type : Coordinate system of baseline (type:uint8_t, values:RTK_BASELINE_COORDINATE_SYSTEM)
  22116. baseline_a_mm : Current baseline in ECEF x or NED north component. [mm] (type:int32_t)
  22117. baseline_b_mm : Current baseline in ECEF y or NED east component. [mm] (type:int32_t)
  22118. baseline_c_mm : Current baseline in ECEF z or NED down component. [mm] (type:int32_t)
  22119. accuracy : Current estimate of baseline accuracy. (type:uint32_t)
  22120. iar_num_hypotheses : Current number of integer ambiguity hypotheses. (type:int32_t)
  22121. """
  22122. return MAVLink_gps_rtk_message(time_last_baseline_ms, rtk_receiver_id, wn, tow, rtk_health, rtk_rate, nsats, baseline_coords_type, baseline_a_mm, baseline_b_mm, baseline_c_mm, accuracy, iar_num_hypotheses)
  22123. def gps_rtk_send(self, time_last_baseline_ms: int, rtk_receiver_id: int, wn: int, tow: int, rtk_health: int, rtk_rate: int, nsats: int, baseline_coords_type: int, baseline_a_mm: int, baseline_b_mm: int, baseline_c_mm: int, accuracy: int, iar_num_hypotheses: int, force_mavlink1: bool = False) -> None:
  22124. """
  22125. RTK GPS data. Gives information on the relative baseline calculation
  22126. the GPS is reporting
  22127. time_last_baseline_ms : Time since boot of last baseline message received. [ms] (type:uint32_t)
  22128. rtk_receiver_id : Identification of connected RTK receiver. (type:uint8_t)
  22129. wn : GPS Week Number of last baseline (type:uint16_t)
  22130. tow : GPS Time of Week of last baseline [ms] (type:uint32_t)
  22131. rtk_health : GPS-specific health report for RTK data. (type:uint8_t)
  22132. rtk_rate : Rate of baseline messages being received by GPS [Hz] (type:uint8_t)
  22133. nsats : Current number of sats used for RTK calculation. (type:uint8_t)
  22134. baseline_coords_type : Coordinate system of baseline (type:uint8_t, values:RTK_BASELINE_COORDINATE_SYSTEM)
  22135. baseline_a_mm : Current baseline in ECEF x or NED north component. [mm] (type:int32_t)
  22136. baseline_b_mm : Current baseline in ECEF y or NED east component. [mm] (type:int32_t)
  22137. baseline_c_mm : Current baseline in ECEF z or NED down component. [mm] (type:int32_t)
  22138. accuracy : Current estimate of baseline accuracy. (type:uint32_t)
  22139. iar_num_hypotheses : Current number of integer ambiguity hypotheses. (type:int32_t)
  22140. """
  22141. self.send(self.gps_rtk_encode(time_last_baseline_ms, rtk_receiver_id, wn, tow, rtk_health, rtk_rate, nsats, baseline_coords_type, baseline_a_mm, baseline_b_mm, baseline_c_mm, accuracy, iar_num_hypotheses), force_mavlink1=force_mavlink1)
  22142. def gps2_rtk_encode(self, time_last_baseline_ms: int, rtk_receiver_id: int, wn: int, tow: int, rtk_health: int, rtk_rate: int, nsats: int, baseline_coords_type: int, baseline_a_mm: int, baseline_b_mm: int, baseline_c_mm: int, accuracy: int, iar_num_hypotheses: int) -> MAVLink_gps2_rtk_message:
  22143. """
  22144. RTK GPS data. Gives information on the relative baseline calculation
  22145. the GPS is reporting
  22146. time_last_baseline_ms : Time since boot of last baseline message received. [ms] (type:uint32_t)
  22147. rtk_receiver_id : Identification of connected RTK receiver. (type:uint8_t)
  22148. wn : GPS Week Number of last baseline (type:uint16_t)
  22149. tow : GPS Time of Week of last baseline [ms] (type:uint32_t)
  22150. rtk_health : GPS-specific health report for RTK data. (type:uint8_t)
  22151. rtk_rate : Rate of baseline messages being received by GPS [Hz] (type:uint8_t)
  22152. nsats : Current number of sats used for RTK calculation. (type:uint8_t)
  22153. baseline_coords_type : Coordinate system of baseline (type:uint8_t, values:RTK_BASELINE_COORDINATE_SYSTEM)
  22154. baseline_a_mm : Current baseline in ECEF x or NED north component. [mm] (type:int32_t)
  22155. baseline_b_mm : Current baseline in ECEF y or NED east component. [mm] (type:int32_t)
  22156. baseline_c_mm : Current baseline in ECEF z or NED down component. [mm] (type:int32_t)
  22157. accuracy : Current estimate of baseline accuracy. (type:uint32_t)
  22158. iar_num_hypotheses : Current number of integer ambiguity hypotheses. (type:int32_t)
  22159. """
  22160. return MAVLink_gps2_rtk_message(time_last_baseline_ms, rtk_receiver_id, wn, tow, rtk_health, rtk_rate, nsats, baseline_coords_type, baseline_a_mm, baseline_b_mm, baseline_c_mm, accuracy, iar_num_hypotheses)
  22161. def gps2_rtk_send(self, time_last_baseline_ms: int, rtk_receiver_id: int, wn: int, tow: int, rtk_health: int, rtk_rate: int, nsats: int, baseline_coords_type: int, baseline_a_mm: int, baseline_b_mm: int, baseline_c_mm: int, accuracy: int, iar_num_hypotheses: int, force_mavlink1: bool = False) -> None:
  22162. """
  22163. RTK GPS data. Gives information on the relative baseline calculation
  22164. the GPS is reporting
  22165. time_last_baseline_ms : Time since boot of last baseline message received. [ms] (type:uint32_t)
  22166. rtk_receiver_id : Identification of connected RTK receiver. (type:uint8_t)
  22167. wn : GPS Week Number of last baseline (type:uint16_t)
  22168. tow : GPS Time of Week of last baseline [ms] (type:uint32_t)
  22169. rtk_health : GPS-specific health report for RTK data. (type:uint8_t)
  22170. rtk_rate : Rate of baseline messages being received by GPS [Hz] (type:uint8_t)
  22171. nsats : Current number of sats used for RTK calculation. (type:uint8_t)
  22172. baseline_coords_type : Coordinate system of baseline (type:uint8_t, values:RTK_BASELINE_COORDINATE_SYSTEM)
  22173. baseline_a_mm : Current baseline in ECEF x or NED north component. [mm] (type:int32_t)
  22174. baseline_b_mm : Current baseline in ECEF y or NED east component. [mm] (type:int32_t)
  22175. baseline_c_mm : Current baseline in ECEF z or NED down component. [mm] (type:int32_t)
  22176. accuracy : Current estimate of baseline accuracy. (type:uint32_t)
  22177. iar_num_hypotheses : Current number of integer ambiguity hypotheses. (type:int32_t)
  22178. """
  22179. self.send(self.gps2_rtk_encode(time_last_baseline_ms, rtk_receiver_id, wn, tow, rtk_health, rtk_rate, nsats, baseline_coords_type, baseline_a_mm, baseline_b_mm, baseline_c_mm, accuracy, iar_num_hypotheses), force_mavlink1=force_mavlink1)
  22180. def scaled_imu3_encode(self, time_boot_ms: int, xacc: int, yacc: int, zacc: int, xgyro: int, ygyro: int, zgyro: int, xmag: int, ymag: int, zmag: int, temperature: int = 0) -> MAVLink_scaled_imu3_message:
  22181. """
  22182. The RAW IMU readings for 3rd 9DOF sensor setup. This message should
  22183. contain the scaled values to the described units
  22184. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  22185. xacc : X acceleration [mG] (type:int16_t)
  22186. yacc : Y acceleration [mG] (type:int16_t)
  22187. zacc : Z acceleration [mG] (type:int16_t)
  22188. xgyro : Angular speed around X axis [mrad/s] (type:int16_t)
  22189. ygyro : Angular speed around Y axis [mrad/s] (type:int16_t)
  22190. zgyro : Angular speed around Z axis [mrad/s] (type:int16_t)
  22191. xmag : X Magnetic field [mgauss] (type:int16_t)
  22192. ymag : Y Magnetic field [mgauss] (type:int16_t)
  22193. zmag : Z Magnetic field [mgauss] (type:int16_t)
  22194. temperature : Temperature, 0: IMU does not provide temperature values. If the IMU is at 0C it must send 1 (0.01C). [cdegC] (type:int16_t)
  22195. """
  22196. return MAVLink_scaled_imu3_message(time_boot_ms, xacc, yacc, zacc, xgyro, ygyro, zgyro, xmag, ymag, zmag, temperature)
  22197. def scaled_imu3_send(self, time_boot_ms: int, xacc: int, yacc: int, zacc: int, xgyro: int, ygyro: int, zgyro: int, xmag: int, ymag: int, zmag: int, temperature: int = 0, force_mavlink1: bool = False) -> None:
  22198. """
  22199. The RAW IMU readings for 3rd 9DOF sensor setup. This message should
  22200. contain the scaled values to the described units
  22201. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  22202. xacc : X acceleration [mG] (type:int16_t)
  22203. yacc : Y acceleration [mG] (type:int16_t)
  22204. zacc : Z acceleration [mG] (type:int16_t)
  22205. xgyro : Angular speed around X axis [mrad/s] (type:int16_t)
  22206. ygyro : Angular speed around Y axis [mrad/s] (type:int16_t)
  22207. zgyro : Angular speed around Z axis [mrad/s] (type:int16_t)
  22208. xmag : X Magnetic field [mgauss] (type:int16_t)
  22209. ymag : Y Magnetic field [mgauss] (type:int16_t)
  22210. zmag : Z Magnetic field [mgauss] (type:int16_t)
  22211. temperature : Temperature, 0: IMU does not provide temperature values. If the IMU is at 0C it must send 1 (0.01C). [cdegC] (type:int16_t)
  22212. """
  22213. self.send(self.scaled_imu3_encode(time_boot_ms, xacc, yacc, zacc, xgyro, ygyro, zgyro, xmag, ymag, zmag, temperature), force_mavlink1=force_mavlink1)
  22214. def data_transmission_handshake_encode(self, type: int, size: int, width: int, height: int, packets: int, payload: int, jpg_quality: int) -> MAVLink_data_transmission_handshake_message:
  22215. """
  22216. Handshake message to initiate, control and stop image streaming when
  22217. using the Image Transmission Protocol:
  22218. https://mavlink.io/en/services/image_transmission.html.
  22219. type : Type of requested/acknowledged data. (type:uint8_t, values:MAVLINK_DATA_STREAM_TYPE)
  22220. size : total data size (set on ACK only). [bytes] (type:uint32_t)
  22221. width : Width of a matrix or image. (type:uint16_t)
  22222. height : Height of a matrix or image. (type:uint16_t)
  22223. packets : Number of packets being sent (set on ACK only). (type:uint16_t)
  22224. payload : Payload size per packet (normally 253 byte, see DATA field size in message ENCAPSULATED_DATA) (set on ACK only). [bytes] (type:uint8_t)
  22225. jpg_quality : JPEG quality. Values: [1-100]. [%] (type:uint8_t)
  22226. """
  22227. return MAVLink_data_transmission_handshake_message(type, size, width, height, packets, payload, jpg_quality)
  22228. def data_transmission_handshake_send(self, type: int, size: int, width: int, height: int, packets: int, payload: int, jpg_quality: int, force_mavlink1: bool = False) -> None:
  22229. """
  22230. Handshake message to initiate, control and stop image streaming when
  22231. using the Image Transmission Protocol:
  22232. https://mavlink.io/en/services/image_transmission.html.
  22233. type : Type of requested/acknowledged data. (type:uint8_t, values:MAVLINK_DATA_STREAM_TYPE)
  22234. size : total data size (set on ACK only). [bytes] (type:uint32_t)
  22235. width : Width of a matrix or image. (type:uint16_t)
  22236. height : Height of a matrix or image. (type:uint16_t)
  22237. packets : Number of packets being sent (set on ACK only). (type:uint16_t)
  22238. payload : Payload size per packet (normally 253 byte, see DATA field size in message ENCAPSULATED_DATA) (set on ACK only). [bytes] (type:uint8_t)
  22239. jpg_quality : JPEG quality. Values: [1-100]. [%] (type:uint8_t)
  22240. """
  22241. self.send(self.data_transmission_handshake_encode(type, size, width, height, packets, payload, jpg_quality), force_mavlink1=force_mavlink1)
  22242. def encapsulated_data_encode(self, seqnr: int, data: Sequence[int]) -> MAVLink_encapsulated_data_message:
  22243. """
  22244. Data packet for images sent using the Image Transmission Protocol:
  22245. https://mavlink.io/en/services/image_transmission.html.
  22246. seqnr : sequence number (starting with 0 on every transmission) (type:uint16_t)
  22247. data : image data bytes (type:uint8_t)
  22248. """
  22249. return MAVLink_encapsulated_data_message(seqnr, data)
  22250. def encapsulated_data_send(self, seqnr: int, data: Sequence[int], force_mavlink1: bool = False) -> None:
  22251. """
  22252. Data packet for images sent using the Image Transmission Protocol:
  22253. https://mavlink.io/en/services/image_transmission.html.
  22254. seqnr : sequence number (starting with 0 on every transmission) (type:uint16_t)
  22255. data : image data bytes (type:uint8_t)
  22256. """
  22257. self.send(self.encapsulated_data_encode(seqnr, data), force_mavlink1=force_mavlink1)
  22258. def distance_sensor_encode(self, time_boot_ms: int, min_distance: int, max_distance: int, current_distance: int, type: int, id: int, orientation: int, covariance: int, horizontal_fov: float = 0, vertical_fov: float = 0, quaternion: Sequence[float] = (0, 0, 0, 0), signal_quality: int = 0) -> MAVLink_distance_sensor_message:
  22259. """
  22260. Distance sensor information for an onboard rangefinder.
  22261. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  22262. min_distance : Minimum distance the sensor can measure [cm] (type:uint16_t)
  22263. max_distance : Maximum distance the sensor can measure [cm] (type:uint16_t)
  22264. current_distance : Current distance reading [cm] (type:uint16_t)
  22265. type : Type of distance sensor. (type:uint8_t, values:MAV_DISTANCE_SENSOR)
  22266. id : Onboard ID of the sensor (type:uint8_t)
  22267. orientation : Direction the sensor faces. downward-facing: ROTATION_PITCH_270, upward-facing: ROTATION_PITCH_90, backward-facing: ROTATION_PITCH_180, forward-facing: ROTATION_NONE, left-facing: ROTATION_YAW_90, right-facing: ROTATION_YAW_270 (type:uint8_t, values:MAV_SENSOR_ORIENTATION)
  22268. covariance : Measurement variance. Max standard deviation is 6cm. UINT8_MAX if unknown. [cm^2] (type:uint8_t)
  22269. horizontal_fov : Horizontal Field of View (angle) where the distance measurement is valid and the field of view is known. Otherwise this is set to 0. [rad] (type:float)
  22270. vertical_fov : Vertical Field of View (angle) where the distance measurement is valid and the field of view is known. Otherwise this is set to 0. [rad] (type:float)
  22271. quaternion : Quaternion of the sensor orientation in vehicle body frame (w, x, y, z order, zero-rotation is 1, 0, 0, 0). Zero-rotation is along the vehicle body x-axis. This field is required if the orientation is set to MAV_SENSOR_ROTATION_CUSTOM. Set it to 0 if invalid." (type:float)
  22272. signal_quality : Signal quality of the sensor. Specific to each sensor type, representing the relation of the signal strength with the target reflectivity, distance, size or aspect, but normalised as a percentage. 0 = unknown/unset signal quality, 1 = invalid signal, 100 = perfect signal. [%] (type:uint8_t)
  22273. """
  22274. return MAVLink_distance_sensor_message(time_boot_ms, min_distance, max_distance, current_distance, type, id, orientation, covariance, horizontal_fov, vertical_fov, quaternion, signal_quality)
  22275. def distance_sensor_send(self, time_boot_ms: int, min_distance: int, max_distance: int, current_distance: int, type: int, id: int, orientation: int, covariance: int, horizontal_fov: float = 0, vertical_fov: float = 0, quaternion: Sequence[float] = (0, 0, 0, 0), signal_quality: int = 0, force_mavlink1: bool = False) -> None:
  22276. """
  22277. Distance sensor information for an onboard rangefinder.
  22278. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  22279. min_distance : Minimum distance the sensor can measure [cm] (type:uint16_t)
  22280. max_distance : Maximum distance the sensor can measure [cm] (type:uint16_t)
  22281. current_distance : Current distance reading [cm] (type:uint16_t)
  22282. type : Type of distance sensor. (type:uint8_t, values:MAV_DISTANCE_SENSOR)
  22283. id : Onboard ID of the sensor (type:uint8_t)
  22284. orientation : Direction the sensor faces. downward-facing: ROTATION_PITCH_270, upward-facing: ROTATION_PITCH_90, backward-facing: ROTATION_PITCH_180, forward-facing: ROTATION_NONE, left-facing: ROTATION_YAW_90, right-facing: ROTATION_YAW_270 (type:uint8_t, values:MAV_SENSOR_ORIENTATION)
  22285. covariance : Measurement variance. Max standard deviation is 6cm. UINT8_MAX if unknown. [cm^2] (type:uint8_t)
  22286. horizontal_fov : Horizontal Field of View (angle) where the distance measurement is valid and the field of view is known. Otherwise this is set to 0. [rad] (type:float)
  22287. vertical_fov : Vertical Field of View (angle) where the distance measurement is valid and the field of view is known. Otherwise this is set to 0. [rad] (type:float)
  22288. quaternion : Quaternion of the sensor orientation in vehicle body frame (w, x, y, z order, zero-rotation is 1, 0, 0, 0). Zero-rotation is along the vehicle body x-axis. This field is required if the orientation is set to MAV_SENSOR_ROTATION_CUSTOM. Set it to 0 if invalid." (type:float)
  22289. signal_quality : Signal quality of the sensor. Specific to each sensor type, representing the relation of the signal strength with the target reflectivity, distance, size or aspect, but normalised as a percentage. 0 = unknown/unset signal quality, 1 = invalid signal, 100 = perfect signal. [%] (type:uint8_t)
  22290. """
  22291. self.send(self.distance_sensor_encode(time_boot_ms, min_distance, max_distance, current_distance, type, id, orientation, covariance, horizontal_fov, vertical_fov, quaternion, signal_quality), force_mavlink1=force_mavlink1)
  22292. def terrain_request_encode(self, lat: int, lon: int, grid_spacing: int, mask: int) -> MAVLink_terrain_request_message:
  22293. """
  22294. Request for terrain data and terrain status. See terrain protocol
  22295. docs: https://mavlink.io/en/services/terrain.html
  22296. lat : Latitude of SW corner of first grid [degE7] (type:int32_t)
  22297. lon : Longitude of SW corner of first grid [degE7] (type:int32_t)
  22298. grid_spacing : Grid spacing [m] (type:uint16_t)
  22299. mask : Bitmask of requested 4x4 grids (row major 8x7 array of grids, 56 bits) (type:uint64_t)
  22300. """
  22301. return MAVLink_terrain_request_message(lat, lon, grid_spacing, mask)
  22302. def terrain_request_send(self, lat: int, lon: int, grid_spacing: int, mask: int, force_mavlink1: bool = False) -> None:
  22303. """
  22304. Request for terrain data and terrain status. See terrain protocol
  22305. docs: https://mavlink.io/en/services/terrain.html
  22306. lat : Latitude of SW corner of first grid [degE7] (type:int32_t)
  22307. lon : Longitude of SW corner of first grid [degE7] (type:int32_t)
  22308. grid_spacing : Grid spacing [m] (type:uint16_t)
  22309. mask : Bitmask of requested 4x4 grids (row major 8x7 array of grids, 56 bits) (type:uint64_t)
  22310. """
  22311. self.send(self.terrain_request_encode(lat, lon, grid_spacing, mask), force_mavlink1=force_mavlink1)
  22312. def terrain_data_encode(self, lat: int, lon: int, grid_spacing: int, gridbit: int, data: Sequence[int]) -> MAVLink_terrain_data_message:
  22313. """
  22314. Terrain data sent from GCS. The lat/lon and grid_spacing must be the
  22315. same as a lat/lon from a TERRAIN_REQUEST. See terrain protocol
  22316. docs: https://mavlink.io/en/services/terrain.html
  22317. lat : Latitude of SW corner of first grid [degE7] (type:int32_t)
  22318. lon : Longitude of SW corner of first grid [degE7] (type:int32_t)
  22319. grid_spacing : Grid spacing [m] (type:uint16_t)
  22320. gridbit : bit within the terrain request mask (type:uint8_t)
  22321. data : Terrain data MSL [m] (type:int16_t)
  22322. """
  22323. return MAVLink_terrain_data_message(lat, lon, grid_spacing, gridbit, data)
  22324. def terrain_data_send(self, lat: int, lon: int, grid_spacing: int, gridbit: int, data: Sequence[int], force_mavlink1: bool = False) -> None:
  22325. """
  22326. Terrain data sent from GCS. The lat/lon and grid_spacing must be the
  22327. same as a lat/lon from a TERRAIN_REQUEST. See terrain protocol
  22328. docs: https://mavlink.io/en/services/terrain.html
  22329. lat : Latitude of SW corner of first grid [degE7] (type:int32_t)
  22330. lon : Longitude of SW corner of first grid [degE7] (type:int32_t)
  22331. grid_spacing : Grid spacing [m] (type:uint16_t)
  22332. gridbit : bit within the terrain request mask (type:uint8_t)
  22333. data : Terrain data MSL [m] (type:int16_t)
  22334. """
  22335. self.send(self.terrain_data_encode(lat, lon, grid_spacing, gridbit, data), force_mavlink1=force_mavlink1)
  22336. def terrain_check_encode(self, lat: int, lon: int) -> MAVLink_terrain_check_message:
  22337. """
  22338. Request that the vehicle report terrain height at the given location
  22339. (expected response is a TERRAIN_REPORT). Used by GCS to check
  22340. if vehicle has all terrain data needed for a mission.
  22341. lat : Latitude [degE7] (type:int32_t)
  22342. lon : Longitude [degE7] (type:int32_t)
  22343. """
  22344. return MAVLink_terrain_check_message(lat, lon)
  22345. def terrain_check_send(self, lat: int, lon: int, force_mavlink1: bool = False) -> None:
  22346. """
  22347. Request that the vehicle report terrain height at the given location
  22348. (expected response is a TERRAIN_REPORT). Used by GCS to check
  22349. if vehicle has all terrain data needed for a mission.
  22350. lat : Latitude [degE7] (type:int32_t)
  22351. lon : Longitude [degE7] (type:int32_t)
  22352. """
  22353. self.send(self.terrain_check_encode(lat, lon), force_mavlink1=force_mavlink1)
  22354. def terrain_report_encode(self, lat: int, lon: int, spacing: int, terrain_height: float, current_height: float, pending: int, loaded: int) -> MAVLink_terrain_report_message:
  22355. """
  22356. Streamed from drone to report progress of terrain map download
  22357. (initiated by TERRAIN_REQUEST), or sent as a response to a
  22358. TERRAIN_CHECK request. See terrain protocol docs:
  22359. https://mavlink.io/en/services/terrain.html
  22360. lat : Latitude [degE7] (type:int32_t)
  22361. lon : Longitude [degE7] (type:int32_t)
  22362. spacing : grid spacing (zero if terrain at this location unavailable) (type:uint16_t)
  22363. terrain_height : Terrain height MSL [m] (type:float)
  22364. current_height : Current vehicle height above lat/lon terrain height [m] (type:float)
  22365. pending : Number of 4x4 terrain blocks waiting to be received or read from disk (type:uint16_t)
  22366. loaded : Number of 4x4 terrain blocks in memory (type:uint16_t)
  22367. """
  22368. return MAVLink_terrain_report_message(lat, lon, spacing, terrain_height, current_height, pending, loaded)
  22369. def terrain_report_send(self, lat: int, lon: int, spacing: int, terrain_height: float, current_height: float, pending: int, loaded: int, force_mavlink1: bool = False) -> None:
  22370. """
  22371. Streamed from drone to report progress of terrain map download
  22372. (initiated by TERRAIN_REQUEST), or sent as a response to a
  22373. TERRAIN_CHECK request. See terrain protocol docs:
  22374. https://mavlink.io/en/services/terrain.html
  22375. lat : Latitude [degE7] (type:int32_t)
  22376. lon : Longitude [degE7] (type:int32_t)
  22377. spacing : grid spacing (zero if terrain at this location unavailable) (type:uint16_t)
  22378. terrain_height : Terrain height MSL [m] (type:float)
  22379. current_height : Current vehicle height above lat/lon terrain height [m] (type:float)
  22380. pending : Number of 4x4 terrain blocks waiting to be received or read from disk (type:uint16_t)
  22381. loaded : Number of 4x4 terrain blocks in memory (type:uint16_t)
  22382. """
  22383. self.send(self.terrain_report_encode(lat, lon, spacing, terrain_height, current_height, pending, loaded), force_mavlink1=force_mavlink1)
  22384. def scaled_pressure2_encode(self, time_boot_ms: int, press_abs: float, press_diff: float, temperature: int, temperature_press_diff: int = 0) -> MAVLink_scaled_pressure2_message:
  22385. """
  22386. Barometer readings for 2nd barometer
  22387. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  22388. press_abs : Absolute pressure [hPa] (type:float)
  22389. press_diff : Differential pressure [hPa] (type:float)
  22390. temperature : Absolute pressure temperature [cdegC] (type:int16_t)
  22391. temperature_press_diff : Differential pressure temperature (0, if not available). Report values of 0 (or 1) as 1 cdegC. [cdegC] (type:int16_t)
  22392. """
  22393. return MAVLink_scaled_pressure2_message(time_boot_ms, press_abs, press_diff, temperature, temperature_press_diff)
  22394. def scaled_pressure2_send(self, time_boot_ms: int, press_abs: float, press_diff: float, temperature: int, temperature_press_diff: int = 0, force_mavlink1: bool = False) -> None:
  22395. """
  22396. Barometer readings for 2nd barometer
  22397. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  22398. press_abs : Absolute pressure [hPa] (type:float)
  22399. press_diff : Differential pressure [hPa] (type:float)
  22400. temperature : Absolute pressure temperature [cdegC] (type:int16_t)
  22401. temperature_press_diff : Differential pressure temperature (0, if not available). Report values of 0 (or 1) as 1 cdegC. [cdegC] (type:int16_t)
  22402. """
  22403. self.send(self.scaled_pressure2_encode(time_boot_ms, press_abs, press_diff, temperature, temperature_press_diff), force_mavlink1=force_mavlink1)
  22404. def att_pos_mocap_encode(self, time_usec: int, q: Sequence[float], x: float, y: float, z: float, covariance: Sequence[float] = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)) -> MAVLink_att_pos_mocap_message:
  22405. """
  22406. Motion capture attitude and position
  22407. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  22408. q : Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0) (type:float)
  22409. x : X position (NED) [m] (type:float)
  22410. y : Y position (NED) [m] (type:float)
  22411. z : Z position (NED) [m] (type:float)
  22412. covariance : Row-major representation of a pose 6x6 cross-covariance matrix upper right triangle (states: x, y, z, roll, pitch, yaw; first six entries are the first ROW, next five entries are the second ROW, etc.). If unknown, assign NaN value to first element in the array. (type:float)
  22413. """
  22414. return MAVLink_att_pos_mocap_message(time_usec, q, x, y, z, covariance)
  22415. def att_pos_mocap_send(self, time_usec: int, q: Sequence[float], x: float, y: float, z: float, covariance: Sequence[float] = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), force_mavlink1: bool = False) -> None:
  22416. """
  22417. Motion capture attitude and position
  22418. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  22419. q : Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0) (type:float)
  22420. x : X position (NED) [m] (type:float)
  22421. y : Y position (NED) [m] (type:float)
  22422. z : Z position (NED) [m] (type:float)
  22423. covariance : Row-major representation of a pose 6x6 cross-covariance matrix upper right triangle (states: x, y, z, roll, pitch, yaw; first six entries are the first ROW, next five entries are the second ROW, etc.). If unknown, assign NaN value to first element in the array. (type:float)
  22424. """
  22425. self.send(self.att_pos_mocap_encode(time_usec, q, x, y, z, covariance), force_mavlink1=force_mavlink1)
  22426. def set_actuator_control_target_encode(self, time_usec: int, group_mlx: int, target_system: int, target_component: int, controls: Sequence[float]) -> MAVLink_set_actuator_control_target_message:
  22427. """
  22428. Set the vehicle attitude and body angular rates.
  22429. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  22430. group_mlx : Actuator group. The "_mlx" indicates this is a multi-instance message and a MAVLink parser should use this field to difference between instances. (type:uint8_t)
  22431. target_system : System ID (type:uint8_t)
  22432. target_component : Component ID (type:uint8_t)
  22433. controls : Actuator controls. Normed to -1..+1 where 0 is neutral position. Throttle for single rotation direction motors is 0..1, negative range for reverse direction. Standard mapping for attitude controls (group 0): (index 0-7): roll, pitch, yaw, throttle, flaps, spoilers, airbrakes, landing gear. Load a pass-through mixer to repurpose them as generic outputs. (type:float)
  22434. """
  22435. return MAVLink_set_actuator_control_target_message(time_usec, group_mlx, target_system, target_component, controls)
  22436. def set_actuator_control_target_send(self, time_usec: int, group_mlx: int, target_system: int, target_component: int, controls: Sequence[float], force_mavlink1: bool = False) -> None:
  22437. """
  22438. Set the vehicle attitude and body angular rates.
  22439. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  22440. group_mlx : Actuator group. The "_mlx" indicates this is a multi-instance message and a MAVLink parser should use this field to difference between instances. (type:uint8_t)
  22441. target_system : System ID (type:uint8_t)
  22442. target_component : Component ID (type:uint8_t)
  22443. controls : Actuator controls. Normed to -1..+1 where 0 is neutral position. Throttle for single rotation direction motors is 0..1, negative range for reverse direction. Standard mapping for attitude controls (group 0): (index 0-7): roll, pitch, yaw, throttle, flaps, spoilers, airbrakes, landing gear. Load a pass-through mixer to repurpose them as generic outputs. (type:float)
  22444. """
  22445. self.send(self.set_actuator_control_target_encode(time_usec, group_mlx, target_system, target_component, controls), force_mavlink1=force_mavlink1)
  22446. def actuator_control_target_encode(self, time_usec: int, group_mlx: int, controls: Sequence[float]) -> MAVLink_actuator_control_target_message:
  22447. """
  22448. Set the vehicle attitude and body angular rates.
  22449. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  22450. group_mlx : Actuator group. The "_mlx" indicates this is a multi-instance message and a MAVLink parser should use this field to difference between instances. (type:uint8_t)
  22451. controls : Actuator controls. Normed to -1..+1 where 0 is neutral position. Throttle for single rotation direction motors is 0..1, negative range for reverse direction. Standard mapping for attitude controls (group 0): (index 0-7): roll, pitch, yaw, throttle, flaps, spoilers, airbrakes, landing gear. Load a pass-through mixer to repurpose them as generic outputs. (type:float)
  22452. """
  22453. return MAVLink_actuator_control_target_message(time_usec, group_mlx, controls)
  22454. def actuator_control_target_send(self, time_usec: int, group_mlx: int, controls: Sequence[float], force_mavlink1: bool = False) -> None:
  22455. """
  22456. Set the vehicle attitude and body angular rates.
  22457. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  22458. group_mlx : Actuator group. The "_mlx" indicates this is a multi-instance message and a MAVLink parser should use this field to difference between instances. (type:uint8_t)
  22459. controls : Actuator controls. Normed to -1..+1 where 0 is neutral position. Throttle for single rotation direction motors is 0..1, negative range for reverse direction. Standard mapping for attitude controls (group 0): (index 0-7): roll, pitch, yaw, throttle, flaps, spoilers, airbrakes, landing gear. Load a pass-through mixer to repurpose them as generic outputs. (type:float)
  22460. """
  22461. self.send(self.actuator_control_target_encode(time_usec, group_mlx, controls), force_mavlink1=force_mavlink1)
  22462. def altitude_encode(self, time_usec: int, altitude_monotonic: float, altitude_amsl: float, altitude_local: float, altitude_relative: float, altitude_terrain: float, bottom_clearance: float) -> MAVLink_altitude_message:
  22463. """
  22464. The current system altitude.
  22465. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  22466. altitude_monotonic : This altitude measure is initialized on system boot and monotonic (it is never reset, but represents the local altitude change). The only guarantee on this field is that it will never be reset and is consistent within a flight. The recommended value for this field is the uncorrected barometric altitude at boot time. This altitude will also drift and vary between flights. [m] (type:float)
  22467. altitude_amsl : This altitude measure is strictly above mean sea level and might be non-monotonic (it might reset on events like GPS lock or when a new QNH value is set). It should be the altitude to which global altitude waypoints are compared to. Note that it is *not* the GPS altitude, however, most GPS modules already output MSL by default and not the WGS84 altitude. [m] (type:float)
  22468. altitude_local : This is the local altitude in the local coordinate frame. It is not the altitude above home, but in reference to the coordinate origin (0, 0, 0). It is up-positive. [m] (type:float)
  22469. altitude_relative : This is the altitude above the home position. It resets on each change of the current home position. [m] (type:float)
  22470. altitude_terrain : This is the altitude above terrain. It might be fed by a terrain database or an altimeter. Values smaller than -1000 should be interpreted as unknown. [m] (type:float)
  22471. bottom_clearance : This is not the altitude, but the clear space below the system according to the fused clearance estimate. It generally should max out at the maximum range of e.g. the laser altimeter. It is generally a moving target. A negative value indicates no measurement available. [m] (type:float)
  22472. """
  22473. return MAVLink_altitude_message(time_usec, altitude_monotonic, altitude_amsl, altitude_local, altitude_relative, altitude_terrain, bottom_clearance)
  22474. def altitude_send(self, time_usec: int, altitude_monotonic: float, altitude_amsl: float, altitude_local: float, altitude_relative: float, altitude_terrain: float, bottom_clearance: float, force_mavlink1: bool = False) -> None:
  22475. """
  22476. The current system altitude.
  22477. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  22478. altitude_monotonic : This altitude measure is initialized on system boot and monotonic (it is never reset, but represents the local altitude change). The only guarantee on this field is that it will never be reset and is consistent within a flight. The recommended value for this field is the uncorrected barometric altitude at boot time. This altitude will also drift and vary between flights. [m] (type:float)
  22479. altitude_amsl : This altitude measure is strictly above mean sea level and might be non-monotonic (it might reset on events like GPS lock or when a new QNH value is set). It should be the altitude to which global altitude waypoints are compared to. Note that it is *not* the GPS altitude, however, most GPS modules already output MSL by default and not the WGS84 altitude. [m] (type:float)
  22480. altitude_local : This is the local altitude in the local coordinate frame. It is not the altitude above home, but in reference to the coordinate origin (0, 0, 0). It is up-positive. [m] (type:float)
  22481. altitude_relative : This is the altitude above the home position. It resets on each change of the current home position. [m] (type:float)
  22482. altitude_terrain : This is the altitude above terrain. It might be fed by a terrain database or an altimeter. Values smaller than -1000 should be interpreted as unknown. [m] (type:float)
  22483. bottom_clearance : This is not the altitude, but the clear space below the system according to the fused clearance estimate. It generally should max out at the maximum range of e.g. the laser altimeter. It is generally a moving target. A negative value indicates no measurement available. [m] (type:float)
  22484. """
  22485. self.send(self.altitude_encode(time_usec, altitude_monotonic, altitude_amsl, altitude_local, altitude_relative, altitude_terrain, bottom_clearance), force_mavlink1=force_mavlink1)
  22486. def resource_request_encode(self, request_id: int, uri_type: int, uri: Sequence[int], transfer_type: int, storage: Sequence[int]) -> MAVLink_resource_request_message:
  22487. """
  22488. The autopilot is requesting a resource (file, binary, other type of
  22489. data)
  22490. request_id : Request ID. This ID should be re-used when sending back URI contents (type:uint8_t)
  22491. uri_type : The type of requested URI. 0 = a file via URL. 1 = a UAVCAN binary (type:uint8_t)
  22492. uri : The requested unique resource identifier (URI). It is not necessarily a straight domain name (depends on the URI type enum) (type:uint8_t)
  22493. transfer_type : The way the autopilot wants to receive the URI. 0 = MAVLink FTP. 1 = binary stream. (type:uint8_t)
  22494. storage : The storage path the autopilot wants the URI to be stored in. Will only be valid if the transfer_type has a storage associated (e.g. MAVLink FTP). (type:uint8_t)
  22495. """
  22496. return MAVLink_resource_request_message(request_id, uri_type, uri, transfer_type, storage)
  22497. def resource_request_send(self, request_id: int, uri_type: int, uri: Sequence[int], transfer_type: int, storage: Sequence[int], force_mavlink1: bool = False) -> None:
  22498. """
  22499. The autopilot is requesting a resource (file, binary, other type of
  22500. data)
  22501. request_id : Request ID. This ID should be re-used when sending back URI contents (type:uint8_t)
  22502. uri_type : The type of requested URI. 0 = a file via URL. 1 = a UAVCAN binary (type:uint8_t)
  22503. uri : The requested unique resource identifier (URI). It is not necessarily a straight domain name (depends on the URI type enum) (type:uint8_t)
  22504. transfer_type : The way the autopilot wants to receive the URI. 0 = MAVLink FTP. 1 = binary stream. (type:uint8_t)
  22505. storage : The storage path the autopilot wants the URI to be stored in. Will only be valid if the transfer_type has a storage associated (e.g. MAVLink FTP). (type:uint8_t)
  22506. """
  22507. self.send(self.resource_request_encode(request_id, uri_type, uri, transfer_type, storage), force_mavlink1=force_mavlink1)
  22508. def scaled_pressure3_encode(self, time_boot_ms: int, press_abs: float, press_diff: float, temperature: int, temperature_press_diff: int = 0) -> MAVLink_scaled_pressure3_message:
  22509. """
  22510. Barometer readings for 3rd barometer
  22511. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  22512. press_abs : Absolute pressure [hPa] (type:float)
  22513. press_diff : Differential pressure [hPa] (type:float)
  22514. temperature : Absolute pressure temperature [cdegC] (type:int16_t)
  22515. temperature_press_diff : Differential pressure temperature (0, if not available). Report values of 0 (or 1) as 1 cdegC. [cdegC] (type:int16_t)
  22516. """
  22517. return MAVLink_scaled_pressure3_message(time_boot_ms, press_abs, press_diff, temperature, temperature_press_diff)
  22518. def scaled_pressure3_send(self, time_boot_ms: int, press_abs: float, press_diff: float, temperature: int, temperature_press_diff: int = 0, force_mavlink1: bool = False) -> None:
  22519. """
  22520. Barometer readings for 3rd barometer
  22521. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  22522. press_abs : Absolute pressure [hPa] (type:float)
  22523. press_diff : Differential pressure [hPa] (type:float)
  22524. temperature : Absolute pressure temperature [cdegC] (type:int16_t)
  22525. temperature_press_diff : Differential pressure temperature (0, if not available). Report values of 0 (or 1) as 1 cdegC. [cdegC] (type:int16_t)
  22526. """
  22527. self.send(self.scaled_pressure3_encode(time_boot_ms, press_abs, press_diff, temperature, temperature_press_diff), force_mavlink1=force_mavlink1)
  22528. def follow_target_encode(self, timestamp: int, est_capabilities: int, lat: int, lon: int, alt: float, vel: Sequence[float], acc: Sequence[float], attitude_q: Sequence[float], rates: Sequence[float], position_cov: Sequence[float], custom_state: int) -> MAVLink_follow_target_message:
  22529. """
  22530. Current motion information from a designated system
  22531. timestamp : Timestamp (time since system boot). [ms] (type:uint64_t)
  22532. est_capabilities : bit positions for tracker reporting capabilities (POS = 0, VEL = 1, ACCEL = 2, ATT + RATES = 3) (type:uint8_t)
  22533. lat : Latitude (WGS84) [degE7] (type:int32_t)
  22534. lon : Longitude (WGS84) [degE7] (type:int32_t)
  22535. alt : Altitude (MSL) [m] (type:float)
  22536. vel : target velocity (0,0,0) for unknown [m/s] (type:float)
  22537. acc : linear target acceleration (0,0,0) for unknown [m/s/s] (type:float)
  22538. attitude_q : (0 0 0 0 for unknown) (type:float)
  22539. rates : (0 0 0 for unknown) (type:float)
  22540. position_cov : eph epv (type:float)
  22541. custom_state : button states or switches of a tracker device (type:uint64_t)
  22542. """
  22543. return MAVLink_follow_target_message(timestamp, est_capabilities, lat, lon, alt, vel, acc, attitude_q, rates, position_cov, custom_state)
  22544. def follow_target_send(self, timestamp: int, est_capabilities: int, lat: int, lon: int, alt: float, vel: Sequence[float], acc: Sequence[float], attitude_q: Sequence[float], rates: Sequence[float], position_cov: Sequence[float], custom_state: int, force_mavlink1: bool = False) -> None:
  22545. """
  22546. Current motion information from a designated system
  22547. timestamp : Timestamp (time since system boot). [ms] (type:uint64_t)
  22548. est_capabilities : bit positions for tracker reporting capabilities (POS = 0, VEL = 1, ACCEL = 2, ATT + RATES = 3) (type:uint8_t)
  22549. lat : Latitude (WGS84) [degE7] (type:int32_t)
  22550. lon : Longitude (WGS84) [degE7] (type:int32_t)
  22551. alt : Altitude (MSL) [m] (type:float)
  22552. vel : target velocity (0,0,0) for unknown [m/s] (type:float)
  22553. acc : linear target acceleration (0,0,0) for unknown [m/s/s] (type:float)
  22554. attitude_q : (0 0 0 0 for unknown) (type:float)
  22555. rates : (0 0 0 for unknown) (type:float)
  22556. position_cov : eph epv (type:float)
  22557. custom_state : button states or switches of a tracker device (type:uint64_t)
  22558. """
  22559. self.send(self.follow_target_encode(timestamp, est_capabilities, lat, lon, alt, vel, acc, attitude_q, rates, position_cov, custom_state), force_mavlink1=force_mavlink1)
  22560. def control_system_state_encode(self, time_usec: int, x_acc: float, y_acc: float, z_acc: float, x_vel: float, y_vel: float, z_vel: float, x_pos: float, y_pos: float, z_pos: float, airspeed: float, vel_variance: Sequence[float], pos_variance: Sequence[float], q: Sequence[float], roll_rate: float, pitch_rate: float, yaw_rate: float) -> MAVLink_control_system_state_message:
  22561. """
  22562. The smoothed, monotonic system state used to feed the control loops of
  22563. the system.
  22564. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  22565. x_acc : X acceleration in body frame [m/s/s] (type:float)
  22566. y_acc : Y acceleration in body frame [m/s/s] (type:float)
  22567. z_acc : Z acceleration in body frame [m/s/s] (type:float)
  22568. x_vel : X velocity in body frame [m/s] (type:float)
  22569. y_vel : Y velocity in body frame [m/s] (type:float)
  22570. z_vel : Z velocity in body frame [m/s] (type:float)
  22571. x_pos : X position in local frame [m] (type:float)
  22572. y_pos : Y position in local frame [m] (type:float)
  22573. z_pos : Z position in local frame [m] (type:float)
  22574. airspeed : Airspeed, set to -1 if unknown [m/s] (type:float)
  22575. vel_variance : Variance of body velocity estimate (type:float)
  22576. pos_variance : Variance in local position (type:float)
  22577. q : The attitude, represented as Quaternion (type:float)
  22578. roll_rate : Angular rate in roll axis [rad/s] (type:float)
  22579. pitch_rate : Angular rate in pitch axis [rad/s] (type:float)
  22580. yaw_rate : Angular rate in yaw axis [rad/s] (type:float)
  22581. """
  22582. return MAVLink_control_system_state_message(time_usec, x_acc, y_acc, z_acc, x_vel, y_vel, z_vel, x_pos, y_pos, z_pos, airspeed, vel_variance, pos_variance, q, roll_rate, pitch_rate, yaw_rate)
  22583. def control_system_state_send(self, time_usec: int, x_acc: float, y_acc: float, z_acc: float, x_vel: float, y_vel: float, z_vel: float, x_pos: float, y_pos: float, z_pos: float, airspeed: float, vel_variance: Sequence[float], pos_variance: Sequence[float], q: Sequence[float], roll_rate: float, pitch_rate: float, yaw_rate: float, force_mavlink1: bool = False) -> None:
  22584. """
  22585. The smoothed, monotonic system state used to feed the control loops of
  22586. the system.
  22587. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  22588. x_acc : X acceleration in body frame [m/s/s] (type:float)
  22589. y_acc : Y acceleration in body frame [m/s/s] (type:float)
  22590. z_acc : Z acceleration in body frame [m/s/s] (type:float)
  22591. x_vel : X velocity in body frame [m/s] (type:float)
  22592. y_vel : Y velocity in body frame [m/s] (type:float)
  22593. z_vel : Z velocity in body frame [m/s] (type:float)
  22594. x_pos : X position in local frame [m] (type:float)
  22595. y_pos : Y position in local frame [m] (type:float)
  22596. z_pos : Z position in local frame [m] (type:float)
  22597. airspeed : Airspeed, set to -1 if unknown [m/s] (type:float)
  22598. vel_variance : Variance of body velocity estimate (type:float)
  22599. pos_variance : Variance in local position (type:float)
  22600. q : The attitude, represented as Quaternion (type:float)
  22601. roll_rate : Angular rate in roll axis [rad/s] (type:float)
  22602. pitch_rate : Angular rate in pitch axis [rad/s] (type:float)
  22603. yaw_rate : Angular rate in yaw axis [rad/s] (type:float)
  22604. """
  22605. self.send(self.control_system_state_encode(time_usec, x_acc, y_acc, z_acc, x_vel, y_vel, z_vel, x_pos, y_pos, z_pos, airspeed, vel_variance, pos_variance, q, roll_rate, pitch_rate, yaw_rate), force_mavlink1=force_mavlink1)
  22606. def battery_status_encode(self, id: int, battery_function: int, type: int, temperature: int, voltages: Sequence[int], current_battery: int, current_consumed: int, energy_consumed: int, battery_remaining: int, time_remaining: int = 0, charge_state: int = 0, voltages_ext: Sequence[int] = (0, 0, 0, 0), mode: int = 0, fault_bitmask: int = 0) -> MAVLink_battery_status_message:
  22607. """
  22608. Battery information. Updates GCS with flight controller battery
  22609. status. Smart batteries also use this message, but may
  22610. additionally send BATTERY_INFO.
  22611. id : Battery ID (type:uint8_t)
  22612. battery_function : Function of the battery (type:uint8_t, values:MAV_BATTERY_FUNCTION)
  22613. type : Type (chemistry) of the battery (type:uint8_t, values:MAV_BATTERY_TYPE)
  22614. temperature : Temperature of the battery. INT16_MAX for unknown temperature. [cdegC] (type:int16_t)
  22615. voltages : Battery voltage of cells 1 to 10 (see voltages_ext for cells 11-14). Cells in this field above the valid cell count for this battery should have the UINT16_MAX value. If individual cell voltages are unknown or not measured for this battery, then the overall battery voltage should be filled in cell 0, with all others set to UINT16_MAX. If the voltage of the battery is greater than (UINT16_MAX - 1), then cell 0 should be set to (UINT16_MAX - 1), and cell 1 to the remaining voltage. This can be extended to multiple cells if the total voltage is greater than 2 * (UINT16_MAX - 1). [mV] (type:uint16_t)
  22616. current_battery : Battery current, -1: autopilot does not measure the current [cA] (type:int16_t)
  22617. current_consumed : Consumed charge, -1: autopilot does not provide consumption estimate [mAh] (type:int32_t)
  22618. energy_consumed : Consumed energy, -1: autopilot does not provide energy consumption estimate [hJ] (type:int32_t)
  22619. battery_remaining : Remaining battery energy. Values: [0-100], -1: autopilot does not estimate the remaining battery. [%] (type:int8_t)
  22620. time_remaining : Remaining battery time, 0: autopilot does not provide remaining battery time estimate [s] (type:int32_t)
  22621. charge_state : State for extent of discharge, provided by autopilot for warning or external reactions (type:uint8_t, values:MAV_BATTERY_CHARGE_STATE)
  22622. voltages_ext : Battery voltages for cells 11 to 14. Cells above the valid cell count for this battery should have a value of 0, where zero indicates not supported (note, this is different than for the voltages field and allows empty byte truncation). If the measured value is 0 then 1 should be sent instead. [mV] (type:uint16_t)
  22623. mode : Battery mode. Default (0) is that battery mode reporting is not supported or battery is in normal-use mode. (type:uint8_t, values:MAV_BATTERY_MODE)
  22624. fault_bitmask : Fault/health indications. These should be set when charge_state is MAV_BATTERY_CHARGE_STATE_FAILED or MAV_BATTERY_CHARGE_STATE_UNHEALTHY (if not, fault reporting is not supported). (type:uint32_t, values:MAV_BATTERY_FAULT)
  22625. """
  22626. return MAVLink_battery_status_message(id, battery_function, type, temperature, voltages, current_battery, current_consumed, energy_consumed, battery_remaining, time_remaining, charge_state, voltages_ext, mode, fault_bitmask)
  22627. def battery_status_send(self, id: int, battery_function: int, type: int, temperature: int, voltages: Sequence[int], current_battery: int, current_consumed: int, energy_consumed: int, battery_remaining: int, time_remaining: int = 0, charge_state: int = 0, voltages_ext: Sequence[int] = (0, 0, 0, 0), mode: int = 0, fault_bitmask: int = 0, force_mavlink1: bool = False) -> None:
  22628. """
  22629. Battery information. Updates GCS with flight controller battery
  22630. status. Smart batteries also use this message, but may
  22631. additionally send BATTERY_INFO.
  22632. id : Battery ID (type:uint8_t)
  22633. battery_function : Function of the battery (type:uint8_t, values:MAV_BATTERY_FUNCTION)
  22634. type : Type (chemistry) of the battery (type:uint8_t, values:MAV_BATTERY_TYPE)
  22635. temperature : Temperature of the battery. INT16_MAX for unknown temperature. [cdegC] (type:int16_t)
  22636. voltages : Battery voltage of cells 1 to 10 (see voltages_ext for cells 11-14). Cells in this field above the valid cell count for this battery should have the UINT16_MAX value. If individual cell voltages are unknown or not measured for this battery, then the overall battery voltage should be filled in cell 0, with all others set to UINT16_MAX. If the voltage of the battery is greater than (UINT16_MAX - 1), then cell 0 should be set to (UINT16_MAX - 1), and cell 1 to the remaining voltage. This can be extended to multiple cells if the total voltage is greater than 2 * (UINT16_MAX - 1). [mV] (type:uint16_t)
  22637. current_battery : Battery current, -1: autopilot does not measure the current [cA] (type:int16_t)
  22638. current_consumed : Consumed charge, -1: autopilot does not provide consumption estimate [mAh] (type:int32_t)
  22639. energy_consumed : Consumed energy, -1: autopilot does not provide energy consumption estimate [hJ] (type:int32_t)
  22640. battery_remaining : Remaining battery energy. Values: [0-100], -1: autopilot does not estimate the remaining battery. [%] (type:int8_t)
  22641. time_remaining : Remaining battery time, 0: autopilot does not provide remaining battery time estimate [s] (type:int32_t)
  22642. charge_state : State for extent of discharge, provided by autopilot for warning or external reactions (type:uint8_t, values:MAV_BATTERY_CHARGE_STATE)
  22643. voltages_ext : Battery voltages for cells 11 to 14. Cells above the valid cell count for this battery should have a value of 0, where zero indicates not supported (note, this is different than for the voltages field and allows empty byte truncation). If the measured value is 0 then 1 should be sent instead. [mV] (type:uint16_t)
  22644. mode : Battery mode. Default (0) is that battery mode reporting is not supported or battery is in normal-use mode. (type:uint8_t, values:MAV_BATTERY_MODE)
  22645. fault_bitmask : Fault/health indications. These should be set when charge_state is MAV_BATTERY_CHARGE_STATE_FAILED or MAV_BATTERY_CHARGE_STATE_UNHEALTHY (if not, fault reporting is not supported). (type:uint32_t, values:MAV_BATTERY_FAULT)
  22646. """
  22647. self.send(self.battery_status_encode(id, battery_function, type, temperature, voltages, current_battery, current_consumed, energy_consumed, battery_remaining, time_remaining, charge_state, voltages_ext, mode, fault_bitmask), force_mavlink1=force_mavlink1)
  22648. def autopilot_version_encode(self, capabilities: int, flight_sw_version: int, middleware_sw_version: int, os_sw_version: int, board_version: int, flight_custom_version: Sequence[int], middleware_custom_version: Sequence[int], os_custom_version: Sequence[int], vendor_id: int, product_id: int, uid: int, uid2: Sequence[int] = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)) -> MAVLink_autopilot_version_message:
  22649. """
  22650. Version and capability of autopilot software. This should be emitted
  22651. in response to a request with MAV_CMD_REQUEST_MESSAGE.
  22652. capabilities : Bitmap of capabilities (type:uint64_t, values:MAV_PROTOCOL_CAPABILITY)
  22653. flight_sw_version : Firmware version number (type:uint32_t)
  22654. middleware_sw_version : Middleware version number (type:uint32_t)
  22655. os_sw_version : Operating system version number (type:uint32_t)
  22656. board_version : HW / board version (last 8 bits should be silicon ID, if any). The first 16 bits of this field specify https://github.com/PX4/PX4-Bootloader/blob/master/board_types.txt (type:uint32_t)
  22657. flight_custom_version : Custom version field, commonly the first 8 bytes of the git hash. This is not an unique identifier, but should allow to identify the commit using the main version number even for very large code bases. (type:uint8_t)
  22658. middleware_custom_version : Custom version field, commonly the first 8 bytes of the git hash. This is not an unique identifier, but should allow to identify the commit using the main version number even for very large code bases. (type:uint8_t)
  22659. os_custom_version : Custom version field, commonly the first 8 bytes of the git hash. This is not an unique identifier, but should allow to identify the commit using the main version number even for very large code bases. (type:uint8_t)
  22660. vendor_id : ID of the board vendor (type:uint16_t)
  22661. product_id : ID of the product (type:uint16_t)
  22662. uid : UID if provided by hardware (see uid2) (type:uint64_t)
  22663. uid2 : UID if provided by hardware (supersedes the uid field. If this is non-zero, use this field, otherwise use uid) (type:uint8_t)
  22664. """
  22665. return MAVLink_autopilot_version_message(capabilities, flight_sw_version, middleware_sw_version, os_sw_version, board_version, flight_custom_version, middleware_custom_version, os_custom_version, vendor_id, product_id, uid, uid2)
  22666. def autopilot_version_send(self, capabilities: int, flight_sw_version: int, middleware_sw_version: int, os_sw_version: int, board_version: int, flight_custom_version: Sequence[int], middleware_custom_version: Sequence[int], os_custom_version: Sequence[int], vendor_id: int, product_id: int, uid: int, uid2: Sequence[int] = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), force_mavlink1: bool = False) -> None:
  22667. """
  22668. Version and capability of autopilot software. This should be emitted
  22669. in response to a request with MAV_CMD_REQUEST_MESSAGE.
  22670. capabilities : Bitmap of capabilities (type:uint64_t, values:MAV_PROTOCOL_CAPABILITY)
  22671. flight_sw_version : Firmware version number (type:uint32_t)
  22672. middleware_sw_version : Middleware version number (type:uint32_t)
  22673. os_sw_version : Operating system version number (type:uint32_t)
  22674. board_version : HW / board version (last 8 bits should be silicon ID, if any). The first 16 bits of this field specify https://github.com/PX4/PX4-Bootloader/blob/master/board_types.txt (type:uint32_t)
  22675. flight_custom_version : Custom version field, commonly the first 8 bytes of the git hash. This is not an unique identifier, but should allow to identify the commit using the main version number even for very large code bases. (type:uint8_t)
  22676. middleware_custom_version : Custom version field, commonly the first 8 bytes of the git hash. This is not an unique identifier, but should allow to identify the commit using the main version number even for very large code bases. (type:uint8_t)
  22677. os_custom_version : Custom version field, commonly the first 8 bytes of the git hash. This is not an unique identifier, but should allow to identify the commit using the main version number even for very large code bases. (type:uint8_t)
  22678. vendor_id : ID of the board vendor (type:uint16_t)
  22679. product_id : ID of the product (type:uint16_t)
  22680. uid : UID if provided by hardware (see uid2) (type:uint64_t)
  22681. uid2 : UID if provided by hardware (supersedes the uid field. If this is non-zero, use this field, otherwise use uid) (type:uint8_t)
  22682. """
  22683. self.send(self.autopilot_version_encode(capabilities, flight_sw_version, middleware_sw_version, os_sw_version, board_version, flight_custom_version, middleware_custom_version, os_custom_version, vendor_id, product_id, uid, uid2), force_mavlink1=force_mavlink1)
  22684. def landing_target_encode(self, time_usec: int, target_num: int, frame: int, angle_x: float, angle_y: float, distance: float, size_x: float, size_y: float, x: float = 0, y: float = 0, z: float = 0, q: Sequence[float] = (0, 0, 0, 0), type: int = 0, position_valid: int = 0) -> MAVLink_landing_target_message:
  22685. """
  22686. The location of a landing target. See:
  22687. https://mavlink.io/en/services/landing_target.html
  22688. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  22689. target_num : The ID of the target if multiple targets are present (type:uint8_t)
  22690. frame : Coordinate frame used for following fields. (type:uint8_t, values:MAV_FRAME)
  22691. angle_x : X-axis angular offset of the target from the center of the image [rad] (type:float)
  22692. angle_y : Y-axis angular offset of the target from the center of the image [rad] (type:float)
  22693. distance : Distance to the target from the vehicle [m] (type:float)
  22694. size_x : Size of target along x-axis [rad] (type:float)
  22695. size_y : Size of target along y-axis [rad] (type:float)
  22696. x : X Position of the landing target in MAV_FRAME [m] (type:float)
  22697. y : Y Position of the landing target in MAV_FRAME [m] (type:float)
  22698. z : Z Position of the landing target in MAV_FRAME [m] (type:float)
  22699. q : Quaternion of landing target orientation (w, x, y, z order, zero-rotation is 1, 0, 0, 0) (type:float)
  22700. type : Type of landing target (type:uint8_t, values:LANDING_TARGET_TYPE)
  22701. position_valid : Boolean indicating whether the position fields (x, y, z, q, type) contain valid target position information (valid: 1, invalid: 0). Default is 0 (invalid). (type:uint8_t)
  22702. """
  22703. return MAVLink_landing_target_message(time_usec, target_num, frame, angle_x, angle_y, distance, size_x, size_y, x, y, z, q, type, position_valid)
  22704. def landing_target_send(self, time_usec: int, target_num: int, frame: int, angle_x: float, angle_y: float, distance: float, size_x: float, size_y: float, x: float = 0, y: float = 0, z: float = 0, q: Sequence[float] = (0, 0, 0, 0), type: int = 0, position_valid: int = 0, force_mavlink1: bool = False) -> None:
  22705. """
  22706. The location of a landing target. See:
  22707. https://mavlink.io/en/services/landing_target.html
  22708. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  22709. target_num : The ID of the target if multiple targets are present (type:uint8_t)
  22710. frame : Coordinate frame used for following fields. (type:uint8_t, values:MAV_FRAME)
  22711. angle_x : X-axis angular offset of the target from the center of the image [rad] (type:float)
  22712. angle_y : Y-axis angular offset of the target from the center of the image [rad] (type:float)
  22713. distance : Distance to the target from the vehicle [m] (type:float)
  22714. size_x : Size of target along x-axis [rad] (type:float)
  22715. size_y : Size of target along y-axis [rad] (type:float)
  22716. x : X Position of the landing target in MAV_FRAME [m] (type:float)
  22717. y : Y Position of the landing target in MAV_FRAME [m] (type:float)
  22718. z : Z Position of the landing target in MAV_FRAME [m] (type:float)
  22719. q : Quaternion of landing target orientation (w, x, y, z order, zero-rotation is 1, 0, 0, 0) (type:float)
  22720. type : Type of landing target (type:uint8_t, values:LANDING_TARGET_TYPE)
  22721. position_valid : Boolean indicating whether the position fields (x, y, z, q, type) contain valid target position information (valid: 1, invalid: 0). Default is 0 (invalid). (type:uint8_t)
  22722. """
  22723. self.send(self.landing_target_encode(time_usec, target_num, frame, angle_x, angle_y, distance, size_x, size_y, x, y, z, q, type, position_valid), force_mavlink1=force_mavlink1)
  22724. def fence_status_encode(self, breach_status: int, breach_count: int, breach_type: int, breach_time: int, breach_mitigation: int = 0) -> MAVLink_fence_status_message:
  22725. """
  22726. Status of geo-fencing. Sent in extended status stream when fencing
  22727. enabled.
  22728. breach_status : Breach status (0 if currently inside fence, 1 if outside). (type:uint8_t)
  22729. breach_count : Number of fence breaches. (type:uint16_t)
  22730. breach_type : Last breach type. (type:uint8_t, values:FENCE_BREACH)
  22731. breach_time : Time (since boot) of last breach. [ms] (type:uint32_t)
  22732. breach_mitigation : Active action to prevent fence breach (type:uint8_t, values:FENCE_MITIGATE)
  22733. """
  22734. return MAVLink_fence_status_message(breach_status, breach_count, breach_type, breach_time, breach_mitigation)
  22735. def fence_status_send(self, breach_status: int, breach_count: int, breach_type: int, breach_time: int, breach_mitigation: int = 0, force_mavlink1: bool = False) -> None:
  22736. """
  22737. Status of geo-fencing. Sent in extended status stream when fencing
  22738. enabled.
  22739. breach_status : Breach status (0 if currently inside fence, 1 if outside). (type:uint8_t)
  22740. breach_count : Number of fence breaches. (type:uint16_t)
  22741. breach_type : Last breach type. (type:uint8_t, values:FENCE_BREACH)
  22742. breach_time : Time (since boot) of last breach. [ms] (type:uint32_t)
  22743. breach_mitigation : Active action to prevent fence breach (type:uint8_t, values:FENCE_MITIGATE)
  22744. """
  22745. self.send(self.fence_status_encode(breach_status, breach_count, breach_type, breach_time, breach_mitigation), force_mavlink1=force_mavlink1)
  22746. def mag_cal_report_encode(self, compass_id: int, cal_mask: int, cal_status: int, autosaved: int, fitness: float, ofs_x: float, ofs_y: float, ofs_z: float, diag_x: float, diag_y: float, diag_z: float, offdiag_x: float, offdiag_y: float, offdiag_z: float, orientation_confidence: float = 0, old_orientation: int = 0, new_orientation: int = 0, scale_factor: float = 0) -> MAVLink_mag_cal_report_message:
  22747. """
  22748. Reports results of completed compass calibration. Sent until
  22749. MAG_CAL_ACK received.
  22750. compass_id : Compass being calibrated. (type:uint8_t)
  22751. cal_mask : Bitmask of compasses being calibrated. (type:uint8_t)
  22752. cal_status : Calibration Status. (type:uint8_t, values:MAG_CAL_STATUS)
  22753. autosaved : 0=requires a MAV_CMD_DO_ACCEPT_MAG_CAL, 1=saved to parameters. (type:uint8_t)
  22754. fitness : RMS milligauss residuals. [mgauss] (type:float)
  22755. ofs_x : X offset. (type:float)
  22756. ofs_y : Y offset. (type:float)
  22757. ofs_z : Z offset. (type:float)
  22758. diag_x : X diagonal (matrix 11). (type:float)
  22759. diag_y : Y diagonal (matrix 22). (type:float)
  22760. diag_z : Z diagonal (matrix 33). (type:float)
  22761. offdiag_x : X off-diagonal (matrix 12 and 21). (type:float)
  22762. offdiag_y : Y off-diagonal (matrix 13 and 31). (type:float)
  22763. offdiag_z : Z off-diagonal (matrix 32 and 23). (type:float)
  22764. orientation_confidence : Confidence in orientation (higher is better). (type:float)
  22765. old_orientation : orientation before calibration. (type:uint8_t, values:MAV_SENSOR_ORIENTATION)
  22766. new_orientation : orientation after calibration. (type:uint8_t, values:MAV_SENSOR_ORIENTATION)
  22767. scale_factor : field radius correction factor (type:float)
  22768. """
  22769. return MAVLink_mag_cal_report_message(compass_id, cal_mask, cal_status, autosaved, fitness, ofs_x, ofs_y, ofs_z, diag_x, diag_y, diag_z, offdiag_x, offdiag_y, offdiag_z, orientation_confidence, old_orientation, new_orientation, scale_factor)
  22770. def mag_cal_report_send(self, compass_id: int, cal_mask: int, cal_status: int, autosaved: int, fitness: float, ofs_x: float, ofs_y: float, ofs_z: float, diag_x: float, diag_y: float, diag_z: float, offdiag_x: float, offdiag_y: float, offdiag_z: float, orientation_confidence: float = 0, old_orientation: int = 0, new_orientation: int = 0, scale_factor: float = 0, force_mavlink1: bool = False) -> None:
  22771. """
  22772. Reports results of completed compass calibration. Sent until
  22773. MAG_CAL_ACK received.
  22774. compass_id : Compass being calibrated. (type:uint8_t)
  22775. cal_mask : Bitmask of compasses being calibrated. (type:uint8_t)
  22776. cal_status : Calibration Status. (type:uint8_t, values:MAG_CAL_STATUS)
  22777. autosaved : 0=requires a MAV_CMD_DO_ACCEPT_MAG_CAL, 1=saved to parameters. (type:uint8_t)
  22778. fitness : RMS milligauss residuals. [mgauss] (type:float)
  22779. ofs_x : X offset. (type:float)
  22780. ofs_y : Y offset. (type:float)
  22781. ofs_z : Z offset. (type:float)
  22782. diag_x : X diagonal (matrix 11). (type:float)
  22783. diag_y : Y diagonal (matrix 22). (type:float)
  22784. diag_z : Z diagonal (matrix 33). (type:float)
  22785. offdiag_x : X off-diagonal (matrix 12 and 21). (type:float)
  22786. offdiag_y : Y off-diagonal (matrix 13 and 31). (type:float)
  22787. offdiag_z : Z off-diagonal (matrix 32 and 23). (type:float)
  22788. orientation_confidence : Confidence in orientation (higher is better). (type:float)
  22789. old_orientation : orientation before calibration. (type:uint8_t, values:MAV_SENSOR_ORIENTATION)
  22790. new_orientation : orientation after calibration. (type:uint8_t, values:MAV_SENSOR_ORIENTATION)
  22791. scale_factor : field radius correction factor (type:float)
  22792. """
  22793. self.send(self.mag_cal_report_encode(compass_id, cal_mask, cal_status, autosaved, fitness, ofs_x, ofs_y, ofs_z, diag_x, diag_y, diag_z, offdiag_x, offdiag_y, offdiag_z, orientation_confidence, old_orientation, new_orientation, scale_factor), force_mavlink1=force_mavlink1)
  22794. def efi_status_encode(self, health: int, ecu_index: float, rpm: float, fuel_consumed: float, fuel_flow: float, engine_load: float, throttle_position: float, spark_dwell_time: float, barometric_pressure: float, intake_manifold_pressure: float, intake_manifold_temperature: float, cylinder_head_temperature: float, ignition_timing: float, injection_time: float, exhaust_gas_temperature: float, throttle_out: float, pt_compensation: float, ignition_voltage: float = 0, fuel_pressure: float = 0) -> MAVLink_efi_status_message:
  22795. """
  22796. EFI status output
  22797. health : EFI health status (type:uint8_t)
  22798. ecu_index : ECU index (type:float)
  22799. rpm : RPM (type:float)
  22800. fuel_consumed : Fuel consumed [cm^3] (type:float)
  22801. fuel_flow : Fuel flow rate [cm^3/min] (type:float)
  22802. engine_load : Engine load [%] (type:float)
  22803. throttle_position : Throttle position [%] (type:float)
  22804. spark_dwell_time : Spark dwell time [ms] (type:float)
  22805. barometric_pressure : Barometric pressure [kPa] (type:float)
  22806. intake_manifold_pressure : Intake manifold pressure( [kPa] (type:float)
  22807. intake_manifold_temperature : Intake manifold temperature [degC] (type:float)
  22808. cylinder_head_temperature : Cylinder head temperature [degC] (type:float)
  22809. ignition_timing : Ignition timing (Crank angle degrees) [deg] (type:float)
  22810. injection_time : Injection time [ms] (type:float)
  22811. exhaust_gas_temperature : Exhaust gas temperature [degC] (type:float)
  22812. throttle_out : Output throttle [%] (type:float)
  22813. pt_compensation : Pressure/temperature compensation (type:float)
  22814. ignition_voltage : Supply voltage to EFI sparking system. Zero in this value means "unknown", so if the supply voltage really is zero volts use 0.0001 instead. [V] (type:float)
  22815. fuel_pressure : Fuel pressure. Zero in this value means "unknown", so if the fuel pressure really is zero kPa use 0.0001 instead. [kPa] (type:float)
  22816. """
  22817. return MAVLink_efi_status_message(health, ecu_index, rpm, fuel_consumed, fuel_flow, engine_load, throttle_position, spark_dwell_time, barometric_pressure, intake_manifold_pressure, intake_manifold_temperature, cylinder_head_temperature, ignition_timing, injection_time, exhaust_gas_temperature, throttle_out, pt_compensation, ignition_voltage, fuel_pressure)
  22818. def efi_status_send(self, health: int, ecu_index: float, rpm: float, fuel_consumed: float, fuel_flow: float, engine_load: float, throttle_position: float, spark_dwell_time: float, barometric_pressure: float, intake_manifold_pressure: float, intake_manifold_temperature: float, cylinder_head_temperature: float, ignition_timing: float, injection_time: float, exhaust_gas_temperature: float, throttle_out: float, pt_compensation: float, ignition_voltage: float = 0, fuel_pressure: float = 0, force_mavlink1: bool = False) -> None:
  22819. """
  22820. EFI status output
  22821. health : EFI health status (type:uint8_t)
  22822. ecu_index : ECU index (type:float)
  22823. rpm : RPM (type:float)
  22824. fuel_consumed : Fuel consumed [cm^3] (type:float)
  22825. fuel_flow : Fuel flow rate [cm^3/min] (type:float)
  22826. engine_load : Engine load [%] (type:float)
  22827. throttle_position : Throttle position [%] (type:float)
  22828. spark_dwell_time : Spark dwell time [ms] (type:float)
  22829. barometric_pressure : Barometric pressure [kPa] (type:float)
  22830. intake_manifold_pressure : Intake manifold pressure( [kPa] (type:float)
  22831. intake_manifold_temperature : Intake manifold temperature [degC] (type:float)
  22832. cylinder_head_temperature : Cylinder head temperature [degC] (type:float)
  22833. ignition_timing : Ignition timing (Crank angle degrees) [deg] (type:float)
  22834. injection_time : Injection time [ms] (type:float)
  22835. exhaust_gas_temperature : Exhaust gas temperature [degC] (type:float)
  22836. throttle_out : Output throttle [%] (type:float)
  22837. pt_compensation : Pressure/temperature compensation (type:float)
  22838. ignition_voltage : Supply voltage to EFI sparking system. Zero in this value means "unknown", so if the supply voltage really is zero volts use 0.0001 instead. [V] (type:float)
  22839. fuel_pressure : Fuel pressure. Zero in this value means "unknown", so if the fuel pressure really is zero kPa use 0.0001 instead. [kPa] (type:float)
  22840. """
  22841. self.send(self.efi_status_encode(health, ecu_index, rpm, fuel_consumed, fuel_flow, engine_load, throttle_position, spark_dwell_time, barometric_pressure, intake_manifold_pressure, intake_manifold_temperature, cylinder_head_temperature, ignition_timing, injection_time, exhaust_gas_temperature, throttle_out, pt_compensation, ignition_voltage, fuel_pressure), force_mavlink1=force_mavlink1)
  22842. def estimator_status_encode(self, time_usec: int, flags: int, vel_ratio: float, pos_horiz_ratio: float, pos_vert_ratio: float, mag_ratio: float, hagl_ratio: float, tas_ratio: float, pos_horiz_accuracy: float, pos_vert_accuracy: float) -> MAVLink_estimator_status_message:
  22843. """
  22844. Estimator status message including flags, innovation test ratios and
  22845. estimated accuracies. The flags message is an integer bitmask
  22846. containing information on which EKF outputs are valid. See the
  22847. ESTIMATOR_STATUS_FLAGS enum definition for further
  22848. information. The innovation test ratios show the magnitude of
  22849. the sensor innovation divided by the innovation check
  22850. threshold. Under normal operation the innovation test ratios
  22851. should be below 0.5 with occasional values up to 1.0. Values
  22852. greater than 1.0 should be rare under normal operation and
  22853. indicate that a measurement has been rejected by the filter.
  22854. The user should be notified if an innovation test ratio
  22855. greater than 1.0 is recorded. Notifications for values in the
  22856. range between 0.5 and 1.0 should be optional and controllable
  22857. by the user.
  22858. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  22859. flags : Bitmap indicating which EKF outputs are valid. (type:uint16_t, values:ESTIMATOR_STATUS_FLAGS)
  22860. vel_ratio : Velocity innovation test ratio (type:float)
  22861. pos_horiz_ratio : Horizontal position innovation test ratio (type:float)
  22862. pos_vert_ratio : Vertical position innovation test ratio (type:float)
  22863. mag_ratio : Magnetometer innovation test ratio (type:float)
  22864. hagl_ratio : Height above terrain innovation test ratio (type:float)
  22865. tas_ratio : True airspeed innovation test ratio (type:float)
  22866. pos_horiz_accuracy : Horizontal position 1-STD accuracy relative to the EKF local origin [m] (type:float)
  22867. pos_vert_accuracy : Vertical position 1-STD accuracy relative to the EKF local origin [m] (type:float)
  22868. """
  22869. return MAVLink_estimator_status_message(time_usec, flags, vel_ratio, pos_horiz_ratio, pos_vert_ratio, mag_ratio, hagl_ratio, tas_ratio, pos_horiz_accuracy, pos_vert_accuracy)
  22870. def estimator_status_send(self, time_usec: int, flags: int, vel_ratio: float, pos_horiz_ratio: float, pos_vert_ratio: float, mag_ratio: float, hagl_ratio: float, tas_ratio: float, pos_horiz_accuracy: float, pos_vert_accuracy: float, force_mavlink1: bool = False) -> None:
  22871. """
  22872. Estimator status message including flags, innovation test ratios and
  22873. estimated accuracies. The flags message is an integer bitmask
  22874. containing information on which EKF outputs are valid. See the
  22875. ESTIMATOR_STATUS_FLAGS enum definition for further
  22876. information. The innovation test ratios show the magnitude of
  22877. the sensor innovation divided by the innovation check
  22878. threshold. Under normal operation the innovation test ratios
  22879. should be below 0.5 with occasional values up to 1.0. Values
  22880. greater than 1.0 should be rare under normal operation and
  22881. indicate that a measurement has been rejected by the filter.
  22882. The user should be notified if an innovation test ratio
  22883. greater than 1.0 is recorded. Notifications for values in the
  22884. range between 0.5 and 1.0 should be optional and controllable
  22885. by the user.
  22886. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  22887. flags : Bitmap indicating which EKF outputs are valid. (type:uint16_t, values:ESTIMATOR_STATUS_FLAGS)
  22888. vel_ratio : Velocity innovation test ratio (type:float)
  22889. pos_horiz_ratio : Horizontal position innovation test ratio (type:float)
  22890. pos_vert_ratio : Vertical position innovation test ratio (type:float)
  22891. mag_ratio : Magnetometer innovation test ratio (type:float)
  22892. hagl_ratio : Height above terrain innovation test ratio (type:float)
  22893. tas_ratio : True airspeed innovation test ratio (type:float)
  22894. pos_horiz_accuracy : Horizontal position 1-STD accuracy relative to the EKF local origin [m] (type:float)
  22895. pos_vert_accuracy : Vertical position 1-STD accuracy relative to the EKF local origin [m] (type:float)
  22896. """
  22897. self.send(self.estimator_status_encode(time_usec, flags, vel_ratio, pos_horiz_ratio, pos_vert_ratio, mag_ratio, hagl_ratio, tas_ratio, pos_horiz_accuracy, pos_vert_accuracy), force_mavlink1=force_mavlink1)
  22898. def wind_cov_encode(self, time_usec: int, wind_x: float, wind_y: float, wind_z: float, var_horiz: float, var_vert: float, wind_alt: float, horiz_accuracy: float, vert_accuracy: float) -> MAVLink_wind_cov_message:
  22899. """
  22900. Wind estimate from vehicle. Note that despite the name, this message
  22901. does not actually contain any covariances but instead
  22902. variability and accuracy fields in terms of standard deviation
  22903. (1-STD).
  22904. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  22905. wind_x : Wind in North (NED) direction (NAN if unknown) [m/s] (type:float)
  22906. wind_y : Wind in East (NED) direction (NAN if unknown) [m/s] (type:float)
  22907. wind_z : Wind in down (NED) direction (NAN if unknown) [m/s] (type:float)
  22908. var_horiz : Variability of wind in XY, 1-STD estimated from a 1 Hz lowpassed wind estimate (NAN if unknown) [m/s] (type:float)
  22909. var_vert : Variability of wind in Z, 1-STD estimated from a 1 Hz lowpassed wind estimate (NAN if unknown) [m/s] (type:float)
  22910. wind_alt : Altitude (MSL) that this measurement was taken at (NAN if unknown) [m] (type:float)
  22911. horiz_accuracy : Horizontal speed 1-STD accuracy (0 if unknown) [m/s] (type:float)
  22912. vert_accuracy : Vertical speed 1-STD accuracy (0 if unknown) [m/s] (type:float)
  22913. """
  22914. return MAVLink_wind_cov_message(time_usec, wind_x, wind_y, wind_z, var_horiz, var_vert, wind_alt, horiz_accuracy, vert_accuracy)
  22915. def wind_cov_send(self, time_usec: int, wind_x: float, wind_y: float, wind_z: float, var_horiz: float, var_vert: float, wind_alt: float, horiz_accuracy: float, vert_accuracy: float, force_mavlink1: bool = False) -> None:
  22916. """
  22917. Wind estimate from vehicle. Note that despite the name, this message
  22918. does not actually contain any covariances but instead
  22919. variability and accuracy fields in terms of standard deviation
  22920. (1-STD).
  22921. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  22922. wind_x : Wind in North (NED) direction (NAN if unknown) [m/s] (type:float)
  22923. wind_y : Wind in East (NED) direction (NAN if unknown) [m/s] (type:float)
  22924. wind_z : Wind in down (NED) direction (NAN if unknown) [m/s] (type:float)
  22925. var_horiz : Variability of wind in XY, 1-STD estimated from a 1 Hz lowpassed wind estimate (NAN if unknown) [m/s] (type:float)
  22926. var_vert : Variability of wind in Z, 1-STD estimated from a 1 Hz lowpassed wind estimate (NAN if unknown) [m/s] (type:float)
  22927. wind_alt : Altitude (MSL) that this measurement was taken at (NAN if unknown) [m] (type:float)
  22928. horiz_accuracy : Horizontal speed 1-STD accuracy (0 if unknown) [m/s] (type:float)
  22929. vert_accuracy : Vertical speed 1-STD accuracy (0 if unknown) [m/s] (type:float)
  22930. """
  22931. self.send(self.wind_cov_encode(time_usec, wind_x, wind_y, wind_z, var_horiz, var_vert, wind_alt, horiz_accuracy, vert_accuracy), force_mavlink1=force_mavlink1)
  22932. def gps_input_encode(self, time_usec: int, gps_id: int, ignore_flags: int, time_week_ms: int, time_week: int, fix_type: int, lat: int, lon: int, alt: float, hdop: float, vdop: float, vn: float, ve: float, vd: float, speed_accuracy: float, horiz_accuracy: float, vert_accuracy: float, satellites_visible: int, yaw: int = 0) -> MAVLink_gps_input_message:
  22933. """
  22934. GPS sensor input message. This is a raw sensor value sent by the GPS.
  22935. This is NOT the global position estimate of the system.
  22936. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  22937. gps_id : ID of the GPS for multiple GPS inputs (type:uint8_t)
  22938. ignore_flags : Bitmap indicating which GPS input flags fields to ignore. All other fields must be provided. (type:uint16_t, values:GPS_INPUT_IGNORE_FLAGS)
  22939. time_week_ms : GPS time (from start of GPS week) [ms] (type:uint32_t)
  22940. time_week : GPS week number (type:uint16_t)
  22941. fix_type : 0-1: no fix, 2: 2D fix, 3: 3D fix. 4: 3D with DGPS. 5: 3D with RTK (type:uint8_t)
  22942. lat : Latitude (WGS84) [degE7] (type:int32_t)
  22943. lon : Longitude (WGS84) [degE7] (type:int32_t)
  22944. alt : Altitude (MSL). Positive for up. [m] (type:float)
  22945. hdop : GPS HDOP horizontal dilution of position (unitless). If unknown, set to: UINT16_MAX (type:float)
  22946. vdop : GPS VDOP vertical dilution of position (unitless). If unknown, set to: UINT16_MAX (type:float)
  22947. vn : GPS velocity in north direction in earth-fixed NED frame [m/s] (type:float)
  22948. ve : GPS velocity in east direction in earth-fixed NED frame [m/s] (type:float)
  22949. vd : GPS velocity in down direction in earth-fixed NED frame [m/s] (type:float)
  22950. speed_accuracy : GPS speed accuracy [m/s] (type:float)
  22951. horiz_accuracy : GPS horizontal accuracy [m] (type:float)
  22952. vert_accuracy : GPS vertical accuracy [m] (type:float)
  22953. satellites_visible : Number of satellites visible. (type:uint8_t)
  22954. yaw : Yaw of vehicle relative to Earth's North, zero means not available, use 36000 for north [cdeg] (type:uint16_t)
  22955. """
  22956. return MAVLink_gps_input_message(time_usec, gps_id, ignore_flags, time_week_ms, time_week, fix_type, lat, lon, alt, hdop, vdop, vn, ve, vd, speed_accuracy, horiz_accuracy, vert_accuracy, satellites_visible, yaw)
  22957. def gps_input_send(self, time_usec: int, gps_id: int, ignore_flags: int, time_week_ms: int, time_week: int, fix_type: int, lat: int, lon: int, alt: float, hdop: float, vdop: float, vn: float, ve: float, vd: float, speed_accuracy: float, horiz_accuracy: float, vert_accuracy: float, satellites_visible: int, yaw: int = 0, force_mavlink1: bool = False) -> None:
  22958. """
  22959. GPS sensor input message. This is a raw sensor value sent by the GPS.
  22960. This is NOT the global position estimate of the system.
  22961. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  22962. gps_id : ID of the GPS for multiple GPS inputs (type:uint8_t)
  22963. ignore_flags : Bitmap indicating which GPS input flags fields to ignore. All other fields must be provided. (type:uint16_t, values:GPS_INPUT_IGNORE_FLAGS)
  22964. time_week_ms : GPS time (from start of GPS week) [ms] (type:uint32_t)
  22965. time_week : GPS week number (type:uint16_t)
  22966. fix_type : 0-1: no fix, 2: 2D fix, 3: 3D fix. 4: 3D with DGPS. 5: 3D with RTK (type:uint8_t)
  22967. lat : Latitude (WGS84) [degE7] (type:int32_t)
  22968. lon : Longitude (WGS84) [degE7] (type:int32_t)
  22969. alt : Altitude (MSL). Positive for up. [m] (type:float)
  22970. hdop : GPS HDOP horizontal dilution of position (unitless). If unknown, set to: UINT16_MAX (type:float)
  22971. vdop : GPS VDOP vertical dilution of position (unitless). If unknown, set to: UINT16_MAX (type:float)
  22972. vn : GPS velocity in north direction in earth-fixed NED frame [m/s] (type:float)
  22973. ve : GPS velocity in east direction in earth-fixed NED frame [m/s] (type:float)
  22974. vd : GPS velocity in down direction in earth-fixed NED frame [m/s] (type:float)
  22975. speed_accuracy : GPS speed accuracy [m/s] (type:float)
  22976. horiz_accuracy : GPS horizontal accuracy [m] (type:float)
  22977. vert_accuracy : GPS vertical accuracy [m] (type:float)
  22978. satellites_visible : Number of satellites visible. (type:uint8_t)
  22979. yaw : Yaw of vehicle relative to Earth's North, zero means not available, use 36000 for north [cdeg] (type:uint16_t)
  22980. """
  22981. self.send(self.gps_input_encode(time_usec, gps_id, ignore_flags, time_week_ms, time_week, fix_type, lat, lon, alt, hdop, vdop, vn, ve, vd, speed_accuracy, horiz_accuracy, vert_accuracy, satellites_visible, yaw), force_mavlink1=force_mavlink1)
  22982. def gps_rtcm_data_encode(self, flags: int, len: int, data: Sequence[int]) -> MAVLink_gps_rtcm_data_message:
  22983. """
  22984. RTCM message for injecting into the onboard GPS (used for DGPS)
  22985. flags : LSB: 1 means message is fragmented, next 2 bits are the fragment ID, the remaining 5 bits are used for the sequence ID. Messages are only to be flushed to the GPS when the entire message has been reconstructed on the autopilot. The fragment ID specifies which order the fragments should be assembled into a buffer, while the sequence ID is used to detect a mismatch between different buffers. The buffer is considered fully reconstructed when either all 4 fragments are present, or all the fragments before the first fragment with a non full payload is received. This management is used to ensure that normal GPS operation doesn't corrupt RTCM data, and to recover from a unreliable transport delivery order. (type:uint8_t)
  22986. len : data length [bytes] (type:uint8_t)
  22987. data : RTCM message (may be fragmented) (type:uint8_t)
  22988. """
  22989. return MAVLink_gps_rtcm_data_message(flags, len, data)
  22990. def gps_rtcm_data_send(self, flags: int, len: int, data: Sequence[int], force_mavlink1: bool = False) -> None:
  22991. """
  22992. RTCM message for injecting into the onboard GPS (used for DGPS)
  22993. flags : LSB: 1 means message is fragmented, next 2 bits are the fragment ID, the remaining 5 bits are used for the sequence ID. Messages are only to be flushed to the GPS when the entire message has been reconstructed on the autopilot. The fragment ID specifies which order the fragments should be assembled into a buffer, while the sequence ID is used to detect a mismatch between different buffers. The buffer is considered fully reconstructed when either all 4 fragments are present, or all the fragments before the first fragment with a non full payload is received. This management is used to ensure that normal GPS operation doesn't corrupt RTCM data, and to recover from a unreliable transport delivery order. (type:uint8_t)
  22994. len : data length [bytes] (type:uint8_t)
  22995. data : RTCM message (may be fragmented) (type:uint8_t)
  22996. """
  22997. self.send(self.gps_rtcm_data_encode(flags, len, data), force_mavlink1=force_mavlink1)
  22998. def high_latency_encode(self, base_mode: int, custom_mode: int, landed_state: int, roll: int, pitch: int, heading: int, throttle: int, heading_sp: int, latitude: int, longitude: int, altitude_amsl: int, altitude_sp: int, airspeed: int, airspeed_sp: int, groundspeed: int, climb_rate: int, gps_nsat: int, gps_fix_type: int, battery_remaining: int, temperature: int, temperature_air: int, failsafe: int, wp_num: int, wp_distance: int) -> MAVLink_high_latency_message:
  22999. """
  23000. Message appropriate for high latency connections like Iridium
  23001. base_mode : Bitmap of enabled system modes. (type:uint8_t, values:MAV_MODE_FLAG)
  23002. custom_mode : A bitfield for use for autopilot-specific flags. (type:uint32_t)
  23003. landed_state : The landed state. Is set to MAV_LANDED_STATE_UNDEFINED if landed state is unknown. (type:uint8_t, values:MAV_LANDED_STATE)
  23004. roll : roll [cdeg] (type:int16_t)
  23005. pitch : pitch [cdeg] (type:int16_t)
  23006. heading : heading [cdeg] (type:uint16_t)
  23007. throttle : throttle (percentage) [%] (type:int8_t)
  23008. heading_sp : heading setpoint [cdeg] (type:int16_t)
  23009. latitude : Latitude [degE7] (type:int32_t)
  23010. longitude : Longitude [degE7] (type:int32_t)
  23011. altitude_amsl : Altitude above mean sea level [m] (type:int16_t)
  23012. altitude_sp : Altitude setpoint relative to the home position [m] (type:int16_t)
  23013. airspeed : airspeed [m/s] (type:uint8_t)
  23014. airspeed_sp : airspeed setpoint [m/s] (type:uint8_t)
  23015. groundspeed : groundspeed [m/s] (type:uint8_t)
  23016. climb_rate : climb rate [m/s] (type:int8_t)
  23017. gps_nsat : Number of satellites visible. If unknown, set to UINT8_MAX (type:uint8_t)
  23018. gps_fix_type : GPS Fix type. (type:uint8_t, values:GPS_FIX_TYPE)
  23019. battery_remaining : Remaining battery (percentage) [%] (type:uint8_t)
  23020. temperature : Autopilot temperature (degrees C) [degC] (type:int8_t)
  23021. temperature_air : Air temperature (degrees C) from airspeed sensor [degC] (type:int8_t)
  23022. failsafe : failsafe (each bit represents a failsafe where 0=ok, 1=failsafe active (bit0:RC, bit1:batt, bit2:GPS, bit3:GCS, bit4:fence) (type:uint8_t)
  23023. wp_num : current waypoint number (type:uint8_t)
  23024. wp_distance : distance to target [m] (type:uint16_t)
  23025. """
  23026. return MAVLink_high_latency_message(base_mode, custom_mode, landed_state, roll, pitch, heading, throttle, heading_sp, latitude, longitude, altitude_amsl, altitude_sp, airspeed, airspeed_sp, groundspeed, climb_rate, gps_nsat, gps_fix_type, battery_remaining, temperature, temperature_air, failsafe, wp_num, wp_distance)
  23027. def high_latency_send(self, base_mode: int, custom_mode: int, landed_state: int, roll: int, pitch: int, heading: int, throttle: int, heading_sp: int, latitude: int, longitude: int, altitude_amsl: int, altitude_sp: int, airspeed: int, airspeed_sp: int, groundspeed: int, climb_rate: int, gps_nsat: int, gps_fix_type: int, battery_remaining: int, temperature: int, temperature_air: int, failsafe: int, wp_num: int, wp_distance: int, force_mavlink1: bool = False) -> None:
  23028. """
  23029. Message appropriate for high latency connections like Iridium
  23030. base_mode : Bitmap of enabled system modes. (type:uint8_t, values:MAV_MODE_FLAG)
  23031. custom_mode : A bitfield for use for autopilot-specific flags. (type:uint32_t)
  23032. landed_state : The landed state. Is set to MAV_LANDED_STATE_UNDEFINED if landed state is unknown. (type:uint8_t, values:MAV_LANDED_STATE)
  23033. roll : roll [cdeg] (type:int16_t)
  23034. pitch : pitch [cdeg] (type:int16_t)
  23035. heading : heading [cdeg] (type:uint16_t)
  23036. throttle : throttle (percentage) [%] (type:int8_t)
  23037. heading_sp : heading setpoint [cdeg] (type:int16_t)
  23038. latitude : Latitude [degE7] (type:int32_t)
  23039. longitude : Longitude [degE7] (type:int32_t)
  23040. altitude_amsl : Altitude above mean sea level [m] (type:int16_t)
  23041. altitude_sp : Altitude setpoint relative to the home position [m] (type:int16_t)
  23042. airspeed : airspeed [m/s] (type:uint8_t)
  23043. airspeed_sp : airspeed setpoint [m/s] (type:uint8_t)
  23044. groundspeed : groundspeed [m/s] (type:uint8_t)
  23045. climb_rate : climb rate [m/s] (type:int8_t)
  23046. gps_nsat : Number of satellites visible. If unknown, set to UINT8_MAX (type:uint8_t)
  23047. gps_fix_type : GPS Fix type. (type:uint8_t, values:GPS_FIX_TYPE)
  23048. battery_remaining : Remaining battery (percentage) [%] (type:uint8_t)
  23049. temperature : Autopilot temperature (degrees C) [degC] (type:int8_t)
  23050. temperature_air : Air temperature (degrees C) from airspeed sensor [degC] (type:int8_t)
  23051. failsafe : failsafe (each bit represents a failsafe where 0=ok, 1=failsafe active (bit0:RC, bit1:batt, bit2:GPS, bit3:GCS, bit4:fence) (type:uint8_t)
  23052. wp_num : current waypoint number (type:uint8_t)
  23053. wp_distance : distance to target [m] (type:uint16_t)
  23054. """
  23055. self.send(self.high_latency_encode(base_mode, custom_mode, landed_state, roll, pitch, heading, throttle, heading_sp, latitude, longitude, altitude_amsl, altitude_sp, airspeed, airspeed_sp, groundspeed, climb_rate, gps_nsat, gps_fix_type, battery_remaining, temperature, temperature_air, failsafe, wp_num, wp_distance), force_mavlink1=force_mavlink1)
  23056. def high_latency2_encode(self, timestamp: int, type: int, autopilot: int, custom_mode: int, latitude: int, longitude: int, altitude: int, target_altitude: int, heading: int, target_heading: int, target_distance: int, throttle: int, airspeed: int, airspeed_sp: int, groundspeed: int, windspeed: int, wind_heading: int, eph: int, epv: int, temperature_air: int, climb_rate: int, battery: int, wp_num: int, failure_flags: int, custom0: int, custom1: int, custom2: int) -> MAVLink_high_latency2_message:
  23057. """
  23058. Message appropriate for high latency connections like Iridium (version
  23059. 2)
  23060. timestamp : Timestamp (milliseconds since boot or Unix epoch) [ms] (type:uint32_t)
  23061. type : Type of the MAV (quadrotor, helicopter, etc.) (type:uint8_t, values:MAV_TYPE)
  23062. autopilot : Autopilot type / class. Use MAV_AUTOPILOT_INVALID for components that are not flight controllers. (type:uint8_t, values:MAV_AUTOPILOT)
  23063. custom_mode : A bitfield for use for autopilot-specific flags (2 byte version). (type:uint16_t)
  23064. latitude : Latitude [degE7] (type:int32_t)
  23065. longitude : Longitude [degE7] (type:int32_t)
  23066. altitude : Altitude above mean sea level [m] (type:int16_t)
  23067. target_altitude : Altitude setpoint [m] (type:int16_t)
  23068. heading : Heading [deg/2] (type:uint8_t)
  23069. target_heading : Heading setpoint [deg/2] (type:uint8_t)
  23070. target_distance : Distance to target waypoint or position [dam] (type:uint16_t)
  23071. throttle : Throttle [%] (type:uint8_t)
  23072. airspeed : Airspeed [m/s*5] (type:uint8_t)
  23073. airspeed_sp : Airspeed setpoint [m/s*5] (type:uint8_t)
  23074. groundspeed : Groundspeed [m/s*5] (type:uint8_t)
  23075. windspeed : Windspeed [m/s*5] (type:uint8_t)
  23076. wind_heading : Wind heading [deg/2] (type:uint8_t)
  23077. eph : Maximum error horizontal position since last message [dm] (type:uint8_t)
  23078. epv : Maximum error vertical position since last message [dm] (type:uint8_t)
  23079. temperature_air : Air temperature from airspeed sensor [degC] (type:int8_t)
  23080. climb_rate : Maximum climb rate magnitude since last message [dm/s] (type:int8_t)
  23081. battery : Battery level (-1 if field not provided). [%] (type:int8_t)
  23082. wp_num : Current waypoint number (type:uint16_t)
  23083. failure_flags : Bitmap of failure flags. (type:uint16_t, values:HL_FAILURE_FLAG)
  23084. custom0 : Field for custom payload. (type:int8_t)
  23085. custom1 : Field for custom payload. (type:int8_t)
  23086. custom2 : Field for custom payload. (type:int8_t)
  23087. """
  23088. return MAVLink_high_latency2_message(timestamp, type, autopilot, custom_mode, latitude, longitude, altitude, target_altitude, heading, target_heading, target_distance, throttle, airspeed, airspeed_sp, groundspeed, windspeed, wind_heading, eph, epv, temperature_air, climb_rate, battery, wp_num, failure_flags, custom0, custom1, custom2)
  23089. def high_latency2_send(self, timestamp: int, type: int, autopilot: int, custom_mode: int, latitude: int, longitude: int, altitude: int, target_altitude: int, heading: int, target_heading: int, target_distance: int, throttle: int, airspeed: int, airspeed_sp: int, groundspeed: int, windspeed: int, wind_heading: int, eph: int, epv: int, temperature_air: int, climb_rate: int, battery: int, wp_num: int, failure_flags: int, custom0: int, custom1: int, custom2: int, force_mavlink1: bool = False) -> None:
  23090. """
  23091. Message appropriate for high latency connections like Iridium (version
  23092. 2)
  23093. timestamp : Timestamp (milliseconds since boot or Unix epoch) [ms] (type:uint32_t)
  23094. type : Type of the MAV (quadrotor, helicopter, etc.) (type:uint8_t, values:MAV_TYPE)
  23095. autopilot : Autopilot type / class. Use MAV_AUTOPILOT_INVALID for components that are not flight controllers. (type:uint8_t, values:MAV_AUTOPILOT)
  23096. custom_mode : A bitfield for use for autopilot-specific flags (2 byte version). (type:uint16_t)
  23097. latitude : Latitude [degE7] (type:int32_t)
  23098. longitude : Longitude [degE7] (type:int32_t)
  23099. altitude : Altitude above mean sea level [m] (type:int16_t)
  23100. target_altitude : Altitude setpoint [m] (type:int16_t)
  23101. heading : Heading [deg/2] (type:uint8_t)
  23102. target_heading : Heading setpoint [deg/2] (type:uint8_t)
  23103. target_distance : Distance to target waypoint or position [dam] (type:uint16_t)
  23104. throttle : Throttle [%] (type:uint8_t)
  23105. airspeed : Airspeed [m/s*5] (type:uint8_t)
  23106. airspeed_sp : Airspeed setpoint [m/s*5] (type:uint8_t)
  23107. groundspeed : Groundspeed [m/s*5] (type:uint8_t)
  23108. windspeed : Windspeed [m/s*5] (type:uint8_t)
  23109. wind_heading : Wind heading [deg/2] (type:uint8_t)
  23110. eph : Maximum error horizontal position since last message [dm] (type:uint8_t)
  23111. epv : Maximum error vertical position since last message [dm] (type:uint8_t)
  23112. temperature_air : Air temperature from airspeed sensor [degC] (type:int8_t)
  23113. climb_rate : Maximum climb rate magnitude since last message [dm/s] (type:int8_t)
  23114. battery : Battery level (-1 if field not provided). [%] (type:int8_t)
  23115. wp_num : Current waypoint number (type:uint16_t)
  23116. failure_flags : Bitmap of failure flags. (type:uint16_t, values:HL_FAILURE_FLAG)
  23117. custom0 : Field for custom payload. (type:int8_t)
  23118. custom1 : Field for custom payload. (type:int8_t)
  23119. custom2 : Field for custom payload. (type:int8_t)
  23120. """
  23121. self.send(self.high_latency2_encode(timestamp, type, autopilot, custom_mode, latitude, longitude, altitude, target_altitude, heading, target_heading, target_distance, throttle, airspeed, airspeed_sp, groundspeed, windspeed, wind_heading, eph, epv, temperature_air, climb_rate, battery, wp_num, failure_flags, custom0, custom1, custom2), force_mavlink1=force_mavlink1)
  23122. def vibration_encode(self, time_usec: int, vibration_x: float, vibration_y: float, vibration_z: float, clipping_0: int, clipping_1: int, clipping_2: int) -> MAVLink_vibration_message:
  23123. """
  23124. Vibration levels and accelerometer clipping
  23125. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  23126. vibration_x : Vibration levels on X-axis (type:float)
  23127. vibration_y : Vibration levels on Y-axis (type:float)
  23128. vibration_z : Vibration levels on Z-axis (type:float)
  23129. clipping_0 : first accelerometer clipping count (type:uint32_t)
  23130. clipping_1 : second accelerometer clipping count (type:uint32_t)
  23131. clipping_2 : third accelerometer clipping count (type:uint32_t)
  23132. """
  23133. return MAVLink_vibration_message(time_usec, vibration_x, vibration_y, vibration_z, clipping_0, clipping_1, clipping_2)
  23134. def vibration_send(self, time_usec: int, vibration_x: float, vibration_y: float, vibration_z: float, clipping_0: int, clipping_1: int, clipping_2: int, force_mavlink1: bool = False) -> None:
  23135. """
  23136. Vibration levels and accelerometer clipping
  23137. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  23138. vibration_x : Vibration levels on X-axis (type:float)
  23139. vibration_y : Vibration levels on Y-axis (type:float)
  23140. vibration_z : Vibration levels on Z-axis (type:float)
  23141. clipping_0 : first accelerometer clipping count (type:uint32_t)
  23142. clipping_1 : second accelerometer clipping count (type:uint32_t)
  23143. clipping_2 : third accelerometer clipping count (type:uint32_t)
  23144. """
  23145. self.send(self.vibration_encode(time_usec, vibration_x, vibration_y, vibration_z, clipping_0, clipping_1, clipping_2), force_mavlink1=force_mavlink1)
  23146. def home_position_encode(self, latitude: int, longitude: int, altitude: int, x: float, y: float, z: float, q: Sequence[float], approach_x: float, approach_y: float, approach_z: float, time_usec: int = 0) -> MAVLink_home_position_message:
  23147. """
  23148. Contains the home position. The home position is the default
  23149. position that the system will return to and land on.
  23150. The position must be set automatically by the system during
  23151. the takeoff, and may also be explicitly set using
  23152. MAV_CMD_DO_SET_HOME. The global and local positions
  23153. encode the position in the respective coordinate frames, while
  23154. the q parameter encodes the orientation of the surface.
  23155. Under normal conditions it describes the heading and terrain
  23156. slope, which can be used by the aircraft to adjust the
  23157. approach. The approach 3D vector describes the point
  23158. to which the system should fly in normal flight mode and then
  23159. perform a landing sequence along the vector. Note:
  23160. this message can be requested by sending the
  23161. MAV_CMD_REQUEST_MESSAGE with param1=242 (or the deprecated
  23162. MAV_CMD_GET_HOME_POSITION command).
  23163. latitude : Latitude (WGS84) [degE7] (type:int32_t)
  23164. longitude : Longitude (WGS84) [degE7] (type:int32_t)
  23165. altitude : Altitude (MSL). Positive for up. [mm] (type:int32_t)
  23166. x : Local X position of this position in the local coordinate frame (NED) [m] (type:float)
  23167. y : Local Y position of this position in the local coordinate frame (NED) [m] (type:float)
  23168. z : Local Z position of this position in the local coordinate frame (NED: positive "down") [m] (type:float)
  23169. q : Quaternion indicating world-to-surface-normal and heading transformation of the takeoff position.
  23170. Used to indicate the heading and slope of the ground.
  23171. All fields should be set to NaN if an accurate quaternion for both heading and surface slope cannot be supplied. (type:float)
  23172. approach_x : Local X position of the end of the approach vector. Multicopters should set this position based on their takeoff path. Grass-landing fixed wing aircraft should set it the same way as multicopters. Runway-landing fixed wing aircraft should set it to the opposite direction of the takeoff, assuming the takeoff happened from the threshold / touchdown zone. [m] (type:float)
  23173. approach_y : Local Y position of the end of the approach vector. Multicopters should set this position based on their takeoff path. Grass-landing fixed wing aircraft should set it the same way as multicopters. Runway-landing fixed wing aircraft should set it to the opposite direction of the takeoff, assuming the takeoff happened from the threshold / touchdown zone. [m] (type:float)
  23174. approach_z : Local Z position of the end of the approach vector. Multicopters should set this position based on their takeoff path. Grass-landing fixed wing aircraft should set it the same way as multicopters. Runway-landing fixed wing aircraft should set it to the opposite direction of the takeoff, assuming the takeoff happened from the threshold / touchdown zone. [m] (type:float)
  23175. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  23176. """
  23177. return MAVLink_home_position_message(latitude, longitude, altitude, x, y, z, q, approach_x, approach_y, approach_z, time_usec)
  23178. def home_position_send(self, latitude: int, longitude: int, altitude: int, x: float, y: float, z: float, q: Sequence[float], approach_x: float, approach_y: float, approach_z: float, time_usec: int = 0, force_mavlink1: bool = False) -> None:
  23179. """
  23180. Contains the home position. The home position is the default
  23181. position that the system will return to and land on.
  23182. The position must be set automatically by the system during
  23183. the takeoff, and may also be explicitly set using
  23184. MAV_CMD_DO_SET_HOME. The global and local positions
  23185. encode the position in the respective coordinate frames, while
  23186. the q parameter encodes the orientation of the surface.
  23187. Under normal conditions it describes the heading and terrain
  23188. slope, which can be used by the aircraft to adjust the
  23189. approach. The approach 3D vector describes the point
  23190. to which the system should fly in normal flight mode and then
  23191. perform a landing sequence along the vector. Note:
  23192. this message can be requested by sending the
  23193. MAV_CMD_REQUEST_MESSAGE with param1=242 (or the deprecated
  23194. MAV_CMD_GET_HOME_POSITION command).
  23195. latitude : Latitude (WGS84) [degE7] (type:int32_t)
  23196. longitude : Longitude (WGS84) [degE7] (type:int32_t)
  23197. altitude : Altitude (MSL). Positive for up. [mm] (type:int32_t)
  23198. x : Local X position of this position in the local coordinate frame (NED) [m] (type:float)
  23199. y : Local Y position of this position in the local coordinate frame (NED) [m] (type:float)
  23200. z : Local Z position of this position in the local coordinate frame (NED: positive "down") [m] (type:float)
  23201. q : Quaternion indicating world-to-surface-normal and heading transformation of the takeoff position.
  23202. Used to indicate the heading and slope of the ground.
  23203. All fields should be set to NaN if an accurate quaternion for both heading and surface slope cannot be supplied. (type:float)
  23204. approach_x : Local X position of the end of the approach vector. Multicopters should set this position based on their takeoff path. Grass-landing fixed wing aircraft should set it the same way as multicopters. Runway-landing fixed wing aircraft should set it to the opposite direction of the takeoff, assuming the takeoff happened from the threshold / touchdown zone. [m] (type:float)
  23205. approach_y : Local Y position of the end of the approach vector. Multicopters should set this position based on their takeoff path. Grass-landing fixed wing aircraft should set it the same way as multicopters. Runway-landing fixed wing aircraft should set it to the opposite direction of the takeoff, assuming the takeoff happened from the threshold / touchdown zone. [m] (type:float)
  23206. approach_z : Local Z position of the end of the approach vector. Multicopters should set this position based on their takeoff path. Grass-landing fixed wing aircraft should set it the same way as multicopters. Runway-landing fixed wing aircraft should set it to the opposite direction of the takeoff, assuming the takeoff happened from the threshold / touchdown zone. [m] (type:float)
  23207. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  23208. """
  23209. self.send(self.home_position_encode(latitude, longitude, altitude, x, y, z, q, approach_x, approach_y, approach_z, time_usec), force_mavlink1=force_mavlink1)
  23210. def set_home_position_encode(self, target_system: int, latitude: int, longitude: int, altitude: int, x: float, y: float, z: float, q: Sequence[float], approach_x: float, approach_y: float, approach_z: float, time_usec: int = 0) -> MAVLink_set_home_position_message:
  23211. """
  23212. Sets the home position. The home position is the default
  23213. position that the system will return to and land on.
  23214. The position is set automatically by the system during the
  23215. takeoff (and may also be set using this message). The
  23216. global and local positions encode the position in the
  23217. respective coordinate frames, while the q parameter encodes
  23218. the orientation of the surface. Under normal
  23219. conditions it describes the heading and terrain slope, which
  23220. can be used by the aircraft to adjust the approach.
  23221. The approach 3D vector describes the point to which the system
  23222. should fly in normal flight mode and then perform a landing
  23223. sequence along the vector. Note: the current home
  23224. position may be emitted in a HOME_POSITION message on request
  23225. (using MAV_CMD_REQUEST_MESSAGE with param1=242).
  23226. target_system : System ID. (type:uint8_t)
  23227. latitude : Latitude (WGS84) [degE7] (type:int32_t)
  23228. longitude : Longitude (WGS84) [degE7] (type:int32_t)
  23229. altitude : Altitude (MSL). Positive for up. [mm] (type:int32_t)
  23230. x : Local X position of this position in the local coordinate frame (NED) [m] (type:float)
  23231. y : Local Y position of this position in the local coordinate frame (NED) [m] (type:float)
  23232. z : Local Z position of this position in the local coordinate frame (NED: positive "down") [m] (type:float)
  23233. q : World to surface normal and heading transformation of the takeoff position. Used to indicate the heading and slope of the ground (type:float)
  23234. approach_x : Local X position of the end of the approach vector. Multicopters should set this position based on their takeoff path. Grass-landing fixed wing aircraft should set it the same way as multicopters. Runway-landing fixed wing aircraft should set it to the opposite direction of the takeoff, assuming the takeoff happened from the threshold / touchdown zone. [m] (type:float)
  23235. approach_y : Local Y position of the end of the approach vector. Multicopters should set this position based on their takeoff path. Grass-landing fixed wing aircraft should set it the same way as multicopters. Runway-landing fixed wing aircraft should set it to the opposite direction of the takeoff, assuming the takeoff happened from the threshold / touchdown zone. [m] (type:float)
  23236. approach_z : Local Z position of the end of the approach vector. Multicopters should set this position based on their takeoff path. Grass-landing fixed wing aircraft should set it the same way as multicopters. Runway-landing fixed wing aircraft should set it to the opposite direction of the takeoff, assuming the takeoff happened from the threshold / touchdown zone. [m] (type:float)
  23237. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  23238. """
  23239. return MAVLink_set_home_position_message(target_system, latitude, longitude, altitude, x, y, z, q, approach_x, approach_y, approach_z, time_usec)
  23240. def set_home_position_send(self, target_system: int, latitude: int, longitude: int, altitude: int, x: float, y: float, z: float, q: Sequence[float], approach_x: float, approach_y: float, approach_z: float, time_usec: int = 0, force_mavlink1: bool = False) -> None:
  23241. """
  23242. Sets the home position. The home position is the default
  23243. position that the system will return to and land on.
  23244. The position is set automatically by the system during the
  23245. takeoff (and may also be set using this message). The
  23246. global and local positions encode the position in the
  23247. respective coordinate frames, while the q parameter encodes
  23248. the orientation of the surface. Under normal
  23249. conditions it describes the heading and terrain slope, which
  23250. can be used by the aircraft to adjust the approach.
  23251. The approach 3D vector describes the point to which the system
  23252. should fly in normal flight mode and then perform a landing
  23253. sequence along the vector. Note: the current home
  23254. position may be emitted in a HOME_POSITION message on request
  23255. (using MAV_CMD_REQUEST_MESSAGE with param1=242).
  23256. target_system : System ID. (type:uint8_t)
  23257. latitude : Latitude (WGS84) [degE7] (type:int32_t)
  23258. longitude : Longitude (WGS84) [degE7] (type:int32_t)
  23259. altitude : Altitude (MSL). Positive for up. [mm] (type:int32_t)
  23260. x : Local X position of this position in the local coordinate frame (NED) [m] (type:float)
  23261. y : Local Y position of this position in the local coordinate frame (NED) [m] (type:float)
  23262. z : Local Z position of this position in the local coordinate frame (NED: positive "down") [m] (type:float)
  23263. q : World to surface normal and heading transformation of the takeoff position. Used to indicate the heading and slope of the ground (type:float)
  23264. approach_x : Local X position of the end of the approach vector. Multicopters should set this position based on their takeoff path. Grass-landing fixed wing aircraft should set it the same way as multicopters. Runway-landing fixed wing aircraft should set it to the opposite direction of the takeoff, assuming the takeoff happened from the threshold / touchdown zone. [m] (type:float)
  23265. approach_y : Local Y position of the end of the approach vector. Multicopters should set this position based on their takeoff path. Grass-landing fixed wing aircraft should set it the same way as multicopters. Runway-landing fixed wing aircraft should set it to the opposite direction of the takeoff, assuming the takeoff happened from the threshold / touchdown zone. [m] (type:float)
  23266. approach_z : Local Z position of the end of the approach vector. Multicopters should set this position based on their takeoff path. Grass-landing fixed wing aircraft should set it the same way as multicopters. Runway-landing fixed wing aircraft should set it to the opposite direction of the takeoff, assuming the takeoff happened from the threshold / touchdown zone. [m] (type:float)
  23267. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  23268. """
  23269. self.send(self.set_home_position_encode(target_system, latitude, longitude, altitude, x, y, z, q, approach_x, approach_y, approach_z, time_usec), force_mavlink1=force_mavlink1)
  23270. def message_interval_encode(self, message_id: int, interval_us: int) -> MAVLink_message_interval_message:
  23271. """
  23272. The interval between messages for a particular MAVLink message ID.
  23273. This message is sent in response to the
  23274. MAV_CMD_REQUEST_MESSAGE command with param1=244 (this message)
  23275. and param2=message_id (the id of the message for which the
  23276. interval is required). It may also be sent in response
  23277. to MAV_CMD_GET_MESSAGE_INTERVAL. This interface
  23278. replaces DATA_STREAM.
  23279. message_id : The ID of the requested MAVLink message. v1.0 is limited to 254 messages. (type:uint16_t)
  23280. interval_us : The interval between two messages. A value of -1 indicates this stream is disabled, 0 indicates it is not available, > 0 indicates the interval at which it is sent. [us] (type:int32_t)
  23281. """
  23282. return MAVLink_message_interval_message(message_id, interval_us)
  23283. def message_interval_send(self, message_id: int, interval_us: int, force_mavlink1: bool = False) -> None:
  23284. """
  23285. The interval between messages for a particular MAVLink message ID.
  23286. This message is sent in response to the
  23287. MAV_CMD_REQUEST_MESSAGE command with param1=244 (this message)
  23288. and param2=message_id (the id of the message for which the
  23289. interval is required). It may also be sent in response
  23290. to MAV_CMD_GET_MESSAGE_INTERVAL. This interface
  23291. replaces DATA_STREAM.
  23292. message_id : The ID of the requested MAVLink message. v1.0 is limited to 254 messages. (type:uint16_t)
  23293. interval_us : The interval between two messages. A value of -1 indicates this stream is disabled, 0 indicates it is not available, > 0 indicates the interval at which it is sent. [us] (type:int32_t)
  23294. """
  23295. self.send(self.message_interval_encode(message_id, interval_us), force_mavlink1=force_mavlink1)
  23296. def extended_sys_state_encode(self, vtol_state: int, landed_state: int) -> MAVLink_extended_sys_state_message:
  23297. """
  23298. Provides state for additional features
  23299. vtol_state : The VTOL state if applicable. Is set to MAV_VTOL_STATE_UNDEFINED if UAV is not in VTOL configuration. (type:uint8_t, values:MAV_VTOL_STATE)
  23300. landed_state : The landed state. Is set to MAV_LANDED_STATE_UNDEFINED if landed state is unknown. (type:uint8_t, values:MAV_LANDED_STATE)
  23301. """
  23302. return MAVLink_extended_sys_state_message(vtol_state, landed_state)
  23303. def extended_sys_state_send(self, vtol_state: int, landed_state: int, force_mavlink1: bool = False) -> None:
  23304. """
  23305. Provides state for additional features
  23306. vtol_state : The VTOL state if applicable. Is set to MAV_VTOL_STATE_UNDEFINED if UAV is not in VTOL configuration. (type:uint8_t, values:MAV_VTOL_STATE)
  23307. landed_state : The landed state. Is set to MAV_LANDED_STATE_UNDEFINED if landed state is unknown. (type:uint8_t, values:MAV_LANDED_STATE)
  23308. """
  23309. self.send(self.extended_sys_state_encode(vtol_state, landed_state), force_mavlink1=force_mavlink1)
  23310. def adsb_vehicle_encode(self, ICAO_address: int, lat: int, lon: int, altitude_type: int, altitude: int, heading: int, hor_velocity: int, ver_velocity: int, callsign: bytes, emitter_type: int, tslc: int, flags: int, squawk: int) -> MAVLink_adsb_vehicle_message:
  23311. """
  23312. The location and information of an ADSB vehicle
  23313. ICAO_address : ICAO address (type:uint32_t)
  23314. lat : Latitude [degE7] (type:int32_t)
  23315. lon : Longitude [degE7] (type:int32_t)
  23316. altitude_type : ADSB altitude type. (type:uint8_t, values:ADSB_ALTITUDE_TYPE)
  23317. altitude : Altitude(ASL) [mm] (type:int32_t)
  23318. heading : Course over ground [cdeg] (type:uint16_t)
  23319. hor_velocity : The horizontal velocity [cm/s] (type:uint16_t)
  23320. ver_velocity : The vertical velocity. Positive is up [cm/s] (type:int16_t)
  23321. callsign : The callsign, 8+null (type:char)
  23322. emitter_type : ADSB emitter type. (type:uint8_t, values:ADSB_EMITTER_TYPE)
  23323. tslc : Time since last communication in seconds [s] (type:uint8_t)
  23324. flags : Bitmap to indicate various statuses including valid data fields (type:uint16_t, values:ADSB_FLAGS)
  23325. squawk : Squawk code (type:uint16_t)
  23326. """
  23327. return MAVLink_adsb_vehicle_message(ICAO_address, lat, lon, altitude_type, altitude, heading, hor_velocity, ver_velocity, callsign, emitter_type, tslc, flags, squawk)
  23328. def adsb_vehicle_send(self, ICAO_address: int, lat: int, lon: int, altitude_type: int, altitude: int, heading: int, hor_velocity: int, ver_velocity: int, callsign: bytes, emitter_type: int, tslc: int, flags: int, squawk: int, force_mavlink1: bool = False) -> None:
  23329. """
  23330. The location and information of an ADSB vehicle
  23331. ICAO_address : ICAO address (type:uint32_t)
  23332. lat : Latitude [degE7] (type:int32_t)
  23333. lon : Longitude [degE7] (type:int32_t)
  23334. altitude_type : ADSB altitude type. (type:uint8_t, values:ADSB_ALTITUDE_TYPE)
  23335. altitude : Altitude(ASL) [mm] (type:int32_t)
  23336. heading : Course over ground [cdeg] (type:uint16_t)
  23337. hor_velocity : The horizontal velocity [cm/s] (type:uint16_t)
  23338. ver_velocity : The vertical velocity. Positive is up [cm/s] (type:int16_t)
  23339. callsign : The callsign, 8+null (type:char)
  23340. emitter_type : ADSB emitter type. (type:uint8_t, values:ADSB_EMITTER_TYPE)
  23341. tslc : Time since last communication in seconds [s] (type:uint8_t)
  23342. flags : Bitmap to indicate various statuses including valid data fields (type:uint16_t, values:ADSB_FLAGS)
  23343. squawk : Squawk code (type:uint16_t)
  23344. """
  23345. self.send(self.adsb_vehicle_encode(ICAO_address, lat, lon, altitude_type, altitude, heading, hor_velocity, ver_velocity, callsign, emitter_type, tslc, flags, squawk), force_mavlink1=force_mavlink1)
  23346. def collision_encode(self, src: int, id: int, action: int, threat_level: int, time_to_minimum_delta: float, altitude_minimum_delta: float, horizontal_minimum_delta: float) -> MAVLink_collision_message:
  23347. """
  23348. Information about a potential collision
  23349. src : Collision data source (type:uint8_t, values:MAV_COLLISION_SRC)
  23350. id : Unique identifier, domain based on src field (type:uint32_t)
  23351. action : Action that is being taken to avoid this collision (type:uint8_t, values:MAV_COLLISION_ACTION)
  23352. threat_level : How concerned the aircraft is about this collision (type:uint8_t, values:MAV_COLLISION_THREAT_LEVEL)
  23353. time_to_minimum_delta : Estimated time until collision occurs [s] (type:float)
  23354. altitude_minimum_delta : Closest vertical distance between vehicle and object [m] (type:float)
  23355. horizontal_minimum_delta : Closest horizontal distance between vehicle and object [m] (type:float)
  23356. """
  23357. return MAVLink_collision_message(src, id, action, threat_level, time_to_minimum_delta, altitude_minimum_delta, horizontal_minimum_delta)
  23358. def collision_send(self, src: int, id: int, action: int, threat_level: int, time_to_minimum_delta: float, altitude_minimum_delta: float, horizontal_minimum_delta: float, force_mavlink1: bool = False) -> None:
  23359. """
  23360. Information about a potential collision
  23361. src : Collision data source (type:uint8_t, values:MAV_COLLISION_SRC)
  23362. id : Unique identifier, domain based on src field (type:uint32_t)
  23363. action : Action that is being taken to avoid this collision (type:uint8_t, values:MAV_COLLISION_ACTION)
  23364. threat_level : How concerned the aircraft is about this collision (type:uint8_t, values:MAV_COLLISION_THREAT_LEVEL)
  23365. time_to_minimum_delta : Estimated time until collision occurs [s] (type:float)
  23366. altitude_minimum_delta : Closest vertical distance between vehicle and object [m] (type:float)
  23367. horizontal_minimum_delta : Closest horizontal distance between vehicle and object [m] (type:float)
  23368. """
  23369. self.send(self.collision_encode(src, id, action, threat_level, time_to_minimum_delta, altitude_minimum_delta, horizontal_minimum_delta), force_mavlink1=force_mavlink1)
  23370. def v2_extension_encode(self, target_network: int, target_system: int, target_component: int, message_type: int, payload: Sequence[int]) -> MAVLink_v2_extension_message:
  23371. """
  23372. Message implementing parts of the V2 payload specs in V1 frames for
  23373. transitional support.
  23374. target_network : Network ID (0 for broadcast) (type:uint8_t)
  23375. target_system : System ID (0 for broadcast) (type:uint8_t)
  23376. target_component : Component ID (0 for broadcast) (type:uint8_t)
  23377. message_type : A code that identifies the software component that understands this message (analogous to USB device classes or mime type strings). If this code is less than 32768, it is considered a 'registered' protocol extension and the corresponding entry should be added to https://github.com/mavlink/mavlink/definition_files/extension_message_ids.xml. Software creators can register blocks of message IDs as needed (useful for GCS specific metadata, etc...). Message_types greater than 32767 are considered local experiments and should not be checked in to any widely distributed codebase. (type:uint16_t)
  23378. payload : Variable length payload. The length must be encoded in the payload as part of the message_type protocol, e.g. by including the length as payload data, or by terminating the payload data with a non-zero marker. This is required in order to reconstruct zero-terminated payloads that are (or otherwise would be) trimmed by MAVLink 2 empty-byte truncation. The entire content of the payload block is opaque unless you understand the encoding message_type. The particular encoding used can be extension specific and might not always be documented as part of the MAVLink specification. (type:uint8_t)
  23379. """
  23380. return MAVLink_v2_extension_message(target_network, target_system, target_component, message_type, payload)
  23381. def v2_extension_send(self, target_network: int, target_system: int, target_component: int, message_type: int, payload: Sequence[int], force_mavlink1: bool = False) -> None:
  23382. """
  23383. Message implementing parts of the V2 payload specs in V1 frames for
  23384. transitional support.
  23385. target_network : Network ID (0 for broadcast) (type:uint8_t)
  23386. target_system : System ID (0 for broadcast) (type:uint8_t)
  23387. target_component : Component ID (0 for broadcast) (type:uint8_t)
  23388. message_type : A code that identifies the software component that understands this message (analogous to USB device classes or mime type strings). If this code is less than 32768, it is considered a 'registered' protocol extension and the corresponding entry should be added to https://github.com/mavlink/mavlink/definition_files/extension_message_ids.xml. Software creators can register blocks of message IDs as needed (useful for GCS specific metadata, etc...). Message_types greater than 32767 are considered local experiments and should not be checked in to any widely distributed codebase. (type:uint16_t)
  23389. payload : Variable length payload. The length must be encoded in the payload as part of the message_type protocol, e.g. by including the length as payload data, or by terminating the payload data with a non-zero marker. This is required in order to reconstruct zero-terminated payloads that are (or otherwise would be) trimmed by MAVLink 2 empty-byte truncation. The entire content of the payload block is opaque unless you understand the encoding message_type. The particular encoding used can be extension specific and might not always be documented as part of the MAVLink specification. (type:uint8_t)
  23390. """
  23391. self.send(self.v2_extension_encode(target_network, target_system, target_component, message_type, payload), force_mavlink1=force_mavlink1)
  23392. def memory_vect_encode(self, address: int, ver: int, type: int, value: Sequence[int]) -> MAVLink_memory_vect_message:
  23393. """
  23394. Send raw controller memory. The use of this message is discouraged for
  23395. normal packets, but a quite efficient way for testing new
  23396. messages and getting experimental debug output.
  23397. address : Starting address of the debug variables (type:uint16_t)
  23398. ver : Version code of the type variable. 0=unknown, type ignored and assumed int16_t. 1=as below (type:uint8_t)
  23399. type : Type code of the memory variables. for ver = 1: 0=16 x int16_t, 1=16 x uint16_t, 2=16 x Q15, 3=16 x 1Q14 (type:uint8_t)
  23400. value : Memory contents at specified address (type:int8_t)
  23401. """
  23402. return MAVLink_memory_vect_message(address, ver, type, value)
  23403. def memory_vect_send(self, address: int, ver: int, type: int, value: Sequence[int], force_mavlink1: bool = False) -> None:
  23404. """
  23405. Send raw controller memory. The use of this message is discouraged for
  23406. normal packets, but a quite efficient way for testing new
  23407. messages and getting experimental debug output.
  23408. address : Starting address of the debug variables (type:uint16_t)
  23409. ver : Version code of the type variable. 0=unknown, type ignored and assumed int16_t. 1=as below (type:uint8_t)
  23410. type : Type code of the memory variables. for ver = 1: 0=16 x int16_t, 1=16 x uint16_t, 2=16 x Q15, 3=16 x 1Q14 (type:uint8_t)
  23411. value : Memory contents at specified address (type:int8_t)
  23412. """
  23413. self.send(self.memory_vect_encode(address, ver, type, value), force_mavlink1=force_mavlink1)
  23414. def debug_vect_encode(self, name: bytes, time_usec: int, x: float, y: float, z: float) -> MAVLink_debug_vect_message:
  23415. """
  23416. To debug something using a named 3D vector.
  23417. name : Name (type:char)
  23418. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  23419. x : x (type:float)
  23420. y : y (type:float)
  23421. z : z (type:float)
  23422. """
  23423. return MAVLink_debug_vect_message(name, time_usec, x, y, z)
  23424. def debug_vect_send(self, name: bytes, time_usec: int, x: float, y: float, z: float, force_mavlink1: bool = False) -> None:
  23425. """
  23426. To debug something using a named 3D vector.
  23427. name : Name (type:char)
  23428. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  23429. x : x (type:float)
  23430. y : y (type:float)
  23431. z : z (type:float)
  23432. """
  23433. self.send(self.debug_vect_encode(name, time_usec, x, y, z), force_mavlink1=force_mavlink1)
  23434. def named_value_float_encode(self, time_boot_ms: int, name: bytes, value: float) -> MAVLink_named_value_float_message:
  23435. """
  23436. Send a key-value pair as float. The use of this message is discouraged
  23437. for normal packets, but a quite efficient way for testing new
  23438. messages and getting experimental debug output.
  23439. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23440. name : Name of the debug variable (type:char)
  23441. value : Floating point value (type:float)
  23442. """
  23443. return MAVLink_named_value_float_message(time_boot_ms, name, value)
  23444. def named_value_float_send(self, time_boot_ms: int, name: bytes, value: float, force_mavlink1: bool = False) -> None:
  23445. """
  23446. Send a key-value pair as float. The use of this message is discouraged
  23447. for normal packets, but a quite efficient way for testing new
  23448. messages and getting experimental debug output.
  23449. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23450. name : Name of the debug variable (type:char)
  23451. value : Floating point value (type:float)
  23452. """
  23453. self.send(self.named_value_float_encode(time_boot_ms, name, value), force_mavlink1=force_mavlink1)
  23454. def named_value_int_encode(self, time_boot_ms: int, name: bytes, value: int) -> MAVLink_named_value_int_message:
  23455. """
  23456. Send a key-value pair as integer. The use of this message is
  23457. discouraged for normal packets, but a quite efficient way for
  23458. testing new messages and getting experimental debug output.
  23459. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23460. name : Name of the debug variable (type:char)
  23461. value : Signed integer value (type:int32_t)
  23462. """
  23463. return MAVLink_named_value_int_message(time_boot_ms, name, value)
  23464. def named_value_int_send(self, time_boot_ms: int, name: bytes, value: int, force_mavlink1: bool = False) -> None:
  23465. """
  23466. Send a key-value pair as integer. The use of this message is
  23467. discouraged for normal packets, but a quite efficient way for
  23468. testing new messages and getting experimental debug output.
  23469. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23470. name : Name of the debug variable (type:char)
  23471. value : Signed integer value (type:int32_t)
  23472. """
  23473. self.send(self.named_value_int_encode(time_boot_ms, name, value), force_mavlink1=force_mavlink1)
  23474. def statustext_encode(self, severity: int, text: bytes, id: int = 0, chunk_seq: int = 0) -> MAVLink_statustext_message:
  23475. """
  23476. Status text message. These messages are printed in yellow in the COMM
  23477. console of QGroundControl. WARNING: They consume quite some
  23478. bandwidth, so use only for important status and error
  23479. messages. If implemented wisely, these messages are buffered
  23480. on the MCU and sent only at a limited rate (e.g. 10 Hz).
  23481. severity : Severity of status. Relies on the definitions within RFC-5424. (type:uint8_t, values:MAV_SEVERITY)
  23482. text : Status text message, without null termination character (type:char)
  23483. id : Unique (opaque) identifier for this statustext message. May be used to reassemble a logical long-statustext message from a sequence of chunks. A value of zero indicates this is the only chunk in the sequence and the message can be emitted immediately. (type:uint16_t)
  23484. chunk_seq : This chunk's sequence number; indexing is from zero. Any null character in the text field is taken to mean this was the last chunk. (type:uint8_t)
  23485. """
  23486. return MAVLink_statustext_message(severity, text, id, chunk_seq)
  23487. def statustext_send(self, severity: int, text: bytes, id: int = 0, chunk_seq: int = 0, force_mavlink1: bool = False) -> None:
  23488. """
  23489. Status text message. These messages are printed in yellow in the COMM
  23490. console of QGroundControl. WARNING: They consume quite some
  23491. bandwidth, so use only for important status and error
  23492. messages. If implemented wisely, these messages are buffered
  23493. on the MCU and sent only at a limited rate (e.g. 10 Hz).
  23494. severity : Severity of status. Relies on the definitions within RFC-5424. (type:uint8_t, values:MAV_SEVERITY)
  23495. text : Status text message, without null termination character (type:char)
  23496. id : Unique (opaque) identifier for this statustext message. May be used to reassemble a logical long-statustext message from a sequence of chunks. A value of zero indicates this is the only chunk in the sequence and the message can be emitted immediately. (type:uint16_t)
  23497. chunk_seq : This chunk's sequence number; indexing is from zero. Any null character in the text field is taken to mean this was the last chunk. (type:uint8_t)
  23498. """
  23499. self.send(self.statustext_encode(severity, text, id, chunk_seq), force_mavlink1=force_mavlink1)
  23500. def debug_encode(self, time_boot_ms: int, ind: int, value: float) -> MAVLink_debug_message:
  23501. """
  23502. Send a debug value. The index is used to discriminate between values.
  23503. These values show up in the plot of QGroundControl as DEBUG N.
  23504. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23505. ind : index of debug variable (type:uint8_t)
  23506. value : DEBUG value (type:float)
  23507. """
  23508. return MAVLink_debug_message(time_boot_ms, ind, value)
  23509. def debug_send(self, time_boot_ms: int, ind: int, value: float, force_mavlink1: bool = False) -> None:
  23510. """
  23511. Send a debug value. The index is used to discriminate between values.
  23512. These values show up in the plot of QGroundControl as DEBUG N.
  23513. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23514. ind : index of debug variable (type:uint8_t)
  23515. value : DEBUG value (type:float)
  23516. """
  23517. self.send(self.debug_encode(time_boot_ms, ind, value), force_mavlink1=force_mavlink1)
  23518. def setup_signing_encode(self, target_system: int, target_component: int, secret_key: Sequence[int], initial_timestamp: int) -> MAVLink_setup_signing_message:
  23519. """
  23520. Setup a MAVLink2 signing key. If called with secret_key of all zero
  23521. and zero initial_timestamp will disable signing
  23522. target_system : system id of the target (type:uint8_t)
  23523. target_component : component ID of the target (type:uint8_t)
  23524. secret_key : signing key (type:uint8_t)
  23525. initial_timestamp : initial timestamp (type:uint64_t)
  23526. """
  23527. return MAVLink_setup_signing_message(target_system, target_component, secret_key, initial_timestamp)
  23528. def setup_signing_send(self, target_system: int, target_component: int, secret_key: Sequence[int], initial_timestamp: int, force_mavlink1: bool = False) -> None:
  23529. """
  23530. Setup a MAVLink2 signing key. If called with secret_key of all zero
  23531. and zero initial_timestamp will disable signing
  23532. target_system : system id of the target (type:uint8_t)
  23533. target_component : component ID of the target (type:uint8_t)
  23534. secret_key : signing key (type:uint8_t)
  23535. initial_timestamp : initial timestamp (type:uint64_t)
  23536. """
  23537. self.send(self.setup_signing_encode(target_system, target_component, secret_key, initial_timestamp), force_mavlink1=force_mavlink1)
  23538. def button_change_encode(self, time_boot_ms: int, last_change_ms: int, state: int) -> MAVLink_button_change_message:
  23539. """
  23540. Report button state change.
  23541. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23542. last_change_ms : Time of last change of button state. [ms] (type:uint32_t)
  23543. state : Bitmap for state of buttons. (type:uint8_t)
  23544. """
  23545. return MAVLink_button_change_message(time_boot_ms, last_change_ms, state)
  23546. def button_change_send(self, time_boot_ms: int, last_change_ms: int, state: int, force_mavlink1: bool = False) -> None:
  23547. """
  23548. Report button state change.
  23549. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23550. last_change_ms : Time of last change of button state. [ms] (type:uint32_t)
  23551. state : Bitmap for state of buttons. (type:uint8_t)
  23552. """
  23553. self.send(self.button_change_encode(time_boot_ms, last_change_ms, state), force_mavlink1=force_mavlink1)
  23554. def play_tune_encode(self, target_system: int, target_component: int, tune: bytes, tune2: bytes = b"") -> MAVLink_play_tune_message:
  23555. """
  23556. Control vehicle tone generation (buzzer).
  23557. target_system : System ID (type:uint8_t)
  23558. target_component : Component ID (type:uint8_t)
  23559. tune : tune in board specific format (type:char)
  23560. tune2 : tune extension (appended to tune) (type:char)
  23561. """
  23562. return MAVLink_play_tune_message(target_system, target_component, tune, tune2)
  23563. def play_tune_send(self, target_system: int, target_component: int, tune: bytes, tune2: bytes = b"", force_mavlink1: bool = False) -> None:
  23564. """
  23565. Control vehicle tone generation (buzzer).
  23566. target_system : System ID (type:uint8_t)
  23567. target_component : Component ID (type:uint8_t)
  23568. tune : tune in board specific format (type:char)
  23569. tune2 : tune extension (appended to tune) (type:char)
  23570. """
  23571. self.send(self.play_tune_encode(target_system, target_component, tune, tune2), force_mavlink1=force_mavlink1)
  23572. def camera_information_encode(self, time_boot_ms: int, vendor_name: Sequence[int], model_name: Sequence[int], firmware_version: int, focal_length: float, sensor_size_h: float, sensor_size_v: float, resolution_h: int, resolution_v: int, lens_id: int, flags: int, cam_definition_version: int, cam_definition_uri: bytes, gimbal_device_id: int = 0) -> MAVLink_camera_information_message:
  23573. """
  23574. Information about a camera. Can be requested with a
  23575. MAV_CMD_REQUEST_MESSAGE command.
  23576. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23577. vendor_name : Name of the camera vendor (type:uint8_t)
  23578. model_name : Name of the camera model (type:uint8_t)
  23579. firmware_version : Version of the camera firmware, encoded as: (Dev & 0xff) << 24 | (Patch & 0xff) << 16 | (Minor & 0xff) << 8 | (Major & 0xff). Use 0 if not known. (type:uint32_t)
  23580. focal_length : Focal length. Use NaN if not known. [mm] (type:float)
  23581. sensor_size_h : Image sensor size horizontal. Use NaN if not known. [mm] (type:float)
  23582. sensor_size_v : Image sensor size vertical. Use NaN if not known. [mm] (type:float)
  23583. resolution_h : Horizontal image resolution. Use 0 if not known. [pix] (type:uint16_t)
  23584. resolution_v : Vertical image resolution. Use 0 if not known. [pix] (type:uint16_t)
  23585. lens_id : Reserved for a lens ID. Use 0 if not known. (type:uint8_t)
  23586. flags : Bitmap of camera capability flags. (type:uint32_t, values:CAMERA_CAP_FLAGS)
  23587. cam_definition_version : Camera definition version (iteration). Use 0 if not known. (type:uint16_t)
  23588. cam_definition_uri : Camera definition URI (if any, otherwise only basic functions will be available). HTTP- (http://) and MAVLink FTP- (mavlinkftp://) formatted URIs are allowed (and both must be supported by any GCS that implements the Camera Protocol). The definition file may be xz compressed, which will be indicated by the file extension .xml.xz (a GCS that implements the protocol must support decompressing the file). The string needs to be zero terminated. Use a zero-length string if not known. (type:char)
  23589. gimbal_device_id : Gimbal id of a gimbal associated with this camera. This is the component id of the gimbal device, or 1-6 for non mavlink gimbals. Use 0 if no gimbal is associated with the camera. (type:uint8_t)
  23590. """
  23591. return MAVLink_camera_information_message(time_boot_ms, vendor_name, model_name, firmware_version, focal_length, sensor_size_h, sensor_size_v, resolution_h, resolution_v, lens_id, flags, cam_definition_version, cam_definition_uri, gimbal_device_id)
  23592. def camera_information_send(self, time_boot_ms: int, vendor_name: Sequence[int], model_name: Sequence[int], firmware_version: int, focal_length: float, sensor_size_h: float, sensor_size_v: float, resolution_h: int, resolution_v: int, lens_id: int, flags: int, cam_definition_version: int, cam_definition_uri: bytes, gimbal_device_id: int = 0, force_mavlink1: bool = False) -> None:
  23593. """
  23594. Information about a camera. Can be requested with a
  23595. MAV_CMD_REQUEST_MESSAGE command.
  23596. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23597. vendor_name : Name of the camera vendor (type:uint8_t)
  23598. model_name : Name of the camera model (type:uint8_t)
  23599. firmware_version : Version of the camera firmware, encoded as: (Dev & 0xff) << 24 | (Patch & 0xff) << 16 | (Minor & 0xff) << 8 | (Major & 0xff). Use 0 if not known. (type:uint32_t)
  23600. focal_length : Focal length. Use NaN if not known. [mm] (type:float)
  23601. sensor_size_h : Image sensor size horizontal. Use NaN if not known. [mm] (type:float)
  23602. sensor_size_v : Image sensor size vertical. Use NaN if not known. [mm] (type:float)
  23603. resolution_h : Horizontal image resolution. Use 0 if not known. [pix] (type:uint16_t)
  23604. resolution_v : Vertical image resolution. Use 0 if not known. [pix] (type:uint16_t)
  23605. lens_id : Reserved for a lens ID. Use 0 if not known. (type:uint8_t)
  23606. flags : Bitmap of camera capability flags. (type:uint32_t, values:CAMERA_CAP_FLAGS)
  23607. cam_definition_version : Camera definition version (iteration). Use 0 if not known. (type:uint16_t)
  23608. cam_definition_uri : Camera definition URI (if any, otherwise only basic functions will be available). HTTP- (http://) and MAVLink FTP- (mavlinkftp://) formatted URIs are allowed (and both must be supported by any GCS that implements the Camera Protocol). The definition file may be xz compressed, which will be indicated by the file extension .xml.xz (a GCS that implements the protocol must support decompressing the file). The string needs to be zero terminated. Use a zero-length string if not known. (type:char)
  23609. gimbal_device_id : Gimbal id of a gimbal associated with this camera. This is the component id of the gimbal device, or 1-6 for non mavlink gimbals. Use 0 if no gimbal is associated with the camera. (type:uint8_t)
  23610. """
  23611. self.send(self.camera_information_encode(time_boot_ms, vendor_name, model_name, firmware_version, focal_length, sensor_size_h, sensor_size_v, resolution_h, resolution_v, lens_id, flags, cam_definition_version, cam_definition_uri, gimbal_device_id), force_mavlink1=force_mavlink1)
  23612. def camera_settings_encode(self, time_boot_ms: int, mode_id: int, zoomLevel: float = 0, focusLevel: float = 0) -> MAVLink_camera_settings_message:
  23613. """
  23614. Settings of a camera. Can be requested with a MAV_CMD_REQUEST_MESSAGE
  23615. command.
  23616. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23617. mode_id : Camera mode (type:uint8_t, values:CAMERA_MODE)
  23618. zoomLevel : Current zoom level as a percentage of the full range (0.0 to 100.0, NaN if not known) (type:float)
  23619. focusLevel : Current focus level as a percentage of the full range (0.0 to 100.0, NaN if not known) (type:float)
  23620. """
  23621. return MAVLink_camera_settings_message(time_boot_ms, mode_id, zoomLevel, focusLevel)
  23622. def camera_settings_send(self, time_boot_ms: int, mode_id: int, zoomLevel: float = 0, focusLevel: float = 0, force_mavlink1: bool = False) -> None:
  23623. """
  23624. Settings of a camera. Can be requested with a MAV_CMD_REQUEST_MESSAGE
  23625. command.
  23626. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23627. mode_id : Camera mode (type:uint8_t, values:CAMERA_MODE)
  23628. zoomLevel : Current zoom level as a percentage of the full range (0.0 to 100.0, NaN if not known) (type:float)
  23629. focusLevel : Current focus level as a percentage of the full range (0.0 to 100.0, NaN if not known) (type:float)
  23630. """
  23631. self.send(self.camera_settings_encode(time_boot_ms, mode_id, zoomLevel, focusLevel), force_mavlink1=force_mavlink1)
  23632. def storage_information_encode(self, time_boot_ms: int, storage_id: int, storage_count: int, status: int, total_capacity: float, used_capacity: float, available_capacity: float, read_speed: float, write_speed: float, type: int = 0, name: bytes = b"", storage_usage: int = 0) -> MAVLink_storage_information_message:
  23633. """
  23634. Information about a storage medium. This message is sent in response
  23635. to a request with MAV_CMD_REQUEST_MESSAGE and whenever the
  23636. status of the storage changes (STORAGE_STATUS). Use
  23637. MAV_CMD_REQUEST_MESSAGE.param2 to indicate the index/id of
  23638. requested storage: 0 for all, 1 for first, 2 for second, etc.
  23639. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23640. storage_id : Storage ID (1 for first, 2 for second, etc.) (type:uint8_t)
  23641. storage_count : Number of storage devices (type:uint8_t)
  23642. status : Status of storage (type:uint8_t, values:STORAGE_STATUS)
  23643. total_capacity : Total capacity. If storage is not ready (STORAGE_STATUS_READY) value will be ignored. [MiB] (type:float)
  23644. used_capacity : Used capacity. If storage is not ready (STORAGE_STATUS_READY) value will be ignored. [MiB] (type:float)
  23645. available_capacity : Available storage capacity. If storage is not ready (STORAGE_STATUS_READY) value will be ignored. [MiB] (type:float)
  23646. read_speed : Read speed. [MiB/s] (type:float)
  23647. write_speed : Write speed. [MiB/s] (type:float)
  23648. type : Type of storage (type:uint8_t, values:STORAGE_TYPE)
  23649. name : Textual storage name to be used in UI (microSD 1, Internal Memory, etc.) This is a NULL terminated string. If it is exactly 32 characters long, add a terminating NULL. If this string is empty, the generic type is shown to the user. (type:char)
  23650. storage_usage : Flags indicating whether this instance is preferred storage for photos, videos, etc.
  23651. Note: Implementations should initially set the flags on the system-default storage id used for saving media (if possible/supported).
  23652. This setting can then be overridden using MAV_CMD_SET_STORAGE_USAGE.
  23653. If the media usage flags are not set, a GCS may assume storage ID 1 is the default storage for all media types. (type:uint8_t, values:STORAGE_USAGE_FLAG)
  23654. """
  23655. return MAVLink_storage_information_message(time_boot_ms, storage_id, storage_count, status, total_capacity, used_capacity, available_capacity, read_speed, write_speed, type, name, storage_usage)
  23656. def storage_information_send(self, time_boot_ms: int, storage_id: int, storage_count: int, status: int, total_capacity: float, used_capacity: float, available_capacity: float, read_speed: float, write_speed: float, type: int = 0, name: bytes = b"", storage_usage: int = 0, force_mavlink1: bool = False) -> None:
  23657. """
  23658. Information about a storage medium. This message is sent in response
  23659. to a request with MAV_CMD_REQUEST_MESSAGE and whenever the
  23660. status of the storage changes (STORAGE_STATUS). Use
  23661. MAV_CMD_REQUEST_MESSAGE.param2 to indicate the index/id of
  23662. requested storage: 0 for all, 1 for first, 2 for second, etc.
  23663. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23664. storage_id : Storage ID (1 for first, 2 for second, etc.) (type:uint8_t)
  23665. storage_count : Number of storage devices (type:uint8_t)
  23666. status : Status of storage (type:uint8_t, values:STORAGE_STATUS)
  23667. total_capacity : Total capacity. If storage is not ready (STORAGE_STATUS_READY) value will be ignored. [MiB] (type:float)
  23668. used_capacity : Used capacity. If storage is not ready (STORAGE_STATUS_READY) value will be ignored. [MiB] (type:float)
  23669. available_capacity : Available storage capacity. If storage is not ready (STORAGE_STATUS_READY) value will be ignored. [MiB] (type:float)
  23670. read_speed : Read speed. [MiB/s] (type:float)
  23671. write_speed : Write speed. [MiB/s] (type:float)
  23672. type : Type of storage (type:uint8_t, values:STORAGE_TYPE)
  23673. name : Textual storage name to be used in UI (microSD 1, Internal Memory, etc.) This is a NULL terminated string. If it is exactly 32 characters long, add a terminating NULL. If this string is empty, the generic type is shown to the user. (type:char)
  23674. storage_usage : Flags indicating whether this instance is preferred storage for photos, videos, etc.
  23675. Note: Implementations should initially set the flags on the system-default storage id used for saving media (if possible/supported).
  23676. This setting can then be overridden using MAV_CMD_SET_STORAGE_USAGE.
  23677. If the media usage flags are not set, a GCS may assume storage ID 1 is the default storage for all media types. (type:uint8_t, values:STORAGE_USAGE_FLAG)
  23678. """
  23679. self.send(self.storage_information_encode(time_boot_ms, storage_id, storage_count, status, total_capacity, used_capacity, available_capacity, read_speed, write_speed, type, name, storage_usage), force_mavlink1=force_mavlink1)
  23680. def camera_capture_status_encode(self, time_boot_ms: int, image_status: int, video_status: int, image_interval: float, recording_time_ms: int, available_capacity: float, image_count: int = 0) -> MAVLink_camera_capture_status_message:
  23681. """
  23682. Information about the status of a capture. Can be requested with a
  23683. MAV_CMD_REQUEST_MESSAGE command.
  23684. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23685. image_status : Current status of image capturing (0: idle, 1: capture in progress, 2: interval set but idle, 3: interval set and capture in progress) (type:uint8_t)
  23686. video_status : Current status of video capturing (0: idle, 1: capture in progress) (type:uint8_t)
  23687. image_interval : Image capture interval [s] (type:float)
  23688. recording_time_ms : Elapsed time since recording started (0: Not supported/available). A GCS should compute recording time and use non-zero values of this field to correct any discrepancy. [ms] (type:uint32_t)
  23689. available_capacity : Available storage capacity. [MiB] (type:float)
  23690. image_count : Total number of images captured ('forever', or until reset using MAV_CMD_STORAGE_FORMAT). (type:int32_t)
  23691. """
  23692. return MAVLink_camera_capture_status_message(time_boot_ms, image_status, video_status, image_interval, recording_time_ms, available_capacity, image_count)
  23693. def camera_capture_status_send(self, time_boot_ms: int, image_status: int, video_status: int, image_interval: float, recording_time_ms: int, available_capacity: float, image_count: int = 0, force_mavlink1: bool = False) -> None:
  23694. """
  23695. Information about the status of a capture. Can be requested with a
  23696. MAV_CMD_REQUEST_MESSAGE command.
  23697. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23698. image_status : Current status of image capturing (0: idle, 1: capture in progress, 2: interval set but idle, 3: interval set and capture in progress) (type:uint8_t)
  23699. video_status : Current status of video capturing (0: idle, 1: capture in progress) (type:uint8_t)
  23700. image_interval : Image capture interval [s] (type:float)
  23701. recording_time_ms : Elapsed time since recording started (0: Not supported/available). A GCS should compute recording time and use non-zero values of this field to correct any discrepancy. [ms] (type:uint32_t)
  23702. available_capacity : Available storage capacity. [MiB] (type:float)
  23703. image_count : Total number of images captured ('forever', or until reset using MAV_CMD_STORAGE_FORMAT). (type:int32_t)
  23704. """
  23705. self.send(self.camera_capture_status_encode(time_boot_ms, image_status, video_status, image_interval, recording_time_ms, available_capacity, image_count), force_mavlink1=force_mavlink1)
  23706. def camera_image_captured_encode(self, time_boot_ms: int, time_utc: int, camera_id: int, lat: int, lon: int, alt: int, relative_alt: int, q: Sequence[float], image_index: int, capture_result: int, file_url: bytes) -> MAVLink_camera_image_captured_message:
  23707. """
  23708. Information about a captured image. This is emitted every time a
  23709. message is captured. MAV_CMD_REQUEST_MESSAGE can be
  23710. used to (re)request this message for a specific sequence
  23711. number or range of sequence numbers:
  23712. MAV_CMD_REQUEST_MESSAGE.param2 indicates the sequence number
  23713. the first image to send, or set to -1 to send the message for
  23714. all sequence numbers. MAV_CMD_REQUEST_MESSAGE.param3
  23715. is used to specify a range of messages to send: set to
  23716. 0 (default) to send just the the message for the sequence
  23717. number in param 2, set to -1 to send the message for
  23718. the sequence number in param 2 and all the following sequence
  23719. numbers, set to the sequence number of the final
  23720. message in the range.
  23721. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23722. time_utc : Timestamp (time since UNIX epoch) in UTC. 0 for unknown. [us] (type:uint64_t)
  23723. camera_id : Deprecated/unused. Component IDs are used to differentiate multiple cameras. (type:uint8_t)
  23724. lat : Latitude where image was taken [degE7] (type:int32_t)
  23725. lon : Longitude where capture was taken [degE7] (type:int32_t)
  23726. alt : Altitude (MSL) where image was taken [mm] (type:int32_t)
  23727. relative_alt : Altitude above ground [mm] (type:int32_t)
  23728. q : Quaternion of camera orientation (w, x, y, z order, zero-rotation is 1, 0, 0, 0) (type:float)
  23729. image_index : Zero based index of this image (i.e. a new image will have index CAMERA_CAPTURE_STATUS.image count -1) (type:int32_t)
  23730. capture_result : Boolean indicating success (1) or failure (0) while capturing this image. (type:int8_t)
  23731. file_url : URL of image taken. Either local storage or http://foo.jpg if camera provides an HTTP interface. (type:char)
  23732. """
  23733. return MAVLink_camera_image_captured_message(time_boot_ms, time_utc, camera_id, lat, lon, alt, relative_alt, q, image_index, capture_result, file_url)
  23734. def camera_image_captured_send(self, time_boot_ms: int, time_utc: int, camera_id: int, lat: int, lon: int, alt: int, relative_alt: int, q: Sequence[float], image_index: int, capture_result: int, file_url: bytes, force_mavlink1: bool = False) -> None:
  23735. """
  23736. Information about a captured image. This is emitted every time a
  23737. message is captured. MAV_CMD_REQUEST_MESSAGE can be
  23738. used to (re)request this message for a specific sequence
  23739. number or range of sequence numbers:
  23740. MAV_CMD_REQUEST_MESSAGE.param2 indicates the sequence number
  23741. the first image to send, or set to -1 to send the message for
  23742. all sequence numbers. MAV_CMD_REQUEST_MESSAGE.param3
  23743. is used to specify a range of messages to send: set to
  23744. 0 (default) to send just the the message for the sequence
  23745. number in param 2, set to -1 to send the message for
  23746. the sequence number in param 2 and all the following sequence
  23747. numbers, set to the sequence number of the final
  23748. message in the range.
  23749. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23750. time_utc : Timestamp (time since UNIX epoch) in UTC. 0 for unknown. [us] (type:uint64_t)
  23751. camera_id : Deprecated/unused. Component IDs are used to differentiate multiple cameras. (type:uint8_t)
  23752. lat : Latitude where image was taken [degE7] (type:int32_t)
  23753. lon : Longitude where capture was taken [degE7] (type:int32_t)
  23754. alt : Altitude (MSL) where image was taken [mm] (type:int32_t)
  23755. relative_alt : Altitude above ground [mm] (type:int32_t)
  23756. q : Quaternion of camera orientation (w, x, y, z order, zero-rotation is 1, 0, 0, 0) (type:float)
  23757. image_index : Zero based index of this image (i.e. a new image will have index CAMERA_CAPTURE_STATUS.image count -1) (type:int32_t)
  23758. capture_result : Boolean indicating success (1) or failure (0) while capturing this image. (type:int8_t)
  23759. file_url : URL of image taken. Either local storage or http://foo.jpg if camera provides an HTTP interface. (type:char)
  23760. """
  23761. self.send(self.camera_image_captured_encode(time_boot_ms, time_utc, camera_id, lat, lon, alt, relative_alt, q, image_index, capture_result, file_url), force_mavlink1=force_mavlink1)
  23762. def flight_information_encode(self, time_boot_ms: int, arming_time_utc: int, takeoff_time_utc: int, flight_uuid: int, landing_time: int = 0) -> MAVLink_flight_information_message:
  23763. """
  23764. Flight information. This includes time since boot for arm,
  23765. takeoff, and land, and a flight number. Takeoff and
  23766. landing values reset to zero on arm. This can be
  23767. requested using MAV_CMD_REQUEST_MESSAGE. Note, some
  23768. fields are misnamed - timestamps are from boot (not UTC) and
  23769. the flight_uuid is a sequence number.
  23770. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23771. arming_time_utc : Timestamp at arming (since system boot). Set to 0 on boot. Set value on arming. Note, field is misnamed UTC. [us] (type:uint64_t)
  23772. takeoff_time_utc : Timestamp at takeoff (since system boot). Set to 0 at boot and on arming. Note, field is misnamed UTC. [us] (type:uint64_t)
  23773. flight_uuid : Flight number. Note, field is misnamed UUID. (type:uint64_t)
  23774. landing_time : Timestamp at landing (in ms since system boot). Set to 0 at boot and on arming. [ms] (type:uint32_t)
  23775. """
  23776. return MAVLink_flight_information_message(time_boot_ms, arming_time_utc, takeoff_time_utc, flight_uuid, landing_time)
  23777. def flight_information_send(self, time_boot_ms: int, arming_time_utc: int, takeoff_time_utc: int, flight_uuid: int, landing_time: int = 0, force_mavlink1: bool = False) -> None:
  23778. """
  23779. Flight information. This includes time since boot for arm,
  23780. takeoff, and land, and a flight number. Takeoff and
  23781. landing values reset to zero on arm. This can be
  23782. requested using MAV_CMD_REQUEST_MESSAGE. Note, some
  23783. fields are misnamed - timestamps are from boot (not UTC) and
  23784. the flight_uuid is a sequence number.
  23785. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23786. arming_time_utc : Timestamp at arming (since system boot). Set to 0 on boot. Set value on arming. Note, field is misnamed UTC. [us] (type:uint64_t)
  23787. takeoff_time_utc : Timestamp at takeoff (since system boot). Set to 0 at boot and on arming. Note, field is misnamed UTC. [us] (type:uint64_t)
  23788. flight_uuid : Flight number. Note, field is misnamed UUID. (type:uint64_t)
  23789. landing_time : Timestamp at landing (in ms since system boot). Set to 0 at boot and on arming. [ms] (type:uint32_t)
  23790. """
  23791. self.send(self.flight_information_encode(time_boot_ms, arming_time_utc, takeoff_time_utc, flight_uuid, landing_time), force_mavlink1=force_mavlink1)
  23792. def mount_orientation_encode(self, time_boot_ms: int, roll: float, pitch: float, yaw: float, yaw_absolute: float = 0) -> MAVLink_mount_orientation_message:
  23793. """
  23794. Orientation of a mount
  23795. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23796. roll : Roll in global frame (set to NaN for invalid). [deg] (type:float)
  23797. pitch : Pitch in global frame (set to NaN for invalid). [deg] (type:float)
  23798. yaw : Yaw relative to vehicle (set to NaN for invalid). [deg] (type:float)
  23799. yaw_absolute : Yaw in absolute frame relative to Earth's North, north is 0 (set to NaN for invalid). [deg] (type:float)
  23800. """
  23801. return MAVLink_mount_orientation_message(time_boot_ms, roll, pitch, yaw, yaw_absolute)
  23802. def mount_orientation_send(self, time_boot_ms: int, roll: float, pitch: float, yaw: float, yaw_absolute: float = 0, force_mavlink1: bool = False) -> None:
  23803. """
  23804. Orientation of a mount
  23805. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23806. roll : Roll in global frame (set to NaN for invalid). [deg] (type:float)
  23807. pitch : Pitch in global frame (set to NaN for invalid). [deg] (type:float)
  23808. yaw : Yaw relative to vehicle (set to NaN for invalid). [deg] (type:float)
  23809. yaw_absolute : Yaw in absolute frame relative to Earth's North, north is 0 (set to NaN for invalid). [deg] (type:float)
  23810. """
  23811. self.send(self.mount_orientation_encode(time_boot_ms, roll, pitch, yaw, yaw_absolute), force_mavlink1=force_mavlink1)
  23812. def logging_data_encode(self, target_system: int, target_component: int, sequence: int, length: int, first_message_offset: int, data: Sequence[int]) -> MAVLink_logging_data_message:
  23813. """
  23814. A message containing logged data (see also MAV_CMD_LOGGING_START)
  23815. target_system : system ID of the target (type:uint8_t)
  23816. target_component : component ID of the target (type:uint8_t)
  23817. sequence : sequence number (can wrap) (type:uint16_t)
  23818. length : data length [bytes] (type:uint8_t)
  23819. first_message_offset : offset into data where first message starts. This can be used for recovery, when a previous message got lost (set to UINT8_MAX if no start exists). [bytes] (type:uint8_t)
  23820. data : logged data (type:uint8_t)
  23821. """
  23822. return MAVLink_logging_data_message(target_system, target_component, sequence, length, first_message_offset, data)
  23823. def logging_data_send(self, target_system: int, target_component: int, sequence: int, length: int, first_message_offset: int, data: Sequence[int], force_mavlink1: bool = False) -> None:
  23824. """
  23825. A message containing logged data (see also MAV_CMD_LOGGING_START)
  23826. target_system : system ID of the target (type:uint8_t)
  23827. target_component : component ID of the target (type:uint8_t)
  23828. sequence : sequence number (can wrap) (type:uint16_t)
  23829. length : data length [bytes] (type:uint8_t)
  23830. first_message_offset : offset into data where first message starts. This can be used for recovery, when a previous message got lost (set to UINT8_MAX if no start exists). [bytes] (type:uint8_t)
  23831. data : logged data (type:uint8_t)
  23832. """
  23833. self.send(self.logging_data_encode(target_system, target_component, sequence, length, first_message_offset, data), force_mavlink1=force_mavlink1)
  23834. def logging_data_acked_encode(self, target_system: int, target_component: int, sequence: int, length: int, first_message_offset: int, data: Sequence[int]) -> MAVLink_logging_data_acked_message:
  23835. """
  23836. A message containing logged data which requires a LOGGING_ACK to be
  23837. sent back
  23838. target_system : system ID of the target (type:uint8_t)
  23839. target_component : component ID of the target (type:uint8_t)
  23840. sequence : sequence number (can wrap) (type:uint16_t)
  23841. length : data length [bytes] (type:uint8_t)
  23842. first_message_offset : offset into data where first message starts. This can be used for recovery, when a previous message got lost (set to UINT8_MAX if no start exists). [bytes] (type:uint8_t)
  23843. data : logged data (type:uint8_t)
  23844. """
  23845. return MAVLink_logging_data_acked_message(target_system, target_component, sequence, length, first_message_offset, data)
  23846. def logging_data_acked_send(self, target_system: int, target_component: int, sequence: int, length: int, first_message_offset: int, data: Sequence[int], force_mavlink1: bool = False) -> None:
  23847. """
  23848. A message containing logged data which requires a LOGGING_ACK to be
  23849. sent back
  23850. target_system : system ID of the target (type:uint8_t)
  23851. target_component : component ID of the target (type:uint8_t)
  23852. sequence : sequence number (can wrap) (type:uint16_t)
  23853. length : data length [bytes] (type:uint8_t)
  23854. first_message_offset : offset into data where first message starts. This can be used for recovery, when a previous message got lost (set to UINT8_MAX if no start exists). [bytes] (type:uint8_t)
  23855. data : logged data (type:uint8_t)
  23856. """
  23857. self.send(self.logging_data_acked_encode(target_system, target_component, sequence, length, first_message_offset, data), force_mavlink1=force_mavlink1)
  23858. def logging_ack_encode(self, target_system: int, target_component: int, sequence: int) -> MAVLink_logging_ack_message:
  23859. """
  23860. An ack for a LOGGING_DATA_ACKED message
  23861. target_system : system ID of the target (type:uint8_t)
  23862. target_component : component ID of the target (type:uint8_t)
  23863. sequence : sequence number (must match the one in LOGGING_DATA_ACKED) (type:uint16_t)
  23864. """
  23865. return MAVLink_logging_ack_message(target_system, target_component, sequence)
  23866. def logging_ack_send(self, target_system: int, target_component: int, sequence: int, force_mavlink1: bool = False) -> None:
  23867. """
  23868. An ack for a LOGGING_DATA_ACKED message
  23869. target_system : system ID of the target (type:uint8_t)
  23870. target_component : component ID of the target (type:uint8_t)
  23871. sequence : sequence number (must match the one in LOGGING_DATA_ACKED) (type:uint16_t)
  23872. """
  23873. self.send(self.logging_ack_encode(target_system, target_component, sequence), force_mavlink1=force_mavlink1)
  23874. def video_stream_information_encode(self, stream_id: int, count: int, type: int, flags: int, framerate: float, resolution_h: int, resolution_v: int, bitrate: int, rotation: int, hfov: int, name: bytes, uri: bytes) -> MAVLink_video_stream_information_message:
  23875. """
  23876. Information about video stream. It may be requested using
  23877. MAV_CMD_REQUEST_MESSAGE, where param2 indicates the video
  23878. stream id: 0 for all streams, 1 for first, 2 for second, etc.
  23879. stream_id : Video Stream ID (1 for first, 2 for second, etc.) (type:uint8_t)
  23880. count : Number of streams available. (type:uint8_t)
  23881. type : Type of stream. (type:uint8_t, values:VIDEO_STREAM_TYPE)
  23882. flags : Bitmap of stream status flags. (type:uint16_t, values:VIDEO_STREAM_STATUS_FLAGS)
  23883. framerate : Frame rate. [Hz] (type:float)
  23884. resolution_h : Horizontal resolution. [pix] (type:uint16_t)
  23885. resolution_v : Vertical resolution. [pix] (type:uint16_t)
  23886. bitrate : Bit rate. [bits/s] (type:uint32_t)
  23887. rotation : Video image rotation clockwise. [deg] (type:uint16_t)
  23888. hfov : Horizontal Field of view. [deg] (type:uint16_t)
  23889. name : Stream name. (type:char)
  23890. uri : Video stream URI (TCP or RTSP URI ground station should connect to) or port number (UDP port ground station should listen to). (type:char)
  23891. """
  23892. return MAVLink_video_stream_information_message(stream_id, count, type, flags, framerate, resolution_h, resolution_v, bitrate, rotation, hfov, name, uri)
  23893. def video_stream_information_send(self, stream_id: int, count: int, type: int, flags: int, framerate: float, resolution_h: int, resolution_v: int, bitrate: int, rotation: int, hfov: int, name: bytes, uri: bytes, force_mavlink1: bool = False) -> None:
  23894. """
  23895. Information about video stream. It may be requested using
  23896. MAV_CMD_REQUEST_MESSAGE, where param2 indicates the video
  23897. stream id: 0 for all streams, 1 for first, 2 for second, etc.
  23898. stream_id : Video Stream ID (1 for first, 2 for second, etc.) (type:uint8_t)
  23899. count : Number of streams available. (type:uint8_t)
  23900. type : Type of stream. (type:uint8_t, values:VIDEO_STREAM_TYPE)
  23901. flags : Bitmap of stream status flags. (type:uint16_t, values:VIDEO_STREAM_STATUS_FLAGS)
  23902. framerate : Frame rate. [Hz] (type:float)
  23903. resolution_h : Horizontal resolution. [pix] (type:uint16_t)
  23904. resolution_v : Vertical resolution. [pix] (type:uint16_t)
  23905. bitrate : Bit rate. [bits/s] (type:uint32_t)
  23906. rotation : Video image rotation clockwise. [deg] (type:uint16_t)
  23907. hfov : Horizontal Field of view. [deg] (type:uint16_t)
  23908. name : Stream name. (type:char)
  23909. uri : Video stream URI (TCP or RTSP URI ground station should connect to) or port number (UDP port ground station should listen to). (type:char)
  23910. """
  23911. self.send(self.video_stream_information_encode(stream_id, count, type, flags, framerate, resolution_h, resolution_v, bitrate, rotation, hfov, name, uri), force_mavlink1=force_mavlink1)
  23912. def video_stream_status_encode(self, stream_id: int, flags: int, framerate: float, resolution_h: int, resolution_v: int, bitrate: int, rotation: int, hfov: int) -> MAVLink_video_stream_status_message:
  23913. """
  23914. Information about the status of a video stream. It may be requested
  23915. using MAV_CMD_REQUEST_MESSAGE.
  23916. stream_id : Video Stream ID (1 for first, 2 for second, etc.) (type:uint8_t)
  23917. flags : Bitmap of stream status flags (type:uint16_t, values:VIDEO_STREAM_STATUS_FLAGS)
  23918. framerate : Frame rate [Hz] (type:float)
  23919. resolution_h : Horizontal resolution [pix] (type:uint16_t)
  23920. resolution_v : Vertical resolution [pix] (type:uint16_t)
  23921. bitrate : Bit rate [bits/s] (type:uint32_t)
  23922. rotation : Video image rotation clockwise [deg] (type:uint16_t)
  23923. hfov : Horizontal Field of view [deg] (type:uint16_t)
  23924. """
  23925. return MAVLink_video_stream_status_message(stream_id, flags, framerate, resolution_h, resolution_v, bitrate, rotation, hfov)
  23926. def video_stream_status_send(self, stream_id: int, flags: int, framerate: float, resolution_h: int, resolution_v: int, bitrate: int, rotation: int, hfov: int, force_mavlink1: bool = False) -> None:
  23927. """
  23928. Information about the status of a video stream. It may be requested
  23929. using MAV_CMD_REQUEST_MESSAGE.
  23930. stream_id : Video Stream ID (1 for first, 2 for second, etc.) (type:uint8_t)
  23931. flags : Bitmap of stream status flags (type:uint16_t, values:VIDEO_STREAM_STATUS_FLAGS)
  23932. framerate : Frame rate [Hz] (type:float)
  23933. resolution_h : Horizontal resolution [pix] (type:uint16_t)
  23934. resolution_v : Vertical resolution [pix] (type:uint16_t)
  23935. bitrate : Bit rate [bits/s] (type:uint32_t)
  23936. rotation : Video image rotation clockwise [deg] (type:uint16_t)
  23937. hfov : Horizontal Field of view [deg] (type:uint16_t)
  23938. """
  23939. self.send(self.video_stream_status_encode(stream_id, flags, framerate, resolution_h, resolution_v, bitrate, rotation, hfov), force_mavlink1=force_mavlink1)
  23940. def camera_fov_status_encode(self, time_boot_ms: int, lat_camera: int, lon_camera: int, alt_camera: int, lat_image: int, lon_image: int, alt_image: int, q: Sequence[float], hfov: float, vfov: float) -> MAVLink_camera_fov_status_message:
  23941. """
  23942. Information about the field of view of a camera. Can be requested with
  23943. a MAV_CMD_REQUEST_MESSAGE command.
  23944. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23945. lat_camera : Latitude of camera (INT32_MAX if unknown). [degE7] (type:int32_t)
  23946. lon_camera : Longitude of camera (INT32_MAX if unknown). [degE7] (type:int32_t)
  23947. alt_camera : Altitude (MSL) of camera (INT32_MAX if unknown). [mm] (type:int32_t)
  23948. lat_image : Latitude of center of image (INT32_MAX if unknown, INT32_MIN if at infinity, not intersecting with horizon). [degE7] (type:int32_t)
  23949. lon_image : Longitude of center of image (INT32_MAX if unknown, INT32_MIN if at infinity, not intersecting with horizon). [degE7] (type:int32_t)
  23950. alt_image : Altitude (MSL) of center of image (INT32_MAX if unknown, INT32_MIN if at infinity, not intersecting with horizon). [mm] (type:int32_t)
  23951. q : Quaternion of camera orientation (w, x, y, z order, zero-rotation is 1, 0, 0, 0) (type:float)
  23952. hfov : Horizontal field of view (NaN if unknown). [deg] (type:float)
  23953. vfov : Vertical field of view (NaN if unknown). [deg] (type:float)
  23954. """
  23955. return MAVLink_camera_fov_status_message(time_boot_ms, lat_camera, lon_camera, alt_camera, lat_image, lon_image, alt_image, q, hfov, vfov)
  23956. def camera_fov_status_send(self, time_boot_ms: int, lat_camera: int, lon_camera: int, alt_camera: int, lat_image: int, lon_image: int, alt_image: int, q: Sequence[float], hfov: float, vfov: float, force_mavlink1: bool = False) -> None:
  23957. """
  23958. Information about the field of view of a camera. Can be requested with
  23959. a MAV_CMD_REQUEST_MESSAGE command.
  23960. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23961. lat_camera : Latitude of camera (INT32_MAX if unknown). [degE7] (type:int32_t)
  23962. lon_camera : Longitude of camera (INT32_MAX if unknown). [degE7] (type:int32_t)
  23963. alt_camera : Altitude (MSL) of camera (INT32_MAX if unknown). [mm] (type:int32_t)
  23964. lat_image : Latitude of center of image (INT32_MAX if unknown, INT32_MIN if at infinity, not intersecting with horizon). [degE7] (type:int32_t)
  23965. lon_image : Longitude of center of image (INT32_MAX if unknown, INT32_MIN if at infinity, not intersecting with horizon). [degE7] (type:int32_t)
  23966. alt_image : Altitude (MSL) of center of image (INT32_MAX if unknown, INT32_MIN if at infinity, not intersecting with horizon). [mm] (type:int32_t)
  23967. q : Quaternion of camera orientation (w, x, y, z order, zero-rotation is 1, 0, 0, 0) (type:float)
  23968. hfov : Horizontal field of view (NaN if unknown). [deg] (type:float)
  23969. vfov : Vertical field of view (NaN if unknown). [deg] (type:float)
  23970. """
  23971. self.send(self.camera_fov_status_encode(time_boot_ms, lat_camera, lon_camera, alt_camera, lat_image, lon_image, alt_image, q, hfov, vfov), force_mavlink1=force_mavlink1)
  23972. def camera_tracking_image_status_encode(self, tracking_status: int, tracking_mode: int, target_data: int, point_x: float, point_y: float, radius: float, rec_top_x: float, rec_top_y: float, rec_bottom_x: float, rec_bottom_y: float) -> MAVLink_camera_tracking_image_status_message:
  23973. """
  23974. Camera tracking status, sent while in active tracking. Use
  23975. MAV_CMD_SET_MESSAGE_INTERVAL to define message interval.
  23976. tracking_status : Current tracking status (type:uint8_t, values:CAMERA_TRACKING_STATUS_FLAGS)
  23977. tracking_mode : Current tracking mode (type:uint8_t, values:CAMERA_TRACKING_MODE)
  23978. target_data : Defines location of target data (type:uint8_t, values:CAMERA_TRACKING_TARGET_DATA)
  23979. point_x : Current tracked point x value if CAMERA_TRACKING_MODE_POINT (normalized 0..1, 0 is left, 1 is right), NAN if unknown (type:float)
  23980. point_y : Current tracked point y value if CAMERA_TRACKING_MODE_POINT (normalized 0..1, 0 is top, 1 is bottom), NAN if unknown (type:float)
  23981. radius : Current tracked radius if CAMERA_TRACKING_MODE_POINT (normalized 0..1, 0 is image left, 1 is image right), NAN if unknown (type:float)
  23982. rec_top_x : Current tracked rectangle top x value if CAMERA_TRACKING_MODE_RECTANGLE (normalized 0..1, 0 is left, 1 is right), NAN if unknown (type:float)
  23983. rec_top_y : Current tracked rectangle top y value if CAMERA_TRACKING_MODE_RECTANGLE (normalized 0..1, 0 is top, 1 is bottom), NAN if unknown (type:float)
  23984. rec_bottom_x : Current tracked rectangle bottom x value if CAMERA_TRACKING_MODE_RECTANGLE (normalized 0..1, 0 is left, 1 is right), NAN if unknown (type:float)
  23985. rec_bottom_y : Current tracked rectangle bottom y value if CAMERA_TRACKING_MODE_RECTANGLE (normalized 0..1, 0 is top, 1 is bottom), NAN if unknown (type:float)
  23986. """
  23987. return MAVLink_camera_tracking_image_status_message(tracking_status, tracking_mode, target_data, point_x, point_y, radius, rec_top_x, rec_top_y, rec_bottom_x, rec_bottom_y)
  23988. def camera_tracking_image_status_send(self, tracking_status: int, tracking_mode: int, target_data: int, point_x: float, point_y: float, radius: float, rec_top_x: float, rec_top_y: float, rec_bottom_x: float, rec_bottom_y: float, force_mavlink1: bool = False) -> None:
  23989. """
  23990. Camera tracking status, sent while in active tracking. Use
  23991. MAV_CMD_SET_MESSAGE_INTERVAL to define message interval.
  23992. tracking_status : Current tracking status (type:uint8_t, values:CAMERA_TRACKING_STATUS_FLAGS)
  23993. tracking_mode : Current tracking mode (type:uint8_t, values:CAMERA_TRACKING_MODE)
  23994. target_data : Defines location of target data (type:uint8_t, values:CAMERA_TRACKING_TARGET_DATA)
  23995. point_x : Current tracked point x value if CAMERA_TRACKING_MODE_POINT (normalized 0..1, 0 is left, 1 is right), NAN if unknown (type:float)
  23996. point_y : Current tracked point y value if CAMERA_TRACKING_MODE_POINT (normalized 0..1, 0 is top, 1 is bottom), NAN if unknown (type:float)
  23997. radius : Current tracked radius if CAMERA_TRACKING_MODE_POINT (normalized 0..1, 0 is image left, 1 is image right), NAN if unknown (type:float)
  23998. rec_top_x : Current tracked rectangle top x value if CAMERA_TRACKING_MODE_RECTANGLE (normalized 0..1, 0 is left, 1 is right), NAN if unknown (type:float)
  23999. rec_top_y : Current tracked rectangle top y value if CAMERA_TRACKING_MODE_RECTANGLE (normalized 0..1, 0 is top, 1 is bottom), NAN if unknown (type:float)
  24000. rec_bottom_x : Current tracked rectangle bottom x value if CAMERA_TRACKING_MODE_RECTANGLE (normalized 0..1, 0 is left, 1 is right), NAN if unknown (type:float)
  24001. rec_bottom_y : Current tracked rectangle bottom y value if CAMERA_TRACKING_MODE_RECTANGLE (normalized 0..1, 0 is top, 1 is bottom), NAN if unknown (type:float)
  24002. """
  24003. self.send(self.camera_tracking_image_status_encode(tracking_status, tracking_mode, target_data, point_x, point_y, radius, rec_top_x, rec_top_y, rec_bottom_x, rec_bottom_y), force_mavlink1=force_mavlink1)
  24004. def camera_tracking_geo_status_encode(self, tracking_status: int, lat: int, lon: int, alt: float, h_acc: float, v_acc: float, vel_n: float, vel_e: float, vel_d: float, vel_acc: float, dist: float, hdg: float, hdg_acc: float) -> MAVLink_camera_tracking_geo_status_message:
  24005. """
  24006. Camera tracking status, sent while in active tracking. Use
  24007. MAV_CMD_SET_MESSAGE_INTERVAL to define message interval.
  24008. tracking_status : Current tracking status (type:uint8_t, values:CAMERA_TRACKING_STATUS_FLAGS)
  24009. lat : Latitude of tracked object [degE7] (type:int32_t)
  24010. lon : Longitude of tracked object [degE7] (type:int32_t)
  24011. alt : Altitude of tracked object(AMSL, WGS84) [m] (type:float)
  24012. h_acc : Horizontal accuracy. NAN if unknown [m] (type:float)
  24013. v_acc : Vertical accuracy. NAN if unknown [m] (type:float)
  24014. vel_n : North velocity of tracked object. NAN if unknown [m/s] (type:float)
  24015. vel_e : East velocity of tracked object. NAN if unknown [m/s] (type:float)
  24016. vel_d : Down velocity of tracked object. NAN if unknown [m/s] (type:float)
  24017. vel_acc : Velocity accuracy. NAN if unknown [m/s] (type:float)
  24018. dist : Distance between camera and tracked object. NAN if unknown [m] (type:float)
  24019. hdg : Heading in radians, in NED. NAN if unknown [rad] (type:float)
  24020. hdg_acc : Accuracy of heading, in NED. NAN if unknown [rad] (type:float)
  24021. """
  24022. return MAVLink_camera_tracking_geo_status_message(tracking_status, lat, lon, alt, h_acc, v_acc, vel_n, vel_e, vel_d, vel_acc, dist, hdg, hdg_acc)
  24023. def camera_tracking_geo_status_send(self, tracking_status: int, lat: int, lon: int, alt: float, h_acc: float, v_acc: float, vel_n: float, vel_e: float, vel_d: float, vel_acc: float, dist: float, hdg: float, hdg_acc: float, force_mavlink1: bool = False) -> None:
  24024. """
  24025. Camera tracking status, sent while in active tracking. Use
  24026. MAV_CMD_SET_MESSAGE_INTERVAL to define message interval.
  24027. tracking_status : Current tracking status (type:uint8_t, values:CAMERA_TRACKING_STATUS_FLAGS)
  24028. lat : Latitude of tracked object [degE7] (type:int32_t)
  24029. lon : Longitude of tracked object [degE7] (type:int32_t)
  24030. alt : Altitude of tracked object(AMSL, WGS84) [m] (type:float)
  24031. h_acc : Horizontal accuracy. NAN if unknown [m] (type:float)
  24032. v_acc : Vertical accuracy. NAN if unknown [m] (type:float)
  24033. vel_n : North velocity of tracked object. NAN if unknown [m/s] (type:float)
  24034. vel_e : East velocity of tracked object. NAN if unknown [m/s] (type:float)
  24035. vel_d : Down velocity of tracked object. NAN if unknown [m/s] (type:float)
  24036. vel_acc : Velocity accuracy. NAN if unknown [m/s] (type:float)
  24037. dist : Distance between camera and tracked object. NAN if unknown [m] (type:float)
  24038. hdg : Heading in radians, in NED. NAN if unknown [rad] (type:float)
  24039. hdg_acc : Accuracy of heading, in NED. NAN if unknown [rad] (type:float)
  24040. """
  24041. self.send(self.camera_tracking_geo_status_encode(tracking_status, lat, lon, alt, h_acc, v_acc, vel_n, vel_e, vel_d, vel_acc, dist, hdg, hdg_acc), force_mavlink1=force_mavlink1)
  24042. def gimbal_manager_information_encode(self, time_boot_ms: int, cap_flags: int, gimbal_device_id: int, roll_min: float, roll_max: float, pitch_min: float, pitch_max: float, yaw_min: float, yaw_max: float) -> MAVLink_gimbal_manager_information_message:
  24043. """
  24044. Information about a high level gimbal manager. This message should be
  24045. requested by a ground station using MAV_CMD_REQUEST_MESSAGE.
  24046. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  24047. cap_flags : Bitmap of gimbal capability flags. (type:uint32_t, values:GIMBAL_MANAGER_CAP_FLAGS)
  24048. gimbal_device_id : Gimbal device ID that this gimbal manager is responsible for. Component ID of gimbal device (or 1-6 for non-MAVLink gimbal). (type:uint8_t)
  24049. roll_min : Minimum hardware roll angle (positive: rolling to the right, negative: rolling to the left) [rad] (type:float)
  24050. roll_max : Maximum hardware roll angle (positive: rolling to the right, negative: rolling to the left) [rad] (type:float)
  24051. pitch_min : Minimum pitch angle (positive: up, negative: down) [rad] (type:float)
  24052. pitch_max : Maximum pitch angle (positive: up, negative: down) [rad] (type:float)
  24053. yaw_min : Minimum yaw angle (positive: to the right, negative: to the left) [rad] (type:float)
  24054. yaw_max : Maximum yaw angle (positive: to the right, negative: to the left) [rad] (type:float)
  24055. """
  24056. return MAVLink_gimbal_manager_information_message(time_boot_ms, cap_flags, gimbal_device_id, roll_min, roll_max, pitch_min, pitch_max, yaw_min, yaw_max)
  24057. def gimbal_manager_information_send(self, time_boot_ms: int, cap_flags: int, gimbal_device_id: int, roll_min: float, roll_max: float, pitch_min: float, pitch_max: float, yaw_min: float, yaw_max: float, force_mavlink1: bool = False) -> None:
  24058. """
  24059. Information about a high level gimbal manager. This message should be
  24060. requested by a ground station using MAV_CMD_REQUEST_MESSAGE.
  24061. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  24062. cap_flags : Bitmap of gimbal capability flags. (type:uint32_t, values:GIMBAL_MANAGER_CAP_FLAGS)
  24063. gimbal_device_id : Gimbal device ID that this gimbal manager is responsible for. Component ID of gimbal device (or 1-6 for non-MAVLink gimbal). (type:uint8_t)
  24064. roll_min : Minimum hardware roll angle (positive: rolling to the right, negative: rolling to the left) [rad] (type:float)
  24065. roll_max : Maximum hardware roll angle (positive: rolling to the right, negative: rolling to the left) [rad] (type:float)
  24066. pitch_min : Minimum pitch angle (positive: up, negative: down) [rad] (type:float)
  24067. pitch_max : Maximum pitch angle (positive: up, negative: down) [rad] (type:float)
  24068. yaw_min : Minimum yaw angle (positive: to the right, negative: to the left) [rad] (type:float)
  24069. yaw_max : Maximum yaw angle (positive: to the right, negative: to the left) [rad] (type:float)
  24070. """
  24071. self.send(self.gimbal_manager_information_encode(time_boot_ms, cap_flags, gimbal_device_id, roll_min, roll_max, pitch_min, pitch_max, yaw_min, yaw_max), force_mavlink1=force_mavlink1)
  24072. def gimbal_manager_status_encode(self, time_boot_ms: int, flags: int, gimbal_device_id: int, primary_control_sysid: int, primary_control_compid: int, secondary_control_sysid: int, secondary_control_compid: int) -> MAVLink_gimbal_manager_status_message:
  24073. """
  24074. Current status about a high level gimbal manager. This message should
  24075. be broadcast at a low regular rate (e.g. 5Hz).
  24076. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  24077. flags : High level gimbal manager flags currently applied. (type:uint32_t, values:GIMBAL_MANAGER_FLAGS)
  24078. gimbal_device_id : Gimbal device ID that this gimbal manager is responsible for. Component ID of gimbal device (or 1-6 for non-MAVLink gimbal). (type:uint8_t)
  24079. primary_control_sysid : System ID of MAVLink component with primary control, 0 for none. (type:uint8_t)
  24080. primary_control_compid : Component ID of MAVLink component with primary control, 0 for none. (type:uint8_t)
  24081. secondary_control_sysid : System ID of MAVLink component with secondary control, 0 for none. (type:uint8_t)
  24082. secondary_control_compid : Component ID of MAVLink component with secondary control, 0 for none. (type:uint8_t)
  24083. """
  24084. return MAVLink_gimbal_manager_status_message(time_boot_ms, flags, gimbal_device_id, primary_control_sysid, primary_control_compid, secondary_control_sysid, secondary_control_compid)
  24085. def gimbal_manager_status_send(self, time_boot_ms: int, flags: int, gimbal_device_id: int, primary_control_sysid: int, primary_control_compid: int, secondary_control_sysid: int, secondary_control_compid: int, force_mavlink1: bool = False) -> None:
  24086. """
  24087. Current status about a high level gimbal manager. This message should
  24088. be broadcast at a low regular rate (e.g. 5Hz).
  24089. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  24090. flags : High level gimbal manager flags currently applied. (type:uint32_t, values:GIMBAL_MANAGER_FLAGS)
  24091. gimbal_device_id : Gimbal device ID that this gimbal manager is responsible for. Component ID of gimbal device (or 1-6 for non-MAVLink gimbal). (type:uint8_t)
  24092. primary_control_sysid : System ID of MAVLink component with primary control, 0 for none. (type:uint8_t)
  24093. primary_control_compid : Component ID of MAVLink component with primary control, 0 for none. (type:uint8_t)
  24094. secondary_control_sysid : System ID of MAVLink component with secondary control, 0 for none. (type:uint8_t)
  24095. secondary_control_compid : Component ID of MAVLink component with secondary control, 0 for none. (type:uint8_t)
  24096. """
  24097. self.send(self.gimbal_manager_status_encode(time_boot_ms, flags, gimbal_device_id, primary_control_sysid, primary_control_compid, secondary_control_sysid, secondary_control_compid), force_mavlink1=force_mavlink1)
  24098. def gimbal_manager_set_attitude_encode(self, target_system: int, target_component: int, flags: int, gimbal_device_id: int, q: Sequence[float], angular_velocity_x: float, angular_velocity_y: float, angular_velocity_z: float) -> MAVLink_gimbal_manager_set_attitude_message:
  24099. """
  24100. High level message to control a gimbal's attitude. This message is to
  24101. be sent to the gimbal manager (e.g. from a ground station).
  24102. Angles and rates can be set to NaN according to use case.
  24103. target_system : System ID (type:uint8_t)
  24104. target_component : Component ID (type:uint8_t)
  24105. flags : High level gimbal manager flags to use. (type:uint32_t, values:GIMBAL_MANAGER_FLAGS)
  24106. gimbal_device_id : Component ID of gimbal device to address (or 1-6 for non-MAVLink gimbal), 0 for all gimbal device components. Send command multiple times for more than one gimbal (but not all gimbals). (type:uint8_t)
  24107. q : Quaternion components, w, x, y, z (1 0 0 0 is the null-rotation, the frame is depends on whether the flag GIMBAL_MANAGER_FLAGS_YAW_LOCK is set) (type:float)
  24108. angular_velocity_x : X component of angular velocity, positive is rolling to the right, NaN to be ignored. [rad/s] (type:float)
  24109. angular_velocity_y : Y component of angular velocity, positive is pitching up, NaN to be ignored. [rad/s] (type:float)
  24110. angular_velocity_z : Z component of angular velocity, positive is yawing to the right, NaN to be ignored. [rad/s] (type:float)
  24111. """
  24112. return MAVLink_gimbal_manager_set_attitude_message(target_system, target_component, flags, gimbal_device_id, q, angular_velocity_x, angular_velocity_y, angular_velocity_z)
  24113. def gimbal_manager_set_attitude_send(self, target_system: int, target_component: int, flags: int, gimbal_device_id: int, q: Sequence[float], angular_velocity_x: float, angular_velocity_y: float, angular_velocity_z: float, force_mavlink1: bool = False) -> None:
  24114. """
  24115. High level message to control a gimbal's attitude. This message is to
  24116. be sent to the gimbal manager (e.g. from a ground station).
  24117. Angles and rates can be set to NaN according to use case.
  24118. target_system : System ID (type:uint8_t)
  24119. target_component : Component ID (type:uint8_t)
  24120. flags : High level gimbal manager flags to use. (type:uint32_t, values:GIMBAL_MANAGER_FLAGS)
  24121. gimbal_device_id : Component ID of gimbal device to address (or 1-6 for non-MAVLink gimbal), 0 for all gimbal device components. Send command multiple times for more than one gimbal (but not all gimbals). (type:uint8_t)
  24122. q : Quaternion components, w, x, y, z (1 0 0 0 is the null-rotation, the frame is depends on whether the flag GIMBAL_MANAGER_FLAGS_YAW_LOCK is set) (type:float)
  24123. angular_velocity_x : X component of angular velocity, positive is rolling to the right, NaN to be ignored. [rad/s] (type:float)
  24124. angular_velocity_y : Y component of angular velocity, positive is pitching up, NaN to be ignored. [rad/s] (type:float)
  24125. angular_velocity_z : Z component of angular velocity, positive is yawing to the right, NaN to be ignored. [rad/s] (type:float)
  24126. """
  24127. self.send(self.gimbal_manager_set_attitude_encode(target_system, target_component, flags, gimbal_device_id, q, angular_velocity_x, angular_velocity_y, angular_velocity_z), force_mavlink1=force_mavlink1)
  24128. def gimbal_device_information_encode(self, time_boot_ms: int, vendor_name: bytes, model_name: bytes, custom_name: bytes, firmware_version: int, hardware_version: int, uid: int, cap_flags: int, custom_cap_flags: int, roll_min: float, roll_max: float, pitch_min: float, pitch_max: float, yaw_min: float, yaw_max: float, gimbal_device_id: int = 0) -> MAVLink_gimbal_device_information_message:
  24129. """
  24130. Information about a low level gimbal. This message should be requested
  24131. by the gimbal manager or a ground station using
  24132. MAV_CMD_REQUEST_MESSAGE. The maximum angles and rates are the
  24133. limits by hardware. However, the limits by software used are
  24134. likely different/smaller and dependent on mode/settings/etc..
  24135. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  24136. vendor_name : Name of the gimbal vendor. (type:char)
  24137. model_name : Name of the gimbal model. (type:char)
  24138. custom_name : Custom name of the gimbal given to it by the user. (type:char)
  24139. firmware_version : Version of the gimbal firmware, encoded as: (Dev & 0xff) << 24 | (Patch & 0xff) << 16 | (Minor & 0xff) << 8 | (Major & 0xff). (type:uint32_t)
  24140. hardware_version : Version of the gimbal hardware, encoded as: (Dev & 0xff) << 24 | (Patch & 0xff) << 16 | (Minor & 0xff) << 8 | (Major & 0xff). (type:uint32_t)
  24141. uid : UID of gimbal hardware (0 if unknown). (type:uint64_t)
  24142. cap_flags : Bitmap of gimbal capability flags. (type:uint16_t, values:GIMBAL_DEVICE_CAP_FLAGS)
  24143. custom_cap_flags : Bitmap for use for gimbal-specific capability flags. (type:uint16_t)
  24144. roll_min : Minimum hardware roll angle (positive: rolling to the right, negative: rolling to the left). NAN if unknown. [rad] (type:float)
  24145. roll_max : Maximum hardware roll angle (positive: rolling to the right, negative: rolling to the left). NAN if unknown. [rad] (type:float)
  24146. pitch_min : Minimum hardware pitch angle (positive: up, negative: down). NAN if unknown. [rad] (type:float)
  24147. pitch_max : Maximum hardware pitch angle (positive: up, negative: down). NAN if unknown. [rad] (type:float)
  24148. yaw_min : Minimum hardware yaw angle (positive: to the right, negative: to the left). NAN if unknown. [rad] (type:float)
  24149. yaw_max : Maximum hardware yaw angle (positive: to the right, negative: to the left). NAN if unknown. [rad] (type:float)
  24150. gimbal_device_id : This field is to be used if the gimbal manager and the gimbal device are the same component and hence have the same component ID. This field is then set to a number between 1-6. If the component ID is separate, this field is not required and must be set to 0. (type:uint8_t)
  24151. """
  24152. return MAVLink_gimbal_device_information_message(time_boot_ms, vendor_name, model_name, custom_name, firmware_version, hardware_version, uid, cap_flags, custom_cap_flags, roll_min, roll_max, pitch_min, pitch_max, yaw_min, yaw_max, gimbal_device_id)
  24153. def gimbal_device_information_send(self, time_boot_ms: int, vendor_name: bytes, model_name: bytes, custom_name: bytes, firmware_version: int, hardware_version: int, uid: int, cap_flags: int, custom_cap_flags: int, roll_min: float, roll_max: float, pitch_min: float, pitch_max: float, yaw_min: float, yaw_max: float, gimbal_device_id: int = 0, force_mavlink1: bool = False) -> None:
  24154. """
  24155. Information about a low level gimbal. This message should be requested
  24156. by the gimbal manager or a ground station using
  24157. MAV_CMD_REQUEST_MESSAGE. The maximum angles and rates are the
  24158. limits by hardware. However, the limits by software used are
  24159. likely different/smaller and dependent on mode/settings/etc..
  24160. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  24161. vendor_name : Name of the gimbal vendor. (type:char)
  24162. model_name : Name of the gimbal model. (type:char)
  24163. custom_name : Custom name of the gimbal given to it by the user. (type:char)
  24164. firmware_version : Version of the gimbal firmware, encoded as: (Dev & 0xff) << 24 | (Patch & 0xff) << 16 | (Minor & 0xff) << 8 | (Major & 0xff). (type:uint32_t)
  24165. hardware_version : Version of the gimbal hardware, encoded as: (Dev & 0xff) << 24 | (Patch & 0xff) << 16 | (Minor & 0xff) << 8 | (Major & 0xff). (type:uint32_t)
  24166. uid : UID of gimbal hardware (0 if unknown). (type:uint64_t)
  24167. cap_flags : Bitmap of gimbal capability flags. (type:uint16_t, values:GIMBAL_DEVICE_CAP_FLAGS)
  24168. custom_cap_flags : Bitmap for use for gimbal-specific capability flags. (type:uint16_t)
  24169. roll_min : Minimum hardware roll angle (positive: rolling to the right, negative: rolling to the left). NAN if unknown. [rad] (type:float)
  24170. roll_max : Maximum hardware roll angle (positive: rolling to the right, negative: rolling to the left). NAN if unknown. [rad] (type:float)
  24171. pitch_min : Minimum hardware pitch angle (positive: up, negative: down). NAN if unknown. [rad] (type:float)
  24172. pitch_max : Maximum hardware pitch angle (positive: up, negative: down). NAN if unknown. [rad] (type:float)
  24173. yaw_min : Minimum hardware yaw angle (positive: to the right, negative: to the left). NAN if unknown. [rad] (type:float)
  24174. yaw_max : Maximum hardware yaw angle (positive: to the right, negative: to the left). NAN if unknown. [rad] (type:float)
  24175. gimbal_device_id : This field is to be used if the gimbal manager and the gimbal device are the same component and hence have the same component ID. This field is then set to a number between 1-6. If the component ID is separate, this field is not required and must be set to 0. (type:uint8_t)
  24176. """
  24177. self.send(self.gimbal_device_information_encode(time_boot_ms, vendor_name, model_name, custom_name, firmware_version, hardware_version, uid, cap_flags, custom_cap_flags, roll_min, roll_max, pitch_min, pitch_max, yaw_min, yaw_max, gimbal_device_id), force_mavlink1=force_mavlink1)
  24178. def gimbal_device_set_attitude_encode(self, target_system: int, target_component: int, flags: int, q: Sequence[float], angular_velocity_x: float, angular_velocity_y: float, angular_velocity_z: float) -> MAVLink_gimbal_device_set_attitude_message:
  24179. """
  24180. Low level message to control a gimbal device's attitude.
  24181. This message is to be sent from the gimbal manager to the
  24182. gimbal device component. The quaternion and angular
  24183. velocities can be set to NaN according to use case.
  24184. For the angles encoded in the quaternion and the angular
  24185. velocities holds: If the flag
  24186. GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME is set, then they are
  24187. relative to the vehicle heading (vehicle frame). If
  24188. the flag GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME is set, then
  24189. they are relative to absolute North (earth frame).
  24190. If neither of these flags are set, then (for backwards
  24191. compatibility) it holds: If the flag
  24192. GIMBAL_DEVICE_FLAGS_YAW_LOCK is set, then they are relative to
  24193. absolute North (earth frame), else they are relative
  24194. to the vehicle heading (vehicle frame). Setting both
  24195. GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME and
  24196. GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME is not allowed.
  24197. These rules are to ensure backwards compatibility.
  24198. New implementations should always set either
  24199. GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME or
  24200. GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME.
  24201. target_system : System ID (type:uint8_t)
  24202. target_component : Component ID (type:uint8_t)
  24203. flags : Low level gimbal flags. (type:uint16_t, values:GIMBAL_DEVICE_FLAGS)
  24204. q : Quaternion components, w, x, y, z (1 0 0 0 is the null-rotation). The frame is described in the message description. Set fields to NaN to be ignored. (type:float)
  24205. angular_velocity_x : X component of angular velocity (positive: rolling to the right). The frame is described in the message description. NaN to be ignored. [rad/s] (type:float)
  24206. angular_velocity_y : Y component of angular velocity (positive: pitching up). The frame is described in the message description. NaN to be ignored. [rad/s] (type:float)
  24207. angular_velocity_z : Z component of angular velocity (positive: yawing to the right). The frame is described in the message description. NaN to be ignored. [rad/s] (type:float)
  24208. """
  24209. return MAVLink_gimbal_device_set_attitude_message(target_system, target_component, flags, q, angular_velocity_x, angular_velocity_y, angular_velocity_z)
  24210. def gimbal_device_set_attitude_send(self, target_system: int, target_component: int, flags: int, q: Sequence[float], angular_velocity_x: float, angular_velocity_y: float, angular_velocity_z: float, force_mavlink1: bool = False) -> None:
  24211. """
  24212. Low level message to control a gimbal device's attitude.
  24213. This message is to be sent from the gimbal manager to the
  24214. gimbal device component. The quaternion and angular
  24215. velocities can be set to NaN according to use case.
  24216. For the angles encoded in the quaternion and the angular
  24217. velocities holds: If the flag
  24218. GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME is set, then they are
  24219. relative to the vehicle heading (vehicle frame). If
  24220. the flag GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME is set, then
  24221. they are relative to absolute North (earth frame).
  24222. If neither of these flags are set, then (for backwards
  24223. compatibility) it holds: If the flag
  24224. GIMBAL_DEVICE_FLAGS_YAW_LOCK is set, then they are relative to
  24225. absolute North (earth frame), else they are relative
  24226. to the vehicle heading (vehicle frame). Setting both
  24227. GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME and
  24228. GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME is not allowed.
  24229. These rules are to ensure backwards compatibility.
  24230. New implementations should always set either
  24231. GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME or
  24232. GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME.
  24233. target_system : System ID (type:uint8_t)
  24234. target_component : Component ID (type:uint8_t)
  24235. flags : Low level gimbal flags. (type:uint16_t, values:GIMBAL_DEVICE_FLAGS)
  24236. q : Quaternion components, w, x, y, z (1 0 0 0 is the null-rotation). The frame is described in the message description. Set fields to NaN to be ignored. (type:float)
  24237. angular_velocity_x : X component of angular velocity (positive: rolling to the right). The frame is described in the message description. NaN to be ignored. [rad/s] (type:float)
  24238. angular_velocity_y : Y component of angular velocity (positive: pitching up). The frame is described in the message description. NaN to be ignored. [rad/s] (type:float)
  24239. angular_velocity_z : Z component of angular velocity (positive: yawing to the right). The frame is described in the message description. NaN to be ignored. [rad/s] (type:float)
  24240. """
  24241. self.send(self.gimbal_device_set_attitude_encode(target_system, target_component, flags, q, angular_velocity_x, angular_velocity_y, angular_velocity_z), force_mavlink1=force_mavlink1)
  24242. def gimbal_device_attitude_status_encode(self, target_system: int, target_component: int, time_boot_ms: int, flags: int, q: Sequence[float], angular_velocity_x: float, angular_velocity_y: float, angular_velocity_z: float, failure_flags: int, delta_yaw: float = 0, delta_yaw_velocity: float = 0, gimbal_device_id: int = 0) -> MAVLink_gimbal_device_attitude_status_message:
  24243. """
  24244. Message reporting the status of a gimbal device. This
  24245. message should be broadcast by a gimbal device component at a
  24246. low regular rate (e.g. 5 Hz). For the angles encoded
  24247. in the quaternion and the angular velocities holds:
  24248. If the flag GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME is set,
  24249. then they are relative to the vehicle heading (vehicle frame).
  24250. If the flag GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME is set,
  24251. then they are relative to absolute North (earth frame).
  24252. If neither of these flags are set, then (for backwards
  24253. compatibility) it holds: If the flag
  24254. GIMBAL_DEVICE_FLAGS_YAW_LOCK is set, then they are relative to
  24255. absolute North (earth frame), else they are relative
  24256. to the vehicle heading (vehicle frame). Other
  24257. conditions of the flags are not allowed. The
  24258. quaternion and angular velocities in the other frame can be
  24259. calculated from delta_yaw and delta_yaw_velocity as
  24260. q_earth = q_delta_yaw * q_vehicle and w_earth =
  24261. w_delta_yaw_velocity + w_vehicle (if not NaN). If
  24262. neither the GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME nor the
  24263. GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME flag is set,
  24264. then (for backwards compatibility) the data in the delta_yaw
  24265. and delta_yaw_velocity fields are to be ignored. New
  24266. implementations should always set either
  24267. GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME or
  24268. GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME, and always
  24269. should set delta_yaw and delta_yaw_velocity either to the
  24270. proper value or NaN.
  24271. target_system : System ID (type:uint8_t)
  24272. target_component : Component ID (type:uint8_t)
  24273. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  24274. flags : Current gimbal flags set. (type:uint16_t, values:GIMBAL_DEVICE_FLAGS)
  24275. q : Quaternion components, w, x, y, z (1 0 0 0 is the null-rotation). The frame is described in the message description. (type:float)
  24276. angular_velocity_x : X component of angular velocity (positive: rolling to the right). The frame is described in the message description. NaN if unknown. [rad/s] (type:float)
  24277. angular_velocity_y : Y component of angular velocity (positive: pitching up). The frame is described in the message description. NaN if unknown. [rad/s] (type:float)
  24278. angular_velocity_z : Z component of angular velocity (positive: yawing to the right). The frame is described in the message description. NaN if unknown. [rad/s] (type:float)
  24279. failure_flags : Failure flags (0 for no failure) (type:uint32_t, values:GIMBAL_DEVICE_ERROR_FLAGS)
  24280. delta_yaw : Yaw angle relating the quaternions in earth and body frames (see message description). NaN if unknown. [rad] (type:float)
  24281. delta_yaw_velocity : Yaw angular velocity relating the angular velocities in earth and body frames (see message description). NaN if unknown. [rad/s] (type:float)
  24282. gimbal_device_id : This field is to be used if the gimbal manager and the gimbal device are the same component and hence have the same component ID. This field is then set a number between 1-6. If the component ID is separate, this field is not required and must be set to 0. (type:uint8_t)
  24283. """
  24284. return MAVLink_gimbal_device_attitude_status_message(target_system, target_component, time_boot_ms, flags, q, angular_velocity_x, angular_velocity_y, angular_velocity_z, failure_flags, delta_yaw, delta_yaw_velocity, gimbal_device_id)
  24285. def gimbal_device_attitude_status_send(self, target_system: int, target_component: int, time_boot_ms: int, flags: int, q: Sequence[float], angular_velocity_x: float, angular_velocity_y: float, angular_velocity_z: float, failure_flags: int, delta_yaw: float = 0, delta_yaw_velocity: float = 0, gimbal_device_id: int = 0, force_mavlink1: bool = False) -> None:
  24286. """
  24287. Message reporting the status of a gimbal device. This
  24288. message should be broadcast by a gimbal device component at a
  24289. low regular rate (e.g. 5 Hz). For the angles encoded
  24290. in the quaternion and the angular velocities holds:
  24291. If the flag GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME is set,
  24292. then they are relative to the vehicle heading (vehicle frame).
  24293. If the flag GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME is set,
  24294. then they are relative to absolute North (earth frame).
  24295. If neither of these flags are set, then (for backwards
  24296. compatibility) it holds: If the flag
  24297. GIMBAL_DEVICE_FLAGS_YAW_LOCK is set, then they are relative to
  24298. absolute North (earth frame), else they are relative
  24299. to the vehicle heading (vehicle frame). Other
  24300. conditions of the flags are not allowed. The
  24301. quaternion and angular velocities in the other frame can be
  24302. calculated from delta_yaw and delta_yaw_velocity as
  24303. q_earth = q_delta_yaw * q_vehicle and w_earth =
  24304. w_delta_yaw_velocity + w_vehicle (if not NaN). If
  24305. neither the GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME nor the
  24306. GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME flag is set,
  24307. then (for backwards compatibility) the data in the delta_yaw
  24308. and delta_yaw_velocity fields are to be ignored. New
  24309. implementations should always set either
  24310. GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME or
  24311. GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME, and always
  24312. should set delta_yaw and delta_yaw_velocity either to the
  24313. proper value or NaN.
  24314. target_system : System ID (type:uint8_t)
  24315. target_component : Component ID (type:uint8_t)
  24316. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  24317. flags : Current gimbal flags set. (type:uint16_t, values:GIMBAL_DEVICE_FLAGS)
  24318. q : Quaternion components, w, x, y, z (1 0 0 0 is the null-rotation). The frame is described in the message description. (type:float)
  24319. angular_velocity_x : X component of angular velocity (positive: rolling to the right). The frame is described in the message description. NaN if unknown. [rad/s] (type:float)
  24320. angular_velocity_y : Y component of angular velocity (positive: pitching up). The frame is described in the message description. NaN if unknown. [rad/s] (type:float)
  24321. angular_velocity_z : Z component of angular velocity (positive: yawing to the right). The frame is described in the message description. NaN if unknown. [rad/s] (type:float)
  24322. failure_flags : Failure flags (0 for no failure) (type:uint32_t, values:GIMBAL_DEVICE_ERROR_FLAGS)
  24323. delta_yaw : Yaw angle relating the quaternions in earth and body frames (see message description). NaN if unknown. [rad] (type:float)
  24324. delta_yaw_velocity : Yaw angular velocity relating the angular velocities in earth and body frames (see message description). NaN if unknown. [rad/s] (type:float)
  24325. gimbal_device_id : This field is to be used if the gimbal manager and the gimbal device are the same component and hence have the same component ID. This field is then set a number between 1-6. If the component ID is separate, this field is not required and must be set to 0. (type:uint8_t)
  24326. """
  24327. self.send(self.gimbal_device_attitude_status_encode(target_system, target_component, time_boot_ms, flags, q, angular_velocity_x, angular_velocity_y, angular_velocity_z, failure_flags, delta_yaw, delta_yaw_velocity, gimbal_device_id), force_mavlink1=force_mavlink1)
  24328. def autopilot_state_for_gimbal_device_encode(self, target_system: int, target_component: int, time_boot_us: int, q: Sequence[float], q_estimated_delay_us: int, vx: float, vy: float, vz: float, v_estimated_delay_us: int, feed_forward_angular_velocity_z: float, estimator_status: int, landed_state: int, angular_velocity_z: float = 0) -> MAVLink_autopilot_state_for_gimbal_device_message:
  24329. """
  24330. Low level message containing autopilot state relevant for a gimbal
  24331. device. This message is to be sent from the autopilot to the
  24332. gimbal device component. The data of this message are for the
  24333. gimbal device's estimator corrections, in particular horizon
  24334. compensation, as well as indicates autopilot control
  24335. intentions, e.g. feed forward angular control in the z-axis.
  24336. target_system : System ID (type:uint8_t)
  24337. target_component : Component ID (type:uint8_t)
  24338. time_boot_us : Timestamp (time since system boot). [us] (type:uint64_t)
  24339. q : Quaternion components of autopilot attitude: w, x, y, z (1 0 0 0 is the null-rotation, Hamilton convention). (type:float)
  24340. q_estimated_delay_us : Estimated delay of the attitude data. 0 if unknown. [us] (type:uint32_t)
  24341. vx : X Speed in NED (North, East, Down). NAN if unknown. [m/s] (type:float)
  24342. vy : Y Speed in NED (North, East, Down). NAN if unknown. [m/s] (type:float)
  24343. vz : Z Speed in NED (North, East, Down). NAN if unknown. [m/s] (type:float)
  24344. v_estimated_delay_us : Estimated delay of the speed data. 0 if unknown. [us] (type:uint32_t)
  24345. feed_forward_angular_velocity_z : Feed forward Z component of angular velocity (positive: yawing to the right). NaN to be ignored. This is to indicate if the autopilot is actively yawing. [rad/s] (type:float)
  24346. estimator_status : Bitmap indicating which estimator outputs are valid. (type:uint16_t, values:ESTIMATOR_STATUS_FLAGS)
  24347. landed_state : The landed state. Is set to MAV_LANDED_STATE_UNDEFINED if landed state is unknown. (type:uint8_t, values:MAV_LANDED_STATE)
  24348. angular_velocity_z : Z component of angular velocity in NED (North, East, Down). NaN if unknown. [rad/s] (type:float)
  24349. """
  24350. return MAVLink_autopilot_state_for_gimbal_device_message(target_system, target_component, time_boot_us, q, q_estimated_delay_us, vx, vy, vz, v_estimated_delay_us, feed_forward_angular_velocity_z, estimator_status, landed_state, angular_velocity_z)
  24351. def autopilot_state_for_gimbal_device_send(self, target_system: int, target_component: int, time_boot_us: int, q: Sequence[float], q_estimated_delay_us: int, vx: float, vy: float, vz: float, v_estimated_delay_us: int, feed_forward_angular_velocity_z: float, estimator_status: int, landed_state: int, angular_velocity_z: float = 0, force_mavlink1: bool = False) -> None:
  24352. """
  24353. Low level message containing autopilot state relevant for a gimbal
  24354. device. This message is to be sent from the autopilot to the
  24355. gimbal device component. The data of this message are for the
  24356. gimbal device's estimator corrections, in particular horizon
  24357. compensation, as well as indicates autopilot control
  24358. intentions, e.g. feed forward angular control in the z-axis.
  24359. target_system : System ID (type:uint8_t)
  24360. target_component : Component ID (type:uint8_t)
  24361. time_boot_us : Timestamp (time since system boot). [us] (type:uint64_t)
  24362. q : Quaternion components of autopilot attitude: w, x, y, z (1 0 0 0 is the null-rotation, Hamilton convention). (type:float)
  24363. q_estimated_delay_us : Estimated delay of the attitude data. 0 if unknown. [us] (type:uint32_t)
  24364. vx : X Speed in NED (North, East, Down). NAN if unknown. [m/s] (type:float)
  24365. vy : Y Speed in NED (North, East, Down). NAN if unknown. [m/s] (type:float)
  24366. vz : Z Speed in NED (North, East, Down). NAN if unknown. [m/s] (type:float)
  24367. v_estimated_delay_us : Estimated delay of the speed data. 0 if unknown. [us] (type:uint32_t)
  24368. feed_forward_angular_velocity_z : Feed forward Z component of angular velocity (positive: yawing to the right). NaN to be ignored. This is to indicate if the autopilot is actively yawing. [rad/s] (type:float)
  24369. estimator_status : Bitmap indicating which estimator outputs are valid. (type:uint16_t, values:ESTIMATOR_STATUS_FLAGS)
  24370. landed_state : The landed state. Is set to MAV_LANDED_STATE_UNDEFINED if landed state is unknown. (type:uint8_t, values:MAV_LANDED_STATE)
  24371. angular_velocity_z : Z component of angular velocity in NED (North, East, Down). NaN if unknown. [rad/s] (type:float)
  24372. """
  24373. self.send(self.autopilot_state_for_gimbal_device_encode(target_system, target_component, time_boot_us, q, q_estimated_delay_us, vx, vy, vz, v_estimated_delay_us, feed_forward_angular_velocity_z, estimator_status, landed_state, angular_velocity_z), force_mavlink1=force_mavlink1)
  24374. def gimbal_manager_set_pitchyaw_encode(self, target_system: int, target_component: int, flags: int, gimbal_device_id: int, pitch: float, yaw: float, pitch_rate: float, yaw_rate: float) -> MAVLink_gimbal_manager_set_pitchyaw_message:
  24375. """
  24376. Set gimbal manager pitch and yaw angles (high rate message). This
  24377. message is to be sent to the gimbal manager (e.g. from a
  24378. ground station) and will be ignored by gimbal devices. Angles
  24379. and rates can be set to NaN according to use case. Use
  24380. MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW for low-rate adjustments
  24381. that require confirmation.
  24382. target_system : System ID (type:uint8_t)
  24383. target_component : Component ID (type:uint8_t)
  24384. flags : High level gimbal manager flags to use. (type:uint32_t, values:GIMBAL_MANAGER_FLAGS)
  24385. gimbal_device_id : Component ID of gimbal device to address (or 1-6 for non-MAVLink gimbal), 0 for all gimbal device components. Send command multiple times for more than one gimbal (but not all gimbals). (type:uint8_t)
  24386. pitch : Pitch angle (positive: up, negative: down, NaN to be ignored). [rad] (type:float)
  24387. yaw : Yaw angle (positive: to the right, negative: to the left, NaN to be ignored). [rad] (type:float)
  24388. pitch_rate : Pitch angular rate (positive: up, negative: down, NaN to be ignored). [rad/s] (type:float)
  24389. yaw_rate : Yaw angular rate (positive: to the right, negative: to the left, NaN to be ignored). [rad/s] (type:float)
  24390. """
  24391. return MAVLink_gimbal_manager_set_pitchyaw_message(target_system, target_component, flags, gimbal_device_id, pitch, yaw, pitch_rate, yaw_rate)
  24392. def gimbal_manager_set_pitchyaw_send(self, target_system: int, target_component: int, flags: int, gimbal_device_id: int, pitch: float, yaw: float, pitch_rate: float, yaw_rate: float, force_mavlink1: bool = False) -> None:
  24393. """
  24394. Set gimbal manager pitch and yaw angles (high rate message). This
  24395. message is to be sent to the gimbal manager (e.g. from a
  24396. ground station) and will be ignored by gimbal devices. Angles
  24397. and rates can be set to NaN according to use case. Use
  24398. MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW for low-rate adjustments
  24399. that require confirmation.
  24400. target_system : System ID (type:uint8_t)
  24401. target_component : Component ID (type:uint8_t)
  24402. flags : High level gimbal manager flags to use. (type:uint32_t, values:GIMBAL_MANAGER_FLAGS)
  24403. gimbal_device_id : Component ID of gimbal device to address (or 1-6 for non-MAVLink gimbal), 0 for all gimbal device components. Send command multiple times for more than one gimbal (but not all gimbals). (type:uint8_t)
  24404. pitch : Pitch angle (positive: up, negative: down, NaN to be ignored). [rad] (type:float)
  24405. yaw : Yaw angle (positive: to the right, negative: to the left, NaN to be ignored). [rad] (type:float)
  24406. pitch_rate : Pitch angular rate (positive: up, negative: down, NaN to be ignored). [rad/s] (type:float)
  24407. yaw_rate : Yaw angular rate (positive: to the right, negative: to the left, NaN to be ignored). [rad/s] (type:float)
  24408. """
  24409. self.send(self.gimbal_manager_set_pitchyaw_encode(target_system, target_component, flags, gimbal_device_id, pitch, yaw, pitch_rate, yaw_rate), force_mavlink1=force_mavlink1)
  24410. def gimbal_manager_set_manual_control_encode(self, target_system: int, target_component: int, flags: int, gimbal_device_id: int, pitch: float, yaw: float, pitch_rate: float, yaw_rate: float) -> MAVLink_gimbal_manager_set_manual_control_message:
  24411. """
  24412. High level message to control a gimbal manually. The angles or angular
  24413. rates are unitless; the actual rates will depend on internal
  24414. gimbal manager settings/configuration (e.g. set by
  24415. parameters). This message is to be sent to the gimbal manager
  24416. (e.g. from a ground station). Angles and rates can be set to
  24417. NaN according to use case.
  24418. target_system : System ID (type:uint8_t)
  24419. target_component : Component ID (type:uint8_t)
  24420. flags : High level gimbal manager flags. (type:uint32_t, values:GIMBAL_MANAGER_FLAGS)
  24421. gimbal_device_id : Component ID of gimbal device to address (or 1-6 for non-MAVLink gimbal), 0 for all gimbal device components. Send command multiple times for more than one gimbal (but not all gimbals). (type:uint8_t)
  24422. pitch : Pitch angle unitless (-1..1, positive: up, negative: down, NaN to be ignored). (type:float)
  24423. yaw : Yaw angle unitless (-1..1, positive: to the right, negative: to the left, NaN to be ignored). (type:float)
  24424. pitch_rate : Pitch angular rate unitless (-1..1, positive: up, negative: down, NaN to be ignored). (type:float)
  24425. yaw_rate : Yaw angular rate unitless (-1..1, positive: to the right, negative: to the left, NaN to be ignored). (type:float)
  24426. """
  24427. return MAVLink_gimbal_manager_set_manual_control_message(target_system, target_component, flags, gimbal_device_id, pitch, yaw, pitch_rate, yaw_rate)
  24428. def gimbal_manager_set_manual_control_send(self, target_system: int, target_component: int, flags: int, gimbal_device_id: int, pitch: float, yaw: float, pitch_rate: float, yaw_rate: float, force_mavlink1: bool = False) -> None:
  24429. """
  24430. High level message to control a gimbal manually. The angles or angular
  24431. rates are unitless; the actual rates will depend on internal
  24432. gimbal manager settings/configuration (e.g. set by
  24433. parameters). This message is to be sent to the gimbal manager
  24434. (e.g. from a ground station). Angles and rates can be set to
  24435. NaN according to use case.
  24436. target_system : System ID (type:uint8_t)
  24437. target_component : Component ID (type:uint8_t)
  24438. flags : High level gimbal manager flags. (type:uint32_t, values:GIMBAL_MANAGER_FLAGS)
  24439. gimbal_device_id : Component ID of gimbal device to address (or 1-6 for non-MAVLink gimbal), 0 for all gimbal device components. Send command multiple times for more than one gimbal (but not all gimbals). (type:uint8_t)
  24440. pitch : Pitch angle unitless (-1..1, positive: up, negative: down, NaN to be ignored). (type:float)
  24441. yaw : Yaw angle unitless (-1..1, positive: to the right, negative: to the left, NaN to be ignored). (type:float)
  24442. pitch_rate : Pitch angular rate unitless (-1..1, positive: up, negative: down, NaN to be ignored). (type:float)
  24443. yaw_rate : Yaw angular rate unitless (-1..1, positive: to the right, negative: to the left, NaN to be ignored). (type:float)
  24444. """
  24445. self.send(self.gimbal_manager_set_manual_control_encode(target_system, target_component, flags, gimbal_device_id, pitch, yaw, pitch_rate, yaw_rate), force_mavlink1=force_mavlink1)
  24446. def esc_info_encode(self, index: int, time_usec: int, counter: int, count: int, connection_type: int, info: int, failure_flags: Sequence[int], error_count: Sequence[int], temperature: Sequence[int]) -> MAVLink_esc_info_message:
  24447. """
  24448. ESC information for lower rate streaming. Recommended streaming rate
  24449. 1Hz. See ESC_STATUS for higher-rate ESC data.
  24450. index : Index of the first ESC in this message. minValue = 0, maxValue = 60, increment = 4. (type:uint8_t)
  24451. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number. [us] (type:uint64_t)
  24452. counter : Counter of data packets received. (type:uint16_t)
  24453. count : Total number of ESCs in all messages of this type. Message fields with an index higher than this should be ignored because they contain invalid data. (type:uint8_t)
  24454. connection_type : Connection type protocol for all ESC. (type:uint8_t, values:ESC_CONNECTION_TYPE)
  24455. info : Information regarding online/offline status of each ESC. (type:uint8_t)
  24456. failure_flags : Bitmap of ESC failure flags. (type:uint16_t, values:ESC_FAILURE_FLAGS)
  24457. error_count : Number of reported errors by each ESC since boot. (type:uint32_t)
  24458. temperature : Temperature of each ESC. INT16_MAX: if data not supplied by ESC. [cdegC] (type:int16_t)
  24459. """
  24460. return MAVLink_esc_info_message(index, time_usec, counter, count, connection_type, info, failure_flags, error_count, temperature)
  24461. def esc_info_send(self, index: int, time_usec: int, counter: int, count: int, connection_type: int, info: int, failure_flags: Sequence[int], error_count: Sequence[int], temperature: Sequence[int], force_mavlink1: bool = False) -> None:
  24462. """
  24463. ESC information for lower rate streaming. Recommended streaming rate
  24464. 1Hz. See ESC_STATUS for higher-rate ESC data.
  24465. index : Index of the first ESC in this message. minValue = 0, maxValue = 60, increment = 4. (type:uint8_t)
  24466. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number. [us] (type:uint64_t)
  24467. counter : Counter of data packets received. (type:uint16_t)
  24468. count : Total number of ESCs in all messages of this type. Message fields with an index higher than this should be ignored because they contain invalid data. (type:uint8_t)
  24469. connection_type : Connection type protocol for all ESC. (type:uint8_t, values:ESC_CONNECTION_TYPE)
  24470. info : Information regarding online/offline status of each ESC. (type:uint8_t)
  24471. failure_flags : Bitmap of ESC failure flags. (type:uint16_t, values:ESC_FAILURE_FLAGS)
  24472. error_count : Number of reported errors by each ESC since boot. (type:uint32_t)
  24473. temperature : Temperature of each ESC. INT16_MAX: if data not supplied by ESC. [cdegC] (type:int16_t)
  24474. """
  24475. self.send(self.esc_info_encode(index, time_usec, counter, count, connection_type, info, failure_flags, error_count, temperature), force_mavlink1=force_mavlink1)
  24476. def esc_status_encode(self, index: int, time_usec: int, rpm: Sequence[int], voltage: Sequence[float], current: Sequence[float]) -> MAVLink_esc_status_message:
  24477. """
  24478. ESC information for higher rate streaming. Recommended streaming rate
  24479. is ~10 Hz. Information that changes more slowly is sent in
  24480. ESC_INFO. It should typically only be streamed on high-
  24481. bandwidth links (i.e. to a companion computer).
  24482. index : Index of the first ESC in this message. minValue = 0, maxValue = 60, increment = 4. (type:uint8_t)
  24483. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number. [us] (type:uint64_t)
  24484. rpm : Reported motor RPM from each ESC (negative for reverse rotation). [rpm] (type:int32_t)
  24485. voltage : Voltage measured from each ESC. [V] (type:float)
  24486. current : Current measured from each ESC. [A] (type:float)
  24487. """
  24488. return MAVLink_esc_status_message(index, time_usec, rpm, voltage, current)
  24489. def esc_status_send(self, index: int, time_usec: int, rpm: Sequence[int], voltage: Sequence[float], current: Sequence[float], force_mavlink1: bool = False) -> None:
  24490. """
  24491. ESC information for higher rate streaming. Recommended streaming rate
  24492. is ~10 Hz. Information that changes more slowly is sent in
  24493. ESC_INFO. It should typically only be streamed on high-
  24494. bandwidth links (i.e. to a companion computer).
  24495. index : Index of the first ESC in this message. minValue = 0, maxValue = 60, increment = 4. (type:uint8_t)
  24496. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number. [us] (type:uint64_t)
  24497. rpm : Reported motor RPM from each ESC (negative for reverse rotation). [rpm] (type:int32_t)
  24498. voltage : Voltage measured from each ESC. [V] (type:float)
  24499. current : Current measured from each ESC. [A] (type:float)
  24500. """
  24501. self.send(self.esc_status_encode(index, time_usec, rpm, voltage, current), force_mavlink1=force_mavlink1)
  24502. def wifi_config_ap_encode(self, ssid: bytes, password: bytes, mode: int = 0, response: int = 0) -> MAVLink_wifi_config_ap_message:
  24503. """
  24504. Configure WiFi AP SSID, password, and mode. This message is re-emitted
  24505. as an acknowledgement by the AP. The message may also be
  24506. explicitly requested using MAV_CMD_REQUEST_MESSAGE
  24507. ssid : Name of Wi-Fi network (SSID). Blank to leave it unchanged when setting. Current SSID when sent back as a response. (type:char)
  24508. password : Password. Blank for an open AP. MD5 hash when message is sent back as a response. (type:char)
  24509. mode : WiFi Mode. (type:int8_t, values:WIFI_CONFIG_AP_MODE)
  24510. response : Message acceptance response (sent back to GS). (type:int8_t, values:WIFI_CONFIG_AP_RESPONSE)
  24511. """
  24512. return MAVLink_wifi_config_ap_message(ssid, password, mode, response)
  24513. def wifi_config_ap_send(self, ssid: bytes, password: bytes, mode: int = 0, response: int = 0, force_mavlink1: bool = False) -> None:
  24514. """
  24515. Configure WiFi AP SSID, password, and mode. This message is re-emitted
  24516. as an acknowledgement by the AP. The message may also be
  24517. explicitly requested using MAV_CMD_REQUEST_MESSAGE
  24518. ssid : Name of Wi-Fi network (SSID). Blank to leave it unchanged when setting. Current SSID when sent back as a response. (type:char)
  24519. password : Password. Blank for an open AP. MD5 hash when message is sent back as a response. (type:char)
  24520. mode : WiFi Mode. (type:int8_t, values:WIFI_CONFIG_AP_MODE)
  24521. response : Message acceptance response (sent back to GS). (type:int8_t, values:WIFI_CONFIG_AP_RESPONSE)
  24522. """
  24523. self.send(self.wifi_config_ap_encode(ssid, password, mode, response), force_mavlink1=force_mavlink1)
  24524. def ais_vessel_encode(self, MMSI: int, lat: int, lon: int, COG: int, heading: int, velocity: int, turn_rate: int, navigational_status: int, type: int, dimension_bow: int, dimension_stern: int, dimension_port: int, dimension_starboard: int, callsign: bytes, name: bytes, tslc: int, flags: int) -> MAVLink_ais_vessel_message:
  24525. """
  24526. The location and information of an AIS vessel
  24527. MMSI : Mobile Marine Service Identifier, 9 decimal digits (type:uint32_t)
  24528. lat : Latitude [degE7] (type:int32_t)
  24529. lon : Longitude [degE7] (type:int32_t)
  24530. COG : Course over ground [cdeg] (type:uint16_t)
  24531. heading : True heading [cdeg] (type:uint16_t)
  24532. velocity : Speed over ground [cm/s] (type:uint16_t)
  24533. turn_rate : Turn rate [cdeg/s] (type:int8_t)
  24534. navigational_status : Navigational status (type:uint8_t, values:AIS_NAV_STATUS)
  24535. type : Type of vessels (type:uint8_t, values:AIS_TYPE)
  24536. dimension_bow : Distance from lat/lon location to bow [m] (type:uint16_t)
  24537. dimension_stern : Distance from lat/lon location to stern [m] (type:uint16_t)
  24538. dimension_port : Distance from lat/lon location to port side [m] (type:uint8_t)
  24539. dimension_starboard : Distance from lat/lon location to starboard side [m] (type:uint8_t)
  24540. callsign : The vessel callsign (type:char)
  24541. name : The vessel name (type:char)
  24542. tslc : Time since last communication in seconds [s] (type:uint16_t)
  24543. flags : Bitmask to indicate various statuses including valid data fields (type:uint16_t, values:AIS_FLAGS)
  24544. """
  24545. return MAVLink_ais_vessel_message(MMSI, lat, lon, COG, heading, velocity, turn_rate, navigational_status, type, dimension_bow, dimension_stern, dimension_port, dimension_starboard, callsign, name, tslc, flags)
  24546. def ais_vessel_send(self, MMSI: int, lat: int, lon: int, COG: int, heading: int, velocity: int, turn_rate: int, navigational_status: int, type: int, dimension_bow: int, dimension_stern: int, dimension_port: int, dimension_starboard: int, callsign: bytes, name: bytes, tslc: int, flags: int, force_mavlink1: bool = False) -> None:
  24547. """
  24548. The location and information of an AIS vessel
  24549. MMSI : Mobile Marine Service Identifier, 9 decimal digits (type:uint32_t)
  24550. lat : Latitude [degE7] (type:int32_t)
  24551. lon : Longitude [degE7] (type:int32_t)
  24552. COG : Course over ground [cdeg] (type:uint16_t)
  24553. heading : True heading [cdeg] (type:uint16_t)
  24554. velocity : Speed over ground [cm/s] (type:uint16_t)
  24555. turn_rate : Turn rate [cdeg/s] (type:int8_t)
  24556. navigational_status : Navigational status (type:uint8_t, values:AIS_NAV_STATUS)
  24557. type : Type of vessels (type:uint8_t, values:AIS_TYPE)
  24558. dimension_bow : Distance from lat/lon location to bow [m] (type:uint16_t)
  24559. dimension_stern : Distance from lat/lon location to stern [m] (type:uint16_t)
  24560. dimension_port : Distance from lat/lon location to port side [m] (type:uint8_t)
  24561. dimension_starboard : Distance from lat/lon location to starboard side [m] (type:uint8_t)
  24562. callsign : The vessel callsign (type:char)
  24563. name : The vessel name (type:char)
  24564. tslc : Time since last communication in seconds [s] (type:uint16_t)
  24565. flags : Bitmask to indicate various statuses including valid data fields (type:uint16_t, values:AIS_FLAGS)
  24566. """
  24567. self.send(self.ais_vessel_encode(MMSI, lat, lon, COG, heading, velocity, turn_rate, navigational_status, type, dimension_bow, dimension_stern, dimension_port, dimension_starboard, callsign, name, tslc, flags), force_mavlink1=force_mavlink1)
  24568. def uavcan_node_status_encode(self, time_usec: int, uptime_sec: int, health: int, mode: int, sub_mode: int, vendor_specific_status_code: int) -> MAVLink_uavcan_node_status_message:
  24569. """
  24570. General status information of an UAVCAN node. Please refer to the
  24571. definition of the UAVCAN message "uavcan.protocol.NodeStatus"
  24572. for the background information. The UAVCAN specification is
  24573. available at http://uavcan.org.
  24574. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  24575. uptime_sec : Time since the start-up of the node. [s] (type:uint32_t)
  24576. health : Generalized node health status. (type:uint8_t, values:UAVCAN_NODE_HEALTH)
  24577. mode : Generalized operating mode. (type:uint8_t, values:UAVCAN_NODE_MODE)
  24578. sub_mode : Not used currently. (type:uint8_t)
  24579. vendor_specific_status_code : Vendor-specific status information. (type:uint16_t)
  24580. """
  24581. return MAVLink_uavcan_node_status_message(time_usec, uptime_sec, health, mode, sub_mode, vendor_specific_status_code)
  24582. def uavcan_node_status_send(self, time_usec: int, uptime_sec: int, health: int, mode: int, sub_mode: int, vendor_specific_status_code: int, force_mavlink1: bool = False) -> None:
  24583. """
  24584. General status information of an UAVCAN node. Please refer to the
  24585. definition of the UAVCAN message "uavcan.protocol.NodeStatus"
  24586. for the background information. The UAVCAN specification is
  24587. available at http://uavcan.org.
  24588. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  24589. uptime_sec : Time since the start-up of the node. [s] (type:uint32_t)
  24590. health : Generalized node health status. (type:uint8_t, values:UAVCAN_NODE_HEALTH)
  24591. mode : Generalized operating mode. (type:uint8_t, values:UAVCAN_NODE_MODE)
  24592. sub_mode : Not used currently. (type:uint8_t)
  24593. vendor_specific_status_code : Vendor-specific status information. (type:uint16_t)
  24594. """
  24595. self.send(self.uavcan_node_status_encode(time_usec, uptime_sec, health, mode, sub_mode, vendor_specific_status_code), force_mavlink1=force_mavlink1)
  24596. def uavcan_node_info_encode(self, time_usec: int, uptime_sec: int, name: bytes, hw_version_major: int, hw_version_minor: int, hw_unique_id: Sequence[int], sw_version_major: int, sw_version_minor: int, sw_vcs_commit: int) -> MAVLink_uavcan_node_info_message:
  24597. """
  24598. General information describing a particular UAVCAN node. Please refer
  24599. to the definition of the UAVCAN service
  24600. "uavcan.protocol.GetNodeInfo" for the background information.
  24601. This message should be emitted by the system whenever a new
  24602. node appears online, or an existing node reboots.
  24603. Additionally, it can be emitted upon request from the other
  24604. end of the MAVLink channel (see MAV_CMD_UAVCAN_GET_NODE_INFO).
  24605. It is also not prohibited to emit this message unconditionally
  24606. at a low frequency. The UAVCAN specification is available at
  24607. http://uavcan.org.
  24608. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  24609. uptime_sec : Time since the start-up of the node. [s] (type:uint32_t)
  24610. name : Node name string. For example, "sapog.px4.io". (type:char)
  24611. hw_version_major : Hardware major version number. (type:uint8_t)
  24612. hw_version_minor : Hardware minor version number. (type:uint8_t)
  24613. hw_unique_id : Hardware unique 128-bit ID. (type:uint8_t)
  24614. sw_version_major : Software major version number. (type:uint8_t)
  24615. sw_version_minor : Software minor version number. (type:uint8_t)
  24616. sw_vcs_commit : Version control system (VCS) revision identifier (e.g. git short commit hash). 0 if unknown. (type:uint32_t)
  24617. """
  24618. return MAVLink_uavcan_node_info_message(time_usec, uptime_sec, name, hw_version_major, hw_version_minor, hw_unique_id, sw_version_major, sw_version_minor, sw_vcs_commit)
  24619. def uavcan_node_info_send(self, time_usec: int, uptime_sec: int, name: bytes, hw_version_major: int, hw_version_minor: int, hw_unique_id: Sequence[int], sw_version_major: int, sw_version_minor: int, sw_vcs_commit: int, force_mavlink1: bool = False) -> None:
  24620. """
  24621. General information describing a particular UAVCAN node. Please refer
  24622. to the definition of the UAVCAN service
  24623. "uavcan.protocol.GetNodeInfo" for the background information.
  24624. This message should be emitted by the system whenever a new
  24625. node appears online, or an existing node reboots.
  24626. Additionally, it can be emitted upon request from the other
  24627. end of the MAVLink channel (see MAV_CMD_UAVCAN_GET_NODE_INFO).
  24628. It is also not prohibited to emit this message unconditionally
  24629. at a low frequency. The UAVCAN specification is available at
  24630. http://uavcan.org.
  24631. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  24632. uptime_sec : Time since the start-up of the node. [s] (type:uint32_t)
  24633. name : Node name string. For example, "sapog.px4.io". (type:char)
  24634. hw_version_major : Hardware major version number. (type:uint8_t)
  24635. hw_version_minor : Hardware minor version number. (type:uint8_t)
  24636. hw_unique_id : Hardware unique 128-bit ID. (type:uint8_t)
  24637. sw_version_major : Software major version number. (type:uint8_t)
  24638. sw_version_minor : Software minor version number. (type:uint8_t)
  24639. sw_vcs_commit : Version control system (VCS) revision identifier (e.g. git short commit hash). 0 if unknown. (type:uint32_t)
  24640. """
  24641. self.send(self.uavcan_node_info_encode(time_usec, uptime_sec, name, hw_version_major, hw_version_minor, hw_unique_id, sw_version_major, sw_version_minor, sw_vcs_commit), force_mavlink1=force_mavlink1)
  24642. def param_ext_request_read_encode(self, target_system: int, target_component: int, param_id: bytes, param_index: int) -> MAVLink_param_ext_request_read_message:
  24643. """
  24644. Request to read the value of a parameter with either the param_id
  24645. string id or param_index. PARAM_EXT_VALUE should be emitted in
  24646. response.
  24647. target_system : System ID (type:uint8_t)
  24648. target_component : Component ID (type:uint8_t)
  24649. param_id : Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string (type:char)
  24650. param_index : Parameter index. Set to -1 to use the Parameter ID field as identifier (else param_id will be ignored) (type:int16_t)
  24651. """
  24652. return MAVLink_param_ext_request_read_message(target_system, target_component, param_id, param_index)
  24653. def param_ext_request_read_send(self, target_system: int, target_component: int, param_id: bytes, param_index: int, force_mavlink1: bool = False) -> None:
  24654. """
  24655. Request to read the value of a parameter with either the param_id
  24656. string id or param_index. PARAM_EXT_VALUE should be emitted in
  24657. response.
  24658. target_system : System ID (type:uint8_t)
  24659. target_component : Component ID (type:uint8_t)
  24660. param_id : Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string (type:char)
  24661. param_index : Parameter index. Set to -1 to use the Parameter ID field as identifier (else param_id will be ignored) (type:int16_t)
  24662. """
  24663. self.send(self.param_ext_request_read_encode(target_system, target_component, param_id, param_index), force_mavlink1=force_mavlink1)
  24664. def param_ext_request_list_encode(self, target_system: int, target_component: int) -> MAVLink_param_ext_request_list_message:
  24665. """
  24666. Request all parameters of this component. All parameters should be
  24667. emitted in response as PARAM_EXT_VALUE.
  24668. target_system : System ID (type:uint8_t)
  24669. target_component : Component ID (type:uint8_t)
  24670. """
  24671. return MAVLink_param_ext_request_list_message(target_system, target_component)
  24672. def param_ext_request_list_send(self, target_system: int, target_component: int, force_mavlink1: bool = False) -> None:
  24673. """
  24674. Request all parameters of this component. All parameters should be
  24675. emitted in response as PARAM_EXT_VALUE.
  24676. target_system : System ID (type:uint8_t)
  24677. target_component : Component ID (type:uint8_t)
  24678. """
  24679. self.send(self.param_ext_request_list_encode(target_system, target_component), force_mavlink1=force_mavlink1)
  24680. def param_ext_value_encode(self, param_id: bytes, param_value: bytes, param_type: int, param_count: int, param_index: int) -> MAVLink_param_ext_value_message:
  24681. """
  24682. Emit the value of a parameter. The inclusion of param_count and
  24683. param_index in the message allows the recipient to keep track
  24684. of received parameters and allows them to re-request missing
  24685. parameters after a loss or timeout.
  24686. param_id : Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string (type:char)
  24687. param_value : Parameter value (type:char)
  24688. param_type : Parameter type. (type:uint8_t, values:MAV_PARAM_EXT_TYPE)
  24689. param_count : Total number of parameters (type:uint16_t)
  24690. param_index : Index of this parameter (type:uint16_t)
  24691. """
  24692. return MAVLink_param_ext_value_message(param_id, param_value, param_type, param_count, param_index)
  24693. def param_ext_value_send(self, param_id: bytes, param_value: bytes, param_type: int, param_count: int, param_index: int, force_mavlink1: bool = False) -> None:
  24694. """
  24695. Emit the value of a parameter. The inclusion of param_count and
  24696. param_index in the message allows the recipient to keep track
  24697. of received parameters and allows them to re-request missing
  24698. parameters after a loss or timeout.
  24699. param_id : Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string (type:char)
  24700. param_value : Parameter value (type:char)
  24701. param_type : Parameter type. (type:uint8_t, values:MAV_PARAM_EXT_TYPE)
  24702. param_count : Total number of parameters (type:uint16_t)
  24703. param_index : Index of this parameter (type:uint16_t)
  24704. """
  24705. self.send(self.param_ext_value_encode(param_id, param_value, param_type, param_count, param_index), force_mavlink1=force_mavlink1)
  24706. def param_ext_set_encode(self, target_system: int, target_component: int, param_id: bytes, param_value: bytes, param_type: int) -> MAVLink_param_ext_set_message:
  24707. """
  24708. Set a parameter value. In order to deal with message loss (and
  24709. retransmission of PARAM_EXT_SET), when setting a parameter
  24710. value and the new value is the same as the current value, you
  24711. will immediately get a PARAM_ACK_ACCEPTED response. If the
  24712. current state is PARAM_ACK_IN_PROGRESS, you will accordingly
  24713. receive a PARAM_ACK_IN_PROGRESS in response.
  24714. target_system : System ID (type:uint8_t)
  24715. target_component : Component ID (type:uint8_t)
  24716. param_id : Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string (type:char)
  24717. param_value : Parameter value (type:char)
  24718. param_type : Parameter type. (type:uint8_t, values:MAV_PARAM_EXT_TYPE)
  24719. """
  24720. return MAVLink_param_ext_set_message(target_system, target_component, param_id, param_value, param_type)
  24721. def param_ext_set_send(self, target_system: int, target_component: int, param_id: bytes, param_value: bytes, param_type: int, force_mavlink1: bool = False) -> None:
  24722. """
  24723. Set a parameter value. In order to deal with message loss (and
  24724. retransmission of PARAM_EXT_SET), when setting a parameter
  24725. value and the new value is the same as the current value, you
  24726. will immediately get a PARAM_ACK_ACCEPTED response. If the
  24727. current state is PARAM_ACK_IN_PROGRESS, you will accordingly
  24728. receive a PARAM_ACK_IN_PROGRESS in response.
  24729. target_system : System ID (type:uint8_t)
  24730. target_component : Component ID (type:uint8_t)
  24731. param_id : Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string (type:char)
  24732. param_value : Parameter value (type:char)
  24733. param_type : Parameter type. (type:uint8_t, values:MAV_PARAM_EXT_TYPE)
  24734. """
  24735. self.send(self.param_ext_set_encode(target_system, target_component, param_id, param_value, param_type), force_mavlink1=force_mavlink1)
  24736. def param_ext_ack_encode(self, param_id: bytes, param_value: bytes, param_type: int, param_result: int) -> MAVLink_param_ext_ack_message:
  24737. """
  24738. Response from a PARAM_EXT_SET message.
  24739. param_id : Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string (type:char)
  24740. param_value : Parameter value (new value if PARAM_ACK_ACCEPTED, current value otherwise) (type:char)
  24741. param_type : Parameter type. (type:uint8_t, values:MAV_PARAM_EXT_TYPE)
  24742. param_result : Result code. (type:uint8_t, values:PARAM_ACK)
  24743. """
  24744. return MAVLink_param_ext_ack_message(param_id, param_value, param_type, param_result)
  24745. def param_ext_ack_send(self, param_id: bytes, param_value: bytes, param_type: int, param_result: int, force_mavlink1: bool = False) -> None:
  24746. """
  24747. Response from a PARAM_EXT_SET message.
  24748. param_id : Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string (type:char)
  24749. param_value : Parameter value (new value if PARAM_ACK_ACCEPTED, current value otherwise) (type:char)
  24750. param_type : Parameter type. (type:uint8_t, values:MAV_PARAM_EXT_TYPE)
  24751. param_result : Result code. (type:uint8_t, values:PARAM_ACK)
  24752. """
  24753. self.send(self.param_ext_ack_encode(param_id, param_value, param_type, param_result), force_mavlink1=force_mavlink1)
  24754. def obstacle_distance_encode(self, time_usec: int, sensor_type: int, distances: Sequence[int], increment: int, min_distance: int, max_distance: int, increment_f: float = 0, angle_offset: float = 0, frame: int = 0) -> MAVLink_obstacle_distance_message:
  24755. """
  24756. Obstacle distances in front of the sensor, starting from the left in
  24757. increment degrees to the right
  24758. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  24759. sensor_type : Class id of the distance sensor type. (type:uint8_t, values:MAV_DISTANCE_SENSOR)
  24760. distances : Distance of obstacles around the vehicle with index 0 corresponding to north + angle_offset, unless otherwise specified in the frame. A value of 0 is valid and means that the obstacle is practically touching the sensor. A value of max_distance +1 means no obstacle is present. A value of UINT16_MAX for unknown/not used. In a array element, one unit corresponds to 1cm. [cm] (type:uint16_t)
  24761. increment : Angular width in degrees of each array element. Increment direction is clockwise. This field is ignored if increment_f is non-zero. [deg] (type:uint8_t)
  24762. min_distance : Minimum distance the sensor can measure. [cm] (type:uint16_t)
  24763. max_distance : Maximum distance the sensor can measure. [cm] (type:uint16_t)
  24764. increment_f : Angular width in degrees of each array element as a float. If non-zero then this value is used instead of the uint8_t increment field. Positive is clockwise direction, negative is counter-clockwise. [deg] (type:float)
  24765. angle_offset : Relative angle offset of the 0-index element in the distances array. Value of 0 corresponds to forward. Positive is clockwise direction, negative is counter-clockwise. [deg] (type:float)
  24766. frame : Coordinate frame of reference for the yaw rotation and offset of the sensor data. Defaults to MAV_FRAME_GLOBAL, which is north aligned. For body-mounted sensors use MAV_FRAME_BODY_FRD, which is vehicle front aligned. (type:uint8_t, values:MAV_FRAME)
  24767. """
  24768. return MAVLink_obstacle_distance_message(time_usec, sensor_type, distances, increment, min_distance, max_distance, increment_f, angle_offset, frame)
  24769. def obstacle_distance_send(self, time_usec: int, sensor_type: int, distances: Sequence[int], increment: int, min_distance: int, max_distance: int, increment_f: float = 0, angle_offset: float = 0, frame: int = 0, force_mavlink1: bool = False) -> None:
  24770. """
  24771. Obstacle distances in front of the sensor, starting from the left in
  24772. increment degrees to the right
  24773. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  24774. sensor_type : Class id of the distance sensor type. (type:uint8_t, values:MAV_DISTANCE_SENSOR)
  24775. distances : Distance of obstacles around the vehicle with index 0 corresponding to north + angle_offset, unless otherwise specified in the frame. A value of 0 is valid and means that the obstacle is practically touching the sensor. A value of max_distance +1 means no obstacle is present. A value of UINT16_MAX for unknown/not used. In a array element, one unit corresponds to 1cm. [cm] (type:uint16_t)
  24776. increment : Angular width in degrees of each array element. Increment direction is clockwise. This field is ignored if increment_f is non-zero. [deg] (type:uint8_t)
  24777. min_distance : Minimum distance the sensor can measure. [cm] (type:uint16_t)
  24778. max_distance : Maximum distance the sensor can measure. [cm] (type:uint16_t)
  24779. increment_f : Angular width in degrees of each array element as a float. If non-zero then this value is used instead of the uint8_t increment field. Positive is clockwise direction, negative is counter-clockwise. [deg] (type:float)
  24780. angle_offset : Relative angle offset of the 0-index element in the distances array. Value of 0 corresponds to forward. Positive is clockwise direction, negative is counter-clockwise. [deg] (type:float)
  24781. frame : Coordinate frame of reference for the yaw rotation and offset of the sensor data. Defaults to MAV_FRAME_GLOBAL, which is north aligned. For body-mounted sensors use MAV_FRAME_BODY_FRD, which is vehicle front aligned. (type:uint8_t, values:MAV_FRAME)
  24782. """
  24783. self.send(self.obstacle_distance_encode(time_usec, sensor_type, distances, increment, min_distance, max_distance, increment_f, angle_offset, frame), force_mavlink1=force_mavlink1)
  24784. def odometry_encode(self, time_usec: int, frame_id: int, child_frame_id: int, x: float, y: float, z: float, q: Sequence[float], vx: float, vy: float, vz: float, rollspeed: float, pitchspeed: float, yawspeed: float, pose_covariance: Sequence[float], velocity_covariance: Sequence[float], reset_counter: int = 0, estimator_type: int = 0, quality: int = 0) -> MAVLink_odometry_message:
  24785. """
  24786. Odometry message to communicate odometry information with an external
  24787. interface. Fits ROS REP 147 standard for aerial vehicles
  24788. (http://www.ros.org/reps/rep-0147.html).
  24789. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  24790. frame_id : Coordinate frame of reference for the pose data. (type:uint8_t, values:MAV_FRAME)
  24791. child_frame_id : Coordinate frame of reference for the velocity in free space (twist) data. (type:uint8_t, values:MAV_FRAME)
  24792. x : X Position [m] (type:float)
  24793. y : Y Position [m] (type:float)
  24794. z : Z Position [m] (type:float)
  24795. q : Quaternion components, w, x, y, z (1 0 0 0 is the null-rotation) (type:float)
  24796. vx : X linear speed [m/s] (type:float)
  24797. vy : Y linear speed [m/s] (type:float)
  24798. vz : Z linear speed [m/s] (type:float)
  24799. rollspeed : Roll angular speed [rad/s] (type:float)
  24800. pitchspeed : Pitch angular speed [rad/s] (type:float)
  24801. yawspeed : Yaw angular speed [rad/s] (type:float)
  24802. pose_covariance : Row-major representation of a 6x6 pose cross-covariance matrix upper right triangle (states: x, y, z, roll, pitch, yaw; first six entries are the first ROW, next five entries are the second ROW, etc.). If unknown, assign NaN value to first element in the array. (type:float)
  24803. velocity_covariance : Row-major representation of a 6x6 velocity cross-covariance matrix upper right triangle (states: vx, vy, vz, rollspeed, pitchspeed, yawspeed; first six entries are the first ROW, next five entries are the second ROW, etc.). If unknown, assign NaN value to first element in the array. (type:float)
  24804. reset_counter : Estimate reset counter. This should be incremented when the estimate resets in any of the dimensions (position, velocity, attitude, angular speed). This is designed to be used when e.g an external SLAM system detects a loop-closure and the estimate jumps. (type:uint8_t)
  24805. estimator_type : Type of estimator that is providing the odometry. (type:uint8_t, values:MAV_ESTIMATOR_TYPE)
  24806. quality : Optional odometry quality metric as a percentage. -1 = odometry has failed, 0 = unknown/unset quality, 1 = worst quality, 100 = best quality [%] (type:int8_t)
  24807. """
  24808. return MAVLink_odometry_message(time_usec, frame_id, child_frame_id, x, y, z, q, vx, vy, vz, rollspeed, pitchspeed, yawspeed, pose_covariance, velocity_covariance, reset_counter, estimator_type, quality)
  24809. def odometry_send(self, time_usec: int, frame_id: int, child_frame_id: int, x: float, y: float, z: float, q: Sequence[float], vx: float, vy: float, vz: float, rollspeed: float, pitchspeed: float, yawspeed: float, pose_covariance: Sequence[float], velocity_covariance: Sequence[float], reset_counter: int = 0, estimator_type: int = 0, quality: int = 0, force_mavlink1: bool = False) -> None:
  24810. """
  24811. Odometry message to communicate odometry information with an external
  24812. interface. Fits ROS REP 147 standard for aerial vehicles
  24813. (http://www.ros.org/reps/rep-0147.html).
  24814. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  24815. frame_id : Coordinate frame of reference for the pose data. (type:uint8_t, values:MAV_FRAME)
  24816. child_frame_id : Coordinate frame of reference for the velocity in free space (twist) data. (type:uint8_t, values:MAV_FRAME)
  24817. x : X Position [m] (type:float)
  24818. y : Y Position [m] (type:float)
  24819. z : Z Position [m] (type:float)
  24820. q : Quaternion components, w, x, y, z (1 0 0 0 is the null-rotation) (type:float)
  24821. vx : X linear speed [m/s] (type:float)
  24822. vy : Y linear speed [m/s] (type:float)
  24823. vz : Z linear speed [m/s] (type:float)
  24824. rollspeed : Roll angular speed [rad/s] (type:float)
  24825. pitchspeed : Pitch angular speed [rad/s] (type:float)
  24826. yawspeed : Yaw angular speed [rad/s] (type:float)
  24827. pose_covariance : Row-major representation of a 6x6 pose cross-covariance matrix upper right triangle (states: x, y, z, roll, pitch, yaw; first six entries are the first ROW, next five entries are the second ROW, etc.). If unknown, assign NaN value to first element in the array. (type:float)
  24828. velocity_covariance : Row-major representation of a 6x6 velocity cross-covariance matrix upper right triangle (states: vx, vy, vz, rollspeed, pitchspeed, yawspeed; first six entries are the first ROW, next five entries are the second ROW, etc.). If unknown, assign NaN value to first element in the array. (type:float)
  24829. reset_counter : Estimate reset counter. This should be incremented when the estimate resets in any of the dimensions (position, velocity, attitude, angular speed). This is designed to be used when e.g an external SLAM system detects a loop-closure and the estimate jumps. (type:uint8_t)
  24830. estimator_type : Type of estimator that is providing the odometry. (type:uint8_t, values:MAV_ESTIMATOR_TYPE)
  24831. quality : Optional odometry quality metric as a percentage. -1 = odometry has failed, 0 = unknown/unset quality, 1 = worst quality, 100 = best quality [%] (type:int8_t)
  24832. """
  24833. self.send(self.odometry_encode(time_usec, frame_id, child_frame_id, x, y, z, q, vx, vy, vz, rollspeed, pitchspeed, yawspeed, pose_covariance, velocity_covariance, reset_counter, estimator_type, quality), force_mavlink1=force_mavlink1)
  24834. def trajectory_representation_waypoints_encode(self, time_usec: int, valid_points: int, pos_x: Sequence[float], pos_y: Sequence[float], pos_z: Sequence[float], vel_x: Sequence[float], vel_y: Sequence[float], vel_z: Sequence[float], acc_x: Sequence[float], acc_y: Sequence[float], acc_z: Sequence[float], pos_yaw: Sequence[float], vel_yaw: Sequence[float], command: Sequence[int]) -> MAVLink_trajectory_representation_waypoints_message:
  24835. """
  24836. Describe a trajectory using an array of up-to 5 waypoints in the local
  24837. frame (MAV_FRAME_LOCAL_NED).
  24838. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  24839. valid_points : Number of valid points (up-to 5 waypoints are possible) (type:uint8_t)
  24840. pos_x : X-coordinate of waypoint, set to NaN if not being used [m] (type:float)
  24841. pos_y : Y-coordinate of waypoint, set to NaN if not being used [m] (type:float)
  24842. pos_z : Z-coordinate of waypoint, set to NaN if not being used [m] (type:float)
  24843. vel_x : X-velocity of waypoint, set to NaN if not being used [m/s] (type:float)
  24844. vel_y : Y-velocity of waypoint, set to NaN if not being used [m/s] (type:float)
  24845. vel_z : Z-velocity of waypoint, set to NaN if not being used [m/s] (type:float)
  24846. acc_x : X-acceleration of waypoint, set to NaN if not being used [m/s/s] (type:float)
  24847. acc_y : Y-acceleration of waypoint, set to NaN if not being used [m/s/s] (type:float)
  24848. acc_z : Z-acceleration of waypoint, set to NaN if not being used [m/s/s] (type:float)
  24849. pos_yaw : Yaw angle, set to NaN if not being used [rad] (type:float)
  24850. vel_yaw : Yaw rate, set to NaN if not being used [rad/s] (type:float)
  24851. command : MAV_CMD command id of waypoint, set to UINT16_MAX if not being used. (type:uint16_t, values:MAV_CMD)
  24852. """
  24853. return MAVLink_trajectory_representation_waypoints_message(time_usec, valid_points, pos_x, pos_y, pos_z, vel_x, vel_y, vel_z, acc_x, acc_y, acc_z, pos_yaw, vel_yaw, command)
  24854. def trajectory_representation_waypoints_send(self, time_usec: int, valid_points: int, pos_x: Sequence[float], pos_y: Sequence[float], pos_z: Sequence[float], vel_x: Sequence[float], vel_y: Sequence[float], vel_z: Sequence[float], acc_x: Sequence[float], acc_y: Sequence[float], acc_z: Sequence[float], pos_yaw: Sequence[float], vel_yaw: Sequence[float], command: Sequence[int], force_mavlink1: bool = False) -> None:
  24855. """
  24856. Describe a trajectory using an array of up-to 5 waypoints in the local
  24857. frame (MAV_FRAME_LOCAL_NED).
  24858. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  24859. valid_points : Number of valid points (up-to 5 waypoints are possible) (type:uint8_t)
  24860. pos_x : X-coordinate of waypoint, set to NaN if not being used [m] (type:float)
  24861. pos_y : Y-coordinate of waypoint, set to NaN if not being used [m] (type:float)
  24862. pos_z : Z-coordinate of waypoint, set to NaN if not being used [m] (type:float)
  24863. vel_x : X-velocity of waypoint, set to NaN if not being used [m/s] (type:float)
  24864. vel_y : Y-velocity of waypoint, set to NaN if not being used [m/s] (type:float)
  24865. vel_z : Z-velocity of waypoint, set to NaN if not being used [m/s] (type:float)
  24866. acc_x : X-acceleration of waypoint, set to NaN if not being used [m/s/s] (type:float)
  24867. acc_y : Y-acceleration of waypoint, set to NaN if not being used [m/s/s] (type:float)
  24868. acc_z : Z-acceleration of waypoint, set to NaN if not being used [m/s/s] (type:float)
  24869. pos_yaw : Yaw angle, set to NaN if not being used [rad] (type:float)
  24870. vel_yaw : Yaw rate, set to NaN if not being used [rad/s] (type:float)
  24871. command : MAV_CMD command id of waypoint, set to UINT16_MAX if not being used. (type:uint16_t, values:MAV_CMD)
  24872. """
  24873. self.send(self.trajectory_representation_waypoints_encode(time_usec, valid_points, pos_x, pos_y, pos_z, vel_x, vel_y, vel_z, acc_x, acc_y, acc_z, pos_yaw, vel_yaw, command), force_mavlink1=force_mavlink1)
  24874. def trajectory_representation_bezier_encode(self, time_usec: int, valid_points: int, pos_x: Sequence[float], pos_y: Sequence[float], pos_z: Sequence[float], delta: Sequence[float], pos_yaw: Sequence[float]) -> MAVLink_trajectory_representation_bezier_message:
  24875. """
  24876. Describe a trajectory using an array of up-to 5 bezier control points
  24877. in the local frame (MAV_FRAME_LOCAL_NED).
  24878. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  24879. valid_points : Number of valid control points (up-to 5 points are possible) (type:uint8_t)
  24880. pos_x : X-coordinate of bezier control points. Set to NaN if not being used [m] (type:float)
  24881. pos_y : Y-coordinate of bezier control points. Set to NaN if not being used [m] (type:float)
  24882. pos_z : Z-coordinate of bezier control points. Set to NaN if not being used [m] (type:float)
  24883. delta : Bezier time horizon. Set to NaN if velocity/acceleration should not be incorporated [s] (type:float)
  24884. pos_yaw : Yaw. Set to NaN for unchanged [rad] (type:float)
  24885. """
  24886. return MAVLink_trajectory_representation_bezier_message(time_usec, valid_points, pos_x, pos_y, pos_z, delta, pos_yaw)
  24887. def trajectory_representation_bezier_send(self, time_usec: int, valid_points: int, pos_x: Sequence[float], pos_y: Sequence[float], pos_z: Sequence[float], delta: Sequence[float], pos_yaw: Sequence[float], force_mavlink1: bool = False) -> None:
  24888. """
  24889. Describe a trajectory using an array of up-to 5 bezier control points
  24890. in the local frame (MAV_FRAME_LOCAL_NED).
  24891. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  24892. valid_points : Number of valid control points (up-to 5 points are possible) (type:uint8_t)
  24893. pos_x : X-coordinate of bezier control points. Set to NaN if not being used [m] (type:float)
  24894. pos_y : Y-coordinate of bezier control points. Set to NaN if not being used [m] (type:float)
  24895. pos_z : Z-coordinate of bezier control points. Set to NaN if not being used [m] (type:float)
  24896. delta : Bezier time horizon. Set to NaN if velocity/acceleration should not be incorporated [s] (type:float)
  24897. pos_yaw : Yaw. Set to NaN for unchanged [rad] (type:float)
  24898. """
  24899. self.send(self.trajectory_representation_bezier_encode(time_usec, valid_points, pos_x, pos_y, pos_z, delta, pos_yaw), force_mavlink1=force_mavlink1)
  24900. def cellular_status_encode(self, status: int, failure_reason: int, type: int, quality: int, mcc: int, mnc: int, lac: int) -> MAVLink_cellular_status_message:
  24901. """
  24902. Report current used cellular network status
  24903. status : Cellular modem status (type:uint8_t, values:CELLULAR_STATUS_FLAG)
  24904. failure_reason : Failure reason when status in in CELLULAR_STATUS_FLAG_FAILED (type:uint8_t, values:CELLULAR_NETWORK_FAILED_REASON)
  24905. type : Cellular network radio type: gsm, cdma, lte... (type:uint8_t, values:CELLULAR_NETWORK_RADIO_TYPE)
  24906. quality : Signal quality in percent. If unknown, set to UINT8_MAX (type:uint8_t)
  24907. mcc : Mobile country code. If unknown, set to UINT16_MAX (type:uint16_t)
  24908. mnc : Mobile network code. If unknown, set to UINT16_MAX (type:uint16_t)
  24909. lac : Location area code. If unknown, set to 0 (type:uint16_t)
  24910. """
  24911. return MAVLink_cellular_status_message(status, failure_reason, type, quality, mcc, mnc, lac)
  24912. def cellular_status_send(self, status: int, failure_reason: int, type: int, quality: int, mcc: int, mnc: int, lac: int, force_mavlink1: bool = False) -> None:
  24913. """
  24914. Report current used cellular network status
  24915. status : Cellular modem status (type:uint8_t, values:CELLULAR_STATUS_FLAG)
  24916. failure_reason : Failure reason when status in in CELLULAR_STATUS_FLAG_FAILED (type:uint8_t, values:CELLULAR_NETWORK_FAILED_REASON)
  24917. type : Cellular network radio type: gsm, cdma, lte... (type:uint8_t, values:CELLULAR_NETWORK_RADIO_TYPE)
  24918. quality : Signal quality in percent. If unknown, set to UINT8_MAX (type:uint8_t)
  24919. mcc : Mobile country code. If unknown, set to UINT16_MAX (type:uint16_t)
  24920. mnc : Mobile network code. If unknown, set to UINT16_MAX (type:uint16_t)
  24921. lac : Location area code. If unknown, set to 0 (type:uint16_t)
  24922. """
  24923. self.send(self.cellular_status_encode(status, failure_reason, type, quality, mcc, mnc, lac), force_mavlink1=force_mavlink1)
  24924. def isbd_link_status_encode(self, timestamp: int, last_heartbeat: int, failed_sessions: int, successful_sessions: int, signal_quality: int, ring_pending: int, tx_session_pending: int, rx_session_pending: int) -> MAVLink_isbd_link_status_message:
  24925. """
  24926. Status of the Iridium SBD link.
  24927. timestamp : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  24928. last_heartbeat : Timestamp of the last successful sbd session. The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  24929. failed_sessions : Number of failed SBD sessions. (type:uint16_t)
  24930. successful_sessions : Number of successful SBD sessions. (type:uint16_t)
  24931. signal_quality : Signal quality equal to the number of bars displayed on the ISU signal strength indicator. Range is 0 to 5, where 0 indicates no signal and 5 indicates maximum signal strength. (type:uint8_t)
  24932. ring_pending : 1: Ring call pending, 0: No call pending. (type:uint8_t)
  24933. tx_session_pending : 1: Transmission session pending, 0: No transmission session pending. (type:uint8_t)
  24934. rx_session_pending : 1: Receiving session pending, 0: No receiving session pending. (type:uint8_t)
  24935. """
  24936. return MAVLink_isbd_link_status_message(timestamp, last_heartbeat, failed_sessions, successful_sessions, signal_quality, ring_pending, tx_session_pending, rx_session_pending)
  24937. def isbd_link_status_send(self, timestamp: int, last_heartbeat: int, failed_sessions: int, successful_sessions: int, signal_quality: int, ring_pending: int, tx_session_pending: int, rx_session_pending: int, force_mavlink1: bool = False) -> None:
  24938. """
  24939. Status of the Iridium SBD link.
  24940. timestamp : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  24941. last_heartbeat : Timestamp of the last successful sbd session. The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  24942. failed_sessions : Number of failed SBD sessions. (type:uint16_t)
  24943. successful_sessions : Number of successful SBD sessions. (type:uint16_t)
  24944. signal_quality : Signal quality equal to the number of bars displayed on the ISU signal strength indicator. Range is 0 to 5, where 0 indicates no signal and 5 indicates maximum signal strength. (type:uint8_t)
  24945. ring_pending : 1: Ring call pending, 0: No call pending. (type:uint8_t)
  24946. tx_session_pending : 1: Transmission session pending, 0: No transmission session pending. (type:uint8_t)
  24947. rx_session_pending : 1: Receiving session pending, 0: No receiving session pending. (type:uint8_t)
  24948. """
  24949. self.send(self.isbd_link_status_encode(timestamp, last_heartbeat, failed_sessions, successful_sessions, signal_quality, ring_pending, tx_session_pending, rx_session_pending), force_mavlink1=force_mavlink1)
  24950. def cellular_config_encode(self, enable_lte: int, enable_pin: int, pin: bytes, new_pin: bytes, apn: bytes, puk: bytes, roaming: int, response: int) -> MAVLink_cellular_config_message:
  24951. """
  24952. Configure cellular modems. This message is re-emitted as an
  24953. acknowledgement by the modem. The message may also be
  24954. explicitly requested using MAV_CMD_REQUEST_MESSAGE.
  24955. enable_lte : Enable/disable LTE. 0: setting unchanged, 1: disabled, 2: enabled. Current setting when sent back as a response. (type:uint8_t)
  24956. enable_pin : Enable/disable PIN on the SIM card. 0: setting unchanged, 1: disabled, 2: enabled. Current setting when sent back as a response. (type:uint8_t)
  24957. pin : PIN sent to the SIM card. Blank when PIN is disabled. Empty when message is sent back as a response. (type:char)
  24958. new_pin : New PIN when changing the PIN. Blank to leave it unchanged. Empty when message is sent back as a response. (type:char)
  24959. apn : Name of the cellular APN. Blank to leave it unchanged. Current APN when sent back as a response. (type:char)
  24960. puk : Required PUK code in case the user failed to authenticate 3 times with the PIN. Empty when message is sent back as a response. (type:char)
  24961. roaming : Enable/disable roaming. 0: setting unchanged, 1: disabled, 2: enabled. Current setting when sent back as a response. (type:uint8_t)
  24962. response : Message acceptance response (sent back to GS). (type:uint8_t, values:CELLULAR_CONFIG_RESPONSE)
  24963. """
  24964. return MAVLink_cellular_config_message(enable_lte, enable_pin, pin, new_pin, apn, puk, roaming, response)
  24965. def cellular_config_send(self, enable_lte: int, enable_pin: int, pin: bytes, new_pin: bytes, apn: bytes, puk: bytes, roaming: int, response: int, force_mavlink1: bool = False) -> None:
  24966. """
  24967. Configure cellular modems. This message is re-emitted as an
  24968. acknowledgement by the modem. The message may also be
  24969. explicitly requested using MAV_CMD_REQUEST_MESSAGE.
  24970. enable_lte : Enable/disable LTE. 0: setting unchanged, 1: disabled, 2: enabled. Current setting when sent back as a response. (type:uint8_t)
  24971. enable_pin : Enable/disable PIN on the SIM card. 0: setting unchanged, 1: disabled, 2: enabled. Current setting when sent back as a response. (type:uint8_t)
  24972. pin : PIN sent to the SIM card. Blank when PIN is disabled. Empty when message is sent back as a response. (type:char)
  24973. new_pin : New PIN when changing the PIN. Blank to leave it unchanged. Empty when message is sent back as a response. (type:char)
  24974. apn : Name of the cellular APN. Blank to leave it unchanged. Current APN when sent back as a response. (type:char)
  24975. puk : Required PUK code in case the user failed to authenticate 3 times with the PIN. Empty when message is sent back as a response. (type:char)
  24976. roaming : Enable/disable roaming. 0: setting unchanged, 1: disabled, 2: enabled. Current setting when sent back as a response. (type:uint8_t)
  24977. response : Message acceptance response (sent back to GS). (type:uint8_t, values:CELLULAR_CONFIG_RESPONSE)
  24978. """
  24979. self.send(self.cellular_config_encode(enable_lte, enable_pin, pin, new_pin, apn, puk, roaming, response), force_mavlink1=force_mavlink1)
  24980. def raw_rpm_encode(self, index: int, frequency: float) -> MAVLink_raw_rpm_message:
  24981. """
  24982. RPM sensor data message.
  24983. index : Index of this RPM sensor (0-indexed) (type:uint8_t)
  24984. frequency : Indicated rate [rpm] (type:float)
  24985. """
  24986. return MAVLink_raw_rpm_message(index, frequency)
  24987. def raw_rpm_send(self, index: int, frequency: float, force_mavlink1: bool = False) -> None:
  24988. """
  24989. RPM sensor data message.
  24990. index : Index of this RPM sensor (0-indexed) (type:uint8_t)
  24991. frequency : Indicated rate [rpm] (type:float)
  24992. """
  24993. self.send(self.raw_rpm_encode(index, frequency), force_mavlink1=force_mavlink1)
  24994. def utm_global_position_encode(self, time: int, uas_id: Sequence[int], lat: int, lon: int, alt: int, relative_alt: int, vx: int, vy: int, vz: int, h_acc: int, v_acc: int, vel_acc: int, next_lat: int, next_lon: int, next_alt: int, update_rate: int, flight_state: int, flags: int) -> MAVLink_utm_global_position_message:
  24995. """
  24996. The global position resulting from GPS and sensor fusion.
  24997. time : Time of applicability of position (microseconds since UNIX epoch). [us] (type:uint64_t)
  24998. uas_id : Unique UAS ID. (type:uint8_t)
  24999. lat : Latitude (WGS84) [degE7] (type:int32_t)
  25000. lon : Longitude (WGS84) [degE7] (type:int32_t)
  25001. alt : Altitude (WGS84) [mm] (type:int32_t)
  25002. relative_alt : Altitude above ground [mm] (type:int32_t)
  25003. vx : Ground X speed (latitude, positive north) [cm/s] (type:int16_t)
  25004. vy : Ground Y speed (longitude, positive east) [cm/s] (type:int16_t)
  25005. vz : Ground Z speed (altitude, positive down) [cm/s] (type:int16_t)
  25006. h_acc : Horizontal position uncertainty (standard deviation) [mm] (type:uint16_t)
  25007. v_acc : Altitude uncertainty (standard deviation) [mm] (type:uint16_t)
  25008. vel_acc : Speed uncertainty (standard deviation) [cm/s] (type:uint16_t)
  25009. next_lat : Next waypoint, latitude (WGS84) [degE7] (type:int32_t)
  25010. next_lon : Next waypoint, longitude (WGS84) [degE7] (type:int32_t)
  25011. next_alt : Next waypoint, altitude (WGS84) [mm] (type:int32_t)
  25012. update_rate : Time until next update. Set to 0 if unknown or in data driven mode. [cs] (type:uint16_t)
  25013. flight_state : Flight state (type:uint8_t, values:UTM_FLIGHT_STATE)
  25014. flags : Bitwise OR combination of the data available flags. (type:uint8_t, values:UTM_DATA_AVAIL_FLAGS)
  25015. """
  25016. return MAVLink_utm_global_position_message(time, uas_id, lat, lon, alt, relative_alt, vx, vy, vz, h_acc, v_acc, vel_acc, next_lat, next_lon, next_alt, update_rate, flight_state, flags)
  25017. def utm_global_position_send(self, time: int, uas_id: Sequence[int], lat: int, lon: int, alt: int, relative_alt: int, vx: int, vy: int, vz: int, h_acc: int, v_acc: int, vel_acc: int, next_lat: int, next_lon: int, next_alt: int, update_rate: int, flight_state: int, flags: int, force_mavlink1: bool = False) -> None:
  25018. """
  25019. The global position resulting from GPS and sensor fusion.
  25020. time : Time of applicability of position (microseconds since UNIX epoch). [us] (type:uint64_t)
  25021. uas_id : Unique UAS ID. (type:uint8_t)
  25022. lat : Latitude (WGS84) [degE7] (type:int32_t)
  25023. lon : Longitude (WGS84) [degE7] (type:int32_t)
  25024. alt : Altitude (WGS84) [mm] (type:int32_t)
  25025. relative_alt : Altitude above ground [mm] (type:int32_t)
  25026. vx : Ground X speed (latitude, positive north) [cm/s] (type:int16_t)
  25027. vy : Ground Y speed (longitude, positive east) [cm/s] (type:int16_t)
  25028. vz : Ground Z speed (altitude, positive down) [cm/s] (type:int16_t)
  25029. h_acc : Horizontal position uncertainty (standard deviation) [mm] (type:uint16_t)
  25030. v_acc : Altitude uncertainty (standard deviation) [mm] (type:uint16_t)
  25031. vel_acc : Speed uncertainty (standard deviation) [cm/s] (type:uint16_t)
  25032. next_lat : Next waypoint, latitude (WGS84) [degE7] (type:int32_t)
  25033. next_lon : Next waypoint, longitude (WGS84) [degE7] (type:int32_t)
  25034. next_alt : Next waypoint, altitude (WGS84) [mm] (type:int32_t)
  25035. update_rate : Time until next update. Set to 0 if unknown or in data driven mode. [cs] (type:uint16_t)
  25036. flight_state : Flight state (type:uint8_t, values:UTM_FLIGHT_STATE)
  25037. flags : Bitwise OR combination of the data available flags. (type:uint8_t, values:UTM_DATA_AVAIL_FLAGS)
  25038. """
  25039. self.send(self.utm_global_position_encode(time, uas_id, lat, lon, alt, relative_alt, vx, vy, vz, h_acc, v_acc, vel_acc, next_lat, next_lon, next_alt, update_rate, flight_state, flags), force_mavlink1=force_mavlink1)
  25040. def debug_float_array_encode(self, time_usec: int, name: bytes, array_id: int, data: Sequence[float] = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)) -> MAVLink_debug_float_array_message:
  25041. """
  25042. Large debug/prototyping array. The message uses the maximum available
  25043. payload for data. The array_id and name fields are used to
  25044. discriminate between messages in code and in user interfaces
  25045. (respectively). Do not use in production code.
  25046. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  25047. name : Name, for human-friendly display in a Ground Control Station (type:char)
  25048. array_id : Unique ID used to discriminate between arrays (type:uint16_t)
  25049. data : data (type:float)
  25050. """
  25051. return MAVLink_debug_float_array_message(time_usec, name, array_id, data)
  25052. def debug_float_array_send(self, time_usec: int, name: bytes, array_id: int, data: Sequence[float] = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), force_mavlink1: bool = False) -> None:
  25053. """
  25054. Large debug/prototyping array. The message uses the maximum available
  25055. payload for data. The array_id and name fields are used to
  25056. discriminate between messages in code and in user interfaces
  25057. (respectively). Do not use in production code.
  25058. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  25059. name : Name, for human-friendly display in a Ground Control Station (type:char)
  25060. array_id : Unique ID used to discriminate between arrays (type:uint16_t)
  25061. data : data (type:float)
  25062. """
  25063. self.send(self.debug_float_array_encode(time_usec, name, array_id, data), force_mavlink1=force_mavlink1)
  25064. def orbit_execution_status_encode(self, time_usec: int, radius: float, frame: int, x: int, y: int, z: float) -> MAVLink_orbit_execution_status_message:
  25065. """
  25066. Vehicle status report that is sent out while orbit execution is in
  25067. progress (see MAV_CMD_DO_ORBIT).
  25068. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  25069. radius : Radius of the orbit circle. Positive values orbit clockwise, negative values orbit counter-clockwise. [m] (type:float)
  25070. frame : The coordinate system of the fields: x, y, z. (type:uint8_t, values:MAV_FRAME)
  25071. x : X coordinate of center point. Coordinate system depends on frame field: local = x position in meters * 1e4, global = latitude in degrees * 1e7. (type:int32_t)
  25072. y : Y coordinate of center point. Coordinate system depends on frame field: local = x position in meters * 1e4, global = latitude in degrees * 1e7. (type:int32_t)
  25073. z : Altitude of center point. Coordinate system depends on frame field. [m] (type:float)
  25074. """
  25075. return MAVLink_orbit_execution_status_message(time_usec, radius, frame, x, y, z)
  25076. def orbit_execution_status_send(self, time_usec: int, radius: float, frame: int, x: int, y: int, z: float, force_mavlink1: bool = False) -> None:
  25077. """
  25078. Vehicle status report that is sent out while orbit execution is in
  25079. progress (see MAV_CMD_DO_ORBIT).
  25080. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  25081. radius : Radius of the orbit circle. Positive values orbit clockwise, negative values orbit counter-clockwise. [m] (type:float)
  25082. frame : The coordinate system of the fields: x, y, z. (type:uint8_t, values:MAV_FRAME)
  25083. x : X coordinate of center point. Coordinate system depends on frame field: local = x position in meters * 1e4, global = latitude in degrees * 1e7. (type:int32_t)
  25084. y : Y coordinate of center point. Coordinate system depends on frame field: local = x position in meters * 1e4, global = latitude in degrees * 1e7. (type:int32_t)
  25085. z : Altitude of center point. Coordinate system depends on frame field. [m] (type:float)
  25086. """
  25087. self.send(self.orbit_execution_status_encode(time_usec, radius, frame, x, y, z), force_mavlink1=force_mavlink1)
  25088. def battery_info_encode(self, id: int, battery_function: int, type: int, state_of_health: int, cells_in_series: int, cycle_count: int, weight: int, discharge_minimum_voltage: float, charging_minimum_voltage: float, resting_minimum_voltage: float, charging_maximum_voltage: float, charging_maximum_current: float, nominal_voltage: float, discharge_maximum_current: float, discharge_maximum_burst_current: float, design_capacity: float, full_charge_capacity: float, manufacture_date: bytes, serial_number: bytes, name: bytes) -> MAVLink_battery_info_message:
  25089. """
  25090. Battery information that is static, or requires infrequent update.
  25091. This message should requested using MAV_CMD_REQUEST_MESSAGE
  25092. and/or streamed at very low rate. BATTERY_STATUS_V2 is
  25093. used for higher-rate battery status information.
  25094. id : Battery ID (type:uint8_t)
  25095. battery_function : Function of the battery. (type:uint8_t, values:MAV_BATTERY_FUNCTION)
  25096. type : Type (chemistry) of the battery. (type:uint8_t, values:MAV_BATTERY_TYPE)
  25097. state_of_health : State of Health (SOH) estimate. Typically 100% at the time of manufacture and will decrease over time and use. -1: field not provided. [%] (type:uint8_t)
  25098. cells_in_series : Number of battery cells in series. 0: field not provided. (type:uint8_t)
  25099. cycle_count : Lifetime count of the number of charge/discharge cycles (https://en.wikipedia.org/wiki/Charge_cycle). UINT16_MAX: field not provided. (type:uint16_t)
  25100. weight : Battery weight. 0: field not provided. [g] (type:uint16_t)
  25101. discharge_minimum_voltage : Minimum per-cell voltage when discharging. 0: field not provided. [V] (type:float)
  25102. charging_minimum_voltage : Minimum per-cell voltage when charging. 0: field not provided. [V] (type:float)
  25103. resting_minimum_voltage : Minimum per-cell voltage when resting. 0: field not provided. [V] (type:float)
  25104. charging_maximum_voltage : Maximum per-cell voltage when charged. 0: field not provided. [V] (type:float)
  25105. charging_maximum_current : Maximum pack continuous charge current. 0: field not provided. [A] (type:float)
  25106. nominal_voltage : Battery nominal voltage. Used for conversion between Wh and Ah. 0: field not provided. [V] (type:float)
  25107. discharge_maximum_current : Maximum pack discharge current. 0: field not provided. [A] (type:float)
  25108. discharge_maximum_burst_current : Maximum pack discharge burst current. 0: field not provided. [A] (type:float)
  25109. design_capacity : Fully charged design capacity. 0: field not provided. [Ah] (type:float)
  25110. full_charge_capacity : Predicted battery capacity when fully charged (accounting for battery degradation). NAN: field not provided. [Ah] (type:float)
  25111. manufacture_date : Manufacture date (DDMMYYYY) in ASCII characters, 0 terminated. All 0: field not provided. (type:char)
  25112. serial_number : Serial number in ASCII characters, 0 terminated. All 0: field not provided. (type:char)
  25113. name : Battery device name. Formatted as manufacturer name then product name, separated with an underscore (in ASCII characters), 0 terminated. All 0: field not provided. (type:char)
  25114. """
  25115. return MAVLink_battery_info_message(id, battery_function, type, state_of_health, cells_in_series, cycle_count, weight, discharge_minimum_voltage, charging_minimum_voltage, resting_minimum_voltage, charging_maximum_voltage, charging_maximum_current, nominal_voltage, discharge_maximum_current, discharge_maximum_burst_current, design_capacity, full_charge_capacity, manufacture_date, serial_number, name)
  25116. def battery_info_send(self, id: int, battery_function: int, type: int, state_of_health: int, cells_in_series: int, cycle_count: int, weight: int, discharge_minimum_voltage: float, charging_minimum_voltage: float, resting_minimum_voltage: float, charging_maximum_voltage: float, charging_maximum_current: float, nominal_voltage: float, discharge_maximum_current: float, discharge_maximum_burst_current: float, design_capacity: float, full_charge_capacity: float, manufacture_date: bytes, serial_number: bytes, name: bytes, force_mavlink1: bool = False) -> None:
  25117. """
  25118. Battery information that is static, or requires infrequent update.
  25119. This message should requested using MAV_CMD_REQUEST_MESSAGE
  25120. and/or streamed at very low rate. BATTERY_STATUS_V2 is
  25121. used for higher-rate battery status information.
  25122. id : Battery ID (type:uint8_t)
  25123. battery_function : Function of the battery. (type:uint8_t, values:MAV_BATTERY_FUNCTION)
  25124. type : Type (chemistry) of the battery. (type:uint8_t, values:MAV_BATTERY_TYPE)
  25125. state_of_health : State of Health (SOH) estimate. Typically 100% at the time of manufacture and will decrease over time and use. -1: field not provided. [%] (type:uint8_t)
  25126. cells_in_series : Number of battery cells in series. 0: field not provided. (type:uint8_t)
  25127. cycle_count : Lifetime count of the number of charge/discharge cycles (https://en.wikipedia.org/wiki/Charge_cycle). UINT16_MAX: field not provided. (type:uint16_t)
  25128. weight : Battery weight. 0: field not provided. [g] (type:uint16_t)
  25129. discharge_minimum_voltage : Minimum per-cell voltage when discharging. 0: field not provided. [V] (type:float)
  25130. charging_minimum_voltage : Minimum per-cell voltage when charging. 0: field not provided. [V] (type:float)
  25131. resting_minimum_voltage : Minimum per-cell voltage when resting. 0: field not provided. [V] (type:float)
  25132. charging_maximum_voltage : Maximum per-cell voltage when charged. 0: field not provided. [V] (type:float)
  25133. charging_maximum_current : Maximum pack continuous charge current. 0: field not provided. [A] (type:float)
  25134. nominal_voltage : Battery nominal voltage. Used for conversion between Wh and Ah. 0: field not provided. [V] (type:float)
  25135. discharge_maximum_current : Maximum pack discharge current. 0: field not provided. [A] (type:float)
  25136. discharge_maximum_burst_current : Maximum pack discharge burst current. 0: field not provided. [A] (type:float)
  25137. design_capacity : Fully charged design capacity. 0: field not provided. [Ah] (type:float)
  25138. full_charge_capacity : Predicted battery capacity when fully charged (accounting for battery degradation). NAN: field not provided. [Ah] (type:float)
  25139. manufacture_date : Manufacture date (DDMMYYYY) in ASCII characters, 0 terminated. All 0: field not provided. (type:char)
  25140. serial_number : Serial number in ASCII characters, 0 terminated. All 0: field not provided. (type:char)
  25141. name : Battery device name. Formatted as manufacturer name then product name, separated with an underscore (in ASCII characters), 0 terminated. All 0: field not provided. (type:char)
  25142. """
  25143. self.send(self.battery_info_encode(id, battery_function, type, state_of_health, cells_in_series, cycle_count, weight, discharge_minimum_voltage, charging_minimum_voltage, resting_minimum_voltage, charging_maximum_voltage, charging_maximum_current, nominal_voltage, discharge_maximum_current, discharge_maximum_burst_current, design_capacity, full_charge_capacity, manufacture_date, serial_number, name), force_mavlink1=force_mavlink1)
  25144. def generator_status_encode(self, status: int, generator_speed: int, battery_current: float, load_current: float, power_generated: float, bus_voltage: float, rectifier_temperature: int, bat_current_setpoint: float, generator_temperature: int, runtime: int, time_until_maintenance: int) -> MAVLink_generator_status_message:
  25145. """
  25146. Telemetry of power generation system. Alternator or mechanical
  25147. generator.
  25148. status : Status flags. (type:uint64_t, values:MAV_GENERATOR_STATUS_FLAG)
  25149. generator_speed : Speed of electrical generator or alternator. UINT16_MAX: field not provided. [rpm] (type:uint16_t)
  25150. battery_current : Current into/out of battery. Positive for out. Negative for in. NaN: field not provided. [A] (type:float)
  25151. load_current : Current going to the UAV. If battery current not available this is the DC current from the generator. Positive for out. Negative for in. NaN: field not provided [A] (type:float)
  25152. power_generated : The power being generated. NaN: field not provided [W] (type:float)
  25153. bus_voltage : Voltage of the bus seen at the generator, or battery bus if battery bus is controlled by generator and at a different voltage to main bus. [V] (type:float)
  25154. rectifier_temperature : The temperature of the rectifier or power converter. INT16_MAX: field not provided. [degC] (type:int16_t)
  25155. bat_current_setpoint : The target battery current. Positive for out. Negative for in. NaN: field not provided [A] (type:float)
  25156. generator_temperature : The temperature of the mechanical motor, fuel cell core or generator. INT16_MAX: field not provided. [degC] (type:int16_t)
  25157. runtime : Seconds this generator has run since it was rebooted. UINT32_MAX: field not provided. [s] (type:uint32_t)
  25158. time_until_maintenance : Seconds until this generator requires maintenance. A negative value indicates maintenance is past-due. INT32_MAX: field not provided. [s] (type:int32_t)
  25159. """
  25160. return MAVLink_generator_status_message(status, generator_speed, battery_current, load_current, power_generated, bus_voltage, rectifier_temperature, bat_current_setpoint, generator_temperature, runtime, time_until_maintenance)
  25161. def generator_status_send(self, status: int, generator_speed: int, battery_current: float, load_current: float, power_generated: float, bus_voltage: float, rectifier_temperature: int, bat_current_setpoint: float, generator_temperature: int, runtime: int, time_until_maintenance: int, force_mavlink1: bool = False) -> None:
  25162. """
  25163. Telemetry of power generation system. Alternator or mechanical
  25164. generator.
  25165. status : Status flags. (type:uint64_t, values:MAV_GENERATOR_STATUS_FLAG)
  25166. generator_speed : Speed of electrical generator or alternator. UINT16_MAX: field not provided. [rpm] (type:uint16_t)
  25167. battery_current : Current into/out of battery. Positive for out. Negative for in. NaN: field not provided. [A] (type:float)
  25168. load_current : Current going to the UAV. If battery current not available this is the DC current from the generator. Positive for out. Negative for in. NaN: field not provided [A] (type:float)
  25169. power_generated : The power being generated. NaN: field not provided [W] (type:float)
  25170. bus_voltage : Voltage of the bus seen at the generator, or battery bus if battery bus is controlled by generator and at a different voltage to main bus. [V] (type:float)
  25171. rectifier_temperature : The temperature of the rectifier or power converter. INT16_MAX: field not provided. [degC] (type:int16_t)
  25172. bat_current_setpoint : The target battery current. Positive for out. Negative for in. NaN: field not provided [A] (type:float)
  25173. generator_temperature : The temperature of the mechanical motor, fuel cell core or generator. INT16_MAX: field not provided. [degC] (type:int16_t)
  25174. runtime : Seconds this generator has run since it was rebooted. UINT32_MAX: field not provided. [s] (type:uint32_t)
  25175. time_until_maintenance : Seconds until this generator requires maintenance. A negative value indicates maintenance is past-due. INT32_MAX: field not provided. [s] (type:int32_t)
  25176. """
  25177. self.send(self.generator_status_encode(status, generator_speed, battery_current, load_current, power_generated, bus_voltage, rectifier_temperature, bat_current_setpoint, generator_temperature, runtime, time_until_maintenance), force_mavlink1=force_mavlink1)
  25178. def actuator_output_status_encode(self, time_usec: int, active: int, actuator: Sequence[float]) -> MAVLink_actuator_output_status_message:
  25179. """
  25180. The raw values of the actuator outputs (e.g. on Pixhawk, from MAIN,
  25181. AUX ports). This message supersedes SERVO_OUTPUT_RAW.
  25182. time_usec : Timestamp (since system boot). [us] (type:uint64_t)
  25183. active : Active outputs (type:uint32_t)
  25184. actuator : Servo / motor output array values. Zero values indicate unused channels. (type:float)
  25185. """
  25186. return MAVLink_actuator_output_status_message(time_usec, active, actuator)
  25187. def actuator_output_status_send(self, time_usec: int, active: int, actuator: Sequence[float], force_mavlink1: bool = False) -> None:
  25188. """
  25189. The raw values of the actuator outputs (e.g. on Pixhawk, from MAIN,
  25190. AUX ports). This message supersedes SERVO_OUTPUT_RAW.
  25191. time_usec : Timestamp (since system boot). [us] (type:uint64_t)
  25192. active : Active outputs (type:uint32_t)
  25193. actuator : Servo / motor output array values. Zero values indicate unused channels. (type:float)
  25194. """
  25195. self.send(self.actuator_output_status_encode(time_usec, active, actuator), force_mavlink1=force_mavlink1)
  25196. def time_estimate_to_target_encode(self, safe_return: int, land: int, mission_next_item: int, mission_end: int, commanded_action: int) -> MAVLink_time_estimate_to_target_message:
  25197. """
  25198. Time/duration estimates for various events and actions given the
  25199. current vehicle state and position.
  25200. safe_return : Estimated time to complete the vehicle's configured "safe return" action from its current position (e.g. RTL, Smart RTL, etc.). -1 indicates that the vehicle is landed, or that no time estimate available. [s] (type:int32_t)
  25201. land : Estimated time for vehicle to complete the LAND action from its current position. -1 indicates that the vehicle is landed, or that no time estimate available. [s] (type:int32_t)
  25202. mission_next_item : Estimated time for reaching/completing the currently active mission item. -1 means no time estimate available. [s] (type:int32_t)
  25203. mission_end : Estimated time for completing the current mission. -1 means no mission active and/or no estimate available. [s] (type:int32_t)
  25204. commanded_action : Estimated time for completing the current commanded action (i.e. Go To, Takeoff, Land, etc.). -1 means no action active and/or no estimate available. [s] (type:int32_t)
  25205. """
  25206. return MAVLink_time_estimate_to_target_message(safe_return, land, mission_next_item, mission_end, commanded_action)
  25207. def time_estimate_to_target_send(self, safe_return: int, land: int, mission_next_item: int, mission_end: int, commanded_action: int, force_mavlink1: bool = False) -> None:
  25208. """
  25209. Time/duration estimates for various events and actions given the
  25210. current vehicle state and position.
  25211. safe_return : Estimated time to complete the vehicle's configured "safe return" action from its current position (e.g. RTL, Smart RTL, etc.). -1 indicates that the vehicle is landed, or that no time estimate available. [s] (type:int32_t)
  25212. land : Estimated time for vehicle to complete the LAND action from its current position. -1 indicates that the vehicle is landed, or that no time estimate available. [s] (type:int32_t)
  25213. mission_next_item : Estimated time for reaching/completing the currently active mission item. -1 means no time estimate available. [s] (type:int32_t)
  25214. mission_end : Estimated time for completing the current mission. -1 means no mission active and/or no estimate available. [s] (type:int32_t)
  25215. commanded_action : Estimated time for completing the current commanded action (i.e. Go To, Takeoff, Land, etc.). -1 means no action active and/or no estimate available. [s] (type:int32_t)
  25216. """
  25217. self.send(self.time_estimate_to_target_encode(safe_return, land, mission_next_item, mission_end, commanded_action), force_mavlink1=force_mavlink1)
  25218. def tunnel_encode(self, target_system: int, target_component: int, payload_type: int, payload_length: int, payload: Sequence[int]) -> MAVLink_tunnel_message:
  25219. """
  25220. Message for transporting "arbitrary" variable-length data from one
  25221. component to another (broadcast is not forbidden, but
  25222. discouraged). The encoding of the data is usually extension
  25223. specific, i.e. determined by the source, and is usually not
  25224. documented as part of the MAVLink specification.
  25225. target_system : System ID (can be 0 for broadcast, but this is discouraged) (type:uint8_t)
  25226. target_component : Component ID (can be 0 for broadcast, but this is discouraged) (type:uint8_t)
  25227. payload_type : A code that identifies the content of the payload (0 for unknown, which is the default). If this code is less than 32768, it is a 'registered' payload type and the corresponding code should be added to the MAV_TUNNEL_PAYLOAD_TYPE enum. Software creators can register blocks of types as needed. Codes greater than 32767 are considered local experiments and should not be checked in to any widely distributed codebase. (type:uint16_t, values:MAV_TUNNEL_PAYLOAD_TYPE)
  25228. payload_length : Length of the data transported in payload (type:uint8_t)
  25229. payload : Variable length payload. The payload length is defined by payload_length. The entire content of this block is opaque unless you understand the encoding specified by payload_type. (type:uint8_t)
  25230. """
  25231. return MAVLink_tunnel_message(target_system, target_component, payload_type, payload_length, payload)
  25232. def tunnel_send(self, target_system: int, target_component: int, payload_type: int, payload_length: int, payload: Sequence[int], force_mavlink1: bool = False) -> None:
  25233. """
  25234. Message for transporting "arbitrary" variable-length data from one
  25235. component to another (broadcast is not forbidden, but
  25236. discouraged). The encoding of the data is usually extension
  25237. specific, i.e. determined by the source, and is usually not
  25238. documented as part of the MAVLink specification.
  25239. target_system : System ID (can be 0 for broadcast, but this is discouraged) (type:uint8_t)
  25240. target_component : Component ID (can be 0 for broadcast, but this is discouraged) (type:uint8_t)
  25241. payload_type : A code that identifies the content of the payload (0 for unknown, which is the default). If this code is less than 32768, it is a 'registered' payload type and the corresponding code should be added to the MAV_TUNNEL_PAYLOAD_TYPE enum. Software creators can register blocks of types as needed. Codes greater than 32767 are considered local experiments and should not be checked in to any widely distributed codebase. (type:uint16_t, values:MAV_TUNNEL_PAYLOAD_TYPE)
  25242. payload_length : Length of the data transported in payload (type:uint8_t)
  25243. payload : Variable length payload. The payload length is defined by payload_length. The entire content of this block is opaque unless you understand the encoding specified by payload_type. (type:uint8_t)
  25244. """
  25245. self.send(self.tunnel_encode(target_system, target_component, payload_type, payload_length, payload), force_mavlink1=force_mavlink1)
  25246. def can_frame_encode(self, target_system: int, target_component: int, bus: int, len: int, id: int, data: Sequence[int]) -> MAVLink_can_frame_message:
  25247. """
  25248. A forwarded CAN frame as requested by MAV_CMD_CAN_FORWARD.
  25249. target_system : System ID. (type:uint8_t)
  25250. target_component : Component ID. (type:uint8_t)
  25251. bus : Bus number (type:uint8_t)
  25252. len : Frame length (type:uint8_t)
  25253. id : Frame ID (type:uint32_t)
  25254. data : Frame data (type:uint8_t)
  25255. """
  25256. return MAVLink_can_frame_message(target_system, target_component, bus, len, id, data)
  25257. def can_frame_send(self, target_system: int, target_component: int, bus: int, len: int, id: int, data: Sequence[int], force_mavlink1: bool = False) -> None:
  25258. """
  25259. A forwarded CAN frame as requested by MAV_CMD_CAN_FORWARD.
  25260. target_system : System ID. (type:uint8_t)
  25261. target_component : Component ID. (type:uint8_t)
  25262. bus : Bus number (type:uint8_t)
  25263. len : Frame length (type:uint8_t)
  25264. id : Frame ID (type:uint32_t)
  25265. data : Frame data (type:uint8_t)
  25266. """
  25267. self.send(self.can_frame_encode(target_system, target_component, bus, len, id, data), force_mavlink1=force_mavlink1)
  25268. def onboard_computer_status_encode(self, time_usec: int, uptime: int, type: int, cpu_cores: Sequence[int], cpu_combined: Sequence[int], gpu_cores: Sequence[int], gpu_combined: Sequence[int], temperature_board: int, temperature_core: Sequence[int], fan_speed: Sequence[int], ram_usage: int, ram_total: int, storage_type: Sequence[int], storage_usage: Sequence[int], storage_total: Sequence[int], link_type: Sequence[int], link_tx_rate: Sequence[int], link_rx_rate: Sequence[int], link_tx_max: Sequence[int], link_rx_max: Sequence[int]) -> MAVLink_onboard_computer_status_message:
  25269. """
  25270. Hardware status sent by an onboard computer.
  25271. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  25272. uptime : Time since system boot. [ms] (type:uint32_t)
  25273. type : Type of the onboard computer: 0: Mission computer primary, 1: Mission computer backup 1, 2: Mission computer backup 2, 3: Compute node, 4-5: Compute spares, 6-9: Payload computers. (type:uint8_t)
  25274. cpu_cores : CPU usage on the component in percent (100 - idle). A value of UINT8_MAX implies the field is unused. (type:uint8_t)
  25275. cpu_combined : Combined CPU usage as the last 10 slices of 100 MS (a histogram). This allows to identify spikes in load that max out the system, but only for a short amount of time. A value of UINT8_MAX implies the field is unused. (type:uint8_t)
  25276. gpu_cores : GPU usage on the component in percent (100 - idle). A value of UINT8_MAX implies the field is unused. (type:uint8_t)
  25277. gpu_combined : Combined GPU usage as the last 10 slices of 100 MS (a histogram). This allows to identify spikes in load that max out the system, but only for a short amount of time. A value of UINT8_MAX implies the field is unused. (type:uint8_t)
  25278. temperature_board : Temperature of the board. A value of INT8_MAX implies the field is unused. [degC] (type:int8_t)
  25279. temperature_core : Temperature of the CPU core. A value of INT8_MAX implies the field is unused. [degC] (type:int8_t)
  25280. fan_speed : Fan speeds. A value of INT16_MAX implies the field is unused. [rpm] (type:int16_t)
  25281. ram_usage : Amount of used RAM on the component system. A value of UINT32_MAX implies the field is unused. [MiB] (type:uint32_t)
  25282. ram_total : Total amount of RAM on the component system. A value of UINT32_MAX implies the field is unused. [MiB] (type:uint32_t)
  25283. storage_type : Storage type: 0: HDD, 1: SSD, 2: EMMC, 3: SD card (non-removable), 4: SD card (removable). A value of UINT32_MAX implies the field is unused. (type:uint32_t)
  25284. storage_usage : Amount of used storage space on the component system. A value of UINT32_MAX implies the field is unused. [MiB] (type:uint32_t)
  25285. storage_total : Total amount of storage space on the component system. A value of UINT32_MAX implies the field is unused. [MiB] (type:uint32_t)
  25286. link_type : Link type: 0-9: UART, 10-19: Wired network, 20-29: Wifi, 30-39: Point-to-point proprietary, 40-49: Mesh proprietary (type:uint32_t)
  25287. link_tx_rate : Network traffic from the component system. A value of UINT32_MAX implies the field is unused. [KiB/s] (type:uint32_t)
  25288. link_rx_rate : Network traffic to the component system. A value of UINT32_MAX implies the field is unused. [KiB/s] (type:uint32_t)
  25289. link_tx_max : Network capacity from the component system. A value of UINT32_MAX implies the field is unused. [KiB/s] (type:uint32_t)
  25290. link_rx_max : Network capacity to the component system. A value of UINT32_MAX implies the field is unused. [KiB/s] (type:uint32_t)
  25291. """
  25292. return MAVLink_onboard_computer_status_message(time_usec, uptime, type, cpu_cores, cpu_combined, gpu_cores, gpu_combined, temperature_board, temperature_core, fan_speed, ram_usage, ram_total, storage_type, storage_usage, storage_total, link_type, link_tx_rate, link_rx_rate, link_tx_max, link_rx_max)
  25293. def onboard_computer_status_send(self, time_usec: int, uptime: int, type: int, cpu_cores: Sequence[int], cpu_combined: Sequence[int], gpu_cores: Sequence[int], gpu_combined: Sequence[int], temperature_board: int, temperature_core: Sequence[int], fan_speed: Sequence[int], ram_usage: int, ram_total: int, storage_type: Sequence[int], storage_usage: Sequence[int], storage_total: Sequence[int], link_type: Sequence[int], link_tx_rate: Sequence[int], link_rx_rate: Sequence[int], link_tx_max: Sequence[int], link_rx_max: Sequence[int], force_mavlink1: bool = False) -> None:
  25294. """
  25295. Hardware status sent by an onboard computer.
  25296. time_usec : Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  25297. uptime : Time since system boot. [ms] (type:uint32_t)
  25298. type : Type of the onboard computer: 0: Mission computer primary, 1: Mission computer backup 1, 2: Mission computer backup 2, 3: Compute node, 4-5: Compute spares, 6-9: Payload computers. (type:uint8_t)
  25299. cpu_cores : CPU usage on the component in percent (100 - idle). A value of UINT8_MAX implies the field is unused. (type:uint8_t)
  25300. cpu_combined : Combined CPU usage as the last 10 slices of 100 MS (a histogram). This allows to identify spikes in load that max out the system, but only for a short amount of time. A value of UINT8_MAX implies the field is unused. (type:uint8_t)
  25301. gpu_cores : GPU usage on the component in percent (100 - idle). A value of UINT8_MAX implies the field is unused. (type:uint8_t)
  25302. gpu_combined : Combined GPU usage as the last 10 slices of 100 MS (a histogram). This allows to identify spikes in load that max out the system, but only for a short amount of time. A value of UINT8_MAX implies the field is unused. (type:uint8_t)
  25303. temperature_board : Temperature of the board. A value of INT8_MAX implies the field is unused. [degC] (type:int8_t)
  25304. temperature_core : Temperature of the CPU core. A value of INT8_MAX implies the field is unused. [degC] (type:int8_t)
  25305. fan_speed : Fan speeds. A value of INT16_MAX implies the field is unused. [rpm] (type:int16_t)
  25306. ram_usage : Amount of used RAM on the component system. A value of UINT32_MAX implies the field is unused. [MiB] (type:uint32_t)
  25307. ram_total : Total amount of RAM on the component system. A value of UINT32_MAX implies the field is unused. [MiB] (type:uint32_t)
  25308. storage_type : Storage type: 0: HDD, 1: SSD, 2: EMMC, 3: SD card (non-removable), 4: SD card (removable). A value of UINT32_MAX implies the field is unused. (type:uint32_t)
  25309. storage_usage : Amount of used storage space on the component system. A value of UINT32_MAX implies the field is unused. [MiB] (type:uint32_t)
  25310. storage_total : Total amount of storage space on the component system. A value of UINT32_MAX implies the field is unused. [MiB] (type:uint32_t)
  25311. link_type : Link type: 0-9: UART, 10-19: Wired network, 20-29: Wifi, 30-39: Point-to-point proprietary, 40-49: Mesh proprietary (type:uint32_t)
  25312. link_tx_rate : Network traffic from the component system. A value of UINT32_MAX implies the field is unused. [KiB/s] (type:uint32_t)
  25313. link_rx_rate : Network traffic to the component system. A value of UINT32_MAX implies the field is unused. [KiB/s] (type:uint32_t)
  25314. link_tx_max : Network capacity from the component system. A value of UINT32_MAX implies the field is unused. [KiB/s] (type:uint32_t)
  25315. link_rx_max : Network capacity to the component system. A value of UINT32_MAX implies the field is unused. [KiB/s] (type:uint32_t)
  25316. """
  25317. self.send(self.onboard_computer_status_encode(time_usec, uptime, type, cpu_cores, cpu_combined, gpu_cores, gpu_combined, temperature_board, temperature_core, fan_speed, ram_usage, ram_total, storage_type, storage_usage, storage_total, link_type, link_tx_rate, link_rx_rate, link_tx_max, link_rx_max), force_mavlink1=force_mavlink1)
  25318. def component_information_encode(self, time_boot_ms: int, general_metadata_file_crc: int, general_metadata_uri: bytes, peripherals_metadata_file_crc: int, peripherals_metadata_uri: bytes) -> MAVLink_component_information_message:
  25319. """
  25320. Component information message, which may be requested using
  25321. MAV_CMD_REQUEST_MESSAGE.
  25322. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  25323. general_metadata_file_crc : CRC32 of the general metadata file (general_metadata_uri). (type:uint32_t)
  25324. general_metadata_uri : MAVLink FTP URI for the general metadata file (COMP_METADATA_TYPE_GENERAL), which may be compressed with xz. The file contains general component metadata, and may contain URI links for additional metadata (see COMP_METADATA_TYPE). The information is static from boot, and may be generated at compile time. The string needs to be zero terminated. (type:char)
  25325. peripherals_metadata_file_crc : CRC32 of peripherals metadata file (peripherals_metadata_uri). (type:uint32_t)
  25326. peripherals_metadata_uri : (Optional) MAVLink FTP URI for the peripherals metadata file (COMP_METADATA_TYPE_PERIPHERALS), which may be compressed with xz. This contains data about "attached components" such as UAVCAN nodes. The peripherals are in a separate file because the information must be generated dynamically at runtime. The string needs to be zero terminated. (type:char)
  25327. """
  25328. return MAVLink_component_information_message(time_boot_ms, general_metadata_file_crc, general_metadata_uri, peripherals_metadata_file_crc, peripherals_metadata_uri)
  25329. def component_information_send(self, time_boot_ms: int, general_metadata_file_crc: int, general_metadata_uri: bytes, peripherals_metadata_file_crc: int, peripherals_metadata_uri: bytes, force_mavlink1: bool = False) -> None:
  25330. """
  25331. Component information message, which may be requested using
  25332. MAV_CMD_REQUEST_MESSAGE.
  25333. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  25334. general_metadata_file_crc : CRC32 of the general metadata file (general_metadata_uri). (type:uint32_t)
  25335. general_metadata_uri : MAVLink FTP URI for the general metadata file (COMP_METADATA_TYPE_GENERAL), which may be compressed with xz. The file contains general component metadata, and may contain URI links for additional metadata (see COMP_METADATA_TYPE). The information is static from boot, and may be generated at compile time. The string needs to be zero terminated. (type:char)
  25336. peripherals_metadata_file_crc : CRC32 of peripherals metadata file (peripherals_metadata_uri). (type:uint32_t)
  25337. peripherals_metadata_uri : (Optional) MAVLink FTP URI for the peripherals metadata file (COMP_METADATA_TYPE_PERIPHERALS), which may be compressed with xz. This contains data about "attached components" such as UAVCAN nodes. The peripherals are in a separate file because the information must be generated dynamically at runtime. The string needs to be zero terminated. (type:char)
  25338. """
  25339. self.send(self.component_information_encode(time_boot_ms, general_metadata_file_crc, general_metadata_uri, peripherals_metadata_file_crc, peripherals_metadata_uri), force_mavlink1=force_mavlink1)
  25340. def component_metadata_encode(self, time_boot_ms: int, file_crc: int, uri: bytes) -> MAVLink_component_metadata_message:
  25341. """
  25342. Component metadata message, which may be requested using
  25343. MAV_CMD_REQUEST_MESSAGE. This contains the MAVLink
  25344. FTP URI and CRC for the component's general metadata file.
  25345. The file must be hosted on the component, and may be xz
  25346. compressed. The file CRC can be used for file caching.
  25347. The general metadata file can be read to get the locations of
  25348. other metadata files (COMP_METADATA_TYPE) and translations,
  25349. which may be hosted either on the vehicle or the internet.
  25350. For more information see:
  25351. https://mavlink.io/en/services/component_information.html.
  25352. Note: Camera components should use CAMERA_INFORMATION instead,
  25353. and autopilots may use both this message and
  25354. AUTOPILOT_VERSION.
  25355. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  25356. file_crc : CRC32 of the general metadata file. (type:uint32_t)
  25357. uri : MAVLink FTP URI for the general metadata file (COMP_METADATA_TYPE_GENERAL), which may be compressed with xz. The file contains general component metadata, and may contain URI links for additional metadata (see COMP_METADATA_TYPE). The information is static from boot, and may be generated at compile time. The string needs to be zero terminated. (type:char)
  25358. """
  25359. return MAVLink_component_metadata_message(time_boot_ms, file_crc, uri)
  25360. def component_metadata_send(self, time_boot_ms: int, file_crc: int, uri: bytes, force_mavlink1: bool = False) -> None:
  25361. """
  25362. Component metadata message, which may be requested using
  25363. MAV_CMD_REQUEST_MESSAGE. This contains the MAVLink
  25364. FTP URI and CRC for the component's general metadata file.
  25365. The file must be hosted on the component, and may be xz
  25366. compressed. The file CRC can be used for file caching.
  25367. The general metadata file can be read to get the locations of
  25368. other metadata files (COMP_METADATA_TYPE) and translations,
  25369. which may be hosted either on the vehicle or the internet.
  25370. For more information see:
  25371. https://mavlink.io/en/services/component_information.html.
  25372. Note: Camera components should use CAMERA_INFORMATION instead,
  25373. and autopilots may use both this message and
  25374. AUTOPILOT_VERSION.
  25375. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  25376. file_crc : CRC32 of the general metadata file. (type:uint32_t)
  25377. uri : MAVLink FTP URI for the general metadata file (COMP_METADATA_TYPE_GENERAL), which may be compressed with xz. The file contains general component metadata, and may contain URI links for additional metadata (see COMP_METADATA_TYPE). The information is static from boot, and may be generated at compile time. The string needs to be zero terminated. (type:char)
  25378. """
  25379. self.send(self.component_metadata_encode(time_boot_ms, file_crc, uri), force_mavlink1=force_mavlink1)
  25380. def play_tune_v2_encode(self, target_system: int, target_component: int, format: int, tune: bytes) -> MAVLink_play_tune_v2_message:
  25381. """
  25382. Play vehicle tone/tune (buzzer). Supersedes message PLAY_TUNE.
  25383. target_system : System ID (type:uint8_t)
  25384. target_component : Component ID (type:uint8_t)
  25385. format : Tune format (type:uint32_t, values:TUNE_FORMAT)
  25386. tune : Tune definition as a NULL-terminated string. (type:char)
  25387. """
  25388. return MAVLink_play_tune_v2_message(target_system, target_component, format, tune)
  25389. def play_tune_v2_send(self, target_system: int, target_component: int, format: int, tune: bytes, force_mavlink1: bool = False) -> None:
  25390. """
  25391. Play vehicle tone/tune (buzzer). Supersedes message PLAY_TUNE.
  25392. target_system : System ID (type:uint8_t)
  25393. target_component : Component ID (type:uint8_t)
  25394. format : Tune format (type:uint32_t, values:TUNE_FORMAT)
  25395. tune : Tune definition as a NULL-terminated string. (type:char)
  25396. """
  25397. self.send(self.play_tune_v2_encode(target_system, target_component, format, tune), force_mavlink1=force_mavlink1)
  25398. def supported_tunes_encode(self, target_system: int, target_component: int, format: int) -> MAVLink_supported_tunes_message:
  25399. """
  25400. Tune formats supported by vehicle. This should be emitted as response
  25401. to MAV_CMD_REQUEST_MESSAGE.
  25402. target_system : System ID (type:uint8_t)
  25403. target_component : Component ID (type:uint8_t)
  25404. format : Bitfield of supported tune formats. (type:uint32_t, values:TUNE_FORMAT)
  25405. """
  25406. return MAVLink_supported_tunes_message(target_system, target_component, format)
  25407. def supported_tunes_send(self, target_system: int, target_component: int, format: int, force_mavlink1: bool = False) -> None:
  25408. """
  25409. Tune formats supported by vehicle. This should be emitted as response
  25410. to MAV_CMD_REQUEST_MESSAGE.
  25411. target_system : System ID (type:uint8_t)
  25412. target_component : Component ID (type:uint8_t)
  25413. format : Bitfield of supported tune formats. (type:uint32_t, values:TUNE_FORMAT)
  25414. """
  25415. self.send(self.supported_tunes_encode(target_system, target_component, format), force_mavlink1=force_mavlink1)
  25416. def event_encode(self, destination_component: int, destination_system: int, id: int, event_time_boot_ms: int, sequence: int, log_levels: int, arguments: Sequence[int]) -> MAVLink_event_message:
  25417. """
  25418. Event message. Each new event from a particular component gets a new
  25419. sequence number. The same message might be sent multiple times
  25420. if (re-)requested. Most events are broadcast, some can be
  25421. specific to a target component (as receivers keep track of the
  25422. sequence for missed events, all events need to be broadcast.
  25423. Thus we use destination_component instead of
  25424. target_component).
  25425. destination_component : Component ID (type:uint8_t)
  25426. destination_system : System ID (type:uint8_t)
  25427. id : Event ID (as defined in the component metadata) (type:uint32_t)
  25428. event_time_boot_ms : Timestamp (time since system boot when the event happened). [ms] (type:uint32_t)
  25429. sequence : Sequence number. (type:uint16_t)
  25430. log_levels : Log levels: 4 bits MSB: internal (for logging purposes), 4 bits LSB: external. Levels: Emergency = 0, Alert = 1, Critical = 2, Error = 3, Warning = 4, Notice = 5, Info = 6, Debug = 7, Protocol = 8, Disabled = 9 (type:uint8_t)
  25431. arguments : Arguments (depend on event ID). (type:uint8_t)
  25432. """
  25433. return MAVLink_event_message(destination_component, destination_system, id, event_time_boot_ms, sequence, log_levels, arguments)
  25434. def event_send(self, destination_component: int, destination_system: int, id: int, event_time_boot_ms: int, sequence: int, log_levels: int, arguments: Sequence[int], force_mavlink1: bool = False) -> None:
  25435. """
  25436. Event message. Each new event from a particular component gets a new
  25437. sequence number. The same message might be sent multiple times
  25438. if (re-)requested. Most events are broadcast, some can be
  25439. specific to a target component (as receivers keep track of the
  25440. sequence for missed events, all events need to be broadcast.
  25441. Thus we use destination_component instead of
  25442. target_component).
  25443. destination_component : Component ID (type:uint8_t)
  25444. destination_system : System ID (type:uint8_t)
  25445. id : Event ID (as defined in the component metadata) (type:uint32_t)
  25446. event_time_boot_ms : Timestamp (time since system boot when the event happened). [ms] (type:uint32_t)
  25447. sequence : Sequence number. (type:uint16_t)
  25448. log_levels : Log levels: 4 bits MSB: internal (for logging purposes), 4 bits LSB: external. Levels: Emergency = 0, Alert = 1, Critical = 2, Error = 3, Warning = 4, Notice = 5, Info = 6, Debug = 7, Protocol = 8, Disabled = 9 (type:uint8_t)
  25449. arguments : Arguments (depend on event ID). (type:uint8_t)
  25450. """
  25451. self.send(self.event_encode(destination_component, destination_system, id, event_time_boot_ms, sequence, log_levels, arguments), force_mavlink1=force_mavlink1)
  25452. def current_event_sequence_encode(self, sequence: int, flags: int) -> MAVLink_current_event_sequence_message:
  25453. """
  25454. Regular broadcast for the current latest event sequence number for a
  25455. component. This is used to check for dropped events.
  25456. sequence : Sequence number. (type:uint16_t)
  25457. flags : Flag bitset. (type:uint8_t, values:MAV_EVENT_CURRENT_SEQUENCE_FLAGS)
  25458. """
  25459. return MAVLink_current_event_sequence_message(sequence, flags)
  25460. def current_event_sequence_send(self, sequence: int, flags: int, force_mavlink1: bool = False) -> None:
  25461. """
  25462. Regular broadcast for the current latest event sequence number for a
  25463. component. This is used to check for dropped events.
  25464. sequence : Sequence number. (type:uint16_t)
  25465. flags : Flag bitset. (type:uint8_t, values:MAV_EVENT_CURRENT_SEQUENCE_FLAGS)
  25466. """
  25467. self.send(self.current_event_sequence_encode(sequence, flags), force_mavlink1=force_mavlink1)
  25468. def request_event_encode(self, target_system: int, target_component: int, first_sequence: int, last_sequence: int) -> MAVLink_request_event_message:
  25469. """
  25470. Request one or more events to be (re-)sent. If
  25471. first_sequence==last_sequence, only a single event is
  25472. requested. Note that first_sequence can be larger than
  25473. last_sequence (because the sequence number can wrap). Each
  25474. sequence will trigger an EVENT or EVENT_ERROR response.
  25475. target_system : System ID (type:uint8_t)
  25476. target_component : Component ID (type:uint8_t)
  25477. first_sequence : First sequence number of the requested event. (type:uint16_t)
  25478. last_sequence : Last sequence number of the requested event. (type:uint16_t)
  25479. """
  25480. return MAVLink_request_event_message(target_system, target_component, first_sequence, last_sequence)
  25481. def request_event_send(self, target_system: int, target_component: int, first_sequence: int, last_sequence: int, force_mavlink1: bool = False) -> None:
  25482. """
  25483. Request one or more events to be (re-)sent. If
  25484. first_sequence==last_sequence, only a single event is
  25485. requested. Note that first_sequence can be larger than
  25486. last_sequence (because the sequence number can wrap). Each
  25487. sequence will trigger an EVENT or EVENT_ERROR response.
  25488. target_system : System ID (type:uint8_t)
  25489. target_component : Component ID (type:uint8_t)
  25490. first_sequence : First sequence number of the requested event. (type:uint16_t)
  25491. last_sequence : Last sequence number of the requested event. (type:uint16_t)
  25492. """
  25493. self.send(self.request_event_encode(target_system, target_component, first_sequence, last_sequence), force_mavlink1=force_mavlink1)
  25494. def response_event_error_encode(self, target_system: int, target_component: int, sequence: int, sequence_oldest_available: int, reason: int) -> MAVLink_response_event_error_message:
  25495. """
  25496. Response to a REQUEST_EVENT in case of an error (e.g. the event is not
  25497. available anymore).
  25498. target_system : System ID (type:uint8_t)
  25499. target_component : Component ID (type:uint8_t)
  25500. sequence : Sequence number. (type:uint16_t)
  25501. sequence_oldest_available : Oldest Sequence number that is still available after the sequence set in REQUEST_EVENT. (type:uint16_t)
  25502. reason : Error reason. (type:uint8_t, values:MAV_EVENT_ERROR_REASON)
  25503. """
  25504. return MAVLink_response_event_error_message(target_system, target_component, sequence, sequence_oldest_available, reason)
  25505. def response_event_error_send(self, target_system: int, target_component: int, sequence: int, sequence_oldest_available: int, reason: int, force_mavlink1: bool = False) -> None:
  25506. """
  25507. Response to a REQUEST_EVENT in case of an error (e.g. the event is not
  25508. available anymore).
  25509. target_system : System ID (type:uint8_t)
  25510. target_component : Component ID (type:uint8_t)
  25511. sequence : Sequence number. (type:uint16_t)
  25512. sequence_oldest_available : Oldest Sequence number that is still available after the sequence set in REQUEST_EVENT. (type:uint16_t)
  25513. reason : Error reason. (type:uint8_t, values:MAV_EVENT_ERROR_REASON)
  25514. """
  25515. self.send(self.response_event_error_encode(target_system, target_component, sequence, sequence_oldest_available, reason), force_mavlink1=force_mavlink1)
  25516. def canfd_frame_encode(self, target_system: int, target_component: int, bus: int, len: int, id: int, data: Sequence[int]) -> MAVLink_canfd_frame_message:
  25517. """
  25518. A forwarded CANFD frame as requested by MAV_CMD_CAN_FORWARD. These are
  25519. separated from CAN_FRAME as they need different handling (eg.
  25520. TAO handling)
  25521. target_system : System ID. (type:uint8_t)
  25522. target_component : Component ID. (type:uint8_t)
  25523. bus : bus number (type:uint8_t)
  25524. len : Frame length (type:uint8_t)
  25525. id : Frame ID (type:uint32_t)
  25526. data : Frame data (type:uint8_t)
  25527. """
  25528. return MAVLink_canfd_frame_message(target_system, target_component, bus, len, id, data)
  25529. def canfd_frame_send(self, target_system: int, target_component: int, bus: int, len: int, id: int, data: Sequence[int], force_mavlink1: bool = False) -> None:
  25530. """
  25531. A forwarded CANFD frame as requested by MAV_CMD_CAN_FORWARD. These are
  25532. separated from CAN_FRAME as they need different handling (eg.
  25533. TAO handling)
  25534. target_system : System ID. (type:uint8_t)
  25535. target_component : Component ID. (type:uint8_t)
  25536. bus : bus number (type:uint8_t)
  25537. len : Frame length (type:uint8_t)
  25538. id : Frame ID (type:uint32_t)
  25539. data : Frame data (type:uint8_t)
  25540. """
  25541. self.send(self.canfd_frame_encode(target_system, target_component, bus, len, id, data), force_mavlink1=force_mavlink1)
  25542. def can_filter_modify_encode(self, target_system: int, target_component: int, bus: int, operation: int, num_ids: int, ids: Sequence[int]) -> MAVLink_can_filter_modify_message:
  25543. """
  25544. Modify the filter of what CAN messages to forward over the mavlink.
  25545. This can be used to make CAN forwarding work well on low
  25546. bandwidth links. The filtering is applied on bits 8 to 24 of
  25547. the CAN id (2nd and 3rd bytes) which corresponds to the
  25548. DroneCAN message ID for DroneCAN. Filters with more than 16
  25549. IDs can be constructed by sending multiple CAN_FILTER_MODIFY
  25550. messages.
  25551. target_system : System ID. (type:uint8_t)
  25552. target_component : Component ID. (type:uint8_t)
  25553. bus : bus number (type:uint8_t)
  25554. operation : what operation to perform on the filter list. See CAN_FILTER_OP enum. (type:uint8_t, values:CAN_FILTER_OP)
  25555. num_ids : number of IDs in filter list (type:uint8_t)
  25556. ids : filter IDs, length num_ids (type:uint16_t)
  25557. """
  25558. return MAVLink_can_filter_modify_message(target_system, target_component, bus, operation, num_ids, ids)
  25559. def can_filter_modify_send(self, target_system: int, target_component: int, bus: int, operation: int, num_ids: int, ids: Sequence[int], force_mavlink1: bool = False) -> None:
  25560. """
  25561. Modify the filter of what CAN messages to forward over the mavlink.
  25562. This can be used to make CAN forwarding work well on low
  25563. bandwidth links. The filtering is applied on bits 8 to 24 of
  25564. the CAN id (2nd and 3rd bytes) which corresponds to the
  25565. DroneCAN message ID for DroneCAN. Filters with more than 16
  25566. IDs can be constructed by sending multiple CAN_FILTER_MODIFY
  25567. messages.
  25568. target_system : System ID. (type:uint8_t)
  25569. target_component : Component ID. (type:uint8_t)
  25570. bus : bus number (type:uint8_t)
  25571. operation : what operation to perform on the filter list. See CAN_FILTER_OP enum. (type:uint8_t, values:CAN_FILTER_OP)
  25572. num_ids : number of IDs in filter list (type:uint8_t)
  25573. ids : filter IDs, length num_ids (type:uint16_t)
  25574. """
  25575. self.send(self.can_filter_modify_encode(target_system, target_component, bus, operation, num_ids, ids), force_mavlink1=force_mavlink1)
  25576. def wheel_distance_encode(self, time_usec: int, count: int, distance: Sequence[float]) -> MAVLink_wheel_distance_message:
  25577. """
  25578. Cumulative distance traveled for each reported wheel.
  25579. time_usec : Timestamp (synced to UNIX time or since system boot). [us] (type:uint64_t)
  25580. count : Number of wheels reported. (type:uint8_t)
  25581. distance : Distance reported by individual wheel encoders. Forward rotations increase values, reverse rotations decrease them. Not all wheels will necessarily have wheel encoders; the mapping of encoders to wheel positions must be agreed/understood by the endpoints. [m] (type:double)
  25582. """
  25583. return MAVLink_wheel_distance_message(time_usec, count, distance)
  25584. def wheel_distance_send(self, time_usec: int, count: int, distance: Sequence[float], force_mavlink1: bool = False) -> None:
  25585. """
  25586. Cumulative distance traveled for each reported wheel.
  25587. time_usec : Timestamp (synced to UNIX time or since system boot). [us] (type:uint64_t)
  25588. count : Number of wheels reported. (type:uint8_t)
  25589. distance : Distance reported by individual wheel encoders. Forward rotations increase values, reverse rotations decrease them. Not all wheels will necessarily have wheel encoders; the mapping of encoders to wheel positions must be agreed/understood by the endpoints. [m] (type:double)
  25590. """
  25591. self.send(self.wheel_distance_encode(time_usec, count, distance), force_mavlink1=force_mavlink1)
  25592. def winch_status_encode(self, time_usec: int, line_length: float, speed: float, tension: float, voltage: float, current: float, temperature: int, status: int) -> MAVLink_winch_status_message:
  25593. """
  25594. Winch status.
  25595. time_usec : Timestamp (synced to UNIX time or since system boot). [us] (type:uint64_t)
  25596. line_length : Length of line released. NaN if unknown [m] (type:float)
  25597. speed : Speed line is being released or retracted. Positive values if being released, negative values if being retracted, NaN if unknown [m/s] (type:float)
  25598. tension : Tension on the line. NaN if unknown [kg] (type:float)
  25599. voltage : Voltage of the battery supplying the winch. NaN if unknown [V] (type:float)
  25600. current : Current draw from the winch. NaN if unknown [A] (type:float)
  25601. temperature : Temperature of the motor. INT16_MAX if unknown [degC] (type:int16_t)
  25602. status : Status flags (type:uint32_t, values:MAV_WINCH_STATUS_FLAG)
  25603. """
  25604. return MAVLink_winch_status_message(time_usec, line_length, speed, tension, voltage, current, temperature, status)
  25605. def winch_status_send(self, time_usec: int, line_length: float, speed: float, tension: float, voltage: float, current: float, temperature: int, status: int, force_mavlink1: bool = False) -> None:
  25606. """
  25607. Winch status.
  25608. time_usec : Timestamp (synced to UNIX time or since system boot). [us] (type:uint64_t)
  25609. line_length : Length of line released. NaN if unknown [m] (type:float)
  25610. speed : Speed line is being released or retracted. Positive values if being released, negative values if being retracted, NaN if unknown [m/s] (type:float)
  25611. tension : Tension on the line. NaN if unknown [kg] (type:float)
  25612. voltage : Voltage of the battery supplying the winch. NaN if unknown [V] (type:float)
  25613. current : Current draw from the winch. NaN if unknown [A] (type:float)
  25614. temperature : Temperature of the motor. INT16_MAX if unknown [degC] (type:int16_t)
  25615. status : Status flags (type:uint32_t, values:MAV_WINCH_STATUS_FLAG)
  25616. """
  25617. self.send(self.winch_status_encode(time_usec, line_length, speed, tension, voltage, current, temperature, status), force_mavlink1=force_mavlink1)
  25618. def open_drone_id_basic_id_encode(self, target_system: int, target_component: int, id_or_mac: Sequence[int], id_type: int, ua_type: int, uas_id: Sequence[int]) -> MAVLink_open_drone_id_basic_id_message:
  25619. """
  25620. Data for filling the OpenDroneID Basic ID message. This and the below
  25621. messages are primarily meant for feeding data to/from an
  25622. OpenDroneID implementation. E.g.
  25623. https://github.com/opendroneid/opendroneid-core-c. These
  25624. messages are compatible with the ASTM F3411 Remote ID standard
  25625. and the ASD-STAN prEN 4709-002 Direct Remote ID standard.
  25626. Additional information and usage of these messages is
  25627. documented at https://mavlink.io/en/services/opendroneid.html.
  25628. target_system : System ID (0 for broadcast). (type:uint8_t)
  25629. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25630. id_or_mac : Only used for drone ID data received from other UAs. See detailed description at https://mavlink.io/en/services/opendroneid.html. (type:uint8_t)
  25631. id_type : Indicates the format for the uas_id field of this message. (type:uint8_t, values:MAV_ODID_ID_TYPE)
  25632. ua_type : Indicates the type of UA (Unmanned Aircraft). (type:uint8_t, values:MAV_ODID_UA_TYPE)
  25633. uas_id : UAS (Unmanned Aircraft System) ID following the format specified by id_type. Shall be filled with nulls in the unused portion of the field. (type:uint8_t)
  25634. """
  25635. return MAVLink_open_drone_id_basic_id_message(target_system, target_component, id_or_mac, id_type, ua_type, uas_id)
  25636. def open_drone_id_basic_id_send(self, target_system: int, target_component: int, id_or_mac: Sequence[int], id_type: int, ua_type: int, uas_id: Sequence[int], force_mavlink1: bool = False) -> None:
  25637. """
  25638. Data for filling the OpenDroneID Basic ID message. This and the below
  25639. messages are primarily meant for feeding data to/from an
  25640. OpenDroneID implementation. E.g.
  25641. https://github.com/opendroneid/opendroneid-core-c. These
  25642. messages are compatible with the ASTM F3411 Remote ID standard
  25643. and the ASD-STAN prEN 4709-002 Direct Remote ID standard.
  25644. Additional information and usage of these messages is
  25645. documented at https://mavlink.io/en/services/opendroneid.html.
  25646. target_system : System ID (0 for broadcast). (type:uint8_t)
  25647. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25648. id_or_mac : Only used for drone ID data received from other UAs. See detailed description at https://mavlink.io/en/services/opendroneid.html. (type:uint8_t)
  25649. id_type : Indicates the format for the uas_id field of this message. (type:uint8_t, values:MAV_ODID_ID_TYPE)
  25650. ua_type : Indicates the type of UA (Unmanned Aircraft). (type:uint8_t, values:MAV_ODID_UA_TYPE)
  25651. uas_id : UAS (Unmanned Aircraft System) ID following the format specified by id_type. Shall be filled with nulls in the unused portion of the field. (type:uint8_t)
  25652. """
  25653. self.send(self.open_drone_id_basic_id_encode(target_system, target_component, id_or_mac, id_type, ua_type, uas_id), force_mavlink1=force_mavlink1)
  25654. def open_drone_id_location_encode(self, target_system: int, target_component: int, id_or_mac: Sequence[int], status: int, direction: int, speed_horizontal: int, speed_vertical: int, latitude: int, longitude: int, altitude_barometric: float, altitude_geodetic: float, height_reference: int, height: float, horizontal_accuracy: int, vertical_accuracy: int, barometer_accuracy: int, speed_accuracy: int, timestamp: float, timestamp_accuracy: int) -> MAVLink_open_drone_id_location_message:
  25655. """
  25656. Data for filling the OpenDroneID Location message. The float data
  25657. types are 32-bit IEEE 754. The Location message provides the
  25658. location, altitude, direction and speed of the aircraft.
  25659. target_system : System ID (0 for broadcast). (type:uint8_t)
  25660. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25661. id_or_mac : Only used for drone ID data received from other UAs. See detailed description at https://mavlink.io/en/services/opendroneid.html. (type:uint8_t)
  25662. status : Indicates whether the unmanned aircraft is on the ground or in the air. (type:uint8_t, values:MAV_ODID_STATUS)
  25663. direction : Direction over ground (not heading, but direction of movement) measured clockwise from true North: 0 - 35999 centi-degrees. If unknown: 36100 centi-degrees. [cdeg] (type:uint16_t)
  25664. speed_horizontal : Ground speed. Positive only. If unknown: 25500 cm/s. If speed is larger than 25425 cm/s, use 25425 cm/s. [cm/s] (type:uint16_t)
  25665. speed_vertical : The vertical speed. Up is positive. If unknown: 6300 cm/s. If speed is larger than 6200 cm/s, use 6200 cm/s. If lower than -6200 cm/s, use -6200 cm/s. [cm/s] (type:int16_t)
  25666. latitude : Current latitude of the unmanned aircraft. If unknown: 0 (both Lat/Lon). [degE7] (type:int32_t)
  25667. longitude : Current longitude of the unmanned aircraft. If unknown: 0 (both Lat/Lon). [degE7] (type:int32_t)
  25668. altitude_barometric : The altitude calculated from the barometric pressue. Reference is against 29.92inHg or 1013.2mb. If unknown: -1000 m. [m] (type:float)
  25669. altitude_geodetic : The geodetic altitude as defined by WGS84. If unknown: -1000 m. [m] (type:float)
  25670. height_reference : Indicates the reference point for the height field. (type:uint8_t, values:MAV_ODID_HEIGHT_REF)
  25671. height : The current height of the unmanned aircraft above the take-off location or the ground as indicated by height_reference. If unknown: -1000 m. [m] (type:float)
  25672. horizontal_accuracy : The accuracy of the horizontal position. (type:uint8_t, values:MAV_ODID_HOR_ACC)
  25673. vertical_accuracy : The accuracy of the vertical position. (type:uint8_t, values:MAV_ODID_VER_ACC)
  25674. barometer_accuracy : The accuracy of the barometric altitude. (type:uint8_t, values:MAV_ODID_VER_ACC)
  25675. speed_accuracy : The accuracy of the horizontal and vertical speed. (type:uint8_t, values:MAV_ODID_SPEED_ACC)
  25676. timestamp : Seconds after the full hour with reference to UTC time. Typically the GPS outputs a time-of-week value in milliseconds. First convert that to UTC and then convert for this field using ((float) (time_week_ms % (60*60*1000))) / 1000. If unknown: 0xFFFF. [s] (type:float)
  25677. timestamp_accuracy : The accuracy of the timestamps. (type:uint8_t, values:MAV_ODID_TIME_ACC)
  25678. """
  25679. return MAVLink_open_drone_id_location_message(target_system, target_component, id_or_mac, status, direction, speed_horizontal, speed_vertical, latitude, longitude, altitude_barometric, altitude_geodetic, height_reference, height, horizontal_accuracy, vertical_accuracy, barometer_accuracy, speed_accuracy, timestamp, timestamp_accuracy)
  25680. def open_drone_id_location_send(self, target_system: int, target_component: int, id_or_mac: Sequence[int], status: int, direction: int, speed_horizontal: int, speed_vertical: int, latitude: int, longitude: int, altitude_barometric: float, altitude_geodetic: float, height_reference: int, height: float, horizontal_accuracy: int, vertical_accuracy: int, barometer_accuracy: int, speed_accuracy: int, timestamp: float, timestamp_accuracy: int, force_mavlink1: bool = False) -> None:
  25681. """
  25682. Data for filling the OpenDroneID Location message. The float data
  25683. types are 32-bit IEEE 754. The Location message provides the
  25684. location, altitude, direction and speed of the aircraft.
  25685. target_system : System ID (0 for broadcast). (type:uint8_t)
  25686. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25687. id_or_mac : Only used for drone ID data received from other UAs. See detailed description at https://mavlink.io/en/services/opendroneid.html. (type:uint8_t)
  25688. status : Indicates whether the unmanned aircraft is on the ground or in the air. (type:uint8_t, values:MAV_ODID_STATUS)
  25689. direction : Direction over ground (not heading, but direction of movement) measured clockwise from true North: 0 - 35999 centi-degrees. If unknown: 36100 centi-degrees. [cdeg] (type:uint16_t)
  25690. speed_horizontal : Ground speed. Positive only. If unknown: 25500 cm/s. If speed is larger than 25425 cm/s, use 25425 cm/s. [cm/s] (type:uint16_t)
  25691. speed_vertical : The vertical speed. Up is positive. If unknown: 6300 cm/s. If speed is larger than 6200 cm/s, use 6200 cm/s. If lower than -6200 cm/s, use -6200 cm/s. [cm/s] (type:int16_t)
  25692. latitude : Current latitude of the unmanned aircraft. If unknown: 0 (both Lat/Lon). [degE7] (type:int32_t)
  25693. longitude : Current longitude of the unmanned aircraft. If unknown: 0 (both Lat/Lon). [degE7] (type:int32_t)
  25694. altitude_barometric : The altitude calculated from the barometric pressue. Reference is against 29.92inHg or 1013.2mb. If unknown: -1000 m. [m] (type:float)
  25695. altitude_geodetic : The geodetic altitude as defined by WGS84. If unknown: -1000 m. [m] (type:float)
  25696. height_reference : Indicates the reference point for the height field. (type:uint8_t, values:MAV_ODID_HEIGHT_REF)
  25697. height : The current height of the unmanned aircraft above the take-off location or the ground as indicated by height_reference. If unknown: -1000 m. [m] (type:float)
  25698. horizontal_accuracy : The accuracy of the horizontal position. (type:uint8_t, values:MAV_ODID_HOR_ACC)
  25699. vertical_accuracy : The accuracy of the vertical position. (type:uint8_t, values:MAV_ODID_VER_ACC)
  25700. barometer_accuracy : The accuracy of the barometric altitude. (type:uint8_t, values:MAV_ODID_VER_ACC)
  25701. speed_accuracy : The accuracy of the horizontal and vertical speed. (type:uint8_t, values:MAV_ODID_SPEED_ACC)
  25702. timestamp : Seconds after the full hour with reference to UTC time. Typically the GPS outputs a time-of-week value in milliseconds. First convert that to UTC and then convert for this field using ((float) (time_week_ms % (60*60*1000))) / 1000. If unknown: 0xFFFF. [s] (type:float)
  25703. timestamp_accuracy : The accuracy of the timestamps. (type:uint8_t, values:MAV_ODID_TIME_ACC)
  25704. """
  25705. self.send(self.open_drone_id_location_encode(target_system, target_component, id_or_mac, status, direction, speed_horizontal, speed_vertical, latitude, longitude, altitude_barometric, altitude_geodetic, height_reference, height, horizontal_accuracy, vertical_accuracy, barometer_accuracy, speed_accuracy, timestamp, timestamp_accuracy), force_mavlink1=force_mavlink1)
  25706. def open_drone_id_authentication_encode(self, target_system: int, target_component: int, id_or_mac: Sequence[int], authentication_type: int, data_page: int, last_page_index: int, length: int, timestamp: int, authentication_data: Sequence[int]) -> MAVLink_open_drone_id_authentication_message:
  25707. """
  25708. Data for filling the OpenDroneID Authentication message. The
  25709. Authentication Message defines a field that can provide a
  25710. means of authenticity for the identity of the UAS (Unmanned
  25711. Aircraft System). The Authentication message can have two
  25712. different formats. For data page 0, the fields PageCount,
  25713. Length and TimeStamp are present and AuthData is only 17
  25714. bytes. For data page 1 through 15, PageCount, Length and
  25715. TimeStamp are not present and the size of AuthData is 23
  25716. bytes.
  25717. target_system : System ID (0 for broadcast). (type:uint8_t)
  25718. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25719. id_or_mac : Only used for drone ID data received from other UAs. See detailed description at https://mavlink.io/en/services/opendroneid.html. (type:uint8_t)
  25720. authentication_type : Indicates the type of authentication. (type:uint8_t, values:MAV_ODID_AUTH_TYPE)
  25721. data_page : Allowed range is 0 - 15. (type:uint8_t)
  25722. last_page_index : This field is only present for page 0. Allowed range is 0 - 15. See the description of struct ODID_Auth_data at https://github.com/opendroneid/opendroneid-core-c/blob/master/libopendroneid/opendroneid.h. (type:uint8_t)
  25723. length : This field is only present for page 0. Total bytes of authentication_data from all data pages. See the description of struct ODID_Auth_data at https://github.com/opendroneid/opendroneid-core-c/blob/master/libopendroneid/opendroneid.h. [bytes] (type:uint8_t)
  25724. timestamp : This field is only present for page 0. 32 bit Unix Timestamp in seconds since 00:00:00 01/01/2019. [s] (type:uint32_t)
  25725. authentication_data : Opaque authentication data. For page 0, the size is only 17 bytes. For other pages, the size is 23 bytes. Shall be filled with nulls in the unused portion of the field. (type:uint8_t)
  25726. """
  25727. return MAVLink_open_drone_id_authentication_message(target_system, target_component, id_or_mac, authentication_type, data_page, last_page_index, length, timestamp, authentication_data)
  25728. def open_drone_id_authentication_send(self, target_system: int, target_component: int, id_or_mac: Sequence[int], authentication_type: int, data_page: int, last_page_index: int, length: int, timestamp: int, authentication_data: Sequence[int], force_mavlink1: bool = False) -> None:
  25729. """
  25730. Data for filling the OpenDroneID Authentication message. The
  25731. Authentication Message defines a field that can provide a
  25732. means of authenticity for the identity of the UAS (Unmanned
  25733. Aircraft System). The Authentication message can have two
  25734. different formats. For data page 0, the fields PageCount,
  25735. Length and TimeStamp are present and AuthData is only 17
  25736. bytes. For data page 1 through 15, PageCount, Length and
  25737. TimeStamp are not present and the size of AuthData is 23
  25738. bytes.
  25739. target_system : System ID (0 for broadcast). (type:uint8_t)
  25740. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25741. id_or_mac : Only used for drone ID data received from other UAs. See detailed description at https://mavlink.io/en/services/opendroneid.html. (type:uint8_t)
  25742. authentication_type : Indicates the type of authentication. (type:uint8_t, values:MAV_ODID_AUTH_TYPE)
  25743. data_page : Allowed range is 0 - 15. (type:uint8_t)
  25744. last_page_index : This field is only present for page 0. Allowed range is 0 - 15. See the description of struct ODID_Auth_data at https://github.com/opendroneid/opendroneid-core-c/blob/master/libopendroneid/opendroneid.h. (type:uint8_t)
  25745. length : This field is only present for page 0. Total bytes of authentication_data from all data pages. See the description of struct ODID_Auth_data at https://github.com/opendroneid/opendroneid-core-c/blob/master/libopendroneid/opendroneid.h. [bytes] (type:uint8_t)
  25746. timestamp : This field is only present for page 0. 32 bit Unix Timestamp in seconds since 00:00:00 01/01/2019. [s] (type:uint32_t)
  25747. authentication_data : Opaque authentication data. For page 0, the size is only 17 bytes. For other pages, the size is 23 bytes. Shall be filled with nulls in the unused portion of the field. (type:uint8_t)
  25748. """
  25749. self.send(self.open_drone_id_authentication_encode(target_system, target_component, id_or_mac, authentication_type, data_page, last_page_index, length, timestamp, authentication_data), force_mavlink1=force_mavlink1)
  25750. def open_drone_id_self_id_encode(self, target_system: int, target_component: int, id_or_mac: Sequence[int], description_type: int, description: bytes) -> MAVLink_open_drone_id_self_id_message:
  25751. """
  25752. Data for filling the OpenDroneID Self ID message. The Self ID Message
  25753. is an opportunity for the operator to (optionally) declare
  25754. their identity and purpose of the flight. This message can
  25755. provide additional information that could reduce the threat
  25756. profile of a UA (Unmanned Aircraft) flying in a particular
  25757. area or manner. This message can also be used to provide
  25758. optional additional clarification in an emergency/remote ID
  25759. system failure situation.
  25760. target_system : System ID (0 for broadcast). (type:uint8_t)
  25761. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25762. id_or_mac : Only used for drone ID data received from other UAs. See detailed description at https://mavlink.io/en/services/opendroneid.html. (type:uint8_t)
  25763. description_type : Indicates the type of the description field. (type:uint8_t, values:MAV_ODID_DESC_TYPE)
  25764. description : Text description or numeric value expressed as ASCII characters. Shall be filled with nulls in the unused portion of the field. (type:char)
  25765. """
  25766. return MAVLink_open_drone_id_self_id_message(target_system, target_component, id_or_mac, description_type, description)
  25767. def open_drone_id_self_id_send(self, target_system: int, target_component: int, id_or_mac: Sequence[int], description_type: int, description: bytes, force_mavlink1: bool = False) -> None:
  25768. """
  25769. Data for filling the OpenDroneID Self ID message. The Self ID Message
  25770. is an opportunity for the operator to (optionally) declare
  25771. their identity and purpose of the flight. This message can
  25772. provide additional information that could reduce the threat
  25773. profile of a UA (Unmanned Aircraft) flying in a particular
  25774. area or manner. This message can also be used to provide
  25775. optional additional clarification in an emergency/remote ID
  25776. system failure situation.
  25777. target_system : System ID (0 for broadcast). (type:uint8_t)
  25778. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25779. id_or_mac : Only used for drone ID data received from other UAs. See detailed description at https://mavlink.io/en/services/opendroneid.html. (type:uint8_t)
  25780. description_type : Indicates the type of the description field. (type:uint8_t, values:MAV_ODID_DESC_TYPE)
  25781. description : Text description or numeric value expressed as ASCII characters. Shall be filled with nulls in the unused portion of the field. (type:char)
  25782. """
  25783. self.send(self.open_drone_id_self_id_encode(target_system, target_component, id_or_mac, description_type, description), force_mavlink1=force_mavlink1)
  25784. def open_drone_id_system_encode(self, target_system: int, target_component: int, id_or_mac: Sequence[int], operator_location_type: int, classification_type: int, operator_latitude: int, operator_longitude: int, area_count: int, area_radius: int, area_ceiling: float, area_floor: float, category_eu: int, class_eu: int, operator_altitude_geo: float, timestamp: int) -> MAVLink_open_drone_id_system_message:
  25785. """
  25786. Data for filling the OpenDroneID System message. The System Message
  25787. contains general system information including the operator
  25788. location/altitude and possible aircraft group and/or
  25789. category/class information.
  25790. target_system : System ID (0 for broadcast). (type:uint8_t)
  25791. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25792. id_or_mac : Only used for drone ID data received from other UAs. See detailed description at https://mavlink.io/en/services/opendroneid.html. (type:uint8_t)
  25793. operator_location_type : Specifies the operator location type. (type:uint8_t, values:MAV_ODID_OPERATOR_LOCATION_TYPE)
  25794. classification_type : Specifies the classification type of the UA. (type:uint8_t, values:MAV_ODID_CLASSIFICATION_TYPE)
  25795. operator_latitude : Latitude of the operator. If unknown: 0 (both Lat/Lon). [degE7] (type:int32_t)
  25796. operator_longitude : Longitude of the operator. If unknown: 0 (both Lat/Lon). [degE7] (type:int32_t)
  25797. area_count : Number of aircraft in the area, group or formation (default 1). Used only for swarms/multiple UA. (type:uint16_t)
  25798. area_radius : Radius of the cylindrical area of the group or formation (default 0). Used only for swarms/multiple UA. [m] (type:uint16_t)
  25799. area_ceiling : Area Operations Ceiling relative to WGS84. If unknown: -1000 m. Used only for swarms/multiple UA. [m] (type:float)
  25800. area_floor : Area Operations Floor relative to WGS84. If unknown: -1000 m. Used only for swarms/multiple UA. [m] (type:float)
  25801. category_eu : When classification_type is MAV_ODID_CLASSIFICATION_TYPE_EU, specifies the category of the UA. (type:uint8_t, values:MAV_ODID_CATEGORY_EU)
  25802. class_eu : When classification_type is MAV_ODID_CLASSIFICATION_TYPE_EU, specifies the class of the UA. (type:uint8_t, values:MAV_ODID_CLASS_EU)
  25803. operator_altitude_geo : Geodetic altitude of the operator relative to WGS84. If unknown: -1000 m. [m] (type:float)
  25804. timestamp : 32 bit Unix Timestamp in seconds since 00:00:00 01/01/2019. [s] (type:uint32_t)
  25805. """
  25806. return MAVLink_open_drone_id_system_message(target_system, target_component, id_or_mac, operator_location_type, classification_type, operator_latitude, operator_longitude, area_count, area_radius, area_ceiling, area_floor, category_eu, class_eu, operator_altitude_geo, timestamp)
  25807. def open_drone_id_system_send(self, target_system: int, target_component: int, id_or_mac: Sequence[int], operator_location_type: int, classification_type: int, operator_latitude: int, operator_longitude: int, area_count: int, area_radius: int, area_ceiling: float, area_floor: float, category_eu: int, class_eu: int, operator_altitude_geo: float, timestamp: int, force_mavlink1: bool = False) -> None:
  25808. """
  25809. Data for filling the OpenDroneID System message. The System Message
  25810. contains general system information including the operator
  25811. location/altitude and possible aircraft group and/or
  25812. category/class information.
  25813. target_system : System ID (0 for broadcast). (type:uint8_t)
  25814. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25815. id_or_mac : Only used for drone ID data received from other UAs. See detailed description at https://mavlink.io/en/services/opendroneid.html. (type:uint8_t)
  25816. operator_location_type : Specifies the operator location type. (type:uint8_t, values:MAV_ODID_OPERATOR_LOCATION_TYPE)
  25817. classification_type : Specifies the classification type of the UA. (type:uint8_t, values:MAV_ODID_CLASSIFICATION_TYPE)
  25818. operator_latitude : Latitude of the operator. If unknown: 0 (both Lat/Lon). [degE7] (type:int32_t)
  25819. operator_longitude : Longitude of the operator. If unknown: 0 (both Lat/Lon). [degE7] (type:int32_t)
  25820. area_count : Number of aircraft in the area, group or formation (default 1). Used only for swarms/multiple UA. (type:uint16_t)
  25821. area_radius : Radius of the cylindrical area of the group or formation (default 0). Used only for swarms/multiple UA. [m] (type:uint16_t)
  25822. area_ceiling : Area Operations Ceiling relative to WGS84. If unknown: -1000 m. Used only for swarms/multiple UA. [m] (type:float)
  25823. area_floor : Area Operations Floor relative to WGS84. If unknown: -1000 m. Used only for swarms/multiple UA. [m] (type:float)
  25824. category_eu : When classification_type is MAV_ODID_CLASSIFICATION_TYPE_EU, specifies the category of the UA. (type:uint8_t, values:MAV_ODID_CATEGORY_EU)
  25825. class_eu : When classification_type is MAV_ODID_CLASSIFICATION_TYPE_EU, specifies the class of the UA. (type:uint8_t, values:MAV_ODID_CLASS_EU)
  25826. operator_altitude_geo : Geodetic altitude of the operator relative to WGS84. If unknown: -1000 m. [m] (type:float)
  25827. timestamp : 32 bit Unix Timestamp in seconds since 00:00:00 01/01/2019. [s] (type:uint32_t)
  25828. """
  25829. self.send(self.open_drone_id_system_encode(target_system, target_component, id_or_mac, operator_location_type, classification_type, operator_latitude, operator_longitude, area_count, area_radius, area_ceiling, area_floor, category_eu, class_eu, operator_altitude_geo, timestamp), force_mavlink1=force_mavlink1)
  25830. def open_drone_id_operator_id_encode(self, target_system: int, target_component: int, id_or_mac: Sequence[int], operator_id_type: int, operator_id: bytes) -> MAVLink_open_drone_id_operator_id_message:
  25831. """
  25832. Data for filling the OpenDroneID Operator ID message, which contains
  25833. the CAA (Civil Aviation Authority) issued operator ID.
  25834. target_system : System ID (0 for broadcast). (type:uint8_t)
  25835. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25836. id_or_mac : Only used for drone ID data received from other UAs. See detailed description at https://mavlink.io/en/services/opendroneid.html. (type:uint8_t)
  25837. operator_id_type : Indicates the type of the operator_id field. (type:uint8_t, values:MAV_ODID_OPERATOR_ID_TYPE)
  25838. operator_id : Text description or numeric value expressed as ASCII characters. Shall be filled with nulls in the unused portion of the field. (type:char)
  25839. """
  25840. return MAVLink_open_drone_id_operator_id_message(target_system, target_component, id_or_mac, operator_id_type, operator_id)
  25841. def open_drone_id_operator_id_send(self, target_system: int, target_component: int, id_or_mac: Sequence[int], operator_id_type: int, operator_id: bytes, force_mavlink1: bool = False) -> None:
  25842. """
  25843. Data for filling the OpenDroneID Operator ID message, which contains
  25844. the CAA (Civil Aviation Authority) issued operator ID.
  25845. target_system : System ID (0 for broadcast). (type:uint8_t)
  25846. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25847. id_or_mac : Only used for drone ID data received from other UAs. See detailed description at https://mavlink.io/en/services/opendroneid.html. (type:uint8_t)
  25848. operator_id_type : Indicates the type of the operator_id field. (type:uint8_t, values:MAV_ODID_OPERATOR_ID_TYPE)
  25849. operator_id : Text description or numeric value expressed as ASCII characters. Shall be filled with nulls in the unused portion of the field. (type:char)
  25850. """
  25851. self.send(self.open_drone_id_operator_id_encode(target_system, target_component, id_or_mac, operator_id_type, operator_id), force_mavlink1=force_mavlink1)
  25852. def open_drone_id_message_pack_encode(self, target_system: int, target_component: int, id_or_mac: Sequence[int], single_message_size: int, msg_pack_size: int, messages: Sequence[int]) -> MAVLink_open_drone_id_message_pack_message:
  25853. """
  25854. An OpenDroneID message pack is a container for multiple encoded
  25855. OpenDroneID messages (i.e. not in the format given for the
  25856. above message descriptions but after encoding into the
  25857. compressed OpenDroneID byte format). Used e.g. when
  25858. transmitting on Bluetooth 5.0 Long Range/Extended Advertising
  25859. or on WiFi Neighbor Aware Networking or on WiFi Beacon.
  25860. target_system : System ID (0 for broadcast). (type:uint8_t)
  25861. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25862. id_or_mac : Only used for drone ID data received from other UAs. See detailed description at https://mavlink.io/en/services/opendroneid.html. (type:uint8_t)
  25863. single_message_size : This field must currently always be equal to 25 (bytes), since all encoded OpenDroneID messages are specified to have this length. [bytes] (type:uint8_t)
  25864. msg_pack_size : Number of encoded messages in the pack (not the number of bytes). Allowed range is 1 - 9. (type:uint8_t)
  25865. messages : Concatenation of encoded OpenDroneID messages. Shall be filled with nulls in the unused portion of the field. (type:uint8_t)
  25866. """
  25867. return MAVLink_open_drone_id_message_pack_message(target_system, target_component, id_or_mac, single_message_size, msg_pack_size, messages)
  25868. def open_drone_id_message_pack_send(self, target_system: int, target_component: int, id_or_mac: Sequence[int], single_message_size: int, msg_pack_size: int, messages: Sequence[int], force_mavlink1: bool = False) -> None:
  25869. """
  25870. An OpenDroneID message pack is a container for multiple encoded
  25871. OpenDroneID messages (i.e. not in the format given for the
  25872. above message descriptions but after encoding into the
  25873. compressed OpenDroneID byte format). Used e.g. when
  25874. transmitting on Bluetooth 5.0 Long Range/Extended Advertising
  25875. or on WiFi Neighbor Aware Networking or on WiFi Beacon.
  25876. target_system : System ID (0 for broadcast). (type:uint8_t)
  25877. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25878. id_or_mac : Only used for drone ID data received from other UAs. See detailed description at https://mavlink.io/en/services/opendroneid.html. (type:uint8_t)
  25879. single_message_size : This field must currently always be equal to 25 (bytes), since all encoded OpenDroneID messages are specified to have this length. [bytes] (type:uint8_t)
  25880. msg_pack_size : Number of encoded messages in the pack (not the number of bytes). Allowed range is 1 - 9. (type:uint8_t)
  25881. messages : Concatenation of encoded OpenDroneID messages. Shall be filled with nulls in the unused portion of the field. (type:uint8_t)
  25882. """
  25883. self.send(self.open_drone_id_message_pack_encode(target_system, target_component, id_or_mac, single_message_size, msg_pack_size, messages), force_mavlink1=force_mavlink1)
  25884. def open_drone_id_arm_status_encode(self, status: int, error: bytes) -> MAVLink_open_drone_id_arm_status_message:
  25885. """
  25886. Transmitter (remote ID system) is enabled and ready to start sending
  25887. location and other required information. This is streamed by
  25888. transmitter. A flight controller uses it as a condition to
  25889. arm.
  25890. status : Status level indicating if arming is allowed. (type:uint8_t, values:MAV_ODID_ARM_STATUS)
  25891. error : Text error message, should be empty if status is good to arm. Fill with nulls in unused portion. (type:char)
  25892. """
  25893. return MAVLink_open_drone_id_arm_status_message(status, error)
  25894. def open_drone_id_arm_status_send(self, status: int, error: bytes, force_mavlink1: bool = False) -> None:
  25895. """
  25896. Transmitter (remote ID system) is enabled and ready to start sending
  25897. location and other required information. This is streamed by
  25898. transmitter. A flight controller uses it as a condition to
  25899. arm.
  25900. status : Status level indicating if arming is allowed. (type:uint8_t, values:MAV_ODID_ARM_STATUS)
  25901. error : Text error message, should be empty if status is good to arm. Fill with nulls in unused portion. (type:char)
  25902. """
  25903. self.send(self.open_drone_id_arm_status_encode(status, error), force_mavlink1=force_mavlink1)
  25904. def open_drone_id_system_update_encode(self, target_system: int, target_component: int, operator_latitude: int, operator_longitude: int, operator_altitude_geo: float, timestamp: int) -> MAVLink_open_drone_id_system_update_message:
  25905. """
  25906. Update the data in the OPEN_DRONE_ID_SYSTEM message with new location
  25907. information. This can be sent to update the location
  25908. information for the operator when no other information in the
  25909. SYSTEM message has changed. This message allows for efficient
  25910. operation on radio links which have limited uplink bandwidth
  25911. while meeting requirements for update frequency of the
  25912. operator location.
  25913. target_system : System ID (0 for broadcast). (type:uint8_t)
  25914. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25915. operator_latitude : Latitude of the operator. If unknown: 0 (both Lat/Lon). [degE7] (type:int32_t)
  25916. operator_longitude : Longitude of the operator. If unknown: 0 (both Lat/Lon). [degE7] (type:int32_t)
  25917. operator_altitude_geo : Geodetic altitude of the operator relative to WGS84. If unknown: -1000 m. [m] (type:float)
  25918. timestamp : 32 bit Unix Timestamp in seconds since 00:00:00 01/01/2019. [s] (type:uint32_t)
  25919. """
  25920. return MAVLink_open_drone_id_system_update_message(target_system, target_component, operator_latitude, operator_longitude, operator_altitude_geo, timestamp)
  25921. def open_drone_id_system_update_send(self, target_system: int, target_component: int, operator_latitude: int, operator_longitude: int, operator_altitude_geo: float, timestamp: int, force_mavlink1: bool = False) -> None:
  25922. """
  25923. Update the data in the OPEN_DRONE_ID_SYSTEM message with new location
  25924. information. This can be sent to update the location
  25925. information for the operator when no other information in the
  25926. SYSTEM message has changed. This message allows for efficient
  25927. operation on radio links which have limited uplink bandwidth
  25928. while meeting requirements for update frequency of the
  25929. operator location.
  25930. target_system : System ID (0 for broadcast). (type:uint8_t)
  25931. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25932. operator_latitude : Latitude of the operator. If unknown: 0 (both Lat/Lon). [degE7] (type:int32_t)
  25933. operator_longitude : Longitude of the operator. If unknown: 0 (both Lat/Lon). [degE7] (type:int32_t)
  25934. operator_altitude_geo : Geodetic altitude of the operator relative to WGS84. If unknown: -1000 m. [m] (type:float)
  25935. timestamp : 32 bit Unix Timestamp in seconds since 00:00:00 01/01/2019. [s] (type:uint32_t)
  25936. """
  25937. self.send(self.open_drone_id_system_update_encode(target_system, target_component, operator_latitude, operator_longitude, operator_altitude_geo, timestamp), force_mavlink1=force_mavlink1)
  25938. def hygrometer_sensor_encode(self, id: int, temperature: int, humidity: int) -> MAVLink_hygrometer_sensor_message:
  25939. """
  25940. Temperature and humidity from hygrometer.
  25941. id : Hygrometer ID (type:uint8_t)
  25942. temperature : Temperature [cdegC] (type:int16_t)
  25943. humidity : Humidity [c%] (type:uint16_t)
  25944. """
  25945. return MAVLink_hygrometer_sensor_message(id, temperature, humidity)
  25946. def hygrometer_sensor_send(self, id: int, temperature: int, humidity: int, force_mavlink1: bool = False) -> None:
  25947. """
  25948. Temperature and humidity from hygrometer.
  25949. id : Hygrometer ID (type:uint8_t)
  25950. temperature : Temperature [cdegC] (type:int16_t)
  25951. humidity : Humidity [c%] (type:uint16_t)
  25952. """
  25953. self.send(self.hygrometer_sensor_encode(id, temperature, humidity), force_mavlink1=force_mavlink1)
  25954. def heartbeat_encode(self, type: int, autopilot: int, base_mode: int, custom_mode: int, system_status: int, mavlink_version: int = 3) -> MAVLink_heartbeat_message:
  25955. """
  25956. The heartbeat message shows that a system or component is present and
  25957. responding. The type and autopilot fields (along with the
  25958. message component id), allow the receiving system to treat
  25959. further messages from this system appropriately (e.g. by
  25960. laying out the user interface based on the autopilot). This
  25961. microservice is documented at
  25962. https://mavlink.io/en/services/heartbeat.html
  25963. type : Vehicle or component type. For a flight controller component the vehicle type (quadrotor, helicopter, etc.). For other components the component type (e.g. camera, gimbal, etc.). This should be used in preference to component id for identifying the component type. (type:uint8_t, values:MAV_TYPE)
  25964. autopilot : Autopilot type / class. Use MAV_AUTOPILOT_INVALID for components that are not flight controllers. (type:uint8_t, values:MAV_AUTOPILOT)
  25965. base_mode : System mode bitmap. (type:uint8_t, values:MAV_MODE_FLAG)
  25966. custom_mode : A bitfield for use for autopilot-specific flags (type:uint32_t)
  25967. system_status : System status flag. (type:uint8_t, values:MAV_STATE)
  25968. mavlink_version : MAVLink version, not writable by user, gets added by protocol because of magic data type: uint8_t_mavlink_version (type:uint8_t)
  25969. """
  25970. return MAVLink_heartbeat_message(type, autopilot, base_mode, custom_mode, system_status, mavlink_version)
  25971. def heartbeat_send(self, type: int, autopilot: int, base_mode: int, custom_mode: int, system_status: int, mavlink_version: int = 3, force_mavlink1: bool = False) -> None:
  25972. """
  25973. The heartbeat message shows that a system or component is present and
  25974. responding. The type and autopilot fields (along with the
  25975. message component id), allow the receiving system to treat
  25976. further messages from this system appropriately (e.g. by
  25977. laying out the user interface based on the autopilot). This
  25978. microservice is documented at
  25979. https://mavlink.io/en/services/heartbeat.html
  25980. type : Vehicle or component type. For a flight controller component the vehicle type (quadrotor, helicopter, etc.). For other components the component type (e.g. camera, gimbal, etc.). This should be used in preference to component id for identifying the component type. (type:uint8_t, values:MAV_TYPE)
  25981. autopilot : Autopilot type / class. Use MAV_AUTOPILOT_INVALID for components that are not flight controllers. (type:uint8_t, values:MAV_AUTOPILOT)
  25982. base_mode : System mode bitmap. (type:uint8_t, values:MAV_MODE_FLAG)
  25983. custom_mode : A bitfield for use for autopilot-specific flags (type:uint32_t)
  25984. system_status : System status flag. (type:uint8_t, values:MAV_STATE)
  25985. mavlink_version : MAVLink version, not writable by user, gets added by protocol because of magic data type: uint8_t_mavlink_version (type:uint8_t)
  25986. """
  25987. self.send(self.heartbeat_encode(type, autopilot, base_mode, custom_mode, system_status, mavlink_version), force_mavlink1=force_mavlink1)
  25988. def protocol_version_encode(self, version: int, min_version: int, max_version: int, spec_version_hash: Sequence[int], library_version_hash: Sequence[int]) -> MAVLink_protocol_version_message:
  25989. """
  25990. Version and capability of protocol version. This message can be
  25991. requested with MAV_CMD_REQUEST_MESSAGE and is used as part of
  25992. the handshaking to establish which MAVLink version should be
  25993. used on the network. Every node should respond to a request
  25994. for PROTOCOL_VERSION to enable the handshaking. Library
  25995. implementers should consider adding this into the default
  25996. decoding state machine to allow the protocol core to respond
  25997. directly.
  25998. version : Currently active MAVLink version number * 100: v1.0 is 100, v2.0 is 200, etc. (type:uint16_t)
  25999. min_version : Minimum MAVLink version supported (type:uint16_t)
  26000. max_version : Maximum MAVLink version supported (set to the same value as version by default) (type:uint16_t)
  26001. spec_version_hash : The first 8 bytes (not characters printed in hex!) of the git hash. (type:uint8_t)
  26002. library_version_hash : The first 8 bytes (not characters printed in hex!) of the git hash. (type:uint8_t)
  26003. """
  26004. return MAVLink_protocol_version_message(version, min_version, max_version, spec_version_hash, library_version_hash)
  26005. def protocol_version_send(self, version: int, min_version: int, max_version: int, spec_version_hash: Sequence[int], library_version_hash: Sequence[int], force_mavlink1: bool = False) -> None:
  26006. """
  26007. Version and capability of protocol version. This message can be
  26008. requested with MAV_CMD_REQUEST_MESSAGE and is used as part of
  26009. the handshaking to establish which MAVLink version should be
  26010. used on the network. Every node should respond to a request
  26011. for PROTOCOL_VERSION to enable the handshaking. Library
  26012. implementers should consider adding this into the default
  26013. decoding state machine to allow the protocol core to respond
  26014. directly.
  26015. version : Currently active MAVLink version number * 100: v1.0 is 100, v2.0 is 200, etc. (type:uint16_t)
  26016. min_version : Minimum MAVLink version supported (type:uint16_t)
  26017. max_version : Maximum MAVLink version supported (set to the same value as version by default) (type:uint16_t)
  26018. spec_version_hash : The first 8 bytes (not characters printed in hex!) of the git hash. (type:uint8_t)
  26019. library_version_hash : The first 8 bytes (not characters printed in hex!) of the git hash. (type:uint8_t)
  26020. """
  26021. self.send(self.protocol_version_encode(version, min_version, max_version, spec_version_hash, library_version_hash), force_mavlink1=force_mavlink1)