VKFly.py 1.9 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497
  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. # MAV_CMD
  947. enums["MAV_CMD"] = Enum()
  948. enums["MAV_CMD"].bitmask = False
  949. MAV_CMD_NAV_WAYPOINT = 16
  950. 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).""")
  951. enums["MAV_CMD"][16].has_location = True
  952. enums["MAV_CMD"][16].param[1] = """Hold time. (ignored by fixed wing, time to stay at waypoint for rotary wing)"""
  953. enums["MAV_CMD"][16].label[1] = """Hold"""
  954. enums["MAV_CMD"][16].param[2] = """Acceptance radius (if the sphere with this radius is hit, the waypoint counts as reached)"""
  955. enums["MAV_CMD"][16].label[2] = """Accept Radius"""
  956. 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."""
  957. enums["MAV_CMD"][16].label[3] = """Pass Radius"""
  958. 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.)."""
  959. enums["MAV_CMD"][16].label[4] = """Yaw"""
  960. enums["MAV_CMD"][16].param[5] = """Latitude"""
  961. enums["MAV_CMD"][16].label[5] = """Latitude"""
  962. enums["MAV_CMD"][16].param[6] = """Longitude"""
  963. enums["MAV_CMD"][16].label[6] = """Longitude"""
  964. enums["MAV_CMD"][16].param[7] = """Altitude"""
  965. enums["MAV_CMD"][16].label[7] = """Altitude"""
  966. MAV_CMD_NAV_LOITER_UNLIM = 17
  967. enums["MAV_CMD"][17] = EnumEntry("MAV_CMD_NAV_LOITER_UNLIM", """Loiter around this waypoint an unlimited amount of time""")
  968. enums["MAV_CMD"][17].has_location = True
  969. enums["MAV_CMD"][17].param[1] = """Empty"""
  970. enums["MAV_CMD"][17].param[2] = """Empty"""
  971. enums["MAV_CMD"][17].param[3] = """Loiter radius around waypoint for forward-only moving vehicles (not multicopters). If positive loiter clockwise, else counter-clockwise"""
  972. enums["MAV_CMD"][17].label[3] = """Radius"""
  973. 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.)."""
  974. enums["MAV_CMD"][17].label[4] = """Yaw"""
  975. enums["MAV_CMD"][17].param[5] = """Latitude"""
  976. enums["MAV_CMD"][17].label[5] = """Latitude"""
  977. enums["MAV_CMD"][17].param[6] = """Longitude"""
  978. enums["MAV_CMD"][17].label[6] = """Longitude"""
  979. enums["MAV_CMD"][17].param[7] = """Altitude"""
  980. enums["MAV_CMD"][17].label[7] = """Altitude"""
  981. MAV_CMD_NAV_LOITER_TURNS = 18
  982. enums["MAV_CMD"][18] = EnumEntry("MAV_CMD_NAV_LOITER_TURNS", """Loiter around this waypoint for X turns""")
  983. enums["MAV_CMD"][18].has_location = True
  984. enums["MAV_CMD"][18].param[1] = """Number of turns."""
  985. enums["MAV_CMD"][18].label[1] = """Turns"""
  986. enums["MAV_CMD"][18].param[2] = """Leave loiter circle only once heading towards the next waypoint (0 = False)"""
  987. enums["MAV_CMD"][18].label[2] = """Heading Required"""
  988. enums["MAV_CMD"][18].param[3] = """Loiter radius around waypoint for forward-only moving vehicles (not multicopters). If positive loiter clockwise, else counter-clockwise"""
  989. enums["MAV_CMD"][18].label[3] = """Radius"""
  990. 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."""
  991. enums["MAV_CMD"][18].label[4] = """Xtrack Location"""
  992. enums["MAV_CMD"][18].param[5] = """Latitude"""
  993. enums["MAV_CMD"][18].label[5] = """Latitude"""
  994. enums["MAV_CMD"][18].param[6] = """Longitude"""
  995. enums["MAV_CMD"][18].label[6] = """Longitude"""
  996. enums["MAV_CMD"][18].param[7] = """Altitude"""
  997. enums["MAV_CMD"][18].label[7] = """Altitude"""
  998. MAV_CMD_NAV_LOITER_TIME = 19
  999. 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.""")
  1000. enums["MAV_CMD"][19].has_location = True
  1001. enums["MAV_CMD"][19].param[1] = """Loiter time (only starts once Lat, Lon and Alt is reached)."""
  1002. enums["MAV_CMD"][19].label[1] = """Time"""
  1003. enums["MAV_CMD"][19].param[2] = """Leave loiter circle only once heading towards the next waypoint (0 = False)"""
  1004. enums["MAV_CMD"][19].label[2] = """Heading Required"""
  1005. enums["MAV_CMD"][19].param[3] = """Loiter radius around waypoint for forward-only moving vehicles (not multicopters). If positive loiter clockwise, else counter-clockwise."""
  1006. enums["MAV_CMD"][19].label[3] = """Radius"""
  1007. 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."""
  1008. enums["MAV_CMD"][19].label[4] = """Xtrack Location"""
  1009. enums["MAV_CMD"][19].param[5] = """Latitude"""
  1010. enums["MAV_CMD"][19].label[5] = """Latitude"""
  1011. enums["MAV_CMD"][19].param[6] = """Longitude"""
  1012. enums["MAV_CMD"][19].label[6] = """Longitude"""
  1013. enums["MAV_CMD"][19].param[7] = """Altitude"""
  1014. enums["MAV_CMD"][19].label[7] = """Altitude"""
  1015. MAV_CMD_NAV_RETURN_TO_LAUNCH = 20
  1016. enums["MAV_CMD"][20] = EnumEntry("MAV_CMD_NAV_RETURN_TO_LAUNCH", """Return to launch location""")
  1017. enums["MAV_CMD"][20].param[1] = """Empty"""
  1018. enums["MAV_CMD"][20].param[2] = """Empty"""
  1019. enums["MAV_CMD"][20].param[3] = """Empty"""
  1020. enums["MAV_CMD"][20].param[4] = """Empty"""
  1021. enums["MAV_CMD"][20].param[5] = """Empty"""
  1022. enums["MAV_CMD"][20].param[6] = """Empty"""
  1023. enums["MAV_CMD"][20].param[7] = """Empty"""
  1024. MAV_CMD_NAV_LAND = 21
  1025. enums["MAV_CMD"][21] = EnumEntry("MAV_CMD_NAV_LAND", """Land at location.""")
  1026. enums["MAV_CMD"][21].has_location = True
  1027. enums["MAV_CMD"][21].param[1] = """Minimum target altitude if landing is aborted (0 = undefined/use system default)."""
  1028. enums["MAV_CMD"][21].label[1] = """Abort Alt"""
  1029. enums["MAV_CMD"][21].param[2] = """Precision land mode."""
  1030. enums["MAV_CMD"][21].label[2] = """Land Mode"""
  1031. enums["MAV_CMD"][21].param[3] = """Empty."""
  1032. 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.)."""
  1033. enums["MAV_CMD"][21].label[4] = """Yaw Angle"""
  1034. enums["MAV_CMD"][21].param[5] = """Latitude."""
  1035. enums["MAV_CMD"][21].label[5] = """Latitude"""
  1036. enums["MAV_CMD"][21].param[6] = """Longitude."""
  1037. enums["MAV_CMD"][21].label[6] = """Longitude"""
  1038. enums["MAV_CMD"][21].param[7] = """Landing altitude (ground level in current frame)."""
  1039. enums["MAV_CMD"][21].label[7] = """Altitude"""
  1040. MAV_CMD_NAV_TAKEOFF = 22
  1041. 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.""")
  1042. enums["MAV_CMD"][22].has_location = True
  1043. enums["MAV_CMD"][22].param[1] = """Minimum pitch (if airspeed sensor present), desired pitch without sensor"""
  1044. enums["MAV_CMD"][22].label[1] = """Pitch"""
  1045. enums["MAV_CMD"][22].param[2] = """Empty"""
  1046. enums["MAV_CMD"][22].param[3] = """Empty"""
  1047. 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.)."""
  1048. enums["MAV_CMD"][22].label[4] = """Yaw"""
  1049. enums["MAV_CMD"][22].param[5] = """Latitude"""
  1050. enums["MAV_CMD"][22].label[5] = """Latitude"""
  1051. enums["MAV_CMD"][22].param[6] = """Longitude"""
  1052. enums["MAV_CMD"][22].label[6] = """Longitude"""
  1053. enums["MAV_CMD"][22].param[7] = """Altitude"""
  1054. enums["MAV_CMD"][22].label[7] = """Altitude"""
  1055. MAV_CMD_NAV_LAND_LOCAL = 23
  1056. enums["MAV_CMD"][23] = EnumEntry("MAV_CMD_NAV_LAND_LOCAL", """Land at local position (local frame only)""")
  1057. enums["MAV_CMD"][23].has_location = True
  1058. enums["MAV_CMD"][23].param[1] = """Landing target number (if available)"""
  1059. enums["MAV_CMD"][23].label[1] = """Target"""
  1060. 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"""
  1061. enums["MAV_CMD"][23].label[2] = """Offset"""
  1062. enums["MAV_CMD"][23].param[3] = """Landing descend rate"""
  1063. enums["MAV_CMD"][23].label[3] = """Descend Rate"""
  1064. enums["MAV_CMD"][23].param[4] = """Desired yaw angle"""
  1065. enums["MAV_CMD"][23].label[4] = """Yaw"""
  1066. enums["MAV_CMD"][23].param[5] = """Y-axis position"""
  1067. enums["MAV_CMD"][23].label[5] = """Y Position"""
  1068. enums["MAV_CMD"][23].param[6] = """X-axis position"""
  1069. enums["MAV_CMD"][23].label[6] = """X Position"""
  1070. enums["MAV_CMD"][23].param[7] = """Z-axis / ground level position"""
  1071. enums["MAV_CMD"][23].label[7] = """Z Position"""
  1072. MAV_CMD_NAV_TAKEOFF_LOCAL = 24
  1073. enums["MAV_CMD"][24] = EnumEntry("MAV_CMD_NAV_TAKEOFF_LOCAL", """Takeoff from local position (local frame only)""")
  1074. enums["MAV_CMD"][24].has_location = True
  1075. enums["MAV_CMD"][24].param[1] = """Minimum pitch (if airspeed sensor present), desired pitch without sensor"""
  1076. enums["MAV_CMD"][24].label[1] = """Pitch"""
  1077. enums["MAV_CMD"][24].param[2] = """Empty"""
  1078. enums["MAV_CMD"][24].param[3] = """Takeoff ascend rate"""
  1079. enums["MAV_CMD"][24].label[3] = """Ascend Rate"""
  1080. enums["MAV_CMD"][24].param[4] = """Yaw angle (if magnetometer or another yaw estimation source present), ignored without one of these"""
  1081. enums["MAV_CMD"][24].label[4] = """Yaw"""
  1082. enums["MAV_CMD"][24].param[5] = """Y-axis position"""
  1083. enums["MAV_CMD"][24].label[5] = """Y Position"""
  1084. enums["MAV_CMD"][24].param[6] = """X-axis position"""
  1085. enums["MAV_CMD"][24].label[6] = """X Position"""
  1086. enums["MAV_CMD"][24].param[7] = """Z-axis position"""
  1087. enums["MAV_CMD"][24].label[7] = """Z Position"""
  1088. MAV_CMD_NAV_FOLLOW = 25
  1089. enums["MAV_CMD"][25] = EnumEntry("MAV_CMD_NAV_FOLLOW", """Vehicle following, i.e. this waypoint represents the position of a moving vehicle""")
  1090. enums["MAV_CMD"][25].has_location = True
  1091. enums["MAV_CMD"][25].param[1] = """Following logic to use (e.g. loitering or sinusoidal following) - depends on specific autopilot implementation"""
  1092. enums["MAV_CMD"][25].label[1] = """Following"""
  1093. enums["MAV_CMD"][25].param[2] = """Ground speed of vehicle to be followed"""
  1094. enums["MAV_CMD"][25].label[2] = """Ground Speed"""
  1095. enums["MAV_CMD"][25].param[3] = """Radius around waypoint. If positive loiter clockwise, else counter-clockwise"""
  1096. enums["MAV_CMD"][25].label[3] = """Radius"""
  1097. enums["MAV_CMD"][25].param[4] = """Desired yaw angle."""
  1098. enums["MAV_CMD"][25].label[4] = """Yaw"""
  1099. enums["MAV_CMD"][25].param[5] = """Latitude"""
  1100. enums["MAV_CMD"][25].label[5] = """Latitude"""
  1101. enums["MAV_CMD"][25].param[6] = """Longitude"""
  1102. enums["MAV_CMD"][25].label[6] = """Longitude"""
  1103. enums["MAV_CMD"][25].param[7] = """Altitude"""
  1104. enums["MAV_CMD"][25].label[7] = """Altitude"""
  1105. MAV_CMD_NAV_CONTINUE_AND_CHANGE_ALT = 30
  1106. 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.""")
  1107. 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."""
  1108. enums["MAV_CMD"][30].label[1] = """Action"""
  1109. enums["MAV_CMD"][30].param[2] = """Empty"""
  1110. enums["MAV_CMD"][30].param[3] = """Empty"""
  1111. enums["MAV_CMD"][30].param[4] = """Empty"""
  1112. enums["MAV_CMD"][30].param[5] = """Empty"""
  1113. enums["MAV_CMD"][30].param[6] = """Empty"""
  1114. enums["MAV_CMD"][30].param[7] = """Desired altitude"""
  1115. enums["MAV_CMD"][30].label[7] = """Altitude"""
  1116. MAV_CMD_NAV_LOITER_TO_ALT = 31
  1117. 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.""")
  1118. enums["MAV_CMD"][31].has_location = True
  1119. enums["MAV_CMD"][31].param[1] = """Leave loiter circle only once heading towards the next waypoint (0 = False)"""
  1120. enums["MAV_CMD"][31].label[1] = """Heading Required"""
  1121. 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."""
  1122. enums["MAV_CMD"][31].label[2] = """Radius"""
  1123. enums["MAV_CMD"][31].param[3] = """Empty"""
  1124. 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."""
  1125. enums["MAV_CMD"][31].label[4] = """Xtrack Location"""
  1126. enums["MAV_CMD"][31].param[5] = """Latitude"""
  1127. enums["MAV_CMD"][31].label[5] = """Latitude"""
  1128. enums["MAV_CMD"][31].param[6] = """Longitude"""
  1129. enums["MAV_CMD"][31].label[6] = """Longitude"""
  1130. enums["MAV_CMD"][31].param[7] = """Altitude"""
  1131. enums["MAV_CMD"][31].label[7] = """Altitude"""
  1132. MAV_CMD_DO_FOLLOW = 32
  1133. enums["MAV_CMD"][32] = EnumEntry("MAV_CMD_DO_FOLLOW", """Begin following a target""")
  1134. 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."""
  1135. enums["MAV_CMD"][32].label[1] = """System ID"""
  1136. enums["MAV_CMD"][32].param[2] = """Reserved"""
  1137. enums["MAV_CMD"][32].param[3] = """Reserved"""
  1138. 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."""
  1139. enums["MAV_CMD"][32].label[4] = """Altitude Mode"""
  1140. enums["MAV_CMD"][32].param[5] = """Altitude above home. (used if mode=2)"""
  1141. enums["MAV_CMD"][32].label[5] = """Altitude"""
  1142. enums["MAV_CMD"][32].param[6] = """Reserved"""
  1143. 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."""
  1144. enums["MAV_CMD"][32].label[7] = """Time to Land"""
  1145. MAV_CMD_DO_FOLLOW_REPOSITION = 33
  1146. enums["MAV_CMD"][33] = EnumEntry("MAV_CMD_DO_FOLLOW_REPOSITION", """Reposition the MAV after a follow target command has been sent""")
  1147. enums["MAV_CMD"][33].param[1] = """Camera q1 (where 0 is on the ray from the camera to the tracking device)"""
  1148. enums["MAV_CMD"][33].label[1] = """Camera Q1"""
  1149. enums["MAV_CMD"][33].param[2] = """Camera q2"""
  1150. enums["MAV_CMD"][33].label[2] = """Camera Q2"""
  1151. enums["MAV_CMD"][33].param[3] = """Camera q3"""
  1152. enums["MAV_CMD"][33].label[3] = """Camera Q3"""
  1153. enums["MAV_CMD"][33].param[4] = """Camera q4"""
  1154. enums["MAV_CMD"][33].label[4] = """Camera Q4"""
  1155. enums["MAV_CMD"][33].param[5] = """altitude offset from target"""
  1156. enums["MAV_CMD"][33].label[5] = """Altitude Offset"""
  1157. enums["MAV_CMD"][33].param[6] = """X offset from target"""
  1158. enums["MAV_CMD"][33].label[6] = """X Offset"""
  1159. enums["MAV_CMD"][33].param[7] = """Y offset from target"""
  1160. enums["MAV_CMD"][33].label[7] = """Y Offset"""
  1161. MAV_CMD_DO_ORBIT = 34
  1162. 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.""")
  1163. enums["MAV_CMD"][34].has_location = True
  1164. 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."""
  1165. enums["MAV_CMD"][34].label[1] = """Radius"""
  1166. enums["MAV_CMD"][34].param[2] = """Tangential Velocity. NaN: Use vehicle default velocity, or current velocity if already orbiting."""
  1167. enums["MAV_CMD"][34].label[2] = """Velocity"""
  1168. enums["MAV_CMD"][34].param[3] = """Yaw behavior of the vehicle."""
  1169. enums["MAV_CMD"][34].label[3] = """Yaw Behavior"""
  1170. 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."""
  1171. enums["MAV_CMD"][34].label[4] = """Orbits"""
  1172. 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."""
  1173. enums["MAV_CMD"][34].label[5] = """Latitude/X"""
  1174. 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."""
  1175. enums["MAV_CMD"][34].label[6] = """Longitude/Y"""
  1176. 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."""
  1177. enums["MAV_CMD"][34].label[7] = """Altitude/Z"""
  1178. MAV_CMD_NAV_ROI = 80
  1179. 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.""")
  1180. enums["MAV_CMD"][80].has_location = True
  1181. enums["MAV_CMD"][80].param[1] = """Region of interest mode."""
  1182. enums["MAV_CMD"][80].label[1] = """ROI Mode"""
  1183. enums["MAV_CMD"][80].param[2] = """Waypoint index/ target ID. (see MAV_ROI enum)"""
  1184. enums["MAV_CMD"][80].label[2] = """WP Index"""
  1185. enums["MAV_CMD"][80].param[3] = """ROI index (allows a vehicle to manage multiple ROI's)"""
  1186. enums["MAV_CMD"][80].label[3] = """ROI Index"""
  1187. enums["MAV_CMD"][80].param[4] = """Empty"""
  1188. enums["MAV_CMD"][80].param[5] = """x the location of the fixed ROI (see MAV_FRAME)"""
  1189. enums["MAV_CMD"][80].label[5] = """X"""
  1190. enums["MAV_CMD"][80].param[6] = """y"""
  1191. enums["MAV_CMD"][80].label[6] = """Y"""
  1192. enums["MAV_CMD"][80].param[7] = """z"""
  1193. enums["MAV_CMD"][80].label[7] = """Z"""
  1194. MAV_CMD_NAV_PATHPLANNING = 81
  1195. enums["MAV_CMD"][81] = EnumEntry("MAV_CMD_NAV_PATHPLANNING", """Control autonomous path planning on the MAV.""")
  1196. enums["MAV_CMD"][81].has_location = True
  1197. 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"""
  1198. enums["MAV_CMD"][81].label[1] = """Local Ctrl"""
  1199. 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"""
  1200. enums["MAV_CMD"][81].label[2] = """Global Ctrl"""
  1201. enums["MAV_CMD"][81].param[3] = """Empty"""
  1202. enums["MAV_CMD"][81].param[4] = """Yaw angle at goal"""
  1203. enums["MAV_CMD"][81].label[4] = """Yaw"""
  1204. enums["MAV_CMD"][81].param[5] = """Latitude/X of goal"""
  1205. enums["MAV_CMD"][81].label[5] = """Latitude/X"""
  1206. enums["MAV_CMD"][81].param[6] = """Longitude/Y of goal"""
  1207. enums["MAV_CMD"][81].label[6] = """Longitude/Y"""
  1208. enums["MAV_CMD"][81].param[7] = """Altitude/Z of goal"""
  1209. enums["MAV_CMD"][81].label[7] = """Altitude/Z"""
  1210. MAV_CMD_NAV_SPLINE_WAYPOINT = 82
  1211. enums["MAV_CMD"][82] = EnumEntry("MAV_CMD_NAV_SPLINE_WAYPOINT", """Navigate to waypoint using a spline path.""")
  1212. enums["MAV_CMD"][82].has_location = True
  1213. enums["MAV_CMD"][82].param[1] = """Hold time. (ignored by fixed wing, time to stay at waypoint for rotary wing)"""
  1214. enums["MAV_CMD"][82].label[1] = """Hold"""
  1215. enums["MAV_CMD"][82].param[2] = """Empty"""
  1216. enums["MAV_CMD"][82].param[3] = """Empty"""
  1217. enums["MAV_CMD"][82].param[4] = """Empty"""
  1218. enums["MAV_CMD"][82].param[5] = """Latitude/X of goal"""
  1219. enums["MAV_CMD"][82].label[5] = """Latitude/X"""
  1220. enums["MAV_CMD"][82].param[6] = """Longitude/Y of goal"""
  1221. enums["MAV_CMD"][82].label[6] = """Longitude/Y"""
  1222. enums["MAV_CMD"][82].param[7] = """Altitude/Z of goal"""
  1223. enums["MAV_CMD"][82].label[7] = """Altitude/Z"""
  1224. MAV_CMD_NAV_VTOL_TAKEOFF = 84
  1225. 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.).""")
  1226. enums["MAV_CMD"][84].has_location = True
  1227. enums["MAV_CMD"][84].param[1] = """Empty"""
  1228. enums["MAV_CMD"][84].param[2] = """Front transition heading."""
  1229. enums["MAV_CMD"][84].label[2] = """Transition Heading"""
  1230. enums["MAV_CMD"][84].param[3] = """Empty"""
  1231. 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.)."""
  1232. enums["MAV_CMD"][84].label[4] = """Yaw Angle"""
  1233. enums["MAV_CMD"][84].param[5] = """Latitude"""
  1234. enums["MAV_CMD"][84].label[5] = """Latitude"""
  1235. enums["MAV_CMD"][84].param[6] = """Longitude"""
  1236. enums["MAV_CMD"][84].label[6] = """Longitude"""
  1237. enums["MAV_CMD"][84].param[7] = """Altitude"""
  1238. enums["MAV_CMD"][84].label[7] = """Altitude"""
  1239. MAV_CMD_NAV_VTOL_LAND = 85
  1240. enums["MAV_CMD"][85] = EnumEntry("MAV_CMD_NAV_VTOL_LAND", """Land using VTOL mode""")
  1241. enums["MAV_CMD"][85].has_location = True
  1242. enums["MAV_CMD"][85].param[1] = """Landing behaviour."""
  1243. enums["MAV_CMD"][85].label[1] = """Land Options"""
  1244. enums["MAV_CMD"][85].param[2] = """Empty"""
  1245. enums["MAV_CMD"][85].param[3] = """Approach altitude (with the same reference as the Altitude field). NaN if unspecified."""
  1246. enums["MAV_CMD"][85].label[3] = """Approach Altitude"""
  1247. 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.)."""
  1248. enums["MAV_CMD"][85].label[4] = """Yaw"""
  1249. enums["MAV_CMD"][85].param[5] = """Latitude"""
  1250. enums["MAV_CMD"][85].label[5] = """Latitude"""
  1251. enums["MAV_CMD"][85].param[6] = """Longitude"""
  1252. enums["MAV_CMD"][85].label[6] = """Longitude"""
  1253. enums["MAV_CMD"][85].param[7] = """Altitude (ground level) relative to the current coordinate frame. NaN to use system default landing altitude (ignore value)."""
  1254. enums["MAV_CMD"][85].label[7] = """Ground Altitude"""
  1255. MAV_CMD_NAV_GUIDED_ENABLE = 92
  1256. enums["MAV_CMD"][92] = EnumEntry("MAV_CMD_NAV_GUIDED_ENABLE", """hand control over to an external controller""")
  1257. enums["MAV_CMD"][92].param[1] = """On / Off (> 0.5f on)"""
  1258. enums["MAV_CMD"][92].label[1] = """Enable"""
  1259. enums["MAV_CMD"][92].param[2] = """Empty"""
  1260. enums["MAV_CMD"][92].param[3] = """Empty"""
  1261. enums["MAV_CMD"][92].param[4] = """Empty"""
  1262. enums["MAV_CMD"][92].param[5] = """Empty"""
  1263. enums["MAV_CMD"][92].param[6] = """Empty"""
  1264. enums["MAV_CMD"][92].param[7] = """Empty"""
  1265. MAV_CMD_NAV_DELAY = 93
  1266. enums["MAV_CMD"][93] = EnumEntry("MAV_CMD_NAV_DELAY", """Delay the next navigation command a number of seconds or until a specified time""")
  1267. enums["MAV_CMD"][93].param[1] = """Delay (-1 to enable time-of-day fields)"""
  1268. enums["MAV_CMD"][93].label[1] = """Delay"""
  1269. enums["MAV_CMD"][93].param[2] = """hour (24h format, UTC, -1 to ignore)"""
  1270. enums["MAV_CMD"][93].label[2] = """Hour"""
  1271. enums["MAV_CMD"][93].param[3] = """minute (24h format, UTC, -1 to ignore)"""
  1272. enums["MAV_CMD"][93].label[3] = """Minute"""
  1273. enums["MAV_CMD"][93].param[4] = """second (24h format, UTC, -1 to ignore)"""
  1274. enums["MAV_CMD"][93].label[4] = """Second"""
  1275. enums["MAV_CMD"][93].param[5] = """Empty"""
  1276. enums["MAV_CMD"][93].param[6] = """Empty"""
  1277. enums["MAV_CMD"][93].param[7] = """Empty"""
  1278. MAV_CMD_NAV_PAYLOAD_PLACE = 94
  1279. 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.""")
  1280. enums["MAV_CMD"][94].has_location = True
  1281. enums["MAV_CMD"][94].param[1] = """Maximum distance to descend."""
  1282. enums["MAV_CMD"][94].label[1] = """Max Descent"""
  1283. enums["MAV_CMD"][94].param[2] = """Empty"""
  1284. enums["MAV_CMD"][94].param[3] = """Empty"""
  1285. enums["MAV_CMD"][94].param[4] = """Empty"""
  1286. enums["MAV_CMD"][94].param[5] = """Latitude"""
  1287. enums["MAV_CMD"][94].label[5] = """Latitude"""
  1288. enums["MAV_CMD"][94].param[6] = """Longitude"""
  1289. enums["MAV_CMD"][94].label[6] = """Longitude"""
  1290. enums["MAV_CMD"][94].param[7] = """Altitude"""
  1291. enums["MAV_CMD"][94].label[7] = """Altitude"""
  1292. MAV_CMD_NAV_LAST = 95
  1293. 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""")
  1294. enums["MAV_CMD"][95].param[1] = """Empty"""
  1295. enums["MAV_CMD"][95].param[2] = """Empty"""
  1296. enums["MAV_CMD"][95].param[3] = """Empty"""
  1297. enums["MAV_CMD"][95].param[4] = """Empty"""
  1298. enums["MAV_CMD"][95].param[5] = """Empty"""
  1299. enums["MAV_CMD"][95].param[6] = """Empty"""
  1300. enums["MAV_CMD"][95].param[7] = """Empty"""
  1301. MAV_CMD_CONDITION_DELAY = 112
  1302. enums["MAV_CMD"][112] = EnumEntry("MAV_CMD_CONDITION_DELAY", """Delay mission state machine.""")
  1303. enums["MAV_CMD"][112].param[1] = """Delay"""
  1304. enums["MAV_CMD"][112].label[1] = """Delay"""
  1305. enums["MAV_CMD"][112].param[2] = """Empty"""
  1306. enums["MAV_CMD"][112].param[3] = """Empty"""
  1307. enums["MAV_CMD"][112].param[4] = """Empty"""
  1308. enums["MAV_CMD"][112].param[5] = """Empty"""
  1309. enums["MAV_CMD"][112].param[6] = """Empty"""
  1310. enums["MAV_CMD"][112].param[7] = """Empty"""
  1311. MAV_CMD_CONDITION_CHANGE_ALT = 113
  1312. 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.""")
  1313. enums["MAV_CMD"][113].param[1] = """Descent / Ascend rate."""
  1314. enums["MAV_CMD"][113].label[1] = """Rate"""
  1315. enums["MAV_CMD"][113].param[2] = """Empty"""
  1316. enums["MAV_CMD"][113].param[3] = """Empty"""
  1317. enums["MAV_CMD"][113].param[4] = """Empty"""
  1318. enums["MAV_CMD"][113].param[5] = """Empty"""
  1319. enums["MAV_CMD"][113].param[6] = """Empty"""
  1320. enums["MAV_CMD"][113].param[7] = """Target Altitude"""
  1321. enums["MAV_CMD"][113].label[7] = """Altitude"""
  1322. MAV_CMD_CONDITION_DISTANCE = 114
  1323. enums["MAV_CMD"][114] = EnumEntry("MAV_CMD_CONDITION_DISTANCE", """Delay mission state machine until within desired distance of next NAV point.""")
  1324. enums["MAV_CMD"][114].param[1] = """Distance."""
  1325. enums["MAV_CMD"][114].label[1] = """Distance"""
  1326. enums["MAV_CMD"][114].param[2] = """Empty"""
  1327. enums["MAV_CMD"][114].param[3] = """Empty"""
  1328. enums["MAV_CMD"][114].param[4] = """Empty"""
  1329. enums["MAV_CMD"][114].param[5] = """Empty"""
  1330. enums["MAV_CMD"][114].param[6] = """Empty"""
  1331. enums["MAV_CMD"][114].param[7] = """Empty"""
  1332. MAV_CMD_CONDITION_YAW = 115
  1333. enums["MAV_CMD"][115] = EnumEntry("MAV_CMD_CONDITION_YAW", """Reach a certain target angle.""")
  1334. 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."""
  1335. enums["MAV_CMD"][115].label[1] = """Angle"""
  1336. enums["MAV_CMD"][115].param[2] = """angular speed"""
  1337. enums["MAV_CMD"][115].label[2] = """Angular Speed"""
  1338. enums["MAV_CMD"][115].param[3] = """direction: -1: counter clockwise, 0: shortest direction, 1: clockwise"""
  1339. enums["MAV_CMD"][115].label[3] = """Direction"""
  1340. enums["MAV_CMD"][115].param[4] = """0: absolute angle, 1: relative offset"""
  1341. enums["MAV_CMD"][115].label[4] = """Relative"""
  1342. enums["MAV_CMD"][115].param[5] = """Empty"""
  1343. enums["MAV_CMD"][115].param[6] = """Empty"""
  1344. enums["MAV_CMD"][115].param[7] = """Empty"""
  1345. MAV_CMD_CONDITION_LAST = 159
  1346. 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""")
  1347. enums["MAV_CMD"][159].param[1] = """Empty"""
  1348. enums["MAV_CMD"][159].param[2] = """Empty"""
  1349. enums["MAV_CMD"][159].param[3] = """Empty"""
  1350. enums["MAV_CMD"][159].param[4] = """Empty"""
  1351. enums["MAV_CMD"][159].param[5] = """Empty"""
  1352. enums["MAV_CMD"][159].param[6] = """Empty"""
  1353. enums["MAV_CMD"][159].param[7] = """Empty"""
  1354. MAV_CMD_DO_SET_MODE = 176
  1355. enums["MAV_CMD"][176] = EnumEntry("MAV_CMD_DO_SET_MODE", """Set system mode.""")
  1356. enums["MAV_CMD"][176].param[1] = """Mode"""
  1357. enums["MAV_CMD"][176].label[1] = """Mode"""
  1358. enums["MAV_CMD"][176].param[2] = """Custom mode - this is system specific, please refer to the individual autopilot specifications for details."""
  1359. enums["MAV_CMD"][176].label[2] = """Custom Mode"""
  1360. enums["MAV_CMD"][176].param[3] = """Custom sub mode - this is system specific, please refer to the individual autopilot specifications for details."""
  1361. enums["MAV_CMD"][176].label[3] = """Custom Submode"""
  1362. enums["MAV_CMD"][176].param[4] = """Empty"""
  1363. enums["MAV_CMD"][176].param[5] = """Empty"""
  1364. enums["MAV_CMD"][176].param[6] = """Empty"""
  1365. enums["MAV_CMD"][176].param[7] = """Empty"""
  1366. MAV_CMD_DO_JUMP = 177
  1367. 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""")
  1368. enums["MAV_CMD"][177].param[1] = """Sequence number"""
  1369. enums["MAV_CMD"][177].label[1] = """Number"""
  1370. enums["MAV_CMD"][177].param[2] = """Repeat count"""
  1371. enums["MAV_CMD"][177].label[2] = """Repeat"""
  1372. enums["MAV_CMD"][177].param[3] = """Empty"""
  1373. enums["MAV_CMD"][177].param[4] = """Empty"""
  1374. enums["MAV_CMD"][177].param[5] = """Empty"""
  1375. enums["MAV_CMD"][177].param[6] = """Empty"""
  1376. enums["MAV_CMD"][177].param[7] = """Empty"""
  1377. MAV_CMD_DO_CHANGE_SPEED = 178
  1378. 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""")
  1379. enums["MAV_CMD"][178].param[1] = """Speed type of value set in param2 (such as airspeed, ground speed, and so on)"""
  1380. enums["MAV_CMD"][178].label[1] = """Speed Type"""
  1381. enums["MAV_CMD"][178].param[2] = """Speed (-1 indicates no change, -2 indicates return to default vehicle speed)"""
  1382. enums["MAV_CMD"][178].label[2] = """Speed"""
  1383. enums["MAV_CMD"][178].param[3] = """Throttle (-1 indicates no change, -2 indicates return to default vehicle throttle value)"""
  1384. enums["MAV_CMD"][178].label[3] = """Throttle"""
  1385. enums["MAV_CMD"][178].param[4] = """Reserved (default:0)"""
  1386. enums["MAV_CMD"][178].param[5] = """Reserved (default:0)"""
  1387. enums["MAV_CMD"][178].param[6] = """Reserved (default:0)"""
  1388. enums["MAV_CMD"][178].param[7] = """Reserved (default:0)"""
  1389. MAV_CMD_DO_SET_HOME = 179
  1390. enums["MAV_CMD"][179] = EnumEntry(
  1391. "MAV_CMD_DO_SET_HOME",
  1392. """
  1393. Sets the home position to either to the current position or a specified position.
  1394. The home position is the default position that the system will return to and land on.
  1395. The position is set automatically by the system during the takeoff (and may also be set using this command).
  1396. Note: the current home position may be emitted in a HOME_POSITION message on request (using MAV_CMD_REQUEST_MESSAGE with param1=242).
  1397. """,
  1398. )
  1399. enums["MAV_CMD"][179].has_location = True
  1400. enums["MAV_CMD"][179].param[1] = """Use current (1=use current location, 0=use specified location)"""
  1401. enums["MAV_CMD"][179].label[1] = """Use Current"""
  1402. 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."""
  1403. enums["MAV_CMD"][179].label[2] = """Roll"""
  1404. 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."""
  1405. enums["MAV_CMD"][179].label[3] = """Pitch"""
  1406. enums["MAV_CMD"][179].param[4] = """Yaw angle. NaN to use default heading. Range: -180..180 degrees."""
  1407. enums["MAV_CMD"][179].label[4] = """Yaw"""
  1408. enums["MAV_CMD"][179].param[5] = """Latitude"""
  1409. enums["MAV_CMD"][179].label[5] = """Latitude"""
  1410. enums["MAV_CMD"][179].param[6] = """Longitude"""
  1411. enums["MAV_CMD"][179].label[6] = """Longitude"""
  1412. enums["MAV_CMD"][179].param[7] = """Altitude"""
  1413. enums["MAV_CMD"][179].label[7] = """Altitude"""
  1414. MAV_CMD_DO_SET_PARAMETER = 180
  1415. 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.""")
  1416. enums["MAV_CMD"][180].param[1] = """Parameter number"""
  1417. enums["MAV_CMD"][180].label[1] = """Number"""
  1418. enums["MAV_CMD"][180].param[2] = """Parameter value"""
  1419. enums["MAV_CMD"][180].label[2] = """Value"""
  1420. enums["MAV_CMD"][180].param[3] = """Empty"""
  1421. enums["MAV_CMD"][180].param[4] = """Empty"""
  1422. enums["MAV_CMD"][180].param[5] = """Empty"""
  1423. enums["MAV_CMD"][180].param[6] = """Empty"""
  1424. enums["MAV_CMD"][180].param[7] = """Empty"""
  1425. MAV_CMD_DO_SET_RELAY = 181
  1426. enums["MAV_CMD"][181] = EnumEntry("MAV_CMD_DO_SET_RELAY", """Set a relay to a condition.""")
  1427. enums["MAV_CMD"][181].param[1] = """Relay instance number."""
  1428. enums["MAV_CMD"][181].label[1] = """Instance"""
  1429. enums["MAV_CMD"][181].param[2] = """Setting. (1=on, 0=off, others possible depending on system hardware)"""
  1430. enums["MAV_CMD"][181].label[2] = """Setting"""
  1431. enums["MAV_CMD"][181].param[3] = """Empty"""
  1432. enums["MAV_CMD"][181].param[4] = """Empty"""
  1433. enums["MAV_CMD"][181].param[5] = """Empty"""
  1434. enums["MAV_CMD"][181].param[6] = """Empty"""
  1435. enums["MAV_CMD"][181].param[7] = """Empty"""
  1436. MAV_CMD_DO_REPEAT_RELAY = 182
  1437. 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.""")
  1438. enums["MAV_CMD"][182].param[1] = """Relay instance number."""
  1439. enums["MAV_CMD"][182].label[1] = """Instance"""
  1440. enums["MAV_CMD"][182].param[2] = """Cycle count."""
  1441. enums["MAV_CMD"][182].label[2] = """Count"""
  1442. enums["MAV_CMD"][182].param[3] = """Cycle time."""
  1443. enums["MAV_CMD"][182].label[3] = """Time"""
  1444. enums["MAV_CMD"][182].param[4] = """Empty"""
  1445. enums["MAV_CMD"][182].param[5] = """Empty"""
  1446. enums["MAV_CMD"][182].param[6] = """Empty"""
  1447. enums["MAV_CMD"][182].param[7] = """Empty"""
  1448. MAV_CMD_DO_SET_SERVO = 183
  1449. enums["MAV_CMD"][183] = EnumEntry("MAV_CMD_DO_SET_SERVO", """Set a servo to a desired PWM value.""")
  1450. enums["MAV_CMD"][183].param[1] = """Servo instance number."""
  1451. enums["MAV_CMD"][183].label[1] = """Instance"""
  1452. enums["MAV_CMD"][183].param[2] = """Pulse Width Modulation."""
  1453. enums["MAV_CMD"][183].label[2] = """PWM"""
  1454. enums["MAV_CMD"][183].param[3] = """Empty"""
  1455. enums["MAV_CMD"][183].param[4] = """Empty"""
  1456. enums["MAV_CMD"][183].param[5] = """Empty"""
  1457. enums["MAV_CMD"][183].param[6] = """Empty"""
  1458. enums["MAV_CMD"][183].param[7] = """Empty"""
  1459. MAV_CMD_DO_REPEAT_SERVO = 184
  1460. 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.""")
  1461. enums["MAV_CMD"][184].param[1] = """Servo instance number."""
  1462. enums["MAV_CMD"][184].label[1] = """Instance"""
  1463. enums["MAV_CMD"][184].param[2] = """Pulse Width Modulation."""
  1464. enums["MAV_CMD"][184].label[2] = """PWM"""
  1465. enums["MAV_CMD"][184].param[3] = """Cycle count."""
  1466. enums["MAV_CMD"][184].label[3] = """Count"""
  1467. enums["MAV_CMD"][184].param[4] = """Cycle time."""
  1468. enums["MAV_CMD"][184].label[4] = """Time"""
  1469. enums["MAV_CMD"][184].param[5] = """Empty"""
  1470. enums["MAV_CMD"][184].param[6] = """Empty"""
  1471. enums["MAV_CMD"][184].param[7] = """Empty"""
  1472. MAV_CMD_DO_FLIGHTTERMINATION = 185
  1473. enums["MAV_CMD"][185] = EnumEntry(
  1474. "MAV_CMD_DO_FLIGHTTERMINATION",
  1475. """Terminate flight immediately.
  1476. Flight termination immediately and irreversibly terminates the current flight, returning the vehicle to ground.
  1477. The vehicle will ignore RC or other input until it has been power-cycled.
  1478. 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).
  1479. On multicopters without a parachute it may trigger a crash landing.
  1480. Support for this command can be tested using the protocol bit: MAV_PROTOCOL_CAPABILITY_FLIGHT_TERMINATION.
  1481. 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.
  1482. """,
  1483. )
  1484. enums["MAV_CMD"][185].param[1] = """Flight termination activated if > 0.5. Otherwise not activated and ACK with MAV_RESULT_FAILED."""
  1485. enums["MAV_CMD"][185].label[1] = """Terminate"""
  1486. enums["MAV_CMD"][185].param[2] = """Empty"""
  1487. enums["MAV_CMD"][185].param[3] = """Empty"""
  1488. enums["MAV_CMD"][185].param[4] = """Empty"""
  1489. enums["MAV_CMD"][185].param[5] = """Empty"""
  1490. enums["MAV_CMD"][185].param[6] = """Empty"""
  1491. enums["MAV_CMD"][185].param[7] = """Empty"""
  1492. MAV_CMD_DO_CHANGE_ALTITUDE = 186
  1493. enums["MAV_CMD"][186] = EnumEntry("MAV_CMD_DO_CHANGE_ALTITUDE", """Change altitude set point.""")
  1494. enums["MAV_CMD"][186].param[1] = """Altitude."""
  1495. enums["MAV_CMD"][186].label[1] = """Altitude"""
  1496. enums["MAV_CMD"][186].param[2] = """Frame of new altitude."""
  1497. enums["MAV_CMD"][186].label[2] = """Frame"""
  1498. enums["MAV_CMD"][186].param[3] = """Empty"""
  1499. enums["MAV_CMD"][186].param[4] = """Empty"""
  1500. enums["MAV_CMD"][186].param[5] = """Empty"""
  1501. enums["MAV_CMD"][186].param[6] = """Empty"""
  1502. enums["MAV_CMD"][186].param[7] = """Empty"""
  1503. MAV_CMD_DO_SET_ACTUATOR = 187
  1504. 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).""")
  1505. enums["MAV_CMD"][187].param[1] = """Actuator 1 value, scaled from [-1 to 1]. NaN to ignore."""
  1506. enums["MAV_CMD"][187].label[1] = """Actuator 1"""
  1507. enums["MAV_CMD"][187].param[2] = """Actuator 2 value, scaled from [-1 to 1]. NaN to ignore."""
  1508. enums["MAV_CMD"][187].label[2] = """Actuator 2"""
  1509. enums["MAV_CMD"][187].param[3] = """Actuator 3 value, scaled from [-1 to 1]. NaN to ignore."""
  1510. enums["MAV_CMD"][187].label[3] = """Actuator 3"""
  1511. enums["MAV_CMD"][187].param[4] = """Actuator 4 value, scaled from [-1 to 1]. NaN to ignore."""
  1512. enums["MAV_CMD"][187].label[4] = """Actuator 4"""
  1513. enums["MAV_CMD"][187].param[5] = """Actuator 5 value, scaled from [-1 to 1]. NaN to ignore."""
  1514. enums["MAV_CMD"][187].label[5] = """Actuator 5"""
  1515. enums["MAV_CMD"][187].param[6] = """Actuator 6 value, scaled from [-1 to 1]. NaN to ignore."""
  1516. enums["MAV_CMD"][187].label[6] = """Actuator 6"""
  1517. enums["MAV_CMD"][187].param[7] = """Index of actuator set (i.e if set to 1, Actuator 1 becomes Actuator 7)"""
  1518. enums["MAV_CMD"][187].label[7] = """Index"""
  1519. MAV_CMD_DO_LAND_START = 189
  1520. enums["MAV_CMD"][189] = EnumEntry(
  1521. "MAV_CMD_DO_LAND_START",
  1522. """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.
  1523. 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.
  1524. 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.
  1525. """,
  1526. )
  1527. enums["MAV_CMD"][189].has_location = True
  1528. enums["MAV_CMD"][189].param[1] = """Empty"""
  1529. enums["MAV_CMD"][189].param[2] = """Empty"""
  1530. enums["MAV_CMD"][189].param[3] = """Empty"""
  1531. enums["MAV_CMD"][189].param[4] = """Empty"""
  1532. enums["MAV_CMD"][189].param[5] = """Latitude"""
  1533. enums["MAV_CMD"][189].label[5] = """Latitude"""
  1534. enums["MAV_CMD"][189].param[6] = """Longitude"""
  1535. enums["MAV_CMD"][189].label[6] = """Longitude"""
  1536. enums["MAV_CMD"][189].param[7] = """Altitude"""
  1537. enums["MAV_CMD"][189].label[7] = """Altitude"""
  1538. MAV_CMD_DO_RALLY_LAND = 190
  1539. enums["MAV_CMD"][190] = EnumEntry("MAV_CMD_DO_RALLY_LAND", """Mission command to perform a landing from a rally point.""")
  1540. enums["MAV_CMD"][190].param[1] = """Break altitude"""
  1541. enums["MAV_CMD"][190].label[1] = """Altitude"""
  1542. enums["MAV_CMD"][190].param[2] = """Landing speed"""
  1543. enums["MAV_CMD"][190].label[2] = """Speed"""
  1544. enums["MAV_CMD"][190].param[3] = """Empty"""
  1545. enums["MAV_CMD"][190].param[4] = """Empty"""
  1546. enums["MAV_CMD"][190].param[5] = """Empty"""
  1547. enums["MAV_CMD"][190].param[6] = """Empty"""
  1548. enums["MAV_CMD"][190].param[7] = """Empty"""
  1549. MAV_CMD_DO_GO_AROUND = 191
  1550. enums["MAV_CMD"][191] = EnumEntry("MAV_CMD_DO_GO_AROUND", """Mission command to safely abort an autonomous landing.""")
  1551. enums["MAV_CMD"][191].param[1] = """Altitude"""
  1552. enums["MAV_CMD"][191].label[1] = """Altitude"""
  1553. enums["MAV_CMD"][191].param[2] = """Empty"""
  1554. enums["MAV_CMD"][191].param[3] = """Empty"""
  1555. enums["MAV_CMD"][191].param[4] = """Empty"""
  1556. enums["MAV_CMD"][191].param[5] = """Empty"""
  1557. enums["MAV_CMD"][191].param[6] = """Empty"""
  1558. enums["MAV_CMD"][191].param[7] = """Empty"""
  1559. MAV_CMD_DO_REPOSITION = 192
  1560. 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).""")
  1561. enums["MAV_CMD"][192].has_location = True
  1562. enums["MAV_CMD"][192].param[1] = """Ground speed, less than 0 (-1) for default"""
  1563. enums["MAV_CMD"][192].label[1] = """Speed"""
  1564. enums["MAV_CMD"][192].param[2] = """Bitmask of option flags."""
  1565. enums["MAV_CMD"][192].label[2] = """Bitmask"""
  1566. 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. """
  1567. enums["MAV_CMD"][192].label[3] = """Radius"""
  1568. 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)"""
  1569. enums["MAV_CMD"][192].label[4] = """Yaw"""
  1570. enums["MAV_CMD"][192].param[5] = """Latitude"""
  1571. enums["MAV_CMD"][192].label[5] = """Latitude"""
  1572. enums["MAV_CMD"][192].param[6] = """Longitude"""
  1573. enums["MAV_CMD"][192].label[6] = """Longitude"""
  1574. enums["MAV_CMD"][192].param[7] = """Altitude"""
  1575. enums["MAV_CMD"][192].label[7] = """Altitude"""
  1576. MAV_CMD_DO_PAUSE_CONTINUE = 193
  1577. enums["MAV_CMD"][193] = EnumEntry("MAV_CMD_DO_PAUSE_CONTINUE", """If in a GPS controlled position mode, hold the current position or continue.""")
  1578. 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."""
  1579. enums["MAV_CMD"][193].label[1] = """Continue"""
  1580. enums["MAV_CMD"][193].param[2] = """Reserved"""
  1581. enums["MAV_CMD"][193].param[3] = """Reserved"""
  1582. enums["MAV_CMD"][193].param[4] = """Reserved"""
  1583. enums["MAV_CMD"][193].param[5] = """Reserved"""
  1584. enums["MAV_CMD"][193].param[6] = """Reserved"""
  1585. enums["MAV_CMD"][193].param[7] = """Reserved"""
  1586. MAV_CMD_DO_SET_REVERSE = 194
  1587. enums["MAV_CMD"][194] = EnumEntry("MAV_CMD_DO_SET_REVERSE", """Set moving direction to forward or reverse.""")
  1588. enums["MAV_CMD"][194].param[1] = """Direction (0=Forward, 1=Reverse)"""
  1589. enums["MAV_CMD"][194].label[1] = """Reverse"""
  1590. enums["MAV_CMD"][194].param[2] = """Empty"""
  1591. enums["MAV_CMD"][194].param[3] = """Empty"""
  1592. enums["MAV_CMD"][194].param[4] = """Empty"""
  1593. enums["MAV_CMD"][194].param[5] = """Empty"""
  1594. enums["MAV_CMD"][194].param[6] = """Empty"""
  1595. enums["MAV_CMD"][194].param[7] = """Empty"""
  1596. MAV_CMD_DO_SET_ROI_LOCATION = 195
  1597. 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.""")
  1598. enums["MAV_CMD"][195].has_location = True
  1599. 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)."""
  1600. enums["MAV_CMD"][195].label[1] = """Gimbal device ID"""
  1601. enums["MAV_CMD"][195].param[2] = """Empty"""
  1602. enums["MAV_CMD"][195].param[3] = """Empty"""
  1603. enums["MAV_CMD"][195].param[4] = """Empty"""
  1604. enums["MAV_CMD"][195].param[5] = """Latitude of ROI location"""
  1605. enums["MAV_CMD"][195].label[5] = """Latitude"""
  1606. enums["MAV_CMD"][195].param[6] = """Longitude of ROI location"""
  1607. enums["MAV_CMD"][195].label[6] = """Longitude"""
  1608. enums["MAV_CMD"][195].param[7] = """Altitude of ROI location"""
  1609. enums["MAV_CMD"][195].label[7] = """Altitude"""
  1610. MAV_CMD_DO_SET_ROI_WPNEXT_OFFSET = 196
  1611. 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.""")
  1612. 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)."""
  1613. enums["MAV_CMD"][196].label[1] = """Gimbal device ID"""
  1614. enums["MAV_CMD"][196].param[2] = """Empty"""
  1615. enums["MAV_CMD"][196].param[3] = """Empty"""
  1616. enums["MAV_CMD"][196].param[4] = """Empty"""
  1617. enums["MAV_CMD"][196].param[5] = """Pitch offset from next waypoint, positive pitching up"""
  1618. enums["MAV_CMD"][196].label[5] = """Pitch Offset"""
  1619. enums["MAV_CMD"][196].param[6] = """Roll offset from next waypoint, positive rolling to the right"""
  1620. enums["MAV_CMD"][196].label[6] = """Roll Offset"""
  1621. enums["MAV_CMD"][196].param[7] = """Yaw offset from next waypoint, positive yawing to the right"""
  1622. enums["MAV_CMD"][196].label[7] = """Yaw Offset"""
  1623. MAV_CMD_DO_SET_ROI_NONE = 197
  1624. 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.""")
  1625. 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)."""
  1626. enums["MAV_CMD"][197].label[1] = """Gimbal device ID"""
  1627. enums["MAV_CMD"][197].param[2] = """Empty"""
  1628. enums["MAV_CMD"][197].param[3] = """Empty"""
  1629. enums["MAV_CMD"][197].param[4] = """Empty"""
  1630. enums["MAV_CMD"][197].param[5] = """Empty"""
  1631. enums["MAV_CMD"][197].param[6] = """Empty"""
  1632. enums["MAV_CMD"][197].param[7] = """Empty"""
  1633. MAV_CMD_DO_SET_ROI_SYSID = 198
  1634. 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.""")
  1635. enums["MAV_CMD"][198].param[1] = """System ID"""
  1636. enums["MAV_CMD"][198].label[1] = """System ID"""
  1637. 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)."""
  1638. enums["MAV_CMD"][198].label[2] = """Gimbal device ID"""
  1639. enums["MAV_CMD"][198].param[3] = """Reserved (default:0)"""
  1640. enums["MAV_CMD"][198].param[4] = """Reserved (default:0)"""
  1641. enums["MAV_CMD"][198].param[5] = """Reserved (default:0)"""
  1642. enums["MAV_CMD"][198].param[6] = """Reserved (default:0)"""
  1643. enums["MAV_CMD"][198].param[7] = """Reserved (default:0)"""
  1644. MAV_CMD_DO_CONTROL_VIDEO = 200
  1645. enums["MAV_CMD"][200] = EnumEntry("MAV_CMD_DO_CONTROL_VIDEO", """Control onboard camera system.""")
  1646. enums["MAV_CMD"][200].param[1] = """Camera ID (-1 for all)"""
  1647. enums["MAV_CMD"][200].label[1] = """ID"""
  1648. enums["MAV_CMD"][200].param[2] = """Transmission: 0: disabled, 1: enabled compressed, 2: enabled raw"""
  1649. enums["MAV_CMD"][200].label[2] = """Transmission"""
  1650. enums["MAV_CMD"][200].param[3] = """Transmission mode: 0: video stream, >0: single images every n seconds"""
  1651. enums["MAV_CMD"][200].label[3] = """Interval"""
  1652. enums["MAV_CMD"][200].param[4] = """Recording: 0: disabled, 1: enabled compressed, 2: enabled raw"""
  1653. enums["MAV_CMD"][200].label[4] = """Recording"""
  1654. enums["MAV_CMD"][200].param[5] = """Empty"""
  1655. enums["MAV_CMD"][200].param[6] = """Empty"""
  1656. enums["MAV_CMD"][200].param[7] = """Empty"""
  1657. MAV_CMD_DO_SET_ROI = 201
  1658. 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.""")
  1659. enums["MAV_CMD"][201].has_location = True
  1660. enums["MAV_CMD"][201].param[1] = """Region of interest mode."""
  1661. enums["MAV_CMD"][201].label[1] = """ROI Mode"""
  1662. enums["MAV_CMD"][201].param[2] = """Waypoint index/ target ID (depends on param 1)."""
  1663. enums["MAV_CMD"][201].label[2] = """WP Index"""
  1664. enums["MAV_CMD"][201].param[3] = """Region of interest index. (allows a vehicle to manage multiple ROI's)"""
  1665. enums["MAV_CMD"][201].label[3] = """ROI Index"""
  1666. enums["MAV_CMD"][201].param[4] = """Empty"""
  1667. enums["MAV_CMD"][201].param[5] = """MAV_ROI_WPNEXT: pitch offset from next waypoint, MAV_ROI_LOCATION: latitude"""
  1668. enums["MAV_CMD"][201].param[6] = """MAV_ROI_WPNEXT: roll offset from next waypoint, MAV_ROI_LOCATION: longitude"""
  1669. enums["MAV_CMD"][201].param[7] = """MAV_ROI_WPNEXT: yaw offset from next waypoint, MAV_ROI_LOCATION: altitude"""
  1670. MAV_CMD_DO_DIGICAM_CONFIGURE = 202
  1671. 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 ).""")
  1672. enums["MAV_CMD"][202].param[1] = """Modes: P, TV, AV, M, Etc."""
  1673. enums["MAV_CMD"][202].label[1] = """Mode"""
  1674. enums["MAV_CMD"][202].param[2] = """Shutter speed: Divisor number for one second."""
  1675. enums["MAV_CMD"][202].label[2] = """Shutter Speed"""
  1676. enums["MAV_CMD"][202].param[3] = """Aperture: F stop number."""
  1677. enums["MAV_CMD"][202].label[3] = """Aperture"""
  1678. enums["MAV_CMD"][202].param[4] = """ISO number e.g. 80, 100, 200, Etc."""
  1679. enums["MAV_CMD"][202].label[4] = """ISO"""
  1680. enums["MAV_CMD"][202].param[5] = """Exposure type enumerator."""
  1681. enums["MAV_CMD"][202].label[5] = """Exposure"""
  1682. enums["MAV_CMD"][202].param[6] = """Command Identity."""
  1683. enums["MAV_CMD"][202].label[6] = """Command Identity"""
  1684. enums["MAV_CMD"][202].param[7] = """Main engine cut-off time before camera trigger. (0 means no cut-off)"""
  1685. enums["MAV_CMD"][202].label[7] = """Engine Cut-off"""
  1686. MAV_CMD_DO_DIGICAM_CONTROL = 203
  1687. 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 ).""")
  1688. enums["MAV_CMD"][203].param[1] = """Session control e.g. show/hide lens"""
  1689. enums["MAV_CMD"][203].label[1] = """Session Control"""
  1690. enums["MAV_CMD"][203].param[2] = """Zoom's absolute position"""
  1691. enums["MAV_CMD"][203].label[2] = """Zoom Absolute"""
  1692. enums["MAV_CMD"][203].param[3] = """Zooming step value to offset zoom from the current position"""
  1693. enums["MAV_CMD"][203].label[3] = """Zoom Relative"""
  1694. enums["MAV_CMD"][203].param[4] = """Focus Locking, Unlocking or Re-locking"""
  1695. enums["MAV_CMD"][203].label[4] = """Focus"""
  1696. enums["MAV_CMD"][203].param[5] = """Shooting Command"""
  1697. enums["MAV_CMD"][203].label[5] = """Shoot Command"""
  1698. enums["MAV_CMD"][203].param[6] = """Command Identity"""
  1699. enums["MAV_CMD"][203].label[6] = """Command Identity"""
  1700. 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."""
  1701. enums["MAV_CMD"][203].label[7] = """Shot ID"""
  1702. MAV_CMD_DO_MOUNT_CONFIGURE = 204
  1703. enums["MAV_CMD"][204] = EnumEntry("MAV_CMD_DO_MOUNT_CONFIGURE", """Mission command to configure a camera or antenna mount""")
  1704. enums["MAV_CMD"][204].param[1] = """Mount operation mode"""
  1705. enums["MAV_CMD"][204].label[1] = """Mode"""
  1706. enums["MAV_CMD"][204].param[2] = """stabilize roll? (1 = yes, 0 = no)"""
  1707. enums["MAV_CMD"][204].label[2] = """Stabilize Roll"""
  1708. enums["MAV_CMD"][204].param[3] = """stabilize pitch? (1 = yes, 0 = no)"""
  1709. enums["MAV_CMD"][204].label[3] = """Stabilize Pitch"""
  1710. enums["MAV_CMD"][204].param[4] = """stabilize yaw? (1 = yes, 0 = no)"""
  1711. enums["MAV_CMD"][204].label[4] = """Stabilize Yaw"""
  1712. enums["MAV_CMD"][204].param[5] = """roll input (0 = angle body frame, 1 = angular rate, 2 = angle absolute frame)"""
  1713. enums["MAV_CMD"][204].label[5] = """Roll Input Mode"""
  1714. enums["MAV_CMD"][204].param[6] = """pitch input (0 = angle body frame, 1 = angular rate, 2 = angle absolute frame)"""
  1715. enums["MAV_CMD"][204].label[6] = """Pitch Input Mode"""
  1716. enums["MAV_CMD"][204].param[7] = """yaw input (0 = angle body frame, 1 = angular rate, 2 = angle absolute frame)"""
  1717. enums["MAV_CMD"][204].label[7] = """Yaw Input Mode"""
  1718. MAV_CMD_DO_MOUNT_CONTROL = 205
  1719. enums["MAV_CMD"][205] = EnumEntry("MAV_CMD_DO_MOUNT_CONTROL", """Mission command to control a camera or antenna mount""")
  1720. enums["MAV_CMD"][205].param[1] = """pitch depending on mount mode (degrees or degrees/second depending on pitch input)."""
  1721. enums["MAV_CMD"][205].label[1] = """Pitch"""
  1722. enums["MAV_CMD"][205].param[2] = """roll depending on mount mode (degrees or degrees/second depending on roll input)."""
  1723. enums["MAV_CMD"][205].label[2] = """Roll"""
  1724. enums["MAV_CMD"][205].param[3] = """yaw depending on mount mode (degrees or degrees/second depending on yaw input)."""
  1725. enums["MAV_CMD"][205].label[3] = """Yaw"""
  1726. enums["MAV_CMD"][205].param[4] = """altitude depending on mount mode."""
  1727. enums["MAV_CMD"][205].label[4] = """Altitude"""
  1728. enums["MAV_CMD"][205].param[5] = """latitude, set if appropriate mount mode."""
  1729. enums["MAV_CMD"][205].label[5] = """Latitude"""
  1730. enums["MAV_CMD"][205].param[6] = """longitude, set if appropriate mount mode."""
  1731. enums["MAV_CMD"][205].label[6] = """Longitude"""
  1732. enums["MAV_CMD"][205].param[7] = """Mount mode."""
  1733. enums["MAV_CMD"][205].label[7] = """Mode"""
  1734. MAV_CMD_DO_SET_CAM_TRIGG_DIST = 206
  1735. 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.""")
  1736. enums["MAV_CMD"][206].param[1] = """Camera trigger distance. 0 to stop triggering."""
  1737. enums["MAV_CMD"][206].label[1] = """Distance"""
  1738. enums["MAV_CMD"][206].param[2] = """Camera shutter integration time. -1 or 0 to ignore"""
  1739. enums["MAV_CMD"][206].label[2] = """Shutter"""
  1740. enums["MAV_CMD"][206].param[3] = """Trigger camera once immediately. (0 = no trigger, 1 = trigger)"""
  1741. enums["MAV_CMD"][206].label[3] = """Trigger"""
  1742. enums["MAV_CMD"][206].param[4] = """Empty"""
  1743. enums["MAV_CMD"][206].param[5] = """Empty"""
  1744. enums["MAV_CMD"][206].param[6] = """Empty"""
  1745. enums["MAV_CMD"][206].param[7] = """Empty"""
  1746. MAV_CMD_DO_FENCE_ENABLE = 207
  1747. enums["MAV_CMD"][207] = EnumEntry("MAV_CMD_DO_FENCE_ENABLE", """Mission command to enable the geofence""")
  1748. enums["MAV_CMD"][207].param[1] = """enable? (0=disable, 1=enable, 2=disable_floor_only)"""
  1749. enums["MAV_CMD"][207].label[1] = """Enable"""
  1750. enums["MAV_CMD"][207].param[2] = """Empty"""
  1751. enums["MAV_CMD"][207].param[3] = """Empty"""
  1752. enums["MAV_CMD"][207].param[4] = """Empty"""
  1753. enums["MAV_CMD"][207].param[5] = """Empty"""
  1754. enums["MAV_CMD"][207].param[6] = """Empty"""
  1755. enums["MAV_CMD"][207].param[7] = """Empty"""
  1756. MAV_CMD_DO_PARACHUTE = 208
  1757. enums["MAV_CMD"][208] = EnumEntry("MAV_CMD_DO_PARACHUTE", """Mission item/command to release a parachute or enable/disable auto release.""")
  1758. enums["MAV_CMD"][208].param[1] = """Action"""
  1759. enums["MAV_CMD"][208].label[1] = """Action"""
  1760. enums["MAV_CMD"][208].param[2] = """Empty"""
  1761. enums["MAV_CMD"][208].param[3] = """Empty"""
  1762. enums["MAV_CMD"][208].param[4] = """Empty"""
  1763. enums["MAV_CMD"][208].param[5] = """Empty"""
  1764. enums["MAV_CMD"][208].param[6] = """Empty"""
  1765. enums["MAV_CMD"][208].param[7] = """Empty"""
  1766. MAV_CMD_DO_MOTOR_TEST = 209
  1767. enums["MAV_CMD"][209] = EnumEntry("MAV_CMD_DO_MOTOR_TEST", """Command to perform motor test.""")
  1768. enums["MAV_CMD"][209].param[1] = """Motor instance number (from 1 to max number of motors on the vehicle)."""
  1769. enums["MAV_CMD"][209].label[1] = """Instance"""
  1770. enums["MAV_CMD"][209].param[2] = """Throttle type (whether the Throttle Value in param3 is a percentage, PWM value, etc.)"""
  1771. enums["MAV_CMD"][209].label[2] = """Throttle Type"""
  1772. enums["MAV_CMD"][209].param[3] = """Throttle value."""
  1773. enums["MAV_CMD"][209].label[3] = """Throttle"""
  1774. enums["MAV_CMD"][209].param[4] = """Timeout between tests that are run in sequence."""
  1775. enums["MAV_CMD"][209].label[4] = """Timeout"""
  1776. 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."""
  1777. enums["MAV_CMD"][209].label[5] = """Motor Count"""
  1778. enums["MAV_CMD"][209].param[6] = """Motor test order."""
  1779. enums["MAV_CMD"][209].label[6] = """Test Order"""
  1780. enums["MAV_CMD"][209].param[7] = """Empty"""
  1781. MAV_CMD_DO_INVERTED_FLIGHT = 210
  1782. enums["MAV_CMD"][210] = EnumEntry("MAV_CMD_DO_INVERTED_FLIGHT", """Change to/from inverted flight.""")
  1783. enums["MAV_CMD"][210].param[1] = """Inverted flight. (0=normal, 1=inverted)"""
  1784. enums["MAV_CMD"][210].label[1] = """Inverted"""
  1785. enums["MAV_CMD"][210].param[2] = """Empty"""
  1786. enums["MAV_CMD"][210].param[3] = """Empty"""
  1787. enums["MAV_CMD"][210].param[4] = """Empty"""
  1788. enums["MAV_CMD"][210].param[5] = """Empty"""
  1789. enums["MAV_CMD"][210].param[6] = """Empty"""
  1790. enums["MAV_CMD"][210].param[7] = """Empty"""
  1791. MAV_CMD_DO_GRIPPER = 211
  1792. enums["MAV_CMD"][211] = EnumEntry("MAV_CMD_DO_GRIPPER", """Mission command to operate a gripper.""")
  1793. enums["MAV_CMD"][211].param[1] = """Gripper instance number."""
  1794. enums["MAV_CMD"][211].label[1] = """Instance"""
  1795. enums["MAV_CMD"][211].param[2] = """Gripper action to perform."""
  1796. enums["MAV_CMD"][211].label[2] = """Action"""
  1797. enums["MAV_CMD"][211].param[3] = """Empty"""
  1798. enums["MAV_CMD"][211].param[4] = """Empty"""
  1799. enums["MAV_CMD"][211].param[5] = """Empty"""
  1800. enums["MAV_CMD"][211].param[6] = """Empty"""
  1801. enums["MAV_CMD"][211].param[7] = """Empty"""
  1802. MAV_CMD_DO_AUTOTUNE_ENABLE = 212
  1803. enums["MAV_CMD"][212] = EnumEntry("MAV_CMD_DO_AUTOTUNE_ENABLE", """Enable/disable autotune.""")
  1804. enums["MAV_CMD"][212].param[1] = """Enable (1: enable, 0:disable)."""
  1805. enums["MAV_CMD"][212].label[1] = """Enable"""
  1806. enums["MAV_CMD"][212].param[2] = """Specify which axis are autotuned. 0 indicates autopilot default settings."""
  1807. enums["MAV_CMD"][212].label[2] = """Axis"""
  1808. enums["MAV_CMD"][212].param[3] = """Empty."""
  1809. enums["MAV_CMD"][212].param[4] = """Empty."""
  1810. enums["MAV_CMD"][212].param[5] = """Empty."""
  1811. enums["MAV_CMD"][212].param[6] = """Empty."""
  1812. enums["MAV_CMD"][212].param[7] = """Empty."""
  1813. MAV_CMD_NAV_SET_YAW_SPEED = 213
  1814. enums["MAV_CMD"][213] = EnumEntry("MAV_CMD_NAV_SET_YAW_SPEED", """Sets a desired vehicle turn angle and speed change.""")
  1815. enums["MAV_CMD"][213].param[1] = """Yaw angle to adjust steering by."""
  1816. enums["MAV_CMD"][213].label[1] = """Yaw"""
  1817. enums["MAV_CMD"][213].param[2] = """Speed."""
  1818. enums["MAV_CMD"][213].label[2] = """Speed"""
  1819. enums["MAV_CMD"][213].param[3] = """Final angle. (0=absolute, 1=relative)"""
  1820. enums["MAV_CMD"][213].label[3] = """Angle"""
  1821. enums["MAV_CMD"][213].param[4] = """Empty"""
  1822. enums["MAV_CMD"][213].param[5] = """Empty"""
  1823. enums["MAV_CMD"][213].param[6] = """Empty"""
  1824. enums["MAV_CMD"][213].param[7] = """Empty"""
  1825. MAV_CMD_DO_SET_CAM_TRIGG_INTERVAL = 214
  1826. 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.""")
  1827. enums["MAV_CMD"][214].param[1] = """Camera trigger cycle time. -1 or 0 to ignore."""
  1828. enums["MAV_CMD"][214].label[1] = """Trigger Cycle"""
  1829. enums["MAV_CMD"][214].param[2] = """Camera shutter integration time. Should be less than trigger cycle time. -1 or 0 to ignore."""
  1830. enums["MAV_CMD"][214].label[2] = """Shutter Integration"""
  1831. enums["MAV_CMD"][214].param[3] = """Empty"""
  1832. enums["MAV_CMD"][214].param[4] = """Empty"""
  1833. enums["MAV_CMD"][214].param[5] = """Empty"""
  1834. enums["MAV_CMD"][214].param[6] = """Empty"""
  1835. enums["MAV_CMD"][214].param[7] = """Empty"""
  1836. MAV_CMD_DO_MOUNT_CONTROL_QUAT = 220
  1837. 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.""")
  1838. enums["MAV_CMD"][220].param[1] = """quaternion param q1, w (1 in null-rotation)"""
  1839. enums["MAV_CMD"][220].label[1] = """Q1"""
  1840. enums["MAV_CMD"][220].param[2] = """quaternion param q2, x (0 in null-rotation)"""
  1841. enums["MAV_CMD"][220].label[2] = """Q2"""
  1842. enums["MAV_CMD"][220].param[3] = """quaternion param q3, y (0 in null-rotation)"""
  1843. enums["MAV_CMD"][220].label[3] = """Q3"""
  1844. enums["MAV_CMD"][220].param[4] = """quaternion param q4, z (0 in null-rotation)"""
  1845. enums["MAV_CMD"][220].label[4] = """Q4"""
  1846. enums["MAV_CMD"][220].param[5] = """Empty"""
  1847. enums["MAV_CMD"][220].param[6] = """Empty"""
  1848. enums["MAV_CMD"][220].param[7] = """Empty"""
  1849. MAV_CMD_DO_GUIDED_MASTER = 221
  1850. enums["MAV_CMD"][221] = EnumEntry("MAV_CMD_DO_GUIDED_MASTER", """set id of master controller""")
  1851. enums["MAV_CMD"][221].param[1] = """System ID"""
  1852. enums["MAV_CMD"][221].label[1] = """System ID"""
  1853. enums["MAV_CMD"][221].param[2] = """Component ID"""
  1854. enums["MAV_CMD"][221].label[2] = """Component ID"""
  1855. enums["MAV_CMD"][221].param[3] = """Empty"""
  1856. enums["MAV_CMD"][221].param[4] = """Empty"""
  1857. enums["MAV_CMD"][221].param[5] = """Empty"""
  1858. enums["MAV_CMD"][221].param[6] = """Empty"""
  1859. enums["MAV_CMD"][221].param[7] = """Empty"""
  1860. MAV_CMD_DO_GUIDED_LIMITS = 222
  1861. enums["MAV_CMD"][222] = EnumEntry("MAV_CMD_DO_GUIDED_LIMITS", """Set limits for external control""")
  1862. enums["MAV_CMD"][222].param[1] = """Timeout - maximum time that external controller will be allowed to control vehicle. 0 means no timeout."""
  1863. enums["MAV_CMD"][222].label[1] = """Timeout"""
  1864. 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."""
  1865. enums["MAV_CMD"][222].label[2] = """Min Altitude"""
  1866. 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."""
  1867. enums["MAV_CMD"][222].label[3] = """Max Altitude"""
  1868. 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."""
  1869. enums["MAV_CMD"][222].label[4] = """Horiz. Move Limit"""
  1870. enums["MAV_CMD"][222].param[5] = """Empty"""
  1871. enums["MAV_CMD"][222].param[6] = """Empty"""
  1872. enums["MAV_CMD"][222].param[7] = """Empty"""
  1873. MAV_CMD_DO_ENGINE_CONTROL = 223
  1874. 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""")
  1875. enums["MAV_CMD"][223].param[1] = """0: Stop engine, 1:Start Engine"""
  1876. enums["MAV_CMD"][223].label[1] = """Start Engine"""
  1877. enums["MAV_CMD"][223].param[2] = """0: Warm start, 1:Cold start. Controls use of choke where applicable"""
  1878. enums["MAV_CMD"][223].label[2] = """Cold Start"""
  1879. 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."""
  1880. enums["MAV_CMD"][223].label[3] = """Height Delay"""
  1881. enums["MAV_CMD"][223].param[4] = """Empty"""
  1882. enums["MAV_CMD"][223].param[5] = """Empty"""
  1883. enums["MAV_CMD"][223].param[6] = """Empty"""
  1884. enums["MAV_CMD"][223].param[7] = """Empty"""
  1885. MAV_CMD_DO_SET_MISSION_CURRENT = 224
  1886. enums["MAV_CMD"][224] = EnumEntry(
  1887. "MAV_CMD_DO_SET_MISSION_CURRENT",
  1888. """
  1889. Set the mission item with sequence number seq as the current item and emit MISSION_CURRENT (whether or not the mission number changed).
  1890. 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.
  1891. Note that mission jump repeat counters are not reset unless param2 is set (see MAV_CMD_DO_JUMP param2).
  1892. 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.
  1893. If the system is in mission mode, on those systems this command might therefore start, restart or resume the mission.
  1894. If the system is not in mission mode this command must not trigger a switch to mission mode.
  1895. The mission may be "reset" using param2.
  1896. Resetting sets jump counters to initial values (to reset counters without changing the current mission item set the param1 to `-1`).
  1897. 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.
  1898. The command will ACK with MAV_RESULT_FAILED if the sequence number is out of range (including if there is no mission item).
  1899. """,
  1900. )
  1901. 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)."""
  1902. enums["MAV_CMD"][224].label[1] = """Number"""
  1903. 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"."""
  1904. enums["MAV_CMD"][224].label[2] = """Reset Mission"""
  1905. enums["MAV_CMD"][224].param[3] = """Empty"""
  1906. enums["MAV_CMD"][224].param[4] = """Empty"""
  1907. enums["MAV_CMD"][224].param[5] = """Empty"""
  1908. enums["MAV_CMD"][224].param[6] = """Empty"""
  1909. enums["MAV_CMD"][224].param[7] = """Empty"""
  1910. MAV_CMD_DO_LAST = 240
  1911. 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""")
  1912. enums["MAV_CMD"][240].param[1] = """Empty"""
  1913. enums["MAV_CMD"][240].param[2] = """Empty"""
  1914. enums["MAV_CMD"][240].param[3] = """Empty"""
  1915. enums["MAV_CMD"][240].param[4] = """Empty"""
  1916. enums["MAV_CMD"][240].param[5] = """Empty"""
  1917. enums["MAV_CMD"][240].param[6] = """Empty"""
  1918. enums["MAV_CMD"][240].param[7] = """Empty"""
  1919. MAV_CMD_PREFLIGHT_CALIBRATION = 241
  1920. 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.""")
  1921. enums["MAV_CMD"][241].param[1] = """1: gyro calibration, 3: gyro temperature calibration"""
  1922. enums["MAV_CMD"][241].label[1] = """Gyro Temperature"""
  1923. enums["MAV_CMD"][241].param[2] = """1: magnetometer calibration"""
  1924. enums["MAV_CMD"][241].label[2] = """Magnetometer"""
  1925. enums["MAV_CMD"][241].param[3] = """1: ground pressure calibration"""
  1926. enums["MAV_CMD"][241].label[3] = """Ground Pressure"""
  1927. enums["MAV_CMD"][241].param[4] = """1: radio RC calibration, 2: RC trim calibration"""
  1928. enums["MAV_CMD"][241].label[4] = """Remote Control"""
  1929. enums["MAV_CMD"][241].param[5] = """1: accelerometer calibration, 2: board level calibration, 3: accelerometer temperature calibration, 4: simple accelerometer calibration"""
  1930. enums["MAV_CMD"][241].label[5] = """Accelerometer"""
  1931. enums["MAV_CMD"][241].param[6] = """1: APM: compass/motor interference calibration (PX4: airspeed calibration, deprecated), 2: airspeed calibration"""
  1932. enums["MAV_CMD"][241].label[6] = """Compmot or Airspeed"""
  1933. enums["MAV_CMD"][241].param[7] = """1: ESC calibration, 3: barometer temperature calibration"""
  1934. enums["MAV_CMD"][241].label[7] = """ESC or Baro"""
  1935. MAV_CMD_PREFLIGHT_SET_SENSOR_OFFSETS = 242
  1936. 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.""")
  1937. 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"""
  1938. enums["MAV_CMD"][242].label[1] = """Sensor Type"""
  1939. enums["MAV_CMD"][242].param[2] = """X axis offset (or generic dimension 1), in the sensor's raw units"""
  1940. enums["MAV_CMD"][242].label[2] = """X Offset"""
  1941. enums["MAV_CMD"][242].param[3] = """Y axis offset (or generic dimension 2), in the sensor's raw units"""
  1942. enums["MAV_CMD"][242].label[3] = """Y Offset"""
  1943. enums["MAV_CMD"][242].param[4] = """Z axis offset (or generic dimension 3), in the sensor's raw units"""
  1944. enums["MAV_CMD"][242].label[4] = """Z Offset"""
  1945. enums["MAV_CMD"][242].param[5] = """Generic dimension 4, in the sensor's raw units"""
  1946. enums["MAV_CMD"][242].label[5] = """4th Dimension"""
  1947. enums["MAV_CMD"][242].param[6] = """Generic dimension 5, in the sensor's raw units"""
  1948. enums["MAV_CMD"][242].label[6] = """5th Dimension"""
  1949. enums["MAV_CMD"][242].param[7] = """Generic dimension 6, in the sensor's raw units"""
  1950. enums["MAV_CMD"][242].label[7] = """6th Dimension"""
  1951. MAV_CMD_PREFLIGHT_UAVCAN = 243
  1952. 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).""")
  1953. enums["MAV_CMD"][243].param[1] = """1: Trigger actuator ID assignment and direction mapping. 0: Cancel command."""
  1954. enums["MAV_CMD"][243].label[1] = """Actuator ID"""
  1955. enums["MAV_CMD"][243].param[2] = """Reserved"""
  1956. enums["MAV_CMD"][243].param[3] = """Reserved"""
  1957. enums["MAV_CMD"][243].param[4] = """Reserved"""
  1958. enums["MAV_CMD"][243].param[5] = """Reserved"""
  1959. enums["MAV_CMD"][243].param[6] = """Reserved"""
  1960. enums["MAV_CMD"][243].param[7] = """Reserved"""
  1961. MAV_CMD_PREFLIGHT_STORAGE = 245
  1962. 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.""")
  1963. enums["MAV_CMD"][245].param[1] = """Action to perform on the persistent parameter storage"""
  1964. enums["MAV_CMD"][245].label[1] = """Parameter Storage"""
  1965. enums["MAV_CMD"][245].param[2] = """Action to perform on the persistent mission storage"""
  1966. enums["MAV_CMD"][245].label[2] = """Mission Storage"""
  1967. 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)"""
  1968. enums["MAV_CMD"][245].label[3] = """Logging Rate"""
  1969. enums["MAV_CMD"][245].param[4] = """Reserved"""
  1970. enums["MAV_CMD"][245].param[5] = """Empty"""
  1971. enums["MAV_CMD"][245].param[6] = """Empty"""
  1972. enums["MAV_CMD"][245].param[7] = """Empty"""
  1973. MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN = 246
  1974. enums["MAV_CMD"][246] = EnumEntry("MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN", """Request the reboot or shutdown of system components.""")
  1975. 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."""
  1976. enums["MAV_CMD"][246].label[1] = """Autopilot"""
  1977. 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."""
  1978. enums["MAV_CMD"][246].label[2] = """Companion"""
  1979. 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"""
  1980. enums["MAV_CMD"][246].label[3] = """Component action"""
  1981. enums["MAV_CMD"][246].param[4] = """MAVLink Component ID targeted in param3 (0 for all components)."""
  1982. enums["MAV_CMD"][246].label[4] = """Component ID"""
  1983. enums["MAV_CMD"][246].param[5] = """Reserved (set to 0)"""
  1984. enums["MAV_CMD"][246].param[6] = """Reserved (set to 0)"""
  1985. enums["MAV_CMD"][246].param[7] = """WIP: ID (e.g. camera ID -1 for all IDs)"""
  1986. MAV_CMD_OVERRIDE_GOTO = 252
  1987. 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.""")
  1988. enums["MAV_CMD"][252].has_location = True
  1989. 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."""
  1990. enums["MAV_CMD"][252].label[1] = """Continue"""
  1991. 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."""
  1992. enums["MAV_CMD"][252].label[2] = """Position"""
  1993. enums["MAV_CMD"][252].param[3] = """Coordinate frame of hold point."""
  1994. enums["MAV_CMD"][252].label[3] = """Frame"""
  1995. enums["MAV_CMD"][252].param[4] = """Desired yaw angle."""
  1996. enums["MAV_CMD"][252].label[4] = """Yaw"""
  1997. enums["MAV_CMD"][252].param[5] = """Latitude/X position."""
  1998. enums["MAV_CMD"][252].label[5] = """Latitude/X"""
  1999. enums["MAV_CMD"][252].param[6] = """Longitude/Y position."""
  2000. enums["MAV_CMD"][252].label[6] = """Longitude/Y"""
  2001. enums["MAV_CMD"][252].param[7] = """Altitude/Z position."""
  2002. enums["MAV_CMD"][252].label[7] = """Altitude/Z"""
  2003. MAV_CMD_OBLIQUE_SURVEY = 260
  2004. 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.""")
  2005. enums["MAV_CMD"][260].param[1] = """Camera trigger distance. 0 to stop triggering."""
  2006. enums["MAV_CMD"][260].label[1] = """Distance"""
  2007. enums["MAV_CMD"][260].param[2] = """Camera shutter integration time. 0 to ignore"""
  2008. enums["MAV_CMD"][260].label[2] = """Shutter"""
  2009. enums["MAV_CMD"][260].param[3] = """The minimum interval in which the camera is capable of taking subsequent pictures repeatedly. 0 to ignore."""
  2010. enums["MAV_CMD"][260].label[3] = """Min Interval"""
  2011. 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)."""
  2012. enums["MAV_CMD"][260].label[4] = """Positions"""
  2013. enums["MAV_CMD"][260].param[5] = """Angle limits that the camera can be rolled to left and right of center."""
  2014. enums["MAV_CMD"][260].label[5] = """Roll Angle"""
  2015. 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."""
  2016. enums["MAV_CMD"][260].label[6] = """Pitch Angle"""
  2017. enums["MAV_CMD"][260].param[7] = """Empty"""
  2018. MAV_CMD_MISSION_START = 300
  2019. enums["MAV_CMD"][300] = EnumEntry("MAV_CMD_MISSION_START", """start running a mission""")
  2020. enums["MAV_CMD"][300].param[1] = """first_item: the first mission item to run"""
  2021. enums["MAV_CMD"][300].label[1] = """First Item"""
  2022. enums["MAV_CMD"][300].param[2] = """last_item: the last mission item to run (after this item is run, the mission ends)"""
  2023. enums["MAV_CMD"][300].label[2] = """Last Item"""
  2024. enums["MAV_CMD"][300].param[3] = """Reserved (default:0)"""
  2025. enums["MAV_CMD"][300].param[4] = """Reserved (default:0)"""
  2026. enums["MAV_CMD"][300].param[5] = """Reserved (default:0)"""
  2027. enums["MAV_CMD"][300].param[6] = """Reserved (default:0)"""
  2028. enums["MAV_CMD"][300].param[7] = """Reserved (default:0)"""
  2029. MAV_CMD_ACTUATOR_TEST = 310
  2030. 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.""")
  2031. 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)."""
  2032. enums["MAV_CMD"][310].label[1] = """Value"""
  2033. 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."""
  2034. enums["MAV_CMD"][310].label[2] = """Timeout"""
  2035. enums["MAV_CMD"][310].param[3] = """Reserved (default:0)"""
  2036. enums["MAV_CMD"][310].param[4] = """Reserved (default:0)"""
  2037. enums["MAV_CMD"][310].param[5] = """Actuator Output function"""
  2038. enums["MAV_CMD"][310].label[5] = """Output Function"""
  2039. enums["MAV_CMD"][310].param[6] = """Reserved (default:0)"""
  2040. enums["MAV_CMD"][310].param[7] = """Reserved (default:0)"""
  2041. MAV_CMD_CONFIGURE_ACTUATOR = 311
  2042. enums["MAV_CMD"][311] = EnumEntry("MAV_CMD_CONFIGURE_ACTUATOR", """Actuator configuration command.""")
  2043. enums["MAV_CMD"][311].param[1] = """Actuator configuration action"""
  2044. enums["MAV_CMD"][311].label[1] = """Configuration"""
  2045. enums["MAV_CMD"][311].param[2] = """Reserved (default:0)"""
  2046. enums["MAV_CMD"][311].param[3] = """Reserved (default:0)"""
  2047. enums["MAV_CMD"][311].param[4] = """Reserved (default:0)"""
  2048. enums["MAV_CMD"][311].param[5] = """Actuator Output function"""
  2049. enums["MAV_CMD"][311].label[5] = """Output Function"""
  2050. enums["MAV_CMD"][311].param[6] = """Reserved (default:0)"""
  2051. enums["MAV_CMD"][311].param[7] = """Reserved (default:0)"""
  2052. MAV_CMD_COMPONENT_ARM_DISARM = 400
  2053. enums["MAV_CMD"][400] = EnumEntry("MAV_CMD_COMPONENT_ARM_DISARM", """Arms / Disarms a component""")
  2054. enums["MAV_CMD"][400].param[1] = """0: disarm, 1: arm"""
  2055. enums["MAV_CMD"][400].label[1] = """Arm"""
  2056. 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)"""
  2057. enums["MAV_CMD"][400].label[2] = """Force"""
  2058. enums["MAV_CMD"][400].param[3] = """Reserved (default:0)"""
  2059. enums["MAV_CMD"][400].param[4] = """Reserved (default:0)"""
  2060. enums["MAV_CMD"][400].param[5] = """Reserved (default:0)"""
  2061. enums["MAV_CMD"][400].param[6] = """Reserved (default:0)"""
  2062. enums["MAV_CMD"][400].param[7] = """Reserved (default:0)"""
  2063. MAV_CMD_RUN_PREARM_CHECKS = 401
  2064. enums["MAV_CMD"][401] = EnumEntry(
  2065. "MAV_CMD_RUN_PREARM_CHECKS",
  2066. """Instructs a target system to run pre-arm checks.
  2067. 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.
  2068. This command should return MAV_RESULT_ACCEPTED if it will run the checks.
  2069. The results of the checks are usually then reported in SYS_STATUS messages (this is system-specific).
  2070. The command should return MAV_RESULT_TEMPORARILY_REJECTED if the system is already armed.
  2071. """,
  2072. )
  2073. enums["MAV_CMD"][401].param[1] = """Reserved (default:0)"""
  2074. enums["MAV_CMD"][401].param[2] = """Reserved (default:0)"""
  2075. enums["MAV_CMD"][401].param[3] = """Reserved (default:0)"""
  2076. enums["MAV_CMD"][401].param[4] = """Reserved (default:0)"""
  2077. enums["MAV_CMD"][401].param[5] = """Reserved (default:0)"""
  2078. enums["MAV_CMD"][401].param[6] = """Reserved (default:0)"""
  2079. enums["MAV_CMD"][401].param[7] = """Reserved (default:0)"""
  2080. MAV_CMD_ILLUMINATOR_ON_OFF = 405
  2081. 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).""")
  2082. enums["MAV_CMD"][405].param[1] = """0: Illuminators OFF, 1: Illuminators ON"""
  2083. enums["MAV_CMD"][405].label[1] = """Enable"""
  2084. enums["MAV_CMD"][405].param[2] = """Reserved (default:0)"""
  2085. enums["MAV_CMD"][405].param[3] = """Reserved (default:0)"""
  2086. enums["MAV_CMD"][405].param[4] = """Reserved (default:0)"""
  2087. enums["MAV_CMD"][405].param[5] = """Reserved (default:0)"""
  2088. enums["MAV_CMD"][405].param[6] = """Reserved (default:0)"""
  2089. enums["MAV_CMD"][405].param[7] = """Reserved (default:0)"""
  2090. MAV_CMD_GET_HOME_POSITION = 410
  2091. enums["MAV_CMD"][410] = EnumEntry(
  2092. "MAV_CMD_GET_HOME_POSITION",
  2093. """Request the home position from the vehicle.
  2094. The vehicle will ACK the command and then emit the HOME_POSITION message.""",
  2095. )
  2096. enums["MAV_CMD"][410].param[1] = """Reserved"""
  2097. enums["MAV_CMD"][410].param[2] = """Reserved"""
  2098. enums["MAV_CMD"][410].param[3] = """Reserved"""
  2099. enums["MAV_CMD"][410].param[4] = """Reserved"""
  2100. enums["MAV_CMD"][410].param[5] = """Reserved"""
  2101. enums["MAV_CMD"][410].param[6] = """Reserved"""
  2102. enums["MAV_CMD"][410].param[7] = """Reserved"""
  2103. MAV_CMD_INJECT_FAILURE = 420
  2104. 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.""")
  2105. enums["MAV_CMD"][420].param[1] = """The unit which is affected by the failure."""
  2106. enums["MAV_CMD"][420].label[1] = """Failure unit"""
  2107. enums["MAV_CMD"][420].param[2] = """The type how the failure manifests itself."""
  2108. enums["MAV_CMD"][420].label[2] = """Failure type"""
  2109. enums["MAV_CMD"][420].param[3] = """Instance affected by failure (0 to signal all)."""
  2110. enums["MAV_CMD"][420].label[3] = """Instance"""
  2111. enums["MAV_CMD"][420].param[4] = """Reserved (default:0)"""
  2112. enums["MAV_CMD"][420].param[5] = """Reserved (default:0)"""
  2113. enums["MAV_CMD"][420].param[6] = """Reserved (default:0)"""
  2114. enums["MAV_CMD"][420].param[7] = """Reserved (default:0)"""
  2115. MAV_CMD_START_RX_PAIR = 500
  2116. enums["MAV_CMD"][500] = EnumEntry("MAV_CMD_START_RX_PAIR", """Starts receiver pairing.""")
  2117. enums["MAV_CMD"][500].param[1] = """0:Spektrum."""
  2118. enums["MAV_CMD"][500].label[1] = """Spektrum"""
  2119. enums["MAV_CMD"][500].param[2] = """RC type."""
  2120. enums["MAV_CMD"][500].label[2] = """RC Type"""
  2121. enums["MAV_CMD"][500].param[3] = """Reserved (default:0)"""
  2122. enums["MAV_CMD"][500].param[4] = """Reserved (default:0)"""
  2123. enums["MAV_CMD"][500].param[5] = """Reserved (default:0)"""
  2124. enums["MAV_CMD"][500].param[6] = """Reserved (default:0)"""
  2125. enums["MAV_CMD"][500].param[7] = """Reserved (default:0)"""
  2126. MAV_CMD_GET_MESSAGE_INTERVAL = 510
  2127. enums["MAV_CMD"][510] = EnumEntry(
  2128. "MAV_CMD_GET_MESSAGE_INTERVAL",
  2129. """
  2130. Request the interval between messages for a particular MAVLink message ID.
  2131. The receiver should ACK the command and then emit its response in a MESSAGE_INTERVAL message.
  2132. """,
  2133. )
  2134. enums["MAV_CMD"][510].param[1] = """The MAVLink message ID"""
  2135. enums["MAV_CMD"][510].label[1] = """Message ID"""
  2136. enums["MAV_CMD"][510].param[2] = """Reserved (default:0)"""
  2137. enums["MAV_CMD"][510].param[3] = """Reserved (default:0)"""
  2138. enums["MAV_CMD"][510].param[4] = """Reserved (default:0)"""
  2139. enums["MAV_CMD"][510].param[5] = """Reserved (default:0)"""
  2140. enums["MAV_CMD"][510].param[6] = """Reserved (default:0)"""
  2141. enums["MAV_CMD"][510].param[7] = """Reserved (default:0)"""
  2142. MAV_CMD_SET_MESSAGE_INTERVAL = 511
  2143. 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.""")
  2144. enums["MAV_CMD"][511].param[1] = """The MAVLink message ID"""
  2145. enums["MAV_CMD"][511].label[1] = """Message ID"""
  2146. enums["MAV_CMD"][511].param[2] = """The interval between two messages. -1: disable. 0: request default rate (which may be zero)."""
  2147. enums["MAV_CMD"][511].label[2] = """Interval"""
  2148. enums["MAV_CMD"][511].param[3] = """Reserved (default:0)"""
  2149. enums["MAV_CMD"][511].param[4] = """Reserved (default:0)"""
  2150. enums["MAV_CMD"][511].param[5] = """Reserved (default:0)"""
  2151. enums["MAV_CMD"][511].param[6] = """Reserved (default:0)"""
  2152. 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."""
  2153. enums["MAV_CMD"][511].label[7] = """Response Target"""
  2154. MAV_CMD_REQUEST_MESSAGE = 512
  2155. 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).""")
  2156. enums["MAV_CMD"][512].param[1] = """The MAVLink message ID of the requested message."""
  2157. enums["MAV_CMD"][512].label[1] = """Message ID"""
  2158. 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)."""
  2159. enums["MAV_CMD"][512].label[2] = """Req Param 1"""
  2160. 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)."""
  2161. enums["MAV_CMD"][512].label[3] = """Req Param 2"""
  2162. 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)."""
  2163. enums["MAV_CMD"][512].label[4] = """Req Param 3"""
  2164. 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)."""
  2165. enums["MAV_CMD"][512].label[5] = """Req Param 4"""
  2166. 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)."""
  2167. enums["MAV_CMD"][512].label[6] = """Req Param 5"""
  2168. 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."""
  2169. enums["MAV_CMD"][512].label[7] = """Response Target"""
  2170. MAV_CMD_REQUEST_PROTOCOL_VERSION = 519
  2171. 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""")
  2172. enums["MAV_CMD"][519].param[1] = """1: Request supported protocol versions by all nodes on the network"""
  2173. enums["MAV_CMD"][519].label[1] = """Protocol"""
  2174. enums["MAV_CMD"][519].param[2] = """Reserved (all remaining params)"""
  2175. enums["MAV_CMD"][519].param[3] = """Reserved (default:0)"""
  2176. enums["MAV_CMD"][519].param[4] = """Reserved (default:0)"""
  2177. enums["MAV_CMD"][519].param[5] = """Reserved (default:0)"""
  2178. enums["MAV_CMD"][519].param[6] = """Reserved (default:0)"""
  2179. enums["MAV_CMD"][519].param[7] = """Reserved (default:0)"""
  2180. MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES = 520
  2181. 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""")
  2182. enums["MAV_CMD"][520].param[1] = """1: Request autopilot version"""
  2183. enums["MAV_CMD"][520].label[1] = """Version"""
  2184. enums["MAV_CMD"][520].param[2] = """Reserved (all remaining params)"""
  2185. enums["MAV_CMD"][520].param[3] = """Reserved (default:0)"""
  2186. enums["MAV_CMD"][520].param[4] = """Reserved (default:0)"""
  2187. enums["MAV_CMD"][520].param[5] = """Reserved (default:0)"""
  2188. enums["MAV_CMD"][520].param[6] = """Reserved (default:0)"""
  2189. enums["MAV_CMD"][520].param[7] = """Reserved (default:0)"""
  2190. MAV_CMD_REQUEST_CAMERA_INFORMATION = 521
  2191. enums["MAV_CMD"][521] = EnumEntry("MAV_CMD_REQUEST_CAMERA_INFORMATION", """Request camera information (CAMERA_INFORMATION).""")
  2192. enums["MAV_CMD"][521].param[1] = """0: No action 1: Request camera capabilities"""
  2193. enums["MAV_CMD"][521].label[1] = """Capabilities"""
  2194. enums["MAV_CMD"][521].param[2] = """Reserved (all remaining params)"""
  2195. enums["MAV_CMD"][521].param[3] = """Reserved (default:0)"""
  2196. enums["MAV_CMD"][521].param[4] = """Reserved (default:0)"""
  2197. enums["MAV_CMD"][521].param[5] = """Reserved (default:0)"""
  2198. enums["MAV_CMD"][521].param[6] = """Reserved (default:0)"""
  2199. enums["MAV_CMD"][521].param[7] = """Reserved (default:0)"""
  2200. MAV_CMD_REQUEST_CAMERA_SETTINGS = 522
  2201. enums["MAV_CMD"][522] = EnumEntry("MAV_CMD_REQUEST_CAMERA_SETTINGS", """Request camera settings (CAMERA_SETTINGS).""")
  2202. enums["MAV_CMD"][522].param[1] = """0: No Action 1: Request camera settings"""
  2203. enums["MAV_CMD"][522].label[1] = """Settings"""
  2204. enums["MAV_CMD"][522].param[2] = """Reserved (all remaining params)"""
  2205. enums["MAV_CMD"][522].param[3] = """Reserved (default:0)"""
  2206. enums["MAV_CMD"][522].param[4] = """Reserved (default:0)"""
  2207. enums["MAV_CMD"][522].param[5] = """Reserved (default:0)"""
  2208. enums["MAV_CMD"][522].param[6] = """Reserved (default:0)"""
  2209. enums["MAV_CMD"][522].param[7] = """Reserved (default:0)"""
  2210. MAV_CMD_REQUEST_STORAGE_INFORMATION = 525
  2211. 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.""")
  2212. enums["MAV_CMD"][525].param[1] = """Storage ID (0 for all, 1 for first, 2 for second, etc.)"""
  2213. enums["MAV_CMD"][525].label[1] = """Storage ID"""
  2214. enums["MAV_CMD"][525].param[2] = """0: No Action 1: Request storage information"""
  2215. enums["MAV_CMD"][525].label[2] = """Information"""
  2216. enums["MAV_CMD"][525].param[3] = """Reserved (all remaining params)"""
  2217. enums["MAV_CMD"][525].param[4] = """Reserved (default:0)"""
  2218. enums["MAV_CMD"][525].param[5] = """Reserved (default:0)"""
  2219. enums["MAV_CMD"][525].param[6] = """Reserved (default:0)"""
  2220. enums["MAV_CMD"][525].param[7] = """Reserved (default:0)"""
  2221. MAV_CMD_STORAGE_FORMAT = 526
  2222. 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.""")
  2223. enums["MAV_CMD"][526].param[1] = """Storage ID (1 for first, 2 for second, etc.)"""
  2224. enums["MAV_CMD"][526].label[1] = """Storage ID"""
  2225. enums["MAV_CMD"][526].param[2] = """Format storage (and reset image log). 0: No action 1: Format storage"""
  2226. enums["MAV_CMD"][526].label[2] = """Format"""
  2227. 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"""
  2228. enums["MAV_CMD"][526].label[3] = """Reset Image Log"""
  2229. enums["MAV_CMD"][526].param[4] = """Reserved (all remaining params)"""
  2230. enums["MAV_CMD"][526].param[5] = """Reserved (default:0)"""
  2231. enums["MAV_CMD"][526].param[6] = """Reserved (default:0)"""
  2232. enums["MAV_CMD"][526].param[7] = """Reserved (default:0)"""
  2233. MAV_CMD_REQUEST_CAMERA_CAPTURE_STATUS = 527
  2234. enums["MAV_CMD"][527] = EnumEntry("MAV_CMD_REQUEST_CAMERA_CAPTURE_STATUS", """Request camera capture status (CAMERA_CAPTURE_STATUS)""")
  2235. enums["MAV_CMD"][527].param[1] = """0: No Action 1: Request camera capture status"""
  2236. enums["MAV_CMD"][527].label[1] = """Capture Status"""
  2237. enums["MAV_CMD"][527].param[2] = """Reserved (all remaining params)"""
  2238. enums["MAV_CMD"][527].param[3] = """Reserved (default:0)"""
  2239. enums["MAV_CMD"][527].param[4] = """Reserved (default:0)"""
  2240. enums["MAV_CMD"][527].param[5] = """Reserved (default:0)"""
  2241. enums["MAV_CMD"][527].param[6] = """Reserved (default:0)"""
  2242. enums["MAV_CMD"][527].param[7] = """Reserved (default:0)"""
  2243. MAV_CMD_REQUEST_FLIGHT_INFORMATION = 528
  2244. enums["MAV_CMD"][528] = EnumEntry("MAV_CMD_REQUEST_FLIGHT_INFORMATION", """Request flight information (FLIGHT_INFORMATION)""")
  2245. enums["MAV_CMD"][528].param[1] = """1: Request flight information"""
  2246. enums["MAV_CMD"][528].label[1] = """Flight Information"""
  2247. enums["MAV_CMD"][528].param[2] = """Reserved (all remaining params)"""
  2248. enums["MAV_CMD"][528].param[3] = """Reserved (default:0)"""
  2249. enums["MAV_CMD"][528].param[4] = """Reserved (default:0)"""
  2250. enums["MAV_CMD"][528].param[5] = """Reserved (default:0)"""
  2251. enums["MAV_CMD"][528].param[6] = """Reserved (default:0)"""
  2252. enums["MAV_CMD"][528].param[7] = """Reserved (default:0)"""
  2253. MAV_CMD_RESET_CAMERA_SETTINGS = 529
  2254. enums["MAV_CMD"][529] = EnumEntry("MAV_CMD_RESET_CAMERA_SETTINGS", """Reset all camera settings to Factory Default""")
  2255. enums["MAV_CMD"][529].param[1] = """0: No Action 1: Reset all settings"""
  2256. enums["MAV_CMD"][529].label[1] = """Reset"""
  2257. enums["MAV_CMD"][529].param[2] = """Reserved (all remaining params)"""
  2258. enums["MAV_CMD"][529].param[3] = """Reserved (default:0)"""
  2259. enums["MAV_CMD"][529].param[4] = """Reserved (default:0)"""
  2260. enums["MAV_CMD"][529].param[5] = """Reserved (default:0)"""
  2261. enums["MAV_CMD"][529].param[6] = """Reserved (default:0)"""
  2262. enums["MAV_CMD"][529].param[7] = """Reserved (default:0)"""
  2263. MAV_CMD_SET_CAMERA_MODE = 530
  2264. 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.""")
  2265. enums["MAV_CMD"][530].param[1] = """Reserved (Set to 0)"""
  2266. enums["MAV_CMD"][530].param[2] = """Camera mode"""
  2267. enums["MAV_CMD"][530].label[2] = """Camera Mode"""
  2268. enums["MAV_CMD"][530].param[3] = """Reserved (default:NaN)"""
  2269. enums["MAV_CMD"][530].param[4] = """Reserved (default:NaN)"""
  2270. enums["MAV_CMD"][530].param[5] = """Reserved (default:0)"""
  2271. enums["MAV_CMD"][530].param[6] = """Reserved (default:0)"""
  2272. enums["MAV_CMD"][530].param[7] = """Reserved (default:NaN)"""
  2273. MAV_CMD_SET_CAMERA_ZOOM = 531
  2274. enums["MAV_CMD"][531] = EnumEntry("MAV_CMD_SET_CAMERA_ZOOM", """Set camera zoom. Camera must respond with a CAMERA_SETTINGS message (on success).""")
  2275. enums["MAV_CMD"][531].param[1] = """Zoom type"""
  2276. enums["MAV_CMD"][531].label[1] = """Zoom Type"""
  2277. enums["MAV_CMD"][531].param[2] = """Zoom value. The range of valid values depend on the zoom type."""
  2278. enums["MAV_CMD"][531].label[2] = """Zoom Value"""
  2279. enums["MAV_CMD"][531].param[3] = """Reserved (default:NaN)"""
  2280. enums["MAV_CMD"][531].param[4] = """Reserved (default:NaN)"""
  2281. enums["MAV_CMD"][531].param[5] = """Reserved (default:0)"""
  2282. enums["MAV_CMD"][531].param[6] = """Reserved (default:0)"""
  2283. enums["MAV_CMD"][531].param[7] = """Reserved (default:NaN)"""
  2284. MAV_CMD_SET_CAMERA_FOCUS = 532
  2285. enums["MAV_CMD"][532] = EnumEntry("MAV_CMD_SET_CAMERA_FOCUS", """Set camera focus. Camera must respond with a CAMERA_SETTINGS message (on success).""")
  2286. enums["MAV_CMD"][532].param[1] = """Focus type"""
  2287. enums["MAV_CMD"][532].label[1] = """Focus Type"""
  2288. enums["MAV_CMD"][532].param[2] = """Focus value"""
  2289. enums["MAV_CMD"][532].label[2] = """Focus Value"""
  2290. enums["MAV_CMD"][532].param[3] = """Reserved (default:NaN)"""
  2291. enums["MAV_CMD"][532].param[4] = """Reserved (default:NaN)"""
  2292. enums["MAV_CMD"][532].param[5] = """Reserved (default:0)"""
  2293. enums["MAV_CMD"][532].param[6] = """Reserved (default:0)"""
  2294. enums["MAV_CMD"][532].param[7] = """Reserved (default:NaN)"""
  2295. MAV_CMD_SET_STORAGE_USAGE = 533
  2296. enums["MAV_CMD"][533] = EnumEntry(
  2297. "MAV_CMD_SET_STORAGE_USAGE",
  2298. """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).
  2299. 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.
  2300. If no flag is set the system should use its default storage.
  2301. A target system can choose to always use default storage, in which case it should ACK the command with MAV_RESULT_UNSUPPORTED.
  2302. 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.""",
  2303. )
  2304. enums["MAV_CMD"][533].param[1] = """Storage ID (1 for first, 2 for second, etc.)"""
  2305. enums["MAV_CMD"][533].label[1] = """Storage ID"""
  2306. enums["MAV_CMD"][533].param[2] = """Usage flags"""
  2307. enums["MAV_CMD"][533].label[2] = """Usage"""
  2308. enums["MAV_CMD"][533].param[3] = """Reserved (default:0)"""
  2309. enums["MAV_CMD"][533].param[4] = """Reserved (default:0)"""
  2310. enums["MAV_CMD"][533].param[5] = """Reserved (default:0)"""
  2311. enums["MAV_CMD"][533].param[6] = """Reserved (default:0)"""
  2312. enums["MAV_CMD"][533].param[7] = """Reserved (default:0)"""
  2313. MAV_CMD_JUMP_TAG = 600
  2314. enums["MAV_CMD"][600] = EnumEntry("MAV_CMD_JUMP_TAG", """Tagged jump target. Can be jumped to with MAV_CMD_DO_JUMP_TAG.""")
  2315. enums["MAV_CMD"][600].param[1] = """Tag."""
  2316. enums["MAV_CMD"][600].label[1] = """Tag"""
  2317. enums["MAV_CMD"][600].param[2] = """Reserved (default:0)"""
  2318. enums["MAV_CMD"][600].param[3] = """Reserved (default:0)"""
  2319. enums["MAV_CMD"][600].param[4] = """Reserved (default:0)"""
  2320. enums["MAV_CMD"][600].param[5] = """Reserved (default:0)"""
  2321. enums["MAV_CMD"][600].param[6] = """Reserved (default:0)"""
  2322. enums["MAV_CMD"][600].param[7] = """Reserved (default:0)"""
  2323. MAV_CMD_DO_JUMP_TAG = 601
  2324. 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.""")
  2325. enums["MAV_CMD"][601].param[1] = """Target tag to jump to."""
  2326. enums["MAV_CMD"][601].label[1] = """Tag"""
  2327. enums["MAV_CMD"][601].param[2] = """Repeat count."""
  2328. enums["MAV_CMD"][601].label[2] = """Repeat"""
  2329. enums["MAV_CMD"][601].param[3] = """Reserved (default:0)"""
  2330. enums["MAV_CMD"][601].param[4] = """Reserved (default:0)"""
  2331. enums["MAV_CMD"][601].param[5] = """Reserved (default:0)"""
  2332. enums["MAV_CMD"][601].param[6] = """Reserved (default:0)"""
  2333. enums["MAV_CMD"][601].param[7] = """Reserved (default:0)"""
  2334. MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW = 1000
  2335. 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. """)
  2336. 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)."""
  2337. enums["MAV_CMD"][1000].label[1] = """Pitch angle"""
  2338. 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)."""
  2339. enums["MAV_CMD"][1000].label[2] = """Yaw angle"""
  2340. enums["MAV_CMD"][1000].param[3] = """Pitch rate (positive to pitch up)."""
  2341. enums["MAV_CMD"][1000].label[3] = """Pitch rate"""
  2342. enums["MAV_CMD"][1000].param[4] = """Yaw rate (positive to yaw to the right)."""
  2343. enums["MAV_CMD"][1000].label[4] = """Yaw rate"""
  2344. enums["MAV_CMD"][1000].param[5] = """Gimbal manager flags to use."""
  2345. enums["MAV_CMD"][1000].label[5] = """Gimbal manager flags"""
  2346. enums["MAV_CMD"][1000].param[6] = """Reserved (default:0)"""
  2347. 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)."""
  2348. enums["MAV_CMD"][1000].label[7] = """Gimbal device ID"""
  2349. MAV_CMD_DO_GIMBAL_MANAGER_CONFIGURE = 1001
  2350. enums["MAV_CMD"][1001] = EnumEntry("MAV_CMD_DO_GIMBAL_MANAGER_CONFIGURE", """Gimbal configuration to set which sysid/compid is in primary and secondary control.""")
  2351. 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)."""
  2352. enums["MAV_CMD"][1001].label[1] = """sysid primary control"""
  2353. 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)."""
  2354. enums["MAV_CMD"][1001].label[2] = """compid primary control"""
  2355. 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)."""
  2356. enums["MAV_CMD"][1001].label[3] = """sysid secondary control"""
  2357. 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)."""
  2358. enums["MAV_CMD"][1001].label[4] = """compid secondary control"""
  2359. enums["MAV_CMD"][1001].param[5] = """Reserved (default:0)"""
  2360. enums["MAV_CMD"][1001].param[6] = """Reserved (default:0)"""
  2361. 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)."""
  2362. enums["MAV_CMD"][1001].label[7] = """Gimbal device ID"""
  2363. MAV_CMD_IMAGE_START_CAPTURE = 2000
  2364. enums["MAV_CMD"][2000] = EnumEntry(
  2365. "MAV_CMD_IMAGE_START_CAPTURE",
  2366. """Start image capture sequence. CAMERA_IMAGE_CAPTURED must be emitted after each capture.
  2367. 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.
  2368. 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).
  2369. It is also needed to specify the target camera in missions.
  2370. 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).
  2371. If the param1 is 0 the autopilot should do both.
  2372. When sent in a command the target MAVLink address is set using target_component.
  2373. 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).
  2374. 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.
  2375. 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.
  2376. """,
  2377. )
  2378. 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"""
  2379. enums["MAV_CMD"][2000].label[1] = """id"""
  2380. 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)."""
  2381. enums["MAV_CMD"][2000].label[2] = """Interval"""
  2382. enums["MAV_CMD"][2000].param[3] = """Total number of images to capture. 0 to capture forever/until MAV_CMD_IMAGE_STOP_CAPTURE."""
  2383. enums["MAV_CMD"][2000].label[3] = """Total Images"""
  2384. 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."""
  2385. enums["MAV_CMD"][2000].label[4] = """Sequence Number"""
  2386. enums["MAV_CMD"][2000].param[5] = """Reserved (default:0)"""
  2387. enums["MAV_CMD"][2000].param[6] = """Reserved (default:0)"""
  2388. enums["MAV_CMD"][2000].param[7] = """Reserved (default:NaN)"""
  2389. MAV_CMD_IMAGE_STOP_CAPTURE = 2001
  2390. enums["MAV_CMD"][2001] = EnumEntry(
  2391. "MAV_CMD_IMAGE_STOP_CAPTURE",
  2392. """Stop image capture sequence.
  2393. 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.
  2394. 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).
  2395. It is also needed to specify the target camera in missions.
  2396. 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).
  2397. If the param1 is 0 the autopilot should do both.
  2398. When sent in a command the target MAVLink address is set using target_component.
  2399. 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).
  2400. 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.
  2401. 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.
  2402. """,
  2403. )
  2404. 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"""
  2405. enums["MAV_CMD"][2001].label[1] = """id"""
  2406. enums["MAV_CMD"][2001].param[2] = """Reserved (default:NaN)"""
  2407. enums["MAV_CMD"][2001].param[3] = """Reserved (default:NaN)"""
  2408. enums["MAV_CMD"][2001].param[4] = """Reserved (default:NaN)"""
  2409. enums["MAV_CMD"][2001].param[5] = """Reserved (default:0)"""
  2410. enums["MAV_CMD"][2001].param[6] = """Reserved (default:0)"""
  2411. enums["MAV_CMD"][2001].param[7] = """Reserved (default:NaN)"""
  2412. MAV_CMD_REQUEST_CAMERA_IMAGE_CAPTURE = 2002
  2413. enums["MAV_CMD"][2002] = EnumEntry("MAV_CMD_REQUEST_CAMERA_IMAGE_CAPTURE", """Re-request a CAMERA_IMAGE_CAPTURED message.""")
  2414. enums["MAV_CMD"][2002].param[1] = """Sequence number for missing CAMERA_IMAGE_CAPTURED message"""
  2415. enums["MAV_CMD"][2002].label[1] = """Number"""
  2416. enums["MAV_CMD"][2002].param[2] = """Reserved (default:NaN)"""
  2417. enums["MAV_CMD"][2002].param[3] = """Reserved (default:NaN)"""
  2418. enums["MAV_CMD"][2002].param[4] = """Reserved (default:NaN)"""
  2419. enums["MAV_CMD"][2002].param[5] = """Reserved (default:0)"""
  2420. enums["MAV_CMD"][2002].param[6] = """Reserved (default:0)"""
  2421. enums["MAV_CMD"][2002].param[7] = """Reserved (default:NaN)"""
  2422. MAV_CMD_DO_TRIGGER_CONTROL = 2003
  2423. enums["MAV_CMD"][2003] = EnumEntry("MAV_CMD_DO_TRIGGER_CONTROL", """Enable or disable on-board camera triggering system.""")
  2424. enums["MAV_CMD"][2003].param[1] = """Trigger enable/disable (0 for disable, 1 for start), -1 to ignore"""
  2425. enums["MAV_CMD"][2003].label[1] = """Enable"""
  2426. enums["MAV_CMD"][2003].param[2] = """1 to reset the trigger sequence, -1 or 0 to ignore"""
  2427. enums["MAV_CMD"][2003].label[2] = """Reset"""
  2428. enums["MAV_CMD"][2003].param[3] = """1 to pause triggering, but without switching the camera off or retracting it. -1 to ignore"""
  2429. enums["MAV_CMD"][2003].label[3] = """Pause"""
  2430. enums["MAV_CMD"][2003].param[4] = """Reserved (default:0)"""
  2431. enums["MAV_CMD"][2003].param[5] = """Reserved (default:0)"""
  2432. enums["MAV_CMD"][2003].param[6] = """Reserved (default:0)"""
  2433. enums["MAV_CMD"][2003].param[7] = """Reserved (default:0)"""
  2434. MAV_CMD_CAMERA_TRACK_POINT = 2004
  2435. 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.""")
  2436. enums["MAV_CMD"][2004].param[1] = """Point to track x value (normalized 0..1, 0 is left, 1 is right)."""
  2437. enums["MAV_CMD"][2004].label[1] = """Point x"""
  2438. enums["MAV_CMD"][2004].param[2] = """Point to track y value (normalized 0..1, 0 is top, 1 is bottom)."""
  2439. enums["MAV_CMD"][2004].label[2] = """Point y"""
  2440. enums["MAV_CMD"][2004].param[3] = """Point radius (normalized 0..1, 0 is image left, 1 is image right)."""
  2441. enums["MAV_CMD"][2004].label[3] = """Radius"""
  2442. enums["MAV_CMD"][2004].param[4] = """Reserved (default:0)"""
  2443. enums["MAV_CMD"][2004].param[5] = """Reserved (default:0)"""
  2444. enums["MAV_CMD"][2004].param[6] = """Reserved (default:0)"""
  2445. enums["MAV_CMD"][2004].param[7] = """Reserved (default:0)"""
  2446. MAV_CMD_CAMERA_TRACK_RECTANGLE = 2005
  2447. 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.""")
  2448. enums["MAV_CMD"][2005].param[1] = """Top left corner of rectangle x value (normalized 0..1, 0 is left, 1 is right)."""
  2449. enums["MAV_CMD"][2005].label[1] = """Top left corner x"""
  2450. enums["MAV_CMD"][2005].param[2] = """Top left corner of rectangle y value (normalized 0..1, 0 is top, 1 is bottom)."""
  2451. enums["MAV_CMD"][2005].label[2] = """Top left corner y"""
  2452. enums["MAV_CMD"][2005].param[3] = """Bottom right corner of rectangle x value (normalized 0..1, 0 is left, 1 is right)."""
  2453. enums["MAV_CMD"][2005].label[3] = """Bottom right corner x"""
  2454. enums["MAV_CMD"][2005].param[4] = """Bottom right corner of rectangle y value (normalized 0..1, 0 is top, 1 is bottom)."""
  2455. enums["MAV_CMD"][2005].label[4] = """Bottom right corner y"""
  2456. enums["MAV_CMD"][2005].param[5] = """Reserved (default:0)"""
  2457. enums["MAV_CMD"][2005].param[6] = """Reserved (default:0)"""
  2458. enums["MAV_CMD"][2005].param[7] = """Reserved (default:0)"""
  2459. MAV_CMD_CAMERA_STOP_TRACKING = 2010
  2460. enums["MAV_CMD"][2010] = EnumEntry("MAV_CMD_CAMERA_STOP_TRACKING", """Stops ongoing tracking.""")
  2461. enums["MAV_CMD"][2010].param[1] = """Reserved (default:0)"""
  2462. enums["MAV_CMD"][2010].param[2] = """Reserved (default:0)"""
  2463. enums["MAV_CMD"][2010].param[3] = """Reserved (default:0)"""
  2464. enums["MAV_CMD"][2010].param[4] = """Reserved (default:0)"""
  2465. enums["MAV_CMD"][2010].param[5] = """Reserved (default:0)"""
  2466. enums["MAV_CMD"][2010].param[6] = """Reserved (default:0)"""
  2467. enums["MAV_CMD"][2010].param[7] = """Reserved (default:0)"""
  2468. MAV_CMD_VIDEO_START_CAPTURE = 2500
  2469. enums["MAV_CMD"][2500] = EnumEntry("MAV_CMD_VIDEO_START_CAPTURE", """Starts video capture (recording).""")
  2470. enums["MAV_CMD"][2500].param[1] = """Video Stream ID (0 for all streams)"""
  2471. enums["MAV_CMD"][2500].label[1] = """Stream ID"""
  2472. enums["MAV_CMD"][2500].param[2] = """Frequency CAMERA_CAPTURE_STATUS messages should be sent while recording (0 for no messages, otherwise frequency)"""
  2473. enums["MAV_CMD"][2500].label[2] = """Status Frequency"""
  2474. enums["MAV_CMD"][2500].param[3] = """Reserved (default:NaN)"""
  2475. enums["MAV_CMD"][2500].param[4] = """Reserved (default:NaN)"""
  2476. enums["MAV_CMD"][2500].param[5] = """Reserved (default:0)"""
  2477. enums["MAV_CMD"][2500].param[6] = """Reserved (default:0)"""
  2478. enums["MAV_CMD"][2500].param[7] = """Reserved (default:NaN)"""
  2479. MAV_CMD_VIDEO_STOP_CAPTURE = 2501
  2480. enums["MAV_CMD"][2501] = EnumEntry("MAV_CMD_VIDEO_STOP_CAPTURE", """Stop the current video capture (recording).""")
  2481. enums["MAV_CMD"][2501].param[1] = """Video Stream ID (0 for all streams)"""
  2482. enums["MAV_CMD"][2501].label[1] = """Stream ID"""
  2483. enums["MAV_CMD"][2501].param[2] = """Reserved (default:NaN)"""
  2484. enums["MAV_CMD"][2501].param[3] = """Reserved (default:NaN)"""
  2485. enums["MAV_CMD"][2501].param[4] = """Reserved (default:NaN)"""
  2486. enums["MAV_CMD"][2501].param[5] = """Reserved (default:0)"""
  2487. enums["MAV_CMD"][2501].param[6] = """Reserved (default:0)"""
  2488. enums["MAV_CMD"][2501].param[7] = """Reserved (default:NaN)"""
  2489. MAV_CMD_VIDEO_START_STREAMING = 2502
  2490. enums["MAV_CMD"][2502] = EnumEntry("MAV_CMD_VIDEO_START_STREAMING", """Start video streaming""")
  2491. enums["MAV_CMD"][2502].param[1] = """Video Stream ID (0 for all streams, 1 for first, 2 for second, etc.)"""
  2492. enums["MAV_CMD"][2502].label[1] = """Stream ID"""
  2493. enums["MAV_CMD"][2502].param[2] = """Reserved (default:0)"""
  2494. enums["MAV_CMD"][2502].param[3] = """Reserved (default:0)"""
  2495. enums["MAV_CMD"][2502].param[4] = """Reserved (default:0)"""
  2496. enums["MAV_CMD"][2502].param[5] = """Reserved (default:0)"""
  2497. enums["MAV_CMD"][2502].param[6] = """Reserved (default:0)"""
  2498. enums["MAV_CMD"][2502].param[7] = """Reserved (default:0)"""
  2499. MAV_CMD_VIDEO_STOP_STREAMING = 2503
  2500. enums["MAV_CMD"][2503] = EnumEntry("MAV_CMD_VIDEO_STOP_STREAMING", """Stop the given video stream""")
  2501. enums["MAV_CMD"][2503].param[1] = """Video Stream ID (0 for all streams, 1 for first, 2 for second, etc.)"""
  2502. enums["MAV_CMD"][2503].label[1] = """Stream ID"""
  2503. enums["MAV_CMD"][2503].param[2] = """Reserved (default:0)"""
  2504. enums["MAV_CMD"][2503].param[3] = """Reserved (default:0)"""
  2505. enums["MAV_CMD"][2503].param[4] = """Reserved (default:0)"""
  2506. enums["MAV_CMD"][2503].param[5] = """Reserved (default:0)"""
  2507. enums["MAV_CMD"][2503].param[6] = """Reserved (default:0)"""
  2508. enums["MAV_CMD"][2503].param[7] = """Reserved (default:0)"""
  2509. MAV_CMD_REQUEST_VIDEO_STREAM_INFORMATION = 2504
  2510. enums["MAV_CMD"][2504] = EnumEntry("MAV_CMD_REQUEST_VIDEO_STREAM_INFORMATION", """Request video stream information (VIDEO_STREAM_INFORMATION)""")
  2511. enums["MAV_CMD"][2504].param[1] = """Video Stream ID (0 for all streams, 1 for first, 2 for second, etc.)"""
  2512. enums["MAV_CMD"][2504].label[1] = """Stream ID"""
  2513. enums["MAV_CMD"][2504].param[2] = """Reserved (default:0)"""
  2514. enums["MAV_CMD"][2504].param[3] = """Reserved (default:0)"""
  2515. enums["MAV_CMD"][2504].param[4] = """Reserved (default:0)"""
  2516. enums["MAV_CMD"][2504].param[5] = """Reserved (default:0)"""
  2517. enums["MAV_CMD"][2504].param[6] = """Reserved (default:0)"""
  2518. enums["MAV_CMD"][2504].param[7] = """Reserved (default:0)"""
  2519. MAV_CMD_REQUEST_VIDEO_STREAM_STATUS = 2505
  2520. enums["MAV_CMD"][2505] = EnumEntry("MAV_CMD_REQUEST_VIDEO_STREAM_STATUS", """Request video stream status (VIDEO_STREAM_STATUS)""")
  2521. enums["MAV_CMD"][2505].param[1] = """Video Stream ID (0 for all streams, 1 for first, 2 for second, etc.)"""
  2522. enums["MAV_CMD"][2505].label[1] = """Stream ID"""
  2523. enums["MAV_CMD"][2505].param[2] = """Reserved (default:0)"""
  2524. enums["MAV_CMD"][2505].param[3] = """Reserved (default:0)"""
  2525. enums["MAV_CMD"][2505].param[4] = """Reserved (default:0)"""
  2526. enums["MAV_CMD"][2505].param[5] = """Reserved (default:0)"""
  2527. enums["MAV_CMD"][2505].param[6] = """Reserved (default:0)"""
  2528. enums["MAV_CMD"][2505].param[7] = """Reserved (default:0)"""
  2529. MAV_CMD_LOGGING_START = 2510
  2530. enums["MAV_CMD"][2510] = EnumEntry("MAV_CMD_LOGGING_START", """Request to start streaming logging data over MAVLink (see also LOGGING_DATA message)""")
  2531. enums["MAV_CMD"][2510].param[1] = """Format: 0: ULog"""
  2532. enums["MAV_CMD"][2510].label[1] = """Format"""
  2533. enums["MAV_CMD"][2510].param[2] = """Reserved (set to 0)"""
  2534. enums["MAV_CMD"][2510].param[3] = """Reserved (set to 0)"""
  2535. enums["MAV_CMD"][2510].param[4] = """Reserved (set to 0)"""
  2536. enums["MAV_CMD"][2510].param[5] = """Reserved (set to 0)"""
  2537. enums["MAV_CMD"][2510].param[6] = """Reserved (set to 0)"""
  2538. enums["MAV_CMD"][2510].param[7] = """Reserved (set to 0)"""
  2539. MAV_CMD_LOGGING_STOP = 2511
  2540. enums["MAV_CMD"][2511] = EnumEntry("MAV_CMD_LOGGING_STOP", """Request to stop streaming log data over MAVLink""")
  2541. enums["MAV_CMD"][2511].param[1] = """Reserved (set to 0)"""
  2542. enums["MAV_CMD"][2511].param[2] = """Reserved (set to 0)"""
  2543. enums["MAV_CMD"][2511].param[3] = """Reserved (set to 0)"""
  2544. enums["MAV_CMD"][2511].param[4] = """Reserved (set to 0)"""
  2545. enums["MAV_CMD"][2511].param[5] = """Reserved (set to 0)"""
  2546. enums["MAV_CMD"][2511].param[6] = """Reserved (set to 0)"""
  2547. enums["MAV_CMD"][2511].param[7] = """Reserved (set to 0)"""
  2548. MAV_CMD_AIRFRAME_CONFIGURATION = 2520
  2549. enums["MAV_CMD"][2520] = EnumEntry("MAV_CMD_AIRFRAME_CONFIGURATION", """""")
  2550. enums["MAV_CMD"][2520].param[1] = """Landing gear ID (default: 0, -1 for all)"""
  2551. enums["MAV_CMD"][2520].label[1] = """Landing Gear ID"""
  2552. enums["MAV_CMD"][2520].param[2] = """Landing gear position (Down: 0, Up: 1, NaN for no change)"""
  2553. enums["MAV_CMD"][2520].label[2] = """Landing Gear Position"""
  2554. enums["MAV_CMD"][2520].param[3] = """Reserved (default:NaN)"""
  2555. enums["MAV_CMD"][2520].param[4] = """Reserved (default:NaN)"""
  2556. enums["MAV_CMD"][2520].param[5] = """Reserved (default:0)"""
  2557. enums["MAV_CMD"][2520].param[6] = """Reserved (default:0)"""
  2558. enums["MAV_CMD"][2520].param[7] = """Reserved (default:NaN)"""
  2559. MAV_CMD_CONTROL_HIGH_LATENCY = 2600
  2560. enums["MAV_CMD"][2600] = EnumEntry("MAV_CMD_CONTROL_HIGH_LATENCY", """Request to start/stop transmitting over the high latency telemetry""")
  2561. enums["MAV_CMD"][2600].param[1] = """Control transmission over high latency telemetry (0: stop, 1: start)"""
  2562. enums["MAV_CMD"][2600].label[1] = """Enable"""
  2563. enums["MAV_CMD"][2600].param[2] = """Empty"""
  2564. enums["MAV_CMD"][2600].param[3] = """Empty"""
  2565. enums["MAV_CMD"][2600].param[4] = """Empty"""
  2566. enums["MAV_CMD"][2600].param[5] = """Empty"""
  2567. enums["MAV_CMD"][2600].param[6] = """Empty"""
  2568. enums["MAV_CMD"][2600].param[7] = """Empty"""
  2569. MAV_CMD_PANORAMA_CREATE = 2800
  2570. enums["MAV_CMD"][2800] = EnumEntry("MAV_CMD_PANORAMA_CREATE", """Create a panorama at the current position""")
  2571. enums["MAV_CMD"][2800].param[1] = """Viewing angle horizontal of the panorama (+- 0.5 the total angle)"""
  2572. enums["MAV_CMD"][2800].label[1] = """Horizontal Angle"""
  2573. enums["MAV_CMD"][2800].param[2] = """Viewing angle vertical of panorama."""
  2574. enums["MAV_CMD"][2800].label[2] = """Vertical Angle"""
  2575. enums["MAV_CMD"][2800].param[3] = """Speed of the horizontal rotation."""
  2576. enums["MAV_CMD"][2800].label[3] = """Horizontal Speed"""
  2577. enums["MAV_CMD"][2800].param[4] = """Speed of the vertical rotation."""
  2578. enums["MAV_CMD"][2800].label[4] = """Vertical Speed"""
  2579. enums["MAV_CMD"][2800].param[5] = """Reserved (default:0)"""
  2580. enums["MAV_CMD"][2800].param[6] = """Reserved (default:0)"""
  2581. enums["MAV_CMD"][2800].param[7] = """Reserved (default:0)"""
  2582. MAV_CMD_DO_VTOL_TRANSITION = 3000
  2583. enums["MAV_CMD"][3000] = EnumEntry("MAV_CMD_DO_VTOL_TRANSITION", """Request VTOL transition""")
  2584. 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."""
  2585. enums["MAV_CMD"][3000].label[1] = """State"""
  2586. 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."""
  2587. enums["MAV_CMD"][3000].label[2] = """Immediate"""
  2588. enums["MAV_CMD"][3000].param[3] = """Reserved (default:0)"""
  2589. enums["MAV_CMD"][3000].param[4] = """Reserved (default:0)"""
  2590. enums["MAV_CMD"][3000].param[5] = """Reserved (default:0)"""
  2591. enums["MAV_CMD"][3000].param[6] = """Reserved (default:0)"""
  2592. enums["MAV_CMD"][3000].param[7] = """Reserved (default:0)"""
  2593. MAV_CMD_ARM_AUTHORIZATION_REQUEST = 3001
  2594. enums["MAV_CMD"][3001] = EnumEntry(
  2595. "MAV_CMD_ARM_AUTHORIZATION_REQUEST",
  2596. """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.
  2597. If approved the COMMAND_ACK message progress field should be set with period of time that this authorization is valid in seconds.
  2598. If the authorization is denied COMMAND_ACK.result_param2 should be set with one of the reasons in ARM_AUTH_DENIED_REASON.
  2599. """,
  2600. )
  2601. enums["MAV_CMD"][3001].param[1] = """Vehicle system id, this way ground station can request arm authorization on behalf of any vehicle"""
  2602. enums["MAV_CMD"][3001].label[1] = """System ID"""
  2603. enums["MAV_CMD"][3001].param[2] = """Reserved (default:0)"""
  2604. enums["MAV_CMD"][3001].param[3] = """Reserved (default:0)"""
  2605. enums["MAV_CMD"][3001].param[4] = """Reserved (default:0)"""
  2606. enums["MAV_CMD"][3001].param[5] = """Reserved (default:0)"""
  2607. enums["MAV_CMD"][3001].param[6] = """Reserved (default:0)"""
  2608. enums["MAV_CMD"][3001].param[7] = """Reserved (default:0)"""
  2609. MAV_CMD_SET_GUIDED_SUBMODE_STANDARD = 4000
  2610. enums["MAV_CMD"][4000] = EnumEntry(
  2611. "MAV_CMD_SET_GUIDED_SUBMODE_STANDARD",
  2612. """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.
  2613. """,
  2614. )
  2615. enums["MAV_CMD"][4000].param[1] = """Reserved (default:0)"""
  2616. enums["MAV_CMD"][4000].param[2] = """Reserved (default:0)"""
  2617. enums["MAV_CMD"][4000].param[3] = """Reserved (default:0)"""
  2618. enums["MAV_CMD"][4000].param[4] = """Reserved (default:0)"""
  2619. enums["MAV_CMD"][4000].param[5] = """Reserved (default:0)"""
  2620. enums["MAV_CMD"][4000].param[6] = """Reserved (default:0)"""
  2621. enums["MAV_CMD"][4000].param[7] = """Reserved (default:0)"""
  2622. MAV_CMD_SET_GUIDED_SUBMODE_CIRCLE = 4001
  2623. enums["MAV_CMD"][4001] = EnumEntry(
  2624. "MAV_CMD_SET_GUIDED_SUBMODE_CIRCLE",
  2625. """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.
  2626. """,
  2627. )
  2628. enums["MAV_CMD"][4001].has_location = True
  2629. enums["MAV_CMD"][4001].param[1] = """Radius of desired circle in CIRCLE_MODE"""
  2630. enums["MAV_CMD"][4001].label[1] = """Radius"""
  2631. enums["MAV_CMD"][4001].param[2] = """User defined"""
  2632. enums["MAV_CMD"][4001].param[3] = """User defined"""
  2633. enums["MAV_CMD"][4001].param[4] = """User defined"""
  2634. enums["MAV_CMD"][4001].param[5] = """Target latitude of center of circle in CIRCLE_MODE"""
  2635. enums["MAV_CMD"][4001].label[5] = """Latitude"""
  2636. enums["MAV_CMD"][4001].param[6] = """Target longitude of center of circle in CIRCLE_MODE"""
  2637. enums["MAV_CMD"][4001].label[6] = """Longitude"""
  2638. enums["MAV_CMD"][4001].param[7] = """Reserved (default:0)"""
  2639. MAV_CMD_CONDITION_GATE = 4501
  2640. enums["MAV_CMD"][4501] = EnumEntry("MAV_CMD_CONDITION_GATE", """Delay mission state machine until gate has been reached.""")
  2641. enums["MAV_CMD"][4501].has_location = True
  2642. enums["MAV_CMD"][4501].param[1] = """Geometry: 0: orthogonal to path between previous and next waypoint."""
  2643. enums["MAV_CMD"][4501].label[1] = """Geometry"""
  2644. enums["MAV_CMD"][4501].param[2] = """Altitude: 0: ignore altitude"""
  2645. enums["MAV_CMD"][4501].label[2] = """UseAltitude"""
  2646. enums["MAV_CMD"][4501].param[3] = """Empty"""
  2647. enums["MAV_CMD"][4501].param[4] = """Empty"""
  2648. enums["MAV_CMD"][4501].param[5] = """Latitude"""
  2649. enums["MAV_CMD"][4501].label[5] = """Latitude"""
  2650. enums["MAV_CMD"][4501].param[6] = """Longitude"""
  2651. enums["MAV_CMD"][4501].label[6] = """Longitude"""
  2652. enums["MAV_CMD"][4501].param[7] = """Altitude"""
  2653. enums["MAV_CMD"][4501].label[7] = """Altitude"""
  2654. MAV_CMD_NAV_FENCE_RETURN_POINT = 5000
  2655. 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.""")
  2656. enums["MAV_CMD"][5000].has_location = True
  2657. enums["MAV_CMD"][5000].param[1] = """Reserved"""
  2658. enums["MAV_CMD"][5000].param[2] = """Reserved"""
  2659. enums["MAV_CMD"][5000].param[3] = """Reserved"""
  2660. enums["MAV_CMD"][5000].param[4] = """Reserved"""
  2661. enums["MAV_CMD"][5000].param[5] = """Latitude"""
  2662. enums["MAV_CMD"][5000].label[5] = """Latitude"""
  2663. enums["MAV_CMD"][5000].param[6] = """Longitude"""
  2664. enums["MAV_CMD"][5000].label[6] = """Longitude"""
  2665. enums["MAV_CMD"][5000].param[7] = """Altitude"""
  2666. enums["MAV_CMD"][5000].label[7] = """Altitude"""
  2667. MAV_CMD_NAV_FENCE_POLYGON_VERTEX_INCLUSION = 5001
  2668. enums["MAV_CMD"][5001] = EnumEntry(
  2669. "MAV_CMD_NAV_FENCE_POLYGON_VERTEX_INCLUSION",
  2670. """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.
  2671. """,
  2672. )
  2673. enums["MAV_CMD"][5001].has_location = True
  2674. enums["MAV_CMD"][5001].param[1] = """Polygon vertex count"""
  2675. enums["MAV_CMD"][5001].label[1] = """Vertex Count"""
  2676. 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"""
  2677. enums["MAV_CMD"][5001].label[2] = """Inclusion Group"""
  2678. enums["MAV_CMD"][5001].param[3] = """Reserved"""
  2679. enums["MAV_CMD"][5001].param[4] = """Reserved"""
  2680. enums["MAV_CMD"][5001].param[5] = """Latitude"""
  2681. enums["MAV_CMD"][5001].label[5] = """Latitude"""
  2682. enums["MAV_CMD"][5001].param[6] = """Longitude"""
  2683. enums["MAV_CMD"][5001].label[6] = """Longitude"""
  2684. enums["MAV_CMD"][5001].param[7] = """Reserved"""
  2685. MAV_CMD_NAV_FENCE_POLYGON_VERTEX_EXCLUSION = 5002
  2686. enums["MAV_CMD"][5002] = EnumEntry(
  2687. "MAV_CMD_NAV_FENCE_POLYGON_VERTEX_EXCLUSION",
  2688. """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.
  2689. """,
  2690. )
  2691. enums["MAV_CMD"][5002].has_location = True
  2692. enums["MAV_CMD"][5002].param[1] = """Polygon vertex count"""
  2693. enums["MAV_CMD"][5002].label[1] = """Vertex Count"""
  2694. enums["MAV_CMD"][5002].param[2] = """Reserved"""
  2695. enums["MAV_CMD"][5002].param[3] = """Reserved"""
  2696. enums["MAV_CMD"][5002].param[4] = """Reserved"""
  2697. enums["MAV_CMD"][5002].param[5] = """Latitude"""
  2698. enums["MAV_CMD"][5002].label[5] = """Latitude"""
  2699. enums["MAV_CMD"][5002].param[6] = """Longitude"""
  2700. enums["MAV_CMD"][5002].label[6] = """Longitude"""
  2701. enums["MAV_CMD"][5002].param[7] = """Reserved"""
  2702. MAV_CMD_NAV_FENCE_CIRCLE_INCLUSION = 5003
  2703. enums["MAV_CMD"][5003] = EnumEntry(
  2704. "MAV_CMD_NAV_FENCE_CIRCLE_INCLUSION",
  2705. """Circular fence area. The vehicle must stay inside this area.
  2706. """,
  2707. )
  2708. enums["MAV_CMD"][5003].has_location = True
  2709. enums["MAV_CMD"][5003].param[1] = """Radius."""
  2710. enums["MAV_CMD"][5003].label[1] = """Radius"""
  2711. 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"""
  2712. enums["MAV_CMD"][5003].label[2] = """Inclusion Group"""
  2713. enums["MAV_CMD"][5003].param[3] = """Reserved"""
  2714. enums["MAV_CMD"][5003].param[4] = """Reserved"""
  2715. enums["MAV_CMD"][5003].param[5] = """Latitude"""
  2716. enums["MAV_CMD"][5003].label[5] = """Latitude"""
  2717. enums["MAV_CMD"][5003].param[6] = """Longitude"""
  2718. enums["MAV_CMD"][5003].label[6] = """Longitude"""
  2719. enums["MAV_CMD"][5003].param[7] = """Reserved"""
  2720. MAV_CMD_NAV_FENCE_CIRCLE_EXCLUSION = 5004
  2721. enums["MAV_CMD"][5004] = EnumEntry(
  2722. "MAV_CMD_NAV_FENCE_CIRCLE_EXCLUSION",
  2723. """Circular fence area. The vehicle must stay outside this area.
  2724. """,
  2725. )
  2726. enums["MAV_CMD"][5004].has_location = True
  2727. enums["MAV_CMD"][5004].param[1] = """Radius."""
  2728. enums["MAV_CMD"][5004].label[1] = """Radius"""
  2729. enums["MAV_CMD"][5004].param[2] = """Reserved"""
  2730. enums["MAV_CMD"][5004].param[3] = """Reserved"""
  2731. enums["MAV_CMD"][5004].param[4] = """Reserved"""
  2732. enums["MAV_CMD"][5004].param[5] = """Latitude"""
  2733. enums["MAV_CMD"][5004].label[5] = """Latitude"""
  2734. enums["MAV_CMD"][5004].param[6] = """Longitude"""
  2735. enums["MAV_CMD"][5004].label[6] = """Longitude"""
  2736. enums["MAV_CMD"][5004].param[7] = """Reserved"""
  2737. MAV_CMD_NAV_RALLY_POINT = 5100
  2738. enums["MAV_CMD"][5100] = EnumEntry(
  2739. "MAV_CMD_NAV_RALLY_POINT",
  2740. """Rally point. You can have multiple rally points defined.
  2741. """,
  2742. )
  2743. enums["MAV_CMD"][5100].has_location = True
  2744. enums["MAV_CMD"][5100].param[1] = """Reserved"""
  2745. enums["MAV_CMD"][5100].param[2] = """Reserved"""
  2746. enums["MAV_CMD"][5100].param[3] = """Reserved"""
  2747. enums["MAV_CMD"][5100].param[4] = """Reserved"""
  2748. enums["MAV_CMD"][5100].param[5] = """Latitude"""
  2749. enums["MAV_CMD"][5100].label[5] = """Latitude"""
  2750. enums["MAV_CMD"][5100].param[6] = """Longitude"""
  2751. enums["MAV_CMD"][5100].label[6] = """Longitude"""
  2752. enums["MAV_CMD"][5100].param[7] = """Altitude"""
  2753. enums["MAV_CMD"][5100].label[7] = """Altitude"""
  2754. MAV_CMD_UAVCAN_GET_NODE_INFO = 5200
  2755. 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.""")
  2756. enums["MAV_CMD"][5200].param[1] = """Reserved (set to 0)"""
  2757. enums["MAV_CMD"][5200].param[2] = """Reserved (set to 0)"""
  2758. enums["MAV_CMD"][5200].param[3] = """Reserved (set to 0)"""
  2759. enums["MAV_CMD"][5200].param[4] = """Reserved (set to 0)"""
  2760. enums["MAV_CMD"][5200].param[5] = """Reserved (set to 0)"""
  2761. enums["MAV_CMD"][5200].param[6] = """Reserved (set to 0)"""
  2762. enums["MAV_CMD"][5200].param[7] = """Reserved (set to 0)"""
  2763. MAV_CMD_DO_ADSB_OUT_IDENT = 10001
  2764. 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.""")
  2765. enums["MAV_CMD"][10001].param[1] = """Reserved (set to 0)"""
  2766. enums["MAV_CMD"][10001].param[2] = """Reserved (set to 0)"""
  2767. enums["MAV_CMD"][10001].param[3] = """Reserved (set to 0)"""
  2768. enums["MAV_CMD"][10001].param[4] = """Reserved (set to 0)"""
  2769. enums["MAV_CMD"][10001].param[5] = """Reserved (set to 0)"""
  2770. enums["MAV_CMD"][10001].param[6] = """Reserved (set to 0)"""
  2771. enums["MAV_CMD"][10001].param[7] = """Reserved (set to 0)"""
  2772. MAV_CMD_PAYLOAD_PREPARE_DEPLOY = 30001
  2773. 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.""")
  2774. enums["MAV_CMD"][30001].has_location = True
  2775. 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."""
  2776. enums["MAV_CMD"][30001].label[1] = """Operation Mode"""
  2777. 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."""
  2778. enums["MAV_CMD"][30001].label[2] = """Approach Vector"""
  2779. 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."""
  2780. enums["MAV_CMD"][30001].label[3] = """Ground Speed"""
  2781. 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."""
  2782. enums["MAV_CMD"][30001].label[4] = """Altitude Clearance"""
  2783. enums["MAV_CMD"][30001].param[5] = """Latitude."""
  2784. enums["MAV_CMD"][30001].label[5] = """Latitude"""
  2785. enums["MAV_CMD"][30001].param[6] = """Longitude."""
  2786. enums["MAV_CMD"][30001].label[6] = """Longitude"""
  2787. enums["MAV_CMD"][30001].param[7] = """Altitude (MSL)"""
  2788. enums["MAV_CMD"][30001].label[7] = """Altitude"""
  2789. MAV_CMD_PAYLOAD_CONTROL_DEPLOY = 30002
  2790. enums["MAV_CMD"][30002] = EnumEntry("MAV_CMD_PAYLOAD_CONTROL_DEPLOY", """Control the payload deployment.""")
  2791. 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."""
  2792. enums["MAV_CMD"][30002].label[1] = """Operation Mode"""
  2793. enums["MAV_CMD"][30002].param[2] = """Reserved"""
  2794. enums["MAV_CMD"][30002].param[3] = """Reserved"""
  2795. enums["MAV_CMD"][30002].param[4] = """Reserved"""
  2796. enums["MAV_CMD"][30002].param[5] = """Reserved"""
  2797. enums["MAV_CMD"][30002].param[6] = """Reserved"""
  2798. enums["MAV_CMD"][30002].param[7] = """Reserved"""
  2799. MAV_CMD_WAYPOINT_USER_1 = 31000
  2800. 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.""")
  2801. enums["MAV_CMD"][31000].has_location = True
  2802. enums["MAV_CMD"][31000].param[1] = """User defined"""
  2803. enums["MAV_CMD"][31000].param[2] = """User defined"""
  2804. enums["MAV_CMD"][31000].param[3] = """User defined"""
  2805. enums["MAV_CMD"][31000].param[4] = """User defined"""
  2806. enums["MAV_CMD"][31000].param[5] = """Latitude unscaled"""
  2807. enums["MAV_CMD"][31000].label[5] = """Latitude"""
  2808. enums["MAV_CMD"][31000].param[6] = """Longitude unscaled"""
  2809. enums["MAV_CMD"][31000].label[6] = """Longitude"""
  2810. enums["MAV_CMD"][31000].param[7] = """Altitude (MSL)"""
  2811. enums["MAV_CMD"][31000].label[7] = """Altitude"""
  2812. MAV_CMD_WAYPOINT_USER_2 = 31001
  2813. 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.""")
  2814. enums["MAV_CMD"][31001].has_location = True
  2815. enums["MAV_CMD"][31001].param[1] = """User defined"""
  2816. enums["MAV_CMD"][31001].param[2] = """User defined"""
  2817. enums["MAV_CMD"][31001].param[3] = """User defined"""
  2818. enums["MAV_CMD"][31001].param[4] = """User defined"""
  2819. enums["MAV_CMD"][31001].param[5] = """Latitude unscaled"""
  2820. enums["MAV_CMD"][31001].label[5] = """Latitude"""
  2821. enums["MAV_CMD"][31001].param[6] = """Longitude unscaled"""
  2822. enums["MAV_CMD"][31001].label[6] = """Longitude"""
  2823. enums["MAV_CMD"][31001].param[7] = """Altitude (MSL)"""
  2824. enums["MAV_CMD"][31001].label[7] = """Altitude"""
  2825. MAV_CMD_WAYPOINT_USER_3 = 31002
  2826. 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.""")
  2827. enums["MAV_CMD"][31002].has_location = True
  2828. enums["MAV_CMD"][31002].param[1] = """User defined"""
  2829. enums["MAV_CMD"][31002].param[2] = """User defined"""
  2830. enums["MAV_CMD"][31002].param[3] = """User defined"""
  2831. enums["MAV_CMD"][31002].param[4] = """User defined"""
  2832. enums["MAV_CMD"][31002].param[5] = """Latitude unscaled"""
  2833. enums["MAV_CMD"][31002].label[5] = """Latitude"""
  2834. enums["MAV_CMD"][31002].param[6] = """Longitude unscaled"""
  2835. enums["MAV_CMD"][31002].label[6] = """Longitude"""
  2836. enums["MAV_CMD"][31002].param[7] = """Altitude (MSL)"""
  2837. enums["MAV_CMD"][31002].label[7] = """Altitude"""
  2838. MAV_CMD_WAYPOINT_USER_4 = 31003
  2839. 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.""")
  2840. enums["MAV_CMD"][31003].has_location = True
  2841. enums["MAV_CMD"][31003].param[1] = """User defined"""
  2842. enums["MAV_CMD"][31003].param[2] = """User defined"""
  2843. enums["MAV_CMD"][31003].param[3] = """User defined"""
  2844. enums["MAV_CMD"][31003].param[4] = """User defined"""
  2845. enums["MAV_CMD"][31003].param[5] = """Latitude unscaled"""
  2846. enums["MAV_CMD"][31003].label[5] = """Latitude"""
  2847. enums["MAV_CMD"][31003].param[6] = """Longitude unscaled"""
  2848. enums["MAV_CMD"][31003].label[6] = """Longitude"""
  2849. enums["MAV_CMD"][31003].param[7] = """Altitude (MSL)"""
  2850. enums["MAV_CMD"][31003].label[7] = """Altitude"""
  2851. MAV_CMD_WAYPOINT_USER_5 = 31004
  2852. 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.""")
  2853. enums["MAV_CMD"][31004].has_location = True
  2854. enums["MAV_CMD"][31004].param[1] = """User defined"""
  2855. enums["MAV_CMD"][31004].param[2] = """User defined"""
  2856. enums["MAV_CMD"][31004].param[3] = """User defined"""
  2857. enums["MAV_CMD"][31004].param[4] = """User defined"""
  2858. enums["MAV_CMD"][31004].param[5] = """Latitude unscaled"""
  2859. enums["MAV_CMD"][31004].label[5] = """Latitude"""
  2860. enums["MAV_CMD"][31004].param[6] = """Longitude unscaled"""
  2861. enums["MAV_CMD"][31004].label[6] = """Longitude"""
  2862. enums["MAV_CMD"][31004].param[7] = """Altitude (MSL)"""
  2863. enums["MAV_CMD"][31004].label[7] = """Altitude"""
  2864. MAV_CMD_SPATIAL_USER_1 = 31005
  2865. 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.""")
  2866. enums["MAV_CMD"][31005].has_location = True
  2867. enums["MAV_CMD"][31005].param[1] = """User defined"""
  2868. enums["MAV_CMD"][31005].param[2] = """User defined"""
  2869. enums["MAV_CMD"][31005].param[3] = """User defined"""
  2870. enums["MAV_CMD"][31005].param[4] = """User defined"""
  2871. enums["MAV_CMD"][31005].param[5] = """Latitude unscaled"""
  2872. enums["MAV_CMD"][31005].label[5] = """Latitude"""
  2873. enums["MAV_CMD"][31005].param[6] = """Longitude unscaled"""
  2874. enums["MAV_CMD"][31005].label[6] = """Longitude"""
  2875. enums["MAV_CMD"][31005].param[7] = """Altitude (MSL)"""
  2876. enums["MAV_CMD"][31005].label[7] = """Altitude"""
  2877. MAV_CMD_SPATIAL_USER_2 = 31006
  2878. 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.""")
  2879. enums["MAV_CMD"][31006].has_location = True
  2880. enums["MAV_CMD"][31006].param[1] = """User defined"""
  2881. enums["MAV_CMD"][31006].param[2] = """User defined"""
  2882. enums["MAV_CMD"][31006].param[3] = """User defined"""
  2883. enums["MAV_CMD"][31006].param[4] = """User defined"""
  2884. enums["MAV_CMD"][31006].param[5] = """Latitude unscaled"""
  2885. enums["MAV_CMD"][31006].label[5] = """Latitude"""
  2886. enums["MAV_CMD"][31006].param[6] = """Longitude unscaled"""
  2887. enums["MAV_CMD"][31006].label[6] = """Longitude"""
  2888. enums["MAV_CMD"][31006].param[7] = """Altitude (MSL)"""
  2889. enums["MAV_CMD"][31006].label[7] = """Altitude"""
  2890. MAV_CMD_SPATIAL_USER_3 = 31007
  2891. 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.""")
  2892. enums["MAV_CMD"][31007].has_location = True
  2893. enums["MAV_CMD"][31007].param[1] = """User defined"""
  2894. enums["MAV_CMD"][31007].param[2] = """User defined"""
  2895. enums["MAV_CMD"][31007].param[3] = """User defined"""
  2896. enums["MAV_CMD"][31007].param[4] = """User defined"""
  2897. enums["MAV_CMD"][31007].param[5] = """Latitude unscaled"""
  2898. enums["MAV_CMD"][31007].label[5] = """Latitude"""
  2899. enums["MAV_CMD"][31007].param[6] = """Longitude unscaled"""
  2900. enums["MAV_CMD"][31007].label[6] = """Longitude"""
  2901. enums["MAV_CMD"][31007].param[7] = """Altitude (MSL)"""
  2902. enums["MAV_CMD"][31007].label[7] = """Altitude"""
  2903. MAV_CMD_SPATIAL_USER_4 = 31008
  2904. 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.""")
  2905. enums["MAV_CMD"][31008].has_location = True
  2906. enums["MAV_CMD"][31008].param[1] = """User defined"""
  2907. enums["MAV_CMD"][31008].param[2] = """User defined"""
  2908. enums["MAV_CMD"][31008].param[3] = """User defined"""
  2909. enums["MAV_CMD"][31008].param[4] = """User defined"""
  2910. enums["MAV_CMD"][31008].param[5] = """Latitude unscaled"""
  2911. enums["MAV_CMD"][31008].label[5] = """Latitude"""
  2912. enums["MAV_CMD"][31008].param[6] = """Longitude unscaled"""
  2913. enums["MAV_CMD"][31008].label[6] = """Longitude"""
  2914. enums["MAV_CMD"][31008].param[7] = """Altitude (MSL)"""
  2915. enums["MAV_CMD"][31008].label[7] = """Altitude"""
  2916. MAV_CMD_SPATIAL_USER_5 = 31009
  2917. 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.""")
  2918. enums["MAV_CMD"][31009].has_location = True
  2919. enums["MAV_CMD"][31009].param[1] = """User defined"""
  2920. enums["MAV_CMD"][31009].param[2] = """User defined"""
  2921. enums["MAV_CMD"][31009].param[3] = """User defined"""
  2922. enums["MAV_CMD"][31009].param[4] = """User defined"""
  2923. enums["MAV_CMD"][31009].param[5] = """Latitude unscaled"""
  2924. enums["MAV_CMD"][31009].label[5] = """Latitude"""
  2925. enums["MAV_CMD"][31009].param[6] = """Longitude unscaled"""
  2926. enums["MAV_CMD"][31009].label[6] = """Longitude"""
  2927. enums["MAV_CMD"][31009].param[7] = """Altitude (MSL)"""
  2928. enums["MAV_CMD"][31009].label[7] = """Altitude"""
  2929. MAV_CMD_USER_1 = 31010
  2930. 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.""")
  2931. enums["MAV_CMD"][31010].param[1] = """User defined"""
  2932. enums["MAV_CMD"][31010].param[2] = """User defined"""
  2933. enums["MAV_CMD"][31010].param[3] = """User defined"""
  2934. enums["MAV_CMD"][31010].param[4] = """User defined"""
  2935. enums["MAV_CMD"][31010].param[5] = """User defined"""
  2936. enums["MAV_CMD"][31010].param[6] = """User defined"""
  2937. enums["MAV_CMD"][31010].param[7] = """User defined"""
  2938. MAV_CMD_USER_2 = 31011
  2939. 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.""")
  2940. enums["MAV_CMD"][31011].param[1] = """User defined"""
  2941. enums["MAV_CMD"][31011].param[2] = """User defined"""
  2942. enums["MAV_CMD"][31011].param[3] = """User defined"""
  2943. enums["MAV_CMD"][31011].param[4] = """User defined"""
  2944. enums["MAV_CMD"][31011].param[5] = """User defined"""
  2945. enums["MAV_CMD"][31011].param[6] = """User defined"""
  2946. enums["MAV_CMD"][31011].param[7] = """User defined"""
  2947. MAV_CMD_USER_3 = 31012
  2948. 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.""")
  2949. enums["MAV_CMD"][31012].param[1] = """User defined"""
  2950. enums["MAV_CMD"][31012].param[2] = """User defined"""
  2951. enums["MAV_CMD"][31012].param[3] = """User defined"""
  2952. enums["MAV_CMD"][31012].param[4] = """User defined"""
  2953. enums["MAV_CMD"][31012].param[5] = """User defined"""
  2954. enums["MAV_CMD"][31012].param[6] = """User defined"""
  2955. enums["MAV_CMD"][31012].param[7] = """User defined"""
  2956. MAV_CMD_USER_4 = 31013
  2957. 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.""")
  2958. enums["MAV_CMD"][31013].param[1] = """User defined"""
  2959. enums["MAV_CMD"][31013].param[2] = """User defined"""
  2960. enums["MAV_CMD"][31013].param[3] = """User defined"""
  2961. enums["MAV_CMD"][31013].param[4] = """User defined"""
  2962. enums["MAV_CMD"][31013].param[5] = """User defined"""
  2963. enums["MAV_CMD"][31013].param[6] = """User defined"""
  2964. enums["MAV_CMD"][31013].param[7] = """User defined"""
  2965. MAV_CMD_USER_5 = 31014
  2966. 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.""")
  2967. enums["MAV_CMD"][31014].param[1] = """User defined"""
  2968. enums["MAV_CMD"][31014].param[2] = """User defined"""
  2969. enums["MAV_CMD"][31014].param[3] = """User defined"""
  2970. enums["MAV_CMD"][31014].param[4] = """User defined"""
  2971. enums["MAV_CMD"][31014].param[5] = """User defined"""
  2972. enums["MAV_CMD"][31014].param[6] = """User defined"""
  2973. enums["MAV_CMD"][31014].param[7] = """User defined"""
  2974. MAV_CMD_CAN_FORWARD = 32000
  2975. 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""")
  2976. enums["MAV_CMD"][32000].param[1] = """Bus number (0 to disable forwarding, 1 for first bus, 2 for 2nd bus, 3 for 3rd bus)."""
  2977. enums["MAV_CMD"][32000].label[1] = """bus"""
  2978. enums["MAV_CMD"][32000].param[2] = """Empty."""
  2979. enums["MAV_CMD"][32000].param[3] = """Empty."""
  2980. enums["MAV_CMD"][32000].param[4] = """Empty."""
  2981. enums["MAV_CMD"][32000].param[5] = """Empty."""
  2982. enums["MAV_CMD"][32000].param[6] = """Empty."""
  2983. enums["MAV_CMD"][32000].param[7] = """Empty."""
  2984. MAV_CMD_FIXED_MAG_CAL_YAW = 42006
  2985. 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.""")
  2986. enums["MAV_CMD"][42006].param[1] = """Yaw of vehicle in earth frame."""
  2987. enums["MAV_CMD"][42006].label[1] = """Yaw"""
  2988. enums["MAV_CMD"][42006].param[2] = """CompassMask, 0 for all."""
  2989. enums["MAV_CMD"][42006].label[2] = """CompassMask"""
  2990. enums["MAV_CMD"][42006].param[3] = """Latitude."""
  2991. enums["MAV_CMD"][42006].label[3] = """Latitude"""
  2992. enums["MAV_CMD"][42006].param[4] = """Longitude."""
  2993. enums["MAV_CMD"][42006].label[4] = """Longitude"""
  2994. enums["MAV_CMD"][42006].param[5] = """Empty."""
  2995. enums["MAV_CMD"][42006].param[6] = """Empty."""
  2996. enums["MAV_CMD"][42006].param[7] = """Empty."""
  2997. MAV_CMD_DO_WINCH = 42600
  2998. enums["MAV_CMD"][42600] = EnumEntry("MAV_CMD_DO_WINCH", """Command to operate winch.""")
  2999. enums["MAV_CMD"][42600].param[1] = """Winch instance number."""
  3000. enums["MAV_CMD"][42600].label[1] = """Instance"""
  3001. enums["MAV_CMD"][42600].param[2] = """Action to perform."""
  3002. enums["MAV_CMD"][42600].label[2] = """Action"""
  3003. enums["MAV_CMD"][42600].param[3] = """Length of line to release (negative to wind)."""
  3004. enums["MAV_CMD"][42600].label[3] = """Length"""
  3005. enums["MAV_CMD"][42600].param[4] = """Release rate (negative to wind)."""
  3006. enums["MAV_CMD"][42600].label[4] = """Rate"""
  3007. enums["MAV_CMD"][42600].param[5] = """Empty."""
  3008. enums["MAV_CMD"][42600].param[6] = """Empty."""
  3009. enums["MAV_CMD"][42600].param[7] = """Empty."""
  3010. MAV_CMD_EXTERNAL_POSITION_ESTIMATE = 43003
  3011. 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.""")
  3012. enums["MAV_CMD"][43003].has_location = True
  3013. 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."""
  3014. enums["MAV_CMD"][43003].label[1] = """transmission_time"""
  3015. 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."""
  3016. enums["MAV_CMD"][43003].label[2] = """processing_time"""
  3017. enums["MAV_CMD"][43003].param[3] = """estimated one standard deviation accuracy of the measurement. Set to NaN if not known."""
  3018. enums["MAV_CMD"][43003].label[3] = """accuracy"""
  3019. enums["MAV_CMD"][43003].param[4] = """Empty"""
  3020. enums["MAV_CMD"][43003].param[5] = """Latitude"""
  3021. enums["MAV_CMD"][43003].label[5] = """Latitude"""
  3022. enums["MAV_CMD"][43003].param[6] = """Longitude"""
  3023. enums["MAV_CMD"][43003].label[6] = """Longitude"""
  3024. enums["MAV_CMD"][43003].param[7] = """Altitude, not used. Should be sent as NaN. May be supported in a future version of this message."""
  3025. enums["MAV_CMD"][43003].label[7] = """Altitude"""
  3026. VKFLY_CMD_NAV_WP = 44010
  3027. enums["MAV_CMD"][44010] = EnumEntry("VKFLY_CMD_NAV_WP", """VKFLY custom takephoto waypoint commond.""")
  3028. enums["MAV_CMD"][44010].has_location = True
  3029. enums["MAV_CMD"][44010].param[1] = """ """
  3030. enums["MAV_CMD"][44010].label[1] = """Hold Time And Speed"""
  3031. enums["MAV_CMD"][44010].param[2] = """ """
  3032. enums["MAV_CMD"][44010].label[2] = """Photo Ctl"""
  3033. enums["MAV_CMD"][44010].param[3] = """ """
  3034. enums["MAV_CMD"][44010].label[3] = """Gimbal Ctl"""
  3035. enums["MAV_CMD"][44010].param[4] = """Yaw control mode"""
  3036. enums["MAV_CMD"][44010].label[4] = """Yaw Mode"""
  3037. enums["MAV_CMD"][44010].param[5] = """Latitude"""
  3038. enums["MAV_CMD"][44010].label[5] = """Latitude"""
  3039. enums["MAV_CMD"][44010].param[6] = """Longitude"""
  3040. enums["MAV_CMD"][44010].label[6] = """Longitude"""
  3041. enums["MAV_CMD"][44010].param[7] = """Altitude"""
  3042. enums["MAV_CMD"][44010].label[7] = """Altitude"""
  3043. VKFLY_CMD_NAV_WP_THROW = 44011
  3044. enums["MAV_CMD"][44011] = EnumEntry("VKFLY_CMD_NAV_WP_THROW", """VKFLY custom throwing waypoint command. """)
  3045. enums["MAV_CMD"][44011].has_location = True
  3046. enums["MAV_CMD"][44011].param[1] = """ """
  3047. enums["MAV_CMD"][44011].label[1] = """Hold Time And Speed"""
  3048. enums["MAV_CMD"][44011].param[2] = """"""
  3049. enums["MAV_CMD"][44011].label[2] = """Throw ParamA"""
  3050. enums["MAV_CMD"][44011].param[3] = """Reserved."""
  3051. enums["MAV_CMD"][44011].label[3] = """Throw ParamB"""
  3052. enums["MAV_CMD"][44011].param[4] = """Yaw control mode."""
  3053. enums["MAV_CMD"][44011].label[4] = """Yaw Mode"""
  3054. enums["MAV_CMD"][44011].param[5] = """Latitude"""
  3055. enums["MAV_CMD"][44011].label[5] = """Latitude"""
  3056. enums["MAV_CMD"][44011].param[6] = """Longitude"""
  3057. enums["MAV_CMD"][44011].label[6] = """Longitude"""
  3058. enums["MAV_CMD"][44011].param[7] = """Altitude"""
  3059. enums["MAV_CMD"][44011].label[7] = """Altitude"""
  3060. VKFLY_CMD_NAV_WP_ORBIT_DO_PHOTO = 44012
  3061. enums["MAV_CMD"][44012] = EnumEntry("VKFLY_CMD_NAV_WP_ORBIT_DO_PHOTO", """VLFLY Custom orbit waypoint """)
  3062. enums["MAV_CMD"][44012].has_location = True
  3063. enums["MAV_CMD"][44012].param[1] = """ """
  3064. enums["MAV_CMD"][44012].label[1] = """Radius And Speed"""
  3065. enums["MAV_CMD"][44012].param[2] = """ """
  3066. enums["MAV_CMD"][44012].label[2] = """Photo Ctl"""
  3067. enums["MAV_CMD"][44012].param[3] = """ """
  3068. enums["MAV_CMD"][44012].label[3] = """Times And Orbit Speed"""
  3069. enums["MAV_CMD"][44012].param[4] = """ """
  3070. enums["MAV_CMD"][44012].label[4] = """Yaw Mode"""
  3071. enums["MAV_CMD"][44012].param[5] = """Latitude"""
  3072. enums["MAV_CMD"][44012].label[5] = """Latitude"""
  3073. enums["MAV_CMD"][44012].param[6] = """Longitude"""
  3074. enums["MAV_CMD"][44012].label[6] = """Longitude"""
  3075. enums["MAV_CMD"][44012].param[7] = """Altitude"""
  3076. enums["MAV_CMD"][44012].label[7] = """Altitude"""
  3077. VKFLY_CMD_NAV_EDU_TRAINING = 44013
  3078. enums["MAV_CMD"][44013] = EnumEntry("VKFLY_CMD_NAV_EDU_TRAINING", """VLFLY Custom orbit waypoint """)
  3079. enums["MAV_CMD"][44013].has_location = True
  3080. enums["MAV_CMD"][44013].param[1] = """ """
  3081. enums["MAV_CMD"][44013].label[1] = """Hold Time And Speed"""
  3082. enums["MAV_CMD"][44013].param[2] = """ """
  3083. enums["MAV_CMD"][44013].label[2] = """Alt Mode And Speed"""
  3084. enums["MAV_CMD"][44013].param[3] = """ """
  3085. enums["MAV_CMD"][44013].label[3] = """Param3"""
  3086. enums["MAV_CMD"][44013].param[4] = """ """
  3087. enums["MAV_CMD"][44013].label[4] = """Yaw Mode"""
  3088. enums["MAV_CMD"][44013].param[5] = """Latitude"""
  3089. enums["MAV_CMD"][44013].label[5] = """Latitude"""
  3090. enums["MAV_CMD"][44013].param[6] = """Longitude"""
  3091. enums["MAV_CMD"][44013].label[6] = """Longitude"""
  3092. enums["MAV_CMD"][44013].param[7] = """Altitude"""
  3093. enums["MAV_CMD"][44013].label[7] = """Altitude"""
  3094. VKFLY_CMD_MOUNT_CTRL = 44030
  3095. enums["MAV_CMD"][44030] = EnumEntry("VKFLY_CMD_MOUNT_CTRL", """VLFLY Custom orbit waypoint """)
  3096. enums["MAV_CMD"][44030].has_location = True
  3097. enums["MAV_CMD"][44030].param[1] = """ """
  3098. enums["MAV_CMD"][44030].param[2] = """ """
  3099. enums["MAV_CMD"][44030].label[2] = """CTRL """
  3100. enums["MAV_CMD"][44030].param[3] = """ """
  3101. enums["MAV_CMD"][44030].label[3] = """Times And Orbit Speed"""
  3102. enums["MAV_CMD"][44030].param[4] = """ """
  3103. enums["MAV_CMD"][44030].label[4] = """Yaw Mode"""
  3104. enums["MAV_CMD"][44030].param[5] = """Latitude"""
  3105. enums["MAV_CMD"][44030].label[5] = """Latitude"""
  3106. enums["MAV_CMD"][44030].param[6] = """Longitude"""
  3107. enums["MAV_CMD"][44030].label[6] = """Longitude"""
  3108. enums["MAV_CMD"][44030].param[7] = """Altitude"""
  3109. enums["MAV_CMD"][44030].label[7] = """Altitude"""
  3110. VKFLY_CMD_FORMATION_FLY = 44031
  3111. enums["MAV_CMD"][44031] = EnumEntry("VKFLY_CMD_FORMATION_FLY", """Formation fly assemble, disband or change formation""")
  3112. enums["MAV_CMD"][44031].param[1] = """1 means assemble, 2 means quit, 3 means change formation"""
  3113. enums["MAV_CMD"][44031].label[1] = """action"""
  3114. enums["MAV_CMD"][44031].param[2] = """"""
  3115. enums["MAV_CMD"][44031].label[2] = """form_type"""
  3116. enums["MAV_CMD"][44031].param[3] = """"""
  3117. enums["MAV_CMD"][44031].label[3] = """rect_col_num"""
  3118. enums["MAV_CMD"][44031].param[4] = """"""
  3119. enums["MAV_CMD"][44031].label[4] = """lock_head"""
  3120. enums["MAV_CMD"][44031].param[5] = """"""
  3121. enums["MAV_CMD"][44031].label[5] = """x_dist"""
  3122. enums["MAV_CMD"][44031].param[6] = """"""
  3123. enums["MAV_CMD"][44031].label[6] = """y_dist"""
  3124. enums["MAV_CMD"][44031].param[7] = """"""
  3125. enums["MAV_CMD"][44031].label[7] = """z_dist"""
  3126. VKFLY_CMD_ESC_CONFIG = 44050
  3127. enums["MAV_CMD"][44050] = EnumEntry("VKFLY_CMD_ESC_CONFIG", """can esc id configuration""")
  3128. enums["MAV_CMD"][44050].param[1] = """ Set Esc id, minValue=1, maxValue=16 """
  3129. enums["MAV_CMD"][44050].label[1] = """Set ID"""
  3130. enums["MAV_CMD"][44050].param[2] = """ """
  3131. enums["MAV_CMD"][44050].param[3] = """ """
  3132. enums["MAV_CMD"][44050].param[4] = """ """
  3133. enums["MAV_CMD"][44050].param[5] = """ """
  3134. enums["MAV_CMD"][44050].param[6] = """ """
  3135. enums["MAV_CMD"][44050].param[7] = """ """
  3136. VKFLY_CMD_RFD_CONFIG = 44051
  3137. enums["MAV_CMD"][44051] = EnumEntry("VKFLY_CMD_RFD_CONFIG", """can esc id configuration""")
  3138. enums["MAV_CMD"][44051].param[1] = """ target component id """
  3139. enums["MAV_CMD"][44051].label[1] = """Target component"""
  3140. enums["MAV_CMD"][44051].param[2] = """ set blind zone, NAN means ignore """
  3141. enums["MAV_CMD"][44051].label[2] = """Set blind zone"""
  3142. enums["MAV_CMD"][44051].param[3] = """ set max range, NAN means ignore """
  3143. enums["MAV_CMD"][44051].label[3] = """Set max range"""
  3144. enums["MAV_CMD"][44051].param[4] = """ """
  3145. enums["MAV_CMD"][44051].param[5] = """ """
  3146. enums["MAV_CMD"][44051].param[6] = """ """
  3147. enums["MAV_CMD"][44051].param[7] = """ """
  3148. VKFLY_CMD_VINS_CONFIG = 44052
  3149. enums["MAV_CMD"][44052] = EnumEntry("VKFLY_CMD_VINS_CONFIG", """VK vins module configuration""")
  3150. enums["MAV_CMD"][44052].param[1] = """Refer to VKFLY_VINS_CONFIG_ACT"""
  3151. enums["MAV_CMD"][44052].label[1] = """VK vins config action"""
  3152. enums["MAV_CMD"][44052].param[2] = """ """
  3153. enums["MAV_CMD"][44052].param[3] = """ """
  3154. enums["MAV_CMD"][44052].param[4] = """ """
  3155. enums["MAV_CMD"][44052].param[5] = """ """
  3156. enums["MAV_CMD"][44052].param[6] = """ """
  3157. enums["MAV_CMD"][44052].param[7] = """Reserved (default:0)"""
  3158. VKFLY_CMD_DO_REPOSITION_THAN_THROW = 44060
  3159. enums["MAV_CMD"][44060] = EnumEntry("VKFLY_CMD_DO_REPOSITION_THAN_THROW", """Do reposition and throwing""")
  3160. enums["MAV_CMD"][44060].has_location = True
  3161. enums["MAV_CMD"][44060].param[1] = """ Throw servo id bitmap """
  3162. enums["MAV_CMD"][44060].label[1] = """Throw servo id"""
  3163. enums["MAV_CMD"][44060].param[2] = """ """
  3164. enums["MAV_CMD"][44060].label[2] = """Throw altitude"""
  3165. enums["MAV_CMD"][44060].param[3] = """ """
  3166. enums["MAV_CMD"][44060].label[3] = """Speed"""
  3167. enums["MAV_CMD"][44060].param[4] = """ """
  3168. enums["MAV_CMD"][44060].label[4] = """Yaw"""
  3169. enums["MAV_CMD"][44060].param[5] = """ """
  3170. enums["MAV_CMD"][44060].label[5] = """Latitude"""
  3171. enums["MAV_CMD"][44060].param[6] = """ """
  3172. enums["MAV_CMD"][44060].label[6] = """Longitude"""
  3173. enums["MAV_CMD"][44060].param[7] = """ """
  3174. enums["MAV_CMD"][44060].label[7] = """Altitude"""
  3175. VKFLY_CMD_DO_REPOSITION_THAN_LAND = 44061
  3176. enums["MAV_CMD"][44061] = EnumEntry("VKFLY_CMD_DO_REPOSITION_THAN_LAND", """Do reposition and throwing""")
  3177. enums["MAV_CMD"][44061].has_location = True
  3178. enums["MAV_CMD"][44061].param[1] = """ Ground msl altitude"""
  3179. enums["MAV_CMD"][44061].label[1] = """Groud Msl"""
  3180. enums["MAV_CMD"][44061].param[2] = """ """
  3181. enums["MAV_CMD"][44061].param[3] = """ """
  3182. enums["MAV_CMD"][44061].label[3] = """Speed"""
  3183. enums["MAV_CMD"][44061].param[4] = """ """
  3184. enums["MAV_CMD"][44061].label[4] = """Yaw"""
  3185. enums["MAV_CMD"][44061].param[5] = """ """
  3186. enums["MAV_CMD"][44061].label[5] = """Latitude"""
  3187. enums["MAV_CMD"][44061].param[6] = """ """
  3188. enums["MAV_CMD"][44061].label[6] = """Longitude"""
  3189. enums["MAV_CMD"][44061].param[7] = """ """
  3190. enums["MAV_CMD"][44061].label[7] = """Altitude"""
  3191. VKFLY_CMD_MISSION_START = 44062
  3192. enums["MAV_CMD"][44062] = EnumEntry("VKFLY_CMD_MISSION_START", """Start mission""")
  3193. enums["MAV_CMD"][44062].param[1] = """start sequence of mission"""
  3194. enums["MAV_CMD"][44062].label[1] = """Start Seq"""
  3195. enums["MAV_CMD"][44062].param[2] = """ """
  3196. enums["MAV_CMD"][44062].label[2] = """Mission Exec Mode"""
  3197. enums["MAV_CMD"][44062].param[3] = """ """
  3198. enums["MAV_CMD"][44062].label[3] = """Mission Done Action"""
  3199. enums["MAV_CMD"][44062].param[4] = """ """
  3200. enums["MAV_CMD"][44062].param[5] = """ """
  3201. enums["MAV_CMD"][44062].param[6] = """ """
  3202. enums["MAV_CMD"][44062].param[7] = """ """
  3203. VKFLY_CMD_RETURN_TO_LAUCH = 44063
  3204. enums["MAV_CMD"][44063] = EnumEntry("VKFLY_CMD_RETURN_TO_LAUCH", """Return to launch position than land""")
  3205. enums["MAV_CMD"][44063].param[1] = """start sequence of mission"""
  3206. enums["MAV_CMD"][44063].label[1] = """Start Seq"""
  3207. enums["MAV_CMD"][44063].param[2] = """ """
  3208. enums["MAV_CMD"][44063].label[2] = """Rtl Exec Mode"""
  3209. enums["MAV_CMD"][44063].param[3] = """ """
  3210. enums["MAV_CMD"][44063].param[4] = """ """
  3211. enums["MAV_CMD"][44063].param[5] = """ """
  3212. enums["MAV_CMD"][44063].param[6] = """ """
  3213. enums["MAV_CMD"][44063].param[7] = """ """
  3214. VKFLY_CMD_WEIGHER_CONFIG = 44064
  3215. enums["MAV_CMD"][44064] = EnumEntry("VKFLY_CMD_WEIGHER_CONFIG", """Weigher config command""")
  3216. enums["MAV_CMD"][44064].param[
  3217. 1
  3218. ] = """NAN means invalid. Other positive value means the
  3219. actual weight"""
  3220. enums["MAV_CMD"][44064].label[1] = """Weight Calibrate"""
  3221. enums["MAV_CMD"][44064].param[2] = """NAN means invalid. 1 means do factory reset."""
  3222. enums["MAV_CMD"][44064].label[2] = """Factory Reset"""
  3223. enums["MAV_CMD"][44064].param[3] = """NAN means invalid. 1 means do eft fuse break."""
  3224. enums["MAV_CMD"][44064].label[3] = """Fuse Break"""
  3225. enums["MAV_CMD"][44064].param[
  3226. 4
  3227. ] = """NAN mean invalid.
  3228. 1 means do release hook, 2 means restart hook, 3 means stop """
  3229. enums["MAV_CMD"][44064].label[4] = """Release Hook"""
  3230. enums["MAV_CMD"][44064].param[
  3231. 5
  3232. ] = """NAN
  3233. mean invalid. """
  3234. enums["MAV_CMD"][44064].label[5] = """Weigher Orientation"""
  3235. enums["MAV_CMD"][44064].param[6] = """ """
  3236. enums["MAV_CMD"][44064].param[7] = """ """
  3237. VKFLY_CMD_DO_FIXEDWING_ACTUATOR_CHECK = 44065
  3238. enums["MAV_CMD"][44065] = EnumEntry("VKFLY_CMD_DO_FIXEDWING_ACTUATOR_CHECK", """Check fixedwing servos.""")
  3239. enums["MAV_CMD"][44065].param[
  3240. 1
  3241. ] = """NAN means ignore.0 do all
  3242. mid, 1 do roll mid, 2 do roll right, 3 do roll left, 4 do pitch mid, 5 do pitch up, 6 do
  3243. pitch down, 7 do yaw mid, 8 do yaw right, 9 do yaw down."""
  3244. enums["MAV_CMD"][44065].label[1] = """actuator check"""
  3245. enums["MAV_CMD"][44065].param[
  3246. 2
  3247. ] = """ NAN means ignore. -1
  3248. throttle off, 0 throttle idle, 100 throttle full """
  3249. enums["MAV_CMD"][44065].label[2] = """throttle check"""
  3250. enums["MAV_CMD"][44065].param[3] = """ """
  3251. enums["MAV_CMD"][44065].param[4] = """ """
  3252. enums["MAV_CMD"][44065].param[5] = """ """
  3253. enums["MAV_CMD"][44065].param[6] = """ """
  3254. enums["MAV_CMD"][44065].param[7] = """ """
  3255. VKFLY_CMD_SET_RTL_CIRCLE_WP = 44066
  3256. enums["MAV_CMD"][44066] = EnumEntry("VKFLY_CMD_SET_RTL_CIRCLE_WP", """Set return circle point.""")
  3257. enums["MAV_CMD"][44066].has_location = True
  3258. enums["MAV_CMD"][44066].param[
  3259. 1
  3260. ] = """NAN means use default circle radius. Positive value means
  3261. circle
  3262. in clockwise."""
  3263. enums["MAV_CMD"][44066].label[1] = """Radius"""
  3264. enums["MAV_CMD"][44066].param[
  3265. 2
  3266. ] = """ NAN means ignore. 1 means do goto rtl circle point right
  3267. now.
  3268. """
  3269. enums["MAV_CMD"][44066].label[2] = """DoNow"""
  3270. enums["MAV_CMD"][44066].param[3] = """ """
  3271. enums["MAV_CMD"][44066].param[4] = """ """
  3272. enums["MAV_CMD"][44066].param[5] = """ """
  3273. enums["MAV_CMD"][44066].label[5] = """Latitude"""
  3274. enums["MAV_CMD"][44066].param[6] = """ """
  3275. enums["MAV_CMD"][44066].label[6] = """Longitude"""
  3276. enums["MAV_CMD"][44066].param[7] = """ """
  3277. enums["MAV_CMD"][44066].label[7] = """Alt"""
  3278. VKFLY_CMD_MISSION_START_EDU_TRAINING = 44067
  3279. enums["MAV_CMD"][44067] = EnumEntry("VKFLY_CMD_MISSION_START_EDU_TRAINING", """Start mission""")
  3280. enums["MAV_CMD"][44067].param[1] = """start sequence of mission"""
  3281. enums["MAV_CMD"][44067].label[1] = """Start Seq"""
  3282. enums["MAV_CMD"][44067].param[2] = """ """
  3283. enums["MAV_CMD"][44067].label[2] = """Loop Count"""
  3284. enums["MAV_CMD"][44067].param[3] = """ """
  3285. enums["MAV_CMD"][44067].label[3] = """Mission Done Action"""
  3286. enums["MAV_CMD"][44067].param[4] = """ """
  3287. enums["MAV_CMD"][44067].param[5] = """ """
  3288. enums["MAV_CMD"][44067].param[6] = """ """
  3289. enums["MAV_CMD"][44067].param[7] = """ """
  3290. VKFLY_CMD_RESUME_WP_ALT = 44068
  3291. enums["MAV_CMD"][44068] = EnumEntry("VKFLY_CMD_RESUME_WP_ALT", """Start mission""")
  3292. enums["MAV_CMD"][44068].param[
  3293. 1
  3294. ] = """resume wp altitude and disable rc
  3295. aux"""
  3296. enums["MAV_CMD"][44068].label[1] = """disable"""
  3297. enums["MAV_CMD"][44068].param[2] = """"""
  3298. enums["MAV_CMD"][44068].param[3] = """"""
  3299. enums["MAV_CMD"][44068].param[4] = """"""
  3300. enums["MAV_CMD"][44068].param[5] = """"""
  3301. enums["MAV_CMD"][44068].param[6] = """"""
  3302. enums["MAV_CMD"][44068].param[7] = """"""
  3303. VKFLY_CMD_EXT_NAV_CFG = 44069
  3304. enums["MAV_CMD"][44069] = EnumEntry("VKFLY_CMD_EXT_NAV_CFG", """Start mission""")
  3305. enums["MAV_CMD"][44069].param[1] = """"""
  3306. enums["MAV_CMD"][44069].label[1] = """conf"""
  3307. enums["MAV_CMD"][44069].param[2] = """"""
  3308. enums["MAV_CMD"][44069].label[2] = """type"""
  3309. enums["MAV_CMD"][44069].param[3] = """"""
  3310. enums["MAV_CMD"][44069].param[4] = """"""
  3311. enums["MAV_CMD"][44069].param[5] = """"""
  3312. enums["MAV_CMD"][44069].param[6] = """"""
  3313. enums["MAV_CMD"][44069].param[7] = """"""
  3314. VKFLY_CMD_DO_REPOSITION = 44070
  3315. enums["MAV_CMD"][44070] = EnumEntry("VKFLY_CMD_DO_REPOSITION", """Do reposition""")
  3316. enums["MAV_CMD"][44070].has_location = True
  3317. enums["MAV_CMD"][44070].param[1] = """"""
  3318. enums["MAV_CMD"][44070].param[2] = """"""
  3319. enums["MAV_CMD"][44070].param[3] = """"""
  3320. enums["MAV_CMD"][44070].param[4] = """ NAN means ignore """
  3321. enums["MAV_CMD"][44070].label[4] = """yaw"""
  3322. enums["MAV_CMD"][44070].param[5] = """ NAN means ignore """
  3323. enums["MAV_CMD"][44070].label[5] = """x"""
  3324. enums["MAV_CMD"][44070].param[6] = """ NAN means ignore """
  3325. enums["MAV_CMD"][44070].label[6] = """y"""
  3326. enums["MAV_CMD"][44070].param[7] = """ NAN means ignore """
  3327. enums["MAV_CMD"][44070].label[7] = """z"""
  3328. VKFLY_CMD_DYNAMIC_ACT = 44071
  3329. enums["MAV_CMD"][44071] = EnumEntry("VKFLY_CMD_DYNAMIC_ACT", """Vehicle act""")
  3330. enums["MAV_CMD"][44071].has_location = True
  3331. enums["MAV_CMD"][44071].param[
  3332. 1
  3333. ] = """NAN means ignore.0 do
  3334. dynamic_takeoff,
  3335. 1 do dynamic_land, 2 do dynamic_follow"""
  3336. enums["MAV_CMD"][44071].label[1] = """action"""
  3337. enums["MAV_CMD"][44071].param[2] = """"""
  3338. enums["MAV_CMD"][44071].param[3] = """"""
  3339. enums["MAV_CMD"][44071].param[4] = """"""
  3340. enums["MAV_CMD"][44071].param[5] = """"""
  3341. enums["MAV_CMD"][44071].param[6] = """"""
  3342. enums["MAV_CMD"][44071].param[7] = """"""
  3343. VKFLY_CMD_DO_REPOSITION_THAN_DO_PARACHUTE = 44072
  3344. enums["MAV_CMD"][44072] = EnumEntry("VKFLY_CMD_DO_REPOSITION_THAN_DO_PARACHUTE", """Do reposition then deploy parachute""")
  3345. enums["MAV_CMD"][44072].has_location = True
  3346. enums["MAV_CMD"][44072].param[1] = """Deploy distance"""
  3347. enums["MAV_CMD"][44072].param[2] = """ """
  3348. enums["MAV_CMD"][44072].param[3] = """ """
  3349. enums["MAV_CMD"][44072].label[3] = """Speed"""
  3350. enums["MAV_CMD"][44072].param[4] = """ """
  3351. enums["MAV_CMD"][44072].param[5] = """ """
  3352. enums["MAV_CMD"][44072].label[5] = """Latitude"""
  3353. enums["MAV_CMD"][44072].param[6] = """ """
  3354. enums["MAV_CMD"][44072].label[6] = """Longitude"""
  3355. enums["MAV_CMD"][44072].param[7] = """ """
  3356. enums["MAV_CMD"][44072].label[7] = """Altitude"""
  3357. VKFLY_CMD_CLEAR_SERVO_DISPALY = 44073
  3358. enums["MAV_CMD"][44073] = EnumEntry("VKFLY_CMD_CLEAR_SERVO_DISPALY", """Vehicle act""")
  3359. enums["MAV_CMD"][44073].param[
  3360. 1
  3361. ] = """NAN means ignore. 1 means
  3362. clear servo status dispaly"""
  3363. enums["MAV_CMD"][44073].label[1] = """clear dispaly"""
  3364. enums["MAV_CMD"][44073].param[2] = """"""
  3365. enums["MAV_CMD"][44073].param[3] = """"""
  3366. enums["MAV_CMD"][44073].param[4] = """"""
  3367. enums["MAV_CMD"][44073].param[5] = """"""
  3368. enums["MAV_CMD"][44073].param[6] = """"""
  3369. enums["MAV_CMD"][44073].param[7] = """"""
  3370. VKFLY_CMD_DESCENDER_CONFIG = 44074
  3371. enums["MAV_CMD"][44074] = EnumEntry("VKFLY_CMD_DESCENDER_CONFIG", """descender ctl""")
  3372. enums["MAV_CMD"][44074].param[
  3373. 1
  3374. ] = """NAN means invalid. 0 means safe_state_switch
  3375. 1 means direct act,2 means mode act"""
  3376. enums["MAV_CMD"][44074].label[1] = """act_option"""
  3377. enums["MAV_CMD"][44074].param[
  3378. 2
  3379. ] = """NAN means invalid. 0 means safe_state off
  3380. 1 means safe_state on"""
  3381. enums["MAV_CMD"][44074].label[2] = """safe_state"""
  3382. enums["MAV_CMD"][44074].param[
  3383. 3
  3384. ] = """NAN means invalid. 0 means emergency_stop
  3385. 1 means Rope Retract to Top, 2 means Rope Extend to Bottom"""
  3386. enums["MAV_CMD"][44074].label[3] = """direct act"""
  3387. enums["MAV_CMD"][44074].param[
  3388. 4
  3389. ] = """NAN means invalid. 0 means length_ctl
  3390. 1 means vel_ctl"""
  3391. enums["MAV_CMD"][44074].label[4] = """quick act_mode"""
  3392. enums["MAV_CMD"][44074].param[5] = """ NAN means invalid."""
  3393. enums["MAV_CMD"][44074].label[5] = """act_param"""
  3394. enums["MAV_CMD"][44074].param[6] = """Reserved (default:0)"""
  3395. enums["MAV_CMD"][44074].param[7] = """Reserved (default:0)"""
  3396. MAV_CMD_ENUM_END = 44075
  3397. enums["MAV_CMD"][44075] = EnumEntry("MAV_CMD_ENUM_END", """""")
  3398. # FIRMWARE_VERSION_TYPE
  3399. enums["FIRMWARE_VERSION_TYPE"] = Enum()
  3400. enums["FIRMWARE_VERSION_TYPE"].bitmask = False
  3401. FIRMWARE_VERSION_TYPE_DEV = 0
  3402. enums["FIRMWARE_VERSION_TYPE"][0] = EnumEntry("FIRMWARE_VERSION_TYPE_DEV", """development release""")
  3403. FIRMWARE_VERSION_TYPE_ALPHA = 64
  3404. enums["FIRMWARE_VERSION_TYPE"][64] = EnumEntry("FIRMWARE_VERSION_TYPE_ALPHA", """alpha release""")
  3405. FIRMWARE_VERSION_TYPE_BETA = 128
  3406. enums["FIRMWARE_VERSION_TYPE"][128] = EnumEntry("FIRMWARE_VERSION_TYPE_BETA", """beta release""")
  3407. FIRMWARE_VERSION_TYPE_RC = 192
  3408. enums["FIRMWARE_VERSION_TYPE"][192] = EnumEntry("FIRMWARE_VERSION_TYPE_RC", """release candidate""")
  3409. FIRMWARE_VERSION_TYPE_OFFICIAL = 255
  3410. enums["FIRMWARE_VERSION_TYPE"][255] = EnumEntry("FIRMWARE_VERSION_TYPE_OFFICIAL", """official stable release""")
  3411. FIRMWARE_VERSION_TYPE_ENUM_END = 256
  3412. enums["FIRMWARE_VERSION_TYPE"][256] = EnumEntry("FIRMWARE_VERSION_TYPE_ENUM_END", """""")
  3413. # HL_FAILURE_FLAG
  3414. enums["HL_FAILURE_FLAG"] = Enum()
  3415. enums["HL_FAILURE_FLAG"].bitmask = True
  3416. HL_FAILURE_FLAG_GPS = 1
  3417. enums["HL_FAILURE_FLAG"][1] = EnumEntry("HL_FAILURE_FLAG_GPS", """GPS failure.""")
  3418. HL_FAILURE_FLAG_DIFFERENTIAL_PRESSURE = 2
  3419. enums["HL_FAILURE_FLAG"][2] = EnumEntry("HL_FAILURE_FLAG_DIFFERENTIAL_PRESSURE", """Differential pressure sensor failure.""")
  3420. HL_FAILURE_FLAG_ABSOLUTE_PRESSURE = 4
  3421. enums["HL_FAILURE_FLAG"][4] = EnumEntry("HL_FAILURE_FLAG_ABSOLUTE_PRESSURE", """Absolute pressure sensor failure.""")
  3422. HL_FAILURE_FLAG_3D_ACCEL = 8
  3423. enums["HL_FAILURE_FLAG"][8] = EnumEntry("HL_FAILURE_FLAG_3D_ACCEL", """Accelerometer sensor failure.""")
  3424. HL_FAILURE_FLAG_3D_GYRO = 16
  3425. enums["HL_FAILURE_FLAG"][16] = EnumEntry("HL_FAILURE_FLAG_3D_GYRO", """Gyroscope sensor failure.""")
  3426. HL_FAILURE_FLAG_3D_MAG = 32
  3427. enums["HL_FAILURE_FLAG"][32] = EnumEntry("HL_FAILURE_FLAG_3D_MAG", """Magnetometer sensor failure.""")
  3428. HL_FAILURE_FLAG_TERRAIN = 64
  3429. enums["HL_FAILURE_FLAG"][64] = EnumEntry("HL_FAILURE_FLAG_TERRAIN", """Terrain subsystem failure.""")
  3430. HL_FAILURE_FLAG_BATTERY = 128
  3431. enums["HL_FAILURE_FLAG"][128] = EnumEntry("HL_FAILURE_FLAG_BATTERY", """Battery failure/critical low battery.""")
  3432. HL_FAILURE_FLAG_RC_RECEIVER = 256
  3433. enums["HL_FAILURE_FLAG"][256] = EnumEntry("HL_FAILURE_FLAG_RC_RECEIVER", """RC receiver failure/no RC connection.""")
  3434. HL_FAILURE_FLAG_OFFBOARD_LINK = 512
  3435. enums["HL_FAILURE_FLAG"][512] = EnumEntry("HL_FAILURE_FLAG_OFFBOARD_LINK", """Offboard link failure.""")
  3436. HL_FAILURE_FLAG_ENGINE = 1024
  3437. enums["HL_FAILURE_FLAG"][1024] = EnumEntry("HL_FAILURE_FLAG_ENGINE", """Engine failure.""")
  3438. HL_FAILURE_FLAG_GEOFENCE = 2048
  3439. enums["HL_FAILURE_FLAG"][2048] = EnumEntry("HL_FAILURE_FLAG_GEOFENCE", """Geofence violation.""")
  3440. HL_FAILURE_FLAG_ESTIMATOR = 4096
  3441. enums["HL_FAILURE_FLAG"][4096] = EnumEntry("HL_FAILURE_FLAG_ESTIMATOR", """Estimator failure, for example measurement rejection or large variances.""")
  3442. HL_FAILURE_FLAG_MISSION = 8192
  3443. enums["HL_FAILURE_FLAG"][8192] = EnumEntry("HL_FAILURE_FLAG_MISSION", """Mission failure.""")
  3444. HL_FAILURE_FLAG_ENUM_END = 8193
  3445. enums["HL_FAILURE_FLAG"][8193] = EnumEntry("HL_FAILURE_FLAG_ENUM_END", """""")
  3446. # MAV_GOTO
  3447. enums["MAV_GOTO"] = Enum()
  3448. enums["MAV_GOTO"].bitmask = False
  3449. MAV_GOTO_DO_HOLD = 0
  3450. enums["MAV_GOTO"][0] = EnumEntry("MAV_GOTO_DO_HOLD", """Hold at the current position.""")
  3451. MAV_GOTO_DO_CONTINUE = 1
  3452. enums["MAV_GOTO"][1] = EnumEntry("MAV_GOTO_DO_CONTINUE", """Continue with the next item in mission execution.""")
  3453. MAV_GOTO_HOLD_AT_CURRENT_POSITION = 2
  3454. enums["MAV_GOTO"][2] = EnumEntry("MAV_GOTO_HOLD_AT_CURRENT_POSITION", """Hold at the current position of the system""")
  3455. MAV_GOTO_HOLD_AT_SPECIFIED_POSITION = 3
  3456. enums["MAV_GOTO"][3] = EnumEntry("MAV_GOTO_HOLD_AT_SPECIFIED_POSITION", """Hold at the position specified in the parameters of the DO_HOLD action""")
  3457. MAV_GOTO_ENUM_END = 4
  3458. enums["MAV_GOTO"][4] = EnumEntry("MAV_GOTO_ENUM_END", """""")
  3459. # MAV_MODE
  3460. enums["MAV_MODE"] = Enum()
  3461. enums["MAV_MODE"].bitmask = False
  3462. MAV_MODE_PREFLIGHT = 0
  3463. enums["MAV_MODE"][0] = EnumEntry("MAV_MODE_PREFLIGHT", """System is not ready to fly, booting, calibrating, etc. No flag is set.""")
  3464. MAV_MODE_MANUAL_DISARMED = 64
  3465. enums["MAV_MODE"][64] = EnumEntry("MAV_MODE_MANUAL_DISARMED", """System is allowed to be active, under manual (RC) control, no stabilization""")
  3466. MAV_MODE_TEST_DISARMED = 66
  3467. enums["MAV_MODE"][66] = EnumEntry("MAV_MODE_TEST_DISARMED", """UNDEFINED mode. This solely depends on the autopilot - use with caution, intended for developers only.""")
  3468. MAV_MODE_STABILIZE_DISARMED = 80
  3469. enums["MAV_MODE"][80] = EnumEntry("MAV_MODE_STABILIZE_DISARMED", """System is allowed to be active, under assisted RC control.""")
  3470. MAV_MODE_GUIDED_DISARMED = 88
  3471. enums["MAV_MODE"][88] = EnumEntry("MAV_MODE_GUIDED_DISARMED", """System is allowed to be active, under autonomous control, manual setpoint""")
  3472. MAV_MODE_AUTO_DISARMED = 92
  3473. 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)""")
  3474. MAV_MODE_MANUAL_ARMED = 192
  3475. enums["MAV_MODE"][192] = EnumEntry("MAV_MODE_MANUAL_ARMED", """System is allowed to be active, under manual (RC) control, no stabilization""")
  3476. MAV_MODE_TEST_ARMED = 194
  3477. enums["MAV_MODE"][194] = EnumEntry("MAV_MODE_TEST_ARMED", """UNDEFINED mode. This solely depends on the autopilot - use with caution, intended for developers only.""")
  3478. MAV_MODE_STABILIZE_ARMED = 208
  3479. enums["MAV_MODE"][208] = EnumEntry("MAV_MODE_STABILIZE_ARMED", """System is allowed to be active, under assisted RC control.""")
  3480. MAV_MODE_GUIDED_ARMED = 216
  3481. enums["MAV_MODE"][216] = EnumEntry("MAV_MODE_GUIDED_ARMED", """System is allowed to be active, under autonomous control, manual setpoint""")
  3482. MAV_MODE_AUTO_ARMED = 220
  3483. 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)""")
  3484. MAV_MODE_ENUM_END = 221
  3485. enums["MAV_MODE"][221] = EnumEntry("MAV_MODE_ENUM_END", """""")
  3486. # MAV_SYS_STATUS_SENSOR
  3487. enums["MAV_SYS_STATUS_SENSOR"] = Enum()
  3488. enums["MAV_SYS_STATUS_SENSOR"].bitmask = True
  3489. MAV_SYS_STATUS_SENSOR_3D_GYRO = 1
  3490. enums["MAV_SYS_STATUS_SENSOR"][1] = EnumEntry("MAV_SYS_STATUS_SENSOR_3D_GYRO", """0x01 3D gyro""")
  3491. MAV_SYS_STATUS_SENSOR_3D_ACCEL = 2
  3492. enums["MAV_SYS_STATUS_SENSOR"][2] = EnumEntry("MAV_SYS_STATUS_SENSOR_3D_ACCEL", """0x02 3D accelerometer""")
  3493. MAV_SYS_STATUS_SENSOR_3D_MAG = 4
  3494. enums["MAV_SYS_STATUS_SENSOR"][4] = EnumEntry("MAV_SYS_STATUS_SENSOR_3D_MAG", """0x04 3D magnetometer""")
  3495. MAV_SYS_STATUS_SENSOR_ABSOLUTE_PRESSURE = 8
  3496. enums["MAV_SYS_STATUS_SENSOR"][8] = EnumEntry("MAV_SYS_STATUS_SENSOR_ABSOLUTE_PRESSURE", """0x08 absolute pressure""")
  3497. MAV_SYS_STATUS_SENSOR_DIFFERENTIAL_PRESSURE = 16
  3498. enums["MAV_SYS_STATUS_SENSOR"][16] = EnumEntry("MAV_SYS_STATUS_SENSOR_DIFFERENTIAL_PRESSURE", """0x10 differential pressure""")
  3499. MAV_SYS_STATUS_SENSOR_GPS = 32
  3500. enums["MAV_SYS_STATUS_SENSOR"][32] = EnumEntry("MAV_SYS_STATUS_SENSOR_GPS", """0x20 GPS""")
  3501. MAV_SYS_STATUS_SENSOR_OPTICAL_FLOW = 64
  3502. enums["MAV_SYS_STATUS_SENSOR"][64] = EnumEntry("MAV_SYS_STATUS_SENSOR_OPTICAL_FLOW", """0x40 optical flow""")
  3503. MAV_SYS_STATUS_SENSOR_VISION_POSITION = 128
  3504. enums["MAV_SYS_STATUS_SENSOR"][128] = EnumEntry("MAV_SYS_STATUS_SENSOR_VISION_POSITION", """0x80 computer vision position""")
  3505. MAV_SYS_STATUS_SENSOR_LASER_POSITION = 256
  3506. enums["MAV_SYS_STATUS_SENSOR"][256] = EnumEntry("MAV_SYS_STATUS_SENSOR_LASER_POSITION", """0x100 laser based position""")
  3507. MAV_SYS_STATUS_SENSOR_EXTERNAL_GROUND_TRUTH = 512
  3508. enums["MAV_SYS_STATUS_SENSOR"][512] = EnumEntry("MAV_SYS_STATUS_SENSOR_EXTERNAL_GROUND_TRUTH", """0x200 external ground truth (Vicon or Leica)""")
  3509. MAV_SYS_STATUS_SENSOR_ANGULAR_RATE_CONTROL = 1024
  3510. enums["MAV_SYS_STATUS_SENSOR"][1024] = EnumEntry("MAV_SYS_STATUS_SENSOR_ANGULAR_RATE_CONTROL", """0x400 3D angular rate control""")
  3511. MAV_SYS_STATUS_SENSOR_ATTITUDE_STABILIZATION = 2048
  3512. enums["MAV_SYS_STATUS_SENSOR"][2048] = EnumEntry("MAV_SYS_STATUS_SENSOR_ATTITUDE_STABILIZATION", """0x800 attitude stabilization""")
  3513. MAV_SYS_STATUS_SENSOR_YAW_POSITION = 4096
  3514. enums["MAV_SYS_STATUS_SENSOR"][4096] = EnumEntry("MAV_SYS_STATUS_SENSOR_YAW_POSITION", """0x1000 yaw position""")
  3515. MAV_SYS_STATUS_SENSOR_Z_ALTITUDE_CONTROL = 8192
  3516. enums["MAV_SYS_STATUS_SENSOR"][8192] = EnumEntry("MAV_SYS_STATUS_SENSOR_Z_ALTITUDE_CONTROL", """0x2000 z/altitude control""")
  3517. MAV_SYS_STATUS_SENSOR_XY_POSITION_CONTROL = 16384
  3518. enums["MAV_SYS_STATUS_SENSOR"][16384] = EnumEntry("MAV_SYS_STATUS_SENSOR_XY_POSITION_CONTROL", """0x4000 x/y position control""")
  3519. MAV_SYS_STATUS_SENSOR_MOTOR_OUTPUTS = 32768
  3520. enums["MAV_SYS_STATUS_SENSOR"][32768] = EnumEntry("MAV_SYS_STATUS_SENSOR_MOTOR_OUTPUTS", """0x8000 motor outputs / control""")
  3521. MAV_SYS_STATUS_SENSOR_RC_RECEIVER = 65536
  3522. enums["MAV_SYS_STATUS_SENSOR"][65536] = EnumEntry("MAV_SYS_STATUS_SENSOR_RC_RECEIVER", """0x10000 RC receiver""")
  3523. MAV_SYS_STATUS_SENSOR_3D_GYRO2 = 131072
  3524. enums["MAV_SYS_STATUS_SENSOR"][131072] = EnumEntry("MAV_SYS_STATUS_SENSOR_3D_GYRO2", """0x20000 2nd 3D gyro""")
  3525. MAV_SYS_STATUS_SENSOR_3D_ACCEL2 = 262144
  3526. enums["MAV_SYS_STATUS_SENSOR"][262144] = EnumEntry("MAV_SYS_STATUS_SENSOR_3D_ACCEL2", """0x40000 2nd 3D accelerometer""")
  3527. MAV_SYS_STATUS_SENSOR_3D_MAG2 = 524288
  3528. enums["MAV_SYS_STATUS_SENSOR"][524288] = EnumEntry("MAV_SYS_STATUS_SENSOR_3D_MAG2", """0x80000 2nd 3D magnetometer""")
  3529. MAV_SYS_STATUS_GEOFENCE = 1048576
  3530. enums["MAV_SYS_STATUS_SENSOR"][1048576] = EnumEntry("MAV_SYS_STATUS_GEOFENCE", """0x100000 geofence""")
  3531. MAV_SYS_STATUS_AHRS = 2097152
  3532. enums["MAV_SYS_STATUS_SENSOR"][2097152] = EnumEntry("MAV_SYS_STATUS_AHRS", """0x200000 AHRS subsystem health""")
  3533. MAV_SYS_STATUS_TERRAIN = 4194304
  3534. enums["MAV_SYS_STATUS_SENSOR"][4194304] = EnumEntry("MAV_SYS_STATUS_TERRAIN", """0x400000 Terrain subsystem health""")
  3535. MAV_SYS_STATUS_REVERSE_MOTOR = 8388608
  3536. enums["MAV_SYS_STATUS_SENSOR"][8388608] = EnumEntry("MAV_SYS_STATUS_REVERSE_MOTOR", """0x800000 Motors are reversed""")
  3537. MAV_SYS_STATUS_LOGGING = 16777216
  3538. enums["MAV_SYS_STATUS_SENSOR"][16777216] = EnumEntry("MAV_SYS_STATUS_LOGGING", """0x1000000 Logging""")
  3539. MAV_SYS_STATUS_SENSOR_BATTERY = 33554432
  3540. enums["MAV_SYS_STATUS_SENSOR"][33554432] = EnumEntry("MAV_SYS_STATUS_SENSOR_BATTERY", """0x2000000 Battery""")
  3541. MAV_SYS_STATUS_SENSOR_PROXIMITY = 67108864
  3542. enums["MAV_SYS_STATUS_SENSOR"][67108864] = EnumEntry("MAV_SYS_STATUS_SENSOR_PROXIMITY", """0x4000000 Proximity""")
  3543. MAV_SYS_STATUS_SENSOR_SATCOM = 134217728
  3544. enums["MAV_SYS_STATUS_SENSOR"][134217728] = EnumEntry("MAV_SYS_STATUS_SENSOR_SATCOM", """0x8000000 Satellite Communication """)
  3545. MAV_SYS_STATUS_PREARM_CHECK = 268435456
  3546. enums["MAV_SYS_STATUS_SENSOR"][268435456] = EnumEntry("MAV_SYS_STATUS_PREARM_CHECK", """0x10000000 pre-arm check status. Always healthy when armed""")
  3547. MAV_SYS_STATUS_OBSTACLE_AVOIDANCE = 536870912
  3548. enums["MAV_SYS_STATUS_SENSOR"][536870912] = EnumEntry("MAV_SYS_STATUS_OBSTACLE_AVOIDANCE", """0x20000000 Avoidance/collision prevention""")
  3549. MAV_SYS_STATUS_SENSOR_PROPULSION = 1073741824
  3550. enums["MAV_SYS_STATUS_SENSOR"][1073741824] = EnumEntry("MAV_SYS_STATUS_SENSOR_PROPULSION", """0x40000000 propulsion (actuator, esc, motor or propellor)""")
  3551. MAV_SYS_STATUS_EXTENSION_USED = 2147483648
  3552. 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)""")
  3553. MAV_SYS_STATUS_SENSOR_ENUM_END = 2147483649
  3554. enums["MAV_SYS_STATUS_SENSOR"][2147483649] = EnumEntry("MAV_SYS_STATUS_SENSOR_ENUM_END", """""")
  3555. # MAV_SYS_STATUS_SENSOR_EXTENDED
  3556. enums["MAV_SYS_STATUS_SENSOR_EXTENDED"] = Enum()
  3557. enums["MAV_SYS_STATUS_SENSOR_EXTENDED"].bitmask = True
  3558. MAV_SYS_STATUS_RECOVERY_SYSTEM = 1
  3559. enums["MAV_SYS_STATUS_SENSOR_EXTENDED"][1] = EnumEntry("MAV_SYS_STATUS_RECOVERY_SYSTEM", """0x01 Recovery system (parachute, balloon, retracts etc)""")
  3560. MAV_SYS_STATUS_SENSOR_EXTENDED_ENUM_END = 2
  3561. enums["MAV_SYS_STATUS_SENSOR_EXTENDED"][2] = EnumEntry("MAV_SYS_STATUS_SENSOR_EXTENDED_ENUM_END", """""")
  3562. # MAV_FRAME
  3563. enums["MAV_FRAME"] = Enum()
  3564. enums["MAV_FRAME"].bitmask = False
  3565. MAV_FRAME_GLOBAL = 0
  3566. 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).""")
  3567. MAV_FRAME_LOCAL_NED = 1
  3568. 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.""")
  3569. MAV_FRAME_MISSION = 2
  3570. enums["MAV_FRAME"][2] = EnumEntry("MAV_FRAME_MISSION", """NOT a coordinate frame, indicates a mission command.""")
  3571. MAV_FRAME_GLOBAL_RELATIVE_ALT = 3
  3572. enums["MAV_FRAME"][3] = EnumEntry(
  3573. "MAV_FRAME_GLOBAL_RELATIVE_ALT",
  3574. """
  3575. Global (WGS84) coordinate frame + altitude relative to the home position.
  3576. First value / x: latitude, second value / y: longitude, third value / z: positive altitude with 0 being at the altitude of the home position.
  3577. """,
  3578. )
  3579. MAV_FRAME_LOCAL_ENU = 4
  3580. 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.""")
  3581. MAV_FRAME_GLOBAL_INT = 5
  3582. 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).""")
  3583. MAV_FRAME_GLOBAL_RELATIVE_ALT_INT = 6
  3584. enums["MAV_FRAME"][6] = EnumEntry(
  3585. "MAV_FRAME_GLOBAL_RELATIVE_ALT_INT",
  3586. """
  3587. Global (WGS84) coordinate frame (scaled) + altitude relative to the home position.
  3588. 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.
  3589. """,
  3590. )
  3591. MAV_FRAME_LOCAL_OFFSET_NED = 7
  3592. 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.""")
  3593. MAV_FRAME_BODY_NED = 8
  3594. 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.""")
  3595. MAV_FRAME_BODY_OFFSET_NED = 9
  3596. enums["MAV_FRAME"][9] = EnumEntry("MAV_FRAME_BODY_OFFSET_NED", """This is the same as MAV_FRAME_BODY_FRD.""")
  3597. MAV_FRAME_GLOBAL_TERRAIN_ALT = 10
  3598. 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.""")
  3599. MAV_FRAME_GLOBAL_TERRAIN_ALT_INT = 11
  3600. 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.""")
  3601. MAV_FRAME_BODY_FRD = 12
  3602. 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.""")
  3603. MAV_FRAME_RESERVED_13 = 13
  3604. 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).""")
  3605. MAV_FRAME_RESERVED_14 = 14
  3606. 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).""")
  3607. MAV_FRAME_RESERVED_15 = 15
  3608. 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).""")
  3609. MAV_FRAME_RESERVED_16 = 16
  3610. 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).""")
  3611. MAV_FRAME_RESERVED_17 = 17
  3612. 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).""")
  3613. MAV_FRAME_RESERVED_18 = 18
  3614. 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).""")
  3615. MAV_FRAME_RESERVED_19 = 19
  3616. 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).""")
  3617. MAV_FRAME_LOCAL_FRD = 20
  3618. 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.""")
  3619. MAV_FRAME_LOCAL_FLU = 21
  3620. 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.""")
  3621. MAV_FRAME_ENUM_END = 22
  3622. enums["MAV_FRAME"][22] = EnumEntry("MAV_FRAME_ENUM_END", """""")
  3623. # MAVLINK_DATA_STREAM_TYPE
  3624. enums["MAVLINK_DATA_STREAM_TYPE"] = Enum()
  3625. enums["MAVLINK_DATA_STREAM_TYPE"].bitmask = False
  3626. MAVLINK_DATA_STREAM_IMG_JPEG = 0
  3627. enums["MAVLINK_DATA_STREAM_TYPE"][0] = EnumEntry("MAVLINK_DATA_STREAM_IMG_JPEG", """""")
  3628. MAVLINK_DATA_STREAM_IMG_BMP = 1
  3629. enums["MAVLINK_DATA_STREAM_TYPE"][1] = EnumEntry("MAVLINK_DATA_STREAM_IMG_BMP", """""")
  3630. MAVLINK_DATA_STREAM_IMG_RAW8U = 2
  3631. enums["MAVLINK_DATA_STREAM_TYPE"][2] = EnumEntry("MAVLINK_DATA_STREAM_IMG_RAW8U", """""")
  3632. MAVLINK_DATA_STREAM_IMG_RAW32U = 3
  3633. enums["MAVLINK_DATA_STREAM_TYPE"][3] = EnumEntry("MAVLINK_DATA_STREAM_IMG_RAW32U", """""")
  3634. MAVLINK_DATA_STREAM_IMG_PGM = 4
  3635. enums["MAVLINK_DATA_STREAM_TYPE"][4] = EnumEntry("MAVLINK_DATA_STREAM_IMG_PGM", """""")
  3636. MAVLINK_DATA_STREAM_IMG_PNG = 5
  3637. enums["MAVLINK_DATA_STREAM_TYPE"][5] = EnumEntry("MAVLINK_DATA_STREAM_IMG_PNG", """""")
  3638. MAVLINK_DATA_STREAM_TYPE_ENUM_END = 6
  3639. enums["MAVLINK_DATA_STREAM_TYPE"][6] = EnumEntry("MAVLINK_DATA_STREAM_TYPE_ENUM_END", """""")
  3640. # FENCE_ACTION
  3641. enums["FENCE_ACTION"] = Enum()
  3642. enums["FENCE_ACTION"].bitmask = False
  3643. FENCE_ACTION_NONE = 0
  3644. enums["FENCE_ACTION"][0] = EnumEntry("FENCE_ACTION_NONE", """Disable fenced mode. If used in a plan this would mean the next fence is disabled.""")
  3645. FENCE_ACTION_GUIDED = 1
  3646. 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.""")
  3647. FENCE_ACTION_REPORT = 2
  3648. enums["FENCE_ACTION"][2] = EnumEntry("FENCE_ACTION_REPORT", """Report fence breach, but don't take action""")
  3649. FENCE_ACTION_GUIDED_THR_PASS = 3
  3650. 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.""")
  3651. FENCE_ACTION_RTL = 4
  3652. enums["FENCE_ACTION"][4] = EnumEntry("FENCE_ACTION_RTL", """Return/RTL mode.""")
  3653. FENCE_ACTION_HOLD = 5
  3654. enums["FENCE_ACTION"][5] = EnumEntry("FENCE_ACTION_HOLD", """Hold at current location.""")
  3655. FENCE_ACTION_TERMINATE = 6
  3656. enums["FENCE_ACTION"][6] = EnumEntry("FENCE_ACTION_TERMINATE", """Termination failsafe. Motors are shut down (some flight stacks may trigger other failsafe actions).""")
  3657. FENCE_ACTION_LAND = 7
  3658. enums["FENCE_ACTION"][7] = EnumEntry("FENCE_ACTION_LAND", """Land at current location.""")
  3659. FENCE_ACTION_ENUM_END = 8
  3660. enums["FENCE_ACTION"][8] = EnumEntry("FENCE_ACTION_ENUM_END", """""")
  3661. # FENCE_BREACH
  3662. enums["FENCE_BREACH"] = Enum()
  3663. enums["FENCE_BREACH"].bitmask = False
  3664. FENCE_BREACH_NONE = 0
  3665. enums["FENCE_BREACH"][0] = EnumEntry("FENCE_BREACH_NONE", """No last fence breach""")
  3666. FENCE_BREACH_MINALT = 1
  3667. enums["FENCE_BREACH"][1] = EnumEntry("FENCE_BREACH_MINALT", """Breached minimum altitude""")
  3668. FENCE_BREACH_MAXALT = 2
  3669. enums["FENCE_BREACH"][2] = EnumEntry("FENCE_BREACH_MAXALT", """Breached maximum altitude""")
  3670. FENCE_BREACH_BOUNDARY = 3
  3671. enums["FENCE_BREACH"][3] = EnumEntry("FENCE_BREACH_BOUNDARY", """Breached fence boundary""")
  3672. FENCE_BREACH_ENUM_END = 4
  3673. enums["FENCE_BREACH"][4] = EnumEntry("FENCE_BREACH_ENUM_END", """""")
  3674. # FENCE_MITIGATE
  3675. enums["FENCE_MITIGATE"] = Enum()
  3676. enums["FENCE_MITIGATE"].bitmask = False
  3677. FENCE_MITIGATE_UNKNOWN = 0
  3678. enums["FENCE_MITIGATE"][0] = EnumEntry("FENCE_MITIGATE_UNKNOWN", """Unknown""")
  3679. FENCE_MITIGATE_NONE = 1
  3680. enums["FENCE_MITIGATE"][1] = EnumEntry("FENCE_MITIGATE_NONE", """No actions being taken""")
  3681. FENCE_MITIGATE_VEL_LIMIT = 2
  3682. enums["FENCE_MITIGATE"][2] = EnumEntry("FENCE_MITIGATE_VEL_LIMIT", """Velocity limiting active to prevent breach""")
  3683. FENCE_MITIGATE_ENUM_END = 3
  3684. enums["FENCE_MITIGATE"][3] = EnumEntry("FENCE_MITIGATE_ENUM_END", """""")
  3685. # MAV_MOUNT_MODE
  3686. enums["MAV_MOUNT_MODE"] = Enum()
  3687. enums["MAV_MOUNT_MODE"].bitmask = False
  3688. MAV_MOUNT_MODE_RETRACT = 0
  3689. enums["MAV_MOUNT_MODE"][0] = EnumEntry("MAV_MOUNT_MODE_RETRACT", """Load and keep safe position (Roll,Pitch,Yaw) from permanent memory and stop stabilization""")
  3690. MAV_MOUNT_MODE_NEUTRAL = 1
  3691. enums["MAV_MOUNT_MODE"][1] = EnumEntry("MAV_MOUNT_MODE_NEUTRAL", """Load and keep neutral position (Roll,Pitch,Yaw) from permanent memory.""")
  3692. MAV_MOUNT_MODE_MAVLINK_TARGETING = 2
  3693. enums["MAV_MOUNT_MODE"][2] = EnumEntry("MAV_MOUNT_MODE_MAVLINK_TARGETING", """Load neutral position and start MAVLink Roll,Pitch,Yaw control with stabilization""")
  3694. MAV_MOUNT_MODE_RC_TARGETING = 3
  3695. enums["MAV_MOUNT_MODE"][3] = EnumEntry("MAV_MOUNT_MODE_RC_TARGETING", """Load neutral position and start RC Roll,Pitch,Yaw control with stabilization""")
  3696. MAV_MOUNT_MODE_GPS_POINT = 4
  3697. enums["MAV_MOUNT_MODE"][4] = EnumEntry("MAV_MOUNT_MODE_GPS_POINT", """Load neutral position and start to point to Lat,Lon,Alt""")
  3698. MAV_MOUNT_MODE_SYSID_TARGET = 5
  3699. enums["MAV_MOUNT_MODE"][5] = EnumEntry("MAV_MOUNT_MODE_SYSID_TARGET", """Gimbal tracks system with specified system ID""")
  3700. MAV_MOUNT_MODE_HOME_LOCATION = 6
  3701. enums["MAV_MOUNT_MODE"][6] = EnumEntry("MAV_MOUNT_MODE_HOME_LOCATION", """Gimbal tracks home position""")
  3702. MAV_MOUNT_MODE_ENUM_END = 7
  3703. enums["MAV_MOUNT_MODE"][7] = EnumEntry("MAV_MOUNT_MODE_ENUM_END", """""")
  3704. # GIMBAL_DEVICE_CAP_FLAGS
  3705. enums["GIMBAL_DEVICE_CAP_FLAGS"] = Enum()
  3706. enums["GIMBAL_DEVICE_CAP_FLAGS"].bitmask = True
  3707. GIMBAL_DEVICE_CAP_FLAGS_HAS_RETRACT = 1
  3708. enums["GIMBAL_DEVICE_CAP_FLAGS"][1] = EnumEntry("GIMBAL_DEVICE_CAP_FLAGS_HAS_RETRACT", """Gimbal device supports a retracted position.""")
  3709. GIMBAL_DEVICE_CAP_FLAGS_HAS_NEUTRAL = 2
  3710. enums["GIMBAL_DEVICE_CAP_FLAGS"][2] = EnumEntry("GIMBAL_DEVICE_CAP_FLAGS_HAS_NEUTRAL", """Gimbal device supports a horizontal, forward looking position, stabilized.""")
  3711. GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_AXIS = 4
  3712. enums["GIMBAL_DEVICE_CAP_FLAGS"][4] = EnumEntry("GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_AXIS", """Gimbal device supports rotating around roll axis.""")
  3713. GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_FOLLOW = 8
  3714. 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.""")
  3715. GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_LOCK = 16
  3716. 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).""")
  3717. GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_AXIS = 32
  3718. enums["GIMBAL_DEVICE_CAP_FLAGS"][32] = EnumEntry("GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_AXIS", """Gimbal device supports rotating around pitch axis.""")
  3719. GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_FOLLOW = 64
  3720. 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.""")
  3721. GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_LOCK = 128
  3722. 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).""")
  3723. GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_AXIS = 256
  3724. enums["GIMBAL_DEVICE_CAP_FLAGS"][256] = EnumEntry("GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_AXIS", """Gimbal device supports rotating around yaw axis.""")
  3725. GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_FOLLOW = 512
  3726. 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).""")
  3727. GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_LOCK = 1024
  3728. 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).""")
  3729. GIMBAL_DEVICE_CAP_FLAGS_SUPPORTS_INFINITE_YAW = 2048
  3730. 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).""")
  3731. GIMBAL_DEVICE_CAP_FLAGS_SUPPORTS_YAW_IN_EARTH_FRAME = 4096
  3732. 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.""")
  3733. GIMBAL_DEVICE_CAP_FLAGS_HAS_RC_INPUTS = 8192
  3734. 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.""")
  3735. GIMBAL_DEVICE_CAP_FLAGS_ENUM_END = 8193
  3736. enums["GIMBAL_DEVICE_CAP_FLAGS"][8193] = EnumEntry("GIMBAL_DEVICE_CAP_FLAGS_ENUM_END", """""")
  3737. # GIMBAL_MANAGER_CAP_FLAGS
  3738. enums["GIMBAL_MANAGER_CAP_FLAGS"] = Enum()
  3739. enums["GIMBAL_MANAGER_CAP_FLAGS"].bitmask = True
  3740. GIMBAL_MANAGER_CAP_FLAGS_HAS_RETRACT = 1
  3741. enums["GIMBAL_MANAGER_CAP_FLAGS"][1] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_HAS_RETRACT", """Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_RETRACT.""")
  3742. GIMBAL_MANAGER_CAP_FLAGS_HAS_NEUTRAL = 2
  3743. enums["GIMBAL_MANAGER_CAP_FLAGS"][2] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_HAS_NEUTRAL", """Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_NEUTRAL.""")
  3744. GIMBAL_MANAGER_CAP_FLAGS_HAS_ROLL_AXIS = 4
  3745. enums["GIMBAL_MANAGER_CAP_FLAGS"][4] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_HAS_ROLL_AXIS", """Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_AXIS.""")
  3746. GIMBAL_MANAGER_CAP_FLAGS_HAS_ROLL_FOLLOW = 8
  3747. enums["GIMBAL_MANAGER_CAP_FLAGS"][8] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_HAS_ROLL_FOLLOW", """Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_FOLLOW.""")
  3748. GIMBAL_MANAGER_CAP_FLAGS_HAS_ROLL_LOCK = 16
  3749. enums["GIMBAL_MANAGER_CAP_FLAGS"][16] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_HAS_ROLL_LOCK", """Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_LOCK.""")
  3750. GIMBAL_MANAGER_CAP_FLAGS_HAS_PITCH_AXIS = 32
  3751. enums["GIMBAL_MANAGER_CAP_FLAGS"][32] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_HAS_PITCH_AXIS", """Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_AXIS.""")
  3752. GIMBAL_MANAGER_CAP_FLAGS_HAS_PITCH_FOLLOW = 64
  3753. enums["GIMBAL_MANAGER_CAP_FLAGS"][64] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_HAS_PITCH_FOLLOW", """Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_FOLLOW.""")
  3754. GIMBAL_MANAGER_CAP_FLAGS_HAS_PITCH_LOCK = 128
  3755. enums["GIMBAL_MANAGER_CAP_FLAGS"][128] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_HAS_PITCH_LOCK", """Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_LOCK.""")
  3756. GIMBAL_MANAGER_CAP_FLAGS_HAS_YAW_AXIS = 256
  3757. enums["GIMBAL_MANAGER_CAP_FLAGS"][256] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_HAS_YAW_AXIS", """Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_AXIS.""")
  3758. GIMBAL_MANAGER_CAP_FLAGS_HAS_YAW_FOLLOW = 512
  3759. enums["GIMBAL_MANAGER_CAP_FLAGS"][512] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_HAS_YAW_FOLLOW", """Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_FOLLOW.""")
  3760. GIMBAL_MANAGER_CAP_FLAGS_HAS_YAW_LOCK = 1024
  3761. enums["GIMBAL_MANAGER_CAP_FLAGS"][1024] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_HAS_YAW_LOCK", """Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_LOCK.""")
  3762. GIMBAL_MANAGER_CAP_FLAGS_SUPPORTS_INFINITE_YAW = 2048
  3763. enums["GIMBAL_MANAGER_CAP_FLAGS"][2048] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_SUPPORTS_INFINITE_YAW", """Based on GIMBAL_DEVICE_CAP_FLAGS_SUPPORTS_INFINITE_YAW.""")
  3764. GIMBAL_MANAGER_CAP_FLAGS_SUPPORTS_YAW_IN_EARTH_FRAME = 4096
  3765. 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.""")
  3766. GIMBAL_MANAGER_CAP_FLAGS_HAS_RC_INPUTS = 8192
  3767. enums["GIMBAL_MANAGER_CAP_FLAGS"][8192] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_HAS_RC_INPUTS", """Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_RC_INPUTS.""")
  3768. GIMBAL_MANAGER_CAP_FLAGS_CAN_POINT_LOCATION_LOCAL = 65536
  3769. enums["GIMBAL_MANAGER_CAP_FLAGS"][65536] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_CAN_POINT_LOCATION_LOCAL", """Gimbal manager supports to point to a local position.""")
  3770. GIMBAL_MANAGER_CAP_FLAGS_CAN_POINT_LOCATION_GLOBAL = 131072
  3771. 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.""")
  3772. GIMBAL_MANAGER_CAP_FLAGS_ENUM_END = 131073
  3773. enums["GIMBAL_MANAGER_CAP_FLAGS"][131073] = EnumEntry("GIMBAL_MANAGER_CAP_FLAGS_ENUM_END", """""")
  3774. # GIMBAL_DEVICE_FLAGS
  3775. enums["GIMBAL_DEVICE_FLAGS"] = Enum()
  3776. enums["GIMBAL_DEVICE_FLAGS"].bitmask = True
  3777. GIMBAL_DEVICE_FLAGS_RETRACT = 1
  3778. enums["GIMBAL_DEVICE_FLAGS"][1] = EnumEntry("GIMBAL_DEVICE_FLAGS_RETRACT", """Set to retracted safe position (no stabilization), takes precedence over all other flags.""")
  3779. GIMBAL_DEVICE_FLAGS_NEUTRAL = 2
  3780. 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.""")
  3781. GIMBAL_DEVICE_FLAGS_ROLL_LOCK = 4
  3782. 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.""")
  3783. GIMBAL_DEVICE_FLAGS_PITCH_LOCK = 8
  3784. 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.""")
  3785. GIMBAL_DEVICE_FLAGS_YAW_LOCK = 16
  3786. 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).""")
  3787. GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME = 32
  3788. 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).""")
  3789. GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME = 64
  3790. 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).""")
  3791. GIMBAL_DEVICE_FLAGS_ACCEPTS_YAW_IN_EARTH_FRAME = 128
  3792. 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).""")
  3793. GIMBAL_DEVICE_FLAGS_RC_EXCLUSIVE = 256
  3794. 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.""")
  3795. GIMBAL_DEVICE_FLAGS_RC_MIXED = 512
  3796. 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.""")
  3797. GIMBAL_DEVICE_FLAGS_ENUM_END = 513
  3798. enums["GIMBAL_DEVICE_FLAGS"][513] = EnumEntry("GIMBAL_DEVICE_FLAGS_ENUM_END", """""")
  3799. # GIMBAL_MANAGER_FLAGS
  3800. enums["GIMBAL_MANAGER_FLAGS"] = Enum()
  3801. enums["GIMBAL_MANAGER_FLAGS"].bitmask = True
  3802. GIMBAL_MANAGER_FLAGS_RETRACT = 1
  3803. enums["GIMBAL_MANAGER_FLAGS"][1] = EnumEntry("GIMBAL_MANAGER_FLAGS_RETRACT", """Based on GIMBAL_DEVICE_FLAGS_RETRACT.""")
  3804. GIMBAL_MANAGER_FLAGS_NEUTRAL = 2
  3805. enums["GIMBAL_MANAGER_FLAGS"][2] = EnumEntry("GIMBAL_MANAGER_FLAGS_NEUTRAL", """Based on GIMBAL_DEVICE_FLAGS_NEUTRAL.""")
  3806. GIMBAL_MANAGER_FLAGS_ROLL_LOCK = 4
  3807. enums["GIMBAL_MANAGER_FLAGS"][4] = EnumEntry("GIMBAL_MANAGER_FLAGS_ROLL_LOCK", """Based on GIMBAL_DEVICE_FLAGS_ROLL_LOCK.""")
  3808. GIMBAL_MANAGER_FLAGS_PITCH_LOCK = 8
  3809. enums["GIMBAL_MANAGER_FLAGS"][8] = EnumEntry("GIMBAL_MANAGER_FLAGS_PITCH_LOCK", """Based on GIMBAL_DEVICE_FLAGS_PITCH_LOCK.""")
  3810. GIMBAL_MANAGER_FLAGS_YAW_LOCK = 16
  3811. enums["GIMBAL_MANAGER_FLAGS"][16] = EnumEntry("GIMBAL_MANAGER_FLAGS_YAW_LOCK", """Based on GIMBAL_DEVICE_FLAGS_YAW_LOCK.""")
  3812. GIMBAL_MANAGER_FLAGS_YAW_IN_VEHICLE_FRAME = 32
  3813. enums["GIMBAL_MANAGER_FLAGS"][32] = EnumEntry("GIMBAL_MANAGER_FLAGS_YAW_IN_VEHICLE_FRAME", """Based on GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME.""")
  3814. GIMBAL_MANAGER_FLAGS_YAW_IN_EARTH_FRAME = 64
  3815. enums["GIMBAL_MANAGER_FLAGS"][64] = EnumEntry("GIMBAL_MANAGER_FLAGS_YAW_IN_EARTH_FRAME", """Based on GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME.""")
  3816. GIMBAL_MANAGER_FLAGS_ACCEPTS_YAW_IN_EARTH_FRAME = 128
  3817. enums["GIMBAL_MANAGER_FLAGS"][128] = EnumEntry("GIMBAL_MANAGER_FLAGS_ACCEPTS_YAW_IN_EARTH_FRAME", """Based on GIMBAL_DEVICE_FLAGS_ACCEPTS_YAW_IN_EARTH_FRAME.""")
  3818. GIMBAL_MANAGER_FLAGS_RC_EXCLUSIVE = 256
  3819. enums["GIMBAL_MANAGER_FLAGS"][256] = EnumEntry("GIMBAL_MANAGER_FLAGS_RC_EXCLUSIVE", """Based on GIMBAL_DEVICE_FLAGS_RC_EXCLUSIVE.""")
  3820. GIMBAL_MANAGER_FLAGS_RC_MIXED = 512
  3821. enums["GIMBAL_MANAGER_FLAGS"][512] = EnumEntry("GIMBAL_MANAGER_FLAGS_RC_MIXED", """Based on GIMBAL_DEVICE_FLAGS_RC_MIXED.""")
  3822. GIMBAL_MANAGER_FLAGS_ENUM_END = 513
  3823. enums["GIMBAL_MANAGER_FLAGS"][513] = EnumEntry("GIMBAL_MANAGER_FLAGS_ENUM_END", """""")
  3824. # GIMBAL_DEVICE_ERROR_FLAGS
  3825. enums["GIMBAL_DEVICE_ERROR_FLAGS"] = Enum()
  3826. enums["GIMBAL_DEVICE_ERROR_FLAGS"].bitmask = True
  3827. GIMBAL_DEVICE_ERROR_FLAGS_AT_ROLL_LIMIT = 1
  3828. enums["GIMBAL_DEVICE_ERROR_FLAGS"][1] = EnumEntry("GIMBAL_DEVICE_ERROR_FLAGS_AT_ROLL_LIMIT", """Gimbal device is limited by hardware roll limit.""")
  3829. GIMBAL_DEVICE_ERROR_FLAGS_AT_PITCH_LIMIT = 2
  3830. enums["GIMBAL_DEVICE_ERROR_FLAGS"][2] = EnumEntry("GIMBAL_DEVICE_ERROR_FLAGS_AT_PITCH_LIMIT", """Gimbal device is limited by hardware pitch limit.""")
  3831. GIMBAL_DEVICE_ERROR_FLAGS_AT_YAW_LIMIT = 4
  3832. enums["GIMBAL_DEVICE_ERROR_FLAGS"][4] = EnumEntry("GIMBAL_DEVICE_ERROR_FLAGS_AT_YAW_LIMIT", """Gimbal device is limited by hardware yaw limit.""")
  3833. GIMBAL_DEVICE_ERROR_FLAGS_ENCODER_ERROR = 8
  3834. enums["GIMBAL_DEVICE_ERROR_FLAGS"][8] = EnumEntry("GIMBAL_DEVICE_ERROR_FLAGS_ENCODER_ERROR", """There is an error with the gimbal encoders.""")
  3835. GIMBAL_DEVICE_ERROR_FLAGS_POWER_ERROR = 16
  3836. enums["GIMBAL_DEVICE_ERROR_FLAGS"][16] = EnumEntry("GIMBAL_DEVICE_ERROR_FLAGS_POWER_ERROR", """There is an error with the gimbal power source.""")
  3837. GIMBAL_DEVICE_ERROR_FLAGS_MOTOR_ERROR = 32
  3838. enums["GIMBAL_DEVICE_ERROR_FLAGS"][32] = EnumEntry("GIMBAL_DEVICE_ERROR_FLAGS_MOTOR_ERROR", """There is an error with the gimbal motors.""")
  3839. GIMBAL_DEVICE_ERROR_FLAGS_SOFTWARE_ERROR = 64
  3840. enums["GIMBAL_DEVICE_ERROR_FLAGS"][64] = EnumEntry("GIMBAL_DEVICE_ERROR_FLAGS_SOFTWARE_ERROR", """There is an error with the gimbal's software.""")
  3841. GIMBAL_DEVICE_ERROR_FLAGS_COMMS_ERROR = 128
  3842. enums["GIMBAL_DEVICE_ERROR_FLAGS"][128] = EnumEntry("GIMBAL_DEVICE_ERROR_FLAGS_COMMS_ERROR", """There is an error with the gimbal's communication.""")
  3843. GIMBAL_DEVICE_ERROR_FLAGS_CALIBRATION_RUNNING = 256
  3844. enums["GIMBAL_DEVICE_ERROR_FLAGS"][256] = EnumEntry("GIMBAL_DEVICE_ERROR_FLAGS_CALIBRATION_RUNNING", """Gimbal device is currently calibrating.""")
  3845. GIMBAL_DEVICE_ERROR_FLAGS_NO_MANAGER = 512
  3846. enums["GIMBAL_DEVICE_ERROR_FLAGS"][512] = EnumEntry("GIMBAL_DEVICE_ERROR_FLAGS_NO_MANAGER", """Gimbal device is not assigned to a gimbal manager.""")
  3847. GIMBAL_DEVICE_ERROR_FLAGS_ENUM_END = 513
  3848. enums["GIMBAL_DEVICE_ERROR_FLAGS"][513] = EnumEntry("GIMBAL_DEVICE_ERROR_FLAGS_ENUM_END", """""")
  3849. # GRIPPER_ACTIONS
  3850. enums["GRIPPER_ACTIONS"] = Enum()
  3851. enums["GRIPPER_ACTIONS"].bitmask = False
  3852. GRIPPER_ACTION_RELEASE = 0
  3853. enums["GRIPPER_ACTIONS"][0] = EnumEntry("GRIPPER_ACTION_RELEASE", """Gripper release cargo.""")
  3854. GRIPPER_ACTION_GRAB = 1
  3855. enums["GRIPPER_ACTIONS"][1] = EnumEntry("GRIPPER_ACTION_GRAB", """Gripper grab onto cargo.""")
  3856. GRIPPER_ACTIONS_ENUM_END = 2
  3857. enums["GRIPPER_ACTIONS"][2] = EnumEntry("GRIPPER_ACTIONS_ENUM_END", """""")
  3858. # WINCH_ACTIONS
  3859. enums["WINCH_ACTIONS"] = Enum()
  3860. enums["WINCH_ACTIONS"].bitmask = False
  3861. WINCH_RELAXED = 0
  3862. enums["WINCH_ACTIONS"][0] = EnumEntry("WINCH_RELAXED", """Allow motor to freewheel.""")
  3863. WINCH_RELATIVE_LENGTH_CONTROL = 1
  3864. enums["WINCH_ACTIONS"][1] = EnumEntry("WINCH_RELATIVE_LENGTH_CONTROL", """Wind or unwind specified length of line, optionally using specified rate.""")
  3865. WINCH_RATE_CONTROL = 2
  3866. enums["WINCH_ACTIONS"][2] = EnumEntry("WINCH_RATE_CONTROL", """Wind or unwind line at specified rate.""")
  3867. WINCH_LOCK = 3
  3868. 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.""")
  3869. WINCH_DELIVER = 4
  3870. 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.""")
  3871. WINCH_HOLD = 5
  3872. enums["WINCH_ACTIONS"][5] = EnumEntry("WINCH_HOLD", """Engage motor and hold current position. Only action and instance command parameters are used, others are ignored.""")
  3873. WINCH_RETRACT = 6
  3874. 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.""")
  3875. WINCH_LOAD_LINE = 7
  3876. 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.""")
  3877. WINCH_ABANDON_LINE = 8
  3878. 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.""")
  3879. WINCH_LOAD_PAYLOAD = 9
  3880. 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""")
  3881. WINCH_ACTIONS_ENUM_END = 10
  3882. enums["WINCH_ACTIONS"][10] = EnumEntry("WINCH_ACTIONS_ENUM_END", """""")
  3883. # UAVCAN_NODE_HEALTH
  3884. enums["UAVCAN_NODE_HEALTH"] = Enum()
  3885. enums["UAVCAN_NODE_HEALTH"].bitmask = False
  3886. UAVCAN_NODE_HEALTH_OK = 0
  3887. enums["UAVCAN_NODE_HEALTH"][0] = EnumEntry("UAVCAN_NODE_HEALTH_OK", """The node is functioning properly.""")
  3888. UAVCAN_NODE_HEALTH_WARNING = 1
  3889. 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.""")
  3890. UAVCAN_NODE_HEALTH_ERROR = 2
  3891. enums["UAVCAN_NODE_HEALTH"][2] = EnumEntry("UAVCAN_NODE_HEALTH_ERROR", """The node has encountered a major failure.""")
  3892. UAVCAN_NODE_HEALTH_CRITICAL = 3
  3893. enums["UAVCAN_NODE_HEALTH"][3] = EnumEntry("UAVCAN_NODE_HEALTH_CRITICAL", """The node has suffered a fatal malfunction.""")
  3894. UAVCAN_NODE_HEALTH_ENUM_END = 4
  3895. enums["UAVCAN_NODE_HEALTH"][4] = EnumEntry("UAVCAN_NODE_HEALTH_ENUM_END", """""")
  3896. # UAVCAN_NODE_MODE
  3897. enums["UAVCAN_NODE_MODE"] = Enum()
  3898. enums["UAVCAN_NODE_MODE"].bitmask = False
  3899. UAVCAN_NODE_MODE_OPERATIONAL = 0
  3900. enums["UAVCAN_NODE_MODE"][0] = EnumEntry("UAVCAN_NODE_MODE_OPERATIONAL", """The node is performing its primary functions.""")
  3901. UAVCAN_NODE_MODE_INITIALIZATION = 1
  3902. enums["UAVCAN_NODE_MODE"][1] = EnumEntry("UAVCAN_NODE_MODE_INITIALIZATION", """The node is initializing; this mode is entered immediately after startup.""")
  3903. UAVCAN_NODE_MODE_MAINTENANCE = 2
  3904. enums["UAVCAN_NODE_MODE"][2] = EnumEntry("UAVCAN_NODE_MODE_MAINTENANCE", """The node is under maintenance.""")
  3905. UAVCAN_NODE_MODE_SOFTWARE_UPDATE = 3
  3906. enums["UAVCAN_NODE_MODE"][3] = EnumEntry("UAVCAN_NODE_MODE_SOFTWARE_UPDATE", """The node is in the process of updating its software.""")
  3907. UAVCAN_NODE_MODE_OFFLINE = 7
  3908. enums["UAVCAN_NODE_MODE"][7] = EnumEntry("UAVCAN_NODE_MODE_OFFLINE", """The node is no longer available online.""")
  3909. UAVCAN_NODE_MODE_ENUM_END = 8
  3910. enums["UAVCAN_NODE_MODE"][8] = EnumEntry("UAVCAN_NODE_MODE_ENUM_END", """""")
  3911. # ESC_CONNECTION_TYPE
  3912. enums["ESC_CONNECTION_TYPE"] = Enum()
  3913. enums["ESC_CONNECTION_TYPE"].bitmask = False
  3914. ESC_CONNECTION_TYPE_PPM = 0
  3915. enums["ESC_CONNECTION_TYPE"][0] = EnumEntry("ESC_CONNECTION_TYPE_PPM", """Traditional PPM ESC.""")
  3916. ESC_CONNECTION_TYPE_SERIAL = 1
  3917. enums["ESC_CONNECTION_TYPE"][1] = EnumEntry("ESC_CONNECTION_TYPE_SERIAL", """Serial Bus connected ESC.""")
  3918. ESC_CONNECTION_TYPE_ONESHOT = 2
  3919. enums["ESC_CONNECTION_TYPE"][2] = EnumEntry("ESC_CONNECTION_TYPE_ONESHOT", """One Shot PPM ESC.""")
  3920. ESC_CONNECTION_TYPE_I2C = 3
  3921. enums["ESC_CONNECTION_TYPE"][3] = EnumEntry("ESC_CONNECTION_TYPE_I2C", """I2C ESC.""")
  3922. ESC_CONNECTION_TYPE_CAN = 4
  3923. enums["ESC_CONNECTION_TYPE"][4] = EnumEntry("ESC_CONNECTION_TYPE_CAN", """CAN-Bus ESC.""")
  3924. ESC_CONNECTION_TYPE_DSHOT = 5
  3925. enums["ESC_CONNECTION_TYPE"][5] = EnumEntry("ESC_CONNECTION_TYPE_DSHOT", """DShot ESC.""")
  3926. ESC_CONNECTION_TYPE_ENUM_END = 6
  3927. enums["ESC_CONNECTION_TYPE"][6] = EnumEntry("ESC_CONNECTION_TYPE_ENUM_END", """""")
  3928. # ESC_FAILURE_FLAGS
  3929. enums["ESC_FAILURE_FLAGS"] = Enum()
  3930. enums["ESC_FAILURE_FLAGS"].bitmask = True
  3931. ESC_FAILURE_NONE = 0
  3932. enums["ESC_FAILURE_FLAGS"][0] = EnumEntry("ESC_FAILURE_NONE", """No ESC failure.""")
  3933. ESC_FAILURE_OVER_CURRENT = 1
  3934. enums["ESC_FAILURE_FLAGS"][1] = EnumEntry("ESC_FAILURE_OVER_CURRENT", """Over current failure.""")
  3935. ESC_FAILURE_OVER_VOLTAGE = 2
  3936. enums["ESC_FAILURE_FLAGS"][2] = EnumEntry("ESC_FAILURE_OVER_VOLTAGE", """Over voltage failure.""")
  3937. ESC_FAILURE_OVER_TEMPERATURE = 4
  3938. enums["ESC_FAILURE_FLAGS"][4] = EnumEntry("ESC_FAILURE_OVER_TEMPERATURE", """Over temperature failure.""")
  3939. ESC_FAILURE_OVER_RPM = 8
  3940. enums["ESC_FAILURE_FLAGS"][8] = EnumEntry("ESC_FAILURE_OVER_RPM", """Over RPM failure.""")
  3941. ESC_FAILURE_INCONSISTENT_CMD = 16
  3942. enums["ESC_FAILURE_FLAGS"][16] = EnumEntry("ESC_FAILURE_INCONSISTENT_CMD", """Inconsistent command failure i.e. out of bounds.""")
  3943. ESC_FAILURE_MOTOR_STUCK = 32
  3944. enums["ESC_FAILURE_FLAGS"][32] = EnumEntry("ESC_FAILURE_MOTOR_STUCK", """Motor stuck failure.""")
  3945. ESC_FAILURE_GENERIC = 64
  3946. enums["ESC_FAILURE_FLAGS"][64] = EnumEntry("ESC_FAILURE_GENERIC", """Generic ESC failure.""")
  3947. ESC_FAILURE_FLAGS_ENUM_END = 65
  3948. enums["ESC_FAILURE_FLAGS"][65] = EnumEntry("ESC_FAILURE_FLAGS_ENUM_END", """""")
  3949. # STORAGE_STATUS
  3950. enums["STORAGE_STATUS"] = Enum()
  3951. enums["STORAGE_STATUS"].bitmask = False
  3952. STORAGE_STATUS_EMPTY = 0
  3953. enums["STORAGE_STATUS"][0] = EnumEntry("STORAGE_STATUS_EMPTY", """Storage is missing (no microSD card loaded for example.)""")
  3954. STORAGE_STATUS_UNFORMATTED = 1
  3955. enums["STORAGE_STATUS"][1] = EnumEntry("STORAGE_STATUS_UNFORMATTED", """Storage present but unformatted.""")
  3956. STORAGE_STATUS_READY = 2
  3957. enums["STORAGE_STATUS"][2] = EnumEntry("STORAGE_STATUS_READY", """Storage present and ready.""")
  3958. STORAGE_STATUS_NOT_SUPPORTED = 3
  3959. 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.""")
  3960. STORAGE_STATUS_ENUM_END = 4
  3961. enums["STORAGE_STATUS"][4] = EnumEntry("STORAGE_STATUS_ENUM_END", """""")
  3962. # STORAGE_TYPE
  3963. enums["STORAGE_TYPE"] = Enum()
  3964. enums["STORAGE_TYPE"].bitmask = False
  3965. STORAGE_TYPE_UNKNOWN = 0
  3966. enums["STORAGE_TYPE"][0] = EnumEntry("STORAGE_TYPE_UNKNOWN", """Storage type is not known.""")
  3967. STORAGE_TYPE_USB_STICK = 1
  3968. enums["STORAGE_TYPE"][1] = EnumEntry("STORAGE_TYPE_USB_STICK", """Storage type is USB device.""")
  3969. STORAGE_TYPE_SD = 2
  3970. enums["STORAGE_TYPE"][2] = EnumEntry("STORAGE_TYPE_SD", """Storage type is SD card.""")
  3971. STORAGE_TYPE_MICROSD = 3
  3972. enums["STORAGE_TYPE"][3] = EnumEntry("STORAGE_TYPE_MICROSD", """Storage type is microSD card.""")
  3973. STORAGE_TYPE_CF = 4
  3974. enums["STORAGE_TYPE"][4] = EnumEntry("STORAGE_TYPE_CF", """Storage type is CFast.""")
  3975. STORAGE_TYPE_CFE = 5
  3976. enums["STORAGE_TYPE"][5] = EnumEntry("STORAGE_TYPE_CFE", """Storage type is CFexpress.""")
  3977. STORAGE_TYPE_XQD = 6
  3978. enums["STORAGE_TYPE"][6] = EnumEntry("STORAGE_TYPE_XQD", """Storage type is XQD.""")
  3979. STORAGE_TYPE_HD = 7
  3980. enums["STORAGE_TYPE"][7] = EnumEntry("STORAGE_TYPE_HD", """Storage type is HD mass storage type.""")
  3981. STORAGE_TYPE_OTHER = 254
  3982. enums["STORAGE_TYPE"][254] = EnumEntry("STORAGE_TYPE_OTHER", """Storage type is other, not listed type.""")
  3983. STORAGE_TYPE_ENUM_END = 255
  3984. enums["STORAGE_TYPE"][255] = EnumEntry("STORAGE_TYPE_ENUM_END", """""")
  3985. # STORAGE_USAGE_FLAG
  3986. enums["STORAGE_USAGE_FLAG"] = Enum()
  3987. enums["STORAGE_USAGE_FLAG"].bitmask = False
  3988. STORAGE_USAGE_FLAG_SET = 1
  3989. enums["STORAGE_USAGE_FLAG"][1] = EnumEntry("STORAGE_USAGE_FLAG_SET", """Always set to 1 (indicates STORAGE_INFORMATION.storage_usage is supported).""")
  3990. STORAGE_USAGE_FLAG_PHOTO = 2
  3991. enums["STORAGE_USAGE_FLAG"][2] = EnumEntry("STORAGE_USAGE_FLAG_PHOTO", """Storage for saving photos.""")
  3992. STORAGE_USAGE_FLAG_VIDEO = 4
  3993. enums["STORAGE_USAGE_FLAG"][4] = EnumEntry("STORAGE_USAGE_FLAG_VIDEO", """Storage for saving videos.""")
  3994. STORAGE_USAGE_FLAG_LOGS = 8
  3995. enums["STORAGE_USAGE_FLAG"][8] = EnumEntry("STORAGE_USAGE_FLAG_LOGS", """Storage for saving logs.""")
  3996. STORAGE_USAGE_FLAG_ENUM_END = 9
  3997. enums["STORAGE_USAGE_FLAG"][9] = EnumEntry("STORAGE_USAGE_FLAG_ENUM_END", """""")
  3998. # ORBIT_YAW_BEHAVIOUR
  3999. enums["ORBIT_YAW_BEHAVIOUR"] = Enum()
  4000. enums["ORBIT_YAW_BEHAVIOUR"].bitmask = False
  4001. ORBIT_YAW_BEHAVIOUR_HOLD_FRONT_TO_CIRCLE_CENTER = 0
  4002. enums["ORBIT_YAW_BEHAVIOUR"][0] = EnumEntry("ORBIT_YAW_BEHAVIOUR_HOLD_FRONT_TO_CIRCLE_CENTER", """Vehicle front points to the center (default).""")
  4003. ORBIT_YAW_BEHAVIOUR_HOLD_INITIAL_HEADING = 1
  4004. enums["ORBIT_YAW_BEHAVIOUR"][1] = EnumEntry("ORBIT_YAW_BEHAVIOUR_HOLD_INITIAL_HEADING", """Vehicle front holds heading when message received.""")
  4005. ORBIT_YAW_BEHAVIOUR_UNCONTROLLED = 2
  4006. enums["ORBIT_YAW_BEHAVIOUR"][2] = EnumEntry("ORBIT_YAW_BEHAVIOUR_UNCONTROLLED", """Yaw uncontrolled.""")
  4007. ORBIT_YAW_BEHAVIOUR_HOLD_FRONT_TANGENT_TO_CIRCLE = 3
  4008. enums["ORBIT_YAW_BEHAVIOUR"][3] = EnumEntry("ORBIT_YAW_BEHAVIOUR_HOLD_FRONT_TANGENT_TO_CIRCLE", """Vehicle front follows flight path (tangential to circle).""")
  4009. ORBIT_YAW_BEHAVIOUR_RC_CONTROLLED = 4
  4010. enums["ORBIT_YAW_BEHAVIOUR"][4] = EnumEntry("ORBIT_YAW_BEHAVIOUR_RC_CONTROLLED", """Yaw controlled by RC input.""")
  4011. ORBIT_YAW_BEHAVIOUR_ENUM_END = 5
  4012. enums["ORBIT_YAW_BEHAVIOUR"][5] = EnumEntry("ORBIT_YAW_BEHAVIOUR_ENUM_END", """""")
  4013. # WIFI_CONFIG_AP_RESPONSE
  4014. enums["WIFI_CONFIG_AP_RESPONSE"] = Enum()
  4015. enums["WIFI_CONFIG_AP_RESPONSE"].bitmask = False
  4016. WIFI_CONFIG_AP_RESPONSE_UNDEFINED = 0
  4017. 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.""")
  4018. WIFI_CONFIG_AP_RESPONSE_ACCEPTED = 1
  4019. enums["WIFI_CONFIG_AP_RESPONSE"][1] = EnumEntry("WIFI_CONFIG_AP_RESPONSE_ACCEPTED", """Changes accepted.""")
  4020. WIFI_CONFIG_AP_RESPONSE_REJECTED = 2
  4021. enums["WIFI_CONFIG_AP_RESPONSE"][2] = EnumEntry("WIFI_CONFIG_AP_RESPONSE_REJECTED", """Changes rejected.""")
  4022. WIFI_CONFIG_AP_RESPONSE_MODE_ERROR = 3
  4023. enums["WIFI_CONFIG_AP_RESPONSE"][3] = EnumEntry("WIFI_CONFIG_AP_RESPONSE_MODE_ERROR", """Invalid Mode.""")
  4024. WIFI_CONFIG_AP_RESPONSE_SSID_ERROR = 4
  4025. enums["WIFI_CONFIG_AP_RESPONSE"][4] = EnumEntry("WIFI_CONFIG_AP_RESPONSE_SSID_ERROR", """Invalid SSID.""")
  4026. WIFI_CONFIG_AP_RESPONSE_PASSWORD_ERROR = 5
  4027. enums["WIFI_CONFIG_AP_RESPONSE"][5] = EnumEntry("WIFI_CONFIG_AP_RESPONSE_PASSWORD_ERROR", """Invalid Password.""")
  4028. WIFI_CONFIG_AP_RESPONSE_ENUM_END = 6
  4029. enums["WIFI_CONFIG_AP_RESPONSE"][6] = EnumEntry("WIFI_CONFIG_AP_RESPONSE_ENUM_END", """""")
  4030. # CELLULAR_CONFIG_RESPONSE
  4031. enums["CELLULAR_CONFIG_RESPONSE"] = Enum()
  4032. enums["CELLULAR_CONFIG_RESPONSE"].bitmask = False
  4033. CELLULAR_CONFIG_RESPONSE_ACCEPTED = 0
  4034. enums["CELLULAR_CONFIG_RESPONSE"][0] = EnumEntry("CELLULAR_CONFIG_RESPONSE_ACCEPTED", """Changes accepted.""")
  4035. CELLULAR_CONFIG_RESPONSE_APN_ERROR = 1
  4036. enums["CELLULAR_CONFIG_RESPONSE"][1] = EnumEntry("CELLULAR_CONFIG_RESPONSE_APN_ERROR", """Invalid APN.""")
  4037. CELLULAR_CONFIG_RESPONSE_PIN_ERROR = 2
  4038. enums["CELLULAR_CONFIG_RESPONSE"][2] = EnumEntry("CELLULAR_CONFIG_RESPONSE_PIN_ERROR", """Invalid PIN.""")
  4039. CELLULAR_CONFIG_RESPONSE_REJECTED = 3
  4040. enums["CELLULAR_CONFIG_RESPONSE"][3] = EnumEntry("CELLULAR_CONFIG_RESPONSE_REJECTED", """Changes rejected.""")
  4041. CELLULAR_CONFIG_BLOCKED_PUK_REQUIRED = 4
  4042. enums["CELLULAR_CONFIG_RESPONSE"][4] = EnumEntry("CELLULAR_CONFIG_BLOCKED_PUK_REQUIRED", """PUK is required to unblock SIM card.""")
  4043. CELLULAR_CONFIG_RESPONSE_ENUM_END = 5
  4044. enums["CELLULAR_CONFIG_RESPONSE"][5] = EnumEntry("CELLULAR_CONFIG_RESPONSE_ENUM_END", """""")
  4045. # WIFI_CONFIG_AP_MODE
  4046. enums["WIFI_CONFIG_AP_MODE"] = Enum()
  4047. enums["WIFI_CONFIG_AP_MODE"].bitmask = False
  4048. WIFI_CONFIG_AP_MODE_UNDEFINED = 0
  4049. enums["WIFI_CONFIG_AP_MODE"][0] = EnumEntry("WIFI_CONFIG_AP_MODE_UNDEFINED", """WiFi mode is undefined.""")
  4050. WIFI_CONFIG_AP_MODE_AP = 1
  4051. enums["WIFI_CONFIG_AP_MODE"][1] = EnumEntry("WIFI_CONFIG_AP_MODE_AP", """WiFi configured as an access point.""")
  4052. WIFI_CONFIG_AP_MODE_STATION = 2
  4053. enums["WIFI_CONFIG_AP_MODE"][2] = EnumEntry("WIFI_CONFIG_AP_MODE_STATION", """WiFi configured as a station connected to an existing local WiFi network.""")
  4054. WIFI_CONFIG_AP_MODE_DISABLED = 3
  4055. enums["WIFI_CONFIG_AP_MODE"][3] = EnumEntry("WIFI_CONFIG_AP_MODE_DISABLED", """WiFi disabled.""")
  4056. WIFI_CONFIG_AP_MODE_ENUM_END = 4
  4057. enums["WIFI_CONFIG_AP_MODE"][4] = EnumEntry("WIFI_CONFIG_AP_MODE_ENUM_END", """""")
  4058. # COMP_METADATA_TYPE
  4059. enums["COMP_METADATA_TYPE"] = Enum()
  4060. enums["COMP_METADATA_TYPE"].bitmask = False
  4061. COMP_METADATA_TYPE_GENERAL = 0
  4062. 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.""")
  4063. COMP_METADATA_TYPE_PARAMETER = 1
  4064. enums["COMP_METADATA_TYPE"][1] = EnumEntry("COMP_METADATA_TYPE_PARAMETER", """Parameter meta data.""")
  4065. COMP_METADATA_TYPE_COMMANDS = 2
  4066. enums["COMP_METADATA_TYPE"][2] = EnumEntry("COMP_METADATA_TYPE_COMMANDS", """Meta data that specifies which commands and command parameters the vehicle supports. (WIP)""")
  4067. COMP_METADATA_TYPE_PERIPHERALS = 3
  4068. enums["COMP_METADATA_TYPE"][3] = EnumEntry("COMP_METADATA_TYPE_PERIPHERALS", """Meta data that specifies external non-MAVLink peripherals.""")
  4069. COMP_METADATA_TYPE_EVENTS = 4
  4070. enums["COMP_METADATA_TYPE"][4] = EnumEntry("COMP_METADATA_TYPE_EVENTS", """Meta data for the events interface.""")
  4071. COMP_METADATA_TYPE_ACTUATORS = 5
  4072. enums["COMP_METADATA_TYPE"][5] = EnumEntry("COMP_METADATA_TYPE_ACTUATORS", """Meta data for actuator configuration (motors, servos and vehicle geometry) and testing.""")
  4073. COMP_METADATA_TYPE_ENUM_END = 6
  4074. enums["COMP_METADATA_TYPE"][6] = EnumEntry("COMP_METADATA_TYPE_ENUM_END", """""")
  4075. # ACTUATOR_CONFIGURATION
  4076. enums["ACTUATOR_CONFIGURATION"] = Enum()
  4077. enums["ACTUATOR_CONFIGURATION"].bitmask = False
  4078. ACTUATOR_CONFIGURATION_NONE = 0
  4079. enums["ACTUATOR_CONFIGURATION"][0] = EnumEntry("ACTUATOR_CONFIGURATION_NONE", """Do nothing.""")
  4080. ACTUATOR_CONFIGURATION_BEEP = 1
  4081. enums["ACTUATOR_CONFIGURATION"][1] = EnumEntry("ACTUATOR_CONFIGURATION_BEEP", """Command the actuator to beep now.""")
  4082. ACTUATOR_CONFIGURATION_3D_MODE_ON = 2
  4083. enums["ACTUATOR_CONFIGURATION"][2] = EnumEntry("ACTUATOR_CONFIGURATION_3D_MODE_ON", """Permanently set the actuator (ESC) to 3D mode (reversible thrust).""")
  4084. ACTUATOR_CONFIGURATION_3D_MODE_OFF = 3
  4085. enums["ACTUATOR_CONFIGURATION"][3] = EnumEntry("ACTUATOR_CONFIGURATION_3D_MODE_OFF", """Permanently set the actuator (ESC) to non 3D mode (non-reversible thrust).""")
  4086. ACTUATOR_CONFIGURATION_SPIN_DIRECTION1 = 4
  4087. 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).""")
  4088. ACTUATOR_CONFIGURATION_SPIN_DIRECTION2 = 5
  4089. enums["ACTUATOR_CONFIGURATION"][5] = EnumEntry("ACTUATOR_CONFIGURATION_SPIN_DIRECTION2", """Permanently set the actuator (ESC) to spin direction 2 (opposite of direction 1).""")
  4090. ACTUATOR_CONFIGURATION_ENUM_END = 6
  4091. enums["ACTUATOR_CONFIGURATION"][6] = EnumEntry("ACTUATOR_CONFIGURATION_ENUM_END", """""")
  4092. # ACTUATOR_OUTPUT_FUNCTION
  4093. enums["ACTUATOR_OUTPUT_FUNCTION"] = Enum()
  4094. enums["ACTUATOR_OUTPUT_FUNCTION"].bitmask = False
  4095. ACTUATOR_OUTPUT_FUNCTION_NONE = 0
  4096. enums["ACTUATOR_OUTPUT_FUNCTION"][0] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_NONE", """No function (disabled).""")
  4097. ACTUATOR_OUTPUT_FUNCTION_MOTOR1 = 1
  4098. enums["ACTUATOR_OUTPUT_FUNCTION"][1] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR1", """Motor 1""")
  4099. ACTUATOR_OUTPUT_FUNCTION_MOTOR2 = 2
  4100. enums["ACTUATOR_OUTPUT_FUNCTION"][2] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR2", """Motor 2""")
  4101. ACTUATOR_OUTPUT_FUNCTION_MOTOR3 = 3
  4102. enums["ACTUATOR_OUTPUT_FUNCTION"][3] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR3", """Motor 3""")
  4103. ACTUATOR_OUTPUT_FUNCTION_MOTOR4 = 4
  4104. enums["ACTUATOR_OUTPUT_FUNCTION"][4] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR4", """Motor 4""")
  4105. ACTUATOR_OUTPUT_FUNCTION_MOTOR5 = 5
  4106. enums["ACTUATOR_OUTPUT_FUNCTION"][5] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR5", """Motor 5""")
  4107. ACTUATOR_OUTPUT_FUNCTION_MOTOR6 = 6
  4108. enums["ACTUATOR_OUTPUT_FUNCTION"][6] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR6", """Motor 6""")
  4109. ACTUATOR_OUTPUT_FUNCTION_MOTOR7 = 7
  4110. enums["ACTUATOR_OUTPUT_FUNCTION"][7] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR7", """Motor 7""")
  4111. ACTUATOR_OUTPUT_FUNCTION_MOTOR8 = 8
  4112. enums["ACTUATOR_OUTPUT_FUNCTION"][8] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR8", """Motor 8""")
  4113. ACTUATOR_OUTPUT_FUNCTION_MOTOR9 = 9
  4114. enums["ACTUATOR_OUTPUT_FUNCTION"][9] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR9", """Motor 9""")
  4115. ACTUATOR_OUTPUT_FUNCTION_MOTOR10 = 10
  4116. enums["ACTUATOR_OUTPUT_FUNCTION"][10] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR10", """Motor 10""")
  4117. ACTUATOR_OUTPUT_FUNCTION_MOTOR11 = 11
  4118. enums["ACTUATOR_OUTPUT_FUNCTION"][11] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR11", """Motor 11""")
  4119. ACTUATOR_OUTPUT_FUNCTION_MOTOR12 = 12
  4120. enums["ACTUATOR_OUTPUT_FUNCTION"][12] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR12", """Motor 12""")
  4121. ACTUATOR_OUTPUT_FUNCTION_MOTOR13 = 13
  4122. enums["ACTUATOR_OUTPUT_FUNCTION"][13] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR13", """Motor 13""")
  4123. ACTUATOR_OUTPUT_FUNCTION_MOTOR14 = 14
  4124. enums["ACTUATOR_OUTPUT_FUNCTION"][14] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR14", """Motor 14""")
  4125. ACTUATOR_OUTPUT_FUNCTION_MOTOR15 = 15
  4126. enums["ACTUATOR_OUTPUT_FUNCTION"][15] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR15", """Motor 15""")
  4127. ACTUATOR_OUTPUT_FUNCTION_MOTOR16 = 16
  4128. enums["ACTUATOR_OUTPUT_FUNCTION"][16] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_MOTOR16", """Motor 16""")
  4129. ACTUATOR_OUTPUT_FUNCTION_SERVO1 = 33
  4130. enums["ACTUATOR_OUTPUT_FUNCTION"][33] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO1", """Servo 1""")
  4131. ACTUATOR_OUTPUT_FUNCTION_SERVO2 = 34
  4132. enums["ACTUATOR_OUTPUT_FUNCTION"][34] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO2", """Servo 2""")
  4133. ACTUATOR_OUTPUT_FUNCTION_SERVO3 = 35
  4134. enums["ACTUATOR_OUTPUT_FUNCTION"][35] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO3", """Servo 3""")
  4135. ACTUATOR_OUTPUT_FUNCTION_SERVO4 = 36
  4136. enums["ACTUATOR_OUTPUT_FUNCTION"][36] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO4", """Servo 4""")
  4137. ACTUATOR_OUTPUT_FUNCTION_SERVO5 = 37
  4138. enums["ACTUATOR_OUTPUT_FUNCTION"][37] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO5", """Servo 5""")
  4139. ACTUATOR_OUTPUT_FUNCTION_SERVO6 = 38
  4140. enums["ACTUATOR_OUTPUT_FUNCTION"][38] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO6", """Servo 6""")
  4141. ACTUATOR_OUTPUT_FUNCTION_SERVO7 = 39
  4142. enums["ACTUATOR_OUTPUT_FUNCTION"][39] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO7", """Servo 7""")
  4143. ACTUATOR_OUTPUT_FUNCTION_SERVO8 = 40
  4144. enums["ACTUATOR_OUTPUT_FUNCTION"][40] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO8", """Servo 8""")
  4145. ACTUATOR_OUTPUT_FUNCTION_SERVO9 = 41
  4146. enums["ACTUATOR_OUTPUT_FUNCTION"][41] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO9", """Servo 9""")
  4147. ACTUATOR_OUTPUT_FUNCTION_SERVO10 = 42
  4148. enums["ACTUATOR_OUTPUT_FUNCTION"][42] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO10", """Servo 10""")
  4149. ACTUATOR_OUTPUT_FUNCTION_SERVO11 = 43
  4150. enums["ACTUATOR_OUTPUT_FUNCTION"][43] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO11", """Servo 11""")
  4151. ACTUATOR_OUTPUT_FUNCTION_SERVO12 = 44
  4152. enums["ACTUATOR_OUTPUT_FUNCTION"][44] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO12", """Servo 12""")
  4153. ACTUATOR_OUTPUT_FUNCTION_SERVO13 = 45
  4154. enums["ACTUATOR_OUTPUT_FUNCTION"][45] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO13", """Servo 13""")
  4155. ACTUATOR_OUTPUT_FUNCTION_SERVO14 = 46
  4156. enums["ACTUATOR_OUTPUT_FUNCTION"][46] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO14", """Servo 14""")
  4157. ACTUATOR_OUTPUT_FUNCTION_SERVO15 = 47
  4158. enums["ACTUATOR_OUTPUT_FUNCTION"][47] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO15", """Servo 15""")
  4159. ACTUATOR_OUTPUT_FUNCTION_SERVO16 = 48
  4160. enums["ACTUATOR_OUTPUT_FUNCTION"][48] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_SERVO16", """Servo 16""")
  4161. ACTUATOR_OUTPUT_FUNCTION_ENUM_END = 49
  4162. enums["ACTUATOR_OUTPUT_FUNCTION"][49] = EnumEntry("ACTUATOR_OUTPUT_FUNCTION_ENUM_END", """""")
  4163. # AUTOTUNE_AXIS
  4164. enums["AUTOTUNE_AXIS"] = Enum()
  4165. enums["AUTOTUNE_AXIS"].bitmask = True
  4166. AUTOTUNE_AXIS_DEFAULT = 0
  4167. enums["AUTOTUNE_AXIS"][0] = EnumEntry("AUTOTUNE_AXIS_DEFAULT", """Flight stack tunes axis according to its default settings.""")
  4168. AUTOTUNE_AXIS_ROLL = 1
  4169. enums["AUTOTUNE_AXIS"][1] = EnumEntry("AUTOTUNE_AXIS_ROLL", """Autotune roll axis.""")
  4170. AUTOTUNE_AXIS_PITCH = 2
  4171. enums["AUTOTUNE_AXIS"][2] = EnumEntry("AUTOTUNE_AXIS_PITCH", """Autotune pitch axis.""")
  4172. AUTOTUNE_AXIS_YAW = 4
  4173. enums["AUTOTUNE_AXIS"][4] = EnumEntry("AUTOTUNE_AXIS_YAW", """Autotune yaw axis.""")
  4174. AUTOTUNE_AXIS_ENUM_END = 5
  4175. enums["AUTOTUNE_AXIS"][5] = EnumEntry("AUTOTUNE_AXIS_ENUM_END", """""")
  4176. # PREFLIGHT_STORAGE_PARAMETER_ACTION
  4177. enums["PREFLIGHT_STORAGE_PARAMETER_ACTION"] = Enum()
  4178. enums["PREFLIGHT_STORAGE_PARAMETER_ACTION"].bitmask = False
  4179. PARAM_READ_PERSISTENT = 0
  4180. enums["PREFLIGHT_STORAGE_PARAMETER_ACTION"][0] = EnumEntry("PARAM_READ_PERSISTENT", """Read all parameters from persistent storage. Replaces values in volatile storage.""")
  4181. PARAM_WRITE_PERSISTENT = 1
  4182. enums["PREFLIGHT_STORAGE_PARAMETER_ACTION"][1] = EnumEntry("PARAM_WRITE_PERSISTENT", """Write all parameter values to persistent storage (flash/EEPROM)""")
  4183. PARAM_RESET_CONFIG_DEFAULT = 2
  4184. 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.""")
  4185. PARAM_RESET_SENSOR_DEFAULT = 3
  4186. 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)""")
  4187. PARAM_RESET_ALL_DEFAULT = 4
  4188. enums["PREFLIGHT_STORAGE_PARAMETER_ACTION"][4] = EnumEntry("PARAM_RESET_ALL_DEFAULT", """Reset all parameters, including operation counters, to default values""")
  4189. PREFLIGHT_STORAGE_PARAMETER_ACTION_ENUM_END = 5
  4190. enums["PREFLIGHT_STORAGE_PARAMETER_ACTION"][5] = EnumEntry("PREFLIGHT_STORAGE_PARAMETER_ACTION_ENUM_END", """""")
  4191. # PREFLIGHT_STORAGE_MISSION_ACTION
  4192. enums["PREFLIGHT_STORAGE_MISSION_ACTION"] = Enum()
  4193. enums["PREFLIGHT_STORAGE_MISSION_ACTION"].bitmask = False
  4194. MISSION_READ_PERSISTENT = 0
  4195. enums["PREFLIGHT_STORAGE_MISSION_ACTION"][0] = EnumEntry("MISSION_READ_PERSISTENT", """Read current mission data from persistent storage""")
  4196. MISSION_WRITE_PERSISTENT = 1
  4197. enums["PREFLIGHT_STORAGE_MISSION_ACTION"][1] = EnumEntry("MISSION_WRITE_PERSISTENT", """Write current mission data to persistent storage""")
  4198. MISSION_RESET_DEFAULT = 2
  4199. enums["PREFLIGHT_STORAGE_MISSION_ACTION"][2] = EnumEntry("MISSION_RESET_DEFAULT", """Erase all mission data stored on the vehicle (both persistent and volatile storage)""")
  4200. PREFLIGHT_STORAGE_MISSION_ACTION_ENUM_END = 3
  4201. enums["PREFLIGHT_STORAGE_MISSION_ACTION"][3] = EnumEntry("PREFLIGHT_STORAGE_MISSION_ACTION_ENUM_END", """""")
  4202. # MAV_DATA_STREAM
  4203. enums["MAV_DATA_STREAM"] = Enum()
  4204. enums["MAV_DATA_STREAM"].bitmask = False
  4205. MAV_DATA_STREAM_ALL = 0
  4206. enums["MAV_DATA_STREAM"][0] = EnumEntry("MAV_DATA_STREAM_ALL", """Enable all data streams""")
  4207. MAV_DATA_STREAM_RAW_SENSORS = 1
  4208. enums["MAV_DATA_STREAM"][1] = EnumEntry("MAV_DATA_STREAM_RAW_SENSORS", """Enable IMU_RAW, GPS_RAW, GPS_STATUS packets.""")
  4209. MAV_DATA_STREAM_EXTENDED_STATUS = 2
  4210. enums["MAV_DATA_STREAM"][2] = EnumEntry("MAV_DATA_STREAM_EXTENDED_STATUS", """Enable GPS_STATUS, CONTROL_STATUS, AUX_STATUS""")
  4211. MAV_DATA_STREAM_RC_CHANNELS = 3
  4212. enums["MAV_DATA_STREAM"][3] = EnumEntry("MAV_DATA_STREAM_RC_CHANNELS", """Enable RC_CHANNELS_SCALED, RC_CHANNELS_RAW, SERVO_OUTPUT_RAW""")
  4213. MAV_DATA_STREAM_RAW_CONTROLLER = 4
  4214. enums["MAV_DATA_STREAM"][4] = EnumEntry("MAV_DATA_STREAM_RAW_CONTROLLER", """Enable ATTITUDE_CONTROLLER_OUTPUT, POSITION_CONTROLLER_OUTPUT, NAV_CONTROLLER_OUTPUT.""")
  4215. MAV_DATA_STREAM_POSITION = 6
  4216. enums["MAV_DATA_STREAM"][6] = EnumEntry("MAV_DATA_STREAM_POSITION", """Enable LOCAL_POSITION, GLOBAL_POSITION_INT messages.""")
  4217. MAV_DATA_STREAM_EXTRA1 = 10
  4218. enums["MAV_DATA_STREAM"][10] = EnumEntry("MAV_DATA_STREAM_EXTRA1", """Dependent on the autopilot""")
  4219. MAV_DATA_STREAM_EXTRA2 = 11
  4220. enums["MAV_DATA_STREAM"][11] = EnumEntry("MAV_DATA_STREAM_EXTRA2", """Dependent on the autopilot""")
  4221. MAV_DATA_STREAM_EXTRA3 = 12
  4222. enums["MAV_DATA_STREAM"][12] = EnumEntry("MAV_DATA_STREAM_EXTRA3", """Dependent on the autopilot""")
  4223. MAV_DATA_STREAM_ENUM_END = 13
  4224. enums["MAV_DATA_STREAM"][13] = EnumEntry("MAV_DATA_STREAM_ENUM_END", """""")
  4225. # MAV_ROI
  4226. enums["MAV_ROI"] = Enum()
  4227. enums["MAV_ROI"].bitmask = False
  4228. MAV_ROI_NONE = 0
  4229. enums["MAV_ROI"][0] = EnumEntry("MAV_ROI_NONE", """No region of interest.""")
  4230. MAV_ROI_WPNEXT = 1
  4231. enums["MAV_ROI"][1] = EnumEntry("MAV_ROI_WPNEXT", """Point toward next waypoint, with optional pitch/roll/yaw offset.""")
  4232. MAV_ROI_WPINDEX = 2
  4233. enums["MAV_ROI"][2] = EnumEntry("MAV_ROI_WPINDEX", """Point toward given waypoint.""")
  4234. MAV_ROI_LOCATION = 3
  4235. enums["MAV_ROI"][3] = EnumEntry("MAV_ROI_LOCATION", """Point toward fixed location.""")
  4236. MAV_ROI_TARGET = 4
  4237. enums["MAV_ROI"][4] = EnumEntry("MAV_ROI_TARGET", """Point toward of given id.""")
  4238. MAV_ROI_ENUM_END = 5
  4239. enums["MAV_ROI"][5] = EnumEntry("MAV_ROI_ENUM_END", """""")
  4240. # MAV_PARAM_TYPE
  4241. enums["MAV_PARAM_TYPE"] = Enum()
  4242. enums["MAV_PARAM_TYPE"].bitmask = False
  4243. MAV_PARAM_TYPE_UINT8 = 1
  4244. enums["MAV_PARAM_TYPE"][1] = EnumEntry("MAV_PARAM_TYPE_UINT8", """8-bit unsigned integer""")
  4245. MAV_PARAM_TYPE_INT8 = 2
  4246. enums["MAV_PARAM_TYPE"][2] = EnumEntry("MAV_PARAM_TYPE_INT8", """8-bit signed integer""")
  4247. MAV_PARAM_TYPE_UINT16 = 3
  4248. enums["MAV_PARAM_TYPE"][3] = EnumEntry("MAV_PARAM_TYPE_UINT16", """16-bit unsigned integer""")
  4249. MAV_PARAM_TYPE_INT16 = 4
  4250. enums["MAV_PARAM_TYPE"][4] = EnumEntry("MAV_PARAM_TYPE_INT16", """16-bit signed integer""")
  4251. MAV_PARAM_TYPE_UINT32 = 5
  4252. enums["MAV_PARAM_TYPE"][5] = EnumEntry("MAV_PARAM_TYPE_UINT32", """32-bit unsigned integer""")
  4253. MAV_PARAM_TYPE_INT32 = 6
  4254. enums["MAV_PARAM_TYPE"][6] = EnumEntry("MAV_PARAM_TYPE_INT32", """32-bit signed integer""")
  4255. MAV_PARAM_TYPE_UINT64 = 7
  4256. enums["MAV_PARAM_TYPE"][7] = EnumEntry("MAV_PARAM_TYPE_UINT64", """64-bit unsigned integer""")
  4257. MAV_PARAM_TYPE_INT64 = 8
  4258. enums["MAV_PARAM_TYPE"][8] = EnumEntry("MAV_PARAM_TYPE_INT64", """64-bit signed integer""")
  4259. MAV_PARAM_TYPE_REAL32 = 9
  4260. enums["MAV_PARAM_TYPE"][9] = EnumEntry("MAV_PARAM_TYPE_REAL32", """32-bit floating-point""")
  4261. MAV_PARAM_TYPE_REAL64 = 10
  4262. enums["MAV_PARAM_TYPE"][10] = EnumEntry("MAV_PARAM_TYPE_REAL64", """64-bit floating-point""")
  4263. MAV_PARAM_TYPE_ENUM_END = 11
  4264. enums["MAV_PARAM_TYPE"][11] = EnumEntry("MAV_PARAM_TYPE_ENUM_END", """""")
  4265. # MAV_PARAM_EXT_TYPE
  4266. enums["MAV_PARAM_EXT_TYPE"] = Enum()
  4267. enums["MAV_PARAM_EXT_TYPE"].bitmask = False
  4268. MAV_PARAM_EXT_TYPE_UINT8 = 1
  4269. enums["MAV_PARAM_EXT_TYPE"][1] = EnumEntry("MAV_PARAM_EXT_TYPE_UINT8", """8-bit unsigned integer""")
  4270. MAV_PARAM_EXT_TYPE_INT8 = 2
  4271. enums["MAV_PARAM_EXT_TYPE"][2] = EnumEntry("MAV_PARAM_EXT_TYPE_INT8", """8-bit signed integer""")
  4272. MAV_PARAM_EXT_TYPE_UINT16 = 3
  4273. enums["MAV_PARAM_EXT_TYPE"][3] = EnumEntry("MAV_PARAM_EXT_TYPE_UINT16", """16-bit unsigned integer""")
  4274. MAV_PARAM_EXT_TYPE_INT16 = 4
  4275. enums["MAV_PARAM_EXT_TYPE"][4] = EnumEntry("MAV_PARAM_EXT_TYPE_INT16", """16-bit signed integer""")
  4276. MAV_PARAM_EXT_TYPE_UINT32 = 5
  4277. enums["MAV_PARAM_EXT_TYPE"][5] = EnumEntry("MAV_PARAM_EXT_TYPE_UINT32", """32-bit unsigned integer""")
  4278. MAV_PARAM_EXT_TYPE_INT32 = 6
  4279. enums["MAV_PARAM_EXT_TYPE"][6] = EnumEntry("MAV_PARAM_EXT_TYPE_INT32", """32-bit signed integer""")
  4280. MAV_PARAM_EXT_TYPE_UINT64 = 7
  4281. enums["MAV_PARAM_EXT_TYPE"][7] = EnumEntry("MAV_PARAM_EXT_TYPE_UINT64", """64-bit unsigned integer""")
  4282. MAV_PARAM_EXT_TYPE_INT64 = 8
  4283. enums["MAV_PARAM_EXT_TYPE"][8] = EnumEntry("MAV_PARAM_EXT_TYPE_INT64", """64-bit signed integer""")
  4284. MAV_PARAM_EXT_TYPE_REAL32 = 9
  4285. enums["MAV_PARAM_EXT_TYPE"][9] = EnumEntry("MAV_PARAM_EXT_TYPE_REAL32", """32-bit floating-point""")
  4286. MAV_PARAM_EXT_TYPE_REAL64 = 10
  4287. enums["MAV_PARAM_EXT_TYPE"][10] = EnumEntry("MAV_PARAM_EXT_TYPE_REAL64", """64-bit floating-point""")
  4288. MAV_PARAM_EXT_TYPE_CUSTOM = 11
  4289. enums["MAV_PARAM_EXT_TYPE"][11] = EnumEntry("MAV_PARAM_EXT_TYPE_CUSTOM", """Custom Type""")
  4290. MAV_PARAM_EXT_TYPE_ENUM_END = 12
  4291. enums["MAV_PARAM_EXT_TYPE"][12] = EnumEntry("MAV_PARAM_EXT_TYPE_ENUM_END", """""")
  4292. # MAV_RESULT
  4293. enums["MAV_RESULT"] = Enum()
  4294. enums["MAV_RESULT"].bitmask = False
  4295. MAV_RESULT_ACCEPTED = 0
  4296. enums["MAV_RESULT"][0] = EnumEntry("MAV_RESULT_ACCEPTED", """Command is valid (is supported and has valid parameters), and was executed.""")
  4297. MAV_RESULT_TEMPORARILY_REJECTED = 1
  4298. 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.""")
  4299. MAV_RESULT_DENIED = 2
  4300. 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.""")
  4301. MAV_RESULT_UNSUPPORTED = 3
  4302. enums["MAV_RESULT"][3] = EnumEntry("MAV_RESULT_UNSUPPORTED", """Command is not supported (unknown).""")
  4303. MAV_RESULT_FAILED = 4
  4304. 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.""")
  4305. MAV_RESULT_IN_PROGRESS = 5
  4306. 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.""")
  4307. MAV_RESULT_CANCELLED = 6
  4308. enums["MAV_RESULT"][6] = EnumEntry("MAV_RESULT_CANCELLED", """Command has been cancelled (as a result of receiving a COMMAND_CANCEL message).""")
  4309. MAV_RESULT_COMMAND_LONG_ONLY = 7
  4310. enums["MAV_RESULT"][7] = EnumEntry("MAV_RESULT_COMMAND_LONG_ONLY", """Command is only accepted when sent as a COMMAND_LONG.""")
  4311. MAV_RESULT_COMMAND_INT_ONLY = 8
  4312. enums["MAV_RESULT"][8] = EnumEntry("MAV_RESULT_COMMAND_INT_ONLY", """Command is only accepted when sent as a COMMAND_INT.""")
  4313. MAV_RESULT_COMMAND_UNSUPPORTED_MAV_FRAME = 9
  4314. 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.""")
  4315. MAV_RESULT_ENUM_END = 10
  4316. enums["MAV_RESULT"][10] = EnumEntry("MAV_RESULT_ENUM_END", """""")
  4317. # MAV_MISSION_RESULT
  4318. enums["MAV_MISSION_RESULT"] = Enum()
  4319. enums["MAV_MISSION_RESULT"].bitmask = False
  4320. MAV_MISSION_ACCEPTED = 0
  4321. enums["MAV_MISSION_RESULT"][0] = EnumEntry("MAV_MISSION_ACCEPTED", """mission accepted OK""")
  4322. MAV_MISSION_ERROR = 1
  4323. enums["MAV_MISSION_RESULT"][1] = EnumEntry("MAV_MISSION_ERROR", """Generic error / not accepting mission commands at all right now.""")
  4324. MAV_MISSION_UNSUPPORTED_FRAME = 2
  4325. enums["MAV_MISSION_RESULT"][2] = EnumEntry("MAV_MISSION_UNSUPPORTED_FRAME", """Coordinate frame is not supported.""")
  4326. MAV_MISSION_UNSUPPORTED = 3
  4327. enums["MAV_MISSION_RESULT"][3] = EnumEntry("MAV_MISSION_UNSUPPORTED", """Command is not supported.""")
  4328. MAV_MISSION_NO_SPACE = 4
  4329. enums["MAV_MISSION_RESULT"][4] = EnumEntry("MAV_MISSION_NO_SPACE", """Mission items exceed storage space.""")
  4330. MAV_MISSION_INVALID = 5
  4331. enums["MAV_MISSION_RESULT"][5] = EnumEntry("MAV_MISSION_INVALID", """One of the parameters has an invalid value.""")
  4332. MAV_MISSION_INVALID_PARAM1 = 6
  4333. enums["MAV_MISSION_RESULT"][6] = EnumEntry("MAV_MISSION_INVALID_PARAM1", """param1 has an invalid value.""")
  4334. MAV_MISSION_INVALID_PARAM2 = 7
  4335. enums["MAV_MISSION_RESULT"][7] = EnumEntry("MAV_MISSION_INVALID_PARAM2", """param2 has an invalid value.""")
  4336. MAV_MISSION_INVALID_PARAM3 = 8
  4337. enums["MAV_MISSION_RESULT"][8] = EnumEntry("MAV_MISSION_INVALID_PARAM3", """param3 has an invalid value.""")
  4338. MAV_MISSION_INVALID_PARAM4 = 9
  4339. enums["MAV_MISSION_RESULT"][9] = EnumEntry("MAV_MISSION_INVALID_PARAM4", """param4 has an invalid value.""")
  4340. MAV_MISSION_INVALID_PARAM5_X = 10
  4341. enums["MAV_MISSION_RESULT"][10] = EnumEntry("MAV_MISSION_INVALID_PARAM5_X", """x / param5 has an invalid value.""")
  4342. MAV_MISSION_INVALID_PARAM6_Y = 11
  4343. enums["MAV_MISSION_RESULT"][11] = EnumEntry("MAV_MISSION_INVALID_PARAM6_Y", """y / param6 has an invalid value.""")
  4344. MAV_MISSION_INVALID_PARAM7 = 12
  4345. enums["MAV_MISSION_RESULT"][12] = EnumEntry("MAV_MISSION_INVALID_PARAM7", """z / param7 has an invalid value.""")
  4346. MAV_MISSION_INVALID_SEQUENCE = 13
  4347. enums["MAV_MISSION_RESULT"][13] = EnumEntry("MAV_MISSION_INVALID_SEQUENCE", """Mission item received out of sequence""")
  4348. MAV_MISSION_DENIED = 14
  4349. enums["MAV_MISSION_RESULT"][14] = EnumEntry("MAV_MISSION_DENIED", """Not accepting any mission commands from this communication partner.""")
  4350. MAV_MISSION_OPERATION_CANCELLED = 15
  4351. enums["MAV_MISSION_RESULT"][15] = EnumEntry("MAV_MISSION_OPERATION_CANCELLED", """Current mission operation cancelled (e.g. mission upload, mission download).""")
  4352. MAV_MISSION_RESULT_ENUM_END = 16
  4353. enums["MAV_MISSION_RESULT"][16] = EnumEntry("MAV_MISSION_RESULT_ENUM_END", """""")
  4354. # MAV_SEVERITY
  4355. enums["MAV_SEVERITY"] = Enum()
  4356. enums["MAV_SEVERITY"].bitmask = False
  4357. MAV_SEVERITY_EMERGENCY = 0
  4358. enums["MAV_SEVERITY"][0] = EnumEntry("MAV_SEVERITY_EMERGENCY", """System is unusable. This is a "panic" condition.""")
  4359. MAV_SEVERITY_ALERT = 1
  4360. enums["MAV_SEVERITY"][1] = EnumEntry("MAV_SEVERITY_ALERT", """Action should be taken immediately. Indicates error in non-critical systems.""")
  4361. MAV_SEVERITY_CRITICAL = 2
  4362. enums["MAV_SEVERITY"][2] = EnumEntry("MAV_SEVERITY_CRITICAL", """Action must be taken immediately. Indicates failure in a primary system.""")
  4363. MAV_SEVERITY_ERROR = 3
  4364. enums["MAV_SEVERITY"][3] = EnumEntry("MAV_SEVERITY_ERROR", """Indicates an error in secondary/redundant systems.""")
  4365. MAV_SEVERITY_WARNING = 4
  4366. 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.""")
  4367. MAV_SEVERITY_NOTICE = 5
  4368. 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.""")
  4369. MAV_SEVERITY_INFO = 6
  4370. enums["MAV_SEVERITY"][6] = EnumEntry("MAV_SEVERITY_INFO", """Normal operational messages. Useful for logging. No action is required for these messages.""")
  4371. MAV_SEVERITY_DEBUG = 7
  4372. enums["MAV_SEVERITY"][7] = EnumEntry("MAV_SEVERITY_DEBUG", """Useful non-operational messages that can assist in debugging. These should not occur during normal operation.""")
  4373. MAV_SEVERITY_ENUM_END = 8
  4374. enums["MAV_SEVERITY"][8] = EnumEntry("MAV_SEVERITY_ENUM_END", """""")
  4375. # MAV_POWER_STATUS
  4376. enums["MAV_POWER_STATUS"] = Enum()
  4377. enums["MAV_POWER_STATUS"].bitmask = True
  4378. MAV_POWER_STATUS_BRICK_VALID = 1
  4379. enums["MAV_POWER_STATUS"][1] = EnumEntry("MAV_POWER_STATUS_BRICK_VALID", """main brick power supply valid""")
  4380. MAV_POWER_STATUS_SERVO_VALID = 2
  4381. enums["MAV_POWER_STATUS"][2] = EnumEntry("MAV_POWER_STATUS_SERVO_VALID", """main servo power supply valid for FMU""")
  4382. MAV_POWER_STATUS_USB_CONNECTED = 4
  4383. enums["MAV_POWER_STATUS"][4] = EnumEntry("MAV_POWER_STATUS_USB_CONNECTED", """USB power is connected""")
  4384. MAV_POWER_STATUS_PERIPH_OVERCURRENT = 8
  4385. enums["MAV_POWER_STATUS"][8] = EnumEntry("MAV_POWER_STATUS_PERIPH_OVERCURRENT", """peripheral supply is in over-current state""")
  4386. MAV_POWER_STATUS_PERIPH_HIPOWER_OVERCURRENT = 16
  4387. enums["MAV_POWER_STATUS"][16] = EnumEntry("MAV_POWER_STATUS_PERIPH_HIPOWER_OVERCURRENT", """hi-power peripheral supply is in over-current state""")
  4388. MAV_POWER_STATUS_CHANGED = 32
  4389. enums["MAV_POWER_STATUS"][32] = EnumEntry("MAV_POWER_STATUS_CHANGED", """Power status has changed since boot""")
  4390. MAV_POWER_STATUS_ENUM_END = 33
  4391. enums["MAV_POWER_STATUS"][33] = EnumEntry("MAV_POWER_STATUS_ENUM_END", """""")
  4392. # SERIAL_CONTROL_DEV
  4393. enums["SERIAL_CONTROL_DEV"] = Enum()
  4394. enums["SERIAL_CONTROL_DEV"].bitmask = False
  4395. SERIAL_CONTROL_DEV_TELEM1 = 0
  4396. enums["SERIAL_CONTROL_DEV"][0] = EnumEntry("SERIAL_CONTROL_DEV_TELEM1", """First telemetry port""")
  4397. SERIAL_CONTROL_DEV_TELEM2 = 1
  4398. enums["SERIAL_CONTROL_DEV"][1] = EnumEntry("SERIAL_CONTROL_DEV_TELEM2", """Second telemetry port""")
  4399. SERIAL_CONTROL_DEV_GPS1 = 2
  4400. enums["SERIAL_CONTROL_DEV"][2] = EnumEntry("SERIAL_CONTROL_DEV_GPS1", """First GPS port""")
  4401. SERIAL_CONTROL_DEV_GPS2 = 3
  4402. enums["SERIAL_CONTROL_DEV"][3] = EnumEntry("SERIAL_CONTROL_DEV_GPS2", """Second GPS port""")
  4403. SERIAL_CONTROL_DEV_SHELL = 10
  4404. enums["SERIAL_CONTROL_DEV"][10] = EnumEntry("SERIAL_CONTROL_DEV_SHELL", """system shell""")
  4405. SERIAL_CONTROL_SERIAL0 = 100
  4406. enums["SERIAL_CONTROL_DEV"][100] = EnumEntry("SERIAL_CONTROL_SERIAL0", """SERIAL0""")
  4407. SERIAL_CONTROL_SERIAL1 = 101
  4408. enums["SERIAL_CONTROL_DEV"][101] = EnumEntry("SERIAL_CONTROL_SERIAL1", """SERIAL1""")
  4409. SERIAL_CONTROL_SERIAL2 = 102
  4410. enums["SERIAL_CONTROL_DEV"][102] = EnumEntry("SERIAL_CONTROL_SERIAL2", """SERIAL2""")
  4411. SERIAL_CONTROL_SERIAL3 = 103
  4412. enums["SERIAL_CONTROL_DEV"][103] = EnumEntry("SERIAL_CONTROL_SERIAL3", """SERIAL3""")
  4413. SERIAL_CONTROL_SERIAL4 = 104
  4414. enums["SERIAL_CONTROL_DEV"][104] = EnumEntry("SERIAL_CONTROL_SERIAL4", """SERIAL4""")
  4415. SERIAL_CONTROL_SERIAL5 = 105
  4416. enums["SERIAL_CONTROL_DEV"][105] = EnumEntry("SERIAL_CONTROL_SERIAL5", """SERIAL5""")
  4417. SERIAL_CONTROL_SERIAL6 = 106
  4418. enums["SERIAL_CONTROL_DEV"][106] = EnumEntry("SERIAL_CONTROL_SERIAL6", """SERIAL6""")
  4419. SERIAL_CONTROL_SERIAL7 = 107
  4420. enums["SERIAL_CONTROL_DEV"][107] = EnumEntry("SERIAL_CONTROL_SERIAL7", """SERIAL7""")
  4421. SERIAL_CONTROL_SERIAL8 = 108
  4422. enums["SERIAL_CONTROL_DEV"][108] = EnumEntry("SERIAL_CONTROL_SERIAL8", """SERIAL8""")
  4423. SERIAL_CONTROL_SERIAL9 = 109
  4424. enums["SERIAL_CONTROL_DEV"][109] = EnumEntry("SERIAL_CONTROL_SERIAL9", """SERIAL9""")
  4425. SERIAL_CONTROL_DEV_ENUM_END = 110
  4426. enums["SERIAL_CONTROL_DEV"][110] = EnumEntry("SERIAL_CONTROL_DEV_ENUM_END", """""")
  4427. # SERIAL_CONTROL_FLAG
  4428. enums["SERIAL_CONTROL_FLAG"] = Enum()
  4429. enums["SERIAL_CONTROL_FLAG"].bitmask = True
  4430. SERIAL_CONTROL_FLAG_REPLY = 1
  4431. enums["SERIAL_CONTROL_FLAG"][1] = EnumEntry("SERIAL_CONTROL_FLAG_REPLY", """Set if this is a reply""")
  4432. SERIAL_CONTROL_FLAG_RESPOND = 2
  4433. 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""")
  4434. SERIAL_CONTROL_FLAG_EXCLUSIVE = 4
  4435. 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""")
  4436. SERIAL_CONTROL_FLAG_BLOCKING = 8
  4437. enums["SERIAL_CONTROL_FLAG"][8] = EnumEntry("SERIAL_CONTROL_FLAG_BLOCKING", """Block on writes to the serial port""")
  4438. SERIAL_CONTROL_FLAG_MULTI = 16
  4439. enums["SERIAL_CONTROL_FLAG"][16] = EnumEntry("SERIAL_CONTROL_FLAG_MULTI", """Send multiple replies until port is drained""")
  4440. SERIAL_CONTROL_FLAG_ENUM_END = 17
  4441. enums["SERIAL_CONTROL_FLAG"][17] = EnumEntry("SERIAL_CONTROL_FLAG_ENUM_END", """""")
  4442. # MAV_DISTANCE_SENSOR
  4443. enums["MAV_DISTANCE_SENSOR"] = Enum()
  4444. enums["MAV_DISTANCE_SENSOR"].bitmask = False
  4445. MAV_DISTANCE_SENSOR_LASER = 0
  4446. enums["MAV_DISTANCE_SENSOR"][0] = EnumEntry("MAV_DISTANCE_SENSOR_LASER", """Laser rangefinder, e.g. LightWare SF02/F or PulsedLight units""")
  4447. MAV_DISTANCE_SENSOR_ULTRASOUND = 1
  4448. enums["MAV_DISTANCE_SENSOR"][1] = EnumEntry("MAV_DISTANCE_SENSOR_ULTRASOUND", """Ultrasound rangefinder, e.g. MaxBotix units""")
  4449. MAV_DISTANCE_SENSOR_INFRARED = 2
  4450. enums["MAV_DISTANCE_SENSOR"][2] = EnumEntry("MAV_DISTANCE_SENSOR_INFRARED", """Infrared rangefinder, e.g. Sharp units""")
  4451. MAV_DISTANCE_SENSOR_RADAR = 3
  4452. enums["MAV_DISTANCE_SENSOR"][3] = EnumEntry("MAV_DISTANCE_SENSOR_RADAR", """Radar type, e.g. uLanding units""")
  4453. MAV_DISTANCE_SENSOR_UNKNOWN = 4
  4454. enums["MAV_DISTANCE_SENSOR"][4] = EnumEntry("MAV_DISTANCE_SENSOR_UNKNOWN", """Broken or unknown type, e.g. analog units""")
  4455. MAV_DISTANCE_SENSOR_ENUM_END = 5
  4456. enums["MAV_DISTANCE_SENSOR"][5] = EnumEntry("MAV_DISTANCE_SENSOR_ENUM_END", """""")
  4457. # MAV_SENSOR_ORIENTATION
  4458. enums["MAV_SENSOR_ORIENTATION"] = Enum()
  4459. enums["MAV_SENSOR_ORIENTATION"].bitmask = False
  4460. MAV_SENSOR_ROTATION_NONE = 0
  4461. enums["MAV_SENSOR_ORIENTATION"][0] = EnumEntry("MAV_SENSOR_ROTATION_NONE", """Roll: 0, Pitch: 0, Yaw: 0""")
  4462. MAV_SENSOR_ROTATION_YAW_45 = 1
  4463. enums["MAV_SENSOR_ORIENTATION"][1] = EnumEntry("MAV_SENSOR_ROTATION_YAW_45", """Roll: 0, Pitch: 0, Yaw: 45""")
  4464. MAV_SENSOR_ROTATION_YAW_90 = 2
  4465. enums["MAV_SENSOR_ORIENTATION"][2] = EnumEntry("MAV_SENSOR_ROTATION_YAW_90", """Roll: 0, Pitch: 0, Yaw: 90""")
  4466. MAV_SENSOR_ROTATION_YAW_135 = 3
  4467. enums["MAV_SENSOR_ORIENTATION"][3] = EnumEntry("MAV_SENSOR_ROTATION_YAW_135", """Roll: 0, Pitch: 0, Yaw: 135""")
  4468. MAV_SENSOR_ROTATION_YAW_180 = 4
  4469. enums["MAV_SENSOR_ORIENTATION"][4] = EnumEntry("MAV_SENSOR_ROTATION_YAW_180", """Roll: 0, Pitch: 0, Yaw: 180""")
  4470. MAV_SENSOR_ROTATION_YAW_225 = 5
  4471. enums["MAV_SENSOR_ORIENTATION"][5] = EnumEntry("MAV_SENSOR_ROTATION_YAW_225", """Roll: 0, Pitch: 0, Yaw: 225""")
  4472. MAV_SENSOR_ROTATION_YAW_270 = 6
  4473. enums["MAV_SENSOR_ORIENTATION"][6] = EnumEntry("MAV_SENSOR_ROTATION_YAW_270", """Roll: 0, Pitch: 0, Yaw: 270""")
  4474. MAV_SENSOR_ROTATION_YAW_315 = 7
  4475. enums["MAV_SENSOR_ORIENTATION"][7] = EnumEntry("MAV_SENSOR_ROTATION_YAW_315", """Roll: 0, Pitch: 0, Yaw: 315""")
  4476. MAV_SENSOR_ROTATION_ROLL_180 = 8
  4477. enums["MAV_SENSOR_ORIENTATION"][8] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_180", """Roll: 180, Pitch: 0, Yaw: 0""")
  4478. MAV_SENSOR_ROTATION_ROLL_180_YAW_45 = 9
  4479. enums["MAV_SENSOR_ORIENTATION"][9] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_180_YAW_45", """Roll: 180, Pitch: 0, Yaw: 45""")
  4480. MAV_SENSOR_ROTATION_ROLL_180_YAW_90 = 10
  4481. enums["MAV_SENSOR_ORIENTATION"][10] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_180_YAW_90", """Roll: 180, Pitch: 0, Yaw: 90""")
  4482. MAV_SENSOR_ROTATION_ROLL_180_YAW_135 = 11
  4483. enums["MAV_SENSOR_ORIENTATION"][11] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_180_YAW_135", """Roll: 180, Pitch: 0, Yaw: 135""")
  4484. MAV_SENSOR_ROTATION_PITCH_180 = 12
  4485. enums["MAV_SENSOR_ORIENTATION"][12] = EnumEntry("MAV_SENSOR_ROTATION_PITCH_180", """Roll: 0, Pitch: 180, Yaw: 0""")
  4486. MAV_SENSOR_ROTATION_ROLL_180_YAW_225 = 13
  4487. enums["MAV_SENSOR_ORIENTATION"][13] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_180_YAW_225", """Roll: 180, Pitch: 0, Yaw: 225""")
  4488. MAV_SENSOR_ROTATION_ROLL_180_YAW_270 = 14
  4489. enums["MAV_SENSOR_ORIENTATION"][14] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_180_YAW_270", """Roll: 180, Pitch: 0, Yaw: 270""")
  4490. MAV_SENSOR_ROTATION_ROLL_180_YAW_315 = 15
  4491. enums["MAV_SENSOR_ORIENTATION"][15] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_180_YAW_315", """Roll: 180, Pitch: 0, Yaw: 315""")
  4492. MAV_SENSOR_ROTATION_ROLL_90 = 16
  4493. enums["MAV_SENSOR_ORIENTATION"][16] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_90", """Roll: 90, Pitch: 0, Yaw: 0""")
  4494. MAV_SENSOR_ROTATION_ROLL_90_YAW_45 = 17
  4495. enums["MAV_SENSOR_ORIENTATION"][17] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_90_YAW_45", """Roll: 90, Pitch: 0, Yaw: 45""")
  4496. MAV_SENSOR_ROTATION_ROLL_90_YAW_90 = 18
  4497. enums["MAV_SENSOR_ORIENTATION"][18] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_90_YAW_90", """Roll: 90, Pitch: 0, Yaw: 90""")
  4498. MAV_SENSOR_ROTATION_ROLL_90_YAW_135 = 19
  4499. enums["MAV_SENSOR_ORIENTATION"][19] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_90_YAW_135", """Roll: 90, Pitch: 0, Yaw: 135""")
  4500. MAV_SENSOR_ROTATION_ROLL_270 = 20
  4501. enums["MAV_SENSOR_ORIENTATION"][20] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_270", """Roll: 270, Pitch: 0, Yaw: 0""")
  4502. MAV_SENSOR_ROTATION_ROLL_270_YAW_45 = 21
  4503. enums["MAV_SENSOR_ORIENTATION"][21] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_270_YAW_45", """Roll: 270, Pitch: 0, Yaw: 45""")
  4504. MAV_SENSOR_ROTATION_ROLL_270_YAW_90 = 22
  4505. enums["MAV_SENSOR_ORIENTATION"][22] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_270_YAW_90", """Roll: 270, Pitch: 0, Yaw: 90""")
  4506. MAV_SENSOR_ROTATION_ROLL_270_YAW_135 = 23
  4507. enums["MAV_SENSOR_ORIENTATION"][23] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_270_YAW_135", """Roll: 270, Pitch: 0, Yaw: 135""")
  4508. MAV_SENSOR_ROTATION_PITCH_90 = 24
  4509. enums["MAV_SENSOR_ORIENTATION"][24] = EnumEntry("MAV_SENSOR_ROTATION_PITCH_90", """Roll: 0, Pitch: 90, Yaw: 0""")
  4510. MAV_SENSOR_ROTATION_PITCH_270 = 25
  4511. enums["MAV_SENSOR_ORIENTATION"][25] = EnumEntry("MAV_SENSOR_ROTATION_PITCH_270", """Roll: 0, Pitch: 270, Yaw: 0""")
  4512. MAV_SENSOR_ROTATION_PITCH_180_YAW_90 = 26
  4513. enums["MAV_SENSOR_ORIENTATION"][26] = EnumEntry("MAV_SENSOR_ROTATION_PITCH_180_YAW_90", """Roll: 0, Pitch: 180, Yaw: 90""")
  4514. MAV_SENSOR_ROTATION_PITCH_180_YAW_270 = 27
  4515. enums["MAV_SENSOR_ORIENTATION"][27] = EnumEntry("MAV_SENSOR_ROTATION_PITCH_180_YAW_270", """Roll: 0, Pitch: 180, Yaw: 270""")
  4516. MAV_SENSOR_ROTATION_ROLL_90_PITCH_90 = 28
  4517. enums["MAV_SENSOR_ORIENTATION"][28] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_90_PITCH_90", """Roll: 90, Pitch: 90, Yaw: 0""")
  4518. MAV_SENSOR_ROTATION_ROLL_180_PITCH_90 = 29
  4519. enums["MAV_SENSOR_ORIENTATION"][29] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_180_PITCH_90", """Roll: 180, Pitch: 90, Yaw: 0""")
  4520. MAV_SENSOR_ROTATION_ROLL_270_PITCH_90 = 30
  4521. enums["MAV_SENSOR_ORIENTATION"][30] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_270_PITCH_90", """Roll: 270, Pitch: 90, Yaw: 0""")
  4522. MAV_SENSOR_ROTATION_ROLL_90_PITCH_180 = 31
  4523. enums["MAV_SENSOR_ORIENTATION"][31] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_90_PITCH_180", """Roll: 90, Pitch: 180, Yaw: 0""")
  4524. MAV_SENSOR_ROTATION_ROLL_270_PITCH_180 = 32
  4525. enums["MAV_SENSOR_ORIENTATION"][32] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_270_PITCH_180", """Roll: 270, Pitch: 180, Yaw: 0""")
  4526. MAV_SENSOR_ROTATION_ROLL_90_PITCH_270 = 33
  4527. enums["MAV_SENSOR_ORIENTATION"][33] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_90_PITCH_270", """Roll: 90, Pitch: 270, Yaw: 0""")
  4528. MAV_SENSOR_ROTATION_ROLL_180_PITCH_270 = 34
  4529. enums["MAV_SENSOR_ORIENTATION"][34] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_180_PITCH_270", """Roll: 180, Pitch: 270, Yaw: 0""")
  4530. MAV_SENSOR_ROTATION_ROLL_270_PITCH_270 = 35
  4531. enums["MAV_SENSOR_ORIENTATION"][35] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_270_PITCH_270", """Roll: 270, Pitch: 270, Yaw: 0""")
  4532. MAV_SENSOR_ROTATION_ROLL_90_PITCH_180_YAW_90 = 36
  4533. enums["MAV_SENSOR_ORIENTATION"][36] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_90_PITCH_180_YAW_90", """Roll: 90, Pitch: 180, Yaw: 90""")
  4534. MAV_SENSOR_ROTATION_ROLL_90_YAW_270 = 37
  4535. enums["MAV_SENSOR_ORIENTATION"][37] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_90_YAW_270", """Roll: 90, Pitch: 0, Yaw: 270""")
  4536. MAV_SENSOR_ROTATION_ROLL_90_PITCH_68_YAW_293 = 38
  4537. enums["MAV_SENSOR_ORIENTATION"][38] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_90_PITCH_68_YAW_293", """Roll: 90, Pitch: 68, Yaw: 293""")
  4538. MAV_SENSOR_ROTATION_PITCH_315 = 39
  4539. enums["MAV_SENSOR_ORIENTATION"][39] = EnumEntry("MAV_SENSOR_ROTATION_PITCH_315", """Pitch: 315""")
  4540. MAV_SENSOR_ROTATION_ROLL_90_PITCH_315 = 40
  4541. enums["MAV_SENSOR_ORIENTATION"][40] = EnumEntry("MAV_SENSOR_ROTATION_ROLL_90_PITCH_315", """Roll: 90, Pitch: 315""")
  4542. MAV_SENSOR_ROTATION_CUSTOM = 100
  4543. enums["MAV_SENSOR_ORIENTATION"][100] = EnumEntry("MAV_SENSOR_ROTATION_CUSTOM", """Custom orientation""")
  4544. MAV_SENSOR_ORIENTATION_ENUM_END = 101
  4545. enums["MAV_SENSOR_ORIENTATION"][101] = EnumEntry("MAV_SENSOR_ORIENTATION_ENUM_END", """""")
  4546. # MAV_PROTOCOL_CAPABILITY
  4547. enums["MAV_PROTOCOL_CAPABILITY"] = Enum()
  4548. enums["MAV_PROTOCOL_CAPABILITY"].bitmask = True
  4549. MAV_PROTOCOL_CAPABILITY_MISSION_FLOAT = 1
  4550. enums["MAV_PROTOCOL_CAPABILITY"][1] = EnumEntry(
  4551. "MAV_PROTOCOL_CAPABILITY_MISSION_FLOAT",
  4552. """Autopilot supports the MISSION_ITEM float message type.
  4553. Note that MISSION_ITEM is deprecated, and autopilots should use MISSION_INT instead.
  4554. """,
  4555. )
  4556. MAV_PROTOCOL_CAPABILITY_PARAM_FLOAT = 2
  4557. enums["MAV_PROTOCOL_CAPABILITY"][2] = EnumEntry("MAV_PROTOCOL_CAPABILITY_PARAM_FLOAT", """Autopilot supports the new param float message type.""")
  4558. MAV_PROTOCOL_CAPABILITY_MISSION_INT = 4
  4559. enums["MAV_PROTOCOL_CAPABILITY"][4] = EnumEntry(
  4560. "MAV_PROTOCOL_CAPABILITY_MISSION_INT",
  4561. """Autopilot supports MISSION_ITEM_INT scaled integer message type.
  4562. 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).
  4563. """,
  4564. )
  4565. MAV_PROTOCOL_CAPABILITY_COMMAND_INT = 8
  4566. enums["MAV_PROTOCOL_CAPABILITY"][8] = EnumEntry("MAV_PROTOCOL_CAPABILITY_COMMAND_INT", """Autopilot supports COMMAND_INT scaled integer message type.""")
  4567. MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_BYTEWISE = 16
  4568. enums["MAV_PROTOCOL_CAPABILITY"][16] = EnumEntry(
  4569. "MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_BYTEWISE",
  4570. """Parameter protocol uses byte-wise encoding of parameter values into param_value (float) fields: https://mavlink.io/en/services/parameter.html#parameter-encoding.
  4571. Note that either this flag or MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_C_CAST should be set if the parameter protocol is supported.
  4572. """,
  4573. )
  4574. MAV_PROTOCOL_CAPABILITY_FTP = 32
  4575. enums["MAV_PROTOCOL_CAPABILITY"][32] = EnumEntry("MAV_PROTOCOL_CAPABILITY_FTP", """Autopilot supports the File Transfer Protocol v1: https://mavlink.io/en/services/ftp.html.""")
  4576. MAV_PROTOCOL_CAPABILITY_SET_ATTITUDE_TARGET = 64
  4577. enums["MAV_PROTOCOL_CAPABILITY"][64] = EnumEntry("MAV_PROTOCOL_CAPABILITY_SET_ATTITUDE_TARGET", """Autopilot supports commanding attitude offboard.""")
  4578. MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_LOCAL_NED = 128
  4579. 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.""")
  4580. MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_GLOBAL_INT = 256
  4581. 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.""")
  4582. MAV_PROTOCOL_CAPABILITY_TERRAIN = 512
  4583. enums["MAV_PROTOCOL_CAPABILITY"][512] = EnumEntry("MAV_PROTOCOL_CAPABILITY_TERRAIN", """Autopilot supports terrain protocol / data handling.""")
  4584. MAV_PROTOCOL_CAPABILITY_RESERVED3 = 1024
  4585. enums["MAV_PROTOCOL_CAPABILITY"][1024] = EnumEntry("MAV_PROTOCOL_CAPABILITY_RESERVED3", """Reserved for future use.""")
  4586. MAV_PROTOCOL_CAPABILITY_FLIGHT_TERMINATION = 2048
  4587. enums["MAV_PROTOCOL_CAPABILITY"][2048] = EnumEntry("MAV_PROTOCOL_CAPABILITY_FLIGHT_TERMINATION", """Autopilot supports the MAV_CMD_DO_FLIGHTTERMINATION command (flight termination).""")
  4588. MAV_PROTOCOL_CAPABILITY_COMPASS_CALIBRATION = 4096
  4589. enums["MAV_PROTOCOL_CAPABILITY"][4096] = EnumEntry("MAV_PROTOCOL_CAPABILITY_COMPASS_CALIBRATION", """Autopilot supports onboard compass calibration.""")
  4590. MAV_PROTOCOL_CAPABILITY_MAVLINK2 = 8192
  4591. enums["MAV_PROTOCOL_CAPABILITY"][8192] = EnumEntry("MAV_PROTOCOL_CAPABILITY_MAVLINK2", """Autopilot supports MAVLink version 2.""")
  4592. MAV_PROTOCOL_CAPABILITY_MISSION_FENCE = 16384
  4593. enums["MAV_PROTOCOL_CAPABILITY"][16384] = EnumEntry("MAV_PROTOCOL_CAPABILITY_MISSION_FENCE", """Autopilot supports mission fence protocol.""")
  4594. MAV_PROTOCOL_CAPABILITY_MISSION_RALLY = 32768
  4595. enums["MAV_PROTOCOL_CAPABILITY"][32768] = EnumEntry("MAV_PROTOCOL_CAPABILITY_MISSION_RALLY", """Autopilot supports mission rally point protocol.""")
  4596. MAV_PROTOCOL_CAPABILITY_RESERVED2 = 65536
  4597. enums["MAV_PROTOCOL_CAPABILITY"][65536] = EnumEntry("MAV_PROTOCOL_CAPABILITY_RESERVED2", """Reserved for future use.""")
  4598. MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_C_CAST = 131072
  4599. enums["MAV_PROTOCOL_CAPABILITY"][131072] = EnumEntry(
  4600. "MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_C_CAST",
  4601. """Parameter protocol uses C-cast of parameter values to set the param_value (float) fields: https://mavlink.io/en/services/parameter.html#parameter-encoding.
  4602. Note that either this flag or MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_BYTEWISE should be set if the parameter protocol is supported.
  4603. """,
  4604. )
  4605. MAV_PROTOCOL_CAPABILITY_ENUM_END = 131073
  4606. enums["MAV_PROTOCOL_CAPABILITY"][131073] = EnumEntry("MAV_PROTOCOL_CAPABILITY_ENUM_END", """""")
  4607. # MAV_MISSION_TYPE
  4608. enums["MAV_MISSION_TYPE"] = Enum()
  4609. enums["MAV_MISSION_TYPE"].bitmask = False
  4610. MAV_MISSION_TYPE_MISSION = 0
  4611. enums["MAV_MISSION_TYPE"][0] = EnumEntry("MAV_MISSION_TYPE_MISSION", """Items are mission commands for main mission.""")
  4612. MAV_MISSION_TYPE_FENCE = 1
  4613. enums["MAV_MISSION_TYPE"][1] = EnumEntry("MAV_MISSION_TYPE_FENCE", """Specifies GeoFence area(s). Items are MAV_CMD_NAV_FENCE_ GeoFence items.""")
  4614. MAV_MISSION_TYPE_RALLY = 2
  4615. 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.""")
  4616. MAV_MISSION_TYPE_ALL = 255
  4617. enums["MAV_MISSION_TYPE"][255] = EnumEntry("MAV_MISSION_TYPE_ALL", """Only used in MISSION_CLEAR_ALL to clear all mission types.""")
  4618. MAV_MISSION_TYPE_ENUM_END = 256
  4619. enums["MAV_MISSION_TYPE"][256] = EnumEntry("MAV_MISSION_TYPE_ENUM_END", """""")
  4620. # MAV_ESTIMATOR_TYPE
  4621. enums["MAV_ESTIMATOR_TYPE"] = Enum()
  4622. enums["MAV_ESTIMATOR_TYPE"].bitmask = False
  4623. MAV_ESTIMATOR_TYPE_UNKNOWN = 0
  4624. enums["MAV_ESTIMATOR_TYPE"][0] = EnumEntry("MAV_ESTIMATOR_TYPE_UNKNOWN", """Unknown type of the estimator.""")
  4625. MAV_ESTIMATOR_TYPE_NAIVE = 1
  4626. enums["MAV_ESTIMATOR_TYPE"][1] = EnumEntry("MAV_ESTIMATOR_TYPE_NAIVE", """This is a naive estimator without any real covariance feedback.""")
  4627. MAV_ESTIMATOR_TYPE_VISION = 2
  4628. enums["MAV_ESTIMATOR_TYPE"][2] = EnumEntry("MAV_ESTIMATOR_TYPE_VISION", """Computer vision based estimate. Might be up to scale.""")
  4629. MAV_ESTIMATOR_TYPE_VIO = 3
  4630. enums["MAV_ESTIMATOR_TYPE"][3] = EnumEntry("MAV_ESTIMATOR_TYPE_VIO", """Visual-inertial estimate.""")
  4631. MAV_ESTIMATOR_TYPE_GPS = 4
  4632. enums["MAV_ESTIMATOR_TYPE"][4] = EnumEntry("MAV_ESTIMATOR_TYPE_GPS", """Plain GPS estimate.""")
  4633. MAV_ESTIMATOR_TYPE_GPS_INS = 5
  4634. enums["MAV_ESTIMATOR_TYPE"][5] = EnumEntry("MAV_ESTIMATOR_TYPE_GPS_INS", """Estimator integrating GPS and inertial sensing.""")
  4635. MAV_ESTIMATOR_TYPE_MOCAP = 6
  4636. enums["MAV_ESTIMATOR_TYPE"][6] = EnumEntry("MAV_ESTIMATOR_TYPE_MOCAP", """Estimate from external motion capturing system.""")
  4637. MAV_ESTIMATOR_TYPE_LIDAR = 7
  4638. enums["MAV_ESTIMATOR_TYPE"][7] = EnumEntry("MAV_ESTIMATOR_TYPE_LIDAR", """Estimator based on lidar sensor input.""")
  4639. MAV_ESTIMATOR_TYPE_AUTOPILOT = 8
  4640. enums["MAV_ESTIMATOR_TYPE"][8] = EnumEntry("MAV_ESTIMATOR_TYPE_AUTOPILOT", """Estimator on autopilot.""")
  4641. MAV_ESTIMATOR_TYPE_ENUM_END = 9
  4642. enums["MAV_ESTIMATOR_TYPE"][9] = EnumEntry("MAV_ESTIMATOR_TYPE_ENUM_END", """""")
  4643. # MAV_BATTERY_TYPE
  4644. enums["MAV_BATTERY_TYPE"] = Enum()
  4645. enums["MAV_BATTERY_TYPE"].bitmask = False
  4646. MAV_BATTERY_TYPE_UNKNOWN = 0
  4647. enums["MAV_BATTERY_TYPE"][0] = EnumEntry("MAV_BATTERY_TYPE_UNKNOWN", """Not specified.""")
  4648. MAV_BATTERY_TYPE_LIPO = 1
  4649. enums["MAV_BATTERY_TYPE"][1] = EnumEntry("MAV_BATTERY_TYPE_LIPO", """Lithium polymer battery""")
  4650. MAV_BATTERY_TYPE_LIFE = 2
  4651. enums["MAV_BATTERY_TYPE"][2] = EnumEntry("MAV_BATTERY_TYPE_LIFE", """Lithium-iron-phosphate battery""")
  4652. MAV_BATTERY_TYPE_LION = 3
  4653. enums["MAV_BATTERY_TYPE"][3] = EnumEntry("MAV_BATTERY_TYPE_LION", """Lithium-ION battery""")
  4654. MAV_BATTERY_TYPE_NIMH = 4
  4655. enums["MAV_BATTERY_TYPE"][4] = EnumEntry("MAV_BATTERY_TYPE_NIMH", """Nickel metal hydride battery""")
  4656. MAV_BATTERY_TYPE_ENUM_END = 5
  4657. enums["MAV_BATTERY_TYPE"][5] = EnumEntry("MAV_BATTERY_TYPE_ENUM_END", """""")
  4658. # MAV_BATTERY_FUNCTION
  4659. enums["MAV_BATTERY_FUNCTION"] = Enum()
  4660. enums["MAV_BATTERY_FUNCTION"].bitmask = False
  4661. MAV_BATTERY_FUNCTION_UNKNOWN = 0
  4662. enums["MAV_BATTERY_FUNCTION"][0] = EnumEntry("MAV_BATTERY_FUNCTION_UNKNOWN", """Battery function is unknown""")
  4663. MAV_BATTERY_FUNCTION_ALL = 1
  4664. enums["MAV_BATTERY_FUNCTION"][1] = EnumEntry("MAV_BATTERY_FUNCTION_ALL", """Battery supports all flight systems""")
  4665. MAV_BATTERY_FUNCTION_PROPULSION = 2
  4666. enums["MAV_BATTERY_FUNCTION"][2] = EnumEntry("MAV_BATTERY_FUNCTION_PROPULSION", """Battery for the propulsion system""")
  4667. MAV_BATTERY_FUNCTION_AVIONICS = 3
  4668. enums["MAV_BATTERY_FUNCTION"][3] = EnumEntry("MAV_BATTERY_FUNCTION_AVIONICS", """Avionics battery""")
  4669. MAV_BATTERY_FUNCTION_PAYLOAD = 4
  4670. enums["MAV_BATTERY_FUNCTION"][4] = EnumEntry("MAV_BATTERY_FUNCTION_PAYLOAD", """Payload battery""")
  4671. MAV_BATTERY_FUNCTION_ENUM_END = 5
  4672. enums["MAV_BATTERY_FUNCTION"][5] = EnumEntry("MAV_BATTERY_FUNCTION_ENUM_END", """""")
  4673. # MAV_BATTERY_CHARGE_STATE
  4674. enums["MAV_BATTERY_CHARGE_STATE"] = Enum()
  4675. enums["MAV_BATTERY_CHARGE_STATE"].bitmask = False
  4676. MAV_BATTERY_CHARGE_STATE_UNDEFINED = 0
  4677. enums["MAV_BATTERY_CHARGE_STATE"][0] = EnumEntry("MAV_BATTERY_CHARGE_STATE_UNDEFINED", """Low battery state is not provided""")
  4678. MAV_BATTERY_CHARGE_STATE_OK = 1
  4679. enums["MAV_BATTERY_CHARGE_STATE"][1] = EnumEntry("MAV_BATTERY_CHARGE_STATE_OK", """Battery is not in low state. Normal operation.""")
  4680. MAV_BATTERY_CHARGE_STATE_LOW = 2
  4681. enums["MAV_BATTERY_CHARGE_STATE"][2] = EnumEntry("MAV_BATTERY_CHARGE_STATE_LOW", """Battery state is low, warn and monitor close.""")
  4682. MAV_BATTERY_CHARGE_STATE_CRITICAL = 3
  4683. enums["MAV_BATTERY_CHARGE_STATE"][3] = EnumEntry("MAV_BATTERY_CHARGE_STATE_CRITICAL", """Battery state is critical, return or abort immediately.""")
  4684. MAV_BATTERY_CHARGE_STATE_EMERGENCY = 4
  4685. 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.""")
  4686. MAV_BATTERY_CHARGE_STATE_FAILED = 5
  4687. 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.""")
  4688. MAV_BATTERY_CHARGE_STATE_UNHEALTHY = 6
  4689. 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.""")
  4690. MAV_BATTERY_CHARGE_STATE_CHARGING = 7
  4691. enums["MAV_BATTERY_CHARGE_STATE"][7] = EnumEntry("MAV_BATTERY_CHARGE_STATE_CHARGING", """Battery is charging.""")
  4692. MAV_BATTERY_CHARGE_STATE_ENUM_END = 8
  4693. enums["MAV_BATTERY_CHARGE_STATE"][8] = EnumEntry("MAV_BATTERY_CHARGE_STATE_ENUM_END", """""")
  4694. # MAV_BATTERY_MODE
  4695. enums["MAV_BATTERY_MODE"] = Enum()
  4696. enums["MAV_BATTERY_MODE"].bitmask = False
  4697. MAV_BATTERY_MODE_UNKNOWN = 0
  4698. enums["MAV_BATTERY_MODE"][0] = EnumEntry("MAV_BATTERY_MODE_UNKNOWN", """Battery mode not supported/unknown battery mode/normal operation.""")
  4699. MAV_BATTERY_MODE_AUTO_DISCHARGING = 1
  4700. enums["MAV_BATTERY_MODE"][1] = EnumEntry("MAV_BATTERY_MODE_AUTO_DISCHARGING", """Battery is auto discharging (towards storage level).""")
  4701. MAV_BATTERY_MODE_HOT_SWAP = 2
  4702. 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).""")
  4703. MAV_BATTERY_MODE_ENUM_END = 3
  4704. enums["MAV_BATTERY_MODE"][3] = EnumEntry("MAV_BATTERY_MODE_ENUM_END", """""")
  4705. # MAV_BATTERY_FAULT
  4706. enums["MAV_BATTERY_FAULT"] = Enum()
  4707. enums["MAV_BATTERY_FAULT"].bitmask = True
  4708. MAV_BATTERY_FAULT_DEEP_DISCHARGE = 1
  4709. enums["MAV_BATTERY_FAULT"][1] = EnumEntry("MAV_BATTERY_FAULT_DEEP_DISCHARGE", """Battery has deep discharged.""")
  4710. MAV_BATTERY_FAULT_SPIKES = 2
  4711. enums["MAV_BATTERY_FAULT"][2] = EnumEntry("MAV_BATTERY_FAULT_SPIKES", """Voltage spikes.""")
  4712. MAV_BATTERY_FAULT_CELL_FAIL = 4
  4713. 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).""")
  4714. MAV_BATTERY_FAULT_OVER_CURRENT = 8
  4715. enums["MAV_BATTERY_FAULT"][8] = EnumEntry("MAV_BATTERY_FAULT_OVER_CURRENT", """Over-current fault.""")
  4716. MAV_BATTERY_FAULT_OVER_TEMPERATURE = 16
  4717. enums["MAV_BATTERY_FAULT"][16] = EnumEntry("MAV_BATTERY_FAULT_OVER_TEMPERATURE", """Over-temperature fault.""")
  4718. MAV_BATTERY_FAULT_UNDER_TEMPERATURE = 32
  4719. enums["MAV_BATTERY_FAULT"][32] = EnumEntry("MAV_BATTERY_FAULT_UNDER_TEMPERATURE", """Under-temperature fault.""")
  4720. MAV_BATTERY_FAULT_INCOMPATIBLE_VOLTAGE = 64
  4721. 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).""")
  4722. MAV_BATTERY_FAULT_INCOMPATIBLE_FIRMWARE = 128
  4723. enums["MAV_BATTERY_FAULT"][128] = EnumEntry("MAV_BATTERY_FAULT_INCOMPATIBLE_FIRMWARE", """Battery firmware is not compatible with current autopilot firmware.""")
  4724. BATTERY_FAULT_INCOMPATIBLE_CELLS_CONFIGURATION = 256
  4725. 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).""")
  4726. MAV_BATTERY_FAULT_ENUM_END = 257
  4727. enums["MAV_BATTERY_FAULT"][257] = EnumEntry("MAV_BATTERY_FAULT_ENUM_END", """""")
  4728. # MAV_GENERATOR_STATUS_FLAG
  4729. enums["MAV_GENERATOR_STATUS_FLAG"] = Enum()
  4730. enums["MAV_GENERATOR_STATUS_FLAG"].bitmask = True
  4731. MAV_GENERATOR_STATUS_FLAG_OFF = 1
  4732. enums["MAV_GENERATOR_STATUS_FLAG"][1] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_OFF", """Generator is off.""")
  4733. MAV_GENERATOR_STATUS_FLAG_READY = 2
  4734. enums["MAV_GENERATOR_STATUS_FLAG"][2] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_READY", """Generator is ready to start generating power.""")
  4735. MAV_GENERATOR_STATUS_FLAG_GENERATING = 4
  4736. enums["MAV_GENERATOR_STATUS_FLAG"][4] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_GENERATING", """Generator is generating power.""")
  4737. MAV_GENERATOR_STATUS_FLAG_CHARGING = 8
  4738. 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).""")
  4739. MAV_GENERATOR_STATUS_FLAG_REDUCED_POWER = 16
  4740. enums["MAV_GENERATOR_STATUS_FLAG"][16] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_REDUCED_POWER", """Generator is operating at a reduced maximum power.""")
  4741. MAV_GENERATOR_STATUS_FLAG_MAXPOWER = 32
  4742. enums["MAV_GENERATOR_STATUS_FLAG"][32] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_MAXPOWER", """Generator is providing the maximum output.""")
  4743. MAV_GENERATOR_STATUS_FLAG_OVERTEMP_WARNING = 64
  4744. enums["MAV_GENERATOR_STATUS_FLAG"][64] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_OVERTEMP_WARNING", """Generator is near the maximum operating temperature, cooling is insufficient.""")
  4745. MAV_GENERATOR_STATUS_FLAG_OVERTEMP_FAULT = 128
  4746. enums["MAV_GENERATOR_STATUS_FLAG"][128] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_OVERTEMP_FAULT", """Generator hit the maximum operating temperature and shutdown.""")
  4747. MAV_GENERATOR_STATUS_FLAG_ELECTRONICS_OVERTEMP_WARNING = 256
  4748. 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.""")
  4749. MAV_GENERATOR_STATUS_FLAG_ELECTRONICS_OVERTEMP_FAULT = 512
  4750. enums["MAV_GENERATOR_STATUS_FLAG"][512] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_ELECTRONICS_OVERTEMP_FAULT", """Power electronics hit the maximum operating temperature and shutdown.""")
  4751. MAV_GENERATOR_STATUS_FLAG_ELECTRONICS_FAULT = 1024
  4752. enums["MAV_GENERATOR_STATUS_FLAG"][1024] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_ELECTRONICS_FAULT", """Power electronics experienced a fault and shutdown.""")
  4753. MAV_GENERATOR_STATUS_FLAG_POWERSOURCE_FAULT = 2048
  4754. 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.""")
  4755. MAV_GENERATOR_STATUS_FLAG_COMMUNICATION_WARNING = 4096
  4756. enums["MAV_GENERATOR_STATUS_FLAG"][4096] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_COMMUNICATION_WARNING", """Generator controller having communication problems.""")
  4757. MAV_GENERATOR_STATUS_FLAG_COOLING_WARNING = 8192
  4758. enums["MAV_GENERATOR_STATUS_FLAG"][8192] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_COOLING_WARNING", """Power electronic or generator cooling system error.""")
  4759. MAV_GENERATOR_STATUS_FLAG_POWER_RAIL_FAULT = 16384
  4760. enums["MAV_GENERATOR_STATUS_FLAG"][16384] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_POWER_RAIL_FAULT", """Generator controller power rail experienced a fault.""")
  4761. MAV_GENERATOR_STATUS_FLAG_OVERCURRENT_FAULT = 32768
  4762. enums["MAV_GENERATOR_STATUS_FLAG"][32768] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_OVERCURRENT_FAULT", """Generator controller exceeded the overcurrent threshold and shutdown to prevent damage.""")
  4763. MAV_GENERATOR_STATUS_FLAG_BATTERY_OVERCHARGE_CURRENT_FAULT = 65536
  4764. 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.""")
  4765. MAV_GENERATOR_STATUS_FLAG_OVERVOLTAGE_FAULT = 131072
  4766. 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.""")
  4767. MAV_GENERATOR_STATUS_FLAG_BATTERY_UNDERVOLT_FAULT = 262144
  4768. enums["MAV_GENERATOR_STATUS_FLAG"][262144] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_BATTERY_UNDERVOLT_FAULT", """Batteries are under voltage (generator will not start).""")
  4769. MAV_GENERATOR_STATUS_FLAG_START_INHIBITED = 524288
  4770. enums["MAV_GENERATOR_STATUS_FLAG"][524288] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_START_INHIBITED", """Generator start is inhibited by e.g. a safety switch.""")
  4771. MAV_GENERATOR_STATUS_FLAG_MAINTENANCE_REQUIRED = 1048576
  4772. enums["MAV_GENERATOR_STATUS_FLAG"][1048576] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_MAINTENANCE_REQUIRED", """Generator requires maintenance.""")
  4773. MAV_GENERATOR_STATUS_FLAG_WARMING_UP = 2097152
  4774. enums["MAV_GENERATOR_STATUS_FLAG"][2097152] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_WARMING_UP", """Generator is not ready to generate yet.""")
  4775. MAV_GENERATOR_STATUS_FLAG_IDLE = 4194304
  4776. enums["MAV_GENERATOR_STATUS_FLAG"][4194304] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_IDLE", """Generator is idle.""")
  4777. MAV_GENERATOR_STATUS_FLAG_ENUM_END = 4194305
  4778. enums["MAV_GENERATOR_STATUS_FLAG"][4194305] = EnumEntry("MAV_GENERATOR_STATUS_FLAG_ENUM_END", """""")
  4779. # MAV_VTOL_STATE
  4780. enums["MAV_VTOL_STATE"] = Enum()
  4781. enums["MAV_VTOL_STATE"].bitmask = False
  4782. MAV_VTOL_STATE_UNDEFINED = 0
  4783. enums["MAV_VTOL_STATE"][0] = EnumEntry("MAV_VTOL_STATE_UNDEFINED", """MAV is not configured as VTOL""")
  4784. MAV_VTOL_STATE_TRANSITION_TO_FW = 1
  4785. enums["MAV_VTOL_STATE"][1] = EnumEntry("MAV_VTOL_STATE_TRANSITION_TO_FW", """VTOL is in transition from multicopter to fixed-wing""")
  4786. MAV_VTOL_STATE_TRANSITION_TO_MC = 2
  4787. enums["MAV_VTOL_STATE"][2] = EnumEntry("MAV_VTOL_STATE_TRANSITION_TO_MC", """VTOL is in transition from fixed-wing to multicopter""")
  4788. MAV_VTOL_STATE_MC = 3
  4789. enums["MAV_VTOL_STATE"][3] = EnumEntry("MAV_VTOL_STATE_MC", """VTOL is in multicopter state""")
  4790. MAV_VTOL_STATE_FW = 4
  4791. enums["MAV_VTOL_STATE"][4] = EnumEntry("MAV_VTOL_STATE_FW", """VTOL is in fixed-wing state""")
  4792. MAV_VTOL_STATE_ENUM_END = 5
  4793. enums["MAV_VTOL_STATE"][5] = EnumEntry("MAV_VTOL_STATE_ENUM_END", """""")
  4794. # MAV_LANDED_STATE
  4795. enums["MAV_LANDED_STATE"] = Enum()
  4796. enums["MAV_LANDED_STATE"].bitmask = False
  4797. MAV_LANDED_STATE_UNDEFINED = 0
  4798. enums["MAV_LANDED_STATE"][0] = EnumEntry("MAV_LANDED_STATE_UNDEFINED", """MAV landed state is unknown""")
  4799. MAV_LANDED_STATE_ON_GROUND = 1
  4800. enums["MAV_LANDED_STATE"][1] = EnumEntry("MAV_LANDED_STATE_ON_GROUND", """MAV is landed (on ground)""")
  4801. MAV_LANDED_STATE_IN_AIR = 2
  4802. enums["MAV_LANDED_STATE"][2] = EnumEntry("MAV_LANDED_STATE_IN_AIR", """MAV is in air""")
  4803. MAV_LANDED_STATE_TAKEOFF = 3
  4804. enums["MAV_LANDED_STATE"][3] = EnumEntry("MAV_LANDED_STATE_TAKEOFF", """MAV currently taking off""")
  4805. MAV_LANDED_STATE_LANDING = 4
  4806. enums["MAV_LANDED_STATE"][4] = EnumEntry("MAV_LANDED_STATE_LANDING", """MAV currently landing""")
  4807. MAV_LANDED_STATE_ENUM_END = 5
  4808. enums["MAV_LANDED_STATE"][5] = EnumEntry("MAV_LANDED_STATE_ENUM_END", """""")
  4809. # ADSB_ALTITUDE_TYPE
  4810. enums["ADSB_ALTITUDE_TYPE"] = Enum()
  4811. enums["ADSB_ALTITUDE_TYPE"].bitmask = False
  4812. ADSB_ALTITUDE_TYPE_PRESSURE_QNH = 0
  4813. enums["ADSB_ALTITUDE_TYPE"][0] = EnumEntry("ADSB_ALTITUDE_TYPE_PRESSURE_QNH", """Altitude reported from a Baro source using QNH reference""")
  4814. ADSB_ALTITUDE_TYPE_GEOMETRIC = 1
  4815. enums["ADSB_ALTITUDE_TYPE"][1] = EnumEntry("ADSB_ALTITUDE_TYPE_GEOMETRIC", """Altitude reported from a GNSS source""")
  4816. ADSB_ALTITUDE_TYPE_ENUM_END = 2
  4817. enums["ADSB_ALTITUDE_TYPE"][2] = EnumEntry("ADSB_ALTITUDE_TYPE_ENUM_END", """""")
  4818. # ADSB_EMITTER_TYPE
  4819. enums["ADSB_EMITTER_TYPE"] = Enum()
  4820. enums["ADSB_EMITTER_TYPE"].bitmask = False
  4821. ADSB_EMITTER_TYPE_NO_INFO = 0
  4822. enums["ADSB_EMITTER_TYPE"][0] = EnumEntry("ADSB_EMITTER_TYPE_NO_INFO", """""")
  4823. ADSB_EMITTER_TYPE_LIGHT = 1
  4824. enums["ADSB_EMITTER_TYPE"][1] = EnumEntry("ADSB_EMITTER_TYPE_LIGHT", """""")
  4825. ADSB_EMITTER_TYPE_SMALL = 2
  4826. enums["ADSB_EMITTER_TYPE"][2] = EnumEntry("ADSB_EMITTER_TYPE_SMALL", """""")
  4827. ADSB_EMITTER_TYPE_LARGE = 3
  4828. enums["ADSB_EMITTER_TYPE"][3] = EnumEntry("ADSB_EMITTER_TYPE_LARGE", """""")
  4829. ADSB_EMITTER_TYPE_HIGH_VORTEX_LARGE = 4
  4830. enums["ADSB_EMITTER_TYPE"][4] = EnumEntry("ADSB_EMITTER_TYPE_HIGH_VORTEX_LARGE", """""")
  4831. ADSB_EMITTER_TYPE_HEAVY = 5
  4832. enums["ADSB_EMITTER_TYPE"][5] = EnumEntry("ADSB_EMITTER_TYPE_HEAVY", """""")
  4833. ADSB_EMITTER_TYPE_HIGHLY_MANUV = 6
  4834. enums["ADSB_EMITTER_TYPE"][6] = EnumEntry("ADSB_EMITTER_TYPE_HIGHLY_MANUV", """""")
  4835. ADSB_EMITTER_TYPE_ROTOCRAFT = 7
  4836. enums["ADSB_EMITTER_TYPE"][7] = EnumEntry("ADSB_EMITTER_TYPE_ROTOCRAFT", """""")
  4837. ADSB_EMITTER_TYPE_UNASSIGNED = 8
  4838. enums["ADSB_EMITTER_TYPE"][8] = EnumEntry("ADSB_EMITTER_TYPE_UNASSIGNED", """""")
  4839. ADSB_EMITTER_TYPE_GLIDER = 9
  4840. enums["ADSB_EMITTER_TYPE"][9] = EnumEntry("ADSB_EMITTER_TYPE_GLIDER", """""")
  4841. ADSB_EMITTER_TYPE_LIGHTER_AIR = 10
  4842. enums["ADSB_EMITTER_TYPE"][10] = EnumEntry("ADSB_EMITTER_TYPE_LIGHTER_AIR", """""")
  4843. ADSB_EMITTER_TYPE_PARACHUTE = 11
  4844. enums["ADSB_EMITTER_TYPE"][11] = EnumEntry("ADSB_EMITTER_TYPE_PARACHUTE", """""")
  4845. ADSB_EMITTER_TYPE_ULTRA_LIGHT = 12
  4846. enums["ADSB_EMITTER_TYPE"][12] = EnumEntry("ADSB_EMITTER_TYPE_ULTRA_LIGHT", """""")
  4847. ADSB_EMITTER_TYPE_UNASSIGNED2 = 13
  4848. enums["ADSB_EMITTER_TYPE"][13] = EnumEntry("ADSB_EMITTER_TYPE_UNASSIGNED2", """""")
  4849. ADSB_EMITTER_TYPE_UAV = 14
  4850. enums["ADSB_EMITTER_TYPE"][14] = EnumEntry("ADSB_EMITTER_TYPE_UAV", """""")
  4851. ADSB_EMITTER_TYPE_SPACE = 15
  4852. enums["ADSB_EMITTER_TYPE"][15] = EnumEntry("ADSB_EMITTER_TYPE_SPACE", """""")
  4853. ADSB_EMITTER_TYPE_UNASSGINED3 = 16
  4854. enums["ADSB_EMITTER_TYPE"][16] = EnumEntry("ADSB_EMITTER_TYPE_UNASSGINED3", """""")
  4855. ADSB_EMITTER_TYPE_EMERGENCY_SURFACE = 17
  4856. enums["ADSB_EMITTER_TYPE"][17] = EnumEntry("ADSB_EMITTER_TYPE_EMERGENCY_SURFACE", """""")
  4857. ADSB_EMITTER_TYPE_SERVICE_SURFACE = 18
  4858. enums["ADSB_EMITTER_TYPE"][18] = EnumEntry("ADSB_EMITTER_TYPE_SERVICE_SURFACE", """""")
  4859. ADSB_EMITTER_TYPE_POINT_OBSTACLE = 19
  4860. enums["ADSB_EMITTER_TYPE"][19] = EnumEntry("ADSB_EMITTER_TYPE_POINT_OBSTACLE", """""")
  4861. ADSB_EMITTER_TYPE_ENUM_END = 20
  4862. enums["ADSB_EMITTER_TYPE"][20] = EnumEntry("ADSB_EMITTER_TYPE_ENUM_END", """""")
  4863. # ADSB_FLAGS
  4864. enums["ADSB_FLAGS"] = Enum()
  4865. enums["ADSB_FLAGS"].bitmask = True
  4866. ADSB_FLAGS_VALID_COORDS = 1
  4867. enums["ADSB_FLAGS"][1] = EnumEntry("ADSB_FLAGS_VALID_COORDS", """""")
  4868. ADSB_FLAGS_VALID_ALTITUDE = 2
  4869. enums["ADSB_FLAGS"][2] = EnumEntry("ADSB_FLAGS_VALID_ALTITUDE", """""")
  4870. ADSB_FLAGS_VALID_HEADING = 4
  4871. enums["ADSB_FLAGS"][4] = EnumEntry("ADSB_FLAGS_VALID_HEADING", """""")
  4872. ADSB_FLAGS_VALID_VELOCITY = 8
  4873. enums["ADSB_FLAGS"][8] = EnumEntry("ADSB_FLAGS_VALID_VELOCITY", """""")
  4874. ADSB_FLAGS_VALID_CALLSIGN = 16
  4875. enums["ADSB_FLAGS"][16] = EnumEntry("ADSB_FLAGS_VALID_CALLSIGN", """""")
  4876. ADSB_FLAGS_VALID_SQUAWK = 32
  4877. enums["ADSB_FLAGS"][32] = EnumEntry("ADSB_FLAGS_VALID_SQUAWK", """""")
  4878. ADSB_FLAGS_SIMULATED = 64
  4879. enums["ADSB_FLAGS"][64] = EnumEntry("ADSB_FLAGS_SIMULATED", """""")
  4880. ADSB_FLAGS_VERTICAL_VELOCITY_VALID = 128
  4881. enums["ADSB_FLAGS"][128] = EnumEntry("ADSB_FLAGS_VERTICAL_VELOCITY_VALID", """""")
  4882. ADSB_FLAGS_BARO_VALID = 256
  4883. enums["ADSB_FLAGS"][256] = EnumEntry("ADSB_FLAGS_BARO_VALID", """""")
  4884. ADSB_FLAGS_SOURCE_UAT = 32768
  4885. enums["ADSB_FLAGS"][32768] = EnumEntry("ADSB_FLAGS_SOURCE_UAT", """""")
  4886. ADSB_FLAGS_ENUM_END = 32769
  4887. enums["ADSB_FLAGS"][32769] = EnumEntry("ADSB_FLAGS_ENUM_END", """""")
  4888. # MAV_DO_REPOSITION_FLAGS
  4889. enums["MAV_DO_REPOSITION_FLAGS"] = Enum()
  4890. enums["MAV_DO_REPOSITION_FLAGS"].bitmask = True
  4891. MAV_DO_REPOSITION_FLAGS_CHANGE_MODE = 1
  4892. 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""")
  4893. MAV_DO_REPOSITION_FLAGS_ENUM_END = 2
  4894. enums["MAV_DO_REPOSITION_FLAGS"][2] = EnumEntry("MAV_DO_REPOSITION_FLAGS_ENUM_END", """""")
  4895. # SPEED_TYPE
  4896. enums["SPEED_TYPE"] = Enum()
  4897. enums["SPEED_TYPE"].bitmask = False
  4898. SPEED_TYPE_AIRSPEED = 0
  4899. enums["SPEED_TYPE"][0] = EnumEntry("SPEED_TYPE_AIRSPEED", """Airspeed""")
  4900. SPEED_TYPE_GROUNDSPEED = 1
  4901. enums["SPEED_TYPE"][1] = EnumEntry("SPEED_TYPE_GROUNDSPEED", """Groundspeed""")
  4902. SPEED_TYPE_CLIMB_SPEED = 2
  4903. enums["SPEED_TYPE"][2] = EnumEntry("SPEED_TYPE_CLIMB_SPEED", """Climb speed""")
  4904. SPEED_TYPE_DESCENT_SPEED = 3
  4905. enums["SPEED_TYPE"][3] = EnumEntry("SPEED_TYPE_DESCENT_SPEED", """Descent speed""")
  4906. SPEED_TYPE_ENUM_END = 4
  4907. enums["SPEED_TYPE"][4] = EnumEntry("SPEED_TYPE_ENUM_END", """""")
  4908. # ESTIMATOR_STATUS_FLAGS
  4909. enums["ESTIMATOR_STATUS_FLAGS"] = Enum()
  4910. enums["ESTIMATOR_STATUS_FLAGS"].bitmask = True
  4911. ESTIMATOR_ATTITUDE = 1
  4912. enums["ESTIMATOR_STATUS_FLAGS"][1] = EnumEntry("ESTIMATOR_ATTITUDE", """True if the attitude estimate is good""")
  4913. ESTIMATOR_VELOCITY_HORIZ = 2
  4914. enums["ESTIMATOR_STATUS_FLAGS"][2] = EnumEntry("ESTIMATOR_VELOCITY_HORIZ", """True if the horizontal velocity estimate is good""")
  4915. ESTIMATOR_VELOCITY_VERT = 4
  4916. enums["ESTIMATOR_STATUS_FLAGS"][4] = EnumEntry("ESTIMATOR_VELOCITY_VERT", """True if the vertical velocity estimate is good""")
  4917. ESTIMATOR_POS_HORIZ_REL = 8
  4918. enums["ESTIMATOR_STATUS_FLAGS"][8] = EnumEntry("ESTIMATOR_POS_HORIZ_REL", """True if the horizontal position (relative) estimate is good""")
  4919. ESTIMATOR_POS_HORIZ_ABS = 16
  4920. enums["ESTIMATOR_STATUS_FLAGS"][16] = EnumEntry("ESTIMATOR_POS_HORIZ_ABS", """True if the horizontal position (absolute) estimate is good""")
  4921. ESTIMATOR_POS_VERT_ABS = 32
  4922. enums["ESTIMATOR_STATUS_FLAGS"][32] = EnumEntry("ESTIMATOR_POS_VERT_ABS", """True if the vertical position (absolute) estimate is good""")
  4923. ESTIMATOR_POS_VERT_AGL = 64
  4924. enums["ESTIMATOR_STATUS_FLAGS"][64] = EnumEntry("ESTIMATOR_POS_VERT_AGL", """True if the vertical position (above ground) estimate is good""")
  4925. ESTIMATOR_CONST_POS_MODE = 128
  4926. 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)""")
  4927. ESTIMATOR_PRED_POS_HORIZ_REL = 256
  4928. 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""")
  4929. ESTIMATOR_PRED_POS_HORIZ_ABS = 512
  4930. 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""")
  4931. ESTIMATOR_GPS_GLITCH = 1024
  4932. enums["ESTIMATOR_STATUS_FLAGS"][1024] = EnumEntry("ESTIMATOR_GPS_GLITCH", """True if the EKF has detected a GPS glitch""")
  4933. ESTIMATOR_ACCEL_ERROR = 2048
  4934. enums["ESTIMATOR_STATUS_FLAGS"][2048] = EnumEntry("ESTIMATOR_ACCEL_ERROR", """True if the EKF has detected bad accelerometer data""")
  4935. ESTIMATOR_STATUS_FLAGS_ENUM_END = 2049
  4936. enums["ESTIMATOR_STATUS_FLAGS"][2049] = EnumEntry("ESTIMATOR_STATUS_FLAGS_ENUM_END", """""")
  4937. # MOTOR_TEST_ORDER
  4938. enums["MOTOR_TEST_ORDER"] = Enum()
  4939. enums["MOTOR_TEST_ORDER"].bitmask = False
  4940. MOTOR_TEST_ORDER_DEFAULT = 0
  4941. enums["MOTOR_TEST_ORDER"][0] = EnumEntry("MOTOR_TEST_ORDER_DEFAULT", """Default autopilot motor test method.""")
  4942. MOTOR_TEST_ORDER_SEQUENCE = 1
  4943. enums["MOTOR_TEST_ORDER"][1] = EnumEntry("MOTOR_TEST_ORDER_SEQUENCE", """Motor numbers are specified as their index in a predefined vehicle-specific sequence.""")
  4944. MOTOR_TEST_ORDER_BOARD = 2
  4945. enums["MOTOR_TEST_ORDER"][2] = EnumEntry("MOTOR_TEST_ORDER_BOARD", """Motor numbers are specified as the output as labeled on the board.""")
  4946. MOTOR_TEST_ORDER_ENUM_END = 3
  4947. enums["MOTOR_TEST_ORDER"][3] = EnumEntry("MOTOR_TEST_ORDER_ENUM_END", """""")
  4948. # MOTOR_TEST_THROTTLE_TYPE
  4949. enums["MOTOR_TEST_THROTTLE_TYPE"] = Enum()
  4950. enums["MOTOR_TEST_THROTTLE_TYPE"].bitmask = False
  4951. MOTOR_TEST_THROTTLE_PERCENT = 0
  4952. enums["MOTOR_TEST_THROTTLE_TYPE"][0] = EnumEntry("MOTOR_TEST_THROTTLE_PERCENT", """Throttle as a percentage (0 ~ 100)""")
  4953. MOTOR_TEST_THROTTLE_PWM = 1
  4954. enums["MOTOR_TEST_THROTTLE_TYPE"][1] = EnumEntry("MOTOR_TEST_THROTTLE_PWM", """Throttle as an absolute PWM value (normally in range of 1000~2000).""")
  4955. MOTOR_TEST_THROTTLE_PILOT = 2
  4956. enums["MOTOR_TEST_THROTTLE_TYPE"][2] = EnumEntry("MOTOR_TEST_THROTTLE_PILOT", """Throttle pass-through from pilot's transmitter.""")
  4957. MOTOR_TEST_COMPASS_CAL = 3
  4958. enums["MOTOR_TEST_THROTTLE_TYPE"][3] = EnumEntry("MOTOR_TEST_COMPASS_CAL", """Per-motor compass calibration test.""")
  4959. MOTOR_TEST_THROTTLE_TYPE_ENUM_END = 4
  4960. enums["MOTOR_TEST_THROTTLE_TYPE"][4] = EnumEntry("MOTOR_TEST_THROTTLE_TYPE_ENUM_END", """""")
  4961. # GPS_INPUT_IGNORE_FLAGS
  4962. enums["GPS_INPUT_IGNORE_FLAGS"] = Enum()
  4963. enums["GPS_INPUT_IGNORE_FLAGS"].bitmask = True
  4964. GPS_INPUT_IGNORE_FLAG_ALT = 1
  4965. enums["GPS_INPUT_IGNORE_FLAGS"][1] = EnumEntry("GPS_INPUT_IGNORE_FLAG_ALT", """ignore altitude field""")
  4966. GPS_INPUT_IGNORE_FLAG_HDOP = 2
  4967. enums["GPS_INPUT_IGNORE_FLAGS"][2] = EnumEntry("GPS_INPUT_IGNORE_FLAG_HDOP", """ignore hdop field""")
  4968. GPS_INPUT_IGNORE_FLAG_VDOP = 4
  4969. enums["GPS_INPUT_IGNORE_FLAGS"][4] = EnumEntry("GPS_INPUT_IGNORE_FLAG_VDOP", """ignore vdop field""")
  4970. GPS_INPUT_IGNORE_FLAG_VEL_HORIZ = 8
  4971. enums["GPS_INPUT_IGNORE_FLAGS"][8] = EnumEntry("GPS_INPUT_IGNORE_FLAG_VEL_HORIZ", """ignore horizontal velocity field (vn and ve)""")
  4972. GPS_INPUT_IGNORE_FLAG_VEL_VERT = 16
  4973. enums["GPS_INPUT_IGNORE_FLAGS"][16] = EnumEntry("GPS_INPUT_IGNORE_FLAG_VEL_VERT", """ignore vertical velocity field (vd)""")
  4974. GPS_INPUT_IGNORE_FLAG_SPEED_ACCURACY = 32
  4975. enums["GPS_INPUT_IGNORE_FLAGS"][32] = EnumEntry("GPS_INPUT_IGNORE_FLAG_SPEED_ACCURACY", """ignore speed accuracy field""")
  4976. GPS_INPUT_IGNORE_FLAG_HORIZONTAL_ACCURACY = 64
  4977. enums["GPS_INPUT_IGNORE_FLAGS"][64] = EnumEntry("GPS_INPUT_IGNORE_FLAG_HORIZONTAL_ACCURACY", """ignore horizontal accuracy field""")
  4978. GPS_INPUT_IGNORE_FLAG_VERTICAL_ACCURACY = 128
  4979. enums["GPS_INPUT_IGNORE_FLAGS"][128] = EnumEntry("GPS_INPUT_IGNORE_FLAG_VERTICAL_ACCURACY", """ignore vertical accuracy field""")
  4980. GPS_INPUT_IGNORE_FLAGS_ENUM_END = 129
  4981. enums["GPS_INPUT_IGNORE_FLAGS"][129] = EnumEntry("GPS_INPUT_IGNORE_FLAGS_ENUM_END", """""")
  4982. # MAV_COLLISION_ACTION
  4983. enums["MAV_COLLISION_ACTION"] = Enum()
  4984. enums["MAV_COLLISION_ACTION"].bitmask = False
  4985. MAV_COLLISION_ACTION_NONE = 0
  4986. enums["MAV_COLLISION_ACTION"][0] = EnumEntry("MAV_COLLISION_ACTION_NONE", """Ignore any potential collisions""")
  4987. MAV_COLLISION_ACTION_REPORT = 1
  4988. enums["MAV_COLLISION_ACTION"][1] = EnumEntry("MAV_COLLISION_ACTION_REPORT", """Report potential collision""")
  4989. MAV_COLLISION_ACTION_ASCEND_OR_DESCEND = 2
  4990. enums["MAV_COLLISION_ACTION"][2] = EnumEntry("MAV_COLLISION_ACTION_ASCEND_OR_DESCEND", """Ascend or Descend to avoid threat""")
  4991. MAV_COLLISION_ACTION_MOVE_HORIZONTALLY = 3
  4992. enums["MAV_COLLISION_ACTION"][3] = EnumEntry("MAV_COLLISION_ACTION_MOVE_HORIZONTALLY", """Move horizontally to avoid threat""")
  4993. MAV_COLLISION_ACTION_MOVE_PERPENDICULAR = 4
  4994. enums["MAV_COLLISION_ACTION"][4] = EnumEntry("MAV_COLLISION_ACTION_MOVE_PERPENDICULAR", """Aircraft to move perpendicular to the collision's velocity vector""")
  4995. MAV_COLLISION_ACTION_RTL = 5
  4996. enums["MAV_COLLISION_ACTION"][5] = EnumEntry("MAV_COLLISION_ACTION_RTL", """Aircraft to fly directly back to its launch point""")
  4997. MAV_COLLISION_ACTION_HOVER = 6
  4998. enums["MAV_COLLISION_ACTION"][6] = EnumEntry("MAV_COLLISION_ACTION_HOVER", """Aircraft to stop in place""")
  4999. MAV_COLLISION_ACTION_ENUM_END = 7
  5000. enums["MAV_COLLISION_ACTION"][7] = EnumEntry("MAV_COLLISION_ACTION_ENUM_END", """""")
  5001. # MAV_COLLISION_THREAT_LEVEL
  5002. enums["MAV_COLLISION_THREAT_LEVEL"] = Enum()
  5003. enums["MAV_COLLISION_THREAT_LEVEL"].bitmask = False
  5004. MAV_COLLISION_THREAT_LEVEL_NONE = 0
  5005. enums["MAV_COLLISION_THREAT_LEVEL"][0] = EnumEntry("MAV_COLLISION_THREAT_LEVEL_NONE", """Not a threat""")
  5006. MAV_COLLISION_THREAT_LEVEL_LOW = 1
  5007. enums["MAV_COLLISION_THREAT_LEVEL"][1] = EnumEntry("MAV_COLLISION_THREAT_LEVEL_LOW", """Craft is mildly concerned about this threat""")
  5008. MAV_COLLISION_THREAT_LEVEL_HIGH = 2
  5009. enums["MAV_COLLISION_THREAT_LEVEL"][2] = EnumEntry("MAV_COLLISION_THREAT_LEVEL_HIGH", """Craft is panicking, and may take actions to avoid threat""")
  5010. MAV_COLLISION_THREAT_LEVEL_ENUM_END = 3
  5011. enums["MAV_COLLISION_THREAT_LEVEL"][3] = EnumEntry("MAV_COLLISION_THREAT_LEVEL_ENUM_END", """""")
  5012. # MAV_COLLISION_SRC
  5013. enums["MAV_COLLISION_SRC"] = Enum()
  5014. enums["MAV_COLLISION_SRC"].bitmask = False
  5015. MAV_COLLISION_SRC_ADSB = 0
  5016. enums["MAV_COLLISION_SRC"][0] = EnumEntry("MAV_COLLISION_SRC_ADSB", """ID field references ADSB_VEHICLE packets""")
  5017. MAV_COLLISION_SRC_MAVLINK_GPS_GLOBAL_INT = 1
  5018. enums["MAV_COLLISION_SRC"][1] = EnumEntry("MAV_COLLISION_SRC_MAVLINK_GPS_GLOBAL_INT", """ID field references MAVLink SRC ID""")
  5019. MAV_COLLISION_SRC_ENUM_END = 2
  5020. enums["MAV_COLLISION_SRC"][2] = EnumEntry("MAV_COLLISION_SRC_ENUM_END", """""")
  5021. # GPS_FIX_TYPE
  5022. enums["GPS_FIX_TYPE"] = Enum()
  5023. enums["GPS_FIX_TYPE"].bitmask = False
  5024. GPS_FIX_TYPE_NO_GPS = 0
  5025. enums["GPS_FIX_TYPE"][0] = EnumEntry("GPS_FIX_TYPE_NO_GPS", """No GPS connected""")
  5026. GPS_FIX_TYPE_NO_FIX = 1
  5027. enums["GPS_FIX_TYPE"][1] = EnumEntry("GPS_FIX_TYPE_NO_FIX", """No position information, GPS is connected""")
  5028. GPS_FIX_TYPE_2D_FIX = 2
  5029. enums["GPS_FIX_TYPE"][2] = EnumEntry("GPS_FIX_TYPE_2D_FIX", """2D position""")
  5030. GPS_FIX_TYPE_3D_FIX = 3
  5031. enums["GPS_FIX_TYPE"][3] = EnumEntry("GPS_FIX_TYPE_3D_FIX", """3D position""")
  5032. GPS_FIX_TYPE_DGPS = 4
  5033. enums["GPS_FIX_TYPE"][4] = EnumEntry("GPS_FIX_TYPE_DGPS", """DGPS/SBAS aided 3D position""")
  5034. GPS_FIX_TYPE_RTK_FLOAT = 5
  5035. enums["GPS_FIX_TYPE"][5] = EnumEntry("GPS_FIX_TYPE_RTK_FLOAT", """RTK float, 3D position""")
  5036. GPS_FIX_TYPE_RTK_FIXED = 6
  5037. enums["GPS_FIX_TYPE"][6] = EnumEntry("GPS_FIX_TYPE_RTK_FIXED", """RTK Fixed, 3D position""")
  5038. GPS_FIX_TYPE_STATIC = 7
  5039. enums["GPS_FIX_TYPE"][7] = EnumEntry("GPS_FIX_TYPE_STATIC", """Static fixed, typically used for base stations""")
  5040. GPS_FIX_TYPE_PPP = 8
  5041. enums["GPS_FIX_TYPE"][8] = EnumEntry("GPS_FIX_TYPE_PPP", """PPP, 3D position.""")
  5042. GPS_FIX_TYPE_ENUM_END = 9
  5043. enums["GPS_FIX_TYPE"][9] = EnumEntry("GPS_FIX_TYPE_ENUM_END", """""")
  5044. # RTK_BASELINE_COORDINATE_SYSTEM
  5045. enums["RTK_BASELINE_COORDINATE_SYSTEM"] = Enum()
  5046. enums["RTK_BASELINE_COORDINATE_SYSTEM"].bitmask = False
  5047. RTK_BASELINE_COORDINATE_SYSTEM_ECEF = 0
  5048. enums["RTK_BASELINE_COORDINATE_SYSTEM"][0] = EnumEntry("RTK_BASELINE_COORDINATE_SYSTEM_ECEF", """Earth-centered, Earth-fixed""")
  5049. RTK_BASELINE_COORDINATE_SYSTEM_NED = 1
  5050. enums["RTK_BASELINE_COORDINATE_SYSTEM"][1] = EnumEntry("RTK_BASELINE_COORDINATE_SYSTEM_NED", """RTK basestation centered, north, east, down""")
  5051. RTK_BASELINE_COORDINATE_SYSTEM_ENUM_END = 2
  5052. enums["RTK_BASELINE_COORDINATE_SYSTEM"][2] = EnumEntry("RTK_BASELINE_COORDINATE_SYSTEM_ENUM_END", """""")
  5053. # LANDING_TARGET_TYPE
  5054. enums["LANDING_TARGET_TYPE"] = Enum()
  5055. enums["LANDING_TARGET_TYPE"].bitmask = False
  5056. LANDING_TARGET_TYPE_LIGHT_BEACON = 0
  5057. enums["LANDING_TARGET_TYPE"][0] = EnumEntry("LANDING_TARGET_TYPE_LIGHT_BEACON", """Landing target signaled by light beacon (ex: IR-LOCK)""")
  5058. LANDING_TARGET_TYPE_RADIO_BEACON = 1
  5059. enums["LANDING_TARGET_TYPE"][1] = EnumEntry("LANDING_TARGET_TYPE_RADIO_BEACON", """Landing target signaled by radio beacon (ex: ILS, NDB)""")
  5060. LANDING_TARGET_TYPE_VISION_FIDUCIAL = 2
  5061. enums["LANDING_TARGET_TYPE"][2] = EnumEntry("LANDING_TARGET_TYPE_VISION_FIDUCIAL", """Landing target represented by a fiducial marker (ex: ARTag)""")
  5062. LANDING_TARGET_TYPE_VISION_OTHER = 3
  5063. 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)""")
  5064. LANDING_TARGET_TYPE_ENUM_END = 4
  5065. enums["LANDING_TARGET_TYPE"][4] = EnumEntry("LANDING_TARGET_TYPE_ENUM_END", """""")
  5066. # VTOL_TRANSITION_HEADING
  5067. enums["VTOL_TRANSITION_HEADING"] = Enum()
  5068. enums["VTOL_TRANSITION_HEADING"].bitmask = False
  5069. VTOL_TRANSITION_HEADING_VEHICLE_DEFAULT = 0
  5070. enums["VTOL_TRANSITION_HEADING"][0] = EnumEntry("VTOL_TRANSITION_HEADING_VEHICLE_DEFAULT", """Respect the heading configuration of the vehicle.""")
  5071. VTOL_TRANSITION_HEADING_NEXT_WAYPOINT = 1
  5072. enums["VTOL_TRANSITION_HEADING"][1] = EnumEntry("VTOL_TRANSITION_HEADING_NEXT_WAYPOINT", """Use the heading pointing towards the next waypoint.""")
  5073. VTOL_TRANSITION_HEADING_TAKEOFF = 2
  5074. enums["VTOL_TRANSITION_HEADING"][2] = EnumEntry("VTOL_TRANSITION_HEADING_TAKEOFF", """Use the heading on takeoff (while sitting on the ground).""")
  5075. VTOL_TRANSITION_HEADING_SPECIFIED = 3
  5076. enums["VTOL_TRANSITION_HEADING"][3] = EnumEntry("VTOL_TRANSITION_HEADING_SPECIFIED", """Use the specified heading in parameter 4.""")
  5077. VTOL_TRANSITION_HEADING_ANY = 4
  5078. 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).""")
  5079. VTOL_TRANSITION_HEADING_ENUM_END = 5
  5080. enums["VTOL_TRANSITION_HEADING"][5] = EnumEntry("VTOL_TRANSITION_HEADING_ENUM_END", """""")
  5081. # CAMERA_CAP_FLAGS
  5082. enums["CAMERA_CAP_FLAGS"] = Enum()
  5083. enums["CAMERA_CAP_FLAGS"].bitmask = True
  5084. CAMERA_CAP_FLAGS_CAPTURE_VIDEO = 1
  5085. enums["CAMERA_CAP_FLAGS"][1] = EnumEntry("CAMERA_CAP_FLAGS_CAPTURE_VIDEO", """Camera is able to record video""")
  5086. CAMERA_CAP_FLAGS_CAPTURE_IMAGE = 2
  5087. enums["CAMERA_CAP_FLAGS"][2] = EnumEntry("CAMERA_CAP_FLAGS_CAPTURE_IMAGE", """Camera is able to capture images""")
  5088. CAMERA_CAP_FLAGS_HAS_MODES = 4
  5089. enums["CAMERA_CAP_FLAGS"][4] = EnumEntry("CAMERA_CAP_FLAGS_HAS_MODES", """Camera has separate Video and Image/Photo modes (MAV_CMD_SET_CAMERA_MODE)""")
  5090. CAMERA_CAP_FLAGS_CAN_CAPTURE_IMAGE_IN_VIDEO_MODE = 8
  5091. enums["CAMERA_CAP_FLAGS"][8] = EnumEntry("CAMERA_CAP_FLAGS_CAN_CAPTURE_IMAGE_IN_VIDEO_MODE", """Camera can capture images while in video mode""")
  5092. CAMERA_CAP_FLAGS_CAN_CAPTURE_VIDEO_IN_IMAGE_MODE = 16
  5093. enums["CAMERA_CAP_FLAGS"][16] = EnumEntry("CAMERA_CAP_FLAGS_CAN_CAPTURE_VIDEO_IN_IMAGE_MODE", """Camera can capture videos while in Photo/Image mode""")
  5094. CAMERA_CAP_FLAGS_HAS_IMAGE_SURVEY_MODE = 32
  5095. enums["CAMERA_CAP_FLAGS"][32] = EnumEntry("CAMERA_CAP_FLAGS_HAS_IMAGE_SURVEY_MODE", """Camera has image survey mode (MAV_CMD_SET_CAMERA_MODE)""")
  5096. CAMERA_CAP_FLAGS_HAS_BASIC_ZOOM = 64
  5097. enums["CAMERA_CAP_FLAGS"][64] = EnumEntry("CAMERA_CAP_FLAGS_HAS_BASIC_ZOOM", """Camera has basic zoom control (MAV_CMD_SET_CAMERA_ZOOM)""")
  5098. CAMERA_CAP_FLAGS_HAS_BASIC_FOCUS = 128
  5099. enums["CAMERA_CAP_FLAGS"][128] = EnumEntry("CAMERA_CAP_FLAGS_HAS_BASIC_FOCUS", """Camera has basic focus control (MAV_CMD_SET_CAMERA_FOCUS)""")
  5100. CAMERA_CAP_FLAGS_HAS_VIDEO_STREAM = 256
  5101. 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)""")
  5102. CAMERA_CAP_FLAGS_HAS_TRACKING_POINT = 512
  5103. enums["CAMERA_CAP_FLAGS"][512] = EnumEntry("CAMERA_CAP_FLAGS_HAS_TRACKING_POINT", """Camera supports tracking of a point on the camera view.""")
  5104. CAMERA_CAP_FLAGS_HAS_TRACKING_RECTANGLE = 1024
  5105. enums["CAMERA_CAP_FLAGS"][1024] = EnumEntry("CAMERA_CAP_FLAGS_HAS_TRACKING_RECTANGLE", """Camera supports tracking of a selection rectangle on the camera view.""")
  5106. CAMERA_CAP_FLAGS_HAS_TRACKING_GEO_STATUS = 2048
  5107. enums["CAMERA_CAP_FLAGS"][2048] = EnumEntry("CAMERA_CAP_FLAGS_HAS_TRACKING_GEO_STATUS", """Camera supports tracking geo status (CAMERA_TRACKING_GEO_STATUS).""")
  5108. CAMERA_CAP_FLAGS_ENUM_END = 2049
  5109. enums["CAMERA_CAP_FLAGS"][2049] = EnumEntry("CAMERA_CAP_FLAGS_ENUM_END", """""")
  5110. # VIDEO_STREAM_STATUS_FLAGS
  5111. enums["VIDEO_STREAM_STATUS_FLAGS"] = Enum()
  5112. enums["VIDEO_STREAM_STATUS_FLAGS"].bitmask = True
  5113. VIDEO_STREAM_STATUS_FLAGS_RUNNING = 1
  5114. enums["VIDEO_STREAM_STATUS_FLAGS"][1] = EnumEntry("VIDEO_STREAM_STATUS_FLAGS_RUNNING", """Stream is active (running)""")
  5115. VIDEO_STREAM_STATUS_FLAGS_THERMAL = 2
  5116. enums["VIDEO_STREAM_STATUS_FLAGS"][2] = EnumEntry("VIDEO_STREAM_STATUS_FLAGS_THERMAL", """Stream is thermal imaging""")
  5117. VIDEO_STREAM_STATUS_FLAGS_ENUM_END = 3
  5118. enums["VIDEO_STREAM_STATUS_FLAGS"][3] = EnumEntry("VIDEO_STREAM_STATUS_FLAGS_ENUM_END", """""")
  5119. # VIDEO_STREAM_TYPE
  5120. enums["VIDEO_STREAM_TYPE"] = Enum()
  5121. enums["VIDEO_STREAM_TYPE"].bitmask = False
  5122. VIDEO_STREAM_TYPE_RTSP = 0
  5123. enums["VIDEO_STREAM_TYPE"][0] = EnumEntry("VIDEO_STREAM_TYPE_RTSP", """Stream is RTSP""")
  5124. VIDEO_STREAM_TYPE_RTPUDP = 1
  5125. enums["VIDEO_STREAM_TYPE"][1] = EnumEntry("VIDEO_STREAM_TYPE_RTPUDP", """Stream is RTP UDP (URI gives the port number)""")
  5126. VIDEO_STREAM_TYPE_TCP_MPEG = 2
  5127. enums["VIDEO_STREAM_TYPE"][2] = EnumEntry("VIDEO_STREAM_TYPE_TCP_MPEG", """Stream is MPEG on TCP""")
  5128. VIDEO_STREAM_TYPE_MPEG_TS_H264 = 3
  5129. enums["VIDEO_STREAM_TYPE"][3] = EnumEntry("VIDEO_STREAM_TYPE_MPEG_TS_H264", """Stream is h.264 on MPEG TS (URI gives the port number)""")
  5130. VIDEO_STREAM_TYPE_ENUM_END = 4
  5131. enums["VIDEO_STREAM_TYPE"][4] = EnumEntry("VIDEO_STREAM_TYPE_ENUM_END", """""")
  5132. # CAMERA_TRACKING_STATUS_FLAGS
  5133. enums["CAMERA_TRACKING_STATUS_FLAGS"] = Enum()
  5134. enums["CAMERA_TRACKING_STATUS_FLAGS"].bitmask = False
  5135. CAMERA_TRACKING_STATUS_FLAGS_IDLE = 0
  5136. enums["CAMERA_TRACKING_STATUS_FLAGS"][0] = EnumEntry("CAMERA_TRACKING_STATUS_FLAGS_IDLE", """Camera is not tracking""")
  5137. CAMERA_TRACKING_STATUS_FLAGS_ACTIVE = 1
  5138. enums["CAMERA_TRACKING_STATUS_FLAGS"][1] = EnumEntry("CAMERA_TRACKING_STATUS_FLAGS_ACTIVE", """Camera is tracking""")
  5139. CAMERA_TRACKING_STATUS_FLAGS_ERROR = 2
  5140. enums["CAMERA_TRACKING_STATUS_FLAGS"][2] = EnumEntry("CAMERA_TRACKING_STATUS_FLAGS_ERROR", """Camera tracking in error state""")
  5141. CAMERA_TRACKING_STATUS_FLAGS_ENUM_END = 3
  5142. enums["CAMERA_TRACKING_STATUS_FLAGS"][3] = EnumEntry("CAMERA_TRACKING_STATUS_FLAGS_ENUM_END", """""")
  5143. # CAMERA_TRACKING_MODE
  5144. enums["CAMERA_TRACKING_MODE"] = Enum()
  5145. enums["CAMERA_TRACKING_MODE"].bitmask = False
  5146. CAMERA_TRACKING_MODE_NONE = 0
  5147. enums["CAMERA_TRACKING_MODE"][0] = EnumEntry("CAMERA_TRACKING_MODE_NONE", """Not tracking""")
  5148. CAMERA_TRACKING_MODE_POINT = 1
  5149. enums["CAMERA_TRACKING_MODE"][1] = EnumEntry("CAMERA_TRACKING_MODE_POINT", """Target is a point""")
  5150. CAMERA_TRACKING_MODE_RECTANGLE = 2
  5151. enums["CAMERA_TRACKING_MODE"][2] = EnumEntry("CAMERA_TRACKING_MODE_RECTANGLE", """Target is a rectangle""")
  5152. CAMERA_TRACKING_MODE_ENUM_END = 3
  5153. enums["CAMERA_TRACKING_MODE"][3] = EnumEntry("CAMERA_TRACKING_MODE_ENUM_END", """""")
  5154. # CAMERA_TRACKING_TARGET_DATA
  5155. enums["CAMERA_TRACKING_TARGET_DATA"] = Enum()
  5156. enums["CAMERA_TRACKING_TARGET_DATA"].bitmask = True
  5157. CAMERA_TRACKING_TARGET_DATA_NONE = 0
  5158. enums["CAMERA_TRACKING_TARGET_DATA"][0] = EnumEntry("CAMERA_TRACKING_TARGET_DATA_NONE", """No target data""")
  5159. CAMERA_TRACKING_TARGET_DATA_EMBEDDED = 1
  5160. enums["CAMERA_TRACKING_TARGET_DATA"][1] = EnumEntry("CAMERA_TRACKING_TARGET_DATA_EMBEDDED", """Target data embedded in image data (proprietary)""")
  5161. CAMERA_TRACKING_TARGET_DATA_RENDERED = 2
  5162. enums["CAMERA_TRACKING_TARGET_DATA"][2] = EnumEntry("CAMERA_TRACKING_TARGET_DATA_RENDERED", """Target data rendered in image""")
  5163. CAMERA_TRACKING_TARGET_DATA_IN_STATUS = 4
  5164. enums["CAMERA_TRACKING_TARGET_DATA"][4] = EnumEntry("CAMERA_TRACKING_TARGET_DATA_IN_STATUS", """Target data within status message (Point or Rectangle)""")
  5165. CAMERA_TRACKING_TARGET_DATA_ENUM_END = 5
  5166. enums["CAMERA_TRACKING_TARGET_DATA"][5] = EnumEntry("CAMERA_TRACKING_TARGET_DATA_ENUM_END", """""")
  5167. # CAMERA_ZOOM_TYPE
  5168. enums["CAMERA_ZOOM_TYPE"] = Enum()
  5169. enums["CAMERA_ZOOM_TYPE"].bitmask = False
  5170. ZOOM_TYPE_STEP = 0
  5171. enums["CAMERA_ZOOM_TYPE"][0] = EnumEntry("ZOOM_TYPE_STEP", """Zoom one step increment (-1 for wide, 1 for tele)""")
  5172. ZOOM_TYPE_CONTINUOUS = 1
  5173. 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)""")
  5174. ZOOM_TYPE_RANGE = 2
  5175. 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)""")
  5176. ZOOM_TYPE_FOCAL_LENGTH = 3
  5177. 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)""")
  5178. ZOOM_TYPE_HORIZONTAL_FOV = 4
  5179. enums["CAMERA_ZOOM_TYPE"][4] = EnumEntry("ZOOM_TYPE_HORIZONTAL_FOV", """Zoom value as horizontal field of view in degrees.""")
  5180. CAMERA_ZOOM_TYPE_ENUM_END = 5
  5181. enums["CAMERA_ZOOM_TYPE"][5] = EnumEntry("CAMERA_ZOOM_TYPE_ENUM_END", """""")
  5182. # SET_FOCUS_TYPE
  5183. enums["SET_FOCUS_TYPE"] = Enum()
  5184. enums["SET_FOCUS_TYPE"].bitmask = False
  5185. FOCUS_TYPE_STEP = 0
  5186. enums["SET_FOCUS_TYPE"][0] = EnumEntry("FOCUS_TYPE_STEP", """Focus one step increment (-1 for focusing in, 1 for focusing out towards infinity).""")
  5187. FOCUS_TYPE_CONTINUOUS = 1
  5188. 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)""")
  5189. FOCUS_TYPE_RANGE = 2
  5190. 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)""")
  5191. FOCUS_TYPE_METERS = 3
  5192. 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).""")
  5193. FOCUS_TYPE_AUTO = 4
  5194. enums["SET_FOCUS_TYPE"][4] = EnumEntry("FOCUS_TYPE_AUTO", """Focus automatically.""")
  5195. FOCUS_TYPE_AUTO_SINGLE = 5
  5196. enums["SET_FOCUS_TYPE"][5] = EnumEntry("FOCUS_TYPE_AUTO_SINGLE", """Single auto focus. Mainly used for still pictures. Usually abbreviated as AF-S.""")
  5197. FOCUS_TYPE_AUTO_CONTINUOUS = 6
  5198. enums["SET_FOCUS_TYPE"][6] = EnumEntry("FOCUS_TYPE_AUTO_CONTINUOUS", """Continuous auto focus. Mainly used for dynamic scenes. Abbreviated as AF-C.""")
  5199. SET_FOCUS_TYPE_ENUM_END = 7
  5200. enums["SET_FOCUS_TYPE"][7] = EnumEntry("SET_FOCUS_TYPE_ENUM_END", """""")
  5201. # PARAM_ACK
  5202. enums["PARAM_ACK"] = Enum()
  5203. enums["PARAM_ACK"].bitmask = False
  5204. PARAM_ACK_ACCEPTED = 0
  5205. enums["PARAM_ACK"][0] = EnumEntry("PARAM_ACK_ACCEPTED", """Parameter value ACCEPTED and SET""")
  5206. PARAM_ACK_VALUE_UNSUPPORTED = 1
  5207. enums["PARAM_ACK"][1] = EnumEntry("PARAM_ACK_VALUE_UNSUPPORTED", """Parameter value UNKNOWN/UNSUPPORTED""")
  5208. PARAM_ACK_FAILED = 2
  5209. enums["PARAM_ACK"][2] = EnumEntry("PARAM_ACK_FAILED", """Parameter failed to set""")
  5210. PARAM_ACK_IN_PROGRESS = 3
  5211. 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.""")
  5212. PARAM_ACK_ENUM_END = 4
  5213. enums["PARAM_ACK"][4] = EnumEntry("PARAM_ACK_ENUM_END", """""")
  5214. # CAMERA_MODE
  5215. enums["CAMERA_MODE"] = Enum()
  5216. enums["CAMERA_MODE"].bitmask = False
  5217. CAMERA_MODE_IMAGE = 0
  5218. enums["CAMERA_MODE"][0] = EnumEntry("CAMERA_MODE_IMAGE", """Camera is in image/photo capture mode.""")
  5219. CAMERA_MODE_VIDEO = 1
  5220. enums["CAMERA_MODE"][1] = EnumEntry("CAMERA_MODE_VIDEO", """Camera is in video capture mode.""")
  5221. CAMERA_MODE_IMAGE_SURVEY = 2
  5222. 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.""")
  5223. CAMERA_MODE_ENUM_END = 3
  5224. enums["CAMERA_MODE"][3] = EnumEntry("CAMERA_MODE_ENUM_END", """""")
  5225. # MAV_ARM_AUTH_DENIED_REASON
  5226. enums["MAV_ARM_AUTH_DENIED_REASON"] = Enum()
  5227. enums["MAV_ARM_AUTH_DENIED_REASON"].bitmask = False
  5228. MAV_ARM_AUTH_DENIED_REASON_GENERIC = 0
  5229. enums["MAV_ARM_AUTH_DENIED_REASON"][0] = EnumEntry("MAV_ARM_AUTH_DENIED_REASON_GENERIC", """Not a specific reason""")
  5230. MAV_ARM_AUTH_DENIED_REASON_NONE = 1
  5231. enums["MAV_ARM_AUTH_DENIED_REASON"][1] = EnumEntry("MAV_ARM_AUTH_DENIED_REASON_NONE", """Authorizer will send the error as string to GCS""")
  5232. MAV_ARM_AUTH_DENIED_REASON_INVALID_WAYPOINT = 2
  5233. enums["MAV_ARM_AUTH_DENIED_REASON"][2] = EnumEntry("MAV_ARM_AUTH_DENIED_REASON_INVALID_WAYPOINT", """At least one waypoint have a invalid value""")
  5234. MAV_ARM_AUTH_DENIED_REASON_TIMEOUT = 3
  5235. 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)""")
  5236. MAV_ARM_AUTH_DENIED_REASON_AIRSPACE_IN_USE = 4
  5237. 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.""")
  5238. MAV_ARM_AUTH_DENIED_REASON_BAD_WEATHER = 5
  5239. enums["MAV_ARM_AUTH_DENIED_REASON"][5] = EnumEntry("MAV_ARM_AUTH_DENIED_REASON_BAD_WEATHER", """Weather is not good to fly""")
  5240. MAV_ARM_AUTH_DENIED_REASON_ENUM_END = 6
  5241. enums["MAV_ARM_AUTH_DENIED_REASON"][6] = EnumEntry("MAV_ARM_AUTH_DENIED_REASON_ENUM_END", """""")
  5242. # RC_TYPE
  5243. enums["RC_TYPE"] = Enum()
  5244. enums["RC_TYPE"].bitmask = False
  5245. RC_TYPE_SPEKTRUM_DSM2 = 0
  5246. enums["RC_TYPE"][0] = EnumEntry("RC_TYPE_SPEKTRUM_DSM2", """Spektrum DSM2""")
  5247. RC_TYPE_SPEKTRUM_DSMX = 1
  5248. enums["RC_TYPE"][1] = EnumEntry("RC_TYPE_SPEKTRUM_DSMX", """Spektrum DSMX""")
  5249. RC_TYPE_ENUM_END = 2
  5250. enums["RC_TYPE"][2] = EnumEntry("RC_TYPE_ENUM_END", """""")
  5251. # POSITION_TARGET_TYPEMASK
  5252. enums["POSITION_TARGET_TYPEMASK"] = Enum()
  5253. enums["POSITION_TARGET_TYPEMASK"].bitmask = True
  5254. POSITION_TARGET_TYPEMASK_X_IGNORE = 1
  5255. enums["POSITION_TARGET_TYPEMASK"][1] = EnumEntry("POSITION_TARGET_TYPEMASK_X_IGNORE", """Ignore position x""")
  5256. POSITION_TARGET_TYPEMASK_Y_IGNORE = 2
  5257. enums["POSITION_TARGET_TYPEMASK"][2] = EnumEntry("POSITION_TARGET_TYPEMASK_Y_IGNORE", """Ignore position y""")
  5258. POSITION_TARGET_TYPEMASK_Z_IGNORE = 4
  5259. enums["POSITION_TARGET_TYPEMASK"][4] = EnumEntry("POSITION_TARGET_TYPEMASK_Z_IGNORE", """Ignore position z""")
  5260. POSITION_TARGET_TYPEMASK_VX_IGNORE = 8
  5261. enums["POSITION_TARGET_TYPEMASK"][8] = EnumEntry("POSITION_TARGET_TYPEMASK_VX_IGNORE", """Ignore velocity x""")
  5262. POSITION_TARGET_TYPEMASK_VY_IGNORE = 16
  5263. enums["POSITION_TARGET_TYPEMASK"][16] = EnumEntry("POSITION_TARGET_TYPEMASK_VY_IGNORE", """Ignore velocity y""")
  5264. POSITION_TARGET_TYPEMASK_VZ_IGNORE = 32
  5265. enums["POSITION_TARGET_TYPEMASK"][32] = EnumEntry("POSITION_TARGET_TYPEMASK_VZ_IGNORE", """Ignore velocity z""")
  5266. POSITION_TARGET_TYPEMASK_AX_IGNORE = 64
  5267. enums["POSITION_TARGET_TYPEMASK"][64] = EnumEntry("POSITION_TARGET_TYPEMASK_AX_IGNORE", """Ignore acceleration x""")
  5268. POSITION_TARGET_TYPEMASK_AY_IGNORE = 128
  5269. enums["POSITION_TARGET_TYPEMASK"][128] = EnumEntry("POSITION_TARGET_TYPEMASK_AY_IGNORE", """Ignore acceleration y""")
  5270. POSITION_TARGET_TYPEMASK_AZ_IGNORE = 256
  5271. enums["POSITION_TARGET_TYPEMASK"][256] = EnumEntry("POSITION_TARGET_TYPEMASK_AZ_IGNORE", """Ignore acceleration z""")
  5272. POSITION_TARGET_TYPEMASK_FORCE_SET = 512
  5273. enums["POSITION_TARGET_TYPEMASK"][512] = EnumEntry("POSITION_TARGET_TYPEMASK_FORCE_SET", """Use force instead of acceleration""")
  5274. POSITION_TARGET_TYPEMASK_YAW_IGNORE = 1024
  5275. enums["POSITION_TARGET_TYPEMASK"][1024] = EnumEntry("POSITION_TARGET_TYPEMASK_YAW_IGNORE", """Ignore yaw""")
  5276. POSITION_TARGET_TYPEMASK_YAW_RATE_IGNORE = 2048
  5277. enums["POSITION_TARGET_TYPEMASK"][2048] = EnumEntry("POSITION_TARGET_TYPEMASK_YAW_RATE_IGNORE", """Ignore yaw rate""")
  5278. POSITION_TARGET_TYPEMASK_ENUM_END = 2049
  5279. enums["POSITION_TARGET_TYPEMASK"][2049] = EnumEntry("POSITION_TARGET_TYPEMASK_ENUM_END", """""")
  5280. # ATTITUDE_TARGET_TYPEMASK
  5281. enums["ATTITUDE_TARGET_TYPEMASK"] = Enum()
  5282. enums["ATTITUDE_TARGET_TYPEMASK"].bitmask = True
  5283. ATTITUDE_TARGET_TYPEMASK_BODY_ROLL_RATE_IGNORE = 1
  5284. enums["ATTITUDE_TARGET_TYPEMASK"][1] = EnumEntry("ATTITUDE_TARGET_TYPEMASK_BODY_ROLL_RATE_IGNORE", """Ignore body roll rate""")
  5285. ATTITUDE_TARGET_TYPEMASK_BODY_PITCH_RATE_IGNORE = 2
  5286. enums["ATTITUDE_TARGET_TYPEMASK"][2] = EnumEntry("ATTITUDE_TARGET_TYPEMASK_BODY_PITCH_RATE_IGNORE", """Ignore body pitch rate""")
  5287. ATTITUDE_TARGET_TYPEMASK_BODY_YAW_RATE_IGNORE = 4
  5288. enums["ATTITUDE_TARGET_TYPEMASK"][4] = EnumEntry("ATTITUDE_TARGET_TYPEMASK_BODY_YAW_RATE_IGNORE", """Ignore body yaw rate""")
  5289. ATTITUDE_TARGET_TYPEMASK_THRUST_BODY_SET = 32
  5290. enums["ATTITUDE_TARGET_TYPEMASK"][32] = EnumEntry("ATTITUDE_TARGET_TYPEMASK_THRUST_BODY_SET", """Use 3D body thrust setpoint instead of throttle""")
  5291. ATTITUDE_TARGET_TYPEMASK_THROTTLE_IGNORE = 64
  5292. enums["ATTITUDE_TARGET_TYPEMASK"][64] = EnumEntry("ATTITUDE_TARGET_TYPEMASK_THROTTLE_IGNORE", """Ignore throttle""")
  5293. ATTITUDE_TARGET_TYPEMASK_ATTITUDE_IGNORE = 128
  5294. enums["ATTITUDE_TARGET_TYPEMASK"][128] = EnumEntry("ATTITUDE_TARGET_TYPEMASK_ATTITUDE_IGNORE", """Ignore attitude""")
  5295. ATTITUDE_TARGET_TYPEMASK_ENUM_END = 129
  5296. enums["ATTITUDE_TARGET_TYPEMASK"][129] = EnumEntry("ATTITUDE_TARGET_TYPEMASK_ENUM_END", """""")
  5297. # UTM_FLIGHT_STATE
  5298. enums["UTM_FLIGHT_STATE"] = Enum()
  5299. enums["UTM_FLIGHT_STATE"].bitmask = False
  5300. UTM_FLIGHT_STATE_UNKNOWN = 1
  5301. enums["UTM_FLIGHT_STATE"][1] = EnumEntry("UTM_FLIGHT_STATE_UNKNOWN", """The flight state can't be determined.""")
  5302. UTM_FLIGHT_STATE_GROUND = 2
  5303. enums["UTM_FLIGHT_STATE"][2] = EnumEntry("UTM_FLIGHT_STATE_GROUND", """UAS on ground.""")
  5304. UTM_FLIGHT_STATE_AIRBORNE = 3
  5305. enums["UTM_FLIGHT_STATE"][3] = EnumEntry("UTM_FLIGHT_STATE_AIRBORNE", """UAS airborne.""")
  5306. UTM_FLIGHT_STATE_EMERGENCY = 16
  5307. enums["UTM_FLIGHT_STATE"][16] = EnumEntry("UTM_FLIGHT_STATE_EMERGENCY", """UAS is in an emergency flight state.""")
  5308. UTM_FLIGHT_STATE_NOCTRL = 32
  5309. enums["UTM_FLIGHT_STATE"][32] = EnumEntry("UTM_FLIGHT_STATE_NOCTRL", """UAS has no active controls.""")
  5310. UTM_FLIGHT_STATE_ENUM_END = 33
  5311. enums["UTM_FLIGHT_STATE"][33] = EnumEntry("UTM_FLIGHT_STATE_ENUM_END", """""")
  5312. # UTM_DATA_AVAIL_FLAGS
  5313. enums["UTM_DATA_AVAIL_FLAGS"] = Enum()
  5314. enums["UTM_DATA_AVAIL_FLAGS"].bitmask = True
  5315. UTM_DATA_AVAIL_FLAGS_TIME_VALID = 1
  5316. enums["UTM_DATA_AVAIL_FLAGS"][1] = EnumEntry("UTM_DATA_AVAIL_FLAGS_TIME_VALID", """The field time contains valid data.""")
  5317. UTM_DATA_AVAIL_FLAGS_UAS_ID_AVAILABLE = 2
  5318. enums["UTM_DATA_AVAIL_FLAGS"][2] = EnumEntry("UTM_DATA_AVAIL_FLAGS_UAS_ID_AVAILABLE", """The field uas_id contains valid data.""")
  5319. UTM_DATA_AVAIL_FLAGS_POSITION_AVAILABLE = 4
  5320. enums["UTM_DATA_AVAIL_FLAGS"][4] = EnumEntry("UTM_DATA_AVAIL_FLAGS_POSITION_AVAILABLE", """The fields lat, lon and h_acc contain valid data.""")
  5321. UTM_DATA_AVAIL_FLAGS_ALTITUDE_AVAILABLE = 8
  5322. enums["UTM_DATA_AVAIL_FLAGS"][8] = EnumEntry("UTM_DATA_AVAIL_FLAGS_ALTITUDE_AVAILABLE", """The fields alt and v_acc contain valid data.""")
  5323. UTM_DATA_AVAIL_FLAGS_RELATIVE_ALTITUDE_AVAILABLE = 16
  5324. enums["UTM_DATA_AVAIL_FLAGS"][16] = EnumEntry("UTM_DATA_AVAIL_FLAGS_RELATIVE_ALTITUDE_AVAILABLE", """The field relative_alt contains valid data.""")
  5325. UTM_DATA_AVAIL_FLAGS_HORIZONTAL_VELO_AVAILABLE = 32
  5326. enums["UTM_DATA_AVAIL_FLAGS"][32] = EnumEntry("UTM_DATA_AVAIL_FLAGS_HORIZONTAL_VELO_AVAILABLE", """The fields vx and vy contain valid data.""")
  5327. UTM_DATA_AVAIL_FLAGS_VERTICAL_VELO_AVAILABLE = 64
  5328. enums["UTM_DATA_AVAIL_FLAGS"][64] = EnumEntry("UTM_DATA_AVAIL_FLAGS_VERTICAL_VELO_AVAILABLE", """The field vz contains valid data.""")
  5329. UTM_DATA_AVAIL_FLAGS_NEXT_WAYPOINT_AVAILABLE = 128
  5330. 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.""")
  5331. UTM_DATA_AVAIL_FLAGS_ENUM_END = 129
  5332. enums["UTM_DATA_AVAIL_FLAGS"][129] = EnumEntry("UTM_DATA_AVAIL_FLAGS_ENUM_END", """""")
  5333. # CELLULAR_STATUS_FLAG
  5334. enums["CELLULAR_STATUS_FLAG"] = Enum()
  5335. enums["CELLULAR_STATUS_FLAG"].bitmask = False
  5336. CELLULAR_STATUS_FLAG_UNKNOWN = 0
  5337. enums["CELLULAR_STATUS_FLAG"][0] = EnumEntry("CELLULAR_STATUS_FLAG_UNKNOWN", """State unknown or not reportable.""")
  5338. CELLULAR_STATUS_FLAG_FAILED = 1
  5339. enums["CELLULAR_STATUS_FLAG"][1] = EnumEntry("CELLULAR_STATUS_FLAG_FAILED", """Modem is unusable""")
  5340. CELLULAR_STATUS_FLAG_INITIALIZING = 2
  5341. enums["CELLULAR_STATUS_FLAG"][2] = EnumEntry("CELLULAR_STATUS_FLAG_INITIALIZING", """Modem is being initialized""")
  5342. CELLULAR_STATUS_FLAG_LOCKED = 3
  5343. enums["CELLULAR_STATUS_FLAG"][3] = EnumEntry("CELLULAR_STATUS_FLAG_LOCKED", """Modem is locked""")
  5344. CELLULAR_STATUS_FLAG_DISABLED = 4
  5345. enums["CELLULAR_STATUS_FLAG"][4] = EnumEntry("CELLULAR_STATUS_FLAG_DISABLED", """Modem is not enabled and is powered down""")
  5346. CELLULAR_STATUS_FLAG_DISABLING = 5
  5347. enums["CELLULAR_STATUS_FLAG"][5] = EnumEntry("CELLULAR_STATUS_FLAG_DISABLING", """Modem is currently transitioning to the CELLULAR_STATUS_FLAG_DISABLED state""")
  5348. CELLULAR_STATUS_FLAG_ENABLING = 6
  5349. enums["CELLULAR_STATUS_FLAG"][6] = EnumEntry("CELLULAR_STATUS_FLAG_ENABLING", """Modem is currently transitioning to the CELLULAR_STATUS_FLAG_ENABLED state""")
  5350. CELLULAR_STATUS_FLAG_ENABLED = 7
  5351. 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""")
  5352. CELLULAR_STATUS_FLAG_SEARCHING = 8
  5353. enums["CELLULAR_STATUS_FLAG"][8] = EnumEntry("CELLULAR_STATUS_FLAG_SEARCHING", """Modem is searching for a network provider to register""")
  5354. CELLULAR_STATUS_FLAG_REGISTERED = 9
  5355. 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""")
  5356. CELLULAR_STATUS_FLAG_DISCONNECTING = 10
  5357. 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""")
  5358. CELLULAR_STATUS_FLAG_CONNECTING = 11
  5359. 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""")
  5360. CELLULAR_STATUS_FLAG_CONNECTED = 12
  5361. enums["CELLULAR_STATUS_FLAG"][12] = EnumEntry("CELLULAR_STATUS_FLAG_CONNECTED", """One or more packet data bearers is active and connected""")
  5362. CELLULAR_STATUS_FLAG_ENUM_END = 13
  5363. enums["CELLULAR_STATUS_FLAG"][13] = EnumEntry("CELLULAR_STATUS_FLAG_ENUM_END", """""")
  5364. # CELLULAR_NETWORK_FAILED_REASON
  5365. enums["CELLULAR_NETWORK_FAILED_REASON"] = Enum()
  5366. enums["CELLULAR_NETWORK_FAILED_REASON"].bitmask = False
  5367. CELLULAR_NETWORK_FAILED_REASON_NONE = 0
  5368. enums["CELLULAR_NETWORK_FAILED_REASON"][0] = EnumEntry("CELLULAR_NETWORK_FAILED_REASON_NONE", """No error""")
  5369. CELLULAR_NETWORK_FAILED_REASON_UNKNOWN = 1
  5370. enums["CELLULAR_NETWORK_FAILED_REASON"][1] = EnumEntry("CELLULAR_NETWORK_FAILED_REASON_UNKNOWN", """Error state is unknown""")
  5371. CELLULAR_NETWORK_FAILED_REASON_SIM_MISSING = 2
  5372. enums["CELLULAR_NETWORK_FAILED_REASON"][2] = EnumEntry("CELLULAR_NETWORK_FAILED_REASON_SIM_MISSING", """SIM is required for the modem but missing""")
  5373. CELLULAR_NETWORK_FAILED_REASON_SIM_ERROR = 3
  5374. enums["CELLULAR_NETWORK_FAILED_REASON"][3] = EnumEntry("CELLULAR_NETWORK_FAILED_REASON_SIM_ERROR", """SIM is available, but not usable for connection""")
  5375. CELLULAR_NETWORK_FAILED_REASON_ENUM_END = 4
  5376. enums["CELLULAR_NETWORK_FAILED_REASON"][4] = EnumEntry("CELLULAR_NETWORK_FAILED_REASON_ENUM_END", """""")
  5377. # CELLULAR_NETWORK_RADIO_TYPE
  5378. enums["CELLULAR_NETWORK_RADIO_TYPE"] = Enum()
  5379. enums["CELLULAR_NETWORK_RADIO_TYPE"].bitmask = False
  5380. CELLULAR_NETWORK_RADIO_TYPE_NONE = 0
  5381. enums["CELLULAR_NETWORK_RADIO_TYPE"][0] = EnumEntry("CELLULAR_NETWORK_RADIO_TYPE_NONE", """""")
  5382. CELLULAR_NETWORK_RADIO_TYPE_GSM = 1
  5383. enums["CELLULAR_NETWORK_RADIO_TYPE"][1] = EnumEntry("CELLULAR_NETWORK_RADIO_TYPE_GSM", """""")
  5384. CELLULAR_NETWORK_RADIO_TYPE_CDMA = 2
  5385. enums["CELLULAR_NETWORK_RADIO_TYPE"][2] = EnumEntry("CELLULAR_NETWORK_RADIO_TYPE_CDMA", """""")
  5386. CELLULAR_NETWORK_RADIO_TYPE_WCDMA = 3
  5387. enums["CELLULAR_NETWORK_RADIO_TYPE"][3] = EnumEntry("CELLULAR_NETWORK_RADIO_TYPE_WCDMA", """""")
  5388. CELLULAR_NETWORK_RADIO_TYPE_LTE = 4
  5389. enums["CELLULAR_NETWORK_RADIO_TYPE"][4] = EnumEntry("CELLULAR_NETWORK_RADIO_TYPE_LTE", """""")
  5390. CELLULAR_NETWORK_RADIO_TYPE_ENUM_END = 5
  5391. enums["CELLULAR_NETWORK_RADIO_TYPE"][5] = EnumEntry("CELLULAR_NETWORK_RADIO_TYPE_ENUM_END", """""")
  5392. # PRECISION_LAND_MODE
  5393. enums["PRECISION_LAND_MODE"] = Enum()
  5394. enums["PRECISION_LAND_MODE"].bitmask = False
  5395. PRECISION_LAND_MODE_DISABLED = 0
  5396. enums["PRECISION_LAND_MODE"][0] = EnumEntry("PRECISION_LAND_MODE_DISABLED", """Normal (non-precision) landing.""")
  5397. PRECISION_LAND_MODE_OPPORTUNISTIC = 1
  5398. enums["PRECISION_LAND_MODE"][1] = EnumEntry("PRECISION_LAND_MODE_OPPORTUNISTIC", """Use precision landing if beacon detected when land command accepted, otherwise land normally.""")
  5399. PRECISION_LAND_MODE_REQUIRED = 2
  5400. 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).""")
  5401. PRECISION_LAND_MODE_ENUM_END = 3
  5402. enums["PRECISION_LAND_MODE"][3] = EnumEntry("PRECISION_LAND_MODE_ENUM_END", """""")
  5403. # PARACHUTE_ACTION
  5404. enums["PARACHUTE_ACTION"] = Enum()
  5405. enums["PARACHUTE_ACTION"].bitmask = False
  5406. PARACHUTE_DISABLE = 0
  5407. enums["PARACHUTE_ACTION"][0] = EnumEntry("PARACHUTE_DISABLE", """Disable auto-release of parachute (i.e. release triggered by crash detectors).""")
  5408. PARACHUTE_ENABLE = 1
  5409. enums["PARACHUTE_ACTION"][1] = EnumEntry("PARACHUTE_ENABLE", """Enable auto-release of parachute.""")
  5410. PARACHUTE_RELEASE = 2
  5411. enums["PARACHUTE_ACTION"][2] = EnumEntry("PARACHUTE_RELEASE", """Release parachute and kill motors.""")
  5412. PARACHUTE_ACTION_ENUM_END = 3
  5413. enums["PARACHUTE_ACTION"][3] = EnumEntry("PARACHUTE_ACTION_ENUM_END", """""")
  5414. # MAV_TUNNEL_PAYLOAD_TYPE
  5415. enums["MAV_TUNNEL_PAYLOAD_TYPE"] = Enum()
  5416. enums["MAV_TUNNEL_PAYLOAD_TYPE"].bitmask = False
  5417. MAV_TUNNEL_PAYLOAD_TYPE_UNKNOWN = 0
  5418. enums["MAV_TUNNEL_PAYLOAD_TYPE"][0] = EnumEntry("MAV_TUNNEL_PAYLOAD_TYPE_UNKNOWN", """Encoding of payload unknown.""")
  5419. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED0 = 200
  5420. enums["MAV_TUNNEL_PAYLOAD_TYPE"][200] = EnumEntry("MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED0", """Registered for STorM32 gimbal controller.""")
  5421. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED1 = 201
  5422. enums["MAV_TUNNEL_PAYLOAD_TYPE"][201] = EnumEntry("MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED1", """Registered for STorM32 gimbal controller.""")
  5423. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED2 = 202
  5424. enums["MAV_TUNNEL_PAYLOAD_TYPE"][202] = EnumEntry("MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED2", """Registered for STorM32 gimbal controller.""")
  5425. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED3 = 203
  5426. enums["MAV_TUNNEL_PAYLOAD_TYPE"][203] = EnumEntry("MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED3", """Registered for STorM32 gimbal controller.""")
  5427. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED4 = 204
  5428. enums["MAV_TUNNEL_PAYLOAD_TYPE"][204] = EnumEntry("MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED4", """Registered for STorM32 gimbal controller.""")
  5429. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED5 = 205
  5430. enums["MAV_TUNNEL_PAYLOAD_TYPE"][205] = EnumEntry("MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED5", """Registered for STorM32 gimbal controller.""")
  5431. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED6 = 206
  5432. enums["MAV_TUNNEL_PAYLOAD_TYPE"][206] = EnumEntry("MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED6", """Registered for STorM32 gimbal controller.""")
  5433. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED7 = 207
  5434. enums["MAV_TUNNEL_PAYLOAD_TYPE"][207] = EnumEntry("MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED7", """Registered for STorM32 gimbal controller.""")
  5435. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED8 = 208
  5436. enums["MAV_TUNNEL_PAYLOAD_TYPE"][208] = EnumEntry("MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED8", """Registered for STorM32 gimbal controller.""")
  5437. MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED9 = 209
  5438. enums["MAV_TUNNEL_PAYLOAD_TYPE"][209] = EnumEntry("MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED9", """Registered for STorM32 gimbal controller.""")
  5439. MAV_TUNNEL_PAYLOAD_TYPE_ENUM_END = 210
  5440. enums["MAV_TUNNEL_PAYLOAD_TYPE"][210] = EnumEntry("MAV_TUNNEL_PAYLOAD_TYPE_ENUM_END", """""")
  5441. # MAV_ODID_ID_TYPE
  5442. enums["MAV_ODID_ID_TYPE"] = Enum()
  5443. enums["MAV_ODID_ID_TYPE"].bitmask = False
  5444. MAV_ODID_ID_TYPE_NONE = 0
  5445. enums["MAV_ODID_ID_TYPE"][0] = EnumEntry("MAV_ODID_ID_TYPE_NONE", """No type defined.""")
  5446. MAV_ODID_ID_TYPE_SERIAL_NUMBER = 1
  5447. enums["MAV_ODID_ID_TYPE"][1] = EnumEntry("MAV_ODID_ID_TYPE_SERIAL_NUMBER", """Manufacturer Serial Number (ANSI/CTA-2063 format).""")
  5448. MAV_ODID_ID_TYPE_CAA_REGISTRATION_ID = 2
  5449. 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].""")
  5450. MAV_ODID_ID_TYPE_UTM_ASSIGNED_UUID = 3
  5451. enums["MAV_ODID_ID_TYPE"][3] = EnumEntry("MAV_ODID_ID_TYPE_UTM_ASSIGNED_UUID", """UTM (Unmanned Traffic Management) assigned UUID (RFC4122).""")
  5452. MAV_ODID_ID_TYPE_SPECIFIC_SESSION_ID = 4
  5453. 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.""")
  5454. MAV_ODID_ID_TYPE_ENUM_END = 5
  5455. enums["MAV_ODID_ID_TYPE"][5] = EnumEntry("MAV_ODID_ID_TYPE_ENUM_END", """""")
  5456. # MAV_ODID_UA_TYPE
  5457. enums["MAV_ODID_UA_TYPE"] = Enum()
  5458. enums["MAV_ODID_UA_TYPE"].bitmask = False
  5459. MAV_ODID_UA_TYPE_NONE = 0
  5460. enums["MAV_ODID_UA_TYPE"][0] = EnumEntry("MAV_ODID_UA_TYPE_NONE", """No UA (Unmanned Aircraft) type defined.""")
  5461. MAV_ODID_UA_TYPE_AEROPLANE = 1
  5462. enums["MAV_ODID_UA_TYPE"][1] = EnumEntry("MAV_ODID_UA_TYPE_AEROPLANE", """Aeroplane/Airplane. Fixed wing.""")
  5463. MAV_ODID_UA_TYPE_HELICOPTER_OR_MULTIROTOR = 2
  5464. enums["MAV_ODID_UA_TYPE"][2] = EnumEntry("MAV_ODID_UA_TYPE_HELICOPTER_OR_MULTIROTOR", """Helicopter or multirotor.""")
  5465. MAV_ODID_UA_TYPE_GYROPLANE = 3
  5466. enums["MAV_ODID_UA_TYPE"][3] = EnumEntry("MAV_ODID_UA_TYPE_GYROPLANE", """Gyroplane.""")
  5467. MAV_ODID_UA_TYPE_HYBRID_LIFT = 4
  5468. 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.""")
  5469. MAV_ODID_UA_TYPE_ORNITHOPTER = 5
  5470. enums["MAV_ODID_UA_TYPE"][5] = EnumEntry("MAV_ODID_UA_TYPE_ORNITHOPTER", """Ornithopter.""")
  5471. MAV_ODID_UA_TYPE_GLIDER = 6
  5472. enums["MAV_ODID_UA_TYPE"][6] = EnumEntry("MAV_ODID_UA_TYPE_GLIDER", """Glider.""")
  5473. MAV_ODID_UA_TYPE_KITE = 7
  5474. enums["MAV_ODID_UA_TYPE"][7] = EnumEntry("MAV_ODID_UA_TYPE_KITE", """Kite.""")
  5475. MAV_ODID_UA_TYPE_FREE_BALLOON = 8
  5476. enums["MAV_ODID_UA_TYPE"][8] = EnumEntry("MAV_ODID_UA_TYPE_FREE_BALLOON", """Free Balloon.""")
  5477. MAV_ODID_UA_TYPE_CAPTIVE_BALLOON = 9
  5478. enums["MAV_ODID_UA_TYPE"][9] = EnumEntry("MAV_ODID_UA_TYPE_CAPTIVE_BALLOON", """Captive Balloon.""")
  5479. MAV_ODID_UA_TYPE_AIRSHIP = 10
  5480. enums["MAV_ODID_UA_TYPE"][10] = EnumEntry("MAV_ODID_UA_TYPE_AIRSHIP", """Airship. E.g. a blimp.""")
  5481. MAV_ODID_UA_TYPE_FREE_FALL_PARACHUTE = 11
  5482. enums["MAV_ODID_UA_TYPE"][11] = EnumEntry("MAV_ODID_UA_TYPE_FREE_FALL_PARACHUTE", """Free Fall/Parachute (unpowered).""")
  5483. MAV_ODID_UA_TYPE_ROCKET = 12
  5484. enums["MAV_ODID_UA_TYPE"][12] = EnumEntry("MAV_ODID_UA_TYPE_ROCKET", """Rocket.""")
  5485. MAV_ODID_UA_TYPE_TETHERED_POWERED_AIRCRAFT = 13
  5486. enums["MAV_ODID_UA_TYPE"][13] = EnumEntry("MAV_ODID_UA_TYPE_TETHERED_POWERED_AIRCRAFT", """Tethered powered aircraft.""")
  5487. MAV_ODID_UA_TYPE_GROUND_OBSTACLE = 14
  5488. enums["MAV_ODID_UA_TYPE"][14] = EnumEntry("MAV_ODID_UA_TYPE_GROUND_OBSTACLE", """Ground Obstacle.""")
  5489. MAV_ODID_UA_TYPE_OTHER = 15
  5490. enums["MAV_ODID_UA_TYPE"][15] = EnumEntry("MAV_ODID_UA_TYPE_OTHER", """Other type of aircraft not listed earlier.""")
  5491. MAV_ODID_UA_TYPE_ENUM_END = 16
  5492. enums["MAV_ODID_UA_TYPE"][16] = EnumEntry("MAV_ODID_UA_TYPE_ENUM_END", """""")
  5493. # MAV_ODID_STATUS
  5494. enums["MAV_ODID_STATUS"] = Enum()
  5495. enums["MAV_ODID_STATUS"].bitmask = False
  5496. MAV_ODID_STATUS_UNDECLARED = 0
  5497. enums["MAV_ODID_STATUS"][0] = EnumEntry("MAV_ODID_STATUS_UNDECLARED", """The status of the (UA) Unmanned Aircraft is undefined.""")
  5498. MAV_ODID_STATUS_GROUND = 1
  5499. enums["MAV_ODID_STATUS"][1] = EnumEntry("MAV_ODID_STATUS_GROUND", """The UA is on the ground.""")
  5500. MAV_ODID_STATUS_AIRBORNE = 2
  5501. enums["MAV_ODID_STATUS"][2] = EnumEntry("MAV_ODID_STATUS_AIRBORNE", """The UA is in the air.""")
  5502. MAV_ODID_STATUS_EMERGENCY = 3
  5503. enums["MAV_ODID_STATUS"][3] = EnumEntry("MAV_ODID_STATUS_EMERGENCY", """The UA is having an emergency.""")
  5504. MAV_ODID_STATUS_REMOTE_ID_SYSTEM_FAILURE = 4
  5505. enums["MAV_ODID_STATUS"][4] = EnumEntry("MAV_ODID_STATUS_REMOTE_ID_SYSTEM_FAILURE", """The remote ID system is failing or unreliable in some way.""")
  5506. MAV_ODID_STATUS_ENUM_END = 5
  5507. enums["MAV_ODID_STATUS"][5] = EnumEntry("MAV_ODID_STATUS_ENUM_END", """""")
  5508. # MAV_ODID_HEIGHT_REF
  5509. enums["MAV_ODID_HEIGHT_REF"] = Enum()
  5510. enums["MAV_ODID_HEIGHT_REF"].bitmask = False
  5511. MAV_ODID_HEIGHT_REF_OVER_TAKEOFF = 0
  5512. enums["MAV_ODID_HEIGHT_REF"][0] = EnumEntry("MAV_ODID_HEIGHT_REF_OVER_TAKEOFF", """The height field is relative to the take-off location.""")
  5513. MAV_ODID_HEIGHT_REF_OVER_GROUND = 1
  5514. enums["MAV_ODID_HEIGHT_REF"][1] = EnumEntry("MAV_ODID_HEIGHT_REF_OVER_GROUND", """The height field is relative to ground.""")
  5515. MAV_ODID_HEIGHT_REF_ENUM_END = 2
  5516. enums["MAV_ODID_HEIGHT_REF"][2] = EnumEntry("MAV_ODID_HEIGHT_REF_ENUM_END", """""")
  5517. # MAV_ODID_HOR_ACC
  5518. enums["MAV_ODID_HOR_ACC"] = Enum()
  5519. enums["MAV_ODID_HOR_ACC"].bitmask = False
  5520. MAV_ODID_HOR_ACC_UNKNOWN = 0
  5521. enums["MAV_ODID_HOR_ACC"][0] = EnumEntry("MAV_ODID_HOR_ACC_UNKNOWN", """The horizontal accuracy is unknown.""")
  5522. MAV_ODID_HOR_ACC_10NM = 1
  5523. enums["MAV_ODID_HOR_ACC"][1] = EnumEntry("MAV_ODID_HOR_ACC_10NM", """The horizontal accuracy is smaller than 10 Nautical Miles. 18.52 km.""")
  5524. MAV_ODID_HOR_ACC_4NM = 2
  5525. enums["MAV_ODID_HOR_ACC"][2] = EnumEntry("MAV_ODID_HOR_ACC_4NM", """The horizontal accuracy is smaller than 4 Nautical Miles. 7.408 km.""")
  5526. MAV_ODID_HOR_ACC_2NM = 3
  5527. enums["MAV_ODID_HOR_ACC"][3] = EnumEntry("MAV_ODID_HOR_ACC_2NM", """The horizontal accuracy is smaller than 2 Nautical Miles. 3.704 km.""")
  5528. MAV_ODID_HOR_ACC_1NM = 4
  5529. enums["MAV_ODID_HOR_ACC"][4] = EnumEntry("MAV_ODID_HOR_ACC_1NM", """The horizontal accuracy is smaller than 1 Nautical Miles. 1.852 km.""")
  5530. MAV_ODID_HOR_ACC_0_5NM = 5
  5531. 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.""")
  5532. MAV_ODID_HOR_ACC_0_3NM = 6
  5533. 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.""")
  5534. MAV_ODID_HOR_ACC_0_1NM = 7
  5535. 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.""")
  5536. MAV_ODID_HOR_ACC_0_05NM = 8
  5537. 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.""")
  5538. MAV_ODID_HOR_ACC_30_METER = 9
  5539. enums["MAV_ODID_HOR_ACC"][9] = EnumEntry("MAV_ODID_HOR_ACC_30_METER", """The horizontal accuracy is smaller than 30 meter.""")
  5540. MAV_ODID_HOR_ACC_10_METER = 10
  5541. enums["MAV_ODID_HOR_ACC"][10] = EnumEntry("MAV_ODID_HOR_ACC_10_METER", """The horizontal accuracy is smaller than 10 meter.""")
  5542. MAV_ODID_HOR_ACC_3_METER = 11
  5543. enums["MAV_ODID_HOR_ACC"][11] = EnumEntry("MAV_ODID_HOR_ACC_3_METER", """The horizontal accuracy is smaller than 3 meter.""")
  5544. MAV_ODID_HOR_ACC_1_METER = 12
  5545. enums["MAV_ODID_HOR_ACC"][12] = EnumEntry("MAV_ODID_HOR_ACC_1_METER", """The horizontal accuracy is smaller than 1 meter.""")
  5546. MAV_ODID_HOR_ACC_ENUM_END = 13
  5547. enums["MAV_ODID_HOR_ACC"][13] = EnumEntry("MAV_ODID_HOR_ACC_ENUM_END", """""")
  5548. # MAV_ODID_VER_ACC
  5549. enums["MAV_ODID_VER_ACC"] = Enum()
  5550. enums["MAV_ODID_VER_ACC"].bitmask = False
  5551. MAV_ODID_VER_ACC_UNKNOWN = 0
  5552. enums["MAV_ODID_VER_ACC"][0] = EnumEntry("MAV_ODID_VER_ACC_UNKNOWN", """The vertical accuracy is unknown.""")
  5553. MAV_ODID_VER_ACC_150_METER = 1
  5554. enums["MAV_ODID_VER_ACC"][1] = EnumEntry("MAV_ODID_VER_ACC_150_METER", """The vertical accuracy is smaller than 150 meter.""")
  5555. MAV_ODID_VER_ACC_45_METER = 2
  5556. enums["MAV_ODID_VER_ACC"][2] = EnumEntry("MAV_ODID_VER_ACC_45_METER", """The vertical accuracy is smaller than 45 meter.""")
  5557. MAV_ODID_VER_ACC_25_METER = 3
  5558. enums["MAV_ODID_VER_ACC"][3] = EnumEntry("MAV_ODID_VER_ACC_25_METER", """The vertical accuracy is smaller than 25 meter.""")
  5559. MAV_ODID_VER_ACC_10_METER = 4
  5560. enums["MAV_ODID_VER_ACC"][4] = EnumEntry("MAV_ODID_VER_ACC_10_METER", """The vertical accuracy is smaller than 10 meter.""")
  5561. MAV_ODID_VER_ACC_3_METER = 5
  5562. enums["MAV_ODID_VER_ACC"][5] = EnumEntry("MAV_ODID_VER_ACC_3_METER", """The vertical accuracy is smaller than 3 meter.""")
  5563. MAV_ODID_VER_ACC_1_METER = 6
  5564. enums["MAV_ODID_VER_ACC"][6] = EnumEntry("MAV_ODID_VER_ACC_1_METER", """The vertical accuracy is smaller than 1 meter.""")
  5565. MAV_ODID_VER_ACC_ENUM_END = 7
  5566. enums["MAV_ODID_VER_ACC"][7] = EnumEntry("MAV_ODID_VER_ACC_ENUM_END", """""")
  5567. # MAV_ODID_SPEED_ACC
  5568. enums["MAV_ODID_SPEED_ACC"] = Enum()
  5569. enums["MAV_ODID_SPEED_ACC"].bitmask = False
  5570. MAV_ODID_SPEED_ACC_UNKNOWN = 0
  5571. enums["MAV_ODID_SPEED_ACC"][0] = EnumEntry("MAV_ODID_SPEED_ACC_UNKNOWN", """The speed accuracy is unknown.""")
  5572. MAV_ODID_SPEED_ACC_10_METERS_PER_SECOND = 1
  5573. 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.""")
  5574. MAV_ODID_SPEED_ACC_3_METERS_PER_SECOND = 2
  5575. 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.""")
  5576. MAV_ODID_SPEED_ACC_1_METERS_PER_SECOND = 3
  5577. 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.""")
  5578. MAV_ODID_SPEED_ACC_0_3_METERS_PER_SECOND = 4
  5579. 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.""")
  5580. MAV_ODID_SPEED_ACC_ENUM_END = 5
  5581. enums["MAV_ODID_SPEED_ACC"][5] = EnumEntry("MAV_ODID_SPEED_ACC_ENUM_END", """""")
  5582. # MAV_ODID_TIME_ACC
  5583. enums["MAV_ODID_TIME_ACC"] = Enum()
  5584. enums["MAV_ODID_TIME_ACC"].bitmask = False
  5585. MAV_ODID_TIME_ACC_UNKNOWN = 0
  5586. enums["MAV_ODID_TIME_ACC"][0] = EnumEntry("MAV_ODID_TIME_ACC_UNKNOWN", """The timestamp accuracy is unknown.""")
  5587. MAV_ODID_TIME_ACC_0_1_SECOND = 1
  5588. 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.""")
  5589. MAV_ODID_TIME_ACC_0_2_SECOND = 2
  5590. 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.""")
  5591. MAV_ODID_TIME_ACC_0_3_SECOND = 3
  5592. 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.""")
  5593. MAV_ODID_TIME_ACC_0_4_SECOND = 4
  5594. 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.""")
  5595. MAV_ODID_TIME_ACC_0_5_SECOND = 5
  5596. 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.""")
  5597. MAV_ODID_TIME_ACC_0_6_SECOND = 6
  5598. 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.""")
  5599. MAV_ODID_TIME_ACC_0_7_SECOND = 7
  5600. 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.""")
  5601. MAV_ODID_TIME_ACC_0_8_SECOND = 8
  5602. 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.""")
  5603. MAV_ODID_TIME_ACC_0_9_SECOND = 9
  5604. 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.""")
  5605. MAV_ODID_TIME_ACC_1_0_SECOND = 10
  5606. 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.""")
  5607. MAV_ODID_TIME_ACC_1_1_SECOND = 11
  5608. 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.""")
  5609. MAV_ODID_TIME_ACC_1_2_SECOND = 12
  5610. 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.""")
  5611. MAV_ODID_TIME_ACC_1_3_SECOND = 13
  5612. 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.""")
  5613. MAV_ODID_TIME_ACC_1_4_SECOND = 14
  5614. 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.""")
  5615. MAV_ODID_TIME_ACC_1_5_SECOND = 15
  5616. 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.""")
  5617. MAV_ODID_TIME_ACC_ENUM_END = 16
  5618. enums["MAV_ODID_TIME_ACC"][16] = EnumEntry("MAV_ODID_TIME_ACC_ENUM_END", """""")
  5619. # MAV_ODID_AUTH_TYPE
  5620. enums["MAV_ODID_AUTH_TYPE"] = Enum()
  5621. enums["MAV_ODID_AUTH_TYPE"].bitmask = False
  5622. MAV_ODID_AUTH_TYPE_NONE = 0
  5623. enums["MAV_ODID_AUTH_TYPE"][0] = EnumEntry("MAV_ODID_AUTH_TYPE_NONE", """No authentication type is specified.""")
  5624. MAV_ODID_AUTH_TYPE_UAS_ID_SIGNATURE = 1
  5625. enums["MAV_ODID_AUTH_TYPE"][1] = EnumEntry("MAV_ODID_AUTH_TYPE_UAS_ID_SIGNATURE", """Signature for the UAS (Unmanned Aircraft System) ID.""")
  5626. MAV_ODID_AUTH_TYPE_OPERATOR_ID_SIGNATURE = 2
  5627. enums["MAV_ODID_AUTH_TYPE"][2] = EnumEntry("MAV_ODID_AUTH_TYPE_OPERATOR_ID_SIGNATURE", """Signature for the Operator ID.""")
  5628. MAV_ODID_AUTH_TYPE_MESSAGE_SET_SIGNATURE = 3
  5629. enums["MAV_ODID_AUTH_TYPE"][3] = EnumEntry("MAV_ODID_AUTH_TYPE_MESSAGE_SET_SIGNATURE", """Signature for the entire message set.""")
  5630. MAV_ODID_AUTH_TYPE_NETWORK_REMOTE_ID = 4
  5631. enums["MAV_ODID_AUTH_TYPE"][4] = EnumEntry("MAV_ODID_AUTH_TYPE_NETWORK_REMOTE_ID", """Authentication is provided by Network Remote ID.""")
  5632. MAV_ODID_AUTH_TYPE_SPECIFIC_AUTHENTICATION = 5
  5633. 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.""")
  5634. MAV_ODID_AUTH_TYPE_ENUM_END = 6
  5635. enums["MAV_ODID_AUTH_TYPE"][6] = EnumEntry("MAV_ODID_AUTH_TYPE_ENUM_END", """""")
  5636. # MAV_ODID_DESC_TYPE
  5637. enums["MAV_ODID_DESC_TYPE"] = Enum()
  5638. enums["MAV_ODID_DESC_TYPE"].bitmask = False
  5639. MAV_ODID_DESC_TYPE_TEXT = 0
  5640. enums["MAV_ODID_DESC_TYPE"][0] = EnumEntry("MAV_ODID_DESC_TYPE_TEXT", """Optional free-form text description of the purpose of the flight.""")
  5641. MAV_ODID_DESC_TYPE_EMERGENCY = 1
  5642. enums["MAV_ODID_DESC_TYPE"][1] = EnumEntry("MAV_ODID_DESC_TYPE_EMERGENCY", """Optional additional clarification when status == MAV_ODID_STATUS_EMERGENCY.""")
  5643. MAV_ODID_DESC_TYPE_EXTENDED_STATUS = 2
  5644. enums["MAV_ODID_DESC_TYPE"][2] = EnumEntry("MAV_ODID_DESC_TYPE_EXTENDED_STATUS", """Optional additional clarification when status != MAV_ODID_STATUS_EMERGENCY.""")
  5645. MAV_ODID_DESC_TYPE_ENUM_END = 3
  5646. enums["MAV_ODID_DESC_TYPE"][3] = EnumEntry("MAV_ODID_DESC_TYPE_ENUM_END", """""")
  5647. # MAV_ODID_OPERATOR_LOCATION_TYPE
  5648. enums["MAV_ODID_OPERATOR_LOCATION_TYPE"] = Enum()
  5649. enums["MAV_ODID_OPERATOR_LOCATION_TYPE"].bitmask = False
  5650. MAV_ODID_OPERATOR_LOCATION_TYPE_TAKEOFF = 0
  5651. 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.""")
  5652. MAV_ODID_OPERATOR_LOCATION_TYPE_LIVE_GNSS = 1
  5653. 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.""")
  5654. MAV_ODID_OPERATOR_LOCATION_TYPE_FIXED = 2
  5655. enums["MAV_ODID_OPERATOR_LOCATION_TYPE"][2] = EnumEntry("MAV_ODID_OPERATOR_LOCATION_TYPE_FIXED", """The location/altitude of the operator are fixed values.""")
  5656. MAV_ODID_OPERATOR_LOCATION_TYPE_ENUM_END = 3
  5657. enums["MAV_ODID_OPERATOR_LOCATION_TYPE"][3] = EnumEntry("MAV_ODID_OPERATOR_LOCATION_TYPE_ENUM_END", """""")
  5658. # MAV_ODID_CLASSIFICATION_TYPE
  5659. enums["MAV_ODID_CLASSIFICATION_TYPE"] = Enum()
  5660. enums["MAV_ODID_CLASSIFICATION_TYPE"].bitmask = False
  5661. MAV_ODID_CLASSIFICATION_TYPE_UNDECLARED = 0
  5662. enums["MAV_ODID_CLASSIFICATION_TYPE"][0] = EnumEntry("MAV_ODID_CLASSIFICATION_TYPE_UNDECLARED", """The classification type for the UA is undeclared.""")
  5663. MAV_ODID_CLASSIFICATION_TYPE_EU = 1
  5664. enums["MAV_ODID_CLASSIFICATION_TYPE"][1] = EnumEntry("MAV_ODID_CLASSIFICATION_TYPE_EU", """The classification type for the UA follows EU (European Union) specifications.""")
  5665. MAV_ODID_CLASSIFICATION_TYPE_ENUM_END = 2
  5666. enums["MAV_ODID_CLASSIFICATION_TYPE"][2] = EnumEntry("MAV_ODID_CLASSIFICATION_TYPE_ENUM_END", """""")
  5667. # MAV_ODID_CATEGORY_EU
  5668. enums["MAV_ODID_CATEGORY_EU"] = Enum()
  5669. enums["MAV_ODID_CATEGORY_EU"].bitmask = False
  5670. MAV_ODID_CATEGORY_EU_UNDECLARED = 0
  5671. enums["MAV_ODID_CATEGORY_EU"][0] = EnumEntry("MAV_ODID_CATEGORY_EU_UNDECLARED", """The category for the UA, according to the EU specification, is undeclared.""")
  5672. MAV_ODID_CATEGORY_EU_OPEN = 1
  5673. 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.""")
  5674. MAV_ODID_CATEGORY_EU_SPECIFIC = 2
  5675. 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.""")
  5676. MAV_ODID_CATEGORY_EU_CERTIFIED = 3
  5677. 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.""")
  5678. MAV_ODID_CATEGORY_EU_ENUM_END = 4
  5679. enums["MAV_ODID_CATEGORY_EU"][4] = EnumEntry("MAV_ODID_CATEGORY_EU_ENUM_END", """""")
  5680. # MAV_ODID_CLASS_EU
  5681. enums["MAV_ODID_CLASS_EU"] = Enum()
  5682. enums["MAV_ODID_CLASS_EU"].bitmask = False
  5683. MAV_ODID_CLASS_EU_UNDECLARED = 0
  5684. enums["MAV_ODID_CLASS_EU"][0] = EnumEntry("MAV_ODID_CLASS_EU_UNDECLARED", """The class for the UA, according to the EU specification, is undeclared.""")
  5685. MAV_ODID_CLASS_EU_CLASS_0 = 1
  5686. 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.""")
  5687. MAV_ODID_CLASS_EU_CLASS_1 = 2
  5688. 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.""")
  5689. MAV_ODID_CLASS_EU_CLASS_2 = 3
  5690. 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.""")
  5691. MAV_ODID_CLASS_EU_CLASS_3 = 4
  5692. 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.""")
  5693. MAV_ODID_CLASS_EU_CLASS_4 = 5
  5694. 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.""")
  5695. MAV_ODID_CLASS_EU_CLASS_5 = 6
  5696. 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.""")
  5697. MAV_ODID_CLASS_EU_CLASS_6 = 7
  5698. 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.""")
  5699. MAV_ODID_CLASS_EU_ENUM_END = 8
  5700. enums["MAV_ODID_CLASS_EU"][8] = EnumEntry("MAV_ODID_CLASS_EU_ENUM_END", """""")
  5701. # MAV_ODID_OPERATOR_ID_TYPE
  5702. enums["MAV_ODID_OPERATOR_ID_TYPE"] = Enum()
  5703. enums["MAV_ODID_OPERATOR_ID_TYPE"].bitmask = False
  5704. MAV_ODID_OPERATOR_ID_TYPE_CAA = 0
  5705. enums["MAV_ODID_OPERATOR_ID_TYPE"][0] = EnumEntry("MAV_ODID_OPERATOR_ID_TYPE_CAA", """CAA (Civil Aviation Authority) registered operator ID.""")
  5706. MAV_ODID_OPERATOR_ID_TYPE_ENUM_END = 1
  5707. enums["MAV_ODID_OPERATOR_ID_TYPE"][1] = EnumEntry("MAV_ODID_OPERATOR_ID_TYPE_ENUM_END", """""")
  5708. # MAV_ODID_ARM_STATUS
  5709. enums["MAV_ODID_ARM_STATUS"] = Enum()
  5710. enums["MAV_ODID_ARM_STATUS"].bitmask = False
  5711. MAV_ODID_ARM_STATUS_GOOD_TO_ARM = 0
  5712. enums["MAV_ODID_ARM_STATUS"][0] = EnumEntry("MAV_ODID_ARM_STATUS_GOOD_TO_ARM", """Passing arming checks.""")
  5713. MAV_ODID_ARM_STATUS_PRE_ARM_FAIL_GENERIC = 1
  5714. enums["MAV_ODID_ARM_STATUS"][1] = EnumEntry("MAV_ODID_ARM_STATUS_PRE_ARM_FAIL_GENERIC", """Generic arming failure, see error string for details.""")
  5715. MAV_ODID_ARM_STATUS_ENUM_END = 2
  5716. enums["MAV_ODID_ARM_STATUS"][2] = EnumEntry("MAV_ODID_ARM_STATUS_ENUM_END", """""")
  5717. # TUNE_FORMAT
  5718. enums["TUNE_FORMAT"] = Enum()
  5719. enums["TUNE_FORMAT"].bitmask = False
  5720. TUNE_FORMAT_QBASIC1_1 = 1
  5721. 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.""")
  5722. TUNE_FORMAT_MML_MODERN = 2
  5723. 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.""")
  5724. TUNE_FORMAT_ENUM_END = 3
  5725. enums["TUNE_FORMAT"][3] = EnumEntry("TUNE_FORMAT_ENUM_END", """""")
  5726. # AIS_TYPE
  5727. enums["AIS_TYPE"] = Enum()
  5728. enums["AIS_TYPE"].bitmask = False
  5729. AIS_TYPE_UNKNOWN = 0
  5730. enums["AIS_TYPE"][0] = EnumEntry("AIS_TYPE_UNKNOWN", """Not available (default).""")
  5731. AIS_TYPE_RESERVED_1 = 1
  5732. enums["AIS_TYPE"][1] = EnumEntry("AIS_TYPE_RESERVED_1", """""")
  5733. AIS_TYPE_RESERVED_2 = 2
  5734. enums["AIS_TYPE"][2] = EnumEntry("AIS_TYPE_RESERVED_2", """""")
  5735. AIS_TYPE_RESERVED_3 = 3
  5736. enums["AIS_TYPE"][3] = EnumEntry("AIS_TYPE_RESERVED_3", """""")
  5737. AIS_TYPE_RESERVED_4 = 4
  5738. enums["AIS_TYPE"][4] = EnumEntry("AIS_TYPE_RESERVED_4", """""")
  5739. AIS_TYPE_RESERVED_5 = 5
  5740. enums["AIS_TYPE"][5] = EnumEntry("AIS_TYPE_RESERVED_5", """""")
  5741. AIS_TYPE_RESERVED_6 = 6
  5742. enums["AIS_TYPE"][6] = EnumEntry("AIS_TYPE_RESERVED_6", """""")
  5743. AIS_TYPE_RESERVED_7 = 7
  5744. enums["AIS_TYPE"][7] = EnumEntry("AIS_TYPE_RESERVED_7", """""")
  5745. AIS_TYPE_RESERVED_8 = 8
  5746. enums["AIS_TYPE"][8] = EnumEntry("AIS_TYPE_RESERVED_8", """""")
  5747. AIS_TYPE_RESERVED_9 = 9
  5748. enums["AIS_TYPE"][9] = EnumEntry("AIS_TYPE_RESERVED_9", """""")
  5749. AIS_TYPE_RESERVED_10 = 10
  5750. enums["AIS_TYPE"][10] = EnumEntry("AIS_TYPE_RESERVED_10", """""")
  5751. AIS_TYPE_RESERVED_11 = 11
  5752. enums["AIS_TYPE"][11] = EnumEntry("AIS_TYPE_RESERVED_11", """""")
  5753. AIS_TYPE_RESERVED_12 = 12
  5754. enums["AIS_TYPE"][12] = EnumEntry("AIS_TYPE_RESERVED_12", """""")
  5755. AIS_TYPE_RESERVED_13 = 13
  5756. enums["AIS_TYPE"][13] = EnumEntry("AIS_TYPE_RESERVED_13", """""")
  5757. AIS_TYPE_RESERVED_14 = 14
  5758. enums["AIS_TYPE"][14] = EnumEntry("AIS_TYPE_RESERVED_14", """""")
  5759. AIS_TYPE_RESERVED_15 = 15
  5760. enums["AIS_TYPE"][15] = EnumEntry("AIS_TYPE_RESERVED_15", """""")
  5761. AIS_TYPE_RESERVED_16 = 16
  5762. enums["AIS_TYPE"][16] = EnumEntry("AIS_TYPE_RESERVED_16", """""")
  5763. AIS_TYPE_RESERVED_17 = 17
  5764. enums["AIS_TYPE"][17] = EnumEntry("AIS_TYPE_RESERVED_17", """""")
  5765. AIS_TYPE_RESERVED_18 = 18
  5766. enums["AIS_TYPE"][18] = EnumEntry("AIS_TYPE_RESERVED_18", """""")
  5767. AIS_TYPE_RESERVED_19 = 19
  5768. enums["AIS_TYPE"][19] = EnumEntry("AIS_TYPE_RESERVED_19", """""")
  5769. AIS_TYPE_WIG = 20
  5770. enums["AIS_TYPE"][20] = EnumEntry("AIS_TYPE_WIG", """Wing In Ground effect.""")
  5771. AIS_TYPE_WIG_HAZARDOUS_A = 21
  5772. enums["AIS_TYPE"][21] = EnumEntry("AIS_TYPE_WIG_HAZARDOUS_A", """""")
  5773. AIS_TYPE_WIG_HAZARDOUS_B = 22
  5774. enums["AIS_TYPE"][22] = EnumEntry("AIS_TYPE_WIG_HAZARDOUS_B", """""")
  5775. AIS_TYPE_WIG_HAZARDOUS_C = 23
  5776. enums["AIS_TYPE"][23] = EnumEntry("AIS_TYPE_WIG_HAZARDOUS_C", """""")
  5777. AIS_TYPE_WIG_HAZARDOUS_D = 24
  5778. enums["AIS_TYPE"][24] = EnumEntry("AIS_TYPE_WIG_HAZARDOUS_D", """""")
  5779. AIS_TYPE_WIG_RESERVED_1 = 25
  5780. enums["AIS_TYPE"][25] = EnumEntry("AIS_TYPE_WIG_RESERVED_1", """""")
  5781. AIS_TYPE_WIG_RESERVED_2 = 26
  5782. enums["AIS_TYPE"][26] = EnumEntry("AIS_TYPE_WIG_RESERVED_2", """""")
  5783. AIS_TYPE_WIG_RESERVED_3 = 27
  5784. enums["AIS_TYPE"][27] = EnumEntry("AIS_TYPE_WIG_RESERVED_3", """""")
  5785. AIS_TYPE_WIG_RESERVED_4 = 28
  5786. enums["AIS_TYPE"][28] = EnumEntry("AIS_TYPE_WIG_RESERVED_4", """""")
  5787. AIS_TYPE_WIG_RESERVED_5 = 29
  5788. enums["AIS_TYPE"][29] = EnumEntry("AIS_TYPE_WIG_RESERVED_5", """""")
  5789. AIS_TYPE_FISHING = 30
  5790. enums["AIS_TYPE"][30] = EnumEntry("AIS_TYPE_FISHING", """""")
  5791. AIS_TYPE_TOWING = 31
  5792. enums["AIS_TYPE"][31] = EnumEntry("AIS_TYPE_TOWING", """""")
  5793. AIS_TYPE_TOWING_LARGE = 32
  5794. enums["AIS_TYPE"][32] = EnumEntry("AIS_TYPE_TOWING_LARGE", """Towing: length exceeds 200m or breadth exceeds 25m.""")
  5795. AIS_TYPE_DREDGING = 33
  5796. enums["AIS_TYPE"][33] = EnumEntry("AIS_TYPE_DREDGING", """Dredging or other underwater ops.""")
  5797. AIS_TYPE_DIVING = 34
  5798. enums["AIS_TYPE"][34] = EnumEntry("AIS_TYPE_DIVING", """""")
  5799. AIS_TYPE_MILITARY = 35
  5800. enums["AIS_TYPE"][35] = EnumEntry("AIS_TYPE_MILITARY", """""")
  5801. AIS_TYPE_SAILING = 36
  5802. enums["AIS_TYPE"][36] = EnumEntry("AIS_TYPE_SAILING", """""")
  5803. AIS_TYPE_PLEASURE = 37
  5804. enums["AIS_TYPE"][37] = EnumEntry("AIS_TYPE_PLEASURE", """""")
  5805. AIS_TYPE_RESERVED_20 = 38
  5806. enums["AIS_TYPE"][38] = EnumEntry("AIS_TYPE_RESERVED_20", """""")
  5807. AIS_TYPE_RESERVED_21 = 39
  5808. enums["AIS_TYPE"][39] = EnumEntry("AIS_TYPE_RESERVED_21", """""")
  5809. AIS_TYPE_HSC = 40
  5810. enums["AIS_TYPE"][40] = EnumEntry("AIS_TYPE_HSC", """High Speed Craft.""")
  5811. AIS_TYPE_HSC_HAZARDOUS_A = 41
  5812. enums["AIS_TYPE"][41] = EnumEntry("AIS_TYPE_HSC_HAZARDOUS_A", """""")
  5813. AIS_TYPE_HSC_HAZARDOUS_B = 42
  5814. enums["AIS_TYPE"][42] = EnumEntry("AIS_TYPE_HSC_HAZARDOUS_B", """""")
  5815. AIS_TYPE_HSC_HAZARDOUS_C = 43
  5816. enums["AIS_TYPE"][43] = EnumEntry("AIS_TYPE_HSC_HAZARDOUS_C", """""")
  5817. AIS_TYPE_HSC_HAZARDOUS_D = 44
  5818. enums["AIS_TYPE"][44] = EnumEntry("AIS_TYPE_HSC_HAZARDOUS_D", """""")
  5819. AIS_TYPE_HSC_RESERVED_1 = 45
  5820. enums["AIS_TYPE"][45] = EnumEntry("AIS_TYPE_HSC_RESERVED_1", """""")
  5821. AIS_TYPE_HSC_RESERVED_2 = 46
  5822. enums["AIS_TYPE"][46] = EnumEntry("AIS_TYPE_HSC_RESERVED_2", """""")
  5823. AIS_TYPE_HSC_RESERVED_3 = 47
  5824. enums["AIS_TYPE"][47] = EnumEntry("AIS_TYPE_HSC_RESERVED_3", """""")
  5825. AIS_TYPE_HSC_RESERVED_4 = 48
  5826. enums["AIS_TYPE"][48] = EnumEntry("AIS_TYPE_HSC_RESERVED_4", """""")
  5827. AIS_TYPE_HSC_UNKNOWN = 49
  5828. enums["AIS_TYPE"][49] = EnumEntry("AIS_TYPE_HSC_UNKNOWN", """""")
  5829. AIS_TYPE_PILOT = 50
  5830. enums["AIS_TYPE"][50] = EnumEntry("AIS_TYPE_PILOT", """""")
  5831. AIS_TYPE_SAR = 51
  5832. enums["AIS_TYPE"][51] = EnumEntry("AIS_TYPE_SAR", """Search And Rescue vessel.""")
  5833. AIS_TYPE_TUG = 52
  5834. enums["AIS_TYPE"][52] = EnumEntry("AIS_TYPE_TUG", """""")
  5835. AIS_TYPE_PORT_TENDER = 53
  5836. enums["AIS_TYPE"][53] = EnumEntry("AIS_TYPE_PORT_TENDER", """""")
  5837. AIS_TYPE_ANTI_POLLUTION = 54
  5838. enums["AIS_TYPE"][54] = EnumEntry("AIS_TYPE_ANTI_POLLUTION", """Anti-pollution equipment.""")
  5839. AIS_TYPE_LAW_ENFORCEMENT = 55
  5840. enums["AIS_TYPE"][55] = EnumEntry("AIS_TYPE_LAW_ENFORCEMENT", """""")
  5841. AIS_TYPE_SPARE_LOCAL_1 = 56
  5842. enums["AIS_TYPE"][56] = EnumEntry("AIS_TYPE_SPARE_LOCAL_1", """""")
  5843. AIS_TYPE_SPARE_LOCAL_2 = 57
  5844. enums["AIS_TYPE"][57] = EnumEntry("AIS_TYPE_SPARE_LOCAL_2", """""")
  5845. AIS_TYPE_MEDICAL_TRANSPORT = 58
  5846. enums["AIS_TYPE"][58] = EnumEntry("AIS_TYPE_MEDICAL_TRANSPORT", """""")
  5847. AIS_TYPE_NONECOMBATANT = 59
  5848. enums["AIS_TYPE"][59] = EnumEntry("AIS_TYPE_NONECOMBATANT", """Noncombatant ship according to RR Resolution No. 18.""")
  5849. AIS_TYPE_PASSENGER = 60
  5850. enums["AIS_TYPE"][60] = EnumEntry("AIS_TYPE_PASSENGER", """""")
  5851. AIS_TYPE_PASSENGER_HAZARDOUS_A = 61
  5852. enums["AIS_TYPE"][61] = EnumEntry("AIS_TYPE_PASSENGER_HAZARDOUS_A", """""")
  5853. AIS_TYPE_PASSENGER_HAZARDOUS_B = 62
  5854. enums["AIS_TYPE"][62] = EnumEntry("AIS_TYPE_PASSENGER_HAZARDOUS_B", """""")
  5855. AIS_TYPE_PASSENGER_HAZARDOUS_C = 63
  5856. enums["AIS_TYPE"][63] = EnumEntry("AIS_TYPE_PASSENGER_HAZARDOUS_C", """""")
  5857. AIS_TYPE_PASSENGER_HAZARDOUS_D = 64
  5858. enums["AIS_TYPE"][64] = EnumEntry("AIS_TYPE_PASSENGER_HAZARDOUS_D", """""")
  5859. AIS_TYPE_PASSENGER_RESERVED_1 = 65
  5860. enums["AIS_TYPE"][65] = EnumEntry("AIS_TYPE_PASSENGER_RESERVED_1", """""")
  5861. AIS_TYPE_PASSENGER_RESERVED_2 = 66
  5862. enums["AIS_TYPE"][66] = EnumEntry("AIS_TYPE_PASSENGER_RESERVED_2", """""")
  5863. AIS_TYPE_PASSENGER_RESERVED_3 = 67
  5864. enums["AIS_TYPE"][67] = EnumEntry("AIS_TYPE_PASSENGER_RESERVED_3", """""")
  5865. AIS_TYPE_PASSENGER_RESERVED_4 = 68
  5866. enums["AIS_TYPE"][68] = EnumEntry("AIS_TYPE_PASSENGER_RESERVED_4", """""")
  5867. AIS_TYPE_PASSENGER_UNKNOWN = 69
  5868. enums["AIS_TYPE"][69] = EnumEntry("AIS_TYPE_PASSENGER_UNKNOWN", """""")
  5869. AIS_TYPE_CARGO = 70
  5870. enums["AIS_TYPE"][70] = EnumEntry("AIS_TYPE_CARGO", """""")
  5871. AIS_TYPE_CARGO_HAZARDOUS_A = 71
  5872. enums["AIS_TYPE"][71] = EnumEntry("AIS_TYPE_CARGO_HAZARDOUS_A", """""")
  5873. AIS_TYPE_CARGO_HAZARDOUS_B = 72
  5874. enums["AIS_TYPE"][72] = EnumEntry("AIS_TYPE_CARGO_HAZARDOUS_B", """""")
  5875. AIS_TYPE_CARGO_HAZARDOUS_C = 73
  5876. enums["AIS_TYPE"][73] = EnumEntry("AIS_TYPE_CARGO_HAZARDOUS_C", """""")
  5877. AIS_TYPE_CARGO_HAZARDOUS_D = 74
  5878. enums["AIS_TYPE"][74] = EnumEntry("AIS_TYPE_CARGO_HAZARDOUS_D", """""")
  5879. AIS_TYPE_CARGO_RESERVED_1 = 75
  5880. enums["AIS_TYPE"][75] = EnumEntry("AIS_TYPE_CARGO_RESERVED_1", """""")
  5881. AIS_TYPE_CARGO_RESERVED_2 = 76
  5882. enums["AIS_TYPE"][76] = EnumEntry("AIS_TYPE_CARGO_RESERVED_2", """""")
  5883. AIS_TYPE_CARGO_RESERVED_3 = 77
  5884. enums["AIS_TYPE"][77] = EnumEntry("AIS_TYPE_CARGO_RESERVED_3", """""")
  5885. AIS_TYPE_CARGO_RESERVED_4 = 78
  5886. enums["AIS_TYPE"][78] = EnumEntry("AIS_TYPE_CARGO_RESERVED_4", """""")
  5887. AIS_TYPE_CARGO_UNKNOWN = 79
  5888. enums["AIS_TYPE"][79] = EnumEntry("AIS_TYPE_CARGO_UNKNOWN", """""")
  5889. AIS_TYPE_TANKER = 80
  5890. enums["AIS_TYPE"][80] = EnumEntry("AIS_TYPE_TANKER", """""")
  5891. AIS_TYPE_TANKER_HAZARDOUS_A = 81
  5892. enums["AIS_TYPE"][81] = EnumEntry("AIS_TYPE_TANKER_HAZARDOUS_A", """""")
  5893. AIS_TYPE_TANKER_HAZARDOUS_B = 82
  5894. enums["AIS_TYPE"][82] = EnumEntry("AIS_TYPE_TANKER_HAZARDOUS_B", """""")
  5895. AIS_TYPE_TANKER_HAZARDOUS_C = 83
  5896. enums["AIS_TYPE"][83] = EnumEntry("AIS_TYPE_TANKER_HAZARDOUS_C", """""")
  5897. AIS_TYPE_TANKER_HAZARDOUS_D = 84
  5898. enums["AIS_TYPE"][84] = EnumEntry("AIS_TYPE_TANKER_HAZARDOUS_D", """""")
  5899. AIS_TYPE_TANKER_RESERVED_1 = 85
  5900. enums["AIS_TYPE"][85] = EnumEntry("AIS_TYPE_TANKER_RESERVED_1", """""")
  5901. AIS_TYPE_TANKER_RESERVED_2 = 86
  5902. enums["AIS_TYPE"][86] = EnumEntry("AIS_TYPE_TANKER_RESERVED_2", """""")
  5903. AIS_TYPE_TANKER_RESERVED_3 = 87
  5904. enums["AIS_TYPE"][87] = EnumEntry("AIS_TYPE_TANKER_RESERVED_3", """""")
  5905. AIS_TYPE_TANKER_RESERVED_4 = 88
  5906. enums["AIS_TYPE"][88] = EnumEntry("AIS_TYPE_TANKER_RESERVED_4", """""")
  5907. AIS_TYPE_TANKER_UNKNOWN = 89
  5908. enums["AIS_TYPE"][89] = EnumEntry("AIS_TYPE_TANKER_UNKNOWN", """""")
  5909. AIS_TYPE_OTHER = 90
  5910. enums["AIS_TYPE"][90] = EnumEntry("AIS_TYPE_OTHER", """""")
  5911. AIS_TYPE_OTHER_HAZARDOUS_A = 91
  5912. enums["AIS_TYPE"][91] = EnumEntry("AIS_TYPE_OTHER_HAZARDOUS_A", """""")
  5913. AIS_TYPE_OTHER_HAZARDOUS_B = 92
  5914. enums["AIS_TYPE"][92] = EnumEntry("AIS_TYPE_OTHER_HAZARDOUS_B", """""")
  5915. AIS_TYPE_OTHER_HAZARDOUS_C = 93
  5916. enums["AIS_TYPE"][93] = EnumEntry("AIS_TYPE_OTHER_HAZARDOUS_C", """""")
  5917. AIS_TYPE_OTHER_HAZARDOUS_D = 94
  5918. enums["AIS_TYPE"][94] = EnumEntry("AIS_TYPE_OTHER_HAZARDOUS_D", """""")
  5919. AIS_TYPE_OTHER_RESERVED_1 = 95
  5920. enums["AIS_TYPE"][95] = EnumEntry("AIS_TYPE_OTHER_RESERVED_1", """""")
  5921. AIS_TYPE_OTHER_RESERVED_2 = 96
  5922. enums["AIS_TYPE"][96] = EnumEntry("AIS_TYPE_OTHER_RESERVED_2", """""")
  5923. AIS_TYPE_OTHER_RESERVED_3 = 97
  5924. enums["AIS_TYPE"][97] = EnumEntry("AIS_TYPE_OTHER_RESERVED_3", """""")
  5925. AIS_TYPE_OTHER_RESERVED_4 = 98
  5926. enums["AIS_TYPE"][98] = EnumEntry("AIS_TYPE_OTHER_RESERVED_4", """""")
  5927. AIS_TYPE_OTHER_UNKNOWN = 99
  5928. enums["AIS_TYPE"][99] = EnumEntry("AIS_TYPE_OTHER_UNKNOWN", """""")
  5929. AIS_TYPE_ENUM_END = 100
  5930. enums["AIS_TYPE"][100] = EnumEntry("AIS_TYPE_ENUM_END", """""")
  5931. # AIS_NAV_STATUS
  5932. enums["AIS_NAV_STATUS"] = Enum()
  5933. enums["AIS_NAV_STATUS"].bitmask = False
  5934. UNDER_WAY = 0
  5935. enums["AIS_NAV_STATUS"][0] = EnumEntry("UNDER_WAY", """Under way using engine.""")
  5936. AIS_NAV_ANCHORED = 1
  5937. enums["AIS_NAV_STATUS"][1] = EnumEntry("AIS_NAV_ANCHORED", """""")
  5938. AIS_NAV_UN_COMMANDED = 2
  5939. enums["AIS_NAV_STATUS"][2] = EnumEntry("AIS_NAV_UN_COMMANDED", """""")
  5940. AIS_NAV_RESTRICTED_MANOEUVERABILITY = 3
  5941. enums["AIS_NAV_STATUS"][3] = EnumEntry("AIS_NAV_RESTRICTED_MANOEUVERABILITY", """""")
  5942. AIS_NAV_DRAUGHT_CONSTRAINED = 4
  5943. enums["AIS_NAV_STATUS"][4] = EnumEntry("AIS_NAV_DRAUGHT_CONSTRAINED", """""")
  5944. AIS_NAV_MOORED = 5
  5945. enums["AIS_NAV_STATUS"][5] = EnumEntry("AIS_NAV_MOORED", """""")
  5946. AIS_NAV_AGROUND = 6
  5947. enums["AIS_NAV_STATUS"][6] = EnumEntry("AIS_NAV_AGROUND", """""")
  5948. AIS_NAV_FISHING = 7
  5949. enums["AIS_NAV_STATUS"][7] = EnumEntry("AIS_NAV_FISHING", """""")
  5950. AIS_NAV_SAILING = 8
  5951. enums["AIS_NAV_STATUS"][8] = EnumEntry("AIS_NAV_SAILING", """""")
  5952. AIS_NAV_RESERVED_HSC = 9
  5953. enums["AIS_NAV_STATUS"][9] = EnumEntry("AIS_NAV_RESERVED_HSC", """""")
  5954. AIS_NAV_RESERVED_WIG = 10
  5955. enums["AIS_NAV_STATUS"][10] = EnumEntry("AIS_NAV_RESERVED_WIG", """""")
  5956. AIS_NAV_RESERVED_1 = 11
  5957. enums["AIS_NAV_STATUS"][11] = EnumEntry("AIS_NAV_RESERVED_1", """""")
  5958. AIS_NAV_RESERVED_2 = 12
  5959. enums["AIS_NAV_STATUS"][12] = EnumEntry("AIS_NAV_RESERVED_2", """""")
  5960. AIS_NAV_RESERVED_3 = 13
  5961. enums["AIS_NAV_STATUS"][13] = EnumEntry("AIS_NAV_RESERVED_3", """""")
  5962. AIS_NAV_AIS_SART = 14
  5963. enums["AIS_NAV_STATUS"][14] = EnumEntry("AIS_NAV_AIS_SART", """Search And Rescue Transponder.""")
  5964. AIS_NAV_UNKNOWN = 15
  5965. enums["AIS_NAV_STATUS"][15] = EnumEntry("AIS_NAV_UNKNOWN", """Not available (default).""")
  5966. AIS_NAV_STATUS_ENUM_END = 16
  5967. enums["AIS_NAV_STATUS"][16] = EnumEntry("AIS_NAV_STATUS_ENUM_END", """""")
  5968. # AIS_FLAGS
  5969. enums["AIS_FLAGS"] = Enum()
  5970. enums["AIS_FLAGS"].bitmask = True
  5971. AIS_FLAGS_POSITION_ACCURACY = 1
  5972. enums["AIS_FLAGS"][1] = EnumEntry("AIS_FLAGS_POSITION_ACCURACY", """1 = Position accuracy less than 10m, 0 = position accuracy greater than 10m.""")
  5973. AIS_FLAGS_VALID_COG = 2
  5974. enums["AIS_FLAGS"][2] = EnumEntry("AIS_FLAGS_VALID_COG", """""")
  5975. AIS_FLAGS_VALID_VELOCITY = 4
  5976. enums["AIS_FLAGS"][4] = EnumEntry("AIS_FLAGS_VALID_VELOCITY", """""")
  5977. AIS_FLAGS_HIGH_VELOCITY = 8
  5978. enums["AIS_FLAGS"][8] = EnumEntry("AIS_FLAGS_HIGH_VELOCITY", """1 = Velocity over 52.5765m/s (102.2 knots)""")
  5979. AIS_FLAGS_VALID_TURN_RATE = 16
  5980. enums["AIS_FLAGS"][16] = EnumEntry("AIS_FLAGS_VALID_TURN_RATE", """""")
  5981. AIS_FLAGS_TURN_RATE_SIGN_ONLY = 32
  5982. 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""")
  5983. AIS_FLAGS_VALID_DIMENSIONS = 64
  5984. enums["AIS_FLAGS"][64] = EnumEntry("AIS_FLAGS_VALID_DIMENSIONS", """""")
  5985. AIS_FLAGS_LARGE_BOW_DIMENSION = 128
  5986. enums["AIS_FLAGS"][128] = EnumEntry("AIS_FLAGS_LARGE_BOW_DIMENSION", """Distance to bow is larger than 511m""")
  5987. AIS_FLAGS_LARGE_STERN_DIMENSION = 256
  5988. enums["AIS_FLAGS"][256] = EnumEntry("AIS_FLAGS_LARGE_STERN_DIMENSION", """Distance to stern is larger than 511m""")
  5989. AIS_FLAGS_LARGE_PORT_DIMENSION = 512
  5990. enums["AIS_FLAGS"][512] = EnumEntry("AIS_FLAGS_LARGE_PORT_DIMENSION", """Distance to port side is larger than 63m""")
  5991. AIS_FLAGS_LARGE_STARBOARD_DIMENSION = 1024
  5992. enums["AIS_FLAGS"][1024] = EnumEntry("AIS_FLAGS_LARGE_STARBOARD_DIMENSION", """Distance to starboard side is larger than 63m""")
  5993. AIS_FLAGS_VALID_CALLSIGN = 2048
  5994. enums["AIS_FLAGS"][2048] = EnumEntry("AIS_FLAGS_VALID_CALLSIGN", """""")
  5995. AIS_FLAGS_VALID_NAME = 4096
  5996. enums["AIS_FLAGS"][4096] = EnumEntry("AIS_FLAGS_VALID_NAME", """""")
  5997. AIS_FLAGS_ENUM_END = 4097
  5998. enums["AIS_FLAGS"][4097] = EnumEntry("AIS_FLAGS_ENUM_END", """""")
  5999. # FAILURE_UNIT
  6000. enums["FAILURE_UNIT"] = Enum()
  6001. enums["FAILURE_UNIT"].bitmask = False
  6002. FAILURE_UNIT_SENSOR_GYRO = 0
  6003. enums["FAILURE_UNIT"][0] = EnumEntry("FAILURE_UNIT_SENSOR_GYRO", """""")
  6004. FAILURE_UNIT_SENSOR_ACCEL = 1
  6005. enums["FAILURE_UNIT"][1] = EnumEntry("FAILURE_UNIT_SENSOR_ACCEL", """""")
  6006. FAILURE_UNIT_SENSOR_MAG = 2
  6007. enums["FAILURE_UNIT"][2] = EnumEntry("FAILURE_UNIT_SENSOR_MAG", """""")
  6008. FAILURE_UNIT_SENSOR_BARO = 3
  6009. enums["FAILURE_UNIT"][3] = EnumEntry("FAILURE_UNIT_SENSOR_BARO", """""")
  6010. FAILURE_UNIT_SENSOR_GPS = 4
  6011. enums["FAILURE_UNIT"][4] = EnumEntry("FAILURE_UNIT_SENSOR_GPS", """""")
  6012. FAILURE_UNIT_SENSOR_OPTICAL_FLOW = 5
  6013. enums["FAILURE_UNIT"][5] = EnumEntry("FAILURE_UNIT_SENSOR_OPTICAL_FLOW", """""")
  6014. FAILURE_UNIT_SENSOR_VIO = 6
  6015. enums["FAILURE_UNIT"][6] = EnumEntry("FAILURE_UNIT_SENSOR_VIO", """""")
  6016. FAILURE_UNIT_SENSOR_DISTANCE_SENSOR = 7
  6017. enums["FAILURE_UNIT"][7] = EnumEntry("FAILURE_UNIT_SENSOR_DISTANCE_SENSOR", """""")
  6018. FAILURE_UNIT_SENSOR_AIRSPEED = 8
  6019. enums["FAILURE_UNIT"][8] = EnumEntry("FAILURE_UNIT_SENSOR_AIRSPEED", """""")
  6020. FAILURE_UNIT_SYSTEM_BATTERY = 100
  6021. enums["FAILURE_UNIT"][100] = EnumEntry("FAILURE_UNIT_SYSTEM_BATTERY", """""")
  6022. FAILURE_UNIT_SYSTEM_MOTOR = 101
  6023. enums["FAILURE_UNIT"][101] = EnumEntry("FAILURE_UNIT_SYSTEM_MOTOR", """""")
  6024. FAILURE_UNIT_SYSTEM_SERVO = 102
  6025. enums["FAILURE_UNIT"][102] = EnumEntry("FAILURE_UNIT_SYSTEM_SERVO", """""")
  6026. FAILURE_UNIT_SYSTEM_AVOIDANCE = 103
  6027. enums["FAILURE_UNIT"][103] = EnumEntry("FAILURE_UNIT_SYSTEM_AVOIDANCE", """""")
  6028. FAILURE_UNIT_SYSTEM_RC_SIGNAL = 104
  6029. enums["FAILURE_UNIT"][104] = EnumEntry("FAILURE_UNIT_SYSTEM_RC_SIGNAL", """""")
  6030. FAILURE_UNIT_SYSTEM_MAVLINK_SIGNAL = 105
  6031. enums["FAILURE_UNIT"][105] = EnumEntry("FAILURE_UNIT_SYSTEM_MAVLINK_SIGNAL", """""")
  6032. FAILURE_UNIT_ENUM_END = 106
  6033. enums["FAILURE_UNIT"][106] = EnumEntry("FAILURE_UNIT_ENUM_END", """""")
  6034. # FAILURE_TYPE
  6035. enums["FAILURE_TYPE"] = Enum()
  6036. enums["FAILURE_TYPE"].bitmask = False
  6037. FAILURE_TYPE_OK = 0
  6038. enums["FAILURE_TYPE"][0] = EnumEntry("FAILURE_TYPE_OK", """No failure injected, used to reset a previous failure.""")
  6039. FAILURE_TYPE_OFF = 1
  6040. enums["FAILURE_TYPE"][1] = EnumEntry("FAILURE_TYPE_OFF", """Sets unit off, so completely non-responsive.""")
  6041. FAILURE_TYPE_STUCK = 2
  6042. enums["FAILURE_TYPE"][2] = EnumEntry("FAILURE_TYPE_STUCK", """Unit is stuck e.g. keeps reporting the same value.""")
  6043. FAILURE_TYPE_GARBAGE = 3
  6044. enums["FAILURE_TYPE"][3] = EnumEntry("FAILURE_TYPE_GARBAGE", """Unit is reporting complete garbage.""")
  6045. FAILURE_TYPE_WRONG = 4
  6046. enums["FAILURE_TYPE"][4] = EnumEntry("FAILURE_TYPE_WRONG", """Unit is consistently wrong.""")
  6047. FAILURE_TYPE_SLOW = 5
  6048. enums["FAILURE_TYPE"][5] = EnumEntry("FAILURE_TYPE_SLOW", """Unit is slow, so e.g. reporting at slower than expected rate.""")
  6049. FAILURE_TYPE_DELAYED = 6
  6050. enums["FAILURE_TYPE"][6] = EnumEntry("FAILURE_TYPE_DELAYED", """Data of unit is delayed in time.""")
  6051. FAILURE_TYPE_INTERMITTENT = 7
  6052. enums["FAILURE_TYPE"][7] = EnumEntry("FAILURE_TYPE_INTERMITTENT", """Unit is sometimes working, sometimes not.""")
  6053. FAILURE_TYPE_ENUM_END = 8
  6054. enums["FAILURE_TYPE"][8] = EnumEntry("FAILURE_TYPE_ENUM_END", """""")
  6055. # NAV_VTOL_LAND_OPTIONS
  6056. enums["NAV_VTOL_LAND_OPTIONS"] = Enum()
  6057. enums["NAV_VTOL_LAND_OPTIONS"].bitmask = False
  6058. NAV_VTOL_LAND_OPTIONS_DEFAULT = 0
  6059. enums["NAV_VTOL_LAND_OPTIONS"][0] = EnumEntry("NAV_VTOL_LAND_OPTIONS_DEFAULT", """Default autopilot landing behaviour.""")
  6060. NAV_VTOL_LAND_OPTIONS_FW_DESCENT = 1
  6061. enums["NAV_VTOL_LAND_OPTIONS"][1] = EnumEntry(
  6062. "NAV_VTOL_LAND_OPTIONS_FW_DESCENT",
  6063. """Descend in fixed wing mode, transitioning to multicopter mode for vertical landing when close to the ground.
  6064. The fixed wing descent pattern is at the discretion of the vehicle (e.g. transition altitude, loiter direction, radius, and speed, etc.).
  6065. """,
  6066. )
  6067. NAV_VTOL_LAND_OPTIONS_HOVER_DESCENT = 2
  6068. 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").""")
  6069. NAV_VTOL_LAND_OPTIONS_ENUM_END = 3
  6070. enums["NAV_VTOL_LAND_OPTIONS"][3] = EnumEntry("NAV_VTOL_LAND_OPTIONS_ENUM_END", """""")
  6071. # MAV_WINCH_STATUS_FLAG
  6072. enums["MAV_WINCH_STATUS_FLAG"] = Enum()
  6073. enums["MAV_WINCH_STATUS_FLAG"].bitmask = True
  6074. MAV_WINCH_STATUS_HEALTHY = 1
  6075. enums["MAV_WINCH_STATUS_FLAG"][1] = EnumEntry("MAV_WINCH_STATUS_HEALTHY", """Winch is healthy""")
  6076. MAV_WINCH_STATUS_FULLY_RETRACTED = 2
  6077. enums["MAV_WINCH_STATUS_FLAG"][2] = EnumEntry("MAV_WINCH_STATUS_FULLY_RETRACTED", """Winch line is fully retracted""")
  6078. MAV_WINCH_STATUS_MOVING = 4
  6079. enums["MAV_WINCH_STATUS_FLAG"][4] = EnumEntry("MAV_WINCH_STATUS_MOVING", """Winch motor is moving""")
  6080. MAV_WINCH_STATUS_CLUTCH_ENGAGED = 8
  6081. enums["MAV_WINCH_STATUS_FLAG"][8] = EnumEntry("MAV_WINCH_STATUS_CLUTCH_ENGAGED", """Winch clutch is engaged allowing motor to move freely.""")
  6082. MAV_WINCH_STATUS_LOCKED = 16
  6083. enums["MAV_WINCH_STATUS_FLAG"][16] = EnumEntry("MAV_WINCH_STATUS_LOCKED", """Winch is locked by locking mechanism.""")
  6084. MAV_WINCH_STATUS_DROPPING = 32
  6085. enums["MAV_WINCH_STATUS_FLAG"][32] = EnumEntry("MAV_WINCH_STATUS_DROPPING", """Winch is gravity dropping payload.""")
  6086. MAV_WINCH_STATUS_ARRESTING = 64
  6087. enums["MAV_WINCH_STATUS_FLAG"][64] = EnumEntry("MAV_WINCH_STATUS_ARRESTING", """Winch is arresting payload descent.""")
  6088. MAV_WINCH_STATUS_GROUND_SENSE = 128
  6089. enums["MAV_WINCH_STATUS_FLAG"][128] = EnumEntry("MAV_WINCH_STATUS_GROUND_SENSE", """Winch is using torque measurements to sense the ground.""")
  6090. MAV_WINCH_STATUS_RETRACTING = 256
  6091. enums["MAV_WINCH_STATUS_FLAG"][256] = EnumEntry("MAV_WINCH_STATUS_RETRACTING", """Winch is returning to the fully retracted position.""")
  6092. MAV_WINCH_STATUS_REDELIVER = 512
  6093. 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.""")
  6094. MAV_WINCH_STATUS_ABANDON_LINE = 1024
  6095. 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.""")
  6096. MAV_WINCH_STATUS_LOCKING = 2048
  6097. enums["MAV_WINCH_STATUS_FLAG"][2048] = EnumEntry("MAV_WINCH_STATUS_LOCKING", """Winch is engaging the locking mechanism.""")
  6098. MAV_WINCH_STATUS_LOAD_LINE = 4096
  6099. enums["MAV_WINCH_STATUS_FLAG"][4096] = EnumEntry("MAV_WINCH_STATUS_LOAD_LINE", """Winch is spooling on line.""")
  6100. MAV_WINCH_STATUS_LOAD_PAYLOAD = 8192
  6101. enums["MAV_WINCH_STATUS_FLAG"][8192] = EnumEntry("MAV_WINCH_STATUS_LOAD_PAYLOAD", """Winch is loading a payload.""")
  6102. MAV_WINCH_STATUS_FLAG_ENUM_END = 8193
  6103. enums["MAV_WINCH_STATUS_FLAG"][8193] = EnumEntry("MAV_WINCH_STATUS_FLAG_ENUM_END", """""")
  6104. # MAG_CAL_STATUS
  6105. enums["MAG_CAL_STATUS"] = Enum()
  6106. enums["MAG_CAL_STATUS"].bitmask = False
  6107. MAG_CAL_NOT_STARTED = 0
  6108. enums["MAG_CAL_STATUS"][0] = EnumEntry("MAG_CAL_NOT_STARTED", """""")
  6109. MAG_CAL_WAITING_TO_START = 1
  6110. enums["MAG_CAL_STATUS"][1] = EnumEntry("MAG_CAL_WAITING_TO_START", """""")
  6111. MAG_CAL_RUNNING_STEP_ONE = 2
  6112. enums["MAG_CAL_STATUS"][2] = EnumEntry("MAG_CAL_RUNNING_STEP_ONE", """""")
  6113. MAG_CAL_RUNNING_STEP_TWO = 3
  6114. enums["MAG_CAL_STATUS"][3] = EnumEntry("MAG_CAL_RUNNING_STEP_TWO", """""")
  6115. MAG_CAL_SUCCESS = 4
  6116. enums["MAG_CAL_STATUS"][4] = EnumEntry("MAG_CAL_SUCCESS", """""")
  6117. MAG_CAL_FAILED = 5
  6118. enums["MAG_CAL_STATUS"][5] = EnumEntry("MAG_CAL_FAILED", """""")
  6119. MAG_CAL_BAD_ORIENTATION = 6
  6120. enums["MAG_CAL_STATUS"][6] = EnumEntry("MAG_CAL_BAD_ORIENTATION", """""")
  6121. MAG_CAL_BAD_RADIUS = 7
  6122. enums["MAG_CAL_STATUS"][7] = EnumEntry("MAG_CAL_BAD_RADIUS", """""")
  6123. MAG_CAL_STATUS_ENUM_END = 8
  6124. enums["MAG_CAL_STATUS"][8] = EnumEntry("MAG_CAL_STATUS_ENUM_END", """""")
  6125. # MAV_EVENT_ERROR_REASON
  6126. enums["MAV_EVENT_ERROR_REASON"] = Enum()
  6127. enums["MAV_EVENT_ERROR_REASON"].bitmask = False
  6128. MAV_EVENT_ERROR_REASON_UNAVAILABLE = 0
  6129. enums["MAV_EVENT_ERROR_REASON"][0] = EnumEntry("MAV_EVENT_ERROR_REASON_UNAVAILABLE", """The requested event is not available (anymore).""")
  6130. MAV_EVENT_ERROR_REASON_ENUM_END = 1
  6131. enums["MAV_EVENT_ERROR_REASON"][1] = EnumEntry("MAV_EVENT_ERROR_REASON_ENUM_END", """""")
  6132. # MAV_EVENT_CURRENT_SEQUENCE_FLAGS
  6133. enums["MAV_EVENT_CURRENT_SEQUENCE_FLAGS"] = Enum()
  6134. enums["MAV_EVENT_CURRENT_SEQUENCE_FLAGS"].bitmask = False
  6135. MAV_EVENT_CURRENT_SEQUENCE_FLAGS_RESET = 1
  6136. enums["MAV_EVENT_CURRENT_SEQUENCE_FLAGS"][1] = EnumEntry("MAV_EVENT_CURRENT_SEQUENCE_FLAGS_RESET", """A sequence reset has happened (e.g. vehicle reboot).""")
  6137. MAV_EVENT_CURRENT_SEQUENCE_FLAGS_ENUM_END = 2
  6138. enums["MAV_EVENT_CURRENT_SEQUENCE_FLAGS"][2] = EnumEntry("MAV_EVENT_CURRENT_SEQUENCE_FLAGS_ENUM_END", """""")
  6139. # HIL_SENSOR_UPDATED_FLAGS
  6140. enums["HIL_SENSOR_UPDATED_FLAGS"] = Enum()
  6141. enums["HIL_SENSOR_UPDATED_FLAGS"].bitmask = True
  6142. HIL_SENSOR_UPDATED_NONE = 0
  6143. enums["HIL_SENSOR_UPDATED_FLAGS"][0] = EnumEntry("HIL_SENSOR_UPDATED_NONE", """None of the fields in HIL_SENSOR have been updated""")
  6144. HIL_SENSOR_UPDATED_XACC = 1
  6145. enums["HIL_SENSOR_UPDATED_FLAGS"][1] = EnumEntry("HIL_SENSOR_UPDATED_XACC", """The value in the xacc field has been updated""")
  6146. HIL_SENSOR_UPDATED_YACC = 2
  6147. enums["HIL_SENSOR_UPDATED_FLAGS"][2] = EnumEntry("HIL_SENSOR_UPDATED_YACC", """The value in the yacc field has been updated""")
  6148. HIL_SENSOR_UPDATED_ZACC = 4
  6149. enums["HIL_SENSOR_UPDATED_FLAGS"][4] = EnumEntry("HIL_SENSOR_UPDATED_ZACC", """The value in the zacc field has been updated""")
  6150. HIL_SENSOR_UPDATED_XGYRO = 8
  6151. enums["HIL_SENSOR_UPDATED_FLAGS"][8] = EnumEntry("HIL_SENSOR_UPDATED_XGYRO", """The value in the xgyro field has been updated""")
  6152. HIL_SENSOR_UPDATED_YGYRO = 16
  6153. enums["HIL_SENSOR_UPDATED_FLAGS"][16] = EnumEntry("HIL_SENSOR_UPDATED_YGYRO", """The value in the ygyro field has been updated""")
  6154. HIL_SENSOR_UPDATED_ZGYRO = 32
  6155. enums["HIL_SENSOR_UPDATED_FLAGS"][32] = EnumEntry("HIL_SENSOR_UPDATED_ZGYRO", """The value in the zgyro field has been updated""")
  6156. HIL_SENSOR_UPDATED_XMAG = 64
  6157. enums["HIL_SENSOR_UPDATED_FLAGS"][64] = EnumEntry("HIL_SENSOR_UPDATED_XMAG", """The value in the xmag field has been updated""")
  6158. HIL_SENSOR_UPDATED_YMAG = 128
  6159. enums["HIL_SENSOR_UPDATED_FLAGS"][128] = EnumEntry("HIL_SENSOR_UPDATED_YMAG", """The value in the ymag field has been updated""")
  6160. HIL_SENSOR_UPDATED_ZMAG = 256
  6161. enums["HIL_SENSOR_UPDATED_FLAGS"][256] = EnumEntry("HIL_SENSOR_UPDATED_ZMAG", """The value in the zmag field has been updated""")
  6162. HIL_SENSOR_UPDATED_ABS_PRESSURE = 512
  6163. enums["HIL_SENSOR_UPDATED_FLAGS"][512] = EnumEntry("HIL_SENSOR_UPDATED_ABS_PRESSURE", """The value in the abs_pressure field has been updated""")
  6164. HIL_SENSOR_UPDATED_DIFF_PRESSURE = 1024
  6165. enums["HIL_SENSOR_UPDATED_FLAGS"][1024] = EnumEntry("HIL_SENSOR_UPDATED_DIFF_PRESSURE", """The value in the diff_pressure field has been updated""")
  6166. HIL_SENSOR_UPDATED_PRESSURE_ALT = 2048
  6167. enums["HIL_SENSOR_UPDATED_FLAGS"][2048] = EnumEntry("HIL_SENSOR_UPDATED_PRESSURE_ALT", """The value in the pressure_alt field has been updated""")
  6168. HIL_SENSOR_UPDATED_TEMPERATURE = 4096
  6169. enums["HIL_SENSOR_UPDATED_FLAGS"][4096] = EnumEntry("HIL_SENSOR_UPDATED_TEMPERATURE", """The value in the temperature field has been updated""")
  6170. HIL_SENSOR_UPDATED_RESET = 2147483648
  6171. enums["HIL_SENSOR_UPDATED_FLAGS"][2147483648] = EnumEntry("HIL_SENSOR_UPDATED_RESET", """Full reset of attitude/position/velocities/etc was performed in sim (Bit 31).""")
  6172. HIL_SENSOR_UPDATED_FLAGS_ENUM_END = 2147483649
  6173. enums["HIL_SENSOR_UPDATED_FLAGS"][2147483649] = EnumEntry("HIL_SENSOR_UPDATED_FLAGS_ENUM_END", """""")
  6174. # HIGHRES_IMU_UPDATED_FLAGS
  6175. enums["HIGHRES_IMU_UPDATED_FLAGS"] = Enum()
  6176. enums["HIGHRES_IMU_UPDATED_FLAGS"].bitmask = True
  6177. HIGHRES_IMU_UPDATED_NONE = 0
  6178. enums["HIGHRES_IMU_UPDATED_FLAGS"][0] = EnumEntry("HIGHRES_IMU_UPDATED_NONE", """None of the fields in HIGHRES_IMU have been updated""")
  6179. HIGHRES_IMU_UPDATED_XACC = 1
  6180. enums["HIGHRES_IMU_UPDATED_FLAGS"][1] = EnumEntry("HIGHRES_IMU_UPDATED_XACC", """The value in the xacc field has been updated""")
  6181. HIGHRES_IMU_UPDATED_YACC = 2
  6182. enums["HIGHRES_IMU_UPDATED_FLAGS"][2] = EnumEntry("HIGHRES_IMU_UPDATED_YACC", """The value in the yacc field has been updated""")
  6183. HIGHRES_IMU_UPDATED_ZACC = 4
  6184. enums["HIGHRES_IMU_UPDATED_FLAGS"][4] = EnumEntry("HIGHRES_IMU_UPDATED_ZACC", """The value in the zacc field has been updated since""")
  6185. HIGHRES_IMU_UPDATED_XGYRO = 8
  6186. enums["HIGHRES_IMU_UPDATED_FLAGS"][8] = EnumEntry("HIGHRES_IMU_UPDATED_XGYRO", """The value in the xgyro field has been updated""")
  6187. HIGHRES_IMU_UPDATED_YGYRO = 16
  6188. enums["HIGHRES_IMU_UPDATED_FLAGS"][16] = EnumEntry("HIGHRES_IMU_UPDATED_YGYRO", """The value in the ygyro field has been updated""")
  6189. HIGHRES_IMU_UPDATED_ZGYRO = 32
  6190. enums["HIGHRES_IMU_UPDATED_FLAGS"][32] = EnumEntry("HIGHRES_IMU_UPDATED_ZGYRO", """The value in the zgyro field has been updated""")
  6191. HIGHRES_IMU_UPDATED_XMAG = 64
  6192. enums["HIGHRES_IMU_UPDATED_FLAGS"][64] = EnumEntry("HIGHRES_IMU_UPDATED_XMAG", """The value in the xmag field has been updated""")
  6193. HIGHRES_IMU_UPDATED_YMAG = 128
  6194. enums["HIGHRES_IMU_UPDATED_FLAGS"][128] = EnumEntry("HIGHRES_IMU_UPDATED_YMAG", """The value in the ymag field has been updated""")
  6195. HIGHRES_IMU_UPDATED_ZMAG = 256
  6196. enums["HIGHRES_IMU_UPDATED_FLAGS"][256] = EnumEntry("HIGHRES_IMU_UPDATED_ZMAG", """The value in the zmag field has been updated""")
  6197. HIGHRES_IMU_UPDATED_ABS_PRESSURE = 512
  6198. enums["HIGHRES_IMU_UPDATED_FLAGS"][512] = EnumEntry("HIGHRES_IMU_UPDATED_ABS_PRESSURE", """The value in the abs_pressure field has been updated""")
  6199. HIGHRES_IMU_UPDATED_DIFF_PRESSURE = 1024
  6200. enums["HIGHRES_IMU_UPDATED_FLAGS"][1024] = EnumEntry("HIGHRES_IMU_UPDATED_DIFF_PRESSURE", """The value in the diff_pressure field has been updated""")
  6201. HIGHRES_IMU_UPDATED_PRESSURE_ALT = 2048
  6202. enums["HIGHRES_IMU_UPDATED_FLAGS"][2048] = EnumEntry("HIGHRES_IMU_UPDATED_PRESSURE_ALT", """The value in the pressure_alt field has been updated""")
  6203. HIGHRES_IMU_UPDATED_TEMPERATURE = 4096
  6204. enums["HIGHRES_IMU_UPDATED_FLAGS"][4096] = EnumEntry("HIGHRES_IMU_UPDATED_TEMPERATURE", """The value in the temperature field has been updated""")
  6205. HIGHRES_IMU_UPDATED_ALL = 65535
  6206. enums["HIGHRES_IMU_UPDATED_FLAGS"][65535] = EnumEntry("HIGHRES_IMU_UPDATED_ALL", """All fields in HIGHRES_IMU have been updated.""")
  6207. HIGHRES_IMU_UPDATED_FLAGS_ENUM_END = 65536
  6208. enums["HIGHRES_IMU_UPDATED_FLAGS"][65536] = EnumEntry("HIGHRES_IMU_UPDATED_FLAGS_ENUM_END", """""")
  6209. # CAN_FILTER_OP
  6210. enums["CAN_FILTER_OP"] = Enum()
  6211. enums["CAN_FILTER_OP"].bitmask = False
  6212. CAN_FILTER_REPLACE = 0
  6213. enums["CAN_FILTER_OP"][0] = EnumEntry("CAN_FILTER_REPLACE", """""")
  6214. CAN_FILTER_ADD = 1
  6215. enums["CAN_FILTER_OP"][1] = EnumEntry("CAN_FILTER_ADD", """""")
  6216. CAN_FILTER_REMOVE = 2
  6217. enums["CAN_FILTER_OP"][2] = EnumEntry("CAN_FILTER_REMOVE", """""")
  6218. CAN_FILTER_OP_ENUM_END = 3
  6219. enums["CAN_FILTER_OP"][3] = EnumEntry("CAN_FILTER_OP_ENUM_END", """""")
  6220. # MAV_FTP_ERR
  6221. enums["MAV_FTP_ERR"] = Enum()
  6222. enums["MAV_FTP_ERR"].bitmask = False
  6223. MAV_FTP_ERR_NONE = 0
  6224. enums["MAV_FTP_ERR"][0] = EnumEntry("MAV_FTP_ERR_NONE", """None: No error""")
  6225. MAV_FTP_ERR_FAIL = 1
  6226. enums["MAV_FTP_ERR"][1] = EnumEntry("MAV_FTP_ERR_FAIL", """Fail: Unknown failure""")
  6227. MAV_FTP_ERR_FAILERRNO = 2
  6228. enums["MAV_FTP_ERR"][2] = EnumEntry(
  6229. "MAV_FTP_ERR_FAILERRNO",
  6230. """FailErrno: Command failed, Err number sent back in PayloadHeader.data[1].
  6231. This is a file-system error number understood by the server operating system.""",
  6232. )
  6233. MAV_FTP_ERR_INVALIDDATASIZE = 3
  6234. enums["MAV_FTP_ERR"][3] = EnumEntry("MAV_FTP_ERR_INVALIDDATASIZE", """InvalidDataSize: Payload size is invalid""")
  6235. MAV_FTP_ERR_INVALIDSESSION = 4
  6236. enums["MAV_FTP_ERR"][4] = EnumEntry("MAV_FTP_ERR_INVALIDSESSION", """InvalidSession: Session is not currently open""")
  6237. MAV_FTP_ERR_NOSESSIONSAVAILABLE = 5
  6238. enums["MAV_FTP_ERR"][5] = EnumEntry("MAV_FTP_ERR_NOSESSIONSAVAILABLE", """NoSessionsAvailable: All available sessions are already in use""")
  6239. MAV_FTP_ERR_EOF = 6
  6240. enums["MAV_FTP_ERR"][6] = EnumEntry("MAV_FTP_ERR_EOF", """EOF: Offset past end of file for ListDirectory and ReadFile commands""")
  6241. MAV_FTP_ERR_UNKNOWNCOMMAND = 7
  6242. enums["MAV_FTP_ERR"][7] = EnumEntry("MAV_FTP_ERR_UNKNOWNCOMMAND", """UnknownCommand: Unknown command / opcode""")
  6243. MAV_FTP_ERR_FILEEXISTS = 8
  6244. enums["MAV_FTP_ERR"][8] = EnumEntry("MAV_FTP_ERR_FILEEXISTS", """FileExists: File/directory already exists""")
  6245. MAV_FTP_ERR_FILEPROTECTED = 9
  6246. enums["MAV_FTP_ERR"][9] = EnumEntry("MAV_FTP_ERR_FILEPROTECTED", """FileProtected: File/directory is write protected""")
  6247. MAV_FTP_ERR_FILENOTFOUND = 10
  6248. enums["MAV_FTP_ERR"][10] = EnumEntry("MAV_FTP_ERR_FILENOTFOUND", """FileNotFound: File/directory not found""")
  6249. MAV_FTP_ERR_ENUM_END = 11
  6250. enums["MAV_FTP_ERR"][11] = EnumEntry("MAV_FTP_ERR_ENUM_END", """""")
  6251. # MAV_FTP_OPCODE
  6252. enums["MAV_FTP_OPCODE"] = Enum()
  6253. enums["MAV_FTP_OPCODE"].bitmask = False
  6254. MAV_FTP_OPCODE_NONE = 0
  6255. enums["MAV_FTP_OPCODE"][0] = EnumEntry("MAV_FTP_OPCODE_NONE", """None. Ignored, always ACKed""")
  6256. MAV_FTP_OPCODE_TERMINATESESSION = 1
  6257. enums["MAV_FTP_OPCODE"][1] = EnumEntry("MAV_FTP_OPCODE_TERMINATESESSION", """TerminateSession: Terminates open Read session""")
  6258. MAV_FTP_OPCODE_RESETSESSION = 2
  6259. enums["MAV_FTP_OPCODE"][2] = EnumEntry("MAV_FTP_OPCODE_RESETSESSION", """ResetSessions: Terminates all open read sessions""")
  6260. MAV_FTP_OPCODE_LISTDIRECTORY = 3
  6261. enums["MAV_FTP_OPCODE"][3] = EnumEntry("MAV_FTP_OPCODE_LISTDIRECTORY", """ListDirectory. List files and directories in path from offset""")
  6262. MAV_FTP_OPCODE_OPENFILERO = 4
  6263. enums["MAV_FTP_OPCODE"][4] = EnumEntry("MAV_FTP_OPCODE_OPENFILERO", """OpenFileRO: Opens file at path for reading, returns session""")
  6264. MAV_FTP_OPCODE_READFILE = 5
  6265. enums["MAV_FTP_OPCODE"][5] = EnumEntry("MAV_FTP_OPCODE_READFILE", """ReadFile: Reads size bytes from offset in session""")
  6266. MAV_FTP_OPCODE_CREATEFILE = 6
  6267. enums["MAV_FTP_OPCODE"][6] = EnumEntry("MAV_FTP_OPCODE_CREATEFILE", """CreateFile: Creates file at path for writing, returns session""")
  6268. MAV_FTP_OPCODE_WRITEFILE = 7
  6269. enums["MAV_FTP_OPCODE"][7] = EnumEntry("MAV_FTP_OPCODE_WRITEFILE", """WriteFile: Writes size bytes to offset in session""")
  6270. MAV_FTP_OPCODE_REMOVEFILE = 8
  6271. enums["MAV_FTP_OPCODE"][8] = EnumEntry("MAV_FTP_OPCODE_REMOVEFILE", """RemoveFile: Remove file at path""")
  6272. MAV_FTP_OPCODE_CREATEDIRECTORY = 9
  6273. enums["MAV_FTP_OPCODE"][9] = EnumEntry("MAV_FTP_OPCODE_CREATEDIRECTORY", """CreateDirectory: Creates directory at path""")
  6274. MAV_FTP_OPCODE_REMOVEDIRECTORY = 10
  6275. enums["MAV_FTP_OPCODE"][10] = EnumEntry("MAV_FTP_OPCODE_REMOVEDIRECTORY", """RemoveDirectory: Removes directory at path. The directory must be empty.""")
  6276. MAV_FTP_OPCODE_OPENFILEWO = 11
  6277. enums["MAV_FTP_OPCODE"][11] = EnumEntry("MAV_FTP_OPCODE_OPENFILEWO", """OpenFileWO: Opens file at path for writing, returns session""")
  6278. MAV_FTP_OPCODE_TRUNCATEFILE = 12
  6279. enums["MAV_FTP_OPCODE"][12] = EnumEntry("MAV_FTP_OPCODE_TRUNCATEFILE", """TruncateFile: Truncate file at path to offset length""")
  6280. MAV_FTP_OPCODE_RENAME = 13
  6281. enums["MAV_FTP_OPCODE"][13] = EnumEntry("MAV_FTP_OPCODE_RENAME", """Rename: Rename path1 to path2""")
  6282. MAV_FTP_OPCODE_CALCFILECRC = 14
  6283. enums["MAV_FTP_OPCODE"][14] = EnumEntry("MAV_FTP_OPCODE_CALCFILECRC", """CalcFileCRC32: Calculate CRC32 for file at path""")
  6284. MAV_FTP_OPCODE_BURSTREADFILE = 15
  6285. enums["MAV_FTP_OPCODE"][15] = EnumEntry("MAV_FTP_OPCODE_BURSTREADFILE", """BurstReadFile: Burst download session file""")
  6286. MAV_FTP_OPCODE_ACK = 128
  6287. enums["MAV_FTP_OPCODE"][128] = EnumEntry("MAV_FTP_OPCODE_ACK", """ACK: ACK response""")
  6288. MAV_FTP_OPCODE_NAK = 129
  6289. enums["MAV_FTP_OPCODE"][129] = EnumEntry("MAV_FTP_OPCODE_NAK", """NAK: NAK response""")
  6290. MAV_FTP_OPCODE_ENUM_END = 130
  6291. enums["MAV_FTP_OPCODE"][130] = EnumEntry("MAV_FTP_OPCODE_ENUM_END", """""")
  6292. # MISSION_STATE
  6293. enums["MISSION_STATE"] = Enum()
  6294. enums["MISSION_STATE"].bitmask = False
  6295. MISSION_STATE_UNKNOWN = 0
  6296. enums["MISSION_STATE"][0] = EnumEntry("MISSION_STATE_UNKNOWN", """The mission status reporting is not supported.""")
  6297. MISSION_STATE_NO_MISSION = 1
  6298. enums["MISSION_STATE"][1] = EnumEntry("MISSION_STATE_NO_MISSION", """No mission on the vehicle.""")
  6299. MISSION_STATE_NOT_STARTED = 2
  6300. 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.""")
  6301. MISSION_STATE_ACTIVE = 3
  6302. enums["MISSION_STATE"][3] = EnumEntry("MISSION_STATE_ACTIVE", """Mission is active, and will execute mission items when in auto mode.""")
  6303. MISSION_STATE_PAUSED = 4
  6304. enums["MISSION_STATE"][4] = EnumEntry("MISSION_STATE_PAUSED", """Mission is paused when in auto mode.""")
  6305. MISSION_STATE_COMPLETE = 5
  6306. enums["MISSION_STATE"][5] = EnumEntry("MISSION_STATE_COMPLETE", """Mission has executed all mission items.""")
  6307. MISSION_STATE_ENUM_END = 6
  6308. enums["MISSION_STATE"][6] = EnumEntry("MISSION_STATE_ENUM_END", """""")
  6309. # MAV_AUTOPILOT
  6310. enums["MAV_AUTOPILOT"] = Enum()
  6311. enums["MAV_AUTOPILOT"].bitmask = False
  6312. MAV_AUTOPILOT_GENERIC = 0
  6313. enums["MAV_AUTOPILOT"][0] = EnumEntry("MAV_AUTOPILOT_GENERIC", """Generic autopilot, full support for everything""")
  6314. MAV_AUTOPILOT_RESERVED = 1
  6315. enums["MAV_AUTOPILOT"][1] = EnumEntry("MAV_AUTOPILOT_RESERVED", """Reserved for future use.""")
  6316. MAV_AUTOPILOT_SLUGS = 2
  6317. enums["MAV_AUTOPILOT"][2] = EnumEntry("MAV_AUTOPILOT_SLUGS", """SLUGS autopilot, http://slugsuav.soe.ucsc.edu""")
  6318. MAV_AUTOPILOT_ARDUPILOTMEGA = 3
  6319. enums["MAV_AUTOPILOT"][3] = EnumEntry("MAV_AUTOPILOT_ARDUPILOTMEGA", """ArduPilot - Plane/Copter/Rover/Sub/Tracker, https://ardupilot.org""")
  6320. MAV_AUTOPILOT_OPENPILOT = 4
  6321. enums["MAV_AUTOPILOT"][4] = EnumEntry("MAV_AUTOPILOT_OPENPILOT", """OpenPilot, http://openpilot.org""")
  6322. MAV_AUTOPILOT_GENERIC_WAYPOINTS_ONLY = 5
  6323. enums["MAV_AUTOPILOT"][5] = EnumEntry("MAV_AUTOPILOT_GENERIC_WAYPOINTS_ONLY", """Generic autopilot only supporting simple waypoints""")
  6324. MAV_AUTOPILOT_GENERIC_WAYPOINTS_AND_SIMPLE_NAVIGATION_ONLY = 6
  6325. enums["MAV_AUTOPILOT"][6] = EnumEntry("MAV_AUTOPILOT_GENERIC_WAYPOINTS_AND_SIMPLE_NAVIGATION_ONLY", """Generic autopilot supporting waypoints and other simple navigation commands""")
  6326. MAV_AUTOPILOT_GENERIC_MISSION_FULL = 7
  6327. enums["MAV_AUTOPILOT"][7] = EnumEntry("MAV_AUTOPILOT_GENERIC_MISSION_FULL", """Generic autopilot supporting the full mission command set""")
  6328. MAV_AUTOPILOT_INVALID = 8
  6329. enums["MAV_AUTOPILOT"][8] = EnumEntry("MAV_AUTOPILOT_INVALID", """No valid autopilot, e.g. a GCS or other MAVLink component""")
  6330. MAV_AUTOPILOT_PPZ = 9
  6331. enums["MAV_AUTOPILOT"][9] = EnumEntry("MAV_AUTOPILOT_PPZ", """PPZ UAV - http://nongnu.org/paparazzi""")
  6332. MAV_AUTOPILOT_UDB = 10
  6333. enums["MAV_AUTOPILOT"][10] = EnumEntry("MAV_AUTOPILOT_UDB", """UAV Dev Board""")
  6334. MAV_AUTOPILOT_FP = 11
  6335. enums["MAV_AUTOPILOT"][11] = EnumEntry("MAV_AUTOPILOT_FP", """FlexiPilot""")
  6336. MAV_AUTOPILOT_PX4 = 12
  6337. enums["MAV_AUTOPILOT"][12] = EnumEntry("MAV_AUTOPILOT_PX4", """PX4 Autopilot - http://px4.io/""")
  6338. MAV_AUTOPILOT_SMACCMPILOT = 13
  6339. enums["MAV_AUTOPILOT"][13] = EnumEntry("MAV_AUTOPILOT_SMACCMPILOT", """SMACCMPilot - http://smaccmpilot.org""")
  6340. MAV_AUTOPILOT_AUTOQUAD = 14
  6341. enums["MAV_AUTOPILOT"][14] = EnumEntry("MAV_AUTOPILOT_AUTOQUAD", """AutoQuad -- http://autoquad.org""")
  6342. MAV_AUTOPILOT_ARMAZILA = 15
  6343. enums["MAV_AUTOPILOT"][15] = EnumEntry("MAV_AUTOPILOT_ARMAZILA", """Armazila -- http://armazila.com""")
  6344. MAV_AUTOPILOT_AEROB = 16
  6345. enums["MAV_AUTOPILOT"][16] = EnumEntry("MAV_AUTOPILOT_AEROB", """Aerob -- http://aerob.ru""")
  6346. MAV_AUTOPILOT_ASLUAV = 17
  6347. enums["MAV_AUTOPILOT"][17] = EnumEntry("MAV_AUTOPILOT_ASLUAV", """ASLUAV autopilot -- http://www.asl.ethz.ch""")
  6348. MAV_AUTOPILOT_SMARTAP = 18
  6349. enums["MAV_AUTOPILOT"][18] = EnumEntry("MAV_AUTOPILOT_SMARTAP", """SmartAP Autopilot - http://sky-drones.com""")
  6350. MAV_AUTOPILOT_AIRRAILS = 19
  6351. enums["MAV_AUTOPILOT"][19] = EnumEntry("MAV_AUTOPILOT_AIRRAILS", """AirRails - http://uaventure.com""")
  6352. MAV_AUTOPILOT_REFLEX = 20
  6353. enums["MAV_AUTOPILOT"][20] = EnumEntry("MAV_AUTOPILOT_REFLEX", """Fusion Reflex - https://fusion.engineering""")
  6354. MAV_AUTOPILOT_VKFLY = 30
  6355. enums["MAV_AUTOPILOT"][30] = EnumEntry("MAV_AUTOPILOT_VKFLY", """vK-Fly Autopilot - https://fusion.engineering""")
  6356. MAV_AUTOPILOT_ENUM_END = 31
  6357. enums["MAV_AUTOPILOT"][31] = EnumEntry("MAV_AUTOPILOT_ENUM_END", """""")
  6358. # MAV_TYPE
  6359. enums["MAV_TYPE"] = Enum()
  6360. enums["MAV_TYPE"].bitmask = False
  6361. MAV_TYPE_GENERIC = 0
  6362. enums["MAV_TYPE"][0] = EnumEntry("MAV_TYPE_GENERIC", """Generic micro air vehicle""")
  6363. MAV_TYPE_FIXED_WING = 1
  6364. enums["MAV_TYPE"][1] = EnumEntry("MAV_TYPE_FIXED_WING", """Fixed wing aircraft.""")
  6365. MAV_TYPE_QUADROTOR = 2
  6366. enums["MAV_TYPE"][2] = EnumEntry("MAV_TYPE_QUADROTOR", """Quadrotor""")
  6367. MAV_TYPE_COAXIAL = 3
  6368. enums["MAV_TYPE"][3] = EnumEntry("MAV_TYPE_COAXIAL", """Coaxial helicopter""")
  6369. MAV_TYPE_HELICOPTER = 4
  6370. enums["MAV_TYPE"][4] = EnumEntry("MAV_TYPE_HELICOPTER", """Normal helicopter with tail rotor.""")
  6371. MAV_TYPE_ANTENNA_TRACKER = 5
  6372. enums["MAV_TYPE"][5] = EnumEntry("MAV_TYPE_ANTENNA_TRACKER", """Ground installation""")
  6373. MAV_TYPE_GCS = 6
  6374. enums["MAV_TYPE"][6] = EnumEntry("MAV_TYPE_GCS", """Operator control unit / ground control station""")
  6375. MAV_TYPE_AIRSHIP = 7
  6376. enums["MAV_TYPE"][7] = EnumEntry("MAV_TYPE_AIRSHIP", """Airship, controlled""")
  6377. MAV_TYPE_FREE_BALLOON = 8
  6378. enums["MAV_TYPE"][8] = EnumEntry("MAV_TYPE_FREE_BALLOON", """Free balloon, uncontrolled""")
  6379. MAV_TYPE_ROCKET = 9
  6380. enums["MAV_TYPE"][9] = EnumEntry("MAV_TYPE_ROCKET", """Rocket""")
  6381. MAV_TYPE_GROUND_ROVER = 10
  6382. enums["MAV_TYPE"][10] = EnumEntry("MAV_TYPE_GROUND_ROVER", """Ground rover""")
  6383. MAV_TYPE_SURFACE_BOAT = 11
  6384. enums["MAV_TYPE"][11] = EnumEntry("MAV_TYPE_SURFACE_BOAT", """Surface vessel, boat, ship""")
  6385. MAV_TYPE_SUBMARINE = 12
  6386. enums["MAV_TYPE"][12] = EnumEntry("MAV_TYPE_SUBMARINE", """Submarine""")
  6387. MAV_TYPE_HEXAROTOR = 13
  6388. enums["MAV_TYPE"][13] = EnumEntry("MAV_TYPE_HEXAROTOR", """Hexarotor""")
  6389. MAV_TYPE_OCTOROTOR = 14
  6390. enums["MAV_TYPE"][14] = EnumEntry("MAV_TYPE_OCTOROTOR", """Octorotor""")
  6391. MAV_TYPE_TRICOPTER = 15
  6392. enums["MAV_TYPE"][15] = EnumEntry("MAV_TYPE_TRICOPTER", """Tricopter""")
  6393. MAV_TYPE_FLAPPING_WING = 16
  6394. enums["MAV_TYPE"][16] = EnumEntry("MAV_TYPE_FLAPPING_WING", """Flapping wing""")
  6395. MAV_TYPE_KITE = 17
  6396. enums["MAV_TYPE"][17] = EnumEntry("MAV_TYPE_KITE", """Kite""")
  6397. MAV_TYPE_ONBOARD_CONTROLLER = 18
  6398. enums["MAV_TYPE"][18] = EnumEntry("MAV_TYPE_ONBOARD_CONTROLLER", """Onboard companion controller""")
  6399. MAV_TYPE_VTOL_TAILSITTER_DUOROTOR = 19
  6400. 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.""")
  6401. MAV_TYPE_VTOL_TAILSITTER_QUADROTOR = 20
  6402. 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.""")
  6403. MAV_TYPE_VTOL_TILTROTOR = 21
  6404. 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.""")
  6405. MAV_TYPE_VTOL_FIXEDROTOR = 22
  6406. 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.""")
  6407. MAV_TYPE_VTOL_TAILSITTER = 23
  6408. 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.""")
  6409. MAV_TYPE_VTOL_TILTWING = 24
  6410. 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.""")
  6411. MAV_TYPE_VTOL_RESERVED5 = 25
  6412. enums["MAV_TYPE"][25] = EnumEntry("MAV_TYPE_VTOL_RESERVED5", """VTOL reserved 5""")
  6413. MAV_TYPE_GIMBAL = 26
  6414. enums["MAV_TYPE"][26] = EnumEntry("MAV_TYPE_GIMBAL", """Gimbal""")
  6415. MAV_TYPE_ADSB = 27
  6416. enums["MAV_TYPE"][27] = EnumEntry("MAV_TYPE_ADSB", """ADSB system""")
  6417. MAV_TYPE_PARAFOIL = 28
  6418. enums["MAV_TYPE"][28] = EnumEntry("MAV_TYPE_PARAFOIL", """Steerable, nonrigid airfoil""")
  6419. MAV_TYPE_DODECAROTOR = 29
  6420. enums["MAV_TYPE"][29] = EnumEntry("MAV_TYPE_DODECAROTOR", """Dodecarotor""")
  6421. MAV_TYPE_CAMERA = 30
  6422. enums["MAV_TYPE"][30] = EnumEntry("MAV_TYPE_CAMERA", """Camera""")
  6423. MAV_TYPE_CHARGING_STATION = 31
  6424. enums["MAV_TYPE"][31] = EnumEntry("MAV_TYPE_CHARGING_STATION", """Charging station""")
  6425. MAV_TYPE_FLARM = 32
  6426. enums["MAV_TYPE"][32] = EnumEntry("MAV_TYPE_FLARM", """FLARM collision avoidance system""")
  6427. MAV_TYPE_SERVO = 33
  6428. enums["MAV_TYPE"][33] = EnumEntry("MAV_TYPE_SERVO", """Servo""")
  6429. MAV_TYPE_ODID = 34
  6430. enums["MAV_TYPE"][34] = EnumEntry("MAV_TYPE_ODID", """Open Drone ID. See https://mavlink.io/en/services/opendroneid.html.""")
  6431. MAV_TYPE_DECAROTOR = 35
  6432. enums["MAV_TYPE"][35] = EnumEntry("MAV_TYPE_DECAROTOR", """Decarotor""")
  6433. MAV_TYPE_BATTERY = 36
  6434. enums["MAV_TYPE"][36] = EnumEntry("MAV_TYPE_BATTERY", """Battery""")
  6435. MAV_TYPE_PARACHUTE = 37
  6436. enums["MAV_TYPE"][37] = EnumEntry("MAV_TYPE_PARACHUTE", """Parachute""")
  6437. MAV_TYPE_LOG = 38
  6438. enums["MAV_TYPE"][38] = EnumEntry("MAV_TYPE_LOG", """Log""")
  6439. MAV_TYPE_OSD = 39
  6440. enums["MAV_TYPE"][39] = EnumEntry("MAV_TYPE_OSD", """OSD""")
  6441. MAV_TYPE_IMU = 40
  6442. enums["MAV_TYPE"][40] = EnumEntry("MAV_TYPE_IMU", """IMU""")
  6443. MAV_TYPE_GPS = 41
  6444. enums["MAV_TYPE"][41] = EnumEntry("MAV_TYPE_GPS", """GPS""")
  6445. MAV_TYPE_WINCH = 42
  6446. enums["MAV_TYPE"][42] = EnumEntry("MAV_TYPE_WINCH", """Winch""")
  6447. MAV_TYPE_GENERIC_MULTIROTOR = 43
  6448. enums["MAV_TYPE"][43] = EnumEntry("MAV_TYPE_GENERIC_MULTIROTOR", """Generic multirotor that does not fit into a specific type or whose type is unknown""")
  6449. MAV_TYPE_ENUM_END = 44
  6450. enums["MAV_TYPE"][44] = EnumEntry("MAV_TYPE_ENUM_END", """""")
  6451. # MAV_MODE_FLAG
  6452. enums["MAV_MODE_FLAG"] = Enum()
  6453. enums["MAV_MODE_FLAG"].bitmask = True
  6454. MAV_MODE_FLAG_CUSTOM_MODE_ENABLED = 1
  6455. enums["MAV_MODE_FLAG"][1] = EnumEntry("MAV_MODE_FLAG_CUSTOM_MODE_ENABLED", """0b00000001 Reserved for future use.""")
  6456. MAV_MODE_FLAG_TEST_ENABLED = 2
  6457. 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.""")
  6458. MAV_MODE_FLAG_AUTO_ENABLED = 4
  6459. 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.""")
  6460. MAV_MODE_FLAG_GUIDED_ENABLED = 8
  6461. enums["MAV_MODE_FLAG"][8] = EnumEntry("MAV_MODE_FLAG_GUIDED_ENABLED", """0b00001000 guided mode enabled, system flies waypoints / mission items.""")
  6462. MAV_MODE_FLAG_STABILIZE_ENABLED = 16
  6463. 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.""")
  6464. MAV_MODE_FLAG_HIL_ENABLED = 32
  6465. 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.""")
  6466. MAV_MODE_FLAG_MANUAL_INPUT_ENABLED = 64
  6467. enums["MAV_MODE_FLAG"][64] = EnumEntry("MAV_MODE_FLAG_MANUAL_INPUT_ENABLED", """0b01000000 remote control input is enabled.""")
  6468. MAV_MODE_FLAG_SAFETY_ARMED = 128
  6469. 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.""")
  6470. MAV_MODE_FLAG_ENUM_END = 129
  6471. enums["MAV_MODE_FLAG"][129] = EnumEntry("MAV_MODE_FLAG_ENUM_END", """""")
  6472. # MAV_MODE_FLAG_DECODE_POSITION
  6473. enums["MAV_MODE_FLAG_DECODE_POSITION"] = Enum()
  6474. enums["MAV_MODE_FLAG_DECODE_POSITION"].bitmask = True
  6475. MAV_MODE_FLAG_DECODE_POSITION_CUSTOM_MODE = 1
  6476. enums["MAV_MODE_FLAG_DECODE_POSITION"][1] = EnumEntry("MAV_MODE_FLAG_DECODE_POSITION_CUSTOM_MODE", """Eighth bit: 00000001""")
  6477. MAV_MODE_FLAG_DECODE_POSITION_TEST = 2
  6478. enums["MAV_MODE_FLAG_DECODE_POSITION"][2] = EnumEntry("MAV_MODE_FLAG_DECODE_POSITION_TEST", """Seventh bit: 00000010""")
  6479. MAV_MODE_FLAG_DECODE_POSITION_AUTO = 4
  6480. enums["MAV_MODE_FLAG_DECODE_POSITION"][4] = EnumEntry("MAV_MODE_FLAG_DECODE_POSITION_AUTO", """Sixth bit: 00000100""")
  6481. MAV_MODE_FLAG_DECODE_POSITION_GUIDED = 8
  6482. enums["MAV_MODE_FLAG_DECODE_POSITION"][8] = EnumEntry("MAV_MODE_FLAG_DECODE_POSITION_GUIDED", """Fifth bit: 00001000""")
  6483. MAV_MODE_FLAG_DECODE_POSITION_STABILIZE = 16
  6484. enums["MAV_MODE_FLAG_DECODE_POSITION"][16] = EnumEntry("MAV_MODE_FLAG_DECODE_POSITION_STABILIZE", """Fourth bit: 00010000""")
  6485. MAV_MODE_FLAG_DECODE_POSITION_HIL = 32
  6486. enums["MAV_MODE_FLAG_DECODE_POSITION"][32] = EnumEntry("MAV_MODE_FLAG_DECODE_POSITION_HIL", """Third bit: 00100000""")
  6487. MAV_MODE_FLAG_DECODE_POSITION_MANUAL = 64
  6488. enums["MAV_MODE_FLAG_DECODE_POSITION"][64] = EnumEntry("MAV_MODE_FLAG_DECODE_POSITION_MANUAL", """Second bit: 01000000""")
  6489. MAV_MODE_FLAG_DECODE_POSITION_SAFETY = 128
  6490. enums["MAV_MODE_FLAG_DECODE_POSITION"][128] = EnumEntry("MAV_MODE_FLAG_DECODE_POSITION_SAFETY", """First bit: 10000000""")
  6491. MAV_MODE_FLAG_DECODE_POSITION_ENUM_END = 129
  6492. enums["MAV_MODE_FLAG_DECODE_POSITION"][129] = EnumEntry("MAV_MODE_FLAG_DECODE_POSITION_ENUM_END", """""")
  6493. # MAV_STATE
  6494. enums["MAV_STATE"] = Enum()
  6495. enums["MAV_STATE"].bitmask = False
  6496. MAV_STATE_UNINIT = 0
  6497. enums["MAV_STATE"][0] = EnumEntry("MAV_STATE_UNINIT", """Uninitialized system, state is unknown.""")
  6498. MAV_STATE_BOOT = 1
  6499. enums["MAV_STATE"][1] = EnumEntry("MAV_STATE_BOOT", """System is booting up.""")
  6500. MAV_STATE_CALIBRATING = 2
  6501. enums["MAV_STATE"][2] = EnumEntry("MAV_STATE_CALIBRATING", """System is calibrating and not flight-ready.""")
  6502. MAV_STATE_STANDBY = 3
  6503. enums["MAV_STATE"][3] = EnumEntry("MAV_STATE_STANDBY", """System is grounded and on standby. It can be launched any time.""")
  6504. MAV_STATE_ACTIVE = 4
  6505. enums["MAV_STATE"][4] = EnumEntry("MAV_STATE_ACTIVE", """System is active and might be already airborne. Motors are engaged.""")
  6506. MAV_STATE_CRITICAL = 5
  6507. enums["MAV_STATE"][5] = EnumEntry("MAV_STATE_CRITICAL", """System is in a non-normal flight mode (failsafe). It can however still navigate.""")
  6508. MAV_STATE_EMERGENCY = 6
  6509. 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.""")
  6510. MAV_STATE_POWEROFF = 7
  6511. enums["MAV_STATE"][7] = EnumEntry("MAV_STATE_POWEROFF", """System just initialized its power-down sequence, will shut down now.""")
  6512. MAV_STATE_FLIGHT_TERMINATION = 8
  6513. enums["MAV_STATE"][8] = EnumEntry("MAV_STATE_FLIGHT_TERMINATION", """System is terminating itself (failsafe or commanded).""")
  6514. MAV_STATE_ENUM_END = 9
  6515. enums["MAV_STATE"][9] = EnumEntry("MAV_STATE_ENUM_END", """""")
  6516. # MAV_COMPONENT
  6517. enums["MAV_COMPONENT"] = Enum()
  6518. enums["MAV_COMPONENT"].bitmask = False
  6519. MAV_COMP_ID_ALL = 0
  6520. 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.""")
  6521. MAV_COMP_ID_AUTOPILOT1 = 1
  6522. enums["MAV_COMPONENT"][1] = EnumEntry("MAV_COMP_ID_AUTOPILOT1", """System flight controller component ("autopilot"). Only one autopilot is expected in a particular system.""")
  6523. MAV_COMP_ID_USER1 = 25
  6524. 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.""")
  6525. MAV_COMP_ID_USER2 = 26
  6526. 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.""")
  6527. MAV_COMP_ID_USER3 = 27
  6528. 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.""")
  6529. MAV_COMP_ID_USER4 = 28
  6530. 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.""")
  6531. MAV_COMP_ID_USER5 = 29
  6532. 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.""")
  6533. MAV_COMP_ID_USER6 = 30
  6534. 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.""")
  6535. MAV_COMP_ID_USER7 = 31
  6536. 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.""")
  6537. MAV_COMP_ID_USER8 = 32
  6538. 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.""")
  6539. MAV_COMP_ID_USER9 = 33
  6540. 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.""")
  6541. MAV_COMP_ID_USER10 = 34
  6542. 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.""")
  6543. MAV_COMP_ID_USER11 = 35
  6544. 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.""")
  6545. MAV_COMP_ID_USER12 = 36
  6546. 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.""")
  6547. MAV_COMP_ID_USER13 = 37
  6548. 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.""")
  6549. MAV_COMP_ID_USER14 = 38
  6550. 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.""")
  6551. MAV_COMP_ID_USER15 = 39
  6552. 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.""")
  6553. MAV_COMP_ID_USER16 = 40
  6554. 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.""")
  6555. MAV_COMP_ID_USER17 = 41
  6556. 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.""")
  6557. MAV_COMP_ID_USER18 = 42
  6558. 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.""")
  6559. MAV_COMP_ID_USER19 = 43
  6560. 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.""")
  6561. MAV_COMP_ID_USER20 = 44
  6562. 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.""")
  6563. MAV_COMP_ID_USER21 = 45
  6564. 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.""")
  6565. MAV_COMP_ID_USER22 = 46
  6566. 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.""")
  6567. MAV_COMP_ID_USER23 = 47
  6568. 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.""")
  6569. MAV_COMP_ID_USER24 = 48
  6570. 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.""")
  6571. MAV_COMP_ID_USER25 = 49
  6572. 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.""")
  6573. MAV_COMP_ID_USER26 = 50
  6574. 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.""")
  6575. MAV_COMP_ID_USER27 = 51
  6576. 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.""")
  6577. MAV_COMP_ID_USER28 = 52
  6578. 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.""")
  6579. MAV_COMP_ID_USER29 = 53
  6580. 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.""")
  6581. MAV_COMP_ID_USER30 = 54
  6582. 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.""")
  6583. MAV_COMP_ID_USER31 = 55
  6584. 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.""")
  6585. MAV_COMP_ID_USER32 = 56
  6586. 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.""")
  6587. MAV_COMP_ID_USER33 = 57
  6588. 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.""")
  6589. MAV_COMP_ID_USER34 = 58
  6590. 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.""")
  6591. MAV_COMP_ID_USER35 = 59
  6592. 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.""")
  6593. MAV_COMP_ID_USER36 = 60
  6594. 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.""")
  6595. MAV_COMP_ID_USER37 = 61
  6596. 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.""")
  6597. MAV_COMP_ID_USER38 = 62
  6598. 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.""")
  6599. MAV_COMP_ID_USER39 = 63
  6600. 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.""")
  6601. MAV_COMP_ID_USER40 = 64
  6602. 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.""")
  6603. MAV_COMP_ID_USER41 = 65
  6604. 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.""")
  6605. MAV_COMP_ID_USER42 = 66
  6606. 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.""")
  6607. MAV_COMP_ID_USER43 = 67
  6608. 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.""")
  6609. MAV_COMP_ID_TELEMETRY_RADIO = 68
  6610. enums["MAV_COMPONENT"][68] = EnumEntry("MAV_COMP_ID_TELEMETRY_RADIO", """Telemetry radio (e.g. SiK radio, or other component that emits RADIO_STATUS messages).""")
  6611. MAV_COMP_ID_USER45 = 69
  6612. 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.""")
  6613. MAV_COMP_ID_USER46 = 70
  6614. 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.""")
  6615. MAV_COMP_ID_USER47 = 71
  6616. 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.""")
  6617. MAV_COMP_ID_USER48 = 72
  6618. 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.""")
  6619. MAV_COMP_ID_USER49 = 73
  6620. 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.""")
  6621. MAV_COMP_ID_USER50 = 74
  6622. 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.""")
  6623. MAV_COMP_ID_USER51 = 75
  6624. 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.""")
  6625. MAV_COMP_ID_USER52 = 76
  6626. 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.""")
  6627. MAV_COMP_ID_USER53 = 77
  6628. 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.""")
  6629. MAV_COMP_ID_USER54 = 78
  6630. 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.""")
  6631. MAV_COMP_ID_USER55 = 79
  6632. 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.""")
  6633. MAV_COMP_ID_USER56 = 80
  6634. 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.""")
  6635. MAV_COMP_ID_USER57 = 81
  6636. 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.""")
  6637. MAV_COMP_ID_USER58 = 82
  6638. 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.""")
  6639. MAV_COMP_ID_USER59 = 83
  6640. 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.""")
  6641. MAV_COMP_ID_USER60 = 84
  6642. 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.""")
  6643. MAV_COMP_ID_USER61 = 85
  6644. 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.""")
  6645. MAV_COMP_ID_USER62 = 86
  6646. 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.""")
  6647. MAV_COMP_ID_USER63 = 87
  6648. 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.""")
  6649. MAV_COMP_ID_USER64 = 88
  6650. 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.""")
  6651. MAV_COMP_ID_USER65 = 89
  6652. 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.""")
  6653. MAV_COMP_ID_USER66 = 90
  6654. 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.""")
  6655. MAV_COMP_ID_USER67 = 91
  6656. 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.""")
  6657. MAV_COMP_ID_USER68 = 92
  6658. 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.""")
  6659. MAV_COMP_ID_USER69 = 93
  6660. 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.""")
  6661. MAV_COMP_ID_USER70 = 94
  6662. 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.""")
  6663. MAV_COMP_ID_USER71 = 95
  6664. 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.""")
  6665. MAV_COMP_ID_USER72 = 96
  6666. 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.""")
  6667. MAV_COMP_ID_USER73 = 97
  6668. 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.""")
  6669. MAV_COMP_ID_USER74 = 98
  6670. 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.""")
  6671. MAV_COMP_ID_USER75 = 99
  6672. 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.""")
  6673. MAV_COMP_ID_CAMERA = 100
  6674. enums["MAV_COMPONENT"][100] = EnumEntry("MAV_COMP_ID_CAMERA", """Camera #1.""")
  6675. MAV_COMP_ID_CAMERA2 = 101
  6676. enums["MAV_COMPONENT"][101] = EnumEntry("MAV_COMP_ID_CAMERA2", """Camera #2.""")
  6677. MAV_COMP_ID_CAMERA3 = 102
  6678. enums["MAV_COMPONENT"][102] = EnumEntry("MAV_COMP_ID_CAMERA3", """Camera #3.""")
  6679. MAV_COMP_ID_CAMERA4 = 103
  6680. enums["MAV_COMPONENT"][103] = EnumEntry("MAV_COMP_ID_CAMERA4", """Camera #4.""")
  6681. MAV_COMP_ID_CAMERA5 = 104
  6682. enums["MAV_COMPONENT"][104] = EnumEntry("MAV_COMP_ID_CAMERA5", """Camera #5.""")
  6683. MAV_COMP_ID_CAMERA6 = 105
  6684. enums["MAV_COMPONENT"][105] = EnumEntry("MAV_COMP_ID_CAMERA6", """Camera #6.""")
  6685. MAV_COMP_ID_SERVO1 = 140
  6686. enums["MAV_COMPONENT"][140] = EnumEntry("MAV_COMP_ID_SERVO1", """Servo #1.""")
  6687. MAV_COMP_ID_SERVO2 = 141
  6688. enums["MAV_COMPONENT"][141] = EnumEntry("MAV_COMP_ID_SERVO2", """Servo #2.""")
  6689. MAV_COMP_ID_SERVO3 = 142
  6690. enums["MAV_COMPONENT"][142] = EnumEntry("MAV_COMP_ID_SERVO3", """Servo #3.""")
  6691. MAV_COMP_ID_SERVO4 = 143
  6692. enums["MAV_COMPONENT"][143] = EnumEntry("MAV_COMP_ID_SERVO4", """Servo #4.""")
  6693. MAV_COMP_ID_SERVO5 = 144
  6694. enums["MAV_COMPONENT"][144] = EnumEntry("MAV_COMP_ID_SERVO5", """Servo #5.""")
  6695. MAV_COMP_ID_SERVO6 = 145
  6696. enums["MAV_COMPONENT"][145] = EnumEntry("MAV_COMP_ID_SERVO6", """Servo #6.""")
  6697. MAV_COMP_ID_SERVO7 = 146
  6698. enums["MAV_COMPONENT"][146] = EnumEntry("MAV_COMP_ID_SERVO7", """Servo #7.""")
  6699. MAV_COMP_ID_SERVO8 = 147
  6700. enums["MAV_COMPONENT"][147] = EnumEntry("MAV_COMP_ID_SERVO8", """Servo #8.""")
  6701. MAV_COMP_ID_SERVO9 = 148
  6702. enums["MAV_COMPONENT"][148] = EnumEntry("MAV_COMP_ID_SERVO9", """Servo #9.""")
  6703. MAV_COMP_ID_SERVO10 = 149
  6704. enums["MAV_COMPONENT"][149] = EnumEntry("MAV_COMP_ID_SERVO10", """Servo #10.""")
  6705. MAV_COMP_ID_SERVO11 = 150
  6706. enums["MAV_COMPONENT"][150] = EnumEntry("MAV_COMP_ID_SERVO11", """Servo #11.""")
  6707. MAV_COMP_ID_SERVO12 = 151
  6708. enums["MAV_COMPONENT"][151] = EnumEntry("MAV_COMP_ID_SERVO12", """Servo #12.""")
  6709. MAV_COMP_ID_SERVO13 = 152
  6710. enums["MAV_COMPONENT"][152] = EnumEntry("MAV_COMP_ID_SERVO13", """Servo #13.""")
  6711. MAV_COMP_ID_SERVO14 = 153
  6712. enums["MAV_COMPONENT"][153] = EnumEntry("MAV_COMP_ID_SERVO14", """Servo #14.""")
  6713. MAV_COMP_ID_GIMBAL = 154
  6714. enums["MAV_COMPONENT"][154] = EnumEntry("MAV_COMP_ID_GIMBAL", """Gimbal #1.""")
  6715. MAV_COMP_ID_LOG = 155
  6716. enums["MAV_COMPONENT"][155] = EnumEntry("MAV_COMP_ID_LOG", """Logging component.""")
  6717. MAV_COMP_ID_ADSB = 156
  6718. enums["MAV_COMPONENT"][156] = EnumEntry("MAV_COMP_ID_ADSB", """Automatic Dependent Surveillance-Broadcast (ADS-B) component.""")
  6719. MAV_COMP_ID_OSD = 157
  6720. enums["MAV_COMPONENT"][157] = EnumEntry("MAV_COMP_ID_OSD", """On Screen Display (OSD) devices for video links.""")
  6721. MAV_COMP_ID_PERIPHERAL = 158
  6722. enums["MAV_COMPONENT"][158] = EnumEntry("MAV_COMP_ID_PERIPHERAL", """Generic autopilot peripheral component ID. Meant for devices that do not implement the parameter microservice.""")
  6723. MAV_COMP_ID_QX1_GIMBAL = 159
  6724. enums["MAV_COMPONENT"][159] = EnumEntry("MAV_COMP_ID_QX1_GIMBAL", """Gimbal ID for QX1.""")
  6725. MAV_COMP_ID_FLARM = 160
  6726. enums["MAV_COMPONENT"][160] = EnumEntry("MAV_COMP_ID_FLARM", """FLARM collision alert component.""")
  6727. MAV_COMP_ID_PARACHUTE = 161
  6728. enums["MAV_COMPONENT"][161] = EnumEntry("MAV_COMP_ID_PARACHUTE", """Parachute component.""")
  6729. MAV_COMP_ID_WINCH = 169
  6730. enums["MAV_COMPONENT"][169] = EnumEntry("MAV_COMP_ID_WINCH", """Winch component.""")
  6731. MAV_COMP_ID_GIMBAL2 = 171
  6732. enums["MAV_COMPONENT"][171] = EnumEntry("MAV_COMP_ID_GIMBAL2", """Gimbal #2.""")
  6733. MAV_COMP_ID_GIMBAL3 = 172
  6734. enums["MAV_COMPONENT"][172] = EnumEntry("MAV_COMP_ID_GIMBAL3", """Gimbal #3.""")
  6735. MAV_COMP_ID_GIMBAL4 = 173
  6736. enums["MAV_COMPONENT"][173] = EnumEntry("MAV_COMP_ID_GIMBAL4", """Gimbal #4""")
  6737. MAV_COMP_ID_GIMBAL5 = 174
  6738. enums["MAV_COMPONENT"][174] = EnumEntry("MAV_COMP_ID_GIMBAL5", """Gimbal #5.""")
  6739. MAV_COMP_ID_GIMBAL6 = 175
  6740. enums["MAV_COMPONENT"][175] = EnumEntry("MAV_COMP_ID_GIMBAL6", """Gimbal #6.""")
  6741. MAV_COMP_ID_BATTERY = 180
  6742. enums["MAV_COMPONENT"][180] = EnumEntry("MAV_COMP_ID_BATTERY", """Battery #1.""")
  6743. MAV_COMP_ID_BATTERY2 = 181
  6744. enums["MAV_COMPONENT"][181] = EnumEntry("MAV_COMP_ID_BATTERY2", """Battery #2.""")
  6745. MAV_COMP_ID_MAVCAN = 189
  6746. enums["MAV_COMPONENT"][189] = EnumEntry("MAV_COMP_ID_MAVCAN", """CAN over MAVLink client.""")
  6747. MAV_COMP_ID_MISSIONPLANNER = 190
  6748. enums["MAV_COMPONENT"][190] = EnumEntry("MAV_COMP_ID_MISSIONPLANNER", """Component that can generate/supply a mission flight plan (e.g. GCS or developer API).""")
  6749. MAV_COMP_ID_ONBOARD_COMPUTER = 191
  6750. 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.""")
  6751. MAV_COMP_ID_ONBOARD_COMPUTER2 = 192
  6752. 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.""")
  6753. MAV_COMP_ID_ONBOARD_COMPUTER3 = 193
  6754. 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.""")
  6755. MAV_COMP_ID_ONBOARD_COMPUTER4 = 194
  6756. 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.""")
  6757. MAV_COMP_ID_PATHPLANNER = 195
  6758. 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.).""")
  6759. MAV_COMP_ID_OBSTACLE_AVOIDANCE = 196
  6760. enums["MAV_COMPONENT"][196] = EnumEntry("MAV_COMP_ID_OBSTACLE_AVOIDANCE", """Component that plans a collision free path between two points.""")
  6761. MAV_COMP_ID_VISUAL_INERTIAL_ODOMETRY = 197
  6762. enums["MAV_COMPONENT"][197] = EnumEntry("MAV_COMP_ID_VISUAL_INERTIAL_ODOMETRY", """Component that provides position estimates using VIO techniques.""")
  6763. MAV_COMP_ID_PAIRING_MANAGER = 198
  6764. enums["MAV_COMPONENT"][198] = EnumEntry("MAV_COMP_ID_PAIRING_MANAGER", """Component that manages pairing of vehicle and GCS.""")
  6765. MAV_COMP_ID_IMU = 200
  6766. enums["MAV_COMPONENT"][200] = EnumEntry("MAV_COMP_ID_IMU", """Inertial Measurement Unit (IMU) #1.""")
  6767. MAV_COMP_ID_IMU_2 = 201
  6768. enums["MAV_COMPONENT"][201] = EnumEntry("MAV_COMP_ID_IMU_2", """Inertial Measurement Unit (IMU) #2.""")
  6769. MAV_COMP_ID_IMU_3 = 202
  6770. enums["MAV_COMPONENT"][202] = EnumEntry("MAV_COMP_ID_IMU_3", """Inertial Measurement Unit (IMU) #3.""")
  6771. MAV_COMP_ID_GPS = 220
  6772. enums["MAV_COMPONENT"][220] = EnumEntry("MAV_COMP_ID_GPS", """GPS #1.""")
  6773. MAV_COMP_ID_GPS2 = 221
  6774. enums["MAV_COMPONENT"][221] = EnumEntry("MAV_COMP_ID_GPS2", """GPS #2.""")
  6775. MAV_COMP_ID_ODID_TXRX_1 = 236
  6776. enums["MAV_COMPONENT"][236] = EnumEntry("MAV_COMP_ID_ODID_TXRX_1", """Open Drone ID transmitter/receiver (Bluetooth/WiFi/Internet).""")
  6777. MAV_COMP_ID_ODID_TXRX_2 = 237
  6778. enums["MAV_COMPONENT"][237] = EnumEntry("MAV_COMP_ID_ODID_TXRX_2", """Open Drone ID transmitter/receiver (Bluetooth/WiFi/Internet).""")
  6779. MAV_COMP_ID_ODID_TXRX_3 = 238
  6780. enums["MAV_COMPONENT"][238] = EnumEntry("MAV_COMP_ID_ODID_TXRX_3", """Open Drone ID transmitter/receiver (Bluetooth/WiFi/Internet).""")
  6781. MAV_COMP_ID_UDP_BRIDGE = 240
  6782. enums["MAV_COMPONENT"][240] = EnumEntry("MAV_COMP_ID_UDP_BRIDGE", """Component to bridge MAVLink to UDP (i.e. from a UART).""")
  6783. MAV_COMP_ID_UART_BRIDGE = 241
  6784. enums["MAV_COMPONENT"][241] = EnumEntry("MAV_COMP_ID_UART_BRIDGE", """Component to bridge to UART (i.e. from UDP).""")
  6785. MAV_COMP_ID_TUNNEL_NODE = 242
  6786. enums["MAV_COMPONENT"][242] = EnumEntry("MAV_COMP_ID_TUNNEL_NODE", """Component handling TUNNEL messages (e.g. vendor specific GUI of a component).""")
  6787. MAV_COMP_ID_SYSTEM_CONTROL = 250
  6788. 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.).""")
  6789. MAV_COMPONENT_ENUM_END = 251
  6790. enums["MAV_COMPONENT"][251] = EnumEntry("MAV_COMPONENT_ENUM_END", """""")
  6791. # message IDs
  6792. MAVLINK_MSG_ID_BAD_DATA = -1
  6793. MAVLINK_MSG_ID_UNKNOWN = -2
  6794. MAVLINK_MSG_ID_VKINS_STATUS = 53000
  6795. MAVLINK_MSG_ID_VKFMU_STATUS = 53001
  6796. MAVLINK_MSG_ID_VK_ROI_TARGET = 53002
  6797. MAVLINK_MSG_ID_VK_BMS_STATUS = 53003
  6798. MAVLINK_MSG_ID_VK_FORMATION_LEADER = 53004
  6799. MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS = 53005
  6800. MAVLINK_MSG_ID_VK_COMP_VERSION = 53006
  6801. MAVLINK_MSG_ID_VK_MOSAICH_GPS_RAW = 53007
  6802. MAVLINK_MSG_ID_VK_DIGI_ESC_STATUS = 53008
  6803. MAVLINK_MSG_ID_VK_FIXEDWING_CONTROL_VALUE = 53009
  6804. MAVLINK_MSG_ID_VK_FIXEDWING_SERVO_SIGNAL = 53010
  6805. MAVLINK_MSG_ID_VK_FIXEDWING_RTL_CIRCLE_WP = 53011
  6806. MAVLINK_MSG_ID_VK_AIRSPEED = 53012
  6807. MAVLINK_MSG_ID_VK_PARACHUTE_STATUS = 53020
  6808. MAVLINK_MSG_ID_VK_WEIGHER_STATE = 53021
  6809. MAVLINK_MSG_ID_VK_PAYLOAD_DATA_RELAY = 53022
  6810. MAVLINK_MSG_ID_VK_EXTERNAL_INS_NAV = 53023
  6811. MAVLINK_MSG_ID_VK_RTK_BASE_PVT = 53024
  6812. MAVLINK_MSG_ID_VKFLY_EDU_STATUS = 53025
  6813. MAVLINK_MSG_ID_VKFLY_EDU_STATUS_ACK = 53026
  6814. MAVLINK_MSG_ID_VKFLY_TIANQU_SERVO_STATUS = 53030
  6815. MAVLINK_MSG_ID_VK_ADC_EXT_STATUS = 53031
  6816. MAVLINK_MSG_ID_VK_FW_UPDATE_BEGIN = 53100
  6817. MAVLINK_MSG_ID_VK_FW_UPDATE_ACK = 53101
  6818. MAVLINK_MSG_ID_VK_FW_UPDATE_DATA_REQUEST = 53102
  6819. MAVLINK_MSG_ID_VK_FW_UPDATE_DATA = 53103
  6820. MAVLINK_MSG_ID_VK_UPDATE_TERMINATE = 53104
  6821. MAVLINK_MSG_ID_VK_CACC_MANAGER_VERIFY = 53110
  6822. MAVLINK_MSG_ID_VK_EXT_VISION_FUSION = 53111
  6823. MAVLINK_MSG_ID_KMUB_STATUS = 53200
  6824. MAVLINK_MSG_ID_QINGXIE_BMS = 53300
  6825. MAVLINK_MSG_ID_SYS_STATUS = 1
  6826. MAVLINK_MSG_ID_SYSTEM_TIME = 2
  6827. MAVLINK_MSG_ID_PING = 4
  6828. MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL = 5
  6829. MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK = 6
  6830. MAVLINK_MSG_ID_AUTH_KEY = 7
  6831. MAVLINK_MSG_ID_LINK_NODE_STATUS = 8
  6832. MAVLINK_MSG_ID_SET_MODE = 11
  6833. MAVLINK_MSG_ID_PARAM_REQUEST_READ = 20
  6834. MAVLINK_MSG_ID_PARAM_REQUEST_LIST = 21
  6835. MAVLINK_MSG_ID_PARAM_VALUE = 22
  6836. MAVLINK_MSG_ID_PARAM_SET = 23
  6837. MAVLINK_MSG_ID_GPS_RAW_INT = 24
  6838. MAVLINK_MSG_ID_GPS_STATUS = 25
  6839. MAVLINK_MSG_ID_SCALED_IMU = 26
  6840. MAVLINK_MSG_ID_RAW_IMU = 27
  6841. MAVLINK_MSG_ID_RAW_PRESSURE = 28
  6842. MAVLINK_MSG_ID_SCALED_PRESSURE = 29
  6843. MAVLINK_MSG_ID_ATTITUDE = 30
  6844. MAVLINK_MSG_ID_ATTITUDE_QUATERNION = 31
  6845. MAVLINK_MSG_ID_LOCAL_POSITION_NED = 32
  6846. MAVLINK_MSG_ID_GLOBAL_POSITION_INT = 33
  6847. MAVLINK_MSG_ID_RC_CHANNELS_SCALED = 34
  6848. MAVLINK_MSG_ID_RC_CHANNELS_RAW = 35
  6849. MAVLINK_MSG_ID_SERVO_OUTPUT_RAW = 36
  6850. MAVLINK_MSG_ID_MISSION_REQUEST_PARTIAL_LIST = 37
  6851. MAVLINK_MSG_ID_MISSION_WRITE_PARTIAL_LIST = 38
  6852. MAVLINK_MSG_ID_MISSION_ITEM = 39
  6853. MAVLINK_MSG_ID_MISSION_REQUEST = 40
  6854. MAVLINK_MSG_ID_MISSION_SET_CURRENT = 41
  6855. MAVLINK_MSG_ID_MISSION_CURRENT = 42
  6856. MAVLINK_MSG_ID_MISSION_REQUEST_LIST = 43
  6857. MAVLINK_MSG_ID_MISSION_COUNT = 44
  6858. MAVLINK_MSG_ID_MISSION_CLEAR_ALL = 45
  6859. MAVLINK_MSG_ID_MISSION_ITEM_REACHED = 46
  6860. MAVLINK_MSG_ID_MISSION_ACK = 47
  6861. MAVLINK_MSG_ID_SET_GPS_GLOBAL_ORIGIN = 48
  6862. MAVLINK_MSG_ID_GPS_GLOBAL_ORIGIN = 49
  6863. MAVLINK_MSG_ID_PARAM_MAP_RC = 50
  6864. MAVLINK_MSG_ID_MISSION_REQUEST_INT = 51
  6865. MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA = 54
  6866. MAVLINK_MSG_ID_SAFETY_ALLOWED_AREA = 55
  6867. MAVLINK_MSG_ID_ATTITUDE_QUATERNION_COV = 61
  6868. MAVLINK_MSG_ID_NAV_CONTROLLER_OUTPUT = 62
  6869. MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV = 63
  6870. MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV = 64
  6871. MAVLINK_MSG_ID_RC_CHANNELS = 65
  6872. MAVLINK_MSG_ID_REQUEST_DATA_STREAM = 66
  6873. MAVLINK_MSG_ID_DATA_STREAM = 67
  6874. MAVLINK_MSG_ID_MANUAL_CONTROL = 69
  6875. MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE = 70
  6876. MAVLINK_MSG_ID_MISSION_ITEM_INT = 73
  6877. MAVLINK_MSG_ID_VFR_HUD = 74
  6878. MAVLINK_MSG_ID_COMMAND_INT = 75
  6879. MAVLINK_MSG_ID_COMMAND_LONG = 76
  6880. MAVLINK_MSG_ID_COMMAND_ACK = 77
  6881. MAVLINK_MSG_ID_COMMAND_CANCEL = 80
  6882. MAVLINK_MSG_ID_MANUAL_SETPOINT = 81
  6883. MAVLINK_MSG_ID_SET_ATTITUDE_TARGET = 82
  6884. MAVLINK_MSG_ID_ATTITUDE_TARGET = 83
  6885. MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED = 84
  6886. MAVLINK_MSG_ID_POSITION_TARGET_LOCAL_NED = 85
  6887. MAVLINK_MSG_ID_SET_POSITION_TARGET_GLOBAL_INT = 86
  6888. MAVLINK_MSG_ID_POSITION_TARGET_GLOBAL_INT = 87
  6889. MAVLINK_MSG_ID_LOCAL_POSITION_NED_SYSTEM_GLOBAL_OFFSET = 89
  6890. MAVLINK_MSG_ID_HIL_STATE = 90
  6891. MAVLINK_MSG_ID_HIL_CONTROLS = 91
  6892. MAVLINK_MSG_ID_HIL_RC_INPUTS_RAW = 92
  6893. MAVLINK_MSG_ID_HIL_ACTUATOR_CONTROLS = 93
  6894. MAVLINK_MSG_ID_OPTICAL_FLOW = 100
  6895. MAVLINK_MSG_ID_GLOBAL_VISION_POSITION_ESTIMATE = 101
  6896. MAVLINK_MSG_ID_VISION_POSITION_ESTIMATE = 102
  6897. MAVLINK_MSG_ID_VISION_SPEED_ESTIMATE = 103
  6898. MAVLINK_MSG_ID_VICON_POSITION_ESTIMATE = 104
  6899. MAVLINK_MSG_ID_HIGHRES_IMU = 105
  6900. MAVLINK_MSG_ID_OPTICAL_FLOW_RAD = 106
  6901. MAVLINK_MSG_ID_HIL_SENSOR = 107
  6902. MAVLINK_MSG_ID_SIM_STATE = 108
  6903. MAVLINK_MSG_ID_RADIO_STATUS = 109
  6904. MAVLINK_MSG_ID_FILE_TRANSFER_PROTOCOL = 110
  6905. MAVLINK_MSG_ID_TIMESYNC = 111
  6906. MAVLINK_MSG_ID_CAMERA_TRIGGER = 112
  6907. MAVLINK_MSG_ID_HIL_GPS = 113
  6908. MAVLINK_MSG_ID_HIL_OPTICAL_FLOW = 114
  6909. MAVLINK_MSG_ID_HIL_STATE_QUATERNION = 115
  6910. MAVLINK_MSG_ID_SCALED_IMU2 = 116
  6911. MAVLINK_MSG_ID_LOG_REQUEST_LIST = 117
  6912. MAVLINK_MSG_ID_LOG_ENTRY = 118
  6913. MAVLINK_MSG_ID_LOG_REQUEST_DATA = 119
  6914. MAVLINK_MSG_ID_LOG_DATA = 120
  6915. MAVLINK_MSG_ID_LOG_ERASE = 121
  6916. MAVLINK_MSG_ID_LOG_REQUEST_END = 122
  6917. MAVLINK_MSG_ID_GPS_INJECT_DATA = 123
  6918. MAVLINK_MSG_ID_GPS2_RAW = 124
  6919. MAVLINK_MSG_ID_POWER_STATUS = 125
  6920. MAVLINK_MSG_ID_SERIAL_CONTROL = 126
  6921. MAVLINK_MSG_ID_GPS_RTK = 127
  6922. MAVLINK_MSG_ID_GPS2_RTK = 128
  6923. MAVLINK_MSG_ID_SCALED_IMU3 = 129
  6924. MAVLINK_MSG_ID_DATA_TRANSMISSION_HANDSHAKE = 130
  6925. MAVLINK_MSG_ID_ENCAPSULATED_DATA = 131
  6926. MAVLINK_MSG_ID_DISTANCE_SENSOR = 132
  6927. MAVLINK_MSG_ID_TERRAIN_REQUEST = 133
  6928. MAVLINK_MSG_ID_TERRAIN_DATA = 134
  6929. MAVLINK_MSG_ID_TERRAIN_CHECK = 135
  6930. MAVLINK_MSG_ID_TERRAIN_REPORT = 136
  6931. MAVLINK_MSG_ID_SCALED_PRESSURE2 = 137
  6932. MAVLINK_MSG_ID_ATT_POS_MOCAP = 138
  6933. MAVLINK_MSG_ID_SET_ACTUATOR_CONTROL_TARGET = 139
  6934. MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET = 140
  6935. MAVLINK_MSG_ID_ALTITUDE = 141
  6936. MAVLINK_MSG_ID_RESOURCE_REQUEST = 142
  6937. MAVLINK_MSG_ID_SCALED_PRESSURE3 = 143
  6938. MAVLINK_MSG_ID_FOLLOW_TARGET = 144
  6939. MAVLINK_MSG_ID_CONTROL_SYSTEM_STATE = 146
  6940. MAVLINK_MSG_ID_BATTERY_STATUS = 147
  6941. MAVLINK_MSG_ID_AUTOPILOT_VERSION = 148
  6942. MAVLINK_MSG_ID_LANDING_TARGET = 149
  6943. MAVLINK_MSG_ID_FENCE_STATUS = 162
  6944. MAVLINK_MSG_ID_MAG_CAL_REPORT = 192
  6945. MAVLINK_MSG_ID_EFI_STATUS = 225
  6946. MAVLINK_MSG_ID_ESTIMATOR_STATUS = 230
  6947. MAVLINK_MSG_ID_WIND_COV = 231
  6948. MAVLINK_MSG_ID_GPS_INPUT = 232
  6949. MAVLINK_MSG_ID_GPS_RTCM_DATA = 233
  6950. MAVLINK_MSG_ID_HIGH_LATENCY = 234
  6951. MAVLINK_MSG_ID_HIGH_LATENCY2 = 235
  6952. MAVLINK_MSG_ID_VIBRATION = 241
  6953. MAVLINK_MSG_ID_HOME_POSITION = 242
  6954. MAVLINK_MSG_ID_SET_HOME_POSITION = 243
  6955. MAVLINK_MSG_ID_MESSAGE_INTERVAL = 244
  6956. MAVLINK_MSG_ID_EXTENDED_SYS_STATE = 245
  6957. MAVLINK_MSG_ID_ADSB_VEHICLE = 246
  6958. MAVLINK_MSG_ID_COLLISION = 247
  6959. MAVLINK_MSG_ID_V2_EXTENSION = 248
  6960. MAVLINK_MSG_ID_MEMORY_VECT = 249
  6961. MAVLINK_MSG_ID_DEBUG_VECT = 250
  6962. MAVLINK_MSG_ID_NAMED_VALUE_FLOAT = 251
  6963. MAVLINK_MSG_ID_NAMED_VALUE_INT = 252
  6964. MAVLINK_MSG_ID_STATUSTEXT = 253
  6965. MAVLINK_MSG_ID_DEBUG = 254
  6966. MAVLINK_MSG_ID_SETUP_SIGNING = 256
  6967. MAVLINK_MSG_ID_BUTTON_CHANGE = 257
  6968. MAVLINK_MSG_ID_PLAY_TUNE = 258
  6969. MAVLINK_MSG_ID_CAMERA_INFORMATION = 259
  6970. MAVLINK_MSG_ID_CAMERA_SETTINGS = 260
  6971. MAVLINK_MSG_ID_STORAGE_INFORMATION = 261
  6972. MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS = 262
  6973. MAVLINK_MSG_ID_CAMERA_IMAGE_CAPTURED = 263
  6974. MAVLINK_MSG_ID_FLIGHT_INFORMATION = 264
  6975. MAVLINK_MSG_ID_MOUNT_ORIENTATION = 265
  6976. MAVLINK_MSG_ID_LOGGING_DATA = 266
  6977. MAVLINK_MSG_ID_LOGGING_DATA_ACKED = 267
  6978. MAVLINK_MSG_ID_LOGGING_ACK = 268
  6979. MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION = 269
  6980. MAVLINK_MSG_ID_VIDEO_STREAM_STATUS = 270
  6981. MAVLINK_MSG_ID_CAMERA_FOV_STATUS = 271
  6982. MAVLINK_MSG_ID_CAMERA_TRACKING_IMAGE_STATUS = 275
  6983. MAVLINK_MSG_ID_CAMERA_TRACKING_GEO_STATUS = 276
  6984. MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION = 280
  6985. MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS = 281
  6986. MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_ATTITUDE = 282
  6987. MAVLINK_MSG_ID_GIMBAL_DEVICE_INFORMATION = 283
  6988. MAVLINK_MSG_ID_GIMBAL_DEVICE_SET_ATTITUDE = 284
  6989. MAVLINK_MSG_ID_GIMBAL_DEVICE_ATTITUDE_STATUS = 285
  6990. MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE = 286
  6991. MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_PITCHYAW = 287
  6992. MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_MANUAL_CONTROL = 288
  6993. MAVLINK_MSG_ID_ESC_INFO = 290
  6994. MAVLINK_MSG_ID_ESC_STATUS = 291
  6995. MAVLINK_MSG_ID_WIFI_CONFIG_AP = 299
  6996. MAVLINK_MSG_ID_AIS_VESSEL = 301
  6997. MAVLINK_MSG_ID_UAVCAN_NODE_STATUS = 310
  6998. MAVLINK_MSG_ID_UAVCAN_NODE_INFO = 311
  6999. MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ = 320
  7000. MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST = 321
  7001. MAVLINK_MSG_ID_PARAM_EXT_VALUE = 322
  7002. MAVLINK_MSG_ID_PARAM_EXT_SET = 323
  7003. MAVLINK_MSG_ID_PARAM_EXT_ACK = 324
  7004. MAVLINK_MSG_ID_OBSTACLE_DISTANCE = 330
  7005. MAVLINK_MSG_ID_ODOMETRY = 331
  7006. MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS = 332
  7007. MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_BEZIER = 333
  7008. MAVLINK_MSG_ID_CELLULAR_STATUS = 334
  7009. MAVLINK_MSG_ID_ISBD_LINK_STATUS = 335
  7010. MAVLINK_MSG_ID_CELLULAR_CONFIG = 336
  7011. MAVLINK_MSG_ID_RAW_RPM = 339
  7012. MAVLINK_MSG_ID_UTM_GLOBAL_POSITION = 340
  7013. MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY = 350
  7014. MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS = 360
  7015. MAVLINK_MSG_ID_BATTERY_INFO = 370
  7016. MAVLINK_MSG_ID_GENERATOR_STATUS = 373
  7017. MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS = 375
  7018. MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET = 380
  7019. MAVLINK_MSG_ID_TUNNEL = 385
  7020. MAVLINK_MSG_ID_CAN_FRAME = 386
  7021. MAVLINK_MSG_ID_ONBOARD_COMPUTER_STATUS = 390
  7022. MAVLINK_MSG_ID_COMPONENT_INFORMATION = 395
  7023. MAVLINK_MSG_ID_COMPONENT_METADATA = 397
  7024. MAVLINK_MSG_ID_PLAY_TUNE_V2 = 400
  7025. MAVLINK_MSG_ID_SUPPORTED_TUNES = 401
  7026. MAVLINK_MSG_ID_EVENT = 410
  7027. MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE = 411
  7028. MAVLINK_MSG_ID_REQUEST_EVENT = 412
  7029. MAVLINK_MSG_ID_RESPONSE_EVENT_ERROR = 413
  7030. MAVLINK_MSG_ID_CANFD_FRAME = 387
  7031. MAVLINK_MSG_ID_CAN_FILTER_MODIFY = 388
  7032. MAVLINK_MSG_ID_WHEEL_DISTANCE = 9000
  7033. MAVLINK_MSG_ID_WINCH_STATUS = 9005
  7034. MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID = 12900
  7035. MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION = 12901
  7036. MAVLINK_MSG_ID_OPEN_DRONE_ID_AUTHENTICATION = 12902
  7037. MAVLINK_MSG_ID_OPEN_DRONE_ID_SELF_ID = 12903
  7038. MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM = 12904
  7039. MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID = 12905
  7040. MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK = 12915
  7041. MAVLINK_MSG_ID_OPEN_DRONE_ID_ARM_STATUS = 12918
  7042. MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE = 12919
  7043. MAVLINK_MSG_ID_HYGROMETER_SENSOR = 12920
  7044. MAVLINK_MSG_ID_HEARTBEAT = 0
  7045. MAVLINK_MSG_ID_PROTOCOL_VERSION = 300
  7046. class MAVLink_vkins_status_message(MAVLink_message):
  7047. """
  7048. """
  7049. id = MAVLINK_MSG_ID_VKINS_STATUS
  7050. msgname = "VKINS_STATUS"
  7051. 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"]
  7052. 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"]
  7053. 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"]
  7054. fielddisplays_by_name: Dict[str, str] = {"nav_status": "bitmask"}
  7055. fieldenums_by_name: Dict[str, str] = {"nav_status": "VKFLY_VKINS_NAV_STATUS", "mag_calib_stage": "VKFLY_MAGCALIB_STAGE"}
  7056. 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"}
  7057. native_format = bytearray(b"<IfiiffhBBBBBBBBBBB")
  7058. orders = [0, 7, 8, 9, 10, 11, 12, 13, 14, 1, 2, 3, 4, 5, 15, 16, 6, 17]
  7059. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  7060. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  7061. crc_extra = 22
  7062. unpacker = struct.Struct("<IfiiffhBBBBBBBBBBB")
  7063. instance_field = None
  7064. instance_offset = -1
  7065. 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):
  7066. MAVLink_message.__init__(self, MAVLink_vkins_status_message.id, MAVLink_vkins_status_message.msgname)
  7067. self._fieldnames = MAVLink_vkins_status_message.fieldnames
  7068. self._instance_field = MAVLink_vkins_status_message.instance_field
  7069. self._instance_offset = MAVLink_vkins_status_message.instance_offset
  7070. self.time_boot_ms = time_boot_ms
  7071. self.nav_status = nav_status
  7072. self.s_flag1 = s_flag1
  7073. self.s_flag2 = s_flag2
  7074. self.s_flag3 = s_flag3
  7075. self.s_flag4 = s_flag4
  7076. self.s_flag5 = s_flag5
  7077. self.s_flag6 = s_flag6
  7078. self.mag_calib_stage = mag_calib_stage
  7079. self.g0 = g0
  7080. self.raw_latitude = raw_latitude
  7081. self.raw_longitude = raw_longitude
  7082. self.baro_alt = baro_alt
  7083. self.raw_gps_alt = raw_gps_alt
  7084. self.solv_psat_num = solv_psat_num
  7085. self.solv_hsat_num = solv_hsat_num
  7086. self.temperature = temperature
  7087. self.vibe_coe = vibe_coe
  7088. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7089. 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)
  7090. # Define name on the class for backwards compatibility (it is now msgname).
  7091. # Done with setattr to hide the class variable from mypy.
  7092. setattr(MAVLink_vkins_status_message, "name", mavlink_msg_deprecated_name_property())
  7093. class MAVLink_vkfmu_status_message(MAVLink_message):
  7094. """
  7095. """
  7096. id = MAVLINK_MSG_ID_VKFMU_STATUS
  7097. msgname = "VKFMU_STATUS"
  7098. 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"]
  7099. 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"]
  7100. fieldtypes = ["uint32_t", "uint8_t", "uint8_t", "uint8_t", "uint16_t", "uint16_t", "uint32_t", "uint32_t", "uint16_t", "float", "uint16_t"]
  7101. fielddisplays_by_name: Dict[str, str] = {}
  7102. fieldenums_by_name: Dict[str, str] = {"rtl_reason": "VKFLY_RTL_REASON", "loiter_reason": "VKFLY_LOITER_REASON"}
  7103. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "flight_time": "s", "dist_to_tar": "cm", "flight_dist": "m"}
  7104. native_format = bytearray(b"<IIIfHHHBBBH")
  7105. orders = [0, 7, 8, 9, 4, 5, 1, 2, 6, 3, 10]
  7106. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  7107. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  7108. crc_extra = 136
  7109. unpacker = struct.Struct("<IIIfHHHBBBH")
  7110. instance_field = None
  7111. instance_offset = -1
  7112. 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):
  7113. MAVLink_message.__init__(self, MAVLink_vkfmu_status_message.id, MAVLink_vkfmu_status_message.msgname)
  7114. self._fieldnames = MAVLink_vkfmu_status_message.fieldnames
  7115. self._instance_field = MAVLink_vkfmu_status_message.instance_field
  7116. self._instance_offset = MAVLink_vkfmu_status_message.instance_offset
  7117. self.time_boot_ms = time_boot_ms
  7118. self.rtl_reason = rtl_reason
  7119. self.loiter_reason = loiter_reason
  7120. self.s_flag3 = s_flag3
  7121. self.ups_volt = ups_volt
  7122. self.adc_volt = adc_volt
  7123. self.flight_time = flight_time
  7124. self.dist_to_tar = dist_to_tar
  7125. self.servo_state = servo_state
  7126. self.flight_dist = flight_dist
  7127. self.servo_display = servo_display
  7128. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7129. 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)
  7130. # Define name on the class for backwards compatibility (it is now msgname).
  7131. # Done with setattr to hide the class variable from mypy.
  7132. setattr(MAVLink_vkfmu_status_message, "name", mavlink_msg_deprecated_name_property())
  7133. class MAVLink_vk_roi_target_message(MAVLink_message):
  7134. """
  7135. """
  7136. id = MAVLINK_MSG_ID_VK_ROI_TARGET
  7137. msgname = "VK_ROI_TARGET"
  7138. fieldnames = ["time_boot_ms", "lat", "lon", "alt", "state"]
  7139. ordered_fieldnames = ["time_boot_ms", "lat", "lon", "alt", "state"]
  7140. fieldtypes = ["uint32_t", "int32_t", "int32_t", "float", "uint16_t"]
  7141. fielddisplays_by_name: Dict[str, str] = {"state": "bitmask"}
  7142. fieldenums_by_name: Dict[str, str] = {"state": "VKFLY_ROI_STATE"}
  7143. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "lat": "degE7", "lon": "degE7", "alt": "m"}
  7144. native_format = bytearray(b"<IiifH")
  7145. orders = [0, 1, 2, 3, 4]
  7146. lengths = [1, 1, 1, 1, 1]
  7147. array_lengths = [0, 0, 0, 0, 0]
  7148. crc_extra = 75
  7149. unpacker = struct.Struct("<IiifH")
  7150. instance_field = None
  7151. instance_offset = -1
  7152. def __init__(self, time_boot_ms: int, lat: int, lon: int, alt: float, state: int):
  7153. MAVLink_message.__init__(self, MAVLink_vk_roi_target_message.id, MAVLink_vk_roi_target_message.msgname)
  7154. self._fieldnames = MAVLink_vk_roi_target_message.fieldnames
  7155. self._instance_field = MAVLink_vk_roi_target_message.instance_field
  7156. self._instance_offset = MAVLink_vk_roi_target_message.instance_offset
  7157. self.time_boot_ms = time_boot_ms
  7158. self.lat = lat
  7159. self.lon = lon
  7160. self.alt = alt
  7161. self.state = state
  7162. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7163. 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)
  7164. # Define name on the class for backwards compatibility (it is now msgname).
  7165. # Done with setattr to hide the class variable from mypy.
  7166. setattr(MAVLink_vk_roi_target_message, "name", mavlink_msg_deprecated_name_property())
  7167. class MAVLink_vk_bms_status_message(MAVLink_message):
  7168. """
  7169. battery bms status message
  7170. """
  7171. id = MAVLINK_MSG_ID_VK_BMS_STATUS
  7172. msgname = "VK_BMS_STATUS"
  7173. fieldnames = ["time_boot_ms", "voltage", "current", "temperature", "cap_percent", "bat_id", "err_code", "cell_num", "cell_volt", "cyc_cnt", "health"]
  7174. ordered_fieldnames = ["time_boot_ms", "voltage", "current", "err_code", "temperature", "cell_num", "cell_volt", "cyc_cnt", "cap_percent", "bat_id", "health"]
  7175. fieldtypes = ["uint32_t", "uint32_t", "int32_t", "int16_t", "int8_t", "uint8_t", "uint32_t", "uint16_t", "uint16_t", "uint16_t", "uint8_t"]
  7176. fielddisplays_by_name: Dict[str, str] = {"err_code": "bitmask"}
  7177. fieldenums_by_name: Dict[str, str] = {}
  7178. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "voltage": "mV", "current": "cA", "temperature": "degC", "cap_percent": "%", "cell_volt": "mV"}
  7179. native_format = bytearray(b"<IIiIhHHHbBB")
  7180. orders = [0, 1, 2, 4, 8, 9, 3, 5, 6, 7, 10]
  7181. lengths = [1, 1, 1, 1, 1, 1, 30, 1, 1, 1, 1]
  7182. array_lengths = [0, 0, 0, 0, 0, 0, 30, 0, 0, 0, 0]
  7183. crc_extra = 155
  7184. unpacker = struct.Struct("<IIiIhH30HHbBB")
  7185. instance_field = None
  7186. instance_offset = -1
  7187. 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):
  7188. MAVLink_message.__init__(self, MAVLink_vk_bms_status_message.id, MAVLink_vk_bms_status_message.msgname)
  7189. self._fieldnames = MAVLink_vk_bms_status_message.fieldnames
  7190. self._instance_field = MAVLink_vk_bms_status_message.instance_field
  7191. self._instance_offset = MAVLink_vk_bms_status_message.instance_offset
  7192. self.time_boot_ms = time_boot_ms
  7193. self.voltage = voltage
  7194. self.current = current
  7195. self.temperature = temperature
  7196. self.cap_percent = cap_percent
  7197. self.bat_id = bat_id
  7198. self.err_code = err_code
  7199. self.cell_num = cell_num
  7200. self.cell_volt = cell_volt
  7201. self.cyc_cnt = cyc_cnt
  7202. self.health = health
  7203. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7204. 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)
  7205. # Define name on the class for backwards compatibility (it is now msgname).
  7206. # Done with setattr to hide the class variable from mypy.
  7207. setattr(MAVLink_vk_bms_status_message, "name", mavlink_msg_deprecated_name_property())
  7208. class MAVLink_vk_formation_leader_message(MAVLink_message):
  7209. """
  7210. formation fly leader status message
  7211. """
  7212. id = MAVLINK_MSG_ID_VK_FORMATION_LEADER
  7213. msgname = "VK_FORMATION_LEADER"
  7214. 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"]
  7215. 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"]
  7216. 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"]
  7217. fielddisplays_by_name: Dict[str, str] = {}
  7218. fieldenums_by_name: Dict[str, str] = {"formation_type": "VKFLY_FORMATION_TYPE"}
  7219. 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"}
  7220. native_format = bytearray(b"<IIiifffffhhhHBfffff")
  7221. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 13, 9, 10, 11, 12, 14, 15, 16, 17, 18]
  7222. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  7223. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  7224. crc_extra = 219
  7225. unpacker = struct.Struct("<IIiifffffhhhHBfffff")
  7226. instance_field = None
  7227. instance_offset = -1
  7228. 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):
  7229. MAVLink_message.__init__(self, MAVLink_vk_formation_leader_message.id, MAVLink_vk_formation_leader_message.msgname)
  7230. self._fieldnames = MAVLink_vk_formation_leader_message.fieldnames
  7231. self._instance_field = MAVLink_vk_formation_leader_message.instance_field
  7232. self._instance_offset = MAVLink_vk_formation_leader_message.instance_offset
  7233. self.timestamp = timestamp
  7234. self.state = state
  7235. self.lat = lat
  7236. self.lon = lon
  7237. self.msl = msl
  7238. self.ve = ve
  7239. self.vn = vn
  7240. self.vu = vu
  7241. self.yaw = yaw
  7242. self.formation_type = formation_type
  7243. self.x_dist = x_dist
  7244. self.y_dist = y_dist
  7245. self.z_dist = z_dist
  7246. self.rect_col_num = rect_col_num
  7247. self.formation_heading = formation_heading
  7248. self.form_head_lock = form_head_lock
  7249. self.ae = ae
  7250. self.an = an
  7251. self.au = au
  7252. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7253. 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)
  7254. # Define name on the class for backwards compatibility (it is now msgname).
  7255. # Done with setattr to hide the class variable from mypy.
  7256. setattr(MAVLink_vk_formation_leader_message, "name", mavlink_msg_deprecated_name_property())
  7257. class MAVLink_vk_engine_ecu_staus_message(MAVLink_message):
  7258. """
  7259. engine ecu status message
  7260. """
  7261. id = MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS
  7262. msgname = "VK_ENGINE_ECU_STAUS"
  7263. 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"]
  7264. 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"]
  7265. 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"]
  7266. fielddisplays_by_name: Dict[str, str] = {}
  7267. fieldenums_by_name: Dict[str, str] = {}
  7268. 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"}
  7269. native_format = bytearray(b"<IIHhhhHHHHHHBBBBBBHhhhh")
  7270. orders = [0, 2, 12, 13, 3, 4, 5, 6, 7, 1, 8, 9, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22]
  7271. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1]
  7272. 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]
  7273. crc_extra = 145
  7274. unpacker = struct.Struct("<IIHhhhHHHHHHBBBBB4BHhhhh")
  7275. instance_field = None
  7276. instance_offset = -1
  7277. 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):
  7278. MAVLink_message.__init__(self, MAVLink_vk_engine_ecu_staus_message.id, MAVLink_vk_engine_ecu_staus_message.msgname)
  7279. self._fieldnames = MAVLink_vk_engine_ecu_staus_message.fieldnames
  7280. self._instance_field = MAVLink_vk_engine_ecu_staus_message.instance_field
  7281. self._instance_offset = MAVLink_vk_engine_ecu_staus_message.instance_offset
  7282. self.timestamp = timestamp
  7283. self.spd_rpm = spd_rpm
  7284. self.thr_pos = thr_pos
  7285. self.fuel_pos = fuel_pos
  7286. self.cylinderA_temp = cylinderA_temp
  7287. self.cylinderB_temp = cylinderB_temp
  7288. self.coolant_temp = coolant_temp
  7289. self.fuel_remain = fuel_remain
  7290. self.alarm = alarm
  7291. self.total_runtime = total_runtime
  7292. self.runtime = runtime
  7293. self.service_time = service_time
  7294. self.output_volt = output_volt
  7295. self.output_curr = output_curr
  7296. self.fault = fault
  7297. self.engine_state = engine_state
  7298. self.index = index
  7299. self.reserve = reserve
  7300. self.inlet_pressure = inlet_pressure
  7301. self.ge_temp = ge_temp
  7302. self.air_temp = air_temp
  7303. self.temp_1 = temp_1
  7304. self.volt_2 = volt_2
  7305. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7306. 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)
  7307. # Define name on the class for backwards compatibility (it is now msgname).
  7308. # Done with setattr to hide the class variable from mypy.
  7309. setattr(MAVLink_vk_engine_ecu_staus_message, "name", mavlink_msg_deprecated_name_property())
  7310. class MAVLink_vk_comp_version_message(MAVLink_message):
  7311. """
  7312. vkfly gps version
  7313. """
  7314. id = MAVLINK_MSG_ID_VK_COMP_VERSION
  7315. msgname = "VK_COMP_VERSION"
  7316. fieldnames = ["comp_id", "hw_ver", "fw_ver", "SN", "manufactory", "model", "priv_data"]
  7317. ordered_fieldnames = ["comp_id", "hw_ver", "fw_ver", "SN", "manufactory", "model", "priv_data"]
  7318. fieldtypes = ["uint16_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t"]
  7319. fielddisplays_by_name: Dict[str, str] = {}
  7320. fieldenums_by_name: Dict[str, str] = {"comp_id": "VKFLY_USER_COMP_ID"}
  7321. fieldunits_by_name: Dict[str, str] = {}
  7322. native_format = bytearray(b"<HBBBBBB")
  7323. orders = [0, 1, 2, 3, 4, 5, 6]
  7324. lengths = [1, 16, 16, 16, 16, 16, 16]
  7325. array_lengths = [0, 16, 16, 16, 16, 16, 16]
  7326. crc_extra = 227
  7327. unpacker = struct.Struct("<H16B16B16B16B16B16B")
  7328. instance_field = None
  7329. instance_offset = -1
  7330. 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]):
  7331. MAVLink_message.__init__(self, MAVLink_vk_comp_version_message.id, MAVLink_vk_comp_version_message.msgname)
  7332. self._fieldnames = MAVLink_vk_comp_version_message.fieldnames
  7333. self._instance_field = MAVLink_vk_comp_version_message.instance_field
  7334. self._instance_offset = MAVLink_vk_comp_version_message.instance_offset
  7335. self.comp_id = comp_id
  7336. self.hw_ver = hw_ver
  7337. self.fw_ver = fw_ver
  7338. self.SN = SN
  7339. self.manufactory = manufactory
  7340. self.model = model
  7341. self.priv_data = priv_data
  7342. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7343. 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)
  7344. # Define name on the class for backwards compatibility (it is now msgname).
  7345. # Done with setattr to hide the class variable from mypy.
  7346. setattr(MAVLink_vk_comp_version_message, "name", mavlink_msg_deprecated_name_property())
  7347. class MAVLink_vk_mosaich_gps_raw_message(MAVLink_message):
  7348. """
  7349. Mosaic_h gps raw data
  7350. """
  7351. id = MAVLINK_MSG_ID_VK_MOSAICH_GPS_RAW
  7352. msgname = "VK_MOSAICH_GPS_RAW"
  7353. 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"]
  7354. 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"]
  7355. 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"]
  7356. fielddisplays_by_name: Dict[str, str] = {}
  7357. fieldenums_by_name: Dict[str, str] = {"fix_type": "GPS_FIX_TYPE"}
  7358. 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"}
  7359. native_format = bytearray(b"<QiiffffffHHBBBBBBBB")
  7360. orders = [0, 11, 12, 13, 14, 1, 2, 3, 4, 5, 6, 9, 10, 7, 8, 15, 16, 17, 18]
  7361. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  7362. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  7363. crc_extra = 113
  7364. unpacker = struct.Struct("<QiiffffffHHBBBBBBBB")
  7365. instance_field = None
  7366. instance_offset = -1
  7367. 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):
  7368. MAVLink_message.__init__(self, MAVLink_vk_mosaich_gps_raw_message.id, MAVLink_vk_mosaich_gps_raw_message.msgname)
  7369. self._fieldnames = MAVLink_vk_mosaich_gps_raw_message.fieldnames
  7370. self._instance_field = MAVLink_vk_mosaich_gps_raw_message.instance_field
  7371. self._instance_offset = MAVLink_vk_mosaich_gps_raw_message.instance_offset
  7372. self.time_usec = time_usec
  7373. self.fix_type = fix_type
  7374. self.psv_num = psv_num
  7375. self.pvt_err = pvt_err
  7376. self.pvt_mode = pvt_mode
  7377. self.lat = lat
  7378. self.lon = lon
  7379. self.ellipsoid_alt = ellipsoid_alt
  7380. self.ve = ve
  7381. self.vn = vn
  7382. self.vu = vu
  7383. self.h_acc = h_acc
  7384. self.v_acc = v_acc
  7385. self.yaw = yaw
  7386. self.pitch = pitch
  7387. self.hsv_num = hsv_num
  7388. self.att_err = att_err
  7389. self.att_mode = att_mode
  7390. self.reserved = reserved
  7391. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7392. 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)
  7393. # Define name on the class for backwards compatibility (it is now msgname).
  7394. # Done with setattr to hide the class variable from mypy.
  7395. setattr(MAVLink_vk_mosaich_gps_raw_message, "name", mavlink_msg_deprecated_name_property())
  7396. class MAVLink_vk_digi_esc_status_message(MAVLink_message):
  7397. """
  7398. Mosaic_h gps raw data
  7399. """
  7400. id = MAVLINK_MSG_ID_VK_DIGI_ESC_STATUS
  7401. msgname = "VK_DIGI_ESC_STATUS"
  7402. fieldnames = ["index", "timestamp", "rpm", "voltage", "current", "temperature", "status", "motor_temp", "cap_temp", "status2"]
  7403. ordered_fieldnames = ["timestamp", "rpm", "voltage", "current", "status", "temperature", "index", "motor_temp", "cap_temp", "status2"]
  7404. fieldtypes = ["uint8_t", "uint32_t", "int32_t", "float", "float", "int16_t", "uint32_t", "int16_t", "int16_t", "uint32_t"]
  7405. fielddisplays_by_name: Dict[str, str] = {}
  7406. fieldenums_by_name: Dict[str, str] = {}
  7407. fieldunits_by_name: Dict[str, str] = {"timestamp": "ms", "rpm": "rpm", "voltage": "V", "current": "A", "temperature": "degC", "motor_temp": "degC", "cap_temp": "degC"}
  7408. native_format = bytearray(b"<IiffIhBhhI")
  7409. orders = [6, 0, 1, 2, 3, 5, 4, 7, 8, 9]
  7410. lengths = [1, 4, 4, 4, 4, 4, 1, 4, 4, 4]
  7411. array_lengths = [0, 4, 4, 4, 4, 4, 0, 4, 4, 4]
  7412. crc_extra = 110
  7413. unpacker = struct.Struct("<I4i4f4f4I4hB4h4h4I")
  7414. instance_field = "index"
  7415. instance_offset = 76
  7416. 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)):
  7417. MAVLink_message.__init__(self, MAVLink_vk_digi_esc_status_message.id, MAVLink_vk_digi_esc_status_message.msgname)
  7418. self._fieldnames = MAVLink_vk_digi_esc_status_message.fieldnames
  7419. self._instance_field = MAVLink_vk_digi_esc_status_message.instance_field
  7420. self._instance_offset = MAVLink_vk_digi_esc_status_message.instance_offset
  7421. self.index = index
  7422. self.timestamp = timestamp
  7423. self.rpm = rpm
  7424. self.voltage = voltage
  7425. self.current = current
  7426. self.temperature = temperature
  7427. self.status = status
  7428. self.motor_temp = motor_temp
  7429. self.cap_temp = cap_temp
  7430. self.status2 = status2
  7431. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7432. 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)
  7433. # Define name on the class for backwards compatibility (it is now msgname).
  7434. # Done with setattr to hide the class variable from mypy.
  7435. setattr(MAVLink_vk_digi_esc_status_message, "name", mavlink_msg_deprecated_name_property())
  7436. class MAVLink_vk_fixedwing_control_value_message(MAVLink_message):
  7437. """
  7438. Mosaic_h gps raw data
  7439. """
  7440. id = MAVLINK_MSG_ID_VK_FIXEDWING_CONTROL_VALUE
  7441. msgname = "VK_FIXEDWING_CONTROL_VALUE"
  7442. fieldnames = ["timestamp", "roll_value", "pitch_value", "throttle_value", "yaw_value"]
  7443. ordered_fieldnames = ["timestamp", "roll_value", "pitch_value", "throttle_value", "yaw_value"]
  7444. fieldtypes = ["uint32_t", "float", "float", "float", "float"]
  7445. fielddisplays_by_name: Dict[str, str] = {}
  7446. fieldenums_by_name: Dict[str, str] = {}
  7447. fieldunits_by_name: Dict[str, str] = {"timestamp": "ms"}
  7448. native_format = bytearray(b"<Iffff")
  7449. orders = [0, 1, 2, 3, 4]
  7450. lengths = [1, 1, 1, 1, 1]
  7451. array_lengths = [0, 0, 0, 0, 0]
  7452. crc_extra = 226
  7453. unpacker = struct.Struct("<Iffff")
  7454. instance_field = None
  7455. instance_offset = -1
  7456. def __init__(self, timestamp: int, roll_value: float, pitch_value: float, throttle_value: float, yaw_value: float):
  7457. MAVLink_message.__init__(self, MAVLink_vk_fixedwing_control_value_message.id, MAVLink_vk_fixedwing_control_value_message.msgname)
  7458. self._fieldnames = MAVLink_vk_fixedwing_control_value_message.fieldnames
  7459. self._instance_field = MAVLink_vk_fixedwing_control_value_message.instance_field
  7460. self._instance_offset = MAVLink_vk_fixedwing_control_value_message.instance_offset
  7461. self.timestamp = timestamp
  7462. self.roll_value = roll_value
  7463. self.pitch_value = pitch_value
  7464. self.throttle_value = throttle_value
  7465. self.yaw_value = yaw_value
  7466. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7467. 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)
  7468. # Define name on the class for backwards compatibility (it is now msgname).
  7469. # Done with setattr to hide the class variable from mypy.
  7470. setattr(MAVLink_vk_fixedwing_control_value_message, "name", mavlink_msg_deprecated_name_property())
  7471. class MAVLink_vk_fixedwing_servo_signal_message(MAVLink_message):
  7472. """
  7473. Mosaic_h gps raw data
  7474. """
  7475. id = MAVLINK_MSG_ID_VK_FIXEDWING_SERVO_SIGNAL
  7476. msgname = "VK_FIXEDWING_SERVO_SIGNAL"
  7477. fieldnames = ["timestamp", "servo_signal"]
  7478. ordered_fieldnames = ["timestamp", "servo_signal"]
  7479. fieldtypes = ["uint32_t", "uint16_t"]
  7480. fielddisplays_by_name: Dict[str, str] = {}
  7481. fieldenums_by_name: Dict[str, str] = {}
  7482. fieldunits_by_name: Dict[str, str] = {"timestamp": "ms"}
  7483. native_format = bytearray(b"<IH")
  7484. orders = [0, 1]
  7485. lengths = [1, 16]
  7486. array_lengths = [0, 16]
  7487. crc_extra = 33
  7488. unpacker = struct.Struct("<I16H")
  7489. instance_field = None
  7490. instance_offset = -1
  7491. def __init__(self, timestamp: int, servo_signal: Sequence[int]):
  7492. MAVLink_message.__init__(self, MAVLink_vk_fixedwing_servo_signal_message.id, MAVLink_vk_fixedwing_servo_signal_message.msgname)
  7493. self._fieldnames = MAVLink_vk_fixedwing_servo_signal_message.fieldnames
  7494. self._instance_field = MAVLink_vk_fixedwing_servo_signal_message.instance_field
  7495. self._instance_offset = MAVLink_vk_fixedwing_servo_signal_message.instance_offset
  7496. self.timestamp = timestamp
  7497. self.servo_signal = servo_signal
  7498. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7499. 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)
  7500. # Define name on the class for backwards compatibility (it is now msgname).
  7501. # Done with setattr to hide the class variable from mypy.
  7502. setattr(MAVLink_vk_fixedwing_servo_signal_message, "name", mavlink_msg_deprecated_name_property())
  7503. class MAVLink_vk_fixedwing_rtl_circle_wp_message(MAVLink_message):
  7504. """
  7505. """
  7506. id = MAVLINK_MSG_ID_VK_FIXEDWING_RTL_CIRCLE_WP
  7507. msgname = "VK_FIXEDWING_RTL_CIRCLE_WP"
  7508. fieldnames = ["latitude", "longitude", "altitude", "radius"]
  7509. ordered_fieldnames = ["latitude", "longitude", "altitude", "radius"]
  7510. fieldtypes = ["int32_t", "int32_t", "float", "float"]
  7511. fielddisplays_by_name: Dict[str, str] = {}
  7512. fieldenums_by_name: Dict[str, str] = {}
  7513. fieldunits_by_name: Dict[str, str] = {"latitude": "degE7", "longitude": "degE7", "altitude": "m", "radius": "m"}
  7514. native_format = bytearray(b"<iiff")
  7515. orders = [0, 1, 2, 3]
  7516. lengths = [1, 1, 1, 1]
  7517. array_lengths = [0, 0, 0, 0]
  7518. crc_extra = 128
  7519. unpacker = struct.Struct("<iiff")
  7520. instance_field = None
  7521. instance_offset = -1
  7522. def __init__(self, latitude: int, longitude: int, altitude: float, radius: float):
  7523. MAVLink_message.__init__(self, MAVLink_vk_fixedwing_rtl_circle_wp_message.id, MAVLink_vk_fixedwing_rtl_circle_wp_message.msgname)
  7524. self._fieldnames = MAVLink_vk_fixedwing_rtl_circle_wp_message.fieldnames
  7525. self._instance_field = MAVLink_vk_fixedwing_rtl_circle_wp_message.instance_field
  7526. self._instance_offset = MAVLink_vk_fixedwing_rtl_circle_wp_message.instance_offset
  7527. self.latitude = latitude
  7528. self.longitude = longitude
  7529. self.altitude = altitude
  7530. self.radius = radius
  7531. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7532. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.latitude, self.longitude, self.altitude, self.radius), force_mavlink1=force_mavlink1)
  7533. # Define name on the class for backwards compatibility (it is now msgname).
  7534. # Done with setattr to hide the class variable from mypy.
  7535. setattr(MAVLink_vk_fixedwing_rtl_circle_wp_message, "name", mavlink_msg_deprecated_name_property())
  7536. class MAVLink_vk_airspeed_message(MAVLink_message):
  7537. """
  7538. Airspeed information from a sensor.
  7539. """
  7540. id = MAVLINK_MSG_ID_VK_AIRSPEED
  7541. msgname = "VK_AIRSPEED"
  7542. fieldnames = ["id", "airspeed", "temperature", "raw_press", "flags"]
  7543. ordered_fieldnames = ["airspeed", "raw_press", "temperature", "id", "flags"]
  7544. fieldtypes = ["uint8_t", "float", "int16_t", "float", "uint8_t"]
  7545. fielddisplays_by_name: Dict[str, str] = {}
  7546. fieldenums_by_name: Dict[str, str] = {}
  7547. fieldunits_by_name: Dict[str, str] = {"airspeed": "m/s", "temperature": "cdegC", "raw_press": "hPa"}
  7548. native_format = bytearray(b"<ffhBB")
  7549. orders = [3, 0, 2, 1, 4]
  7550. lengths = [1, 1, 1, 1, 1]
  7551. array_lengths = [0, 0, 0, 0, 0]
  7552. crc_extra = 97
  7553. unpacker = struct.Struct("<ffhBB")
  7554. instance_field = "id"
  7555. instance_offset = 10
  7556. def __init__(self, id: int, airspeed: float, temperature: int, raw_press: float, flags: int):
  7557. MAVLink_message.__init__(self, MAVLink_vk_airspeed_message.id, MAVLink_vk_airspeed_message.msgname)
  7558. self._fieldnames = MAVLink_vk_airspeed_message.fieldnames
  7559. self._instance_field = MAVLink_vk_airspeed_message.instance_field
  7560. self._instance_offset = MAVLink_vk_airspeed_message.instance_offset
  7561. self.id = id
  7562. self.airspeed = airspeed
  7563. self.temperature = temperature
  7564. self.raw_press = raw_press
  7565. self.flags = flags
  7566. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7567. 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)
  7568. # Define name on the class for backwards compatibility (it is now msgname).
  7569. # Done with setattr to hide the class variable from mypy.
  7570. setattr(MAVLink_vk_airspeed_message, "name", mavlink_msg_deprecated_name_property())
  7571. class MAVLink_vk_parachute_status_message(MAVLink_message):
  7572. """
  7573. parachute status
  7574. """
  7575. id = MAVLINK_MSG_ID_VK_PARACHUTE_STATUS
  7576. msgname = "VK_PARACHUTE_STATUS"
  7577. fieldnames = ["timestamp", "state", "auto_launch", "uav_cmd", "err_code", "backvolt"]
  7578. ordered_fieldnames = ["timestamp", "backvolt", "err_code", "state", "auto_launch", "uav_cmd"]
  7579. fieldtypes = ["uint32_t", "uint8_t", "uint8_t", "uint8_t", "uint16_t", "float"]
  7580. fielddisplays_by_name: Dict[str, str] = {}
  7581. fieldenums_by_name: Dict[str, str] = {}
  7582. fieldunits_by_name: Dict[str, str] = {"timestamp": "ms"}
  7583. native_format = bytearray(b"<IfHBBB")
  7584. orders = [0, 3, 4, 5, 2, 1]
  7585. lengths = [1, 1, 1, 1, 1, 1]
  7586. array_lengths = [0, 0, 0, 0, 0, 0]
  7587. crc_extra = 45
  7588. unpacker = struct.Struct("<IfHBBB")
  7589. instance_field = None
  7590. instance_offset = -1
  7591. def __init__(self, timestamp: int, state: int, auto_launch: int, uav_cmd: int, err_code: int, backvolt: float):
  7592. MAVLink_message.__init__(self, MAVLink_vk_parachute_status_message.id, MAVLink_vk_parachute_status_message.msgname)
  7593. self._fieldnames = MAVLink_vk_parachute_status_message.fieldnames
  7594. self._instance_field = MAVLink_vk_parachute_status_message.instance_field
  7595. self._instance_offset = MAVLink_vk_parachute_status_message.instance_offset
  7596. self.timestamp = timestamp
  7597. self.state = state
  7598. self.auto_launch = auto_launch
  7599. self.uav_cmd = uav_cmd
  7600. self.err_code = err_code
  7601. self.backvolt = backvolt
  7602. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7603. 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)
  7604. # Define name on the class for backwards compatibility (it is now msgname).
  7605. # Done with setattr to hide the class variable from mypy.
  7606. setattr(MAVLink_vk_parachute_status_message, "name", mavlink_msg_deprecated_name_property())
  7607. class MAVLink_vk_weigher_state_message(MAVLink_message):
  7608. """
  7609. Weigher state
  7610. """
  7611. id = MAVLINK_MSG_ID_VK_WEIGHER_STATE
  7612. msgname = "VK_WEIGHER_STATE"
  7613. fieldnames = ["timestamp", "weight", "weight_d", "work_state", "err_code", "attitude_Q", "rope_length", "rope_vel"]
  7614. ordered_fieldnames = ["timestamp", "weight", "weight_d", "work_state", "err_code", "attitude_Q", "rope_length", "rope_vel"]
  7615. fieldtypes = ["uint32_t", "uint32_t", "uint16_t", "uint8_t", "uint8_t", "float", "float", "float"]
  7616. fielddisplays_by_name: Dict[str, str] = {}
  7617. fieldenums_by_name: Dict[str, str] = {}
  7618. fieldunits_by_name: Dict[str, str] = {"timestamp": "ms", "weight": "g"}
  7619. native_format = bytearray(b"<IIHBBfff")
  7620. orders = [0, 1, 2, 3, 4, 5, 6, 7]
  7621. lengths = [1, 1, 1, 1, 1, 4, 1, 1]
  7622. array_lengths = [0, 0, 0, 0, 0, 4, 0, 0]
  7623. crc_extra = 89
  7624. unpacker = struct.Struct("<IIHBB4fff")
  7625. instance_field = None
  7626. instance_offset = -1
  7627. 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):
  7628. MAVLink_message.__init__(self, MAVLink_vk_weigher_state_message.id, MAVLink_vk_weigher_state_message.msgname)
  7629. self._fieldnames = MAVLink_vk_weigher_state_message.fieldnames
  7630. self._instance_field = MAVLink_vk_weigher_state_message.instance_field
  7631. self._instance_offset = MAVLink_vk_weigher_state_message.instance_offset
  7632. self.timestamp = timestamp
  7633. self.weight = weight
  7634. self.weight_d = weight_d
  7635. self.work_state = work_state
  7636. self.err_code = err_code
  7637. self.attitude_Q = attitude_Q
  7638. self.rope_length = rope_length
  7639. self.rope_vel = rope_vel
  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.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)
  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_weigher_state_message, "name", mavlink_msg_deprecated_name_property())
  7645. class MAVLink_vk_payload_data_relay_message(MAVLink_message):
  7646. """
  7647. VK payload message relay
  7648. """
  7649. id = MAVLINK_MSG_ID_VK_PAYLOAD_DATA_RELAY
  7650. msgname = "VK_PAYLOAD_DATA_RELAY"
  7651. fieldnames = ["payload_addr", "reserve", "data_len", "data"]
  7652. ordered_fieldnames = ["payload_addr", "reserve", "data_len", "data"]
  7653. fieldtypes = ["uint16_t", "uint8_t", "uint8_t", "uint8_t"]
  7654. fielddisplays_by_name: Dict[str, str] = {}
  7655. fieldenums_by_name: Dict[str, str] = {}
  7656. fieldunits_by_name: Dict[str, str] = {}
  7657. native_format = bytearray(b"<HBBB")
  7658. orders = [0, 1, 2, 3]
  7659. lengths = [1, 1, 1, 128]
  7660. array_lengths = [0, 0, 0, 128]
  7661. crc_extra = 37
  7662. unpacker = struct.Struct("<HBB128B")
  7663. instance_field = None
  7664. instance_offset = -1
  7665. def __init__(self, payload_addr: int, reserve: int, data_len: int, data: Sequence[int]):
  7666. MAVLink_message.__init__(self, MAVLink_vk_payload_data_relay_message.id, MAVLink_vk_payload_data_relay_message.msgname)
  7667. self._fieldnames = MAVLink_vk_payload_data_relay_message.fieldnames
  7668. self._instance_field = MAVLink_vk_payload_data_relay_message.instance_field
  7669. self._instance_offset = MAVLink_vk_payload_data_relay_message.instance_offset
  7670. self.payload_addr = payload_addr
  7671. self.reserve = reserve
  7672. self.data_len = data_len
  7673. self.data = data
  7674. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7675. 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)
  7676. # Define name on the class for backwards compatibility (it is now msgname).
  7677. # Done with setattr to hide the class variable from mypy.
  7678. setattr(MAVLink_vk_payload_data_relay_message, "name", mavlink_msg_deprecated_name_property())
  7679. class MAVLink_vk_external_ins_nav_message(MAVLink_message):
  7680. """
  7681. VK external INS navigation
  7682. """
  7683. id = MAVLINK_MSG_ID_VK_EXTERNAL_INS_NAV
  7684. msgname = "VK_EXTERNAL_INS_NAV"
  7685. 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"]
  7686. 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"]
  7687. 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"]
  7688. fielddisplays_by_name: Dict[str, str] = {}
  7689. fieldenums_by_name: Dict[str, str] = {}
  7690. 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"}
  7691. native_format = bytearray(b"<IiifffffffffffffiiffffBBBB")
  7692. 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]
  7693. 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]
  7694. 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]
  7695. crc_extra = 115
  7696. unpacker = struct.Struct("<IiifffffffffffffiiffffBBBB")
  7697. instance_field = None
  7698. instance_offset = -1
  7699. 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):
  7700. MAVLink_message.__init__(self, MAVLink_vk_external_ins_nav_message.id, MAVLink_vk_external_ins_nav_message.msgname)
  7701. self._fieldnames = MAVLink_vk_external_ins_nav_message.fieldnames
  7702. self._instance_field = MAVLink_vk_external_ins_nav_message.instance_field
  7703. self._instance_offset = MAVLink_vk_external_ins_nav_message.instance_offset
  7704. self.timestamp = timestamp
  7705. self.lon = lon
  7706. self.lat = lat
  7707. self.msl = msl
  7708. self.ve = ve
  7709. self.vn = vn
  7710. self.vu = vu
  7711. self.yaw = yaw
  7712. self.pitch = pitch
  7713. self.roll = roll
  7714. self.gx = gx
  7715. self.gy = gy
  7716. self.gz = gz
  7717. self.ax = ax
  7718. self.ay = ay
  7719. self.az = az
  7720. self.sat_lon = sat_lon
  7721. self.sat_lat = sat_lat
  7722. self.sat_msl = sat_msl
  7723. self.sat_ve = sat_ve
  7724. self.sat_vn = sat_vn
  7725. self.sat_vu = sat_vu
  7726. self.sat_pfix = sat_pfix
  7727. self.sat_hfix = sat_hfix
  7728. self.wk_state = wk_state
  7729. self.err_code = err_code
  7730. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7731. 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)
  7732. # Define name on the class for backwards compatibility (it is now msgname).
  7733. # Done with setattr to hide the class variable from mypy.
  7734. setattr(MAVLink_vk_external_ins_nav_message, "name", mavlink_msg_deprecated_name_property())
  7735. class MAVLink_vk_rtk_base_pvt_message(MAVLink_message):
  7736. """
  7737. RTK basestaion pvt
  7738. """
  7739. id = MAVLINK_MSG_ID_VK_RTK_BASE_PVT
  7740. msgname = "VK_RTK_BASE_PVT"
  7741. fieldnames = ["timestamp", "lon", "lat", "msl", "ve", "vn", "vu", "heading", "pitch", "p_sat_num", "h_sat_num", "p_type", "h_type"]
  7742. ordered_fieldnames = ["timestamp", "lon", "lat", "msl", "ve", "vn", "vu", "heading", "pitch", "p_sat_num", "h_sat_num", "p_type", "h_type"]
  7743. fieldtypes = ["uint32_t", "int32_t", "int32_t", "float", "float", "float", "float", "float", "float", "uint8_t", "uint8_t", "uint8_t", "uint8_t"]
  7744. fielddisplays_by_name: Dict[str, str] = {}
  7745. fieldenums_by_name: Dict[str, str] = {}
  7746. 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"}
  7747. native_format = bytearray(b"<IiiffffffBBBB")
  7748. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
  7749. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  7750. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  7751. crc_extra = 87
  7752. unpacker = struct.Struct("<IiiffffffBBBB")
  7753. instance_field = None
  7754. instance_offset = -1
  7755. 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):
  7756. MAVLink_message.__init__(self, MAVLink_vk_rtk_base_pvt_message.id, MAVLink_vk_rtk_base_pvt_message.msgname)
  7757. self._fieldnames = MAVLink_vk_rtk_base_pvt_message.fieldnames
  7758. self._instance_field = MAVLink_vk_rtk_base_pvt_message.instance_field
  7759. self._instance_offset = MAVLink_vk_rtk_base_pvt_message.instance_offset
  7760. self.timestamp = timestamp
  7761. self.lon = lon
  7762. self.lat = lat
  7763. self.msl = msl
  7764. self.ve = ve
  7765. self.vn = vn
  7766. self.vu = vu
  7767. self.heading = heading
  7768. self.pitch = pitch
  7769. self.p_sat_num = p_sat_num
  7770. self.h_sat_num = h_sat_num
  7771. self.p_type = p_type
  7772. self.h_type = h_type
  7773. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7774. 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)
  7775. # Define name on the class for backwards compatibility (it is now msgname).
  7776. # Done with setattr to hide the class variable from mypy.
  7777. setattr(MAVLink_vk_rtk_base_pvt_message, "name", mavlink_msg_deprecated_name_property())
  7778. class MAVLink_vkfly_edu_status_message(MAVLink_message):
  7779. """
  7780. EDU status
  7781. """
  7782. id = MAVLINK_MSG_ID_VKFLY_EDU_STATUS
  7783. msgname = "VKFLY_EDU_STATUS"
  7784. 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"]
  7785. 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"]
  7786. 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"]
  7787. fielddisplays_by_name: Dict[str, str] = {}
  7788. fieldenums_by_name: Dict[str, str] = {}
  7789. 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"}
  7790. native_format = bytearray(b"<QIIIiiffhhhhhhhBBBBB")
  7791. orders = [0, 1, 2, 3, 15, 16, 17, 18, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 19]
  7792. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  7793. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  7794. crc_extra = 24
  7795. unpacker = struct.Struct("<QIIIiiffhhhhhhhBBBBB")
  7796. instance_field = None
  7797. instance_offset = -1
  7798. 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):
  7799. MAVLink_message.__init__(self, MAVLink_vkfly_edu_status_message.id, MAVLink_vkfly_edu_status_message.msgname)
  7800. self._fieldnames = MAVLink_vkfly_edu_status_message.fieldnames
  7801. self._instance_field = MAVLink_vkfly_edu_status_message.instance_field
  7802. self._instance_offset = MAVLink_vkfly_edu_status_message.instance_offset
  7803. self.unix_timestamp = unix_timestamp
  7804. self.boot_timestamp = boot_timestamp
  7805. self.seq = seq
  7806. self.dev_sn = dev_sn
  7807. self.dev_type = dev_type
  7808. self.retry_cnt = retry_cnt
  7809. self.fix_type = fix_type
  7810. self.reserve = reserve
  7811. self.longitude = longitude
  7812. self.latitude = latitude
  7813. self.amsl = amsl
  7814. self.alt_relative = alt_relative
  7815. self.ve = ve
  7816. self.vn = vn
  7817. self.vu = vu
  7818. self.yaw = yaw
  7819. self.pitch = pitch
  7820. self.roll = roll
  7821. self.yaw_rate = yaw_rate
  7822. self.flight_mode = flight_mode
  7823. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7824. 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)
  7825. # Define name on the class for backwards compatibility (it is now msgname).
  7826. # Done with setattr to hide the class variable from mypy.
  7827. setattr(MAVLink_vkfly_edu_status_message, "name", mavlink_msg_deprecated_name_property())
  7828. class MAVLink_vkfly_edu_status_ack_message(MAVLink_message):
  7829. """
  7830. EDU status ack
  7831. """
  7832. id = MAVLINK_MSG_ID_VKFLY_EDU_STATUS_ACK
  7833. msgname = "VKFLY_EDU_STATUS_ACK"
  7834. fieldnames = ["unix_timestamp", "seq"]
  7835. ordered_fieldnames = ["unix_timestamp", "seq"]
  7836. fieldtypes = ["uint64_t", "uint32_t"]
  7837. fielddisplays_by_name: Dict[str, str] = {}
  7838. fieldenums_by_name: Dict[str, str] = {}
  7839. fieldunits_by_name: Dict[str, str] = {"unix_timestamp": "ms"}
  7840. native_format = bytearray(b"<QI")
  7841. orders = [0, 1]
  7842. lengths = [1, 1]
  7843. array_lengths = [0, 0]
  7844. crc_extra = 148
  7845. unpacker = struct.Struct("<QI")
  7846. instance_field = None
  7847. instance_offset = -1
  7848. def __init__(self, unix_timestamp: int, seq: int):
  7849. MAVLink_message.__init__(self, MAVLink_vkfly_edu_status_ack_message.id, MAVLink_vkfly_edu_status_ack_message.msgname)
  7850. self._fieldnames = MAVLink_vkfly_edu_status_ack_message.fieldnames
  7851. self._instance_field = MAVLink_vkfly_edu_status_ack_message.instance_field
  7852. self._instance_offset = MAVLink_vkfly_edu_status_ack_message.instance_offset
  7853. self.unix_timestamp = unix_timestamp
  7854. self.seq = seq
  7855. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7856. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.unix_timestamp, self.seq), force_mavlink1=force_mavlink1)
  7857. # Define name on the class for backwards compatibility (it is now msgname).
  7858. # Done with setattr to hide the class variable from mypy.
  7859. setattr(MAVLink_vkfly_edu_status_ack_message, "name", mavlink_msg_deprecated_name_property())
  7860. class MAVLink_vkfly_tianqu_servo_status_message(MAVLink_message):
  7861. """
  7862. TianQu servo status
  7863. """
  7864. id = MAVLINK_MSG_ID_VKFLY_TIANQU_SERVO_STATUS
  7865. msgname = "VKFLY_TIANQU_SERVO_STATUS"
  7866. fieldnames = ["timestamp", "load_status", "servo_status"]
  7867. ordered_fieldnames = ["timestamp", "load_status", "servo_status"]
  7868. fieldtypes = ["uint32_t", "uint32_t", "uint32_t"]
  7869. fielddisplays_by_name: Dict[str, str] = {}
  7870. fieldenums_by_name: Dict[str, str] = {}
  7871. fieldunits_by_name: Dict[str, str] = {}
  7872. native_format = bytearray(b"<III")
  7873. orders = [0, 1, 2]
  7874. lengths = [1, 1, 1]
  7875. array_lengths = [0, 0, 0]
  7876. crc_extra = 148
  7877. unpacker = struct.Struct("<III")
  7878. instance_field = None
  7879. instance_offset = -1
  7880. def __init__(self, timestamp: int, load_status: int, servo_status: int):
  7881. MAVLink_message.__init__(self, MAVLink_vkfly_tianqu_servo_status_message.id, MAVLink_vkfly_tianqu_servo_status_message.msgname)
  7882. self._fieldnames = MAVLink_vkfly_tianqu_servo_status_message.fieldnames
  7883. self._instance_field = MAVLink_vkfly_tianqu_servo_status_message.instance_field
  7884. self._instance_offset = MAVLink_vkfly_tianqu_servo_status_message.instance_offset
  7885. self.timestamp = timestamp
  7886. self.load_status = load_status
  7887. self.servo_status = servo_status
  7888. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7889. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.timestamp, self.load_status, self.servo_status), force_mavlink1=force_mavlink1)
  7890. # Define name on the class for backwards compatibility (it is now msgname).
  7891. # Done with setattr to hide the class variable from mypy.
  7892. setattr(MAVLink_vkfly_tianqu_servo_status_message, "name", mavlink_msg_deprecated_name_property())
  7893. class MAVLink_vk_adc_ext_status_message(MAVLink_message):
  7894. """
  7895. External ADC interpreted status.
  7896. """
  7897. id = MAVLINK_MSG_ID_VK_ADC_EXT_STATUS
  7898. msgname = "VK_ADC_EXT_STATUS"
  7899. fieldnames = ["time_boot_ms", "type", "valid", "raw_voltage", "voltage_ratio", "voltage", "current", "fuel_percent", "fuel_low1", "fuel_low2"]
  7900. ordered_fieldnames = ["time_boot_ms", "raw_voltage", "voltage_ratio", "voltage", "current", "fuel_percent", "type", "valid", "fuel_low1", "fuel_low2"]
  7901. fieldtypes = ["uint32_t", "uint8_t", "uint8_t", "float", "float", "float", "float", "float", "uint8_t", "uint8_t"]
  7902. fielddisplays_by_name: Dict[str, str] = {}
  7903. fieldenums_by_name: Dict[str, str] = {}
  7904. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "raw_voltage": "V", "voltage": "V", "current": "A", "fuel_percent": "%"}
  7905. native_format = bytearray(b"<IfffffBBBB")
  7906. orders = [0, 6, 7, 1, 2, 3, 4, 5, 8, 9]
  7907. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  7908. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  7909. crc_extra = 39
  7910. unpacker = struct.Struct("<IfffffBBBB")
  7911. instance_field = None
  7912. instance_offset = -1
  7913. 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):
  7914. MAVLink_message.__init__(self, MAVLink_vk_adc_ext_status_message.id, MAVLink_vk_adc_ext_status_message.msgname)
  7915. self._fieldnames = MAVLink_vk_adc_ext_status_message.fieldnames
  7916. self._instance_field = MAVLink_vk_adc_ext_status_message.instance_field
  7917. self._instance_offset = MAVLink_vk_adc_ext_status_message.instance_offset
  7918. self.time_boot_ms = time_boot_ms
  7919. self.type = type
  7920. self.valid = valid
  7921. self.raw_voltage = raw_voltage
  7922. self.voltage_ratio = voltage_ratio
  7923. self.voltage = voltage
  7924. self.current = current
  7925. self.fuel_percent = fuel_percent
  7926. self.fuel_low1 = fuel_low1
  7927. self.fuel_low2 = fuel_low2
  7928. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7929. 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)
  7930. # Define name on the class for backwards compatibility (it is now msgname).
  7931. # Done with setattr to hide the class variable from mypy.
  7932. setattr(MAVLink_vk_adc_ext_status_message, "name", mavlink_msg_deprecated_name_property())
  7933. class MAVLink_vk_fw_update_begin_message(MAVLink_message):
  7934. """
  7935. VKFLY autopilot update firmware begin. This message send from GCS
  7936. to autopilot.
  7937. """
  7938. id = MAVLINK_MSG_ID_VK_FW_UPDATE_BEGIN
  7939. msgname = "VK_FW_UPDATE_BEGIN"
  7940. fieldnames = ["target_system", "target_comp", "file_size"]
  7941. ordered_fieldnames = ["file_size", "target_system", "target_comp"]
  7942. fieldtypes = ["uint8_t", "uint8_t", "uint32_t"]
  7943. fielddisplays_by_name: Dict[str, str] = {}
  7944. fieldenums_by_name: Dict[str, str] = {}
  7945. fieldunits_by_name: Dict[str, str] = {"file_size": "bytes"}
  7946. native_format = bytearray(b"<IBB")
  7947. orders = [1, 2, 0]
  7948. lengths = [1, 1, 1]
  7949. array_lengths = [0, 0, 0]
  7950. crc_extra = 39
  7951. unpacker = struct.Struct("<IBB")
  7952. instance_field = None
  7953. instance_offset = -1
  7954. def __init__(self, target_system: int, target_comp: int, file_size: int):
  7955. MAVLink_message.__init__(self, MAVLink_vk_fw_update_begin_message.id, MAVLink_vk_fw_update_begin_message.msgname)
  7956. self._fieldnames = MAVLink_vk_fw_update_begin_message.fieldnames
  7957. self._instance_field = MAVLink_vk_fw_update_begin_message.instance_field
  7958. self._instance_offset = MAVLink_vk_fw_update_begin_message.instance_offset
  7959. self.target_system = target_system
  7960. self.target_comp = target_comp
  7961. self.file_size = file_size
  7962. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7963. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.file_size, self.target_system, self.target_comp), force_mavlink1=force_mavlink1)
  7964. # Define name on the class for backwards compatibility (it is now msgname).
  7965. # Done with setattr to hide the class variable from mypy.
  7966. setattr(MAVLink_vk_fw_update_begin_message, "name", mavlink_msg_deprecated_name_property())
  7967. class MAVLink_vk_fw_update_ack_message(MAVLink_message):
  7968. """
  7969. VKFLY udpate acknowledge.
  7970. """
  7971. id = MAVLINK_MSG_ID_VK_FW_UPDATE_ACK
  7972. msgname = "VK_FW_UPDATE_ACK"
  7973. fieldnames = ["result"]
  7974. ordered_fieldnames = ["result"]
  7975. fieldtypes = ["uint8_t"]
  7976. fielddisplays_by_name: Dict[str, str] = {}
  7977. fieldenums_by_name: Dict[str, str] = {"result": "MAV_RESULT"}
  7978. fieldunits_by_name: Dict[str, str] = {}
  7979. native_format = bytearray(b"<B")
  7980. orders = [0]
  7981. lengths = [1]
  7982. array_lengths = [0]
  7983. crc_extra = 98
  7984. unpacker = struct.Struct("<B")
  7985. instance_field = None
  7986. instance_offset = -1
  7987. def __init__(self, result: int):
  7988. MAVLink_message.__init__(self, MAVLink_vk_fw_update_ack_message.id, MAVLink_vk_fw_update_ack_message.msgname)
  7989. self._fieldnames = MAVLink_vk_fw_update_ack_message.fieldnames
  7990. self._instance_field = MAVLink_vk_fw_update_ack_message.instance_field
  7991. self._instance_offset = MAVLink_vk_fw_update_ack_message.instance_offset
  7992. self.result = result
  7993. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  7994. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.result), force_mavlink1=force_mavlink1)
  7995. # Define name on the class for backwards compatibility (it is now msgname).
  7996. # Done with setattr to hide the class variable from mypy.
  7997. setattr(MAVLink_vk_fw_update_ack_message, "name", mavlink_msg_deprecated_name_property())
  7998. class MAVLink_vk_fw_update_data_request_message(MAVLink_message):
  7999. """
  8000. VKFLY autopilot request update file data from GCS.
  8001. """
  8002. id = MAVLINK_MSG_ID_VK_FW_UPDATE_DATA_REQUEST
  8003. msgname = "VK_FW_UPDATE_DATA_REQUEST"
  8004. fieldnames = ["offset", "count"]
  8005. ordered_fieldnames = ["offset", "count"]
  8006. fieldtypes = ["uint32_t", "uint32_t"]
  8007. fielddisplays_by_name: Dict[str, str] = {}
  8008. fieldenums_by_name: Dict[str, str] = {}
  8009. fieldunits_by_name: Dict[str, str] = {}
  8010. native_format = bytearray(b"<II")
  8011. orders = [0, 1]
  8012. lengths = [1, 1]
  8013. array_lengths = [0, 0]
  8014. crc_extra = 78
  8015. unpacker = struct.Struct("<II")
  8016. instance_field = None
  8017. instance_offset = -1
  8018. def __init__(self, offset: int, count: int):
  8019. MAVLink_message.__init__(self, MAVLink_vk_fw_update_data_request_message.id, MAVLink_vk_fw_update_data_request_message.msgname)
  8020. self._fieldnames = MAVLink_vk_fw_update_data_request_message.fieldnames
  8021. self._instance_field = MAVLink_vk_fw_update_data_request_message.instance_field
  8022. self._instance_offset = MAVLink_vk_fw_update_data_request_message.instance_offset
  8023. self.offset = offset
  8024. self.count = count
  8025. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8026. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.offset, self.count), force_mavlink1=force_mavlink1)
  8027. # Define name on the class for backwards compatibility (it is now msgname).
  8028. # Done with setattr to hide the class variable from mypy.
  8029. setattr(MAVLink_vk_fw_update_data_request_message, "name", mavlink_msg_deprecated_name_property())
  8030. class MAVLink_vk_fw_update_data_message(MAVLink_message):
  8031. """
  8032. VKFLY transfer update file data.
  8033. """
  8034. id = MAVLINK_MSG_ID_VK_FW_UPDATE_DATA
  8035. msgname = "VK_FW_UPDATE_DATA"
  8036. fieldnames = ["offset", "count", "data"]
  8037. ordered_fieldnames = ["offset", "count", "data"]
  8038. fieldtypes = ["uint32_t", "uint8_t", "uint8_t"]
  8039. fielddisplays_by_name: Dict[str, str] = {}
  8040. fieldenums_by_name: Dict[str, str] = {}
  8041. fieldunits_by_name: Dict[str, str] = {}
  8042. native_format = bytearray(b"<IBB")
  8043. orders = [0, 1, 2]
  8044. lengths = [1, 1, 128]
  8045. array_lengths = [0, 0, 128]
  8046. crc_extra = 166
  8047. unpacker = struct.Struct("<IB128B")
  8048. instance_field = None
  8049. instance_offset = -1
  8050. def __init__(self, offset: int, count: int, data: Sequence[int]):
  8051. MAVLink_message.__init__(self, MAVLink_vk_fw_update_data_message.id, MAVLink_vk_fw_update_data_message.msgname)
  8052. self._fieldnames = MAVLink_vk_fw_update_data_message.fieldnames
  8053. self._instance_field = MAVLink_vk_fw_update_data_message.instance_field
  8054. self._instance_offset = MAVLink_vk_fw_update_data_message.instance_offset
  8055. self.offset = offset
  8056. self.count = count
  8057. self.data = data
  8058. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8059. 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)
  8060. # Define name on the class for backwards compatibility (it is now msgname).
  8061. # Done with setattr to hide the class variable from mypy.
  8062. setattr(MAVLink_vk_fw_update_data_message, "name", mavlink_msg_deprecated_name_property())
  8063. class MAVLink_vk_update_terminate_message(MAVLink_message):
  8064. """
  8065. VKFLY transfer update terminate. Send this message to terminate a
  8066. update file transfer.
  8067. """
  8068. id = MAVLINK_MSG_ID_VK_UPDATE_TERMINATE
  8069. msgname = "VK_UPDATE_TERMINATE"
  8070. fieldnames = ["target_system", "target_comp"]
  8071. ordered_fieldnames = ["target_system", "target_comp"]
  8072. fieldtypes = ["uint8_t", "uint8_t"]
  8073. fielddisplays_by_name: Dict[str, str] = {}
  8074. fieldenums_by_name: Dict[str, str] = {}
  8075. fieldunits_by_name: Dict[str, str] = {}
  8076. native_format = bytearray(b"<BB")
  8077. orders = [0, 1]
  8078. lengths = [1, 1]
  8079. array_lengths = [0, 0]
  8080. crc_extra = 158
  8081. unpacker = struct.Struct("<BB")
  8082. instance_field = None
  8083. instance_offset = -1
  8084. def __init__(self, target_system: int, target_comp: int):
  8085. MAVLink_message.__init__(self, MAVLink_vk_update_terminate_message.id, MAVLink_vk_update_terminate_message.msgname)
  8086. self._fieldnames = MAVLink_vk_update_terminate_message.fieldnames
  8087. self._instance_field = MAVLink_vk_update_terminate_message.instance_field
  8088. self._instance_offset = MAVLink_vk_update_terminate_message.instance_offset
  8089. self.target_system = target_system
  8090. self.target_comp = target_comp
  8091. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8092. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.target_system, self.target_comp), force_mavlink1=force_mavlink1)
  8093. # Define name on the class for backwards compatibility (it is now msgname).
  8094. # Done with setattr to hide the class variable from mypy.
  8095. setattr(MAVLink_vk_update_terminate_message, "name", mavlink_msg_deprecated_name_property())
  8096. class MAVLink_vk_cacc_manager_verify_message(MAVLink_message):
  8097. """
  8098. CACC manager verify message, in json format.
  8099. """
  8100. id = MAVLINK_MSG_ID_VK_CACC_MANAGER_VERIFY
  8101. msgname = "VK_CACC_MANAGER_VERIFY"
  8102. fieldnames = ["len", "json_data"]
  8103. ordered_fieldnames = ["len", "json_data"]
  8104. fieldtypes = ["uint8_t", "uint8_t"]
  8105. fielddisplays_by_name: Dict[str, str] = {}
  8106. fieldenums_by_name: Dict[str, str] = {}
  8107. fieldunits_by_name: Dict[str, str] = {}
  8108. native_format = bytearray(b"<BB")
  8109. orders = [0, 1]
  8110. lengths = [1, 200]
  8111. array_lengths = [0, 200]
  8112. crc_extra = 73
  8113. unpacker = struct.Struct("<B200B")
  8114. instance_field = None
  8115. instance_offset = -1
  8116. def __init__(self, len: int, json_data: Sequence[int]):
  8117. MAVLink_message.__init__(self, MAVLink_vk_cacc_manager_verify_message.id, MAVLink_vk_cacc_manager_verify_message.msgname)
  8118. self._fieldnames = MAVLink_vk_cacc_manager_verify_message.fieldnames
  8119. self._instance_field = MAVLink_vk_cacc_manager_verify_message.instance_field
  8120. self._instance_offset = MAVLink_vk_cacc_manager_verify_message.instance_offset
  8121. self.len = len
  8122. self.json_data = json_data
  8123. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8124. 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)
  8125. # Define name on the class for backwards compatibility (it is now msgname).
  8126. # Done with setattr to hide the class variable from mypy.
  8127. setattr(MAVLink_vk_cacc_manager_verify_message, "name", mavlink_msg_deprecated_name_property())
  8128. class MAVLink_vk_ext_vision_fusion_message(MAVLink_message):
  8129. """
  8130. external vision fusion data
  8131. """
  8132. id = MAVLINK_MSG_ID_VK_EXT_VISION_FUSION
  8133. msgname = "VK_EXT_VISION_FUSION"
  8134. 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"]
  8135. 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"]
  8136. fieldtypes = ["uint32_t", "float", "float", "float", "int32_t", "int32_t", "float", "float", "float", "float", "float", "float", "float", "float", "uint8_t", "uint8_t", "uint8_t"]
  8137. fielddisplays_by_name: Dict[str, str] = {}
  8138. fieldenums_by_name: Dict[str, str] = {}
  8139. 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"}
  8140. native_format = bytearray(b"<IfffiiffffffffBBB")
  8141. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]
  8142. lengths = [1, 3, 3, 4, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, 1, 1, 1]
  8143. array_lengths = [0, 3, 3, 4, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 0, 0, 0]
  8144. crc_extra = 188
  8145. unpacker = struct.Struct("<I3f3f4fiiff3f3f3f3f3f3fBBB")
  8146. instance_field = None
  8147. instance_offset = -1
  8148. 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):
  8149. MAVLink_message.__init__(self, MAVLink_vk_ext_vision_fusion_message.id, MAVLink_vk_ext_vision_fusion_message.msgname)
  8150. self._fieldnames = MAVLink_vk_ext_vision_fusion_message.fieldnames
  8151. self._instance_field = MAVLink_vk_ext_vision_fusion_message.instance_field
  8152. self._instance_offset = MAVLink_vk_ext_vision_fusion_message.instance_offset
  8153. self.timestamp = timestamp
  8154. self.pos_frd = pos_frd
  8155. self.vel_frd = vel_frd
  8156. self.Q_g = Q_g
  8157. self.lat = lat
  8158. self.lon = lon
  8159. self.alt_amsl = alt_amsl
  8160. self.hR = hR
  8161. self.vel_ned = vel_ned
  8162. self.bias_acc = bias_acc
  8163. self.bias_gyr = bias_gyr
  8164. self.cov_att = cov_att
  8165. self.cov_pos = cov_pos
  8166. self.cov_vel = cov_vel
  8167. self.unhealthy = unhealthy
  8168. self.flag = flag
  8169. self.reset_cnt = reset_cnt
  8170. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8171. 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)
  8172. # Define name on the class for backwards compatibility (it is now msgname).
  8173. # Done with setattr to hide the class variable from mypy.
  8174. setattr(MAVLink_vk_ext_vision_fusion_message, "name", mavlink_msg_deprecated_name_property())
  8175. class MAVLink_kmub_status_message(MAVLink_message):
  8176. """
  8177. EV2 FMU backup status.
  8178. """
  8179. id = MAVLINK_MSG_ID_KMUB_STATUS
  8180. msgname = "KMUB_STATUS"
  8181. 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"]
  8182. 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"]
  8183. 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"]
  8184. fielddisplays_by_name: Dict[str, str] = {}
  8185. fieldenums_by_name: Dict[str, str] = {}
  8186. 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"}
  8187. native_format = bytearray(b"<IffffffffffffiifiiHBB")
  8188. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
  8189. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  8190. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  8191. crc_extra = 135
  8192. unpacker = struct.Struct("<IffffffffffffiifiiHBB")
  8193. instance_field = None
  8194. instance_offset = -1
  8195. 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):
  8196. MAVLink_message.__init__(self, MAVLink_kmub_status_message.id, MAVLink_kmub_status_message.msgname)
  8197. self._fieldnames = MAVLink_kmub_status_message.fieldnames
  8198. self._instance_field = MAVLink_kmub_status_message.instance_field
  8199. self._instance_offset = MAVLink_kmub_status_message.instance_offset
  8200. self.timestamp = timestamp
  8201. self.roll = roll
  8202. self.pitch = pitch
  8203. self.yaw = yaw
  8204. self.vn = vn
  8205. self.ve = ve
  8206. self.vd = vd
  8207. self.ax = ax
  8208. self.ay = ay
  8209. self.az = az
  8210. self.gx = gx
  8211. self.gy = gy
  8212. self.gz = gz
  8213. self.lat = lat
  8214. self.lon = lon
  8215. self.amsl = amsl
  8216. self.ins_status = ins_status
  8217. self.ins_flag = ins_flag
  8218. self.throttle = throttle
  8219. self.flight_mode = flight_mode
  8220. self.btake_status = btake_status
  8221. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8222. 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)
  8223. # Define name on the class for backwards compatibility (it is now msgname).
  8224. # Done with setattr to hide the class variable from mypy.
  8225. setattr(MAVLink_kmub_status_message, "name", mavlink_msg_deprecated_name_property())
  8226. class MAVLink_qingxie_bms_message(MAVLink_message):
  8227. """
  8228. VKFLY transfer update terminate. Send this message to terminate a
  8229. update file transfer.
  8230. """
  8231. id = MAVLINK_MSG_ID_QINGXIE_BMS
  8232. msgname = "QINGXIE_BMS"
  8233. 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"]
  8234. 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"]
  8235. 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"]
  8236. fielddisplays_by_name: Dict[str, str] = {}
  8237. fieldenums_by_name: Dict[str, str] = {}
  8238. 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"}
  8239. native_format = bytearray(b"<HHHHHHHHHHHBBHHHBBBBHHH")
  8240. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22]
  8241. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  8242. 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]
  8243. crc_extra = 114
  8244. unpacker = struct.Struct("<HHHHHHHHHHHBBHHHBBBBHHH")
  8245. instance_field = None
  8246. instance_offset = -1
  8247. 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):
  8248. MAVLink_message.__init__(self, MAVLink_qingxie_bms_message.id, MAVLink_qingxie_bms_message.msgname)
  8249. self._fieldnames = MAVLink_qingxie_bms_message.fieldnames
  8250. self._instance_field = MAVLink_qingxie_bms_message.instance_field
  8251. self._instance_offset = MAVLink_qingxie_bms_message.instance_offset
  8252. self.bat_voltage = bat_voltage
  8253. self.servo_current = servo_current
  8254. self.stack_voltage = stack_voltage
  8255. self.servo_voltage = servo_voltage
  8256. self.bat_refuel_current = bat_refuel_current
  8257. self.gas_tank_pressure = gas_tank_pressure
  8258. self.pipe_pressure = pipe_pressure
  8259. self.pcb_temp = pcb_temp
  8260. self.stack_temp = stack_temp
  8261. self.work_status = work_status
  8262. self.falt_status = falt_status
  8263. self.self_check = self_check
  8264. self.Id = Id
  8265. self.gass_mass = gass_mass
  8266. self.gass_percent = gass_percent
  8267. self.runtime_remain = runtime_remain
  8268. self.fan_percent = fan_percent
  8269. self.fan_rpm = fan_rpm
  8270. self.sys_run_state = sys_run_state
  8271. self.sys_fault_state = sys_fault_state
  8272. self.sys_fault_code = sys_fault_code
  8273. self.lipo_current = lipo_current
  8274. self.total_runtime = total_runtime
  8275. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8276. 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)
  8277. # Define name on the class for backwards compatibility (it is now msgname).
  8278. # Done with setattr to hide the class variable from mypy.
  8279. setattr(MAVLink_qingxie_bms_message, "name", mavlink_msg_deprecated_name_property())
  8280. class MAVLink_sys_status_message(MAVLink_message):
  8281. """
  8282. The general system state. If the system is following the MAVLink
  8283. standard, the system state is mainly defined by three orthogonal
  8284. states/modes: The system mode, which is either LOCKED (motors shut
  8285. down and locked), MANUAL (system under RC control), GUIDED (system
  8286. with autonomous position control, position setpoint controlled
  8287. manually) or AUTO (system guided by path/waypoint planner). The
  8288. NAV_MODE defined the current flight state: LIFTOFF (often an open-
  8289. loop maneuver), LANDING, WAYPOINTS or VECTOR. This represents the
  8290. internal navigation state machine. The system status shows whether
  8291. the system is currently active or not and if an emergency
  8292. occurred. During the CRITICAL and EMERGENCY states the MAV is
  8293. still considered to be active, but should start emergency
  8294. procedures autonomously. After a failure occurred it should first
  8295. move from active to critical to allow manual intervention and then
  8296. move to emergency after a certain timeout.
  8297. """
  8298. id = MAVLINK_MSG_ID_SYS_STATUS
  8299. msgname = "SYS_STATUS"
  8300. 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"]
  8301. 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"]
  8302. 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"]
  8303. 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"}
  8304. 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"}
  8305. fieldunits_by_name: Dict[str, str] = {"load": "d%", "voltage_battery": "mV", "current_battery": "cA", "battery_remaining": "%", "drop_rate_comm": "c%"}
  8306. native_format = bytearray(b"<IIIHHhHHHHHHbIII")
  8307. orders = [0, 1, 2, 3, 4, 5, 12, 6, 7, 8, 9, 10, 11, 13, 14, 15]
  8308. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  8309. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  8310. crc_extra = 124
  8311. unpacker = struct.Struct("<IIIHHhHHHHHHbIII")
  8312. instance_field = None
  8313. instance_offset = -1
  8314. 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):
  8315. MAVLink_message.__init__(self, MAVLink_sys_status_message.id, MAVLink_sys_status_message.msgname)
  8316. self._fieldnames = MAVLink_sys_status_message.fieldnames
  8317. self._instance_field = MAVLink_sys_status_message.instance_field
  8318. self._instance_offset = MAVLink_sys_status_message.instance_offset
  8319. self.onboard_control_sensors_present = onboard_control_sensors_present
  8320. self.onboard_control_sensors_enabled = onboard_control_sensors_enabled
  8321. self.onboard_control_sensors_health = onboard_control_sensors_health
  8322. self.load = load
  8323. self.voltage_battery = voltage_battery
  8324. self.current_battery = current_battery
  8325. self.battery_remaining = battery_remaining
  8326. self.drop_rate_comm = drop_rate_comm
  8327. self.errors_comm = errors_comm
  8328. self.errors_count1 = errors_count1
  8329. self.errors_count2 = errors_count2
  8330. self.errors_count3 = errors_count3
  8331. self.errors_count4 = errors_count4
  8332. self.onboard_control_sensors_present_extended = onboard_control_sensors_present_extended
  8333. self.onboard_control_sensors_enabled_extended = onboard_control_sensors_enabled_extended
  8334. self.onboard_control_sensors_health_extended = onboard_control_sensors_health_extended
  8335. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8336. 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)
  8337. # Define name on the class for backwards compatibility (it is now msgname).
  8338. # Done with setattr to hide the class variable from mypy.
  8339. setattr(MAVLink_sys_status_message, "name", mavlink_msg_deprecated_name_property())
  8340. class MAVLink_system_time_message(MAVLink_message):
  8341. """
  8342. The system time is the time of the master clock, typically the
  8343. computer clock of the main onboard computer.
  8344. """
  8345. id = MAVLINK_MSG_ID_SYSTEM_TIME
  8346. msgname = "SYSTEM_TIME"
  8347. fieldnames = ["time_unix_usec", "time_boot_ms"]
  8348. ordered_fieldnames = ["time_unix_usec", "time_boot_ms"]
  8349. fieldtypes = ["uint64_t", "uint32_t"]
  8350. fielddisplays_by_name: Dict[str, str] = {}
  8351. fieldenums_by_name: Dict[str, str] = {}
  8352. fieldunits_by_name: Dict[str, str] = {"time_unix_usec": "us", "time_boot_ms": "ms"}
  8353. native_format = bytearray(b"<QI")
  8354. orders = [0, 1]
  8355. lengths = [1, 1]
  8356. array_lengths = [0, 0]
  8357. crc_extra = 137
  8358. unpacker = struct.Struct("<QI")
  8359. instance_field = None
  8360. instance_offset = -1
  8361. def __init__(self, time_unix_usec: int, time_boot_ms: int):
  8362. MAVLink_message.__init__(self, MAVLink_system_time_message.id, MAVLink_system_time_message.msgname)
  8363. self._fieldnames = MAVLink_system_time_message.fieldnames
  8364. self._instance_field = MAVLink_system_time_message.instance_field
  8365. self._instance_offset = MAVLink_system_time_message.instance_offset
  8366. self.time_unix_usec = time_unix_usec
  8367. self.time_boot_ms = time_boot_ms
  8368. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8369. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_unix_usec, self.time_boot_ms), force_mavlink1=force_mavlink1)
  8370. # Define name on the class for backwards compatibility (it is now msgname).
  8371. # Done with setattr to hide the class variable from mypy.
  8372. setattr(MAVLink_system_time_message, "name", mavlink_msg_deprecated_name_property())
  8373. class MAVLink_ping_message(MAVLink_message):
  8374. """
  8375. A ping message either requesting or responding to a ping. This
  8376. allows to measure the system latencies, including serial port,
  8377. radio modem and UDP connections. The ping microservice is
  8378. documented at https://mavlink.io/en/services/ping.html
  8379. """
  8380. id = MAVLINK_MSG_ID_PING
  8381. msgname = "PING"
  8382. fieldnames = ["time_usec", "seq", "target_system", "target_component"]
  8383. ordered_fieldnames = ["time_usec", "seq", "target_system", "target_component"]
  8384. fieldtypes = ["uint64_t", "uint32_t", "uint8_t", "uint8_t"]
  8385. fielddisplays_by_name: Dict[str, str] = {}
  8386. fieldenums_by_name: Dict[str, str] = {}
  8387. fieldunits_by_name: Dict[str, str] = {"time_usec": "us"}
  8388. native_format = bytearray(b"<QIBB")
  8389. orders = [0, 1, 2, 3]
  8390. lengths = [1, 1, 1, 1]
  8391. array_lengths = [0, 0, 0, 0]
  8392. crc_extra = 237
  8393. unpacker = struct.Struct("<QIBB")
  8394. instance_field = None
  8395. instance_offset = -1
  8396. def __init__(self, time_usec: int, seq: int, target_system: int, target_component: int):
  8397. MAVLink_message.__init__(self, MAVLink_ping_message.id, MAVLink_ping_message.msgname)
  8398. self._fieldnames = MAVLink_ping_message.fieldnames
  8399. self._instance_field = MAVLink_ping_message.instance_field
  8400. self._instance_offset = MAVLink_ping_message.instance_offset
  8401. self.time_usec = time_usec
  8402. self.seq = seq
  8403. self.target_system = target_system
  8404. self.target_component = target_component
  8405. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8406. 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)
  8407. # Define name on the class for backwards compatibility (it is now msgname).
  8408. # Done with setattr to hide the class variable from mypy.
  8409. setattr(MAVLink_ping_message, "name", mavlink_msg_deprecated_name_property())
  8410. class MAVLink_change_operator_control_message(MAVLink_message):
  8411. """
  8412. Request to control this MAV
  8413. """
  8414. id = MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL
  8415. msgname = "CHANGE_OPERATOR_CONTROL"
  8416. fieldnames = ["target_system", "control_request", "version", "passkey"]
  8417. ordered_fieldnames = ["target_system", "control_request", "version", "passkey"]
  8418. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "char"]
  8419. fielddisplays_by_name: Dict[str, str] = {}
  8420. fieldenums_by_name: Dict[str, str] = {}
  8421. fieldunits_by_name: Dict[str, str] = {"version": "rad"}
  8422. native_format = bytearray(b"<BBBc")
  8423. orders = [0, 1, 2, 3]
  8424. lengths = [1, 1, 1, 1]
  8425. array_lengths = [0, 0, 0, 25]
  8426. crc_extra = 217
  8427. unpacker = struct.Struct("<BBB25s")
  8428. instance_field = None
  8429. instance_offset = -1
  8430. def __init__(self, target_system: int, control_request: int, version: int, passkey: bytes):
  8431. MAVLink_message.__init__(self, MAVLink_change_operator_control_message.id, MAVLink_change_operator_control_message.msgname)
  8432. self._fieldnames = MAVLink_change_operator_control_message.fieldnames
  8433. self._instance_field = MAVLink_change_operator_control_message.instance_field
  8434. self._instance_offset = MAVLink_change_operator_control_message.instance_offset
  8435. self.target_system = target_system
  8436. self.control_request = control_request
  8437. self.version = version
  8438. self._passkey_raw = passkey
  8439. self.passkey = passkey.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  8440. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8441. 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)
  8442. # Define name on the class for backwards compatibility (it is now msgname).
  8443. # Done with setattr to hide the class variable from mypy.
  8444. setattr(MAVLink_change_operator_control_message, "name", mavlink_msg_deprecated_name_property())
  8445. class MAVLink_change_operator_control_ack_message(MAVLink_message):
  8446. """
  8447. Accept / deny control of this MAV
  8448. """
  8449. id = MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK
  8450. msgname = "CHANGE_OPERATOR_CONTROL_ACK"
  8451. fieldnames = ["gcs_system_id", "control_request", "ack"]
  8452. ordered_fieldnames = ["gcs_system_id", "control_request", "ack"]
  8453. fieldtypes = ["uint8_t", "uint8_t", "uint8_t"]
  8454. fielddisplays_by_name: Dict[str, str] = {}
  8455. fieldenums_by_name: Dict[str, str] = {}
  8456. fieldunits_by_name: Dict[str, str] = {}
  8457. native_format = bytearray(b"<BBB")
  8458. orders = [0, 1, 2]
  8459. lengths = [1, 1, 1]
  8460. array_lengths = [0, 0, 0]
  8461. crc_extra = 104
  8462. unpacker = struct.Struct("<BBB")
  8463. instance_field = None
  8464. instance_offset = -1
  8465. def __init__(self, gcs_system_id: int, control_request: int, ack: int):
  8466. MAVLink_message.__init__(self, MAVLink_change_operator_control_ack_message.id, MAVLink_change_operator_control_ack_message.msgname)
  8467. self._fieldnames = MAVLink_change_operator_control_ack_message.fieldnames
  8468. self._instance_field = MAVLink_change_operator_control_ack_message.instance_field
  8469. self._instance_offset = MAVLink_change_operator_control_ack_message.instance_offset
  8470. self.gcs_system_id = gcs_system_id
  8471. self.control_request = control_request
  8472. self.ack = ack
  8473. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8474. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.gcs_system_id, self.control_request, self.ack), force_mavlink1=force_mavlink1)
  8475. # Define name on the class for backwards compatibility (it is now msgname).
  8476. # Done with setattr to hide the class variable from mypy.
  8477. setattr(MAVLink_change_operator_control_ack_message, "name", mavlink_msg_deprecated_name_property())
  8478. class MAVLink_auth_key_message(MAVLink_message):
  8479. """
  8480. Emit an encrypted signature / key identifying this system. PLEASE
  8481. NOTE: This protocol has been kept simple, so transmitting the key
  8482. requires an encrypted channel for true safety.
  8483. """
  8484. id = MAVLINK_MSG_ID_AUTH_KEY
  8485. msgname = "AUTH_KEY"
  8486. fieldnames = ["key"]
  8487. ordered_fieldnames = ["key"]
  8488. fieldtypes = ["char"]
  8489. fielddisplays_by_name: Dict[str, str] = {}
  8490. fieldenums_by_name: Dict[str, str] = {}
  8491. fieldunits_by_name: Dict[str, str] = {}
  8492. native_format = bytearray(b"<c")
  8493. orders = [0]
  8494. lengths = [1]
  8495. array_lengths = [32]
  8496. crc_extra = 119
  8497. unpacker = struct.Struct("<32s")
  8498. instance_field = None
  8499. instance_offset = -1
  8500. def __init__(self, key: bytes):
  8501. MAVLink_message.__init__(self, MAVLink_auth_key_message.id, MAVLink_auth_key_message.msgname)
  8502. self._fieldnames = MAVLink_auth_key_message.fieldnames
  8503. self._instance_field = MAVLink_auth_key_message.instance_field
  8504. self._instance_offset = MAVLink_auth_key_message.instance_offset
  8505. self._key_raw = key
  8506. self.key = key.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  8507. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8508. return self._pack(mav, self.crc_extra, self.unpacker.pack(self._key_raw), force_mavlink1=force_mavlink1)
  8509. # Define name on the class for backwards compatibility (it is now msgname).
  8510. # Done with setattr to hide the class variable from mypy.
  8511. setattr(MAVLink_auth_key_message, "name", mavlink_msg_deprecated_name_property())
  8512. class MAVLink_link_node_status_message(MAVLink_message):
  8513. """
  8514. Status generated in each node in the communication chain and
  8515. injected into MAVLink stream.
  8516. """
  8517. id = MAVLINK_MSG_ID_LINK_NODE_STATUS
  8518. msgname = "LINK_NODE_STATUS"
  8519. fieldnames = ["timestamp", "tx_buf", "rx_buf", "tx_rate", "rx_rate", "rx_parse_err", "tx_overflows", "rx_overflows", "messages_sent", "messages_received", "messages_lost"]
  8520. ordered_fieldnames = ["timestamp", "tx_rate", "rx_rate", "messages_sent", "messages_received", "messages_lost", "rx_parse_err", "tx_overflows", "rx_overflows", "tx_buf", "rx_buf"]
  8521. fieldtypes = ["uint64_t", "uint8_t", "uint8_t", "uint32_t", "uint32_t", "uint16_t", "uint16_t", "uint16_t", "uint32_t", "uint32_t", "uint32_t"]
  8522. fielddisplays_by_name: Dict[str, str] = {}
  8523. fieldenums_by_name: Dict[str, str] = {}
  8524. 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"}
  8525. native_format = bytearray(b"<QIIIIIHHHBB")
  8526. orders = [0, 9, 10, 1, 2, 6, 7, 8, 3, 4, 5]
  8527. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  8528. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  8529. crc_extra = 117
  8530. unpacker = struct.Struct("<QIIIIIHHHBB")
  8531. instance_field = None
  8532. instance_offset = -1
  8533. 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):
  8534. MAVLink_message.__init__(self, MAVLink_link_node_status_message.id, MAVLink_link_node_status_message.msgname)
  8535. self._fieldnames = MAVLink_link_node_status_message.fieldnames
  8536. self._instance_field = MAVLink_link_node_status_message.instance_field
  8537. self._instance_offset = MAVLink_link_node_status_message.instance_offset
  8538. self.timestamp = timestamp
  8539. self.tx_buf = tx_buf
  8540. self.rx_buf = rx_buf
  8541. self.tx_rate = tx_rate
  8542. self.rx_rate = rx_rate
  8543. self.rx_parse_err = rx_parse_err
  8544. self.tx_overflows = tx_overflows
  8545. self.rx_overflows = rx_overflows
  8546. self.messages_sent = messages_sent
  8547. self.messages_received = messages_received
  8548. self.messages_lost = messages_lost
  8549. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8550. 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)
  8551. # Define name on the class for backwards compatibility (it is now msgname).
  8552. # Done with setattr to hide the class variable from mypy.
  8553. setattr(MAVLink_link_node_status_message, "name", mavlink_msg_deprecated_name_property())
  8554. class MAVLink_set_mode_message(MAVLink_message):
  8555. """
  8556. Set the system mode, as defined by enum MAV_MODE. There is no
  8557. target component id as the mode is by definition for the overall
  8558. aircraft, not only for one component.
  8559. """
  8560. id = MAVLINK_MSG_ID_SET_MODE
  8561. msgname = "SET_MODE"
  8562. fieldnames = ["target_system", "base_mode", "custom_mode"]
  8563. ordered_fieldnames = ["custom_mode", "target_system", "base_mode"]
  8564. fieldtypes = ["uint8_t", "uint8_t", "uint32_t"]
  8565. fielddisplays_by_name: Dict[str, str] = {}
  8566. fieldenums_by_name: Dict[str, str] = {"base_mode": "MAV_MODE"}
  8567. fieldunits_by_name: Dict[str, str] = {}
  8568. native_format = bytearray(b"<IBB")
  8569. orders = [1, 2, 0]
  8570. lengths = [1, 1, 1]
  8571. array_lengths = [0, 0, 0]
  8572. crc_extra = 89
  8573. unpacker = struct.Struct("<IBB")
  8574. instance_field = None
  8575. instance_offset = -1
  8576. def __init__(self, target_system: int, base_mode: int, custom_mode: int):
  8577. MAVLink_message.__init__(self, MAVLink_set_mode_message.id, MAVLink_set_mode_message.msgname)
  8578. self._fieldnames = MAVLink_set_mode_message.fieldnames
  8579. self._instance_field = MAVLink_set_mode_message.instance_field
  8580. self._instance_offset = MAVLink_set_mode_message.instance_offset
  8581. self.target_system = target_system
  8582. self.base_mode = base_mode
  8583. self.custom_mode = custom_mode
  8584. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8585. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.custom_mode, self.target_system, self.base_mode), force_mavlink1=force_mavlink1)
  8586. # Define name on the class for backwards compatibility (it is now msgname).
  8587. # Done with setattr to hide the class variable from mypy.
  8588. setattr(MAVLink_set_mode_message, "name", mavlink_msg_deprecated_name_property())
  8589. class MAVLink_param_request_read_message(MAVLink_message):
  8590. """
  8591. Request to read the onboard parameter with the param_id string id.
  8592. Onboard parameters are stored as key[const char*] -> value[float].
  8593. This allows to send a parameter to any other component (such as
  8594. the GCS) without the need of previous knowledge of possible
  8595. parameter names. Thus the same GCS can store different parameters
  8596. for different autopilots. See also
  8597. https://mavlink.io/en/services/parameter.html for a full
  8598. documentation of QGroundControl and IMU code.
  8599. """
  8600. id = MAVLINK_MSG_ID_PARAM_REQUEST_READ
  8601. msgname = "PARAM_REQUEST_READ"
  8602. fieldnames = ["target_system", "target_component", "param_id", "param_index"]
  8603. ordered_fieldnames = ["param_index", "target_system", "target_component", "param_id"]
  8604. fieldtypes = ["uint8_t", "uint8_t", "char", "int16_t"]
  8605. fielddisplays_by_name: Dict[str, str] = {}
  8606. fieldenums_by_name: Dict[str, str] = {}
  8607. fieldunits_by_name: Dict[str, str] = {}
  8608. native_format = bytearray(b"<hBBc")
  8609. orders = [1, 2, 3, 0]
  8610. lengths = [1, 1, 1, 1]
  8611. array_lengths = [0, 0, 0, 16]
  8612. crc_extra = 214
  8613. unpacker = struct.Struct("<hBB16s")
  8614. instance_field = None
  8615. instance_offset = -1
  8616. def __init__(self, target_system: int, target_component: int, param_id: bytes, param_index: int):
  8617. MAVLink_message.__init__(self, MAVLink_param_request_read_message.id, MAVLink_param_request_read_message.msgname)
  8618. self._fieldnames = MAVLink_param_request_read_message.fieldnames
  8619. self._instance_field = MAVLink_param_request_read_message.instance_field
  8620. self._instance_offset = MAVLink_param_request_read_message.instance_offset
  8621. self.target_system = target_system
  8622. self.target_component = target_component
  8623. self._param_id_raw = param_id
  8624. self.param_id = param_id.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  8625. self.param_index = param_index
  8626. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8627. 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)
  8628. # Define name on the class for backwards compatibility (it is now msgname).
  8629. # Done with setattr to hide the class variable from mypy.
  8630. setattr(MAVLink_param_request_read_message, "name", mavlink_msg_deprecated_name_property())
  8631. class MAVLink_param_request_list_message(MAVLink_message):
  8632. """
  8633. Request all parameters of this component. After this request, all
  8634. parameters are emitted. The parameter microservice is documented
  8635. at https://mavlink.io/en/services/parameter.html
  8636. """
  8637. id = MAVLINK_MSG_ID_PARAM_REQUEST_LIST
  8638. msgname = "PARAM_REQUEST_LIST"
  8639. fieldnames = ["target_system", "target_component"]
  8640. ordered_fieldnames = ["target_system", "target_component"]
  8641. fieldtypes = ["uint8_t", "uint8_t"]
  8642. fielddisplays_by_name: Dict[str, str] = {}
  8643. fieldenums_by_name: Dict[str, str] = {}
  8644. fieldunits_by_name: Dict[str, str] = {}
  8645. native_format = bytearray(b"<BB")
  8646. orders = [0, 1]
  8647. lengths = [1, 1]
  8648. array_lengths = [0, 0]
  8649. crc_extra = 159
  8650. unpacker = struct.Struct("<BB")
  8651. instance_field = None
  8652. instance_offset = -1
  8653. def __init__(self, target_system: int, target_component: int):
  8654. MAVLink_message.__init__(self, MAVLink_param_request_list_message.id, MAVLink_param_request_list_message.msgname)
  8655. self._fieldnames = MAVLink_param_request_list_message.fieldnames
  8656. self._instance_field = MAVLink_param_request_list_message.instance_field
  8657. self._instance_offset = MAVLink_param_request_list_message.instance_offset
  8658. self.target_system = target_system
  8659. self.target_component = target_component
  8660. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8661. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.target_system, self.target_component), force_mavlink1=force_mavlink1)
  8662. # Define name on the class for backwards compatibility (it is now msgname).
  8663. # Done with setattr to hide the class variable from mypy.
  8664. setattr(MAVLink_param_request_list_message, "name", mavlink_msg_deprecated_name_property())
  8665. class MAVLink_param_value_message(MAVLink_message):
  8666. """
  8667. Emit the value of a onboard parameter. The inclusion of
  8668. param_count and param_index in the message allows the recipient to
  8669. keep track of received parameters and allows him to re-request
  8670. missing parameters after a loss or timeout. The parameter
  8671. microservice is documented at
  8672. https://mavlink.io/en/services/parameter.html
  8673. """
  8674. id = MAVLINK_MSG_ID_PARAM_VALUE
  8675. msgname = "PARAM_VALUE"
  8676. fieldnames = ["param_id", "param_value", "param_type", "param_count", "param_index"]
  8677. ordered_fieldnames = ["param_value", "param_count", "param_index", "param_id", "param_type"]
  8678. fieldtypes = ["char", "float", "uint8_t", "uint16_t", "uint16_t"]
  8679. fielddisplays_by_name: Dict[str, str] = {}
  8680. fieldenums_by_name: Dict[str, str] = {"param_type": "MAV_PARAM_TYPE"}
  8681. fieldunits_by_name: Dict[str, str] = {}
  8682. native_format = bytearray(b"<fHHcB")
  8683. orders = [3, 0, 4, 1, 2]
  8684. lengths = [1, 1, 1, 1, 1]
  8685. array_lengths = [0, 0, 0, 16, 0]
  8686. crc_extra = 220
  8687. unpacker = struct.Struct("<fHH16sB")
  8688. instance_field = None
  8689. instance_offset = -1
  8690. def __init__(self, param_id: bytes, param_value: float, param_type: int, param_count: int, param_index: int):
  8691. MAVLink_message.__init__(self, MAVLink_param_value_message.id, MAVLink_param_value_message.msgname)
  8692. self._fieldnames = MAVLink_param_value_message.fieldnames
  8693. self._instance_field = MAVLink_param_value_message.instance_field
  8694. self._instance_offset = MAVLink_param_value_message.instance_offset
  8695. self._param_id_raw = param_id
  8696. self.param_id = param_id.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  8697. self.param_value = param_value
  8698. self.param_type = param_type
  8699. self.param_count = param_count
  8700. self.param_index = param_index
  8701. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8702. 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)
  8703. # Define name on the class for backwards compatibility (it is now msgname).
  8704. # Done with setattr to hide the class variable from mypy.
  8705. setattr(MAVLink_param_value_message, "name", mavlink_msg_deprecated_name_property())
  8706. class MAVLink_param_set_message(MAVLink_message):
  8707. """
  8708. Set a parameter value (write new value to permanent storage).
  8709. The receiving component should acknowledge the new parameter value
  8710. by broadcasting a PARAM_VALUE message (broadcasting ensures that
  8711. multiple GCS all have an up-to-date list of all parameters). If
  8712. the sending GCS did not receive a PARAM_VALUE within its timeout
  8713. time, it should re-send the PARAM_SET message. The parameter
  8714. microservice is documented at
  8715. https://mavlink.io/en/services/parameter.html. PARAM_SET
  8716. may also be called within the context of a transaction (started
  8717. with MAV_CMD_PARAM_TRANSACTION). Within a transaction the
  8718. receiving component should respond with PARAM_ACK_TRANSACTION to
  8719. the setter component (instead of broadcasting PARAM_VALUE), and
  8720. PARAM_SET should be re-sent if this is ACK not received.
  8721. """
  8722. id = MAVLINK_MSG_ID_PARAM_SET
  8723. msgname = "PARAM_SET"
  8724. fieldnames = ["target_system", "target_component", "param_id", "param_value", "param_type"]
  8725. ordered_fieldnames = ["param_value", "target_system", "target_component", "param_id", "param_type"]
  8726. fieldtypes = ["uint8_t", "uint8_t", "char", "float", "uint8_t"]
  8727. fielddisplays_by_name: Dict[str, str] = {}
  8728. fieldenums_by_name: Dict[str, str] = {"param_type": "MAV_PARAM_TYPE"}
  8729. fieldunits_by_name: Dict[str, str] = {}
  8730. native_format = bytearray(b"<fBBcB")
  8731. orders = [1, 2, 3, 0, 4]
  8732. lengths = [1, 1, 1, 1, 1]
  8733. array_lengths = [0, 0, 0, 16, 0]
  8734. crc_extra = 168
  8735. unpacker = struct.Struct("<fBB16sB")
  8736. instance_field = None
  8737. instance_offset = -1
  8738. def __init__(self, target_system: int, target_component: int, param_id: bytes, param_value: float, param_type: int):
  8739. MAVLink_message.__init__(self, MAVLink_param_set_message.id, MAVLink_param_set_message.msgname)
  8740. self._fieldnames = MAVLink_param_set_message.fieldnames
  8741. self._instance_field = MAVLink_param_set_message.instance_field
  8742. self._instance_offset = MAVLink_param_set_message.instance_offset
  8743. self.target_system = target_system
  8744. self.target_component = target_component
  8745. self._param_id_raw = param_id
  8746. self.param_id = param_id.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  8747. self.param_value = param_value
  8748. self.param_type = param_type
  8749. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8750. 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)
  8751. # Define name on the class for backwards compatibility (it is now msgname).
  8752. # Done with setattr to hide the class variable from mypy.
  8753. setattr(MAVLink_param_set_message, "name", mavlink_msg_deprecated_name_property())
  8754. class MAVLink_gps_raw_int_message(MAVLink_message):
  8755. """
  8756. The global position, as returned by the Global Positioning System
  8757. (GPS). This is NOT the global position estimate of
  8758. the system, but rather a RAW sensor value. See message
  8759. GLOBAL_POSITION_INT for the global position estimate.
  8760. """
  8761. id = MAVLINK_MSG_ID_GPS_RAW_INT
  8762. msgname = "GPS_RAW_INT"
  8763. 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"]
  8764. 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"]
  8765. 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"]
  8766. fielddisplays_by_name: Dict[str, str] = {}
  8767. fieldenums_by_name: Dict[str, str] = {"fix_type": "GPS_FIX_TYPE"}
  8768. 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"}
  8769. native_format = bytearray(b"<QiiiHHHHBBiIIIIH")
  8770. orders = [0, 8, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15]
  8771. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  8772. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  8773. crc_extra = 24
  8774. unpacker = struct.Struct("<QiiiHHHHBBiIIIIH")
  8775. instance_field = None
  8776. instance_offset = -1
  8777. 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):
  8778. MAVLink_message.__init__(self, MAVLink_gps_raw_int_message.id, MAVLink_gps_raw_int_message.msgname)
  8779. self._fieldnames = MAVLink_gps_raw_int_message.fieldnames
  8780. self._instance_field = MAVLink_gps_raw_int_message.instance_field
  8781. self._instance_offset = MAVLink_gps_raw_int_message.instance_offset
  8782. self.time_usec = time_usec
  8783. self.fix_type = fix_type
  8784. self.lat = lat
  8785. self.lon = lon
  8786. self.alt = alt
  8787. self.eph = eph
  8788. self.epv = epv
  8789. self.vel = vel
  8790. self.cog = cog
  8791. self.satellites_visible = satellites_visible
  8792. self.alt_ellipsoid = alt_ellipsoid
  8793. self.h_acc = h_acc
  8794. self.v_acc = v_acc
  8795. self.vel_acc = vel_acc
  8796. self.hdg_acc = hdg_acc
  8797. self.yaw = yaw
  8798. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8799. 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)
  8800. # Define name on the class for backwards compatibility (it is now msgname).
  8801. # Done with setattr to hide the class variable from mypy.
  8802. setattr(MAVLink_gps_raw_int_message, "name", mavlink_msg_deprecated_name_property())
  8803. class MAVLink_gps_status_message(MAVLink_message):
  8804. """
  8805. The positioning status, as reported by GPS. This message is
  8806. intended to display status information about each satellite
  8807. visible to the receiver. See message GLOBAL_POSITION_INT for the
  8808. global position estimate. This message can contain information for
  8809. up to 20 satellites.
  8810. """
  8811. id = MAVLINK_MSG_ID_GPS_STATUS
  8812. msgname = "GPS_STATUS"
  8813. fieldnames = ["satellites_visible", "satellite_prn", "satellite_used", "satellite_elevation", "satellite_azimuth", "satellite_snr"]
  8814. ordered_fieldnames = ["satellites_visible", "satellite_prn", "satellite_used", "satellite_elevation", "satellite_azimuth", "satellite_snr"]
  8815. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t"]
  8816. fielddisplays_by_name: Dict[str, str] = {}
  8817. fieldenums_by_name: Dict[str, str] = {}
  8818. fieldunits_by_name: Dict[str, str] = {"satellite_elevation": "deg", "satellite_azimuth": "deg", "satellite_snr": "dB"}
  8819. native_format = bytearray(b"<BBBBBB")
  8820. orders = [0, 1, 2, 3, 4, 5]
  8821. lengths = [1, 20, 20, 20, 20, 20]
  8822. array_lengths = [0, 20, 20, 20, 20, 20]
  8823. crc_extra = 23
  8824. unpacker = struct.Struct("<B20B20B20B20B20B")
  8825. instance_field = None
  8826. instance_offset = -1
  8827. 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]):
  8828. MAVLink_message.__init__(self, MAVLink_gps_status_message.id, MAVLink_gps_status_message.msgname)
  8829. self._fieldnames = MAVLink_gps_status_message.fieldnames
  8830. self._instance_field = MAVLink_gps_status_message.instance_field
  8831. self._instance_offset = MAVLink_gps_status_message.instance_offset
  8832. self.satellites_visible = satellites_visible
  8833. self.satellite_prn = satellite_prn
  8834. self.satellite_used = satellite_used
  8835. self.satellite_elevation = satellite_elevation
  8836. self.satellite_azimuth = satellite_azimuth
  8837. self.satellite_snr = satellite_snr
  8838. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8839. 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)
  8840. # Define name on the class for backwards compatibility (it is now msgname).
  8841. # Done with setattr to hide the class variable from mypy.
  8842. setattr(MAVLink_gps_status_message, "name", mavlink_msg_deprecated_name_property())
  8843. class MAVLink_scaled_imu_message(MAVLink_message):
  8844. """
  8845. The RAW IMU readings for the usual 9DOF sensor setup. This message
  8846. should contain the scaled values to the described units
  8847. """
  8848. id = MAVLINK_MSG_ID_SCALED_IMU
  8849. msgname = "SCALED_IMU"
  8850. fieldnames = ["time_boot_ms", "xacc", "yacc", "zacc", "xgyro", "ygyro", "zgyro", "xmag", "ymag", "zmag", "temperature"]
  8851. ordered_fieldnames = ["time_boot_ms", "xacc", "yacc", "zacc", "xgyro", "ygyro", "zgyro", "xmag", "ymag", "zmag", "temperature"]
  8852. fieldtypes = ["uint32_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t"]
  8853. fielddisplays_by_name: Dict[str, str] = {}
  8854. fieldenums_by_name: Dict[str, str] = {}
  8855. 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"}
  8856. native_format = bytearray(b"<Ihhhhhhhhhh")
  8857. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
  8858. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  8859. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  8860. crc_extra = 170
  8861. unpacker = struct.Struct("<Ihhhhhhhhhh")
  8862. instance_field = None
  8863. instance_offset = -1
  8864. 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):
  8865. MAVLink_message.__init__(self, MAVLink_scaled_imu_message.id, MAVLink_scaled_imu_message.msgname)
  8866. self._fieldnames = MAVLink_scaled_imu_message.fieldnames
  8867. self._instance_field = MAVLink_scaled_imu_message.instance_field
  8868. self._instance_offset = MAVLink_scaled_imu_message.instance_offset
  8869. self.time_boot_ms = time_boot_ms
  8870. self.xacc = xacc
  8871. self.yacc = yacc
  8872. self.zacc = zacc
  8873. self.xgyro = xgyro
  8874. self.ygyro = ygyro
  8875. self.zgyro = zgyro
  8876. self.xmag = xmag
  8877. self.ymag = ymag
  8878. self.zmag = zmag
  8879. self.temperature = temperature
  8880. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8881. 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)
  8882. # Define name on the class for backwards compatibility (it is now msgname).
  8883. # Done with setattr to hide the class variable from mypy.
  8884. setattr(MAVLink_scaled_imu_message, "name", mavlink_msg_deprecated_name_property())
  8885. class MAVLink_raw_imu_message(MAVLink_message):
  8886. """
  8887. The RAW IMU readings for a 9DOF sensor, which is identified by the
  8888. id (default IMU1). This message should always contain the true raw
  8889. values without any scaling to allow data capture and system
  8890. debugging.
  8891. """
  8892. id = MAVLINK_MSG_ID_RAW_IMU
  8893. msgname = "RAW_IMU"
  8894. fieldnames = ["time_usec", "xacc", "yacc", "zacc", "xgyro", "ygyro", "zgyro", "xmag", "ymag", "zmag", "id", "temperature"]
  8895. ordered_fieldnames = ["time_usec", "xacc", "yacc", "zacc", "xgyro", "ygyro", "zgyro", "xmag", "ymag", "zmag", "id", "temperature"]
  8896. 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"]
  8897. fielddisplays_by_name: Dict[str, str] = {}
  8898. fieldenums_by_name: Dict[str, str] = {}
  8899. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "temperature": "cdegC"}
  8900. native_format = bytearray(b"<QhhhhhhhhhBh")
  8901. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
  8902. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  8903. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  8904. crc_extra = 144
  8905. unpacker = struct.Struct("<QhhhhhhhhhBh")
  8906. instance_field = "id"
  8907. instance_offset = 26
  8908. 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):
  8909. MAVLink_message.__init__(self, MAVLink_raw_imu_message.id, MAVLink_raw_imu_message.msgname)
  8910. self._fieldnames = MAVLink_raw_imu_message.fieldnames
  8911. self._instance_field = MAVLink_raw_imu_message.instance_field
  8912. self._instance_offset = MAVLink_raw_imu_message.instance_offset
  8913. self.time_usec = time_usec
  8914. self.xacc = xacc
  8915. self.yacc = yacc
  8916. self.zacc = zacc
  8917. self.xgyro = xgyro
  8918. self.ygyro = ygyro
  8919. self.zgyro = zgyro
  8920. self.xmag = xmag
  8921. self.ymag = ymag
  8922. self.zmag = zmag
  8923. self.id = id
  8924. self.temperature = temperature
  8925. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8926. 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)
  8927. # Define name on the class for backwards compatibility (it is now msgname).
  8928. # Done with setattr to hide the class variable from mypy.
  8929. setattr(MAVLink_raw_imu_message, "name", mavlink_msg_deprecated_name_property())
  8930. class MAVLink_raw_pressure_message(MAVLink_message):
  8931. """
  8932. The RAW pressure readings for the typical setup of one absolute
  8933. pressure and one differential pressure sensor. The sensor values
  8934. should be the raw, UNSCALED ADC values.
  8935. """
  8936. id = MAVLINK_MSG_ID_RAW_PRESSURE
  8937. msgname = "RAW_PRESSURE"
  8938. fieldnames = ["time_usec", "press_abs", "press_diff1", "press_diff2", "temperature"]
  8939. ordered_fieldnames = ["time_usec", "press_abs", "press_diff1", "press_diff2", "temperature"]
  8940. fieldtypes = ["uint64_t", "int16_t", "int16_t", "int16_t", "int16_t"]
  8941. fielddisplays_by_name: Dict[str, str] = {}
  8942. fieldenums_by_name: Dict[str, str] = {}
  8943. fieldunits_by_name: Dict[str, str] = {"time_usec": "us"}
  8944. native_format = bytearray(b"<Qhhhh")
  8945. orders = [0, 1, 2, 3, 4]
  8946. lengths = [1, 1, 1, 1, 1]
  8947. array_lengths = [0, 0, 0, 0, 0]
  8948. crc_extra = 67
  8949. unpacker = struct.Struct("<Qhhhh")
  8950. instance_field = None
  8951. instance_offset = -1
  8952. def __init__(self, time_usec: int, press_abs: int, press_diff1: int, press_diff2: int, temperature: int):
  8953. MAVLink_message.__init__(self, MAVLink_raw_pressure_message.id, MAVLink_raw_pressure_message.msgname)
  8954. self._fieldnames = MAVLink_raw_pressure_message.fieldnames
  8955. self._instance_field = MAVLink_raw_pressure_message.instance_field
  8956. self._instance_offset = MAVLink_raw_pressure_message.instance_offset
  8957. self.time_usec = time_usec
  8958. self.press_abs = press_abs
  8959. self.press_diff1 = press_diff1
  8960. self.press_diff2 = press_diff2
  8961. self.temperature = temperature
  8962. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  8963. 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)
  8964. # Define name on the class for backwards compatibility (it is now msgname).
  8965. # Done with setattr to hide the class variable from mypy.
  8966. setattr(MAVLink_raw_pressure_message, "name", mavlink_msg_deprecated_name_property())
  8967. class MAVLink_scaled_pressure_message(MAVLink_message):
  8968. """
  8969. The pressure readings for the typical setup of one absolute and
  8970. differential pressure sensor. The units are as specified in each
  8971. field.
  8972. """
  8973. id = MAVLINK_MSG_ID_SCALED_PRESSURE
  8974. msgname = "SCALED_PRESSURE"
  8975. fieldnames = ["time_boot_ms", "press_abs", "press_diff", "temperature", "temperature_press_diff"]
  8976. ordered_fieldnames = ["time_boot_ms", "press_abs", "press_diff", "temperature", "temperature_press_diff"]
  8977. fieldtypes = ["uint32_t", "float", "float", "int16_t", "int16_t"]
  8978. fielddisplays_by_name: Dict[str, str] = {}
  8979. fieldenums_by_name: Dict[str, str] = {}
  8980. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "press_abs": "hPa", "press_diff": "hPa", "temperature": "cdegC", "temperature_press_diff": "cdegC"}
  8981. native_format = bytearray(b"<Iffhh")
  8982. orders = [0, 1, 2, 3, 4]
  8983. lengths = [1, 1, 1, 1, 1]
  8984. array_lengths = [0, 0, 0, 0, 0]
  8985. crc_extra = 115
  8986. unpacker = struct.Struct("<Iffhh")
  8987. instance_field = None
  8988. instance_offset = -1
  8989. def __init__(self, time_boot_ms: int, press_abs: float, press_diff: float, temperature: int, temperature_press_diff: int = 0):
  8990. MAVLink_message.__init__(self, MAVLink_scaled_pressure_message.id, MAVLink_scaled_pressure_message.msgname)
  8991. self._fieldnames = MAVLink_scaled_pressure_message.fieldnames
  8992. self._instance_field = MAVLink_scaled_pressure_message.instance_field
  8993. self._instance_offset = MAVLink_scaled_pressure_message.instance_offset
  8994. self.time_boot_ms = time_boot_ms
  8995. self.press_abs = press_abs
  8996. self.press_diff = press_diff
  8997. self.temperature = temperature
  8998. self.temperature_press_diff = temperature_press_diff
  8999. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9000. 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)
  9001. # Define name on the class for backwards compatibility (it is now msgname).
  9002. # Done with setattr to hide the class variable from mypy.
  9003. setattr(MAVLink_scaled_pressure_message, "name", mavlink_msg_deprecated_name_property())
  9004. class MAVLink_attitude_message(MAVLink_message):
  9005. """
  9006. The attitude in the aeronautical frame (right-handed, Z-down,
  9007. Y-right, X-front, ZYX, intrinsic).
  9008. """
  9009. id = MAVLINK_MSG_ID_ATTITUDE
  9010. msgname = "ATTITUDE"
  9011. fieldnames = ["time_boot_ms", "roll", "pitch", "yaw", "rollspeed", "pitchspeed", "yawspeed"]
  9012. ordered_fieldnames = ["time_boot_ms", "roll", "pitch", "yaw", "rollspeed", "pitchspeed", "yawspeed"]
  9013. fieldtypes = ["uint32_t", "float", "float", "float", "float", "float", "float"]
  9014. fielddisplays_by_name: Dict[str, str] = {}
  9015. fieldenums_by_name: Dict[str, str] = {}
  9016. 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"}
  9017. native_format = bytearray(b"<Iffffff")
  9018. orders = [0, 1, 2, 3, 4, 5, 6]
  9019. lengths = [1, 1, 1, 1, 1, 1, 1]
  9020. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  9021. crc_extra = 39
  9022. unpacker = struct.Struct("<Iffffff")
  9023. instance_field = None
  9024. instance_offset = -1
  9025. def __init__(self, time_boot_ms: int, roll: float, pitch: float, yaw: float, rollspeed: float, pitchspeed: float, yawspeed: float):
  9026. MAVLink_message.__init__(self, MAVLink_attitude_message.id, MAVLink_attitude_message.msgname)
  9027. self._fieldnames = MAVLink_attitude_message.fieldnames
  9028. self._instance_field = MAVLink_attitude_message.instance_field
  9029. self._instance_offset = MAVLink_attitude_message.instance_offset
  9030. self.time_boot_ms = time_boot_ms
  9031. self.roll = roll
  9032. self.pitch = pitch
  9033. self.yaw = yaw
  9034. self.rollspeed = rollspeed
  9035. self.pitchspeed = pitchspeed
  9036. self.yawspeed = yawspeed
  9037. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9038. 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)
  9039. # Define name on the class for backwards compatibility (it is now msgname).
  9040. # Done with setattr to hide the class variable from mypy.
  9041. setattr(MAVLink_attitude_message, "name", mavlink_msg_deprecated_name_property())
  9042. class MAVLink_attitude_quaternion_message(MAVLink_message):
  9043. """
  9044. The attitude in the aeronautical frame (right-handed, Z-down,
  9045. X-front, Y-right), expressed as quaternion. Quaternion order is w,
  9046. x, y, z and a zero rotation would be expressed as (1 0 0 0).
  9047. """
  9048. id = MAVLINK_MSG_ID_ATTITUDE_QUATERNION
  9049. msgname = "ATTITUDE_QUATERNION"
  9050. fieldnames = ["time_boot_ms", "q1", "q2", "q3", "q4", "rollspeed", "pitchspeed", "yawspeed", "repr_offset_q"]
  9051. ordered_fieldnames = ["time_boot_ms", "q1", "q2", "q3", "q4", "rollspeed", "pitchspeed", "yawspeed", "repr_offset_q"]
  9052. fieldtypes = ["uint32_t", "float", "float", "float", "float", "float", "float", "float", "float"]
  9053. fielddisplays_by_name: Dict[str, str] = {}
  9054. fieldenums_by_name: Dict[str, str] = {}
  9055. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "rollspeed": "rad/s", "pitchspeed": "rad/s", "yawspeed": "rad/s"}
  9056. native_format = bytearray(b"<Iffffffff")
  9057. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8]
  9058. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 4]
  9059. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 4]
  9060. crc_extra = 246
  9061. unpacker = struct.Struct("<Ifffffff4f")
  9062. instance_field = None
  9063. instance_offset = -1
  9064. 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)):
  9065. MAVLink_message.__init__(self, MAVLink_attitude_quaternion_message.id, MAVLink_attitude_quaternion_message.msgname)
  9066. self._fieldnames = MAVLink_attitude_quaternion_message.fieldnames
  9067. self._instance_field = MAVLink_attitude_quaternion_message.instance_field
  9068. self._instance_offset = MAVLink_attitude_quaternion_message.instance_offset
  9069. self.time_boot_ms = time_boot_ms
  9070. self.q1 = q1
  9071. self.q2 = q2
  9072. self.q3 = q3
  9073. self.q4 = q4
  9074. self.rollspeed = rollspeed
  9075. self.pitchspeed = pitchspeed
  9076. self.yawspeed = yawspeed
  9077. self.repr_offset_q = repr_offset_q
  9078. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9079. 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)
  9080. # Define name on the class for backwards compatibility (it is now msgname).
  9081. # Done with setattr to hide the class variable from mypy.
  9082. setattr(MAVLink_attitude_quaternion_message, "name", mavlink_msg_deprecated_name_property())
  9083. class MAVLink_local_position_ned_message(MAVLink_message):
  9084. """
  9085. The filtered local position (e.g. fused computer vision and
  9086. accelerometers). Coordinate frame is right-handed, Z-axis down
  9087. (aeronautical frame, NED / north-east-down convention)
  9088. """
  9089. id = MAVLINK_MSG_ID_LOCAL_POSITION_NED
  9090. msgname = "LOCAL_POSITION_NED"
  9091. fieldnames = ["time_boot_ms", "x", "y", "z", "vx", "vy", "vz"]
  9092. ordered_fieldnames = ["time_boot_ms", "x", "y", "z", "vx", "vy", "vz"]
  9093. fieldtypes = ["uint32_t", "float", "float", "float", "float", "float", "float"]
  9094. fielddisplays_by_name: Dict[str, str] = {}
  9095. fieldenums_by_name: Dict[str, str] = {}
  9096. 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"}
  9097. native_format = bytearray(b"<Iffffff")
  9098. orders = [0, 1, 2, 3, 4, 5, 6]
  9099. lengths = [1, 1, 1, 1, 1, 1, 1]
  9100. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  9101. crc_extra = 185
  9102. unpacker = struct.Struct("<Iffffff")
  9103. instance_field = None
  9104. instance_offset = -1
  9105. def __init__(self, time_boot_ms: int, x: float, y: float, z: float, vx: float, vy: float, vz: float):
  9106. MAVLink_message.__init__(self, MAVLink_local_position_ned_message.id, MAVLink_local_position_ned_message.msgname)
  9107. self._fieldnames = MAVLink_local_position_ned_message.fieldnames
  9108. self._instance_field = MAVLink_local_position_ned_message.instance_field
  9109. self._instance_offset = MAVLink_local_position_ned_message.instance_offset
  9110. self.time_boot_ms = time_boot_ms
  9111. self.x = x
  9112. self.y = y
  9113. self.z = z
  9114. self.vx = vx
  9115. self.vy = vy
  9116. self.vz = vz
  9117. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9118. 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)
  9119. # Define name on the class for backwards compatibility (it is now msgname).
  9120. # Done with setattr to hide the class variable from mypy.
  9121. setattr(MAVLink_local_position_ned_message, "name", mavlink_msg_deprecated_name_property())
  9122. class MAVLink_global_position_int_message(MAVLink_message):
  9123. """
  9124. The filtered global position (e.g. fused GPS and accelerometers).
  9125. The position is in GPS-frame (right-handed, Z-up). It
  9126. is designed as scaled integer message since the resolution of
  9127. float is not sufficient.
  9128. """
  9129. id = MAVLINK_MSG_ID_GLOBAL_POSITION_INT
  9130. msgname = "GLOBAL_POSITION_INT"
  9131. fieldnames = ["time_boot_ms", "lat", "lon", "alt", "relative_alt", "vx", "vy", "vz", "hdg"]
  9132. ordered_fieldnames = ["time_boot_ms", "lat", "lon", "alt", "relative_alt", "vx", "vy", "vz", "hdg"]
  9133. fieldtypes = ["uint32_t", "int32_t", "int32_t", "int32_t", "int32_t", "int16_t", "int16_t", "int16_t", "uint16_t"]
  9134. fielddisplays_by_name: Dict[str, str] = {}
  9135. fieldenums_by_name: Dict[str, str] = {}
  9136. 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"}
  9137. native_format = bytearray(b"<IiiiihhhH")
  9138. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8]
  9139. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1]
  9140. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0]
  9141. crc_extra = 104
  9142. unpacker = struct.Struct("<IiiiihhhH")
  9143. instance_field = None
  9144. instance_offset = -1
  9145. def __init__(self, time_boot_ms: int, lat: int, lon: int, alt: int, relative_alt: int, vx: int, vy: int, vz: int, hdg: int):
  9146. MAVLink_message.__init__(self, MAVLink_global_position_int_message.id, MAVLink_global_position_int_message.msgname)
  9147. self._fieldnames = MAVLink_global_position_int_message.fieldnames
  9148. self._instance_field = MAVLink_global_position_int_message.instance_field
  9149. self._instance_offset = MAVLink_global_position_int_message.instance_offset
  9150. self.time_boot_ms = time_boot_ms
  9151. self.lat = lat
  9152. self.lon = lon
  9153. self.alt = alt
  9154. self.relative_alt = relative_alt
  9155. self.vx = vx
  9156. self.vy = vy
  9157. self.vz = vz
  9158. self.hdg = hdg
  9159. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9160. 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)
  9161. # Define name on the class for backwards compatibility (it is now msgname).
  9162. # Done with setattr to hide the class variable from mypy.
  9163. setattr(MAVLink_global_position_int_message, "name", mavlink_msg_deprecated_name_property())
  9164. class MAVLink_rc_channels_scaled_message(MAVLink_message):
  9165. """
  9166. The scaled values of the RC channels received: (-100%) -10000,
  9167. (0%) 0, (100%) 10000. Channels that are inactive should be set to
  9168. INT16_MAX.
  9169. """
  9170. id = MAVLINK_MSG_ID_RC_CHANNELS_SCALED
  9171. msgname = "RC_CHANNELS_SCALED"
  9172. fieldnames = ["time_boot_ms", "port", "chan1_scaled", "chan2_scaled", "chan3_scaled", "chan4_scaled", "chan5_scaled", "chan6_scaled", "chan7_scaled", "chan8_scaled", "rssi"]
  9173. ordered_fieldnames = ["time_boot_ms", "chan1_scaled", "chan2_scaled", "chan3_scaled", "chan4_scaled", "chan5_scaled", "chan6_scaled", "chan7_scaled", "chan8_scaled", "port", "rssi"]
  9174. fieldtypes = ["uint32_t", "uint8_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "uint8_t"]
  9175. fielddisplays_by_name: Dict[str, str] = {}
  9176. fieldenums_by_name: Dict[str, str] = {}
  9177. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms"}
  9178. native_format = bytearray(b"<IhhhhhhhhBB")
  9179. orders = [0, 9, 1, 2, 3, 4, 5, 6, 7, 8, 10]
  9180. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  9181. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  9182. crc_extra = 237
  9183. unpacker = struct.Struct("<IhhhhhhhhBB")
  9184. instance_field = None
  9185. instance_offset = -1
  9186. 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):
  9187. MAVLink_message.__init__(self, MAVLink_rc_channels_scaled_message.id, MAVLink_rc_channels_scaled_message.msgname)
  9188. self._fieldnames = MAVLink_rc_channels_scaled_message.fieldnames
  9189. self._instance_field = MAVLink_rc_channels_scaled_message.instance_field
  9190. self._instance_offset = MAVLink_rc_channels_scaled_message.instance_offset
  9191. self.time_boot_ms = time_boot_ms
  9192. self.port = port
  9193. self.chan1_scaled = chan1_scaled
  9194. self.chan2_scaled = chan2_scaled
  9195. self.chan3_scaled = chan3_scaled
  9196. self.chan4_scaled = chan4_scaled
  9197. self.chan5_scaled = chan5_scaled
  9198. self.chan6_scaled = chan6_scaled
  9199. self.chan7_scaled = chan7_scaled
  9200. self.chan8_scaled = chan8_scaled
  9201. self.rssi = rssi
  9202. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9203. 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)
  9204. # Define name on the class for backwards compatibility (it is now msgname).
  9205. # Done with setattr to hide the class variable from mypy.
  9206. setattr(MAVLink_rc_channels_scaled_message, "name", mavlink_msg_deprecated_name_property())
  9207. class MAVLink_rc_channels_raw_message(MAVLink_message):
  9208. """
  9209. The RAW values of the RC channels received. The standard PPM
  9210. modulation is as follows: 1000 microseconds: 0%, 2000
  9211. microseconds: 100%. A value of UINT16_MAX implies the channel is
  9212. unused. Individual receivers/transmitters might violate this
  9213. specification.
  9214. """
  9215. id = MAVLINK_MSG_ID_RC_CHANNELS_RAW
  9216. msgname = "RC_CHANNELS_RAW"
  9217. fieldnames = ["time_boot_ms", "port", "chan1_raw", "chan2_raw", "chan3_raw", "chan4_raw", "chan5_raw", "chan6_raw", "chan7_raw", "chan8_raw", "rssi"]
  9218. ordered_fieldnames = ["time_boot_ms", "chan1_raw", "chan2_raw", "chan3_raw", "chan4_raw", "chan5_raw", "chan6_raw", "chan7_raw", "chan8_raw", "port", "rssi"]
  9219. fieldtypes = ["uint32_t", "uint8_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint16_t", "uint8_t"]
  9220. fielddisplays_by_name: Dict[str, str] = {}
  9221. fieldenums_by_name: Dict[str, str] = {}
  9222. 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"}
  9223. native_format = bytearray(b"<IHHHHHHHHBB")
  9224. orders = [0, 9, 1, 2, 3, 4, 5, 6, 7, 8, 10]
  9225. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  9226. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  9227. crc_extra = 244
  9228. unpacker = struct.Struct("<IHHHHHHHHBB")
  9229. instance_field = None
  9230. instance_offset = -1
  9231. 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):
  9232. MAVLink_message.__init__(self, MAVLink_rc_channels_raw_message.id, MAVLink_rc_channels_raw_message.msgname)
  9233. self._fieldnames = MAVLink_rc_channels_raw_message.fieldnames
  9234. self._instance_field = MAVLink_rc_channels_raw_message.instance_field
  9235. self._instance_offset = MAVLink_rc_channels_raw_message.instance_offset
  9236. self.time_boot_ms = time_boot_ms
  9237. self.port = port
  9238. self.chan1_raw = chan1_raw
  9239. self.chan2_raw = chan2_raw
  9240. self.chan3_raw = chan3_raw
  9241. self.chan4_raw = chan4_raw
  9242. self.chan5_raw = chan5_raw
  9243. self.chan6_raw = chan6_raw
  9244. self.chan7_raw = chan7_raw
  9245. self.chan8_raw = chan8_raw
  9246. self.rssi = rssi
  9247. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9248. 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)
  9249. # Define name on the class for backwards compatibility (it is now msgname).
  9250. # Done with setattr to hide the class variable from mypy.
  9251. setattr(MAVLink_rc_channels_raw_message, "name", mavlink_msg_deprecated_name_property())
  9252. class MAVLink_servo_output_raw_message(MAVLink_message):
  9253. """
  9254. Superseded by ACTUATOR_OUTPUT_STATUS. The RAW values of the servo
  9255. outputs (for RC input from the remote, use the RC_CHANNELS
  9256. messages). The standard PPM modulation is as follows: 1000
  9257. microseconds: 0%, 2000 microseconds: 100%.
  9258. """
  9259. id = MAVLINK_MSG_ID_SERVO_OUTPUT_RAW
  9260. msgname = "SERVO_OUTPUT_RAW"
  9261. 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"]
  9262. 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"]
  9263. 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"]
  9264. fielddisplays_by_name: Dict[str, str] = {}
  9265. fieldenums_by_name: Dict[str, str] = {}
  9266. 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"}
  9267. native_format = bytearray(b"<IHHHHHHHHBHHHHHHHH")
  9268. orders = [0, 9, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 16, 17]
  9269. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  9270. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  9271. crc_extra = 222
  9272. unpacker = struct.Struct("<IHHHHHHHHBHHHHHHHH")
  9273. instance_field = None
  9274. instance_offset = -1
  9275. 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):
  9276. MAVLink_message.__init__(self, MAVLink_servo_output_raw_message.id, MAVLink_servo_output_raw_message.msgname)
  9277. self._fieldnames = MAVLink_servo_output_raw_message.fieldnames
  9278. self._instance_field = MAVLink_servo_output_raw_message.instance_field
  9279. self._instance_offset = MAVLink_servo_output_raw_message.instance_offset
  9280. self.time_usec = time_usec
  9281. self.port = port
  9282. self.servo1_raw = servo1_raw
  9283. self.servo2_raw = servo2_raw
  9284. self.servo3_raw = servo3_raw
  9285. self.servo4_raw = servo4_raw
  9286. self.servo5_raw = servo5_raw
  9287. self.servo6_raw = servo6_raw
  9288. self.servo7_raw = servo7_raw
  9289. self.servo8_raw = servo8_raw
  9290. self.servo9_raw = servo9_raw
  9291. self.servo10_raw = servo10_raw
  9292. self.servo11_raw = servo11_raw
  9293. self.servo12_raw = servo12_raw
  9294. self.servo13_raw = servo13_raw
  9295. self.servo14_raw = servo14_raw
  9296. self.servo15_raw = servo15_raw
  9297. self.servo16_raw = servo16_raw
  9298. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9299. 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)
  9300. # Define name on the class for backwards compatibility (it is now msgname).
  9301. # Done with setattr to hide the class variable from mypy.
  9302. setattr(MAVLink_servo_output_raw_message, "name", mavlink_msg_deprecated_name_property())
  9303. class MAVLink_mission_request_partial_list_message(MAVLink_message):
  9304. """
  9305. Request a partial list of mission items from the system/component.
  9306. https://mavlink.io/en/services/mission.html. If start and end
  9307. index are the same, just send one waypoint.
  9308. """
  9309. id = MAVLINK_MSG_ID_MISSION_REQUEST_PARTIAL_LIST
  9310. msgname = "MISSION_REQUEST_PARTIAL_LIST"
  9311. fieldnames = ["target_system", "target_component", "start_index", "end_index", "mission_type"]
  9312. ordered_fieldnames = ["start_index", "end_index", "target_system", "target_component", "mission_type"]
  9313. fieldtypes = ["uint8_t", "uint8_t", "int16_t", "int16_t", "uint8_t"]
  9314. fielddisplays_by_name: Dict[str, str] = {}
  9315. fieldenums_by_name: Dict[str, str] = {"mission_type": "MAV_MISSION_TYPE"}
  9316. fieldunits_by_name: Dict[str, str] = {}
  9317. native_format = bytearray(b"<hhBBB")
  9318. orders = [2, 3, 0, 1, 4]
  9319. lengths = [1, 1, 1, 1, 1]
  9320. array_lengths = [0, 0, 0, 0, 0]
  9321. crc_extra = 212
  9322. unpacker = struct.Struct("<hhBBB")
  9323. instance_field = None
  9324. instance_offset = -1
  9325. def __init__(self, target_system: int, target_component: int, start_index: int, end_index: int, mission_type: int = 0):
  9326. MAVLink_message.__init__(self, MAVLink_mission_request_partial_list_message.id, MAVLink_mission_request_partial_list_message.msgname)
  9327. self._fieldnames = MAVLink_mission_request_partial_list_message.fieldnames
  9328. self._instance_field = MAVLink_mission_request_partial_list_message.instance_field
  9329. self._instance_offset = MAVLink_mission_request_partial_list_message.instance_offset
  9330. self.target_system = target_system
  9331. self.target_component = target_component
  9332. self.start_index = start_index
  9333. self.end_index = end_index
  9334. self.mission_type = mission_type
  9335. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9336. 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)
  9337. # Define name on the class for backwards compatibility (it is now msgname).
  9338. # Done with setattr to hide the class variable from mypy.
  9339. setattr(MAVLink_mission_request_partial_list_message, "name", mavlink_msg_deprecated_name_property())
  9340. class MAVLink_mission_write_partial_list_message(MAVLink_message):
  9341. """
  9342. This message is sent to the MAV to write a partial list. If start
  9343. index == end index, only one item will be transmitted / updated.
  9344. If the start index is NOT 0 and above the current list size, this
  9345. request should be REJECTED!
  9346. """
  9347. id = MAVLINK_MSG_ID_MISSION_WRITE_PARTIAL_LIST
  9348. msgname = "MISSION_WRITE_PARTIAL_LIST"
  9349. fieldnames = ["target_system", "target_component", "start_index", "end_index", "mission_type"]
  9350. ordered_fieldnames = ["start_index", "end_index", "target_system", "target_component", "mission_type"]
  9351. fieldtypes = ["uint8_t", "uint8_t", "int16_t", "int16_t", "uint8_t"]
  9352. fielddisplays_by_name: Dict[str, str] = {}
  9353. fieldenums_by_name: Dict[str, str] = {"mission_type": "MAV_MISSION_TYPE"}
  9354. fieldunits_by_name: Dict[str, str] = {}
  9355. native_format = bytearray(b"<hhBBB")
  9356. orders = [2, 3, 0, 1, 4]
  9357. lengths = [1, 1, 1, 1, 1]
  9358. array_lengths = [0, 0, 0, 0, 0]
  9359. crc_extra = 9
  9360. unpacker = struct.Struct("<hhBBB")
  9361. instance_field = None
  9362. instance_offset = -1
  9363. def __init__(self, target_system: int, target_component: int, start_index: int, end_index: int, mission_type: int = 0):
  9364. MAVLink_message.__init__(self, MAVLink_mission_write_partial_list_message.id, MAVLink_mission_write_partial_list_message.msgname)
  9365. self._fieldnames = MAVLink_mission_write_partial_list_message.fieldnames
  9366. self._instance_field = MAVLink_mission_write_partial_list_message.instance_field
  9367. self._instance_offset = MAVLink_mission_write_partial_list_message.instance_offset
  9368. self.target_system = target_system
  9369. self.target_component = target_component
  9370. self.start_index = start_index
  9371. self.end_index = end_index
  9372. self.mission_type = mission_type
  9373. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9374. 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)
  9375. # Define name on the class for backwards compatibility (it is now msgname).
  9376. # Done with setattr to hide the class variable from mypy.
  9377. setattr(MAVLink_mission_write_partial_list_message, "name", mavlink_msg_deprecated_name_property())
  9378. class MAVLink_mission_item_message(MAVLink_message):
  9379. """
  9380. Message encoding a mission item. This message is emitted to
  9381. announce the presence of a mission item and to set
  9382. a mission item on the system. The mission item can be either in x,
  9383. y, z meters (type: LOCAL) or x:lat, y:lon, z:altitude. Local frame
  9384. is Z-down, right handed (NED), global frame is Z-up, right handed
  9385. (ENU). NaN may be used to indicate an optional/default value (e.g.
  9386. to use the system's current latitude or yaw rather than a specific
  9387. value). See also https://mavlink.io/en/services/mission.html.
  9388. """
  9389. id = MAVLINK_MSG_ID_MISSION_ITEM
  9390. msgname = "MISSION_ITEM"
  9391. fieldnames = ["target_system", "target_component", "seq", "frame", "command", "current", "autocontinue", "param1", "param2", "param3", "param4", "x", "y", "z", "mission_type"]
  9392. ordered_fieldnames = ["param1", "param2", "param3", "param4", "x", "y", "z", "seq", "command", "target_system", "target_component", "frame", "current", "autocontinue", "mission_type"]
  9393. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "uint8_t", "uint16_t", "uint8_t", "uint8_t", "float", "float", "float", "float", "float", "float", "float", "uint8_t"]
  9394. fielddisplays_by_name: Dict[str, str] = {}
  9395. fieldenums_by_name: Dict[str, str] = {"frame": "MAV_FRAME", "command": "MAV_CMD", "mission_type": "MAV_MISSION_TYPE"}
  9396. fieldunits_by_name: Dict[str, str] = {}
  9397. native_format = bytearray(b"<fffffffHHBBBBBB")
  9398. orders = [9, 10, 7, 11, 8, 12, 13, 0, 1, 2, 3, 4, 5, 6, 14]
  9399. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  9400. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  9401. crc_extra = 254
  9402. unpacker = struct.Struct("<fffffffHHBBBBBB")
  9403. instance_field = None
  9404. instance_offset = -1
  9405. 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):
  9406. MAVLink_message.__init__(self, MAVLink_mission_item_message.id, MAVLink_mission_item_message.msgname)
  9407. self._fieldnames = MAVLink_mission_item_message.fieldnames
  9408. self._instance_field = MAVLink_mission_item_message.instance_field
  9409. self._instance_offset = MAVLink_mission_item_message.instance_offset
  9410. self.target_system = target_system
  9411. self.target_component = target_component
  9412. self.seq = seq
  9413. self.frame = frame
  9414. self.command = command
  9415. self.current = current
  9416. self.autocontinue = autocontinue
  9417. self.param1 = param1
  9418. self.param2 = param2
  9419. self.param3 = param3
  9420. self.param4 = param4
  9421. self.x = x
  9422. self.y = y
  9423. self.z = z
  9424. self.mission_type = mission_type
  9425. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9426. 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)
  9427. # Define name on the class for backwards compatibility (it is now msgname).
  9428. # Done with setattr to hide the class variable from mypy.
  9429. setattr(MAVLink_mission_item_message, "name", mavlink_msg_deprecated_name_property())
  9430. class MAVLink_mission_request_message(MAVLink_message):
  9431. """
  9432. Request the information of the mission item with the sequence
  9433. number seq. The response of the system to this message should be a
  9434. MISSION_ITEM message. https://mavlink.io/en/services/mission.html
  9435. """
  9436. id = MAVLINK_MSG_ID_MISSION_REQUEST
  9437. msgname = "MISSION_REQUEST"
  9438. fieldnames = ["target_system", "target_component", "seq", "mission_type"]
  9439. ordered_fieldnames = ["seq", "target_system", "target_component", "mission_type"]
  9440. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "uint8_t"]
  9441. fielddisplays_by_name: Dict[str, str] = {}
  9442. fieldenums_by_name: Dict[str, str] = {"mission_type": "MAV_MISSION_TYPE"}
  9443. fieldunits_by_name: Dict[str, str] = {}
  9444. native_format = bytearray(b"<HBBB")
  9445. orders = [1, 2, 0, 3]
  9446. lengths = [1, 1, 1, 1]
  9447. array_lengths = [0, 0, 0, 0]
  9448. crc_extra = 230
  9449. unpacker = struct.Struct("<HBBB")
  9450. instance_field = None
  9451. instance_offset = -1
  9452. def __init__(self, target_system: int, target_component: int, seq: int, mission_type: int = 0):
  9453. MAVLink_message.__init__(self, MAVLink_mission_request_message.id, MAVLink_mission_request_message.msgname)
  9454. self._fieldnames = MAVLink_mission_request_message.fieldnames
  9455. self._instance_field = MAVLink_mission_request_message.instance_field
  9456. self._instance_offset = MAVLink_mission_request_message.instance_offset
  9457. self.target_system = target_system
  9458. self.target_component = target_component
  9459. self.seq = seq
  9460. self.mission_type = mission_type
  9461. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9462. 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)
  9463. # Define name on the class for backwards compatibility (it is now msgname).
  9464. # Done with setattr to hide the class variable from mypy.
  9465. setattr(MAVLink_mission_request_message, "name", mavlink_msg_deprecated_name_property())
  9466. class MAVLink_mission_set_current_message(MAVLink_message):
  9467. """
  9468. Set the mission item with sequence number seq as the current item
  9469. and emit MISSION_CURRENT (whether or not the mission number
  9470. changed). If a mission is currently being executed, the
  9471. system will continue to this new mission item on the shortest
  9472. path, skipping any intermediate mission items. Note that
  9473. mission jump repeat counters are not reset (see MAV_CMD_DO_JUMP
  9474. param2). This message may trigger a mission state-machine
  9475. change on some systems: for example from MISSION_STATE_NOT_STARTED
  9476. or MISSION_STATE_PAUSED to MISSION_STATE_ACTIVE. If the
  9477. system is in mission mode, on those systems this command might
  9478. therefore start, restart or resume the mission. If the
  9479. system is not in mission mode this message must not trigger a
  9480. switch to mission mode.
  9481. """
  9482. id = MAVLINK_MSG_ID_MISSION_SET_CURRENT
  9483. msgname = "MISSION_SET_CURRENT"
  9484. fieldnames = ["target_system", "target_component", "seq"]
  9485. ordered_fieldnames = ["seq", "target_system", "target_component"]
  9486. fieldtypes = ["uint8_t", "uint8_t", "uint16_t"]
  9487. fielddisplays_by_name: Dict[str, str] = {}
  9488. fieldenums_by_name: Dict[str, str] = {}
  9489. fieldunits_by_name: Dict[str, str] = {}
  9490. native_format = bytearray(b"<HBB")
  9491. orders = [1, 2, 0]
  9492. lengths = [1, 1, 1]
  9493. array_lengths = [0, 0, 0]
  9494. crc_extra = 28
  9495. unpacker = struct.Struct("<HBB")
  9496. instance_field = None
  9497. instance_offset = -1
  9498. def __init__(self, target_system: int, target_component: int, seq: int):
  9499. MAVLink_message.__init__(self, MAVLink_mission_set_current_message.id, MAVLink_mission_set_current_message.msgname)
  9500. self._fieldnames = MAVLink_mission_set_current_message.fieldnames
  9501. self._instance_field = MAVLink_mission_set_current_message.instance_field
  9502. self._instance_offset = MAVLink_mission_set_current_message.instance_offset
  9503. self.target_system = target_system
  9504. self.target_component = target_component
  9505. self.seq = seq
  9506. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9507. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.seq, self.target_system, self.target_component), force_mavlink1=force_mavlink1)
  9508. # Define name on the class for backwards compatibility (it is now msgname).
  9509. # Done with setattr to hide the class variable from mypy.
  9510. setattr(MAVLink_mission_set_current_message, "name", mavlink_msg_deprecated_name_property())
  9511. class MAVLink_mission_current_message(MAVLink_message):
  9512. """
  9513. Message that announces the sequence number of the current target
  9514. mission item (that the system will fly towards/execute when the
  9515. mission is running). This message should be streamed all
  9516. the time (nominally at 1Hz). This message should be
  9517. emitted following a call to MAV_CMD_DO_SET_MISSION_CURRENT or
  9518. SET_MISSION_CURRENT.
  9519. """
  9520. id = MAVLINK_MSG_ID_MISSION_CURRENT
  9521. msgname = "MISSION_CURRENT"
  9522. fieldnames = ["seq", "total", "mission_state", "mission_mode", "mission_id", "fence_id", "rally_points_id"]
  9523. ordered_fieldnames = ["seq", "total", "mission_state", "mission_mode", "mission_id", "fence_id", "rally_points_id"]
  9524. fieldtypes = ["uint16_t", "uint16_t", "uint8_t", "uint8_t", "uint32_t", "uint32_t", "uint32_t"]
  9525. fielddisplays_by_name: Dict[str, str] = {}
  9526. fieldenums_by_name: Dict[str, str] = {"mission_state": "MISSION_STATE"}
  9527. fieldunits_by_name: Dict[str, str] = {}
  9528. native_format = bytearray(b"<HHBBIII")
  9529. orders = [0, 1, 2, 3, 4, 5, 6]
  9530. lengths = [1, 1, 1, 1, 1, 1, 1]
  9531. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  9532. crc_extra = 28
  9533. unpacker = struct.Struct("<HHBBIII")
  9534. instance_field = None
  9535. instance_offset = -1
  9536. 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):
  9537. MAVLink_message.__init__(self, MAVLink_mission_current_message.id, MAVLink_mission_current_message.msgname)
  9538. self._fieldnames = MAVLink_mission_current_message.fieldnames
  9539. self._instance_field = MAVLink_mission_current_message.instance_field
  9540. self._instance_offset = MAVLink_mission_current_message.instance_offset
  9541. self.seq = seq
  9542. self.total = total
  9543. self.mission_state = mission_state
  9544. self.mission_mode = mission_mode
  9545. self.mission_id = mission_id
  9546. self.fence_id = fence_id
  9547. self.rally_points_id = rally_points_id
  9548. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9549. 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)
  9550. # Define name on the class for backwards compatibility (it is now msgname).
  9551. # Done with setattr to hide the class variable from mypy.
  9552. setattr(MAVLink_mission_current_message, "name", mavlink_msg_deprecated_name_property())
  9553. class MAVLink_mission_request_list_message(MAVLink_message):
  9554. """
  9555. Request the overall list of mission items from the
  9556. system/component.
  9557. """
  9558. id = MAVLINK_MSG_ID_MISSION_REQUEST_LIST
  9559. msgname = "MISSION_REQUEST_LIST"
  9560. fieldnames = ["target_system", "target_component", "mission_type"]
  9561. ordered_fieldnames = ["target_system", "target_component", "mission_type"]
  9562. fieldtypes = ["uint8_t", "uint8_t", "uint8_t"]
  9563. fielddisplays_by_name: Dict[str, str] = {}
  9564. fieldenums_by_name: Dict[str, str] = {"mission_type": "MAV_MISSION_TYPE"}
  9565. fieldunits_by_name: Dict[str, str] = {}
  9566. native_format = bytearray(b"<BBB")
  9567. orders = [0, 1, 2]
  9568. lengths = [1, 1, 1]
  9569. array_lengths = [0, 0, 0]
  9570. crc_extra = 132
  9571. unpacker = struct.Struct("<BBB")
  9572. instance_field = None
  9573. instance_offset = -1
  9574. def __init__(self, target_system: int, target_component: int, mission_type: int = 0):
  9575. MAVLink_message.__init__(self, MAVLink_mission_request_list_message.id, MAVLink_mission_request_list_message.msgname)
  9576. self._fieldnames = MAVLink_mission_request_list_message.fieldnames
  9577. self._instance_field = MAVLink_mission_request_list_message.instance_field
  9578. self._instance_offset = MAVLink_mission_request_list_message.instance_offset
  9579. self.target_system = target_system
  9580. self.target_component = target_component
  9581. self.mission_type = mission_type
  9582. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9583. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.target_system, self.target_component, self.mission_type), force_mavlink1=force_mavlink1)
  9584. # Define name on the class for backwards compatibility (it is now msgname).
  9585. # Done with setattr to hide the class variable from mypy.
  9586. setattr(MAVLink_mission_request_list_message, "name", mavlink_msg_deprecated_name_property())
  9587. class MAVLink_mission_count_message(MAVLink_message):
  9588. """
  9589. This message is emitted as response to MISSION_REQUEST_LIST by the
  9590. MAV and to initiate a write transaction. The GCS can then request
  9591. the individual mission item based on the knowledge of the total
  9592. number of waypoints.
  9593. """
  9594. id = MAVLINK_MSG_ID_MISSION_COUNT
  9595. msgname = "MISSION_COUNT"
  9596. fieldnames = ["target_system", "target_component", "count", "mission_type", "opaque_id"]
  9597. ordered_fieldnames = ["count", "target_system", "target_component", "mission_type", "opaque_id"]
  9598. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "uint8_t", "uint32_t"]
  9599. fielddisplays_by_name: Dict[str, str] = {}
  9600. fieldenums_by_name: Dict[str, str] = {"mission_type": "MAV_MISSION_TYPE"}
  9601. fieldunits_by_name: Dict[str, str] = {}
  9602. native_format = bytearray(b"<HBBBI")
  9603. orders = [1, 2, 0, 3, 4]
  9604. lengths = [1, 1, 1, 1, 1]
  9605. array_lengths = [0, 0, 0, 0, 0]
  9606. crc_extra = 221
  9607. unpacker = struct.Struct("<HBBBI")
  9608. instance_field = None
  9609. instance_offset = -1
  9610. def __init__(self, target_system: int, target_component: int, count: int, mission_type: int = 0, opaque_id: int = 0):
  9611. MAVLink_message.__init__(self, MAVLink_mission_count_message.id, MAVLink_mission_count_message.msgname)
  9612. self._fieldnames = MAVLink_mission_count_message.fieldnames
  9613. self._instance_field = MAVLink_mission_count_message.instance_field
  9614. self._instance_offset = MAVLink_mission_count_message.instance_offset
  9615. self.target_system = target_system
  9616. self.target_component = target_component
  9617. self.count = count
  9618. self.mission_type = mission_type
  9619. self.opaque_id = opaque_id
  9620. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9621. 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)
  9622. # Define name on the class for backwards compatibility (it is now msgname).
  9623. # Done with setattr to hide the class variable from mypy.
  9624. setattr(MAVLink_mission_count_message, "name", mavlink_msg_deprecated_name_property())
  9625. class MAVLink_mission_clear_all_message(MAVLink_message):
  9626. """
  9627. Delete all mission items at once.
  9628. """
  9629. id = MAVLINK_MSG_ID_MISSION_CLEAR_ALL
  9630. msgname = "MISSION_CLEAR_ALL"
  9631. fieldnames = ["target_system", "target_component", "mission_type"]
  9632. ordered_fieldnames = ["target_system", "target_component", "mission_type"]
  9633. fieldtypes = ["uint8_t", "uint8_t", "uint8_t"]
  9634. fielddisplays_by_name: Dict[str, str] = {}
  9635. fieldenums_by_name: Dict[str, str] = {"mission_type": "MAV_MISSION_TYPE"}
  9636. fieldunits_by_name: Dict[str, str] = {}
  9637. native_format = bytearray(b"<BBB")
  9638. orders = [0, 1, 2]
  9639. lengths = [1, 1, 1]
  9640. array_lengths = [0, 0, 0]
  9641. crc_extra = 232
  9642. unpacker = struct.Struct("<BBB")
  9643. instance_field = None
  9644. instance_offset = -1
  9645. def __init__(self, target_system: int, target_component: int, mission_type: int = 0):
  9646. MAVLink_message.__init__(self, MAVLink_mission_clear_all_message.id, MAVLink_mission_clear_all_message.msgname)
  9647. self._fieldnames = MAVLink_mission_clear_all_message.fieldnames
  9648. self._instance_field = MAVLink_mission_clear_all_message.instance_field
  9649. self._instance_offset = MAVLink_mission_clear_all_message.instance_offset
  9650. self.target_system = target_system
  9651. self.target_component = target_component
  9652. self.mission_type = mission_type
  9653. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9654. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.target_system, self.target_component, self.mission_type), force_mavlink1=force_mavlink1)
  9655. # Define name on the class for backwards compatibility (it is now msgname).
  9656. # Done with setattr to hide the class variable from mypy.
  9657. setattr(MAVLink_mission_clear_all_message, "name", mavlink_msg_deprecated_name_property())
  9658. class MAVLink_mission_item_reached_message(MAVLink_message):
  9659. """
  9660. A certain mission item has been reached. The system will either
  9661. hold this position (or circle on the orbit) or (if the
  9662. autocontinue on the WP was set) continue to the next waypoint.
  9663. """
  9664. id = MAVLINK_MSG_ID_MISSION_ITEM_REACHED
  9665. msgname = "MISSION_ITEM_REACHED"
  9666. fieldnames = ["seq"]
  9667. ordered_fieldnames = ["seq"]
  9668. fieldtypes = ["uint16_t"]
  9669. fielddisplays_by_name: Dict[str, str] = {}
  9670. fieldenums_by_name: Dict[str, str] = {}
  9671. fieldunits_by_name: Dict[str, str] = {}
  9672. native_format = bytearray(b"<H")
  9673. orders = [0]
  9674. lengths = [1]
  9675. array_lengths = [0]
  9676. crc_extra = 11
  9677. unpacker = struct.Struct("<H")
  9678. instance_field = None
  9679. instance_offset = -1
  9680. def __init__(self, seq: int):
  9681. MAVLink_message.__init__(self, MAVLink_mission_item_reached_message.id, MAVLink_mission_item_reached_message.msgname)
  9682. self._fieldnames = MAVLink_mission_item_reached_message.fieldnames
  9683. self._instance_field = MAVLink_mission_item_reached_message.instance_field
  9684. self._instance_offset = MAVLink_mission_item_reached_message.instance_offset
  9685. self.seq = seq
  9686. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9687. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.seq), force_mavlink1=force_mavlink1)
  9688. # Define name on the class for backwards compatibility (it is now msgname).
  9689. # Done with setattr to hide the class variable from mypy.
  9690. setattr(MAVLink_mission_item_reached_message, "name", mavlink_msg_deprecated_name_property())
  9691. class MAVLink_mission_ack_message(MAVLink_message):
  9692. """
  9693. Acknowledgment message during waypoint handling. The type field
  9694. states if this message is a positive ack (type=0) or if an error
  9695. happened (type=non-zero).
  9696. """
  9697. id = MAVLINK_MSG_ID_MISSION_ACK
  9698. msgname = "MISSION_ACK"
  9699. fieldnames = ["target_system", "target_component", "type", "mission_type", "opaque_id"]
  9700. ordered_fieldnames = ["target_system", "target_component", "type", "mission_type", "opaque_id"]
  9701. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint32_t"]
  9702. fielddisplays_by_name: Dict[str, str] = {}
  9703. fieldenums_by_name: Dict[str, str] = {"type": "MAV_MISSION_RESULT", "mission_type": "MAV_MISSION_TYPE"}
  9704. fieldunits_by_name: Dict[str, str] = {}
  9705. native_format = bytearray(b"<BBBBI")
  9706. orders = [0, 1, 2, 3, 4]
  9707. lengths = [1, 1, 1, 1, 1]
  9708. array_lengths = [0, 0, 0, 0, 0]
  9709. crc_extra = 153
  9710. unpacker = struct.Struct("<BBBBI")
  9711. instance_field = None
  9712. instance_offset = -1
  9713. def __init__(self, target_system: int, target_component: int, type: int, mission_type: int = 0, opaque_id: int = 0):
  9714. MAVLink_message.__init__(self, MAVLink_mission_ack_message.id, MAVLink_mission_ack_message.msgname)
  9715. self._fieldnames = MAVLink_mission_ack_message.fieldnames
  9716. self._instance_field = MAVLink_mission_ack_message.instance_field
  9717. self._instance_offset = MAVLink_mission_ack_message.instance_offset
  9718. self.target_system = target_system
  9719. self.target_component = target_component
  9720. self.type = type
  9721. self.mission_type = mission_type
  9722. self.opaque_id = opaque_id
  9723. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9724. 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)
  9725. # Define name on the class for backwards compatibility (it is now msgname).
  9726. # Done with setattr to hide the class variable from mypy.
  9727. setattr(MAVLink_mission_ack_message, "name", mavlink_msg_deprecated_name_property())
  9728. class MAVLink_set_gps_global_origin_message(MAVLink_message):
  9729. """
  9730. Sets the GPS coordinates of the vehicle local origin (0,0,0)
  9731. position. Vehicle should emit GPS_GLOBAL_ORIGIN irrespective of
  9732. whether the origin is changed. This enables transform between the
  9733. local coordinate frame and the global (GPS) coordinate frame,
  9734. which may be necessary when (for example) indoor and outdoor
  9735. settings are connected and the MAV should move from in- to
  9736. outdoor.
  9737. """
  9738. id = MAVLINK_MSG_ID_SET_GPS_GLOBAL_ORIGIN
  9739. msgname = "SET_GPS_GLOBAL_ORIGIN"
  9740. fieldnames = ["target_system", "latitude", "longitude", "altitude", "time_usec"]
  9741. ordered_fieldnames = ["latitude", "longitude", "altitude", "target_system", "time_usec"]
  9742. fieldtypes = ["uint8_t", "int32_t", "int32_t", "int32_t", "uint64_t"]
  9743. fielddisplays_by_name: Dict[str, str] = {}
  9744. fieldenums_by_name: Dict[str, str] = {}
  9745. fieldunits_by_name: Dict[str, str] = {"latitude": "degE7", "longitude": "degE7", "altitude": "mm", "time_usec": "us"}
  9746. native_format = bytearray(b"<iiiBQ")
  9747. orders = [3, 0, 1, 2, 4]
  9748. lengths = [1, 1, 1, 1, 1]
  9749. array_lengths = [0, 0, 0, 0, 0]
  9750. crc_extra = 41
  9751. unpacker = struct.Struct("<iiiBQ")
  9752. instance_field = None
  9753. instance_offset = -1
  9754. def __init__(self, target_system: int, latitude: int, longitude: int, altitude: int, time_usec: int = 0):
  9755. MAVLink_message.__init__(self, MAVLink_set_gps_global_origin_message.id, MAVLink_set_gps_global_origin_message.msgname)
  9756. self._fieldnames = MAVLink_set_gps_global_origin_message.fieldnames
  9757. self._instance_field = MAVLink_set_gps_global_origin_message.instance_field
  9758. self._instance_offset = MAVLink_set_gps_global_origin_message.instance_offset
  9759. self.target_system = target_system
  9760. self.latitude = latitude
  9761. self.longitude = longitude
  9762. self.altitude = altitude
  9763. self.time_usec = time_usec
  9764. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9765. 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)
  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_set_gps_global_origin_message, "name", mavlink_msg_deprecated_name_property())
  9769. class MAVLink_gps_global_origin_message(MAVLink_message):
  9770. """
  9771. Publishes the GPS coordinates of the vehicle local origin (0,0,0)
  9772. position. Emitted whenever a new GPS-Local position mapping is
  9773. requested or set - e.g. following SET_GPS_GLOBAL_ORIGIN message.
  9774. """
  9775. id = MAVLINK_MSG_ID_GPS_GLOBAL_ORIGIN
  9776. msgname = "GPS_GLOBAL_ORIGIN"
  9777. fieldnames = ["latitude", "longitude", "altitude", "time_usec"]
  9778. ordered_fieldnames = ["latitude", "longitude", "altitude", "time_usec"]
  9779. fieldtypes = ["int32_t", "int32_t", "int32_t", "uint64_t"]
  9780. fielddisplays_by_name: Dict[str, str] = {}
  9781. fieldenums_by_name: Dict[str, str] = {}
  9782. fieldunits_by_name: Dict[str, str] = {"latitude": "degE7", "longitude": "degE7", "altitude": "mm", "time_usec": "us"}
  9783. native_format = bytearray(b"<iiiQ")
  9784. orders = [0, 1, 2, 3]
  9785. lengths = [1, 1, 1, 1]
  9786. array_lengths = [0, 0, 0, 0]
  9787. crc_extra = 39
  9788. unpacker = struct.Struct("<iiiQ")
  9789. instance_field = None
  9790. instance_offset = -1
  9791. def __init__(self, latitude: int, longitude: int, altitude: int, time_usec: int = 0):
  9792. MAVLink_message.__init__(self, MAVLink_gps_global_origin_message.id, MAVLink_gps_global_origin_message.msgname)
  9793. self._fieldnames = MAVLink_gps_global_origin_message.fieldnames
  9794. self._instance_field = MAVLink_gps_global_origin_message.instance_field
  9795. self._instance_offset = MAVLink_gps_global_origin_message.instance_offset
  9796. self.latitude = latitude
  9797. self.longitude = longitude
  9798. self.altitude = altitude
  9799. self.time_usec = time_usec
  9800. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9801. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.latitude, self.longitude, self.altitude, self.time_usec), force_mavlink1=force_mavlink1)
  9802. # Define name on the class for backwards compatibility (it is now msgname).
  9803. # Done with setattr to hide the class variable from mypy.
  9804. setattr(MAVLink_gps_global_origin_message, "name", mavlink_msg_deprecated_name_property())
  9805. class MAVLink_param_map_rc_message(MAVLink_message):
  9806. """
  9807. Bind a RC channel to a parameter. The parameter should change
  9808. according to the RC channel value.
  9809. """
  9810. id = MAVLINK_MSG_ID_PARAM_MAP_RC
  9811. msgname = "PARAM_MAP_RC"
  9812. fieldnames = ["target_system", "target_component", "param_id", "param_index", "parameter_rc_channel_index", "param_value0", "scale", "param_value_min", "param_value_max"]
  9813. ordered_fieldnames = ["param_value0", "scale", "param_value_min", "param_value_max", "param_index", "target_system", "target_component", "param_id", "parameter_rc_channel_index"]
  9814. fieldtypes = ["uint8_t", "uint8_t", "char", "int16_t", "uint8_t", "float", "float", "float", "float"]
  9815. fielddisplays_by_name: Dict[str, str] = {}
  9816. fieldenums_by_name: Dict[str, str] = {}
  9817. fieldunits_by_name: Dict[str, str] = {}
  9818. native_format = bytearray(b"<ffffhBBcB")
  9819. orders = [5, 6, 7, 4, 8, 0, 1, 2, 3]
  9820. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1]
  9821. array_lengths = [0, 0, 0, 0, 0, 0, 0, 16, 0]
  9822. crc_extra = 78
  9823. unpacker = struct.Struct("<ffffhBB16sB")
  9824. instance_field = None
  9825. instance_offset = -1
  9826. 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):
  9827. MAVLink_message.__init__(self, MAVLink_param_map_rc_message.id, MAVLink_param_map_rc_message.msgname)
  9828. self._fieldnames = MAVLink_param_map_rc_message.fieldnames
  9829. self._instance_field = MAVLink_param_map_rc_message.instance_field
  9830. self._instance_offset = MAVLink_param_map_rc_message.instance_offset
  9831. self.target_system = target_system
  9832. self.target_component = target_component
  9833. self._param_id_raw = param_id
  9834. self.param_id = param_id.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  9835. self.param_index = param_index
  9836. self.parameter_rc_channel_index = parameter_rc_channel_index
  9837. self.param_value0 = param_value0
  9838. self.scale = scale
  9839. self.param_value_min = param_value_min
  9840. self.param_value_max = param_value_max
  9841. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9842. 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)
  9843. # Define name on the class for backwards compatibility (it is now msgname).
  9844. # Done with setattr to hide the class variable from mypy.
  9845. setattr(MAVLink_param_map_rc_message, "name", mavlink_msg_deprecated_name_property())
  9846. class MAVLink_mission_request_int_message(MAVLink_message):
  9847. """
  9848. Request the information of the mission item with the sequence
  9849. number seq. The response of the system to this message should be a
  9850. MISSION_ITEM_INT message.
  9851. https://mavlink.io/en/services/mission.html
  9852. """
  9853. id = MAVLINK_MSG_ID_MISSION_REQUEST_INT
  9854. msgname = "MISSION_REQUEST_INT"
  9855. fieldnames = ["target_system", "target_component", "seq", "mission_type"]
  9856. ordered_fieldnames = ["seq", "target_system", "target_component", "mission_type"]
  9857. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "uint8_t"]
  9858. fielddisplays_by_name: Dict[str, str] = {}
  9859. fieldenums_by_name: Dict[str, str] = {"mission_type": "MAV_MISSION_TYPE"}
  9860. fieldunits_by_name: Dict[str, str] = {}
  9861. native_format = bytearray(b"<HBBB")
  9862. orders = [1, 2, 0, 3]
  9863. lengths = [1, 1, 1, 1]
  9864. array_lengths = [0, 0, 0, 0]
  9865. crc_extra = 196
  9866. unpacker = struct.Struct("<HBBB")
  9867. instance_field = None
  9868. instance_offset = -1
  9869. def __init__(self, target_system: int, target_component: int, seq: int, mission_type: int = 0):
  9870. MAVLink_message.__init__(self, MAVLink_mission_request_int_message.id, MAVLink_mission_request_int_message.msgname)
  9871. self._fieldnames = MAVLink_mission_request_int_message.fieldnames
  9872. self._instance_field = MAVLink_mission_request_int_message.instance_field
  9873. self._instance_offset = MAVLink_mission_request_int_message.instance_offset
  9874. self.target_system = target_system
  9875. self.target_component = target_component
  9876. self.seq = seq
  9877. self.mission_type = mission_type
  9878. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9879. 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)
  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_mission_request_int_message, "name", mavlink_msg_deprecated_name_property())
  9883. class MAVLink_safety_set_allowed_area_message(MAVLink_message):
  9884. """
  9885. Set a safety zone (volume), which is defined by two corners of a
  9886. cube. This message can be used to tell the MAV which
  9887. setpoints/waypoints to accept and which to reject. Safety areas
  9888. are often enforced by national or competition regulations.
  9889. """
  9890. id = MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA
  9891. msgname = "SAFETY_SET_ALLOWED_AREA"
  9892. fieldnames = ["target_system", "target_component", "frame", "p1x", "p1y", "p1z", "p2x", "p2y", "p2z"]
  9893. ordered_fieldnames = ["p1x", "p1y", "p1z", "p2x", "p2y", "p2z", "target_system", "target_component", "frame"]
  9894. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "float", "float", "float", "float", "float", "float"]
  9895. fielddisplays_by_name: Dict[str, str] = {}
  9896. fieldenums_by_name: Dict[str, str] = {"frame": "MAV_FRAME"}
  9897. fieldunits_by_name: Dict[str, str] = {"p1x": "m", "p1y": "m", "p1z": "m", "p2x": "m", "p2y": "m", "p2z": "m"}
  9898. native_format = bytearray(b"<ffffffBBB")
  9899. orders = [6, 7, 8, 0, 1, 2, 3, 4, 5]
  9900. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1]
  9901. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0]
  9902. crc_extra = 15
  9903. unpacker = struct.Struct("<ffffffBBB")
  9904. instance_field = None
  9905. instance_offset = -1
  9906. def __init__(self, target_system: int, target_component: int, frame: int, p1x: float, p1y: float, p1z: float, p2x: float, p2y: float, p2z: float):
  9907. MAVLink_message.__init__(self, MAVLink_safety_set_allowed_area_message.id, MAVLink_safety_set_allowed_area_message.msgname)
  9908. self._fieldnames = MAVLink_safety_set_allowed_area_message.fieldnames
  9909. self._instance_field = MAVLink_safety_set_allowed_area_message.instance_field
  9910. self._instance_offset = MAVLink_safety_set_allowed_area_message.instance_offset
  9911. self.target_system = target_system
  9912. self.target_component = target_component
  9913. self.frame = frame
  9914. self.p1x = p1x
  9915. self.p1y = p1y
  9916. self.p1z = p1z
  9917. self.p2x = p2x
  9918. self.p2y = p2y
  9919. self.p2z = p2z
  9920. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9921. 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)
  9922. # Define name on the class for backwards compatibility (it is now msgname).
  9923. # Done with setattr to hide the class variable from mypy.
  9924. setattr(MAVLink_safety_set_allowed_area_message, "name", mavlink_msg_deprecated_name_property())
  9925. class MAVLink_safety_allowed_area_message(MAVLink_message):
  9926. """
  9927. Read out the safety zone the MAV currently assumes.
  9928. """
  9929. id = MAVLINK_MSG_ID_SAFETY_ALLOWED_AREA
  9930. msgname = "SAFETY_ALLOWED_AREA"
  9931. fieldnames = ["frame", "p1x", "p1y", "p1z", "p2x", "p2y", "p2z"]
  9932. ordered_fieldnames = ["p1x", "p1y", "p1z", "p2x", "p2y", "p2z", "frame"]
  9933. fieldtypes = ["uint8_t", "float", "float", "float", "float", "float", "float"]
  9934. fielddisplays_by_name: Dict[str, str] = {}
  9935. fieldenums_by_name: Dict[str, str] = {"frame": "MAV_FRAME"}
  9936. fieldunits_by_name: Dict[str, str] = {"p1x": "m", "p1y": "m", "p1z": "m", "p2x": "m", "p2y": "m", "p2z": "m"}
  9937. native_format = bytearray(b"<ffffffB")
  9938. orders = [6, 0, 1, 2, 3, 4, 5]
  9939. lengths = [1, 1, 1, 1, 1, 1, 1]
  9940. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  9941. crc_extra = 3
  9942. unpacker = struct.Struct("<ffffffB")
  9943. instance_field = None
  9944. instance_offset = -1
  9945. def __init__(self, frame: int, p1x: float, p1y: float, p1z: float, p2x: float, p2y: float, p2z: float):
  9946. MAVLink_message.__init__(self, MAVLink_safety_allowed_area_message.id, MAVLink_safety_allowed_area_message.msgname)
  9947. self._fieldnames = MAVLink_safety_allowed_area_message.fieldnames
  9948. self._instance_field = MAVLink_safety_allowed_area_message.instance_field
  9949. self._instance_offset = MAVLink_safety_allowed_area_message.instance_offset
  9950. self.frame = frame
  9951. self.p1x = p1x
  9952. self.p1y = p1y
  9953. self.p1z = p1z
  9954. self.p2x = p2x
  9955. self.p2y = p2y
  9956. self.p2z = p2z
  9957. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9958. 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)
  9959. # Define name on the class for backwards compatibility (it is now msgname).
  9960. # Done with setattr to hide the class variable from mypy.
  9961. setattr(MAVLink_safety_allowed_area_message, "name", mavlink_msg_deprecated_name_property())
  9962. class MAVLink_attitude_quaternion_cov_message(MAVLink_message):
  9963. """
  9964. The attitude in the aeronautical frame (right-handed, Z-down,
  9965. X-front, Y-right), expressed as quaternion. Quaternion order is w,
  9966. x, y, z and a zero rotation would be expressed as (1 0 0 0).
  9967. """
  9968. id = MAVLINK_MSG_ID_ATTITUDE_QUATERNION_COV
  9969. msgname = "ATTITUDE_QUATERNION_COV"
  9970. fieldnames = ["time_usec", "q", "rollspeed", "pitchspeed", "yawspeed", "covariance"]
  9971. ordered_fieldnames = ["time_usec", "q", "rollspeed", "pitchspeed", "yawspeed", "covariance"]
  9972. fieldtypes = ["uint64_t", "float", "float", "float", "float", "float"]
  9973. fielddisplays_by_name: Dict[str, str] = {}
  9974. fieldenums_by_name: Dict[str, str] = {}
  9975. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "rollspeed": "rad/s", "pitchspeed": "rad/s", "yawspeed": "rad/s"}
  9976. native_format = bytearray(b"<Qfffff")
  9977. orders = [0, 1, 2, 3, 4, 5]
  9978. lengths = [1, 4, 1, 1, 1, 9]
  9979. array_lengths = [0, 4, 0, 0, 0, 9]
  9980. crc_extra = 167
  9981. unpacker = struct.Struct("<Q4ffff9f")
  9982. instance_field = None
  9983. instance_offset = -1
  9984. def __init__(self, time_usec: int, q: Sequence[float], rollspeed: float, pitchspeed: float, yawspeed: float, covariance: Sequence[float]):
  9985. MAVLink_message.__init__(self, MAVLink_attitude_quaternion_cov_message.id, MAVLink_attitude_quaternion_cov_message.msgname)
  9986. self._fieldnames = MAVLink_attitude_quaternion_cov_message.fieldnames
  9987. self._instance_field = MAVLink_attitude_quaternion_cov_message.instance_field
  9988. self._instance_offset = MAVLink_attitude_quaternion_cov_message.instance_offset
  9989. self.time_usec = time_usec
  9990. self.q = q
  9991. self.rollspeed = rollspeed
  9992. self.pitchspeed = pitchspeed
  9993. self.yawspeed = yawspeed
  9994. self.covariance = covariance
  9995. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  9996. 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)
  9997. # Define name on the class for backwards compatibility (it is now msgname).
  9998. # Done with setattr to hide the class variable from mypy.
  9999. setattr(MAVLink_attitude_quaternion_cov_message, "name", mavlink_msg_deprecated_name_property())
  10000. class MAVLink_nav_controller_output_message(MAVLink_message):
  10001. """
  10002. The state of the navigation and position controller.
  10003. """
  10004. id = MAVLINK_MSG_ID_NAV_CONTROLLER_OUTPUT
  10005. msgname = "NAV_CONTROLLER_OUTPUT"
  10006. fieldnames = ["nav_roll", "nav_pitch", "nav_bearing", "target_bearing", "wp_dist", "alt_error", "aspd_error", "xtrack_error"]
  10007. ordered_fieldnames = ["nav_roll", "nav_pitch", "alt_error", "aspd_error", "xtrack_error", "nav_bearing", "target_bearing", "wp_dist"]
  10008. fieldtypes = ["float", "float", "int16_t", "int16_t", "uint16_t", "float", "float", "float"]
  10009. fielddisplays_by_name: Dict[str, str] = {}
  10010. fieldenums_by_name: Dict[str, str] = {}
  10011. 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"}
  10012. native_format = bytearray(b"<fffffhhH")
  10013. orders = [0, 1, 5, 6, 7, 2, 3, 4]
  10014. lengths = [1, 1, 1, 1, 1, 1, 1, 1]
  10015. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0]
  10016. crc_extra = 183
  10017. unpacker = struct.Struct("<fffffhhH")
  10018. instance_field = None
  10019. instance_offset = -1
  10020. 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):
  10021. MAVLink_message.__init__(self, MAVLink_nav_controller_output_message.id, MAVLink_nav_controller_output_message.msgname)
  10022. self._fieldnames = MAVLink_nav_controller_output_message.fieldnames
  10023. self._instance_field = MAVLink_nav_controller_output_message.instance_field
  10024. self._instance_offset = MAVLink_nav_controller_output_message.instance_offset
  10025. self.nav_roll = nav_roll
  10026. self.nav_pitch = nav_pitch
  10027. self.nav_bearing = nav_bearing
  10028. self.target_bearing = target_bearing
  10029. self.wp_dist = wp_dist
  10030. self.alt_error = alt_error
  10031. self.aspd_error = aspd_error
  10032. self.xtrack_error = xtrack_error
  10033. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10034. 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)
  10035. # Define name on the class for backwards compatibility (it is now msgname).
  10036. # Done with setattr to hide the class variable from mypy.
  10037. setattr(MAVLink_nav_controller_output_message, "name", mavlink_msg_deprecated_name_property())
  10038. class MAVLink_global_position_int_cov_message(MAVLink_message):
  10039. """
  10040. The filtered global position (e.g. fused GPS and accelerometers).
  10041. The position is in GPS-frame (right-handed, Z-up). It is designed
  10042. as scaled integer message since the resolution of float is not
  10043. sufficient. NOTE: This message is intended for onboard networks /
  10044. companion computers and higher-bandwidth links and optimized for
  10045. accuracy and completeness. Please use the GLOBAL_POSITION_INT
  10046. message for a minimal subset.
  10047. """
  10048. id = MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV
  10049. msgname = "GLOBAL_POSITION_INT_COV"
  10050. fieldnames = ["time_usec", "estimator_type", "lat", "lon", "alt", "relative_alt", "vx", "vy", "vz", "covariance"]
  10051. ordered_fieldnames = ["time_usec", "lat", "lon", "alt", "relative_alt", "vx", "vy", "vz", "covariance", "estimator_type"]
  10052. fieldtypes = ["uint64_t", "uint8_t", "int32_t", "int32_t", "int32_t", "int32_t", "float", "float", "float", "float"]
  10053. fielddisplays_by_name: Dict[str, str] = {}
  10054. fieldenums_by_name: Dict[str, str] = {"estimator_type": "MAV_ESTIMATOR_TYPE"}
  10055. 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"}
  10056. native_format = bytearray(b"<QiiiiffffB")
  10057. orders = [0, 9, 1, 2, 3, 4, 5, 6, 7, 8]
  10058. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 36, 1]
  10059. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 36, 0]
  10060. crc_extra = 119
  10061. unpacker = struct.Struct("<Qiiiifff36fB")
  10062. instance_field = None
  10063. instance_offset = -1
  10064. 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]):
  10065. MAVLink_message.__init__(self, MAVLink_global_position_int_cov_message.id, MAVLink_global_position_int_cov_message.msgname)
  10066. self._fieldnames = MAVLink_global_position_int_cov_message.fieldnames
  10067. self._instance_field = MAVLink_global_position_int_cov_message.instance_field
  10068. self._instance_offset = MAVLink_global_position_int_cov_message.instance_offset
  10069. self.time_usec = time_usec
  10070. self.estimator_type = estimator_type
  10071. self.lat = lat
  10072. self.lon = lon
  10073. self.alt = alt
  10074. self.relative_alt = relative_alt
  10075. self.vx = vx
  10076. self.vy = vy
  10077. self.vz = vz
  10078. self.covariance = covariance
  10079. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10080. 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)
  10081. # Define name on the class for backwards compatibility (it is now msgname).
  10082. # Done with setattr to hide the class variable from mypy.
  10083. setattr(MAVLink_global_position_int_cov_message, "name", mavlink_msg_deprecated_name_property())
  10084. class MAVLink_local_position_ned_cov_message(MAVLink_message):
  10085. """
  10086. The filtered local position (e.g. fused computer vision and
  10087. accelerometers). Coordinate frame is right-handed, Z-axis down
  10088. (aeronautical frame, NED / north-east-down convention)
  10089. """
  10090. id = MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV
  10091. msgname = "LOCAL_POSITION_NED_COV"
  10092. fieldnames = ["time_usec", "estimator_type", "x", "y", "z", "vx", "vy", "vz", "ax", "ay", "az", "covariance"]
  10093. ordered_fieldnames = ["time_usec", "x", "y", "z", "vx", "vy", "vz", "ax", "ay", "az", "covariance", "estimator_type"]
  10094. fieldtypes = ["uint64_t", "uint8_t", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float"]
  10095. fielddisplays_by_name: Dict[str, str] = {}
  10096. fieldenums_by_name: Dict[str, str] = {"estimator_type": "MAV_ESTIMATOR_TYPE"}
  10097. 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"}
  10098. native_format = bytearray(b"<QffffffffffB")
  10099. orders = [0, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
  10100. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 45, 1]
  10101. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 0]
  10102. crc_extra = 191
  10103. unpacker = struct.Struct("<Qfffffffff45fB")
  10104. instance_field = None
  10105. instance_offset = -1
  10106. 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]):
  10107. MAVLink_message.__init__(self, MAVLink_local_position_ned_cov_message.id, MAVLink_local_position_ned_cov_message.msgname)
  10108. self._fieldnames = MAVLink_local_position_ned_cov_message.fieldnames
  10109. self._instance_field = MAVLink_local_position_ned_cov_message.instance_field
  10110. self._instance_offset = MAVLink_local_position_ned_cov_message.instance_offset
  10111. self.time_usec = time_usec
  10112. self.estimator_type = estimator_type
  10113. self.x = x
  10114. self.y = y
  10115. self.z = z
  10116. self.vx = vx
  10117. self.vy = vy
  10118. self.vz = vz
  10119. self.ax = ax
  10120. self.ay = ay
  10121. self.az = az
  10122. self.covariance = covariance
  10123. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10124. 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)
  10125. # Define name on the class for backwards compatibility (it is now msgname).
  10126. # Done with setattr to hide the class variable from mypy.
  10127. setattr(MAVLink_local_position_ned_cov_message, "name", mavlink_msg_deprecated_name_property())
  10128. class MAVLink_rc_channels_message(MAVLink_message):
  10129. """
  10130. The PPM values of the RC channels received. The standard PPM
  10131. modulation is as follows: 1000 microseconds: 0%, 2000
  10132. microseconds: 100%. A value of UINT16_MAX implies the channel is
  10133. unused. Individual receivers/transmitters might violate this
  10134. specification.
  10135. """
  10136. id = MAVLINK_MSG_ID_RC_CHANNELS
  10137. msgname = "RC_CHANNELS"
  10138. 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"]
  10139. 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"]
  10140. 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"]
  10141. fielddisplays_by_name: Dict[str, str] = {}
  10142. fieldenums_by_name: Dict[str, str] = {}
  10143. 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"}
  10144. native_format = bytearray(b"<IHHHHHHHHHHHHHHHHHHBB")
  10145. orders = [0, 19, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20]
  10146. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  10147. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  10148. crc_extra = 118
  10149. unpacker = struct.Struct("<IHHHHHHHHHHHHHHHHHHBB")
  10150. instance_field = None
  10151. instance_offset = -1
  10152. 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):
  10153. MAVLink_message.__init__(self, MAVLink_rc_channels_message.id, MAVLink_rc_channels_message.msgname)
  10154. self._fieldnames = MAVLink_rc_channels_message.fieldnames
  10155. self._instance_field = MAVLink_rc_channels_message.instance_field
  10156. self._instance_offset = MAVLink_rc_channels_message.instance_offset
  10157. self.time_boot_ms = time_boot_ms
  10158. self.chancount = chancount
  10159. self.chan1_raw = chan1_raw
  10160. self.chan2_raw = chan2_raw
  10161. self.chan3_raw = chan3_raw
  10162. self.chan4_raw = chan4_raw
  10163. self.chan5_raw = chan5_raw
  10164. self.chan6_raw = chan6_raw
  10165. self.chan7_raw = chan7_raw
  10166. self.chan8_raw = chan8_raw
  10167. self.chan9_raw = chan9_raw
  10168. self.chan10_raw = chan10_raw
  10169. self.chan11_raw = chan11_raw
  10170. self.chan12_raw = chan12_raw
  10171. self.chan13_raw = chan13_raw
  10172. self.chan14_raw = chan14_raw
  10173. self.chan15_raw = chan15_raw
  10174. self.chan16_raw = chan16_raw
  10175. self.chan17_raw = chan17_raw
  10176. self.chan18_raw = chan18_raw
  10177. self.rssi = rssi
  10178. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10179. 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)
  10180. # Define name on the class for backwards compatibility (it is now msgname).
  10181. # Done with setattr to hide the class variable from mypy.
  10182. setattr(MAVLink_rc_channels_message, "name", mavlink_msg_deprecated_name_property())
  10183. class MAVLink_request_data_stream_message(MAVLink_message):
  10184. """
  10185. Request a data stream.
  10186. """
  10187. id = MAVLINK_MSG_ID_REQUEST_DATA_STREAM
  10188. msgname = "REQUEST_DATA_STREAM"
  10189. fieldnames = ["target_system", "target_component", "req_stream_id", "req_message_rate", "start_stop"]
  10190. ordered_fieldnames = ["req_message_rate", "target_system", "target_component", "req_stream_id", "start_stop"]
  10191. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint16_t", "uint8_t"]
  10192. fielddisplays_by_name: Dict[str, str] = {}
  10193. fieldenums_by_name: Dict[str, str] = {}
  10194. fieldunits_by_name: Dict[str, str] = {"req_message_rate": "Hz"}
  10195. native_format = bytearray(b"<HBBBB")
  10196. orders = [1, 2, 3, 0, 4]
  10197. lengths = [1, 1, 1, 1, 1]
  10198. array_lengths = [0, 0, 0, 0, 0]
  10199. crc_extra = 148
  10200. unpacker = struct.Struct("<HBBBB")
  10201. instance_field = None
  10202. instance_offset = -1
  10203. def __init__(self, target_system: int, target_component: int, req_stream_id: int, req_message_rate: int, start_stop: int):
  10204. MAVLink_message.__init__(self, MAVLink_request_data_stream_message.id, MAVLink_request_data_stream_message.msgname)
  10205. self._fieldnames = MAVLink_request_data_stream_message.fieldnames
  10206. self._instance_field = MAVLink_request_data_stream_message.instance_field
  10207. self._instance_offset = MAVLink_request_data_stream_message.instance_offset
  10208. self.target_system = target_system
  10209. self.target_component = target_component
  10210. self.req_stream_id = req_stream_id
  10211. self.req_message_rate = req_message_rate
  10212. self.start_stop = start_stop
  10213. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10214. 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)
  10215. # Define name on the class for backwards compatibility (it is now msgname).
  10216. # Done with setattr to hide the class variable from mypy.
  10217. setattr(MAVLink_request_data_stream_message, "name", mavlink_msg_deprecated_name_property())
  10218. class MAVLink_data_stream_message(MAVLink_message):
  10219. """
  10220. Data stream status information.
  10221. """
  10222. id = MAVLINK_MSG_ID_DATA_STREAM
  10223. msgname = "DATA_STREAM"
  10224. fieldnames = ["stream_id", "message_rate", "on_off"]
  10225. ordered_fieldnames = ["message_rate", "stream_id", "on_off"]
  10226. fieldtypes = ["uint8_t", "uint16_t", "uint8_t"]
  10227. fielddisplays_by_name: Dict[str, str] = {}
  10228. fieldenums_by_name: Dict[str, str] = {}
  10229. fieldunits_by_name: Dict[str, str] = {"message_rate": "Hz"}
  10230. native_format = bytearray(b"<HBB")
  10231. orders = [1, 0, 2]
  10232. lengths = [1, 1, 1]
  10233. array_lengths = [0, 0, 0]
  10234. crc_extra = 21
  10235. unpacker = struct.Struct("<HBB")
  10236. instance_field = None
  10237. instance_offset = -1
  10238. def __init__(self, stream_id: int, message_rate: int, on_off: int):
  10239. MAVLink_message.__init__(self, MAVLink_data_stream_message.id, MAVLink_data_stream_message.msgname)
  10240. self._fieldnames = MAVLink_data_stream_message.fieldnames
  10241. self._instance_field = MAVLink_data_stream_message.instance_field
  10242. self._instance_offset = MAVLink_data_stream_message.instance_offset
  10243. self.stream_id = stream_id
  10244. self.message_rate = message_rate
  10245. self.on_off = on_off
  10246. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10247. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.message_rate, self.stream_id, self.on_off), force_mavlink1=force_mavlink1)
  10248. # Define name on the class for backwards compatibility (it is now msgname).
  10249. # Done with setattr to hide the class variable from mypy.
  10250. setattr(MAVLink_data_stream_message, "name", mavlink_msg_deprecated_name_property())
  10251. class MAVLink_manual_control_message(MAVLink_message):
  10252. """
  10253. This message provides an API for manually controlling the vehicle
  10254. using standard joystick axes nomenclature, along with a joystick-
  10255. like input device. Unused axes can be disabled and buttons states
  10256. are transmitted as individual on/off bits of a bitmask
  10257. """
  10258. id = MAVLINK_MSG_ID_MANUAL_CONTROL
  10259. msgname = "MANUAL_CONTROL"
  10260. fieldnames = ["target", "x", "y", "z", "r", "buttons", "buttons2", "enabled_extensions", "s", "t", "aux1", "aux2", "aux3", "aux4", "aux5", "aux6"]
  10261. ordered_fieldnames = ["x", "y", "z", "r", "buttons", "target", "buttons2", "enabled_extensions", "s", "t", "aux1", "aux2", "aux3", "aux4", "aux5", "aux6"]
  10262. 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"]
  10263. fielddisplays_by_name: Dict[str, str] = {}
  10264. fieldenums_by_name: Dict[str, str] = {}
  10265. fieldunits_by_name: Dict[str, str] = {}
  10266. native_format = bytearray(b"<hhhhHBHBhhhhhhhh")
  10267. orders = [5, 0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
  10268. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  10269. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  10270. crc_extra = 243
  10271. unpacker = struct.Struct("<hhhhHBHBhhhhhhhh")
  10272. instance_field = None
  10273. instance_offset = -1
  10274. 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):
  10275. MAVLink_message.__init__(self, MAVLink_manual_control_message.id, MAVLink_manual_control_message.msgname)
  10276. self._fieldnames = MAVLink_manual_control_message.fieldnames
  10277. self._instance_field = MAVLink_manual_control_message.instance_field
  10278. self._instance_offset = MAVLink_manual_control_message.instance_offset
  10279. self.target = target
  10280. self.x = x
  10281. self.y = y
  10282. self.z = z
  10283. self.r = r
  10284. self.buttons = buttons
  10285. self.buttons2 = buttons2
  10286. self.enabled_extensions = enabled_extensions
  10287. self.s = s
  10288. self.t = t
  10289. self.aux1 = aux1
  10290. self.aux2 = aux2
  10291. self.aux3 = aux3
  10292. self.aux4 = aux4
  10293. self.aux5 = aux5
  10294. self.aux6 = aux6
  10295. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10296. 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)
  10297. # Define name on the class for backwards compatibility (it is now msgname).
  10298. # Done with setattr to hide the class variable from mypy.
  10299. setattr(MAVLink_manual_control_message, "name", mavlink_msg_deprecated_name_property())
  10300. class MAVLink_rc_channels_override_message(MAVLink_message):
  10301. """
  10302. The RAW values of the RC channels sent to the MAV to override info
  10303. received from the RC radio. The standard PPM modulation is as
  10304. follows: 1000 microseconds: 0%, 2000 microseconds: 100%.
  10305. Individual receivers/transmitters might violate this
  10306. specification. Note carefully the semantic differences between
  10307. the first 8 channels and the subsequent channels
  10308. """
  10309. id = MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE
  10310. msgname = "RC_CHANNELS_OVERRIDE"
  10311. 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"]
  10312. 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"]
  10313. 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"]
  10314. fielddisplays_by_name: Dict[str, str] = {}
  10315. fieldenums_by_name: Dict[str, str] = {}
  10316. 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"}
  10317. native_format = bytearray(b"<HHHHHHHHBBHHHHHHHHHH")
  10318. orders = [8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
  10319. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  10320. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  10321. crc_extra = 124
  10322. unpacker = struct.Struct("<HHHHHHHHBBHHHHHHHHHH")
  10323. instance_field = None
  10324. instance_offset = -1
  10325. 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):
  10326. MAVLink_message.__init__(self, MAVLink_rc_channels_override_message.id, MAVLink_rc_channels_override_message.msgname)
  10327. self._fieldnames = MAVLink_rc_channels_override_message.fieldnames
  10328. self._instance_field = MAVLink_rc_channels_override_message.instance_field
  10329. self._instance_offset = MAVLink_rc_channels_override_message.instance_offset
  10330. self.target_system = target_system
  10331. self.target_component = target_component
  10332. self.chan1_raw = chan1_raw
  10333. self.chan2_raw = chan2_raw
  10334. self.chan3_raw = chan3_raw
  10335. self.chan4_raw = chan4_raw
  10336. self.chan5_raw = chan5_raw
  10337. self.chan6_raw = chan6_raw
  10338. self.chan7_raw = chan7_raw
  10339. self.chan8_raw = chan8_raw
  10340. self.chan9_raw = chan9_raw
  10341. self.chan10_raw = chan10_raw
  10342. self.chan11_raw = chan11_raw
  10343. self.chan12_raw = chan12_raw
  10344. self.chan13_raw = chan13_raw
  10345. self.chan14_raw = chan14_raw
  10346. self.chan15_raw = chan15_raw
  10347. self.chan16_raw = chan16_raw
  10348. self.chan17_raw = chan17_raw
  10349. self.chan18_raw = chan18_raw
  10350. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10351. 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)
  10352. # Define name on the class for backwards compatibility (it is now msgname).
  10353. # Done with setattr to hide the class variable from mypy.
  10354. setattr(MAVLink_rc_channels_override_message, "name", mavlink_msg_deprecated_name_property())
  10355. class MAVLink_mission_item_int_message(MAVLink_message):
  10356. """
  10357. Message encoding a mission item. This message is emitted to
  10358. announce the presence of a mission item and to set
  10359. a mission item on the system. The mission item can be either in x,
  10360. y, z meters (type: LOCAL) or x:lat, y:lon, z:altitude. Local frame
  10361. is Z-down, right handed (NED), global frame is Z-up, right handed
  10362. (ENU). NaN or INT32_MAX may be used in float/integer params
  10363. (respectively) to indicate optional/default values (e.g. to use
  10364. the component's current latitude, yaw rather than a specific
  10365. value). See also https://mavlink.io/en/services/mission.html.
  10366. """
  10367. id = MAVLINK_MSG_ID_MISSION_ITEM_INT
  10368. msgname = "MISSION_ITEM_INT"
  10369. fieldnames = ["target_system", "target_component", "seq", "frame", "command", "current", "autocontinue", "param1", "param2", "param3", "param4", "x", "y", "z", "mission_type"]
  10370. ordered_fieldnames = ["param1", "param2", "param3", "param4", "x", "y", "z", "seq", "command", "target_system", "target_component", "frame", "current", "autocontinue", "mission_type"]
  10371. 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"]
  10372. fielddisplays_by_name: Dict[str, str] = {}
  10373. fieldenums_by_name: Dict[str, str] = {"frame": "MAV_FRAME", "command": "MAV_CMD", "mission_type": "MAV_MISSION_TYPE"}
  10374. fieldunits_by_name: Dict[str, str] = {}
  10375. native_format = bytearray(b"<ffffiifHHBBBBBB")
  10376. orders = [9, 10, 7, 11, 8, 12, 13, 0, 1, 2, 3, 4, 5, 6, 14]
  10377. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  10378. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  10379. crc_extra = 38
  10380. unpacker = struct.Struct("<ffffiifHHBBBBBB")
  10381. instance_field = None
  10382. instance_offset = -1
  10383. 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):
  10384. MAVLink_message.__init__(self, MAVLink_mission_item_int_message.id, MAVLink_mission_item_int_message.msgname)
  10385. self._fieldnames = MAVLink_mission_item_int_message.fieldnames
  10386. self._instance_field = MAVLink_mission_item_int_message.instance_field
  10387. self._instance_offset = MAVLink_mission_item_int_message.instance_offset
  10388. self.target_system = target_system
  10389. self.target_component = target_component
  10390. self.seq = seq
  10391. self.frame = frame
  10392. self.command = command
  10393. self.current = current
  10394. self.autocontinue = autocontinue
  10395. self.param1 = param1
  10396. self.param2 = param2
  10397. self.param3 = param3
  10398. self.param4 = param4
  10399. self.x = x
  10400. self.y = y
  10401. self.z = z
  10402. self.mission_type = mission_type
  10403. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10404. 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)
  10405. # Define name on the class for backwards compatibility (it is now msgname).
  10406. # Done with setattr to hide the class variable from mypy.
  10407. setattr(MAVLink_mission_item_int_message, "name", mavlink_msg_deprecated_name_property())
  10408. class MAVLink_vfr_hud_message(MAVLink_message):
  10409. """
  10410. Metrics typically displayed on a HUD for fixed wing aircraft.
  10411. """
  10412. id = MAVLINK_MSG_ID_VFR_HUD
  10413. msgname = "VFR_HUD"
  10414. fieldnames = ["airspeed", "groundspeed", "heading", "throttle", "alt", "climb"]
  10415. ordered_fieldnames = ["airspeed", "groundspeed", "alt", "climb", "heading", "throttle"]
  10416. fieldtypes = ["float", "float", "int16_t", "uint16_t", "float", "float"]
  10417. fielddisplays_by_name: Dict[str, str] = {}
  10418. fieldenums_by_name: Dict[str, str] = {}
  10419. fieldunits_by_name: Dict[str, str] = {"airspeed": "m/s", "groundspeed": "m/s", "heading": "deg", "throttle": "%", "alt": "m", "climb": "m/s"}
  10420. native_format = bytearray(b"<ffffhH")
  10421. orders = [0, 1, 4, 5, 2, 3]
  10422. lengths = [1, 1, 1, 1, 1, 1]
  10423. array_lengths = [0, 0, 0, 0, 0, 0]
  10424. crc_extra = 20
  10425. unpacker = struct.Struct("<ffffhH")
  10426. instance_field = None
  10427. instance_offset = -1
  10428. def __init__(self, airspeed: float, groundspeed: float, heading: int, throttle: int, alt: float, climb: float):
  10429. MAVLink_message.__init__(self, MAVLink_vfr_hud_message.id, MAVLink_vfr_hud_message.msgname)
  10430. self._fieldnames = MAVLink_vfr_hud_message.fieldnames
  10431. self._instance_field = MAVLink_vfr_hud_message.instance_field
  10432. self._instance_offset = MAVLink_vfr_hud_message.instance_offset
  10433. self.airspeed = airspeed
  10434. self.groundspeed = groundspeed
  10435. self.heading = heading
  10436. self.throttle = throttle
  10437. self.alt = alt
  10438. self.climb = climb
  10439. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10440. 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)
  10441. # Define name on the class for backwards compatibility (it is now msgname).
  10442. # Done with setattr to hide the class variable from mypy.
  10443. setattr(MAVLink_vfr_hud_message, "name", mavlink_msg_deprecated_name_property())
  10444. class MAVLink_command_int_message(MAVLink_message):
  10445. """
  10446. Send a command with up to seven parameters to the MAV, where
  10447. params 5 and 6 are integers and the other values are floats. This
  10448. is preferred over COMMAND_LONG as it allows the MAV_FRAME to be
  10449. specified for interpreting positional information, such as
  10450. altitude. COMMAND_INT is also preferred when sending latitude and
  10451. longitude data in params 5 and 6, as it allows for greater
  10452. precision. Param 5 and 6 encode positional data as scaled
  10453. integers, where the scaling depends on the actual command value.
  10454. NaN or INT32_MAX may be used in float/integer params
  10455. (respectively) to indicate optional/default values (e.g. to use
  10456. the component's current latitude, yaw rather than a specific
  10457. value). The command microservice is documented at
  10458. https://mavlink.io/en/services/command.html
  10459. """
  10460. id = MAVLINK_MSG_ID_COMMAND_INT
  10461. msgname = "COMMAND_INT"
  10462. fieldnames = ["target_system", "target_component", "frame", "command", "current", "autocontinue", "param1", "param2", "param3", "param4", "x", "y", "z"]
  10463. ordered_fieldnames = ["param1", "param2", "param3", "param4", "x", "y", "z", "command", "target_system", "target_component", "frame", "current", "autocontinue"]
  10464. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint16_t", "uint8_t", "uint8_t", "float", "float", "float", "float", "int32_t", "int32_t", "float"]
  10465. fielddisplays_by_name: Dict[str, str] = {}
  10466. fieldenums_by_name: Dict[str, str] = {"frame": "MAV_FRAME", "command": "MAV_CMD"}
  10467. fieldunits_by_name: Dict[str, str] = {}
  10468. native_format = bytearray(b"<ffffiifHBBBBB")
  10469. orders = [8, 9, 10, 7, 11, 12, 0, 1, 2, 3, 4, 5, 6]
  10470. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  10471. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  10472. crc_extra = 158
  10473. unpacker = struct.Struct("<ffffiifHBBBBB")
  10474. instance_field = None
  10475. instance_offset = -1
  10476. 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):
  10477. MAVLink_message.__init__(self, MAVLink_command_int_message.id, MAVLink_command_int_message.msgname)
  10478. self._fieldnames = MAVLink_command_int_message.fieldnames
  10479. self._instance_field = MAVLink_command_int_message.instance_field
  10480. self._instance_offset = MAVLink_command_int_message.instance_offset
  10481. self.target_system = target_system
  10482. self.target_component = target_component
  10483. self.frame = frame
  10484. self.command = command
  10485. self.current = current
  10486. self.autocontinue = autocontinue
  10487. self.param1 = param1
  10488. self.param2 = param2
  10489. self.param3 = param3
  10490. self.param4 = param4
  10491. self.x = x
  10492. self.y = y
  10493. self.z = z
  10494. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10495. 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)
  10496. # Define name on the class for backwards compatibility (it is now msgname).
  10497. # Done with setattr to hide the class variable from mypy.
  10498. setattr(MAVLink_command_int_message, "name", mavlink_msg_deprecated_name_property())
  10499. class MAVLink_command_long_message(MAVLink_message):
  10500. """
  10501. Send a command with up to seven parameters to the MAV. COMMAND_INT
  10502. is generally preferred when sending MAV_CMD commands that include
  10503. positional information; it offers higher precision and allows the
  10504. MAV_FRAME to be specified (which may otherwise be ambiguous,
  10505. particularly for altitude). The command microservice is documented
  10506. at https://mavlink.io/en/services/command.html
  10507. """
  10508. id = MAVLINK_MSG_ID_COMMAND_LONG
  10509. msgname = "COMMAND_LONG"
  10510. fieldnames = ["target_system", "target_component", "command", "confirmation", "param1", "param2", "param3", "param4", "param5", "param6", "param7"]
  10511. ordered_fieldnames = ["param1", "param2", "param3", "param4", "param5", "param6", "param7", "command", "target_system", "target_component", "confirmation"]
  10512. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "uint8_t", "float", "float", "float", "float", "float", "float", "float"]
  10513. fielddisplays_by_name: Dict[str, str] = {}
  10514. fieldenums_by_name: Dict[str, str] = {"command": "MAV_CMD"}
  10515. fieldunits_by_name: Dict[str, str] = {}
  10516. native_format = bytearray(b"<fffffffHBBB")
  10517. orders = [8, 9, 7, 10, 0, 1, 2, 3, 4, 5, 6]
  10518. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  10519. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  10520. crc_extra = 152
  10521. unpacker = struct.Struct("<fffffffHBBB")
  10522. instance_field = None
  10523. instance_offset = -1
  10524. 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):
  10525. MAVLink_message.__init__(self, MAVLink_command_long_message.id, MAVLink_command_long_message.msgname)
  10526. self._fieldnames = MAVLink_command_long_message.fieldnames
  10527. self._instance_field = MAVLink_command_long_message.instance_field
  10528. self._instance_offset = MAVLink_command_long_message.instance_offset
  10529. self.target_system = target_system
  10530. self.target_component = target_component
  10531. self.command = command
  10532. self.confirmation = confirmation
  10533. self.param1 = param1
  10534. self.param2 = param2
  10535. self.param3 = param3
  10536. self.param4 = param4
  10537. self.param5 = param5
  10538. self.param6 = param6
  10539. self.param7 = param7
  10540. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10541. 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)
  10542. # Define name on the class for backwards compatibility (it is now msgname).
  10543. # Done with setattr to hide the class variable from mypy.
  10544. setattr(MAVLink_command_long_message, "name", mavlink_msg_deprecated_name_property())
  10545. class MAVLink_command_ack_message(MAVLink_message):
  10546. """
  10547. Report status of a command. Includes feedback whether the command
  10548. was executed. The command microservice is documented at
  10549. https://mavlink.io/en/services/command.html
  10550. """
  10551. id = MAVLINK_MSG_ID_COMMAND_ACK
  10552. msgname = "COMMAND_ACK"
  10553. fieldnames = ["command", "result", "progress", "result_param2", "target_system", "target_component"]
  10554. ordered_fieldnames = ["command", "result", "progress", "result_param2", "target_system", "target_component"]
  10555. fieldtypes = ["uint16_t", "uint8_t", "uint8_t", "int32_t", "uint8_t", "uint8_t"]
  10556. fielddisplays_by_name: Dict[str, str] = {}
  10557. fieldenums_by_name: Dict[str, str] = {"command": "MAV_CMD", "result": "MAV_RESULT"}
  10558. fieldunits_by_name: Dict[str, str] = {"progress": "%"}
  10559. native_format = bytearray(b"<HBBiBB")
  10560. orders = [0, 1, 2, 3, 4, 5]
  10561. lengths = [1, 1, 1, 1, 1, 1]
  10562. array_lengths = [0, 0, 0, 0, 0, 0]
  10563. crc_extra = 143
  10564. unpacker = struct.Struct("<HBBiBB")
  10565. instance_field = None
  10566. instance_offset = -1
  10567. def __init__(self, command: int, result: int, progress: int = 0, result_param2: int = 0, target_system: int = 0, target_component: int = 0):
  10568. MAVLink_message.__init__(self, MAVLink_command_ack_message.id, MAVLink_command_ack_message.msgname)
  10569. self._fieldnames = MAVLink_command_ack_message.fieldnames
  10570. self._instance_field = MAVLink_command_ack_message.instance_field
  10571. self._instance_offset = MAVLink_command_ack_message.instance_offset
  10572. self.command = command
  10573. self.result = result
  10574. self.progress = progress
  10575. self.result_param2 = result_param2
  10576. self.target_system = target_system
  10577. self.target_component = target_component
  10578. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10579. 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)
  10580. # Define name on the class for backwards compatibility (it is now msgname).
  10581. # Done with setattr to hide the class variable from mypy.
  10582. setattr(MAVLink_command_ack_message, "name", mavlink_msg_deprecated_name_property())
  10583. class MAVLink_command_cancel_message(MAVLink_message):
  10584. """
  10585. Cancel a long running command. The target system should respond
  10586. with a COMMAND_ACK to the original command with
  10587. result=MAV_RESULT_CANCELLED if the long running process was
  10588. cancelled. If it has already completed, the cancel action can be
  10589. ignored. The cancel action can be retried until some sort of
  10590. acknowledgement to the original command has been received. The
  10591. command microservice is documented at
  10592. https://mavlink.io/en/services/command.html
  10593. """
  10594. id = MAVLINK_MSG_ID_COMMAND_CANCEL
  10595. msgname = "COMMAND_CANCEL"
  10596. fieldnames = ["target_system", "target_component", "command"]
  10597. ordered_fieldnames = ["command", "target_system", "target_component"]
  10598. fieldtypes = ["uint8_t", "uint8_t", "uint16_t"]
  10599. fielddisplays_by_name: Dict[str, str] = {}
  10600. fieldenums_by_name: Dict[str, str] = {"command": "MAV_CMD"}
  10601. fieldunits_by_name: Dict[str, str] = {}
  10602. native_format = bytearray(b"<HBB")
  10603. orders = [1, 2, 0]
  10604. lengths = [1, 1, 1]
  10605. array_lengths = [0, 0, 0]
  10606. crc_extra = 14
  10607. unpacker = struct.Struct("<HBB")
  10608. instance_field = None
  10609. instance_offset = -1
  10610. def __init__(self, target_system: int, target_component: int, command: int):
  10611. MAVLink_message.__init__(self, MAVLink_command_cancel_message.id, MAVLink_command_cancel_message.msgname)
  10612. self._fieldnames = MAVLink_command_cancel_message.fieldnames
  10613. self._instance_field = MAVLink_command_cancel_message.instance_field
  10614. self._instance_offset = MAVLink_command_cancel_message.instance_offset
  10615. self.target_system = target_system
  10616. self.target_component = target_component
  10617. self.command = command
  10618. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10619. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.command, self.target_system, self.target_component), 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_cancel_message, "name", mavlink_msg_deprecated_name_property())
  10623. class MAVLink_manual_setpoint_message(MAVLink_message):
  10624. """
  10625. Setpoint in roll, pitch, yaw and thrust from the operator
  10626. """
  10627. id = MAVLINK_MSG_ID_MANUAL_SETPOINT
  10628. msgname = "MANUAL_SETPOINT"
  10629. fieldnames = ["time_boot_ms", "roll", "pitch", "yaw", "thrust", "mode_switch", "manual_override_switch"]
  10630. ordered_fieldnames = ["time_boot_ms", "roll", "pitch", "yaw", "thrust", "mode_switch", "manual_override_switch"]
  10631. fieldtypes = ["uint32_t", "float", "float", "float", "float", "uint8_t", "uint8_t"]
  10632. fielddisplays_by_name: Dict[str, str] = {}
  10633. fieldenums_by_name: Dict[str, str] = {}
  10634. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "roll": "rad/s", "pitch": "rad/s", "yaw": "rad/s"}
  10635. native_format = bytearray(b"<IffffBB")
  10636. orders = [0, 1, 2, 3, 4, 5, 6]
  10637. lengths = [1, 1, 1, 1, 1, 1, 1]
  10638. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  10639. crc_extra = 106
  10640. unpacker = struct.Struct("<IffffBB")
  10641. instance_field = None
  10642. instance_offset = -1
  10643. def __init__(self, time_boot_ms: int, roll: float, pitch: float, yaw: float, thrust: float, mode_switch: int, manual_override_switch: int):
  10644. MAVLink_message.__init__(self, MAVLink_manual_setpoint_message.id, MAVLink_manual_setpoint_message.msgname)
  10645. self._fieldnames = MAVLink_manual_setpoint_message.fieldnames
  10646. self._instance_field = MAVLink_manual_setpoint_message.instance_field
  10647. self._instance_offset = MAVLink_manual_setpoint_message.instance_offset
  10648. self.time_boot_ms = time_boot_ms
  10649. self.roll = roll
  10650. self.pitch = pitch
  10651. self.yaw = yaw
  10652. self.thrust = thrust
  10653. self.mode_switch = mode_switch
  10654. self.manual_override_switch = manual_override_switch
  10655. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10656. 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)
  10657. # Define name on the class for backwards compatibility (it is now msgname).
  10658. # Done with setattr to hide the class variable from mypy.
  10659. setattr(MAVLink_manual_setpoint_message, "name", mavlink_msg_deprecated_name_property())
  10660. class MAVLink_set_attitude_target_message(MAVLink_message):
  10661. """
  10662. Sets a desired vehicle attitude. Used by an external controller to
  10663. command the vehicle (manual controller or other system).
  10664. """
  10665. id = MAVLINK_MSG_ID_SET_ATTITUDE_TARGET
  10666. msgname = "SET_ATTITUDE_TARGET"
  10667. fieldnames = ["time_boot_ms", "target_system", "target_component", "type_mask", "q", "body_roll_rate", "body_pitch_rate", "body_yaw_rate", "thrust", "thrust_body"]
  10668. ordered_fieldnames = ["time_boot_ms", "q", "body_roll_rate", "body_pitch_rate", "body_yaw_rate", "thrust", "target_system", "target_component", "type_mask", "thrust_body"]
  10669. fieldtypes = ["uint32_t", "uint8_t", "uint8_t", "uint8_t", "float", "float", "float", "float", "float", "float"]
  10670. fielddisplays_by_name: Dict[str, str] = {"type_mask": "bitmask"}
  10671. fieldenums_by_name: Dict[str, str] = {"type_mask": "ATTITUDE_TARGET_TYPEMASK"}
  10672. 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"}
  10673. native_format = bytearray(b"<IfffffBBBf")
  10674. orders = [0, 6, 7, 8, 1, 2, 3, 4, 5, 9]
  10675. lengths = [1, 4, 1, 1, 1, 1, 1, 1, 1, 3]
  10676. array_lengths = [0, 4, 0, 0, 0, 0, 0, 0, 0, 3]
  10677. crc_extra = 49
  10678. unpacker = struct.Struct("<I4fffffBBB3f")
  10679. instance_field = None
  10680. instance_offset = -1
  10681. 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)):
  10682. MAVLink_message.__init__(self, MAVLink_set_attitude_target_message.id, MAVLink_set_attitude_target_message.msgname)
  10683. self._fieldnames = MAVLink_set_attitude_target_message.fieldnames
  10684. self._instance_field = MAVLink_set_attitude_target_message.instance_field
  10685. self._instance_offset = MAVLink_set_attitude_target_message.instance_offset
  10686. self.time_boot_ms = time_boot_ms
  10687. self.target_system = target_system
  10688. self.target_component = target_component
  10689. self.type_mask = type_mask
  10690. self.q = q
  10691. self.body_roll_rate = body_roll_rate
  10692. self.body_pitch_rate = body_pitch_rate
  10693. self.body_yaw_rate = body_yaw_rate
  10694. self.thrust = thrust
  10695. self.thrust_body = thrust_body
  10696. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10697. 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)
  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_set_attitude_target_message, "name", mavlink_msg_deprecated_name_property())
  10701. class MAVLink_attitude_target_message(MAVLink_message):
  10702. """
  10703. Reports the current commanded attitude of the vehicle as specified
  10704. by the autopilot. This should match the commands sent in a
  10705. SET_ATTITUDE_TARGET message if the vehicle is being controlled
  10706. this way.
  10707. """
  10708. id = MAVLINK_MSG_ID_ATTITUDE_TARGET
  10709. msgname = "ATTITUDE_TARGET"
  10710. fieldnames = ["time_boot_ms", "type_mask", "q", "body_roll_rate", "body_pitch_rate", "body_yaw_rate", "thrust"]
  10711. ordered_fieldnames = ["time_boot_ms", "q", "body_roll_rate", "body_pitch_rate", "body_yaw_rate", "thrust", "type_mask"]
  10712. fieldtypes = ["uint32_t", "uint8_t", "float", "float", "float", "float", "float"]
  10713. fielddisplays_by_name: Dict[str, str] = {"type_mask": "bitmask"}
  10714. fieldenums_by_name: Dict[str, str] = {"type_mask": "ATTITUDE_TARGET_TYPEMASK"}
  10715. 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"}
  10716. native_format = bytearray(b"<IfffffB")
  10717. orders = [0, 6, 1, 2, 3, 4, 5]
  10718. lengths = [1, 4, 1, 1, 1, 1, 1]
  10719. array_lengths = [0, 4, 0, 0, 0, 0, 0]
  10720. crc_extra = 22
  10721. unpacker = struct.Struct("<I4fffffB")
  10722. instance_field = None
  10723. instance_offset = -1
  10724. 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):
  10725. MAVLink_message.__init__(self, MAVLink_attitude_target_message.id, MAVLink_attitude_target_message.msgname)
  10726. self._fieldnames = MAVLink_attitude_target_message.fieldnames
  10727. self._instance_field = MAVLink_attitude_target_message.instance_field
  10728. self._instance_offset = MAVLink_attitude_target_message.instance_offset
  10729. self.time_boot_ms = time_boot_ms
  10730. self.type_mask = type_mask
  10731. self.q = q
  10732. self.body_roll_rate = body_roll_rate
  10733. self.body_pitch_rate = body_pitch_rate
  10734. self.body_yaw_rate = body_yaw_rate
  10735. self.thrust = thrust
  10736. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10737. 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)
  10738. # Define name on the class for backwards compatibility (it is now msgname).
  10739. # Done with setattr to hide the class variable from mypy.
  10740. setattr(MAVLink_attitude_target_message, "name", mavlink_msg_deprecated_name_property())
  10741. class MAVLink_set_position_target_local_ned_message(MAVLink_message):
  10742. """
  10743. Sets a desired vehicle position in a local north-east-down
  10744. coordinate frame. Used by an external controller to command the
  10745. vehicle (manual controller or other system).
  10746. """
  10747. id = MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED
  10748. msgname = "SET_POSITION_TARGET_LOCAL_NED"
  10749. fieldnames = ["time_boot_ms", "target_system", "target_component", "coordinate_frame", "type_mask", "x", "y", "z", "vx", "vy", "vz", "afx", "afy", "afz", "yaw", "yaw_rate"]
  10750. 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"]
  10751. fieldtypes = ["uint32_t", "uint8_t", "uint8_t", "uint8_t", "uint16_t", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float"]
  10752. fielddisplays_by_name: Dict[str, str] = {"type_mask": "bitmask"}
  10753. fieldenums_by_name: Dict[str, str] = {"coordinate_frame": "MAV_FRAME", "type_mask": "POSITION_TARGET_TYPEMASK"}
  10754. 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"}
  10755. native_format = bytearray(b"<IfffffffffffHBBB")
  10756. orders = [0, 13, 14, 15, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
  10757. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  10758. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  10759. crc_extra = 143
  10760. unpacker = struct.Struct("<IfffffffffffHBBB")
  10761. instance_field = None
  10762. instance_offset = -1
  10763. 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):
  10764. MAVLink_message.__init__(self, MAVLink_set_position_target_local_ned_message.id, MAVLink_set_position_target_local_ned_message.msgname)
  10765. self._fieldnames = MAVLink_set_position_target_local_ned_message.fieldnames
  10766. self._instance_field = MAVLink_set_position_target_local_ned_message.instance_field
  10767. self._instance_offset = MAVLink_set_position_target_local_ned_message.instance_offset
  10768. self.time_boot_ms = time_boot_ms
  10769. self.target_system = target_system
  10770. self.target_component = target_component
  10771. self.coordinate_frame = coordinate_frame
  10772. self.type_mask = type_mask
  10773. self.x = x
  10774. self.y = y
  10775. self.z = z
  10776. self.vx = vx
  10777. self.vy = vy
  10778. self.vz = vz
  10779. self.afx = afx
  10780. self.afy = afy
  10781. self.afz = afz
  10782. self.yaw = yaw
  10783. self.yaw_rate = yaw_rate
  10784. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10785. 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)
  10786. # Define name on the class for backwards compatibility (it is now msgname).
  10787. # Done with setattr to hide the class variable from mypy.
  10788. setattr(MAVLink_set_position_target_local_ned_message, "name", mavlink_msg_deprecated_name_property())
  10789. class MAVLink_position_target_local_ned_message(MAVLink_message):
  10790. """
  10791. Reports the current commanded vehicle position, velocity, and
  10792. acceleration as specified by the autopilot. This should match the
  10793. commands sent in SET_POSITION_TARGET_LOCAL_NED if the vehicle is
  10794. being controlled this way.
  10795. """
  10796. id = MAVLINK_MSG_ID_POSITION_TARGET_LOCAL_NED
  10797. msgname = "POSITION_TARGET_LOCAL_NED"
  10798. fieldnames = ["time_boot_ms", "coordinate_frame", "type_mask", "x", "y", "z", "vx", "vy", "vz", "afx", "afy", "afz", "yaw", "yaw_rate"]
  10799. ordered_fieldnames = ["time_boot_ms", "x", "y", "z", "vx", "vy", "vz", "afx", "afy", "afz", "yaw", "yaw_rate", "type_mask", "coordinate_frame"]
  10800. fieldtypes = ["uint32_t", "uint8_t", "uint16_t", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float"]
  10801. fielddisplays_by_name: Dict[str, str] = {"type_mask": "bitmask"}
  10802. fieldenums_by_name: Dict[str, str] = {"coordinate_frame": "MAV_FRAME", "type_mask": "POSITION_TARGET_TYPEMASK"}
  10803. 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"}
  10804. native_format = bytearray(b"<IfffffffffffHB")
  10805. orders = [0, 13, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
  10806. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  10807. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  10808. crc_extra = 140
  10809. unpacker = struct.Struct("<IfffffffffffHB")
  10810. instance_field = None
  10811. instance_offset = -1
  10812. 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):
  10813. MAVLink_message.__init__(self, MAVLink_position_target_local_ned_message.id, MAVLink_position_target_local_ned_message.msgname)
  10814. self._fieldnames = MAVLink_position_target_local_ned_message.fieldnames
  10815. self._instance_field = MAVLink_position_target_local_ned_message.instance_field
  10816. self._instance_offset = MAVLink_position_target_local_ned_message.instance_offset
  10817. self.time_boot_ms = time_boot_ms
  10818. self.coordinate_frame = coordinate_frame
  10819. self.type_mask = type_mask
  10820. self.x = x
  10821. self.y = y
  10822. self.z = z
  10823. self.vx = vx
  10824. self.vy = vy
  10825. self.vz = vz
  10826. self.afx = afx
  10827. self.afy = afy
  10828. self.afz = afz
  10829. self.yaw = yaw
  10830. self.yaw_rate = yaw_rate
  10831. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10832. 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)
  10833. # Define name on the class for backwards compatibility (it is now msgname).
  10834. # Done with setattr to hide the class variable from mypy.
  10835. setattr(MAVLink_position_target_local_ned_message, "name", mavlink_msg_deprecated_name_property())
  10836. class MAVLink_set_position_target_global_int_message(MAVLink_message):
  10837. """
  10838. Sets a desired vehicle position, velocity, and/or acceleration in
  10839. a global coordinate system (WGS84). Used by an external controller
  10840. to command the vehicle (manual controller or other system).
  10841. """
  10842. id = MAVLINK_MSG_ID_SET_POSITION_TARGET_GLOBAL_INT
  10843. msgname = "SET_POSITION_TARGET_GLOBAL_INT"
  10844. 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"]
  10845. 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"]
  10846. fieldtypes = ["uint32_t", "uint8_t", "uint8_t", "uint8_t", "uint16_t", "int32_t", "int32_t", "float", "float", "float", "float", "float", "float", "float", "float", "float"]
  10847. fielddisplays_by_name: Dict[str, str] = {"type_mask": "bitmask"}
  10848. fieldenums_by_name: Dict[str, str] = {"coordinate_frame": "MAV_FRAME", "type_mask": "POSITION_TARGET_TYPEMASK"}
  10849. 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"}
  10850. native_format = bytearray(b"<IiifffffffffHBBB")
  10851. orders = [0, 13, 14, 15, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
  10852. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  10853. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  10854. crc_extra = 5
  10855. unpacker = struct.Struct("<IiifffffffffHBBB")
  10856. instance_field = None
  10857. instance_offset = -1
  10858. 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):
  10859. MAVLink_message.__init__(self, MAVLink_set_position_target_global_int_message.id, MAVLink_set_position_target_global_int_message.msgname)
  10860. self._fieldnames = MAVLink_set_position_target_global_int_message.fieldnames
  10861. self._instance_field = MAVLink_set_position_target_global_int_message.instance_field
  10862. self._instance_offset = MAVLink_set_position_target_global_int_message.instance_offset
  10863. self.time_boot_ms = time_boot_ms
  10864. self.target_system = target_system
  10865. self.target_component = target_component
  10866. self.coordinate_frame = coordinate_frame
  10867. self.type_mask = type_mask
  10868. self.lat_int = lat_int
  10869. self.lon_int = lon_int
  10870. self.alt = alt
  10871. self.vx = vx
  10872. self.vy = vy
  10873. self.vz = vz
  10874. self.afx = afx
  10875. self.afy = afy
  10876. self.afz = afz
  10877. self.yaw = yaw
  10878. self.yaw_rate = yaw_rate
  10879. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10880. 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)
  10881. # Define name on the class for backwards compatibility (it is now msgname).
  10882. # Done with setattr to hide the class variable from mypy.
  10883. setattr(MAVLink_set_position_target_global_int_message, "name", mavlink_msg_deprecated_name_property())
  10884. class MAVLink_position_target_global_int_message(MAVLink_message):
  10885. """
  10886. Reports the current commanded vehicle position, velocity, and
  10887. acceleration as specified by the autopilot. This should match the
  10888. commands sent in SET_POSITION_TARGET_GLOBAL_INT if the vehicle is
  10889. being controlled this way.
  10890. """
  10891. id = MAVLINK_MSG_ID_POSITION_TARGET_GLOBAL_INT
  10892. msgname = "POSITION_TARGET_GLOBAL_INT"
  10893. fieldnames = ["time_boot_ms", "coordinate_frame", "type_mask", "lat_int", "lon_int", "alt", "vx", "vy", "vz", "afx", "afy", "afz", "yaw", "yaw_rate"]
  10894. ordered_fieldnames = ["time_boot_ms", "lat_int", "lon_int", "alt", "vx", "vy", "vz", "afx", "afy", "afz", "yaw", "yaw_rate", "type_mask", "coordinate_frame"]
  10895. fieldtypes = ["uint32_t", "uint8_t", "uint16_t", "int32_t", "int32_t", "float", "float", "float", "float", "float", "float", "float", "float", "float"]
  10896. fielddisplays_by_name: Dict[str, str] = {"type_mask": "bitmask"}
  10897. fieldenums_by_name: Dict[str, str] = {"coordinate_frame": "MAV_FRAME", "type_mask": "POSITION_TARGET_TYPEMASK"}
  10898. 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"}
  10899. native_format = bytearray(b"<IiifffffffffHB")
  10900. orders = [0, 13, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
  10901. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  10902. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  10903. crc_extra = 150
  10904. unpacker = struct.Struct("<IiifffffffffHB")
  10905. instance_field = None
  10906. instance_offset = -1
  10907. 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):
  10908. MAVLink_message.__init__(self, MAVLink_position_target_global_int_message.id, MAVLink_position_target_global_int_message.msgname)
  10909. self._fieldnames = MAVLink_position_target_global_int_message.fieldnames
  10910. self._instance_field = MAVLink_position_target_global_int_message.instance_field
  10911. self._instance_offset = MAVLink_position_target_global_int_message.instance_offset
  10912. self.time_boot_ms = time_boot_ms
  10913. self.coordinate_frame = coordinate_frame
  10914. self.type_mask = type_mask
  10915. self.lat_int = lat_int
  10916. self.lon_int = lon_int
  10917. self.alt = alt
  10918. self.vx = vx
  10919. self.vy = vy
  10920. self.vz = vz
  10921. self.afx = afx
  10922. self.afy = afy
  10923. self.afz = afz
  10924. self.yaw = yaw
  10925. self.yaw_rate = yaw_rate
  10926. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10927. 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)
  10928. # Define name on the class for backwards compatibility (it is now msgname).
  10929. # Done with setattr to hide the class variable from mypy.
  10930. setattr(MAVLink_position_target_global_int_message, "name", mavlink_msg_deprecated_name_property())
  10931. class MAVLink_local_position_ned_system_global_offset_message(MAVLink_message):
  10932. """
  10933. The offset in X, Y, Z and yaw between the LOCAL_POSITION_NED
  10934. messages of MAV X and the global coordinate frame in NED
  10935. coordinates. Coordinate frame is right-handed, Z-axis down
  10936. (aeronautical frame, NED / north-east-down convention)
  10937. """
  10938. id = MAVLINK_MSG_ID_LOCAL_POSITION_NED_SYSTEM_GLOBAL_OFFSET
  10939. msgname = "LOCAL_POSITION_NED_SYSTEM_GLOBAL_OFFSET"
  10940. fieldnames = ["time_boot_ms", "x", "y", "z", "roll", "pitch", "yaw"]
  10941. ordered_fieldnames = ["time_boot_ms", "x", "y", "z", "roll", "pitch", "yaw"]
  10942. fieldtypes = ["uint32_t", "float", "float", "float", "float", "float", "float"]
  10943. fielddisplays_by_name: Dict[str, str] = {}
  10944. fieldenums_by_name: Dict[str, str] = {}
  10945. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "x": "m", "y": "m", "z": "m", "roll": "rad", "pitch": "rad", "yaw": "rad"}
  10946. native_format = bytearray(b"<Iffffff")
  10947. orders = [0, 1, 2, 3, 4, 5, 6]
  10948. lengths = [1, 1, 1, 1, 1, 1, 1]
  10949. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  10950. crc_extra = 231
  10951. unpacker = struct.Struct("<Iffffff")
  10952. instance_field = None
  10953. instance_offset = -1
  10954. def __init__(self, time_boot_ms: int, x: float, y: float, z: float, roll: float, pitch: float, yaw: float):
  10955. MAVLink_message.__init__(self, MAVLink_local_position_ned_system_global_offset_message.id, MAVLink_local_position_ned_system_global_offset_message.msgname)
  10956. self._fieldnames = MAVLink_local_position_ned_system_global_offset_message.fieldnames
  10957. self._instance_field = MAVLink_local_position_ned_system_global_offset_message.instance_field
  10958. self._instance_offset = MAVLink_local_position_ned_system_global_offset_message.instance_offset
  10959. self.time_boot_ms = time_boot_ms
  10960. self.x = x
  10961. self.y = y
  10962. self.z = z
  10963. self.roll = roll
  10964. self.pitch = pitch
  10965. self.yaw = yaw
  10966. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  10967. 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)
  10968. # Define name on the class for backwards compatibility (it is now msgname).
  10969. # Done with setattr to hide the class variable from mypy.
  10970. setattr(MAVLink_local_position_ned_system_global_offset_message, "name", mavlink_msg_deprecated_name_property())
  10971. class MAVLink_hil_state_message(MAVLink_message):
  10972. """
  10973. Sent from simulation to autopilot. This packet is useful for high
  10974. throughput applications such as hardware in the loop simulations.
  10975. """
  10976. id = MAVLINK_MSG_ID_HIL_STATE
  10977. msgname = "HIL_STATE"
  10978. fieldnames = ["time_usec", "roll", "pitch", "yaw", "rollspeed", "pitchspeed", "yawspeed", "lat", "lon", "alt", "vx", "vy", "vz", "xacc", "yacc", "zacc"]
  10979. ordered_fieldnames = ["time_usec", "roll", "pitch", "yaw", "rollspeed", "pitchspeed", "yawspeed", "lat", "lon", "alt", "vx", "vy", "vz", "xacc", "yacc", "zacc"]
  10980. 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"]
  10981. fielddisplays_by_name: Dict[str, str] = {}
  10982. fieldenums_by_name: Dict[str, str] = {}
  10983. 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"}
  10984. native_format = bytearray(b"<Qffffffiiihhhhhh")
  10985. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
  10986. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  10987. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  10988. crc_extra = 183
  10989. unpacker = struct.Struct("<Qffffffiiihhhhhh")
  10990. instance_field = None
  10991. instance_offset = -1
  10992. 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):
  10993. MAVLink_message.__init__(self, MAVLink_hil_state_message.id, MAVLink_hil_state_message.msgname)
  10994. self._fieldnames = MAVLink_hil_state_message.fieldnames
  10995. self._instance_field = MAVLink_hil_state_message.instance_field
  10996. self._instance_offset = MAVLink_hil_state_message.instance_offset
  10997. self.time_usec = time_usec
  10998. self.roll = roll
  10999. self.pitch = pitch
  11000. self.yaw = yaw
  11001. self.rollspeed = rollspeed
  11002. self.pitchspeed = pitchspeed
  11003. self.yawspeed = yawspeed
  11004. self.lat = lat
  11005. self.lon = lon
  11006. self.alt = alt
  11007. self.vx = vx
  11008. self.vy = vy
  11009. self.vz = vz
  11010. self.xacc = xacc
  11011. self.yacc = yacc
  11012. self.zacc = zacc
  11013. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11014. 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)
  11015. # Define name on the class for backwards compatibility (it is now msgname).
  11016. # Done with setattr to hide the class variable from mypy.
  11017. setattr(MAVLink_hil_state_message, "name", mavlink_msg_deprecated_name_property())
  11018. class MAVLink_hil_controls_message(MAVLink_message):
  11019. """
  11020. Sent from autopilot to simulation. Hardware in the loop control
  11021. outputs
  11022. """
  11023. id = MAVLINK_MSG_ID_HIL_CONTROLS
  11024. msgname = "HIL_CONTROLS"
  11025. fieldnames = ["time_usec", "roll_ailerons", "pitch_elevator", "yaw_rudder", "throttle", "aux1", "aux2", "aux3", "aux4", "mode", "nav_mode"]
  11026. ordered_fieldnames = ["time_usec", "roll_ailerons", "pitch_elevator", "yaw_rudder", "throttle", "aux1", "aux2", "aux3", "aux4", "mode", "nav_mode"]
  11027. fieldtypes = ["uint64_t", "float", "float", "float", "float", "float", "float", "float", "float", "uint8_t", "uint8_t"]
  11028. fielddisplays_by_name: Dict[str, str] = {}
  11029. fieldenums_by_name: Dict[str, str] = {"mode": "MAV_MODE"}
  11030. fieldunits_by_name: Dict[str, str] = {"time_usec": "us"}
  11031. native_format = bytearray(b"<QffffffffBB")
  11032. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
  11033. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  11034. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  11035. crc_extra = 63
  11036. unpacker = struct.Struct("<QffffffffBB")
  11037. instance_field = None
  11038. instance_offset = -1
  11039. 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):
  11040. MAVLink_message.__init__(self, MAVLink_hil_controls_message.id, MAVLink_hil_controls_message.msgname)
  11041. self._fieldnames = MAVLink_hil_controls_message.fieldnames
  11042. self._instance_field = MAVLink_hil_controls_message.instance_field
  11043. self._instance_offset = MAVLink_hil_controls_message.instance_offset
  11044. self.time_usec = time_usec
  11045. self.roll_ailerons = roll_ailerons
  11046. self.pitch_elevator = pitch_elevator
  11047. self.yaw_rudder = yaw_rudder
  11048. self.throttle = throttle
  11049. self.aux1 = aux1
  11050. self.aux2 = aux2
  11051. self.aux3 = aux3
  11052. self.aux4 = aux4
  11053. self.mode = mode
  11054. self.nav_mode = nav_mode
  11055. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11056. 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)
  11057. # Define name on the class for backwards compatibility (it is now msgname).
  11058. # Done with setattr to hide the class variable from mypy.
  11059. setattr(MAVLink_hil_controls_message, "name", mavlink_msg_deprecated_name_property())
  11060. class MAVLink_hil_rc_inputs_raw_message(MAVLink_message):
  11061. """
  11062. Sent from simulation to autopilot. The RAW values of the RC
  11063. channels received. The standard PPM modulation is as follows: 1000
  11064. microseconds: 0%, 2000 microseconds: 100%. Individual
  11065. receivers/transmitters might violate this specification.
  11066. """
  11067. id = MAVLINK_MSG_ID_HIL_RC_INPUTS_RAW
  11068. msgname = "HIL_RC_INPUTS_RAW"
  11069. 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"]
  11070. 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"]
  11071. 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"]
  11072. fielddisplays_by_name: Dict[str, str] = {}
  11073. fieldenums_by_name: Dict[str, str] = {}
  11074. 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"}
  11075. native_format = bytearray(b"<QHHHHHHHHHHHHB")
  11076. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
  11077. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  11078. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  11079. crc_extra = 54
  11080. unpacker = struct.Struct("<QHHHHHHHHHHHHB")
  11081. instance_field = None
  11082. instance_offset = -1
  11083. 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):
  11084. MAVLink_message.__init__(self, MAVLink_hil_rc_inputs_raw_message.id, MAVLink_hil_rc_inputs_raw_message.msgname)
  11085. self._fieldnames = MAVLink_hil_rc_inputs_raw_message.fieldnames
  11086. self._instance_field = MAVLink_hil_rc_inputs_raw_message.instance_field
  11087. self._instance_offset = MAVLink_hil_rc_inputs_raw_message.instance_offset
  11088. self.time_usec = time_usec
  11089. self.chan1_raw = chan1_raw
  11090. self.chan2_raw = chan2_raw
  11091. self.chan3_raw = chan3_raw
  11092. self.chan4_raw = chan4_raw
  11093. self.chan5_raw = chan5_raw
  11094. self.chan6_raw = chan6_raw
  11095. self.chan7_raw = chan7_raw
  11096. self.chan8_raw = chan8_raw
  11097. self.chan9_raw = chan9_raw
  11098. self.chan10_raw = chan10_raw
  11099. self.chan11_raw = chan11_raw
  11100. self.chan12_raw = chan12_raw
  11101. self.rssi = rssi
  11102. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11103. 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)
  11104. # Define name on the class for backwards compatibility (it is now msgname).
  11105. # Done with setattr to hide the class variable from mypy.
  11106. setattr(MAVLink_hil_rc_inputs_raw_message, "name", mavlink_msg_deprecated_name_property())
  11107. class MAVLink_hil_actuator_controls_message(MAVLink_message):
  11108. """
  11109. Sent from autopilot to simulation. Hardware in the loop control
  11110. outputs (replacement for HIL_CONTROLS)
  11111. """
  11112. id = MAVLINK_MSG_ID_HIL_ACTUATOR_CONTROLS
  11113. msgname = "HIL_ACTUATOR_CONTROLS"
  11114. fieldnames = ["time_usec", "controls", "mode", "flags"]
  11115. ordered_fieldnames = ["time_usec", "flags", "controls", "mode"]
  11116. fieldtypes = ["uint64_t", "float", "uint8_t", "uint64_t"]
  11117. fielddisplays_by_name: Dict[str, str] = {"mode": "bitmask", "flags": "bitmask"}
  11118. fieldenums_by_name: Dict[str, str] = {"mode": "MAV_MODE_FLAG"}
  11119. fieldunits_by_name: Dict[str, str] = {"time_usec": "us"}
  11120. native_format = bytearray(b"<QQfB")
  11121. orders = [0, 2, 3, 1]
  11122. lengths = [1, 1, 16, 1]
  11123. array_lengths = [0, 0, 16, 0]
  11124. crc_extra = 47
  11125. unpacker = struct.Struct("<QQ16fB")
  11126. instance_field = None
  11127. instance_offset = -1
  11128. def __init__(self, time_usec: int, controls: Sequence[float], mode: int, flags: int):
  11129. MAVLink_message.__init__(self, MAVLink_hil_actuator_controls_message.id, MAVLink_hil_actuator_controls_message.msgname)
  11130. self._fieldnames = MAVLink_hil_actuator_controls_message.fieldnames
  11131. self._instance_field = MAVLink_hil_actuator_controls_message.instance_field
  11132. self._instance_offset = MAVLink_hil_actuator_controls_message.instance_offset
  11133. self.time_usec = time_usec
  11134. self.controls = controls
  11135. self.mode = mode
  11136. self.flags = flags
  11137. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11138. 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)
  11139. # Define name on the class for backwards compatibility (it is now msgname).
  11140. # Done with setattr to hide the class variable from mypy.
  11141. setattr(MAVLink_hil_actuator_controls_message, "name", mavlink_msg_deprecated_name_property())
  11142. class MAVLink_optical_flow_message(MAVLink_message):
  11143. """
  11144. Optical flow from a flow sensor (e.g. optical mouse sensor)
  11145. """
  11146. id = MAVLINK_MSG_ID_OPTICAL_FLOW
  11147. msgname = "OPTICAL_FLOW"
  11148. 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"]
  11149. 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"]
  11150. fieldtypes = ["uint64_t", "uint8_t", "int16_t", "int16_t", "float", "float", "uint8_t", "float", "float", "float"]
  11151. fielddisplays_by_name: Dict[str, str] = {}
  11152. fieldenums_by_name: Dict[str, str] = {}
  11153. 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"}
  11154. native_format = bytearray(b"<QfffhhBBff")
  11155. orders = [0, 6, 4, 5, 1, 2, 7, 3, 8, 9]
  11156. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  11157. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  11158. crc_extra = 175
  11159. unpacker = struct.Struct("<QfffhhBBff")
  11160. instance_field = None
  11161. instance_offset = -1
  11162. 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):
  11163. MAVLink_message.__init__(self, MAVLink_optical_flow_message.id, MAVLink_optical_flow_message.msgname)
  11164. self._fieldnames = MAVLink_optical_flow_message.fieldnames
  11165. self._instance_field = MAVLink_optical_flow_message.instance_field
  11166. self._instance_offset = MAVLink_optical_flow_message.instance_offset
  11167. self.time_usec = time_usec
  11168. self.sensor_id = sensor_id
  11169. self.flow_x = flow_x
  11170. self.flow_y = flow_y
  11171. self.flow_comp_m_x = flow_comp_m_x
  11172. self.flow_comp_m_y = flow_comp_m_y
  11173. self.quality = quality
  11174. self.ground_distance = ground_distance
  11175. self.flow_rate_x = flow_rate_x
  11176. self.flow_rate_y = flow_rate_y
  11177. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11178. 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)
  11179. # Define name on the class for backwards compatibility (it is now msgname).
  11180. # Done with setattr to hide the class variable from mypy.
  11181. setattr(MAVLink_optical_flow_message, "name", mavlink_msg_deprecated_name_property())
  11182. class MAVLink_global_vision_position_estimate_message(MAVLink_message):
  11183. """
  11184. Global position/attitude estimate from a vision source.
  11185. """
  11186. id = MAVLINK_MSG_ID_GLOBAL_VISION_POSITION_ESTIMATE
  11187. msgname = "GLOBAL_VISION_POSITION_ESTIMATE"
  11188. fieldnames = ["usec", "x", "y", "z", "roll", "pitch", "yaw", "covariance", "reset_counter"]
  11189. ordered_fieldnames = ["usec", "x", "y", "z", "roll", "pitch", "yaw", "covariance", "reset_counter"]
  11190. fieldtypes = ["uint64_t", "float", "float", "float", "float", "float", "float", "float", "uint8_t"]
  11191. fielddisplays_by_name: Dict[str, str] = {}
  11192. fieldenums_by_name: Dict[str, str] = {}
  11193. fieldunits_by_name: Dict[str, str] = {"usec": "us", "x": "m", "y": "m", "z": "m", "roll": "rad", "pitch": "rad", "yaw": "rad"}
  11194. native_format = bytearray(b"<QfffffffB")
  11195. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8]
  11196. lengths = [1, 1, 1, 1, 1, 1, 1, 21, 1]
  11197. array_lengths = [0, 0, 0, 0, 0, 0, 0, 21, 0]
  11198. crc_extra = 102
  11199. unpacker = struct.Struct("<Qffffff21fB")
  11200. instance_field = None
  11201. instance_offset = -1
  11202. 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):
  11203. MAVLink_message.__init__(self, MAVLink_global_vision_position_estimate_message.id, MAVLink_global_vision_position_estimate_message.msgname)
  11204. self._fieldnames = MAVLink_global_vision_position_estimate_message.fieldnames
  11205. self._instance_field = MAVLink_global_vision_position_estimate_message.instance_field
  11206. self._instance_offset = MAVLink_global_vision_position_estimate_message.instance_offset
  11207. self.usec = usec
  11208. self.x = x
  11209. self.y = y
  11210. self.z = z
  11211. self.roll = roll
  11212. self.pitch = pitch
  11213. self.yaw = yaw
  11214. self.covariance = covariance
  11215. self.reset_counter = reset_counter
  11216. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11217. 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)
  11218. # Define name on the class for backwards compatibility (it is now msgname).
  11219. # Done with setattr to hide the class variable from mypy.
  11220. setattr(MAVLink_global_vision_position_estimate_message, "name", mavlink_msg_deprecated_name_property())
  11221. class MAVLink_vision_position_estimate_message(MAVLink_message):
  11222. """
  11223. Local position/attitude estimate from a vision source.
  11224. """
  11225. id = MAVLINK_MSG_ID_VISION_POSITION_ESTIMATE
  11226. msgname = "VISION_POSITION_ESTIMATE"
  11227. fieldnames = ["usec", "x", "y", "z", "roll", "pitch", "yaw", "covariance", "reset_counter"]
  11228. ordered_fieldnames = ["usec", "x", "y", "z", "roll", "pitch", "yaw", "covariance", "reset_counter"]
  11229. fieldtypes = ["uint64_t", "float", "float", "float", "float", "float", "float", "float", "uint8_t"]
  11230. fielddisplays_by_name: Dict[str, str] = {}
  11231. fieldenums_by_name: Dict[str, str] = {}
  11232. fieldunits_by_name: Dict[str, str] = {"usec": "us", "x": "m", "y": "m", "z": "m", "roll": "rad", "pitch": "rad", "yaw": "rad"}
  11233. native_format = bytearray(b"<QfffffffB")
  11234. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8]
  11235. lengths = [1, 1, 1, 1, 1, 1, 1, 21, 1]
  11236. array_lengths = [0, 0, 0, 0, 0, 0, 0, 21, 0]
  11237. crc_extra = 158
  11238. unpacker = struct.Struct("<Qffffff21fB")
  11239. instance_field = None
  11240. instance_offset = -1
  11241. 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):
  11242. MAVLink_message.__init__(self, MAVLink_vision_position_estimate_message.id, MAVLink_vision_position_estimate_message.msgname)
  11243. self._fieldnames = MAVLink_vision_position_estimate_message.fieldnames
  11244. self._instance_field = MAVLink_vision_position_estimate_message.instance_field
  11245. self._instance_offset = MAVLink_vision_position_estimate_message.instance_offset
  11246. self.usec = usec
  11247. self.x = x
  11248. self.y = y
  11249. self.z = z
  11250. self.roll = roll
  11251. self.pitch = pitch
  11252. self.yaw = yaw
  11253. self.covariance = covariance
  11254. self.reset_counter = reset_counter
  11255. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11256. 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)
  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_vision_position_estimate_message, "name", mavlink_msg_deprecated_name_property())
  11260. class MAVLink_vision_speed_estimate_message(MAVLink_message):
  11261. """
  11262. Speed estimate from a vision source.
  11263. """
  11264. id = MAVLINK_MSG_ID_VISION_SPEED_ESTIMATE
  11265. msgname = "VISION_SPEED_ESTIMATE"
  11266. fieldnames = ["usec", "x", "y", "z", "covariance", "reset_counter"]
  11267. ordered_fieldnames = ["usec", "x", "y", "z", "covariance", "reset_counter"]
  11268. fieldtypes = ["uint64_t", "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/s", "y": "m/s", "z": "m/s"}
  11272. native_format = bytearray(b"<QffffB")
  11273. orders = [0, 1, 2, 3, 4, 5]
  11274. lengths = [1, 1, 1, 1, 9, 1]
  11275. array_lengths = [0, 0, 0, 0, 9, 0]
  11276. crc_extra = 208
  11277. unpacker = struct.Struct("<Qfff9fB")
  11278. instance_field = None
  11279. instance_offset = -1
  11280. 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):
  11281. MAVLink_message.__init__(self, MAVLink_vision_speed_estimate_message.id, MAVLink_vision_speed_estimate_message.msgname)
  11282. self._fieldnames = MAVLink_vision_speed_estimate_message.fieldnames
  11283. self._instance_field = MAVLink_vision_speed_estimate_message.instance_field
  11284. self._instance_offset = MAVLink_vision_speed_estimate_message.instance_offset
  11285. self.usec = usec
  11286. self.x = x
  11287. self.y = y
  11288. self.z = z
  11289. self.covariance = covariance
  11290. self.reset_counter = reset_counter
  11291. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11292. 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)
  11293. # Define name on the class for backwards compatibility (it is now msgname).
  11294. # Done with setattr to hide the class variable from mypy.
  11295. setattr(MAVLink_vision_speed_estimate_message, "name", mavlink_msg_deprecated_name_property())
  11296. class MAVLink_vicon_position_estimate_message(MAVLink_message):
  11297. """
  11298. Global position estimate from a Vicon motion system source.
  11299. """
  11300. id = MAVLINK_MSG_ID_VICON_POSITION_ESTIMATE
  11301. msgname = "VICON_POSITION_ESTIMATE"
  11302. fieldnames = ["usec", "x", "y", "z", "roll", "pitch", "yaw", "covariance"]
  11303. ordered_fieldnames = ["usec", "x", "y", "z", "roll", "pitch", "yaw", "covariance"]
  11304. fieldtypes = ["uint64_t", "float", "float", "float", "float", "float", "float", "float"]
  11305. fielddisplays_by_name: Dict[str, str] = {}
  11306. fieldenums_by_name: Dict[str, str] = {}
  11307. fieldunits_by_name: Dict[str, str] = {"usec": "us", "x": "m", "y": "m", "z": "m", "roll": "rad", "pitch": "rad", "yaw": "rad"}
  11308. native_format = bytearray(b"<Qfffffff")
  11309. orders = [0, 1, 2, 3, 4, 5, 6, 7]
  11310. lengths = [1, 1, 1, 1, 1, 1, 1, 21]
  11311. array_lengths = [0, 0, 0, 0, 0, 0, 0, 21]
  11312. crc_extra = 56
  11313. unpacker = struct.Struct("<Qffffff21f")
  11314. instance_field = None
  11315. instance_offset = -1
  11316. 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)):
  11317. MAVLink_message.__init__(self, MAVLink_vicon_position_estimate_message.id, MAVLink_vicon_position_estimate_message.msgname)
  11318. self._fieldnames = MAVLink_vicon_position_estimate_message.fieldnames
  11319. self._instance_field = MAVLink_vicon_position_estimate_message.instance_field
  11320. self._instance_offset = MAVLink_vicon_position_estimate_message.instance_offset
  11321. self.usec = usec
  11322. self.x = x
  11323. self.y = y
  11324. self.z = z
  11325. self.roll = roll
  11326. self.pitch = pitch
  11327. self.yaw = yaw
  11328. self.covariance = covariance
  11329. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11330. 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)
  11331. # Define name on the class for backwards compatibility (it is now msgname).
  11332. # Done with setattr to hide the class variable from mypy.
  11333. setattr(MAVLink_vicon_position_estimate_message, "name", mavlink_msg_deprecated_name_property())
  11334. class MAVLink_highres_imu_message(MAVLink_message):
  11335. """
  11336. The IMU readings in SI units in NED body frame
  11337. """
  11338. id = MAVLINK_MSG_ID_HIGHRES_IMU
  11339. msgname = "HIGHRES_IMU"
  11340. fieldnames = ["time_usec", "xacc", "yacc", "zacc", "xgyro", "ygyro", "zgyro", "xmag", "ymag", "zmag", "abs_pressure", "diff_pressure", "pressure_alt", "temperature", "fields_updated", "id"]
  11341. ordered_fieldnames = ["time_usec", "xacc", "yacc", "zacc", "xgyro", "ygyro", "zgyro", "xmag", "ymag", "zmag", "abs_pressure", "diff_pressure", "pressure_alt", "temperature", "fields_updated", "id"]
  11342. fieldtypes = ["uint64_t", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "uint16_t", "uint8_t"]
  11343. fielddisplays_by_name: Dict[str, str] = {"fields_updated": "bitmask"}
  11344. fieldenums_by_name: Dict[str, str] = {"fields_updated": "HIGHRES_IMU_UPDATED_FLAGS"}
  11345. 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"}
  11346. native_format = bytearray(b"<QfffffffffffffHB")
  11347. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
  11348. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  11349. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  11350. crc_extra = 93
  11351. unpacker = struct.Struct("<QfffffffffffffHB")
  11352. instance_field = "id"
  11353. instance_offset = 62
  11354. 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):
  11355. MAVLink_message.__init__(self, MAVLink_highres_imu_message.id, MAVLink_highres_imu_message.msgname)
  11356. self._fieldnames = MAVLink_highres_imu_message.fieldnames
  11357. self._instance_field = MAVLink_highres_imu_message.instance_field
  11358. self._instance_offset = MAVLink_highres_imu_message.instance_offset
  11359. self.time_usec = time_usec
  11360. self.xacc = xacc
  11361. self.yacc = yacc
  11362. self.zacc = zacc
  11363. self.xgyro = xgyro
  11364. self.ygyro = ygyro
  11365. self.zgyro = zgyro
  11366. self.xmag = xmag
  11367. self.ymag = ymag
  11368. self.zmag = zmag
  11369. self.abs_pressure = abs_pressure
  11370. self.diff_pressure = diff_pressure
  11371. self.pressure_alt = pressure_alt
  11372. self.temperature = temperature
  11373. self.fields_updated = fields_updated
  11374. self.id = id
  11375. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11376. 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)
  11377. # Define name on the class for backwards compatibility (it is now msgname).
  11378. # Done with setattr to hide the class variable from mypy.
  11379. setattr(MAVLink_highres_imu_message, "name", mavlink_msg_deprecated_name_property())
  11380. class MAVLink_optical_flow_rad_message(MAVLink_message):
  11381. """
  11382. Optical flow from an angular rate flow sensor (e.g. PX4FLOW or
  11383. mouse sensor)
  11384. """
  11385. id = MAVLINK_MSG_ID_OPTICAL_FLOW_RAD
  11386. msgname = "OPTICAL_FLOW_RAD"
  11387. 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"]
  11388. 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"]
  11389. fieldtypes = ["uint64_t", "uint8_t", "uint32_t", "float", "float", "float", "float", "float", "int16_t", "uint8_t", "uint32_t", "float"]
  11390. fielddisplays_by_name: Dict[str, str] = {}
  11391. fieldenums_by_name: Dict[str, str] = {}
  11392. 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"}
  11393. native_format = bytearray(b"<QIfffffIfhBB")
  11394. orders = [0, 10, 1, 2, 3, 4, 5, 6, 9, 11, 7, 8]
  11395. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  11396. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  11397. crc_extra = 138
  11398. unpacker = struct.Struct("<QIfffffIfhBB")
  11399. instance_field = "sensor_id"
  11400. instance_offset = 42
  11401. 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):
  11402. MAVLink_message.__init__(self, MAVLink_optical_flow_rad_message.id, MAVLink_optical_flow_rad_message.msgname)
  11403. self._fieldnames = MAVLink_optical_flow_rad_message.fieldnames
  11404. self._instance_field = MAVLink_optical_flow_rad_message.instance_field
  11405. self._instance_offset = MAVLink_optical_flow_rad_message.instance_offset
  11406. self.time_usec = time_usec
  11407. self.sensor_id = sensor_id
  11408. self.integration_time_us = integration_time_us
  11409. self.integrated_x = integrated_x
  11410. self.integrated_y = integrated_y
  11411. self.integrated_xgyro = integrated_xgyro
  11412. self.integrated_ygyro = integrated_ygyro
  11413. self.integrated_zgyro = integrated_zgyro
  11414. self.temperature = temperature
  11415. self.quality = quality
  11416. self.time_delta_distance_us = time_delta_distance_us
  11417. self.distance = distance
  11418. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11419. 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)
  11420. # Define name on the class for backwards compatibility (it is now msgname).
  11421. # Done with setattr to hide the class variable from mypy.
  11422. setattr(MAVLink_optical_flow_rad_message, "name", mavlink_msg_deprecated_name_property())
  11423. class MAVLink_hil_sensor_message(MAVLink_message):
  11424. """
  11425. The IMU readings in SI units in NED body frame
  11426. """
  11427. id = MAVLINK_MSG_ID_HIL_SENSOR
  11428. msgname = "HIL_SENSOR"
  11429. fieldnames = ["time_usec", "xacc", "yacc", "zacc", "xgyro", "ygyro", "zgyro", "xmag", "ymag", "zmag", "abs_pressure", "diff_pressure", "pressure_alt", "temperature", "fields_updated", "id"]
  11430. ordered_fieldnames = ["time_usec", "xacc", "yacc", "zacc", "xgyro", "ygyro", "zgyro", "xmag", "ymag", "zmag", "abs_pressure", "diff_pressure", "pressure_alt", "temperature", "fields_updated", "id"]
  11431. fieldtypes = ["uint64_t", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "uint32_t", "uint8_t"]
  11432. fielddisplays_by_name: Dict[str, str] = {"fields_updated": "bitmask"}
  11433. fieldenums_by_name: Dict[str, str] = {"fields_updated": "HIL_SENSOR_UPDATED_FLAGS"}
  11434. 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"}
  11435. native_format = bytearray(b"<QfffffffffffffIB")
  11436. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
  11437. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  11438. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  11439. crc_extra = 108
  11440. unpacker = struct.Struct("<QfffffffffffffIB")
  11441. instance_field = None
  11442. instance_offset = -1
  11443. 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):
  11444. MAVLink_message.__init__(self, MAVLink_hil_sensor_message.id, MAVLink_hil_sensor_message.msgname)
  11445. self._fieldnames = MAVLink_hil_sensor_message.fieldnames
  11446. self._instance_field = MAVLink_hil_sensor_message.instance_field
  11447. self._instance_offset = MAVLink_hil_sensor_message.instance_offset
  11448. self.time_usec = time_usec
  11449. self.xacc = xacc
  11450. self.yacc = yacc
  11451. self.zacc = zacc
  11452. self.xgyro = xgyro
  11453. self.ygyro = ygyro
  11454. self.zgyro = zgyro
  11455. self.xmag = xmag
  11456. self.ymag = ymag
  11457. self.zmag = zmag
  11458. self.abs_pressure = abs_pressure
  11459. self.diff_pressure = diff_pressure
  11460. self.pressure_alt = pressure_alt
  11461. self.temperature = temperature
  11462. self.fields_updated = fields_updated
  11463. self.id = id
  11464. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11465. 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)
  11466. # Define name on the class for backwards compatibility (it is now msgname).
  11467. # Done with setattr to hide the class variable from mypy.
  11468. setattr(MAVLink_hil_sensor_message, "name", mavlink_msg_deprecated_name_property())
  11469. class MAVLink_sim_state_message(MAVLink_message):
  11470. """
  11471. Status of simulation environment, if used
  11472. """
  11473. id = MAVLINK_MSG_ID_SIM_STATE
  11474. msgname = "SIM_STATE"
  11475. 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"]
  11476. 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"]
  11477. 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"]
  11478. fielddisplays_by_name: Dict[str, str] = {}
  11479. fieldenums_by_name: Dict[str, str] = {}
  11480. 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"}
  11481. native_format = bytearray(b"<fffffffffffffffffffffii")
  11482. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22]
  11483. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  11484. 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]
  11485. crc_extra = 32
  11486. unpacker = struct.Struct("<fffffffffffffffffffffii")
  11487. instance_field = None
  11488. instance_offset = -1
  11489. 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):
  11490. MAVLink_message.__init__(self, MAVLink_sim_state_message.id, MAVLink_sim_state_message.msgname)
  11491. self._fieldnames = MAVLink_sim_state_message.fieldnames
  11492. self._instance_field = MAVLink_sim_state_message.instance_field
  11493. self._instance_offset = MAVLink_sim_state_message.instance_offset
  11494. self.q1 = q1
  11495. self.q2 = q2
  11496. self.q3 = q3
  11497. self.q4 = q4
  11498. self.roll = roll
  11499. self.pitch = pitch
  11500. self.yaw = yaw
  11501. self.xacc = xacc
  11502. self.yacc = yacc
  11503. self.zacc = zacc
  11504. self.xgyro = xgyro
  11505. self.ygyro = ygyro
  11506. self.zgyro = zgyro
  11507. self.lat = lat
  11508. self.lon = lon
  11509. self.alt = alt
  11510. self.std_dev_horz = std_dev_horz
  11511. self.std_dev_vert = std_dev_vert
  11512. self.vn = vn
  11513. self.ve = ve
  11514. self.vd = vd
  11515. self.lat_int = lat_int
  11516. self.lon_int = lon_int
  11517. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11518. 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)
  11519. # Define name on the class for backwards compatibility (it is now msgname).
  11520. # Done with setattr to hide the class variable from mypy.
  11521. setattr(MAVLink_sim_state_message, "name", mavlink_msg_deprecated_name_property())
  11522. class MAVLink_radio_status_message(MAVLink_message):
  11523. """
  11524. Status generated by radio and injected into MAVLink stream.
  11525. """
  11526. id = MAVLINK_MSG_ID_RADIO_STATUS
  11527. msgname = "RADIO_STATUS"
  11528. fieldnames = ["rssi", "remrssi", "txbuf", "noise", "remnoise", "rxerrors", "fixed"]
  11529. ordered_fieldnames = ["rxerrors", "fixed", "rssi", "remrssi", "txbuf", "noise", "remnoise"]
  11530. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint16_t", "uint16_t"]
  11531. fielddisplays_by_name: Dict[str, str] = {}
  11532. fieldenums_by_name: Dict[str, str] = {}
  11533. fieldunits_by_name: Dict[str, str] = {"txbuf": "%"}
  11534. native_format = bytearray(b"<HHBBBBB")
  11535. orders = [2, 3, 4, 5, 6, 0, 1]
  11536. lengths = [1, 1, 1, 1, 1, 1, 1]
  11537. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  11538. crc_extra = 185
  11539. unpacker = struct.Struct("<HHBBBBB")
  11540. instance_field = None
  11541. instance_offset = -1
  11542. def __init__(self, rssi: int, remrssi: int, txbuf: int, noise: int, remnoise: int, rxerrors: int, fixed: int):
  11543. MAVLink_message.__init__(self, MAVLink_radio_status_message.id, MAVLink_radio_status_message.msgname)
  11544. self._fieldnames = MAVLink_radio_status_message.fieldnames
  11545. self._instance_field = MAVLink_radio_status_message.instance_field
  11546. self._instance_offset = MAVLink_radio_status_message.instance_offset
  11547. self.rssi = rssi
  11548. self.remrssi = remrssi
  11549. self.txbuf = txbuf
  11550. self.noise = noise
  11551. self.remnoise = remnoise
  11552. self.rxerrors = rxerrors
  11553. self.fixed = fixed
  11554. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11555. 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)
  11556. # Define name on the class for backwards compatibility (it is now msgname).
  11557. # Done with setattr to hide the class variable from mypy.
  11558. setattr(MAVLink_radio_status_message, "name", mavlink_msg_deprecated_name_property())
  11559. class MAVLink_file_transfer_protocol_message(MAVLink_message):
  11560. """
  11561. File transfer protocol message:
  11562. https://mavlink.io/en/services/ftp.html.
  11563. """
  11564. id = MAVLINK_MSG_ID_FILE_TRANSFER_PROTOCOL
  11565. msgname = "FILE_TRANSFER_PROTOCOL"
  11566. fieldnames = ["target_network", "target_system", "target_component", "payload"]
  11567. ordered_fieldnames = ["target_network", "target_system", "target_component", "payload"]
  11568. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t"]
  11569. fielddisplays_by_name: Dict[str, str] = {}
  11570. fieldenums_by_name: Dict[str, str] = {}
  11571. fieldunits_by_name: Dict[str, str] = {}
  11572. native_format = bytearray(b"<BBBB")
  11573. orders = [0, 1, 2, 3]
  11574. lengths = [1, 1, 1, 251]
  11575. array_lengths = [0, 0, 0, 251]
  11576. crc_extra = 84
  11577. unpacker = struct.Struct("<BBB251B")
  11578. instance_field = None
  11579. instance_offset = -1
  11580. def __init__(self, target_network: int, target_system: int, target_component: int, payload: Sequence[int]):
  11581. MAVLink_message.__init__(self, MAVLink_file_transfer_protocol_message.id, MAVLink_file_transfer_protocol_message.msgname)
  11582. self._fieldnames = MAVLink_file_transfer_protocol_message.fieldnames
  11583. self._instance_field = MAVLink_file_transfer_protocol_message.instance_field
  11584. self._instance_offset = MAVLink_file_transfer_protocol_message.instance_offset
  11585. self.target_network = target_network
  11586. self.target_system = target_system
  11587. self.target_component = target_component
  11588. self.payload = payload
  11589. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11590. 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)
  11591. # Define name on the class for backwards compatibility (it is now msgname).
  11592. # Done with setattr to hide the class variable from mypy.
  11593. setattr(MAVLink_file_transfer_protocol_message, "name", mavlink_msg_deprecated_name_property())
  11594. class MAVLink_timesync_message(MAVLink_message):
  11595. """
  11596. Time synchronization message. The message is used for both
  11597. timesync requests and responses. The request is sent with
  11598. `ts1=syncing component timestamp` and `tc1=0`, and may be
  11599. broadcast or targeted to a specific system/component. The
  11600. response is sent with `ts1=syncing component timestamp` (mirror
  11601. back unchanged), and `tc1=responding component timestamp`, with
  11602. the `target_system` and `target_component` set to ids of the
  11603. original request. Systems can determine if they are
  11604. receiving a request or response based on the value of `tc`.
  11605. If the response has `target_system==target_component==0` the
  11606. remote system has not been updated to use the component IDs and
  11607. cannot reliably timesync; the requestor may report an error.
  11608. Timestamps are UNIX Epoch time or time since system boot in
  11609. nanoseconds (the timestamp format can be inferred by checking for
  11610. the magnitude of the number; generally it doesn't matter as only
  11611. the offset is used). The message sequence is repeated
  11612. numerous times with results being filtered/averaged to estimate
  11613. the offset.
  11614. """
  11615. id = MAVLINK_MSG_ID_TIMESYNC
  11616. msgname = "TIMESYNC"
  11617. fieldnames = ["tc1", "ts1", "target_system", "target_component"]
  11618. ordered_fieldnames = ["tc1", "ts1", "target_system", "target_component"]
  11619. fieldtypes = ["int64_t", "int64_t", "uint8_t", "uint8_t"]
  11620. fielddisplays_by_name: Dict[str, str] = {}
  11621. fieldenums_by_name: Dict[str, str] = {}
  11622. fieldunits_by_name: Dict[str, str] = {"tc1": "ns", "ts1": "ns"}
  11623. native_format = bytearray(b"<qqBB")
  11624. orders = [0, 1, 2, 3]
  11625. lengths = [1, 1, 1, 1]
  11626. array_lengths = [0, 0, 0, 0]
  11627. crc_extra = 34
  11628. unpacker = struct.Struct("<qqBB")
  11629. instance_field = None
  11630. instance_offset = -1
  11631. def __init__(self, tc1: int, ts1: int, target_system: int = 0, target_component: int = 0):
  11632. MAVLink_message.__init__(self, MAVLink_timesync_message.id, MAVLink_timesync_message.msgname)
  11633. self._fieldnames = MAVLink_timesync_message.fieldnames
  11634. self._instance_field = MAVLink_timesync_message.instance_field
  11635. self._instance_offset = MAVLink_timesync_message.instance_offset
  11636. self.tc1 = tc1
  11637. self.ts1 = ts1
  11638. self.target_system = target_system
  11639. self.target_component = target_component
  11640. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11641. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.tc1, self.ts1, self.target_system, self.target_component), force_mavlink1=force_mavlink1)
  11642. # Define name on the class for backwards compatibility (it is now msgname).
  11643. # Done with setattr to hide the class variable from mypy.
  11644. setattr(MAVLink_timesync_message, "name", mavlink_msg_deprecated_name_property())
  11645. class MAVLink_camera_trigger_message(MAVLink_message):
  11646. """
  11647. Camera-IMU triggering and synchronisation message.
  11648. """
  11649. id = MAVLINK_MSG_ID_CAMERA_TRIGGER
  11650. msgname = "CAMERA_TRIGGER"
  11651. fieldnames = ["time_usec", "seq"]
  11652. ordered_fieldnames = ["time_usec", "seq"]
  11653. fieldtypes = ["uint64_t", "uint32_t"]
  11654. fielddisplays_by_name: Dict[str, str] = {}
  11655. fieldenums_by_name: Dict[str, str] = {}
  11656. fieldunits_by_name: Dict[str, str] = {"time_usec": "us"}
  11657. native_format = bytearray(b"<QI")
  11658. orders = [0, 1]
  11659. lengths = [1, 1]
  11660. array_lengths = [0, 0]
  11661. crc_extra = 174
  11662. unpacker = struct.Struct("<QI")
  11663. instance_field = None
  11664. instance_offset = -1
  11665. def __init__(self, time_usec: int, seq: int):
  11666. MAVLink_message.__init__(self, MAVLink_camera_trigger_message.id, MAVLink_camera_trigger_message.msgname)
  11667. self._fieldnames = MAVLink_camera_trigger_message.fieldnames
  11668. self._instance_field = MAVLink_camera_trigger_message.instance_field
  11669. self._instance_offset = MAVLink_camera_trigger_message.instance_offset
  11670. self.time_usec = time_usec
  11671. self.seq = seq
  11672. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11673. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_usec, self.seq), force_mavlink1=force_mavlink1)
  11674. # Define name on the class for backwards compatibility (it is now msgname).
  11675. # Done with setattr to hide the class variable from mypy.
  11676. setattr(MAVLink_camera_trigger_message, "name", mavlink_msg_deprecated_name_property())
  11677. class MAVLink_hil_gps_message(MAVLink_message):
  11678. """
  11679. The global position, as returned by the Global Positioning System
  11680. (GPS). This is NOT the global position estimate
  11681. of the system, but rather a RAW sensor value. See message
  11682. GLOBAL_POSITION_INT for the global position estimate.
  11683. """
  11684. id = MAVLINK_MSG_ID_HIL_GPS
  11685. msgname = "HIL_GPS"
  11686. fieldnames = ["time_usec", "fix_type", "lat", "lon", "alt", "eph", "epv", "vel", "vn", "ve", "vd", "cog", "satellites_visible", "id", "yaw"]
  11687. ordered_fieldnames = ["time_usec", "lat", "lon", "alt", "eph", "epv", "vel", "vn", "ve", "vd", "cog", "fix_type", "satellites_visible", "id", "yaw"]
  11688. 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"]
  11689. fielddisplays_by_name: Dict[str, str] = {}
  11690. fieldenums_by_name: Dict[str, str] = {}
  11691. 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"}
  11692. native_format = bytearray(b"<QiiiHHHhhhHBBBH")
  11693. orders = [0, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14]
  11694. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  11695. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  11696. crc_extra = 124
  11697. unpacker = struct.Struct("<QiiiHHHhhhHBBBH")
  11698. instance_field = None
  11699. instance_offset = -1
  11700. 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):
  11701. MAVLink_message.__init__(self, MAVLink_hil_gps_message.id, MAVLink_hil_gps_message.msgname)
  11702. self._fieldnames = MAVLink_hil_gps_message.fieldnames
  11703. self._instance_field = MAVLink_hil_gps_message.instance_field
  11704. self._instance_offset = MAVLink_hil_gps_message.instance_offset
  11705. self.time_usec = time_usec
  11706. self.fix_type = fix_type
  11707. self.lat = lat
  11708. self.lon = lon
  11709. self.alt = alt
  11710. self.eph = eph
  11711. self.epv = epv
  11712. self.vel = vel
  11713. self.vn = vn
  11714. self.ve = ve
  11715. self.vd = vd
  11716. self.cog = cog
  11717. self.satellites_visible = satellites_visible
  11718. self.id = id
  11719. self.yaw = yaw
  11720. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11721. 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)
  11722. # Define name on the class for backwards compatibility (it is now msgname).
  11723. # Done with setattr to hide the class variable from mypy.
  11724. setattr(MAVLink_hil_gps_message, "name", mavlink_msg_deprecated_name_property())
  11725. class MAVLink_hil_optical_flow_message(MAVLink_message):
  11726. """
  11727. Simulated optical flow from a flow sensor (e.g. PX4FLOW or optical
  11728. mouse sensor)
  11729. """
  11730. id = MAVLINK_MSG_ID_HIL_OPTICAL_FLOW
  11731. msgname = "HIL_OPTICAL_FLOW"
  11732. 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"]
  11733. 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"]
  11734. fieldtypes = ["uint64_t", "uint8_t", "uint32_t", "float", "float", "float", "float", "float", "int16_t", "uint8_t", "uint32_t", "float"]
  11735. fielddisplays_by_name: Dict[str, str] = {}
  11736. fieldenums_by_name: Dict[str, str] = {}
  11737. 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"}
  11738. native_format = bytearray(b"<QIfffffIfhBB")
  11739. orders = [0, 10, 1, 2, 3, 4, 5, 6, 9, 11, 7, 8]
  11740. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  11741. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  11742. crc_extra = 237
  11743. unpacker = struct.Struct("<QIfffffIfhBB")
  11744. instance_field = None
  11745. instance_offset = -1
  11746. 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):
  11747. MAVLink_message.__init__(self, MAVLink_hil_optical_flow_message.id, MAVLink_hil_optical_flow_message.msgname)
  11748. self._fieldnames = MAVLink_hil_optical_flow_message.fieldnames
  11749. self._instance_field = MAVLink_hil_optical_flow_message.instance_field
  11750. self._instance_offset = MAVLink_hil_optical_flow_message.instance_offset
  11751. self.time_usec = time_usec
  11752. self.sensor_id = sensor_id
  11753. self.integration_time_us = integration_time_us
  11754. self.integrated_x = integrated_x
  11755. self.integrated_y = integrated_y
  11756. self.integrated_xgyro = integrated_xgyro
  11757. self.integrated_ygyro = integrated_ygyro
  11758. self.integrated_zgyro = integrated_zgyro
  11759. self.temperature = temperature
  11760. self.quality = quality
  11761. self.time_delta_distance_us = time_delta_distance_us
  11762. self.distance = distance
  11763. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11764. 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)
  11765. # Define name on the class for backwards compatibility (it is now msgname).
  11766. # Done with setattr to hide the class variable from mypy.
  11767. setattr(MAVLink_hil_optical_flow_message, "name", mavlink_msg_deprecated_name_property())
  11768. class MAVLink_hil_state_quaternion_message(MAVLink_message):
  11769. """
  11770. Sent from simulation to autopilot, avoids in contrast to HIL_STATE
  11771. singularities. This packet is useful for high throughput
  11772. applications such as hardware in the loop simulations.
  11773. """
  11774. id = MAVLINK_MSG_ID_HIL_STATE_QUATERNION
  11775. msgname = "HIL_STATE_QUATERNION"
  11776. fieldnames = ["time_usec", "attitude_quaternion", "rollspeed", "pitchspeed", "yawspeed", "lat", "lon", "alt", "vx", "vy", "vz", "ind_airspeed", "true_airspeed", "xacc", "yacc", "zacc"]
  11777. ordered_fieldnames = ["time_usec", "attitude_quaternion", "rollspeed", "pitchspeed", "yawspeed", "lat", "lon", "alt", "vx", "vy", "vz", "ind_airspeed", "true_airspeed", "xacc", "yacc", "zacc"]
  11778. 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"]
  11779. fielddisplays_by_name: Dict[str, str] = {}
  11780. fieldenums_by_name: Dict[str, str] = {}
  11781. 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"}
  11782. native_format = bytearray(b"<QffffiiihhhHHhhh")
  11783. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
  11784. lengths = [1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  11785. array_lengths = [0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  11786. crc_extra = 4
  11787. unpacker = struct.Struct("<Q4ffffiiihhhHHhhh")
  11788. instance_field = None
  11789. instance_offset = -1
  11790. 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):
  11791. MAVLink_message.__init__(self, MAVLink_hil_state_quaternion_message.id, MAVLink_hil_state_quaternion_message.msgname)
  11792. self._fieldnames = MAVLink_hil_state_quaternion_message.fieldnames
  11793. self._instance_field = MAVLink_hil_state_quaternion_message.instance_field
  11794. self._instance_offset = MAVLink_hil_state_quaternion_message.instance_offset
  11795. self.time_usec = time_usec
  11796. self.attitude_quaternion = attitude_quaternion
  11797. self.rollspeed = rollspeed
  11798. self.pitchspeed = pitchspeed
  11799. self.yawspeed = yawspeed
  11800. self.lat = lat
  11801. self.lon = lon
  11802. self.alt = alt
  11803. self.vx = vx
  11804. self.vy = vy
  11805. self.vz = vz
  11806. self.ind_airspeed = ind_airspeed
  11807. self.true_airspeed = true_airspeed
  11808. self.xacc = xacc
  11809. self.yacc = yacc
  11810. self.zacc = zacc
  11811. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11812. 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)
  11813. # Define name on the class for backwards compatibility (it is now msgname).
  11814. # Done with setattr to hide the class variable from mypy.
  11815. setattr(MAVLink_hil_state_quaternion_message, "name", mavlink_msg_deprecated_name_property())
  11816. class MAVLink_scaled_imu2_message(MAVLink_message):
  11817. """
  11818. The RAW IMU readings for secondary 9DOF sensor setup. This message
  11819. should contain the scaled values to the described units
  11820. """
  11821. id = MAVLINK_MSG_ID_SCALED_IMU2
  11822. msgname = "SCALED_IMU2"
  11823. fieldnames = ["time_boot_ms", "xacc", "yacc", "zacc", "xgyro", "ygyro", "zgyro", "xmag", "ymag", "zmag", "temperature"]
  11824. ordered_fieldnames = ["time_boot_ms", "xacc", "yacc", "zacc", "xgyro", "ygyro", "zgyro", "xmag", "ymag", "zmag", "temperature"]
  11825. fieldtypes = ["uint32_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t"]
  11826. fielddisplays_by_name: Dict[str, str] = {}
  11827. fieldenums_by_name: Dict[str, str] = {}
  11828. 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"}
  11829. native_format = bytearray(b"<Ihhhhhhhhhh")
  11830. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
  11831. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  11832. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  11833. crc_extra = 76
  11834. unpacker = struct.Struct("<Ihhhhhhhhhh")
  11835. instance_field = None
  11836. instance_offset = -1
  11837. 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):
  11838. MAVLink_message.__init__(self, MAVLink_scaled_imu2_message.id, MAVLink_scaled_imu2_message.msgname)
  11839. self._fieldnames = MAVLink_scaled_imu2_message.fieldnames
  11840. self._instance_field = MAVLink_scaled_imu2_message.instance_field
  11841. self._instance_offset = MAVLink_scaled_imu2_message.instance_offset
  11842. self.time_boot_ms = time_boot_ms
  11843. self.xacc = xacc
  11844. self.yacc = yacc
  11845. self.zacc = zacc
  11846. self.xgyro = xgyro
  11847. self.ygyro = ygyro
  11848. self.zgyro = zgyro
  11849. self.xmag = xmag
  11850. self.ymag = ymag
  11851. self.zmag = zmag
  11852. self.temperature = temperature
  11853. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11854. 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)
  11855. # Define name on the class for backwards compatibility (it is now msgname).
  11856. # Done with setattr to hide the class variable from mypy.
  11857. setattr(MAVLink_scaled_imu2_message, "name", mavlink_msg_deprecated_name_property())
  11858. class MAVLink_log_request_list_message(MAVLink_message):
  11859. """
  11860. Request a list of available logs. On some systems calling this may
  11861. stop on-board logging until LOG_REQUEST_END is called. If there
  11862. are no log files available this request shall be answered with one
  11863. LOG_ENTRY message with id = 0 and num_logs = 0.
  11864. """
  11865. id = MAVLINK_MSG_ID_LOG_REQUEST_LIST
  11866. msgname = "LOG_REQUEST_LIST"
  11867. fieldnames = ["target_system", "target_component", "start", "end"]
  11868. ordered_fieldnames = ["start", "end", "target_system", "target_component"]
  11869. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "uint16_t"]
  11870. fielddisplays_by_name: Dict[str, str] = {}
  11871. fieldenums_by_name: Dict[str, str] = {}
  11872. fieldunits_by_name: Dict[str, str] = {}
  11873. native_format = bytearray(b"<HHBB")
  11874. orders = [2, 3, 0, 1]
  11875. lengths = [1, 1, 1, 1]
  11876. array_lengths = [0, 0, 0, 0]
  11877. crc_extra = 128
  11878. unpacker = struct.Struct("<HHBB")
  11879. instance_field = None
  11880. instance_offset = -1
  11881. def __init__(self, target_system: int, target_component: int, start: int, end: int):
  11882. MAVLink_message.__init__(self, MAVLink_log_request_list_message.id, MAVLink_log_request_list_message.msgname)
  11883. self._fieldnames = MAVLink_log_request_list_message.fieldnames
  11884. self._instance_field = MAVLink_log_request_list_message.instance_field
  11885. self._instance_offset = MAVLink_log_request_list_message.instance_offset
  11886. self.target_system = target_system
  11887. self.target_component = target_component
  11888. self.start = start
  11889. self.end = end
  11890. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11891. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.start, self.end, self.target_system, self.target_component), force_mavlink1=force_mavlink1)
  11892. # Define name on the class for backwards compatibility (it is now msgname).
  11893. # Done with setattr to hide the class variable from mypy.
  11894. setattr(MAVLink_log_request_list_message, "name", mavlink_msg_deprecated_name_property())
  11895. class MAVLink_log_entry_message(MAVLink_message):
  11896. """
  11897. Reply to LOG_REQUEST_LIST
  11898. """
  11899. id = MAVLINK_MSG_ID_LOG_ENTRY
  11900. msgname = "LOG_ENTRY"
  11901. fieldnames = ["id", "num_logs", "last_log_num", "time_utc", "size"]
  11902. ordered_fieldnames = ["time_utc", "size", "id", "num_logs", "last_log_num"]
  11903. fieldtypes = ["uint16_t", "uint16_t", "uint16_t", "uint32_t", "uint32_t"]
  11904. fielddisplays_by_name: Dict[str, str] = {}
  11905. fieldenums_by_name: Dict[str, str] = {}
  11906. fieldunits_by_name: Dict[str, str] = {"time_utc": "s", "size": "bytes"}
  11907. native_format = bytearray(b"<IIHHH")
  11908. orders = [2, 3, 4, 0, 1]
  11909. lengths = [1, 1, 1, 1, 1]
  11910. array_lengths = [0, 0, 0, 0, 0]
  11911. crc_extra = 56
  11912. unpacker = struct.Struct("<IIHHH")
  11913. instance_field = None
  11914. instance_offset = -1
  11915. def __init__(self, id: int, num_logs: int, last_log_num: int, time_utc: int, size: int):
  11916. MAVLink_message.__init__(self, MAVLink_log_entry_message.id, MAVLink_log_entry_message.msgname)
  11917. self._fieldnames = MAVLink_log_entry_message.fieldnames
  11918. self._instance_field = MAVLink_log_entry_message.instance_field
  11919. self._instance_offset = MAVLink_log_entry_message.instance_offset
  11920. self.id = id
  11921. self.num_logs = num_logs
  11922. self.last_log_num = last_log_num
  11923. self.time_utc = time_utc
  11924. self.size = size
  11925. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11926. 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)
  11927. # Define name on the class for backwards compatibility (it is now msgname).
  11928. # Done with setattr to hide the class variable from mypy.
  11929. setattr(MAVLink_log_entry_message, "name", mavlink_msg_deprecated_name_property())
  11930. class MAVLink_log_request_data_message(MAVLink_message):
  11931. """
  11932. Request a chunk of a log
  11933. """
  11934. id = MAVLINK_MSG_ID_LOG_REQUEST_DATA
  11935. msgname = "LOG_REQUEST_DATA"
  11936. fieldnames = ["target_system", "target_component", "id", "ofs", "count"]
  11937. ordered_fieldnames = ["ofs", "count", "id", "target_system", "target_component"]
  11938. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "uint32_t", "uint32_t"]
  11939. fielddisplays_by_name: Dict[str, str] = {}
  11940. fieldenums_by_name: Dict[str, str] = {}
  11941. fieldunits_by_name: Dict[str, str] = {"count": "bytes"}
  11942. native_format = bytearray(b"<IIHBB")
  11943. orders = [3, 4, 2, 0, 1]
  11944. lengths = [1, 1, 1, 1, 1]
  11945. array_lengths = [0, 0, 0, 0, 0]
  11946. crc_extra = 116
  11947. unpacker = struct.Struct("<IIHBB")
  11948. instance_field = None
  11949. instance_offset = -1
  11950. def __init__(self, target_system: int, target_component: int, id: int, ofs: int, count: int):
  11951. MAVLink_message.__init__(self, MAVLink_log_request_data_message.id, MAVLink_log_request_data_message.msgname)
  11952. self._fieldnames = MAVLink_log_request_data_message.fieldnames
  11953. self._instance_field = MAVLink_log_request_data_message.instance_field
  11954. self._instance_offset = MAVLink_log_request_data_message.instance_offset
  11955. self.target_system = target_system
  11956. self.target_component = target_component
  11957. self.id = id
  11958. self.ofs = ofs
  11959. self.count = count
  11960. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11961. 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)
  11962. # Define name on the class for backwards compatibility (it is now msgname).
  11963. # Done with setattr to hide the class variable from mypy.
  11964. setattr(MAVLink_log_request_data_message, "name", mavlink_msg_deprecated_name_property())
  11965. class MAVLink_log_data_message(MAVLink_message):
  11966. """
  11967. Reply to LOG_REQUEST_DATA
  11968. """
  11969. id = MAVLINK_MSG_ID_LOG_DATA
  11970. msgname = "LOG_DATA"
  11971. fieldnames = ["id", "ofs", "count", "data"]
  11972. ordered_fieldnames = ["ofs", "id", "count", "data"]
  11973. fieldtypes = ["uint16_t", "uint32_t", "uint8_t", "uint8_t"]
  11974. fielddisplays_by_name: Dict[str, str] = {}
  11975. fieldenums_by_name: Dict[str, str] = {}
  11976. fieldunits_by_name: Dict[str, str] = {"count": "bytes"}
  11977. native_format = bytearray(b"<IHBB")
  11978. orders = [1, 0, 2, 3]
  11979. lengths = [1, 1, 1, 90]
  11980. array_lengths = [0, 0, 0, 90]
  11981. crc_extra = 134
  11982. unpacker = struct.Struct("<IHB90B")
  11983. instance_field = None
  11984. instance_offset = -1
  11985. def __init__(self, id: int, ofs: int, count: int, data: Sequence[int]):
  11986. MAVLink_message.__init__(self, MAVLink_log_data_message.id, MAVLink_log_data_message.msgname)
  11987. self._fieldnames = MAVLink_log_data_message.fieldnames
  11988. self._instance_field = MAVLink_log_data_message.instance_field
  11989. self._instance_offset = MAVLink_log_data_message.instance_offset
  11990. self.id = id
  11991. self.ofs = ofs
  11992. self.count = count
  11993. self.data = data
  11994. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  11995. 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)
  11996. # Define name on the class for backwards compatibility (it is now msgname).
  11997. # Done with setattr to hide the class variable from mypy.
  11998. setattr(MAVLink_log_data_message, "name", mavlink_msg_deprecated_name_property())
  11999. class MAVLink_log_erase_message(MAVLink_message):
  12000. """
  12001. Erase all logs
  12002. """
  12003. id = MAVLINK_MSG_ID_LOG_ERASE
  12004. msgname = "LOG_ERASE"
  12005. fieldnames = ["target_system", "target_component"]
  12006. ordered_fieldnames = ["target_system", "target_component"]
  12007. fieldtypes = ["uint8_t", "uint8_t"]
  12008. fielddisplays_by_name: Dict[str, str] = {}
  12009. fieldenums_by_name: Dict[str, str] = {}
  12010. fieldunits_by_name: Dict[str, str] = {}
  12011. native_format = bytearray(b"<BB")
  12012. orders = [0, 1]
  12013. lengths = [1, 1]
  12014. array_lengths = [0, 0]
  12015. crc_extra = 237
  12016. unpacker = struct.Struct("<BB")
  12017. instance_field = None
  12018. instance_offset = -1
  12019. def __init__(self, target_system: int, target_component: int):
  12020. MAVLink_message.__init__(self, MAVLink_log_erase_message.id, MAVLink_log_erase_message.msgname)
  12021. self._fieldnames = MAVLink_log_erase_message.fieldnames
  12022. self._instance_field = MAVLink_log_erase_message.instance_field
  12023. self._instance_offset = MAVLink_log_erase_message.instance_offset
  12024. self.target_system = target_system
  12025. self.target_component = target_component
  12026. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12027. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.target_system, self.target_component), force_mavlink1=force_mavlink1)
  12028. # Define name on the class for backwards compatibility (it is now msgname).
  12029. # Done with setattr to hide the class variable from mypy.
  12030. setattr(MAVLink_log_erase_message, "name", mavlink_msg_deprecated_name_property())
  12031. class MAVLink_log_request_end_message(MAVLink_message):
  12032. """
  12033. Stop log transfer and resume normal logging
  12034. """
  12035. id = MAVLINK_MSG_ID_LOG_REQUEST_END
  12036. msgname = "LOG_REQUEST_END"
  12037. fieldnames = ["target_system", "target_component"]
  12038. ordered_fieldnames = ["target_system", "target_component"]
  12039. fieldtypes = ["uint8_t", "uint8_t"]
  12040. fielddisplays_by_name: Dict[str, str] = {}
  12041. fieldenums_by_name: Dict[str, str] = {}
  12042. fieldunits_by_name: Dict[str, str] = {}
  12043. native_format = bytearray(b"<BB")
  12044. orders = [0, 1]
  12045. lengths = [1, 1]
  12046. array_lengths = [0, 0]
  12047. crc_extra = 203
  12048. unpacker = struct.Struct("<BB")
  12049. instance_field = None
  12050. instance_offset = -1
  12051. def __init__(self, target_system: int, target_component: int):
  12052. MAVLink_message.__init__(self, MAVLink_log_request_end_message.id, MAVLink_log_request_end_message.msgname)
  12053. self._fieldnames = MAVLink_log_request_end_message.fieldnames
  12054. self._instance_field = MAVLink_log_request_end_message.instance_field
  12055. self._instance_offset = MAVLink_log_request_end_message.instance_offset
  12056. self.target_system = target_system
  12057. self.target_component = target_component
  12058. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12059. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.target_system, self.target_component), force_mavlink1=force_mavlink1)
  12060. # Define name on the class for backwards compatibility (it is now msgname).
  12061. # Done with setattr to hide the class variable from mypy.
  12062. setattr(MAVLink_log_request_end_message, "name", mavlink_msg_deprecated_name_property())
  12063. class MAVLink_gps_inject_data_message(MAVLink_message):
  12064. """
  12065. Data for injecting into the onboard GPS (used for DGPS)
  12066. """
  12067. id = MAVLINK_MSG_ID_GPS_INJECT_DATA
  12068. msgname = "GPS_INJECT_DATA"
  12069. fieldnames = ["target_system", "target_component", "len", "data"]
  12070. ordered_fieldnames = ["target_system", "target_component", "len", "data"]
  12071. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t"]
  12072. fielddisplays_by_name: Dict[str, str] = {}
  12073. fieldenums_by_name: Dict[str, str] = {}
  12074. fieldunits_by_name: Dict[str, str] = {"len": "bytes"}
  12075. native_format = bytearray(b"<BBBB")
  12076. orders = [0, 1, 2, 3]
  12077. lengths = [1, 1, 1, 110]
  12078. array_lengths = [0, 0, 0, 110]
  12079. crc_extra = 250
  12080. unpacker = struct.Struct("<BBB110B")
  12081. instance_field = None
  12082. instance_offset = -1
  12083. def __init__(self, target_system: int, target_component: int, len: int, data: Sequence[int]):
  12084. MAVLink_message.__init__(self, MAVLink_gps_inject_data_message.id, MAVLink_gps_inject_data_message.msgname)
  12085. self._fieldnames = MAVLink_gps_inject_data_message.fieldnames
  12086. self._instance_field = MAVLink_gps_inject_data_message.instance_field
  12087. self._instance_offset = MAVLink_gps_inject_data_message.instance_offset
  12088. self.target_system = target_system
  12089. self.target_component = target_component
  12090. self.len = len
  12091. self.data = data
  12092. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12093. 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)
  12094. # Define name on the class for backwards compatibility (it is now msgname).
  12095. # Done with setattr to hide the class variable from mypy.
  12096. setattr(MAVLink_gps_inject_data_message, "name", mavlink_msg_deprecated_name_property())
  12097. class MAVLink_gps2_raw_message(MAVLink_message):
  12098. """
  12099. Second GPS data.
  12100. """
  12101. id = MAVLINK_MSG_ID_GPS2_RAW
  12102. msgname = "GPS2_RAW"
  12103. 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"]
  12104. 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"]
  12105. 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"]
  12106. fielddisplays_by_name: Dict[str, str] = {}
  12107. fieldenums_by_name: Dict[str, str] = {"fix_type": "GPS_FIX_TYPE"}
  12108. 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"}
  12109. native_format = bytearray(b"<QiiiIHHHHBBBHiIIII")
  12110. orders = [0, 9, 1, 2, 3, 5, 6, 7, 8, 10, 11, 4, 12, 13, 14, 15, 16, 17]
  12111. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  12112. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  12113. crc_extra = 87
  12114. unpacker = struct.Struct("<QiiiIHHHHBBBHiIIII")
  12115. instance_field = None
  12116. instance_offset = -1
  12117. 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):
  12118. MAVLink_message.__init__(self, MAVLink_gps2_raw_message.id, MAVLink_gps2_raw_message.msgname)
  12119. self._fieldnames = MAVLink_gps2_raw_message.fieldnames
  12120. self._instance_field = MAVLink_gps2_raw_message.instance_field
  12121. self._instance_offset = MAVLink_gps2_raw_message.instance_offset
  12122. self.time_usec = time_usec
  12123. self.fix_type = fix_type
  12124. self.lat = lat
  12125. self.lon = lon
  12126. self.alt = alt
  12127. self.eph = eph
  12128. self.epv = epv
  12129. self.vel = vel
  12130. self.cog = cog
  12131. self.satellites_visible = satellites_visible
  12132. self.dgps_numch = dgps_numch
  12133. self.dgps_age = dgps_age
  12134. self.yaw = yaw
  12135. self.alt_ellipsoid = alt_ellipsoid
  12136. self.h_acc = h_acc
  12137. self.v_acc = v_acc
  12138. self.vel_acc = vel_acc
  12139. self.hdg_acc = hdg_acc
  12140. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12141. 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)
  12142. # Define name on the class for backwards compatibility (it is now msgname).
  12143. # Done with setattr to hide the class variable from mypy.
  12144. setattr(MAVLink_gps2_raw_message, "name", mavlink_msg_deprecated_name_property())
  12145. class MAVLink_power_status_message(MAVLink_message):
  12146. """
  12147. Power supply status
  12148. """
  12149. id = MAVLINK_MSG_ID_POWER_STATUS
  12150. msgname = "POWER_STATUS"
  12151. fieldnames = ["Vcc", "Vservo", "flags"]
  12152. ordered_fieldnames = ["Vcc", "Vservo", "flags"]
  12153. fieldtypes = ["uint16_t", "uint16_t", "uint16_t"]
  12154. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  12155. fieldenums_by_name: Dict[str, str] = {"flags": "MAV_POWER_STATUS"}
  12156. fieldunits_by_name: Dict[str, str] = {"Vcc": "mV", "Vservo": "mV"}
  12157. native_format = bytearray(b"<HHH")
  12158. orders = [0, 1, 2]
  12159. lengths = [1, 1, 1]
  12160. array_lengths = [0, 0, 0]
  12161. crc_extra = 203
  12162. unpacker = struct.Struct("<HHH")
  12163. instance_field = None
  12164. instance_offset = -1
  12165. def __init__(self, Vcc: int, Vservo: int, flags: int):
  12166. MAVLink_message.__init__(self, MAVLink_power_status_message.id, MAVLink_power_status_message.msgname)
  12167. self._fieldnames = MAVLink_power_status_message.fieldnames
  12168. self._instance_field = MAVLink_power_status_message.instance_field
  12169. self._instance_offset = MAVLink_power_status_message.instance_offset
  12170. self.Vcc = Vcc
  12171. self.Vservo = Vservo
  12172. self.flags = flags
  12173. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12174. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.Vcc, self.Vservo, self.flags), force_mavlink1=force_mavlink1)
  12175. # Define name on the class for backwards compatibility (it is now msgname).
  12176. # Done with setattr to hide the class variable from mypy.
  12177. setattr(MAVLink_power_status_message, "name", mavlink_msg_deprecated_name_property())
  12178. class MAVLink_serial_control_message(MAVLink_message):
  12179. """
  12180. Control a serial port. This can be used for raw access to an
  12181. onboard serial peripheral such as a GPS or telemetry radio. It is
  12182. designed to make it possible to update the devices firmware via
  12183. MAVLink messages or change the devices settings. A message with
  12184. zero bytes can be used to change just the baudrate.
  12185. """
  12186. id = MAVLINK_MSG_ID_SERIAL_CONTROL
  12187. msgname = "SERIAL_CONTROL"
  12188. fieldnames = ["device", "flags", "timeout", "baudrate", "count", "data", "target_system", "target_component"]
  12189. ordered_fieldnames = ["baudrate", "timeout", "device", "flags", "count", "data", "target_system", "target_component"]
  12190. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "uint32_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t"]
  12191. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  12192. fieldenums_by_name: Dict[str, str] = {"device": "SERIAL_CONTROL_DEV", "flags": "SERIAL_CONTROL_FLAG"}
  12193. fieldunits_by_name: Dict[str, str] = {"timeout": "ms", "baudrate": "bits/s", "count": "bytes"}
  12194. native_format = bytearray(b"<IHBBBBBB")
  12195. orders = [2, 3, 1, 0, 4, 5, 6, 7]
  12196. lengths = [1, 1, 1, 1, 1, 70, 1, 1]
  12197. array_lengths = [0, 0, 0, 0, 0, 70, 0, 0]
  12198. crc_extra = 220
  12199. unpacker = struct.Struct("<IHBBB70BBB")
  12200. instance_field = None
  12201. instance_offset = -1
  12202. def __init__(self, device: int, flags: int, timeout: int, baudrate: int, count: int, data: Sequence[int], target_system: int = 0, target_component: int = 0):
  12203. MAVLink_message.__init__(self, MAVLink_serial_control_message.id, MAVLink_serial_control_message.msgname)
  12204. self._fieldnames = MAVLink_serial_control_message.fieldnames
  12205. self._instance_field = MAVLink_serial_control_message.instance_field
  12206. self._instance_offset = MAVLink_serial_control_message.instance_offset
  12207. self.device = device
  12208. self.flags = flags
  12209. self.timeout = timeout
  12210. self.baudrate = baudrate
  12211. self.count = count
  12212. self.data = data
  12213. self.target_system = target_system
  12214. self.target_component = target_component
  12215. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12216. 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)
  12217. # Define name on the class for backwards compatibility (it is now msgname).
  12218. # Done with setattr to hide the class variable from mypy.
  12219. setattr(MAVLink_serial_control_message, "name", mavlink_msg_deprecated_name_property())
  12220. class MAVLink_gps_rtk_message(MAVLink_message):
  12221. """
  12222. RTK GPS data. Gives information on the relative baseline
  12223. calculation the GPS is reporting
  12224. """
  12225. id = MAVLINK_MSG_ID_GPS_RTK
  12226. msgname = "GPS_RTK"
  12227. 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"]
  12228. 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"]
  12229. 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"]
  12230. fielddisplays_by_name: Dict[str, str] = {}
  12231. fieldenums_by_name: Dict[str, str] = {"baseline_coords_type": "RTK_BASELINE_COORDINATE_SYSTEM"}
  12232. 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"}
  12233. native_format = bytearray(b"<IIiiiIiHBBBBB")
  12234. orders = [0, 8, 7, 1, 9, 10, 11, 12, 2, 3, 4, 5, 6]
  12235. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  12236. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  12237. crc_extra = 25
  12238. unpacker = struct.Struct("<IIiiiIiHBBBBB")
  12239. instance_field = None
  12240. instance_offset = -1
  12241. 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):
  12242. MAVLink_message.__init__(self, MAVLink_gps_rtk_message.id, MAVLink_gps_rtk_message.msgname)
  12243. self._fieldnames = MAVLink_gps_rtk_message.fieldnames
  12244. self._instance_field = MAVLink_gps_rtk_message.instance_field
  12245. self._instance_offset = MAVLink_gps_rtk_message.instance_offset
  12246. self.time_last_baseline_ms = time_last_baseline_ms
  12247. self.rtk_receiver_id = rtk_receiver_id
  12248. self.wn = wn
  12249. self.tow = tow
  12250. self.rtk_health = rtk_health
  12251. self.rtk_rate = rtk_rate
  12252. self.nsats = nsats
  12253. self.baseline_coords_type = baseline_coords_type
  12254. self.baseline_a_mm = baseline_a_mm
  12255. self.baseline_b_mm = baseline_b_mm
  12256. self.baseline_c_mm = baseline_c_mm
  12257. self.accuracy = accuracy
  12258. self.iar_num_hypotheses = iar_num_hypotheses
  12259. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12260. 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)
  12261. # Define name on the class for backwards compatibility (it is now msgname).
  12262. # Done with setattr to hide the class variable from mypy.
  12263. setattr(MAVLink_gps_rtk_message, "name", mavlink_msg_deprecated_name_property())
  12264. class MAVLink_gps2_rtk_message(MAVLink_message):
  12265. """
  12266. RTK GPS data. Gives information on the relative baseline
  12267. calculation the GPS is reporting
  12268. """
  12269. id = MAVLINK_MSG_ID_GPS2_RTK
  12270. msgname = "GPS2_RTK"
  12271. 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"]
  12272. 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"]
  12273. 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"]
  12274. fielddisplays_by_name: Dict[str, str] = {}
  12275. fieldenums_by_name: Dict[str, str] = {"baseline_coords_type": "RTK_BASELINE_COORDINATE_SYSTEM"}
  12276. 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"}
  12277. native_format = bytearray(b"<IIiiiIiHBBBBB")
  12278. orders = [0, 8, 7, 1, 9, 10, 11, 12, 2, 3, 4, 5, 6]
  12279. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  12280. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  12281. crc_extra = 226
  12282. unpacker = struct.Struct("<IIiiiIiHBBBBB")
  12283. instance_field = None
  12284. instance_offset = -1
  12285. 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):
  12286. MAVLink_message.__init__(self, MAVLink_gps2_rtk_message.id, MAVLink_gps2_rtk_message.msgname)
  12287. self._fieldnames = MAVLink_gps2_rtk_message.fieldnames
  12288. self._instance_field = MAVLink_gps2_rtk_message.instance_field
  12289. self._instance_offset = MAVLink_gps2_rtk_message.instance_offset
  12290. self.time_last_baseline_ms = time_last_baseline_ms
  12291. self.rtk_receiver_id = rtk_receiver_id
  12292. self.wn = wn
  12293. self.tow = tow
  12294. self.rtk_health = rtk_health
  12295. self.rtk_rate = rtk_rate
  12296. self.nsats = nsats
  12297. self.baseline_coords_type = baseline_coords_type
  12298. self.baseline_a_mm = baseline_a_mm
  12299. self.baseline_b_mm = baseline_b_mm
  12300. self.baseline_c_mm = baseline_c_mm
  12301. self.accuracy = accuracy
  12302. self.iar_num_hypotheses = iar_num_hypotheses
  12303. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12304. 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)
  12305. # Define name on the class for backwards compatibility (it is now msgname).
  12306. # Done with setattr to hide the class variable from mypy.
  12307. setattr(MAVLink_gps2_rtk_message, "name", mavlink_msg_deprecated_name_property())
  12308. class MAVLink_scaled_imu3_message(MAVLink_message):
  12309. """
  12310. The RAW IMU readings for 3rd 9DOF sensor setup. This message
  12311. should contain the scaled values to the described units
  12312. """
  12313. id = MAVLINK_MSG_ID_SCALED_IMU3
  12314. msgname = "SCALED_IMU3"
  12315. fieldnames = ["time_boot_ms", "xacc", "yacc", "zacc", "xgyro", "ygyro", "zgyro", "xmag", "ymag", "zmag", "temperature"]
  12316. ordered_fieldnames = ["time_boot_ms", "xacc", "yacc", "zacc", "xgyro", "ygyro", "zgyro", "xmag", "ymag", "zmag", "temperature"]
  12317. fieldtypes = ["uint32_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t", "int16_t"]
  12318. fielddisplays_by_name: Dict[str, str] = {}
  12319. fieldenums_by_name: Dict[str, str] = {}
  12320. 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"}
  12321. native_format = bytearray(b"<Ihhhhhhhhhh")
  12322. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
  12323. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  12324. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  12325. crc_extra = 46
  12326. unpacker = struct.Struct("<Ihhhhhhhhhh")
  12327. instance_field = None
  12328. instance_offset = -1
  12329. 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):
  12330. MAVLink_message.__init__(self, MAVLink_scaled_imu3_message.id, MAVLink_scaled_imu3_message.msgname)
  12331. self._fieldnames = MAVLink_scaled_imu3_message.fieldnames
  12332. self._instance_field = MAVLink_scaled_imu3_message.instance_field
  12333. self._instance_offset = MAVLink_scaled_imu3_message.instance_offset
  12334. self.time_boot_ms = time_boot_ms
  12335. self.xacc = xacc
  12336. self.yacc = yacc
  12337. self.zacc = zacc
  12338. self.xgyro = xgyro
  12339. self.ygyro = ygyro
  12340. self.zgyro = zgyro
  12341. self.xmag = xmag
  12342. self.ymag = ymag
  12343. self.zmag = zmag
  12344. self.temperature = temperature
  12345. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12346. 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)
  12347. # Define name on the class for backwards compatibility (it is now msgname).
  12348. # Done with setattr to hide the class variable from mypy.
  12349. setattr(MAVLink_scaled_imu3_message, "name", mavlink_msg_deprecated_name_property())
  12350. class MAVLink_data_transmission_handshake_message(MAVLink_message):
  12351. """
  12352. Handshake message to initiate, control and stop image streaming
  12353. when using the Image Transmission Protocol:
  12354. https://mavlink.io/en/services/image_transmission.html.
  12355. """
  12356. id = MAVLINK_MSG_ID_DATA_TRANSMISSION_HANDSHAKE
  12357. msgname = "DATA_TRANSMISSION_HANDSHAKE"
  12358. fieldnames = ["type", "size", "width", "height", "packets", "payload", "jpg_quality"]
  12359. ordered_fieldnames = ["size", "width", "height", "packets", "type", "payload", "jpg_quality"]
  12360. fieldtypes = ["uint8_t", "uint32_t", "uint16_t", "uint16_t", "uint16_t", "uint8_t", "uint8_t"]
  12361. fielddisplays_by_name: Dict[str, str] = {}
  12362. fieldenums_by_name: Dict[str, str] = {"type": "MAVLINK_DATA_STREAM_TYPE"}
  12363. fieldunits_by_name: Dict[str, str] = {"size": "bytes", "payload": "bytes", "jpg_quality": "%"}
  12364. native_format = bytearray(b"<IHHHBBB")
  12365. orders = [4, 0, 1, 2, 3, 5, 6]
  12366. lengths = [1, 1, 1, 1, 1, 1, 1]
  12367. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  12368. crc_extra = 29
  12369. unpacker = struct.Struct("<IHHHBBB")
  12370. instance_field = None
  12371. instance_offset = -1
  12372. def __init__(self, type: int, size: int, width: int, height: int, packets: int, payload: int, jpg_quality: int):
  12373. MAVLink_message.__init__(self, MAVLink_data_transmission_handshake_message.id, MAVLink_data_transmission_handshake_message.msgname)
  12374. self._fieldnames = MAVLink_data_transmission_handshake_message.fieldnames
  12375. self._instance_field = MAVLink_data_transmission_handshake_message.instance_field
  12376. self._instance_offset = MAVLink_data_transmission_handshake_message.instance_offset
  12377. self.type = type
  12378. self.size = size
  12379. self.width = width
  12380. self.height = height
  12381. self.packets = packets
  12382. self.payload = payload
  12383. self.jpg_quality = jpg_quality
  12384. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12385. 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)
  12386. # Define name on the class for backwards compatibility (it is now msgname).
  12387. # Done with setattr to hide the class variable from mypy.
  12388. setattr(MAVLink_data_transmission_handshake_message, "name", mavlink_msg_deprecated_name_property())
  12389. class MAVLink_encapsulated_data_message(MAVLink_message):
  12390. """
  12391. Data packet for images sent using the Image Transmission Protocol:
  12392. https://mavlink.io/en/services/image_transmission.html.
  12393. """
  12394. id = MAVLINK_MSG_ID_ENCAPSULATED_DATA
  12395. msgname = "ENCAPSULATED_DATA"
  12396. fieldnames = ["seqnr", "data"]
  12397. ordered_fieldnames = ["seqnr", "data"]
  12398. fieldtypes = ["uint16_t", "uint8_t"]
  12399. fielddisplays_by_name: Dict[str, str] = {}
  12400. fieldenums_by_name: Dict[str, str] = {}
  12401. fieldunits_by_name: Dict[str, str] = {}
  12402. native_format = bytearray(b"<HB")
  12403. orders = [0, 1]
  12404. lengths = [1, 253]
  12405. array_lengths = [0, 253]
  12406. crc_extra = 223
  12407. unpacker = struct.Struct("<H253B")
  12408. instance_field = None
  12409. instance_offset = -1
  12410. def __init__(self, seqnr: int, data: Sequence[int]):
  12411. MAVLink_message.__init__(self, MAVLink_encapsulated_data_message.id, MAVLink_encapsulated_data_message.msgname)
  12412. self._fieldnames = MAVLink_encapsulated_data_message.fieldnames
  12413. self._instance_field = MAVLink_encapsulated_data_message.instance_field
  12414. self._instance_offset = MAVLink_encapsulated_data_message.instance_offset
  12415. self.seqnr = seqnr
  12416. self.data = data
  12417. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12418. 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)
  12419. # Define name on the class for backwards compatibility (it is now msgname).
  12420. # Done with setattr to hide the class variable from mypy.
  12421. setattr(MAVLink_encapsulated_data_message, "name", mavlink_msg_deprecated_name_property())
  12422. class MAVLink_distance_sensor_message(MAVLink_message):
  12423. """
  12424. Distance sensor information for an onboard rangefinder.
  12425. """
  12426. id = MAVLINK_MSG_ID_DISTANCE_SENSOR
  12427. msgname = "DISTANCE_SENSOR"
  12428. fieldnames = ["time_boot_ms", "min_distance", "max_distance", "current_distance", "type", "id", "orientation", "covariance", "horizontal_fov", "vertical_fov", "quaternion", "signal_quality"]
  12429. ordered_fieldnames = ["time_boot_ms", "min_distance", "max_distance", "current_distance", "type", "id", "orientation", "covariance", "horizontal_fov", "vertical_fov", "quaternion", "signal_quality"]
  12430. fieldtypes = ["uint32_t", "uint16_t", "uint16_t", "uint16_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "float", "float", "float", "uint8_t"]
  12431. fielddisplays_by_name: Dict[str, str] = {}
  12432. fieldenums_by_name: Dict[str, str] = {"type": "MAV_DISTANCE_SENSOR", "orientation": "MAV_SENSOR_ORIENTATION"}
  12433. 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": "%"}
  12434. native_format = bytearray(b"<IHHHBBBBfffB")
  12435. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
  12436. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1]
  12437. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0]
  12438. crc_extra = 85
  12439. unpacker = struct.Struct("<IHHHBBBBff4fB")
  12440. instance_field = "id"
  12441. instance_offset = 11
  12442. 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):
  12443. MAVLink_message.__init__(self, MAVLink_distance_sensor_message.id, MAVLink_distance_sensor_message.msgname)
  12444. self._fieldnames = MAVLink_distance_sensor_message.fieldnames
  12445. self._instance_field = MAVLink_distance_sensor_message.instance_field
  12446. self._instance_offset = MAVLink_distance_sensor_message.instance_offset
  12447. self.time_boot_ms = time_boot_ms
  12448. self.min_distance = min_distance
  12449. self.max_distance = max_distance
  12450. self.current_distance = current_distance
  12451. self.type = type
  12452. self.id = id
  12453. self.orientation = orientation
  12454. self.covariance = covariance
  12455. self.horizontal_fov = horizontal_fov
  12456. self.vertical_fov = vertical_fov
  12457. self.quaternion = quaternion
  12458. self.signal_quality = signal_quality
  12459. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12460. 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)
  12461. # Define name on the class for backwards compatibility (it is now msgname).
  12462. # Done with setattr to hide the class variable from mypy.
  12463. setattr(MAVLink_distance_sensor_message, "name", mavlink_msg_deprecated_name_property())
  12464. class MAVLink_terrain_request_message(MAVLink_message):
  12465. """
  12466. Request for terrain data and terrain status. See terrain protocol
  12467. docs: https://mavlink.io/en/services/terrain.html
  12468. """
  12469. id = MAVLINK_MSG_ID_TERRAIN_REQUEST
  12470. msgname = "TERRAIN_REQUEST"
  12471. fieldnames = ["lat", "lon", "grid_spacing", "mask"]
  12472. ordered_fieldnames = ["mask", "lat", "lon", "grid_spacing"]
  12473. fieldtypes = ["int32_t", "int32_t", "uint16_t", "uint64_t"]
  12474. fielddisplays_by_name: Dict[str, str] = {"mask": "bitmask"}
  12475. fieldenums_by_name: Dict[str, str] = {}
  12476. fieldunits_by_name: Dict[str, str] = {"lat": "degE7", "lon": "degE7", "grid_spacing": "m"}
  12477. native_format = bytearray(b"<QiiH")
  12478. orders = [1, 2, 3, 0]
  12479. lengths = [1, 1, 1, 1]
  12480. array_lengths = [0, 0, 0, 0]
  12481. crc_extra = 6
  12482. unpacker = struct.Struct("<QiiH")
  12483. instance_field = None
  12484. instance_offset = -1
  12485. def __init__(self, lat: int, lon: int, grid_spacing: int, mask: int):
  12486. MAVLink_message.__init__(self, MAVLink_terrain_request_message.id, MAVLink_terrain_request_message.msgname)
  12487. self._fieldnames = MAVLink_terrain_request_message.fieldnames
  12488. self._instance_field = MAVLink_terrain_request_message.instance_field
  12489. self._instance_offset = MAVLink_terrain_request_message.instance_offset
  12490. self.lat = lat
  12491. self.lon = lon
  12492. self.grid_spacing = grid_spacing
  12493. self.mask = mask
  12494. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12495. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.mask, self.lat, self.lon, self.grid_spacing), force_mavlink1=force_mavlink1)
  12496. # Define name on the class for backwards compatibility (it is now msgname).
  12497. # Done with setattr to hide the class variable from mypy.
  12498. setattr(MAVLink_terrain_request_message, "name", mavlink_msg_deprecated_name_property())
  12499. class MAVLink_terrain_data_message(MAVLink_message):
  12500. """
  12501. Terrain data sent from GCS. The lat/lon and grid_spacing must be
  12502. the same as a lat/lon from a TERRAIN_REQUEST. See terrain protocol
  12503. docs: https://mavlink.io/en/services/terrain.html
  12504. """
  12505. id = MAVLINK_MSG_ID_TERRAIN_DATA
  12506. msgname = "TERRAIN_DATA"
  12507. fieldnames = ["lat", "lon", "grid_spacing", "gridbit", "data"]
  12508. ordered_fieldnames = ["lat", "lon", "grid_spacing", "data", "gridbit"]
  12509. fieldtypes = ["int32_t", "int32_t", "uint16_t", "uint8_t", "int16_t"]
  12510. fielddisplays_by_name: Dict[str, str] = {}
  12511. fieldenums_by_name: Dict[str, str] = {}
  12512. fieldunits_by_name: Dict[str, str] = {"lat": "degE7", "lon": "degE7", "grid_spacing": "m", "data": "m"}
  12513. native_format = bytearray(b"<iiHhB")
  12514. orders = [0, 1, 2, 4, 3]
  12515. lengths = [1, 1, 1, 16, 1]
  12516. array_lengths = [0, 0, 0, 16, 0]
  12517. crc_extra = 229
  12518. unpacker = struct.Struct("<iiH16hB")
  12519. instance_field = None
  12520. instance_offset = -1
  12521. def __init__(self, lat: int, lon: int, grid_spacing: int, gridbit: int, data: Sequence[int]):
  12522. MAVLink_message.__init__(self, MAVLink_terrain_data_message.id, MAVLink_terrain_data_message.msgname)
  12523. self._fieldnames = MAVLink_terrain_data_message.fieldnames
  12524. self._instance_field = MAVLink_terrain_data_message.instance_field
  12525. self._instance_offset = MAVLink_terrain_data_message.instance_offset
  12526. self.lat = lat
  12527. self.lon = lon
  12528. self.grid_spacing = grid_spacing
  12529. self.gridbit = gridbit
  12530. self.data = data
  12531. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12532. 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)
  12533. # Define name on the class for backwards compatibility (it is now msgname).
  12534. # Done with setattr to hide the class variable from mypy.
  12535. setattr(MAVLink_terrain_data_message, "name", mavlink_msg_deprecated_name_property())
  12536. class MAVLink_terrain_check_message(MAVLink_message):
  12537. """
  12538. Request that the vehicle report terrain height at the given
  12539. location (expected response is a TERRAIN_REPORT). Used by GCS to
  12540. check if vehicle has all terrain data needed for a mission.
  12541. """
  12542. id = MAVLINK_MSG_ID_TERRAIN_CHECK
  12543. msgname = "TERRAIN_CHECK"
  12544. fieldnames = ["lat", "lon"]
  12545. ordered_fieldnames = ["lat", "lon"]
  12546. fieldtypes = ["int32_t", "int32_t"]
  12547. fielddisplays_by_name: Dict[str, str] = {}
  12548. fieldenums_by_name: Dict[str, str] = {}
  12549. fieldunits_by_name: Dict[str, str] = {"lat": "degE7", "lon": "degE7"}
  12550. native_format = bytearray(b"<ii")
  12551. orders = [0, 1]
  12552. lengths = [1, 1]
  12553. array_lengths = [0, 0]
  12554. crc_extra = 203
  12555. unpacker = struct.Struct("<ii")
  12556. instance_field = None
  12557. instance_offset = -1
  12558. def __init__(self, lat: int, lon: int):
  12559. MAVLink_message.__init__(self, MAVLink_terrain_check_message.id, MAVLink_terrain_check_message.msgname)
  12560. self._fieldnames = MAVLink_terrain_check_message.fieldnames
  12561. self._instance_field = MAVLink_terrain_check_message.instance_field
  12562. self._instance_offset = MAVLink_terrain_check_message.instance_offset
  12563. self.lat = lat
  12564. self.lon = lon
  12565. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12566. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.lat, self.lon), force_mavlink1=force_mavlink1)
  12567. # Define name on the class for backwards compatibility (it is now msgname).
  12568. # Done with setattr to hide the class variable from mypy.
  12569. setattr(MAVLink_terrain_check_message, "name", mavlink_msg_deprecated_name_property())
  12570. class MAVLink_terrain_report_message(MAVLink_message):
  12571. """
  12572. Streamed from drone to report progress of terrain map download
  12573. (initiated by TERRAIN_REQUEST), or sent as a response to a
  12574. TERRAIN_CHECK request. See terrain protocol docs:
  12575. https://mavlink.io/en/services/terrain.html
  12576. """
  12577. id = MAVLINK_MSG_ID_TERRAIN_REPORT
  12578. msgname = "TERRAIN_REPORT"
  12579. fieldnames = ["lat", "lon", "spacing", "terrain_height", "current_height", "pending", "loaded"]
  12580. ordered_fieldnames = ["lat", "lon", "terrain_height", "current_height", "spacing", "pending", "loaded"]
  12581. fieldtypes = ["int32_t", "int32_t", "uint16_t", "float", "float", "uint16_t", "uint16_t"]
  12582. fielddisplays_by_name: Dict[str, str] = {}
  12583. fieldenums_by_name: Dict[str, str] = {}
  12584. fieldunits_by_name: Dict[str, str] = {"lat": "degE7", "lon": "degE7", "terrain_height": "m", "current_height": "m"}
  12585. native_format = bytearray(b"<iiffHHH")
  12586. orders = [0, 1, 4, 2, 3, 5, 6]
  12587. lengths = [1, 1, 1, 1, 1, 1, 1]
  12588. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  12589. crc_extra = 1
  12590. unpacker = struct.Struct("<iiffHHH")
  12591. instance_field = None
  12592. instance_offset = -1
  12593. def __init__(self, lat: int, lon: int, spacing: int, terrain_height: float, current_height: float, pending: int, loaded: int):
  12594. MAVLink_message.__init__(self, MAVLink_terrain_report_message.id, MAVLink_terrain_report_message.msgname)
  12595. self._fieldnames = MAVLink_terrain_report_message.fieldnames
  12596. self._instance_field = MAVLink_terrain_report_message.instance_field
  12597. self._instance_offset = MAVLink_terrain_report_message.instance_offset
  12598. self.lat = lat
  12599. self.lon = lon
  12600. self.spacing = spacing
  12601. self.terrain_height = terrain_height
  12602. self.current_height = current_height
  12603. self.pending = pending
  12604. self.loaded = loaded
  12605. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12606. 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)
  12607. # Define name on the class for backwards compatibility (it is now msgname).
  12608. # Done with setattr to hide the class variable from mypy.
  12609. setattr(MAVLink_terrain_report_message, "name", mavlink_msg_deprecated_name_property())
  12610. class MAVLink_scaled_pressure2_message(MAVLink_message):
  12611. """
  12612. Barometer readings for 2nd barometer
  12613. """
  12614. id = MAVLINK_MSG_ID_SCALED_PRESSURE2
  12615. msgname = "SCALED_PRESSURE2"
  12616. fieldnames = ["time_boot_ms", "press_abs", "press_diff", "temperature", "temperature_press_diff"]
  12617. ordered_fieldnames = ["time_boot_ms", "press_abs", "press_diff", "temperature", "temperature_press_diff"]
  12618. fieldtypes = ["uint32_t", "float", "float", "int16_t", "int16_t"]
  12619. fielddisplays_by_name: Dict[str, str] = {}
  12620. fieldenums_by_name: Dict[str, str] = {}
  12621. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "press_abs": "hPa", "press_diff": "hPa", "temperature": "cdegC", "temperature_press_diff": "cdegC"}
  12622. native_format = bytearray(b"<Iffhh")
  12623. orders = [0, 1, 2, 3, 4]
  12624. lengths = [1, 1, 1, 1, 1]
  12625. array_lengths = [0, 0, 0, 0, 0]
  12626. crc_extra = 195
  12627. unpacker = struct.Struct("<Iffhh")
  12628. instance_field = None
  12629. instance_offset = -1
  12630. def __init__(self, time_boot_ms: int, press_abs: float, press_diff: float, temperature: int, temperature_press_diff: int = 0):
  12631. MAVLink_message.__init__(self, MAVLink_scaled_pressure2_message.id, MAVLink_scaled_pressure2_message.msgname)
  12632. self._fieldnames = MAVLink_scaled_pressure2_message.fieldnames
  12633. self._instance_field = MAVLink_scaled_pressure2_message.instance_field
  12634. self._instance_offset = MAVLink_scaled_pressure2_message.instance_offset
  12635. self.time_boot_ms = time_boot_ms
  12636. self.press_abs = press_abs
  12637. self.press_diff = press_diff
  12638. self.temperature = temperature
  12639. self.temperature_press_diff = temperature_press_diff
  12640. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12641. 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)
  12642. # Define name on the class for backwards compatibility (it is now msgname).
  12643. # Done with setattr to hide the class variable from mypy.
  12644. setattr(MAVLink_scaled_pressure2_message, "name", mavlink_msg_deprecated_name_property())
  12645. class MAVLink_att_pos_mocap_message(MAVLink_message):
  12646. """
  12647. Motion capture attitude and position
  12648. """
  12649. id = MAVLINK_MSG_ID_ATT_POS_MOCAP
  12650. msgname = "ATT_POS_MOCAP"
  12651. fieldnames = ["time_usec", "q", "x", "y", "z", "covariance"]
  12652. ordered_fieldnames = ["time_usec", "q", "x", "y", "z", "covariance"]
  12653. fieldtypes = ["uint64_t", "float", "float", "float", "float", "float"]
  12654. fielddisplays_by_name: Dict[str, str] = {}
  12655. fieldenums_by_name: Dict[str, str] = {}
  12656. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "x": "m", "y": "m", "z": "m"}
  12657. native_format = bytearray(b"<Qfffff")
  12658. orders = [0, 1, 2, 3, 4, 5]
  12659. lengths = [1, 4, 1, 1, 1, 21]
  12660. array_lengths = [0, 4, 0, 0, 0, 21]
  12661. crc_extra = 109
  12662. unpacker = struct.Struct("<Q4ffff21f")
  12663. instance_field = None
  12664. instance_offset = -1
  12665. 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)):
  12666. MAVLink_message.__init__(self, MAVLink_att_pos_mocap_message.id, MAVLink_att_pos_mocap_message.msgname)
  12667. self._fieldnames = MAVLink_att_pos_mocap_message.fieldnames
  12668. self._instance_field = MAVLink_att_pos_mocap_message.instance_field
  12669. self._instance_offset = MAVLink_att_pos_mocap_message.instance_offset
  12670. self.time_usec = time_usec
  12671. self.q = q
  12672. self.x = x
  12673. self.y = y
  12674. self.z = z
  12675. self.covariance = covariance
  12676. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12677. 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)
  12678. # Define name on the class for backwards compatibility (it is now msgname).
  12679. # Done with setattr to hide the class variable from mypy.
  12680. setattr(MAVLink_att_pos_mocap_message, "name", mavlink_msg_deprecated_name_property())
  12681. class MAVLink_set_actuator_control_target_message(MAVLink_message):
  12682. """
  12683. Set the vehicle attitude and body angular rates.
  12684. """
  12685. id = MAVLINK_MSG_ID_SET_ACTUATOR_CONTROL_TARGET
  12686. msgname = "SET_ACTUATOR_CONTROL_TARGET"
  12687. fieldnames = ["time_usec", "group_mlx", "target_system", "target_component", "controls"]
  12688. ordered_fieldnames = ["time_usec", "controls", "group_mlx", "target_system", "target_component"]
  12689. fieldtypes = ["uint64_t", "uint8_t", "uint8_t", "uint8_t", "float"]
  12690. fielddisplays_by_name: Dict[str, str] = {}
  12691. fieldenums_by_name: Dict[str, str] = {}
  12692. fieldunits_by_name: Dict[str, str] = {"time_usec": "us"}
  12693. native_format = bytearray(b"<QfBBB")
  12694. orders = [0, 2, 3, 4, 1]
  12695. lengths = [1, 8, 1, 1, 1]
  12696. array_lengths = [0, 8, 0, 0, 0]
  12697. crc_extra = 168
  12698. unpacker = struct.Struct("<Q8fBBB")
  12699. instance_field = None
  12700. instance_offset = -1
  12701. def __init__(self, time_usec: int, group_mlx: int, target_system: int, target_component: int, controls: Sequence[float]):
  12702. MAVLink_message.__init__(self, MAVLink_set_actuator_control_target_message.id, MAVLink_set_actuator_control_target_message.msgname)
  12703. self._fieldnames = MAVLink_set_actuator_control_target_message.fieldnames
  12704. self._instance_field = MAVLink_set_actuator_control_target_message.instance_field
  12705. self._instance_offset = MAVLink_set_actuator_control_target_message.instance_offset
  12706. self.time_usec = time_usec
  12707. self.group_mlx = group_mlx
  12708. self.target_system = target_system
  12709. self.target_component = target_component
  12710. self.controls = controls
  12711. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12712. 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)
  12713. # Define name on the class for backwards compatibility (it is now msgname).
  12714. # Done with setattr to hide the class variable from mypy.
  12715. setattr(MAVLink_set_actuator_control_target_message, "name", mavlink_msg_deprecated_name_property())
  12716. class MAVLink_actuator_control_target_message(MAVLink_message):
  12717. """
  12718. Set the vehicle attitude and body angular rates.
  12719. """
  12720. id = MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET
  12721. msgname = "ACTUATOR_CONTROL_TARGET"
  12722. fieldnames = ["time_usec", "group_mlx", "controls"]
  12723. ordered_fieldnames = ["time_usec", "controls", "group_mlx"]
  12724. fieldtypes = ["uint64_t", "uint8_t", "float"]
  12725. fielddisplays_by_name: Dict[str, str] = {}
  12726. fieldenums_by_name: Dict[str, str] = {}
  12727. fieldunits_by_name: Dict[str, str] = {"time_usec": "us"}
  12728. native_format = bytearray(b"<QfB")
  12729. orders = [0, 2, 1]
  12730. lengths = [1, 8, 1]
  12731. array_lengths = [0, 8, 0]
  12732. crc_extra = 181
  12733. unpacker = struct.Struct("<Q8fB")
  12734. instance_field = None
  12735. instance_offset = -1
  12736. def __init__(self, time_usec: int, group_mlx: int, controls: Sequence[float]):
  12737. MAVLink_message.__init__(self, MAVLink_actuator_control_target_message.id, MAVLink_actuator_control_target_message.msgname)
  12738. self._fieldnames = MAVLink_actuator_control_target_message.fieldnames
  12739. self._instance_field = MAVLink_actuator_control_target_message.instance_field
  12740. self._instance_offset = MAVLink_actuator_control_target_message.instance_offset
  12741. self.time_usec = time_usec
  12742. self.group_mlx = group_mlx
  12743. self.controls = controls
  12744. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12745. 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)
  12746. # Define name on the class for backwards compatibility (it is now msgname).
  12747. # Done with setattr to hide the class variable from mypy.
  12748. setattr(MAVLink_actuator_control_target_message, "name", mavlink_msg_deprecated_name_property())
  12749. class MAVLink_altitude_message(MAVLink_message):
  12750. """
  12751. The current system altitude.
  12752. """
  12753. id = MAVLINK_MSG_ID_ALTITUDE
  12754. msgname = "ALTITUDE"
  12755. fieldnames = ["time_usec", "altitude_monotonic", "altitude_amsl", "altitude_local", "altitude_relative", "altitude_terrain", "bottom_clearance"]
  12756. ordered_fieldnames = ["time_usec", "altitude_monotonic", "altitude_amsl", "altitude_local", "altitude_relative", "altitude_terrain", "bottom_clearance"]
  12757. fieldtypes = ["uint64_t", "float", "float", "float", "float", "float", "float"]
  12758. fielddisplays_by_name: Dict[str, str] = {}
  12759. fieldenums_by_name: Dict[str, str] = {}
  12760. 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"}
  12761. native_format = bytearray(b"<Qffffff")
  12762. orders = [0, 1, 2, 3, 4, 5, 6]
  12763. lengths = [1, 1, 1, 1, 1, 1, 1]
  12764. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  12765. crc_extra = 47
  12766. unpacker = struct.Struct("<Qffffff")
  12767. instance_field = None
  12768. instance_offset = -1
  12769. def __init__(self, time_usec: int, altitude_monotonic: float, altitude_amsl: float, altitude_local: float, altitude_relative: float, altitude_terrain: float, bottom_clearance: float):
  12770. MAVLink_message.__init__(self, MAVLink_altitude_message.id, MAVLink_altitude_message.msgname)
  12771. self._fieldnames = MAVLink_altitude_message.fieldnames
  12772. self._instance_field = MAVLink_altitude_message.instance_field
  12773. self._instance_offset = MAVLink_altitude_message.instance_offset
  12774. self.time_usec = time_usec
  12775. self.altitude_monotonic = altitude_monotonic
  12776. self.altitude_amsl = altitude_amsl
  12777. self.altitude_local = altitude_local
  12778. self.altitude_relative = altitude_relative
  12779. self.altitude_terrain = altitude_terrain
  12780. self.bottom_clearance = bottom_clearance
  12781. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12782. 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)
  12783. # Define name on the class for backwards compatibility (it is now msgname).
  12784. # Done with setattr to hide the class variable from mypy.
  12785. setattr(MAVLink_altitude_message, "name", mavlink_msg_deprecated_name_property())
  12786. class MAVLink_resource_request_message(MAVLink_message):
  12787. """
  12788. The autopilot is requesting a resource (file, binary, other type
  12789. of data)
  12790. """
  12791. id = MAVLINK_MSG_ID_RESOURCE_REQUEST
  12792. msgname = "RESOURCE_REQUEST"
  12793. fieldnames = ["request_id", "uri_type", "uri", "transfer_type", "storage"]
  12794. ordered_fieldnames = ["request_id", "uri_type", "uri", "transfer_type", "storage"]
  12795. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t"]
  12796. fielddisplays_by_name: Dict[str, str] = {}
  12797. fieldenums_by_name: Dict[str, str] = {}
  12798. fieldunits_by_name: Dict[str, str] = {}
  12799. native_format = bytearray(b"<BBBBB")
  12800. orders = [0, 1, 2, 3, 4]
  12801. lengths = [1, 1, 120, 1, 120]
  12802. array_lengths = [0, 0, 120, 0, 120]
  12803. crc_extra = 72
  12804. unpacker = struct.Struct("<BB120BB120B")
  12805. instance_field = None
  12806. instance_offset = -1
  12807. def __init__(self, request_id: int, uri_type: int, uri: Sequence[int], transfer_type: int, storage: Sequence[int]):
  12808. MAVLink_message.__init__(self, MAVLink_resource_request_message.id, MAVLink_resource_request_message.msgname)
  12809. self._fieldnames = MAVLink_resource_request_message.fieldnames
  12810. self._instance_field = MAVLink_resource_request_message.instance_field
  12811. self._instance_offset = MAVLink_resource_request_message.instance_offset
  12812. self.request_id = request_id
  12813. self.uri_type = uri_type
  12814. self.uri = uri
  12815. self.transfer_type = transfer_type
  12816. self.storage = storage
  12817. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12818. 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)
  12819. # Define name on the class for backwards compatibility (it is now msgname).
  12820. # Done with setattr to hide the class variable from mypy.
  12821. setattr(MAVLink_resource_request_message, "name", mavlink_msg_deprecated_name_property())
  12822. class MAVLink_scaled_pressure3_message(MAVLink_message):
  12823. """
  12824. Barometer readings for 3rd barometer
  12825. """
  12826. id = MAVLINK_MSG_ID_SCALED_PRESSURE3
  12827. msgname = "SCALED_PRESSURE3"
  12828. fieldnames = ["time_boot_ms", "press_abs", "press_diff", "temperature", "temperature_press_diff"]
  12829. ordered_fieldnames = ["time_boot_ms", "press_abs", "press_diff", "temperature", "temperature_press_diff"]
  12830. fieldtypes = ["uint32_t", "float", "float", "int16_t", "int16_t"]
  12831. fielddisplays_by_name: Dict[str, str] = {}
  12832. fieldenums_by_name: Dict[str, str] = {}
  12833. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "press_abs": "hPa", "press_diff": "hPa", "temperature": "cdegC", "temperature_press_diff": "cdegC"}
  12834. native_format = bytearray(b"<Iffhh")
  12835. orders = [0, 1, 2, 3, 4]
  12836. lengths = [1, 1, 1, 1, 1]
  12837. array_lengths = [0, 0, 0, 0, 0]
  12838. crc_extra = 131
  12839. unpacker = struct.Struct("<Iffhh")
  12840. instance_field = None
  12841. instance_offset = -1
  12842. def __init__(self, time_boot_ms: int, press_abs: float, press_diff: float, temperature: int, temperature_press_diff: int = 0):
  12843. MAVLink_message.__init__(self, MAVLink_scaled_pressure3_message.id, MAVLink_scaled_pressure3_message.msgname)
  12844. self._fieldnames = MAVLink_scaled_pressure3_message.fieldnames
  12845. self._instance_field = MAVLink_scaled_pressure3_message.instance_field
  12846. self._instance_offset = MAVLink_scaled_pressure3_message.instance_offset
  12847. self.time_boot_ms = time_boot_ms
  12848. self.press_abs = press_abs
  12849. self.press_diff = press_diff
  12850. self.temperature = temperature
  12851. self.temperature_press_diff = temperature_press_diff
  12852. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12853. 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)
  12854. # Define name on the class for backwards compatibility (it is now msgname).
  12855. # Done with setattr to hide the class variable from mypy.
  12856. setattr(MAVLink_scaled_pressure3_message, "name", mavlink_msg_deprecated_name_property())
  12857. class MAVLink_follow_target_message(MAVLink_message):
  12858. """
  12859. Current motion information from a designated system
  12860. """
  12861. id = MAVLINK_MSG_ID_FOLLOW_TARGET
  12862. msgname = "FOLLOW_TARGET"
  12863. fieldnames = ["timestamp", "est_capabilities", "lat", "lon", "alt", "vel", "acc", "attitude_q", "rates", "position_cov", "custom_state"]
  12864. ordered_fieldnames = ["timestamp", "custom_state", "lat", "lon", "alt", "vel", "acc", "attitude_q", "rates", "position_cov", "est_capabilities"]
  12865. fieldtypes = ["uint64_t", "uint8_t", "int32_t", "int32_t", "float", "float", "float", "float", "float", "float", "uint64_t"]
  12866. fielddisplays_by_name: Dict[str, str] = {}
  12867. fieldenums_by_name: Dict[str, str] = {}
  12868. fieldunits_by_name: Dict[str, str] = {"timestamp": "ms", "lat": "degE7", "lon": "degE7", "alt": "m", "vel": "m/s", "acc": "m/s/s"}
  12869. native_format = bytearray(b"<QQiiffffffB")
  12870. orders = [0, 10, 2, 3, 4, 5, 6, 7, 8, 9, 1]
  12871. lengths = [1, 1, 1, 1, 1, 3, 3, 4, 3, 3, 1]
  12872. array_lengths = [0, 0, 0, 0, 0, 3, 3, 4, 3, 3, 0]
  12873. crc_extra = 127
  12874. unpacker = struct.Struct("<QQiif3f3f4f3f3fB")
  12875. instance_field = None
  12876. instance_offset = -1
  12877. 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):
  12878. MAVLink_message.__init__(self, MAVLink_follow_target_message.id, MAVLink_follow_target_message.msgname)
  12879. self._fieldnames = MAVLink_follow_target_message.fieldnames
  12880. self._instance_field = MAVLink_follow_target_message.instance_field
  12881. self._instance_offset = MAVLink_follow_target_message.instance_offset
  12882. self.timestamp = timestamp
  12883. self.est_capabilities = est_capabilities
  12884. self.lat = lat
  12885. self.lon = lon
  12886. self.alt = alt
  12887. self.vel = vel
  12888. self.acc = acc
  12889. self.attitude_q = attitude_q
  12890. self.rates = rates
  12891. self.position_cov = position_cov
  12892. self.custom_state = custom_state
  12893. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12894. 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)
  12895. # Define name on the class for backwards compatibility (it is now msgname).
  12896. # Done with setattr to hide the class variable from mypy.
  12897. setattr(MAVLink_follow_target_message, "name", mavlink_msg_deprecated_name_property())
  12898. class MAVLink_control_system_state_message(MAVLink_message):
  12899. """
  12900. The smoothed, monotonic system state used to feed the control
  12901. loops of the system.
  12902. """
  12903. id = MAVLINK_MSG_ID_CONTROL_SYSTEM_STATE
  12904. msgname = "CONTROL_SYSTEM_STATE"
  12905. 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"]
  12906. 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"]
  12907. fieldtypes = ["uint64_t", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float"]
  12908. fielddisplays_by_name: Dict[str, str] = {}
  12909. fieldenums_by_name: Dict[str, str] = {}
  12910. 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"}
  12911. native_format = bytearray(b"<Qffffffffffffffff")
  12912. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]
  12913. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 4, 1, 1, 1]
  12914. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 4, 0, 0, 0]
  12915. crc_extra = 103
  12916. unpacker = struct.Struct("<Qffffffffff3f3f4ffff")
  12917. instance_field = None
  12918. instance_offset = -1
  12919. 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):
  12920. MAVLink_message.__init__(self, MAVLink_control_system_state_message.id, MAVLink_control_system_state_message.msgname)
  12921. self._fieldnames = MAVLink_control_system_state_message.fieldnames
  12922. self._instance_field = MAVLink_control_system_state_message.instance_field
  12923. self._instance_offset = MAVLink_control_system_state_message.instance_offset
  12924. self.time_usec = time_usec
  12925. self.x_acc = x_acc
  12926. self.y_acc = y_acc
  12927. self.z_acc = z_acc
  12928. self.x_vel = x_vel
  12929. self.y_vel = y_vel
  12930. self.z_vel = z_vel
  12931. self.x_pos = x_pos
  12932. self.y_pos = y_pos
  12933. self.z_pos = z_pos
  12934. self.airspeed = airspeed
  12935. self.vel_variance = vel_variance
  12936. self.pos_variance = pos_variance
  12937. self.q = q
  12938. self.roll_rate = roll_rate
  12939. self.pitch_rate = pitch_rate
  12940. self.yaw_rate = yaw_rate
  12941. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12942. 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)
  12943. # Define name on the class for backwards compatibility (it is now msgname).
  12944. # Done with setattr to hide the class variable from mypy.
  12945. setattr(MAVLink_control_system_state_message, "name", mavlink_msg_deprecated_name_property())
  12946. class MAVLink_battery_status_message(MAVLink_message):
  12947. """
  12948. Battery information. Updates GCS with flight controller battery
  12949. status. Smart batteries also use this message, but may
  12950. additionally send BATTERY_INFO.
  12951. """
  12952. id = MAVLINK_MSG_ID_BATTERY_STATUS
  12953. msgname = "BATTERY_STATUS"
  12954. fieldnames = ["id", "battery_function", "type", "temperature", "voltages", "current_battery", "current_consumed", "energy_consumed", "battery_remaining", "time_remaining", "charge_state", "voltages_ext", "mode", "fault_bitmask"]
  12955. 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"]
  12956. 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"]
  12957. fielddisplays_by_name: Dict[str, str] = {"fault_bitmask": "bitmask"}
  12958. 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"}
  12959. 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"}
  12960. native_format = bytearray(b"<iihHhBBBbiBHBI")
  12961. orders = [5, 6, 7, 2, 3, 4, 0, 1, 8, 9, 10, 11, 12, 13]
  12962. lengths = [1, 1, 1, 10, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1]
  12963. array_lengths = [0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0]
  12964. crc_extra = 154
  12965. unpacker = struct.Struct("<iih10HhBBBbiB4HBI")
  12966. instance_field = "id"
  12967. instance_offset = 32
  12968. 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):
  12969. MAVLink_message.__init__(self, MAVLink_battery_status_message.id, MAVLink_battery_status_message.msgname)
  12970. self._fieldnames = MAVLink_battery_status_message.fieldnames
  12971. self._instance_field = MAVLink_battery_status_message.instance_field
  12972. self._instance_offset = MAVLink_battery_status_message.instance_offset
  12973. self.id = id
  12974. self.battery_function = battery_function
  12975. self.type = type
  12976. self.temperature = temperature
  12977. self.voltages = voltages
  12978. self.current_battery = current_battery
  12979. self.current_consumed = current_consumed
  12980. self.energy_consumed = energy_consumed
  12981. self.battery_remaining = battery_remaining
  12982. self.time_remaining = time_remaining
  12983. self.charge_state = charge_state
  12984. self.voltages_ext = voltages_ext
  12985. self.mode = mode
  12986. self.fault_bitmask = fault_bitmask
  12987. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  12988. 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)
  12989. # Define name on the class for backwards compatibility (it is now msgname).
  12990. # Done with setattr to hide the class variable from mypy.
  12991. setattr(MAVLink_battery_status_message, "name", mavlink_msg_deprecated_name_property())
  12992. class MAVLink_autopilot_version_message(MAVLink_message):
  12993. """
  12994. Version and capability of autopilot software. This should be
  12995. emitted in response to a request with MAV_CMD_REQUEST_MESSAGE.
  12996. """
  12997. id = MAVLINK_MSG_ID_AUTOPILOT_VERSION
  12998. msgname = "AUTOPILOT_VERSION"
  12999. 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"]
  13000. 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"]
  13001. 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"]
  13002. fielddisplays_by_name: Dict[str, str] = {"capabilities": "bitmask"}
  13003. fieldenums_by_name: Dict[str, str] = {"capabilities": "MAV_PROTOCOL_CAPABILITY"}
  13004. fieldunits_by_name: Dict[str, str] = {}
  13005. native_format = bytearray(b"<QQIIIIHHBBBB")
  13006. orders = [0, 2, 3, 4, 5, 8, 9, 10, 6, 7, 1, 11]
  13007. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 8, 8, 8, 18]
  13008. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 8, 8, 8, 18]
  13009. crc_extra = 178
  13010. unpacker = struct.Struct("<QQIIIIHH8B8B8B18B")
  13011. instance_field = None
  13012. instance_offset = -1
  13013. 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)):
  13014. MAVLink_message.__init__(self, MAVLink_autopilot_version_message.id, MAVLink_autopilot_version_message.msgname)
  13015. self._fieldnames = MAVLink_autopilot_version_message.fieldnames
  13016. self._instance_field = MAVLink_autopilot_version_message.instance_field
  13017. self._instance_offset = MAVLink_autopilot_version_message.instance_offset
  13018. self.capabilities = capabilities
  13019. self.flight_sw_version = flight_sw_version
  13020. self.middleware_sw_version = middleware_sw_version
  13021. self.os_sw_version = os_sw_version
  13022. self.board_version = board_version
  13023. self.flight_custom_version = flight_custom_version
  13024. self.middleware_custom_version = middleware_custom_version
  13025. self.os_custom_version = os_custom_version
  13026. self.vendor_id = vendor_id
  13027. self.product_id = product_id
  13028. self.uid = uid
  13029. self.uid2 = uid2
  13030. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13031. 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)
  13032. # Define name on the class for backwards compatibility (it is now msgname).
  13033. # Done with setattr to hide the class variable from mypy.
  13034. setattr(MAVLink_autopilot_version_message, "name", mavlink_msg_deprecated_name_property())
  13035. class MAVLink_landing_target_message(MAVLink_message):
  13036. """
  13037. The location of a landing target. See:
  13038. https://mavlink.io/en/services/landing_target.html
  13039. """
  13040. id = MAVLINK_MSG_ID_LANDING_TARGET
  13041. msgname = "LANDING_TARGET"
  13042. fieldnames = ["time_usec", "target_num", "frame", "angle_x", "angle_y", "distance", "size_x", "size_y", "x", "y", "z", "q", "type", "position_valid"]
  13043. ordered_fieldnames = ["time_usec", "angle_x", "angle_y", "distance", "size_x", "size_y", "target_num", "frame", "x", "y", "z", "q", "type", "position_valid"]
  13044. fieldtypes = ["uint64_t", "uint8_t", "uint8_t", "float", "float", "float", "float", "float", "float", "float", "float", "float", "uint8_t", "uint8_t"]
  13045. fielddisplays_by_name: Dict[str, str] = {}
  13046. fieldenums_by_name: Dict[str, str] = {"frame": "MAV_FRAME", "type": "LANDING_TARGET_TYPE"}
  13047. 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"}
  13048. native_format = bytearray(b"<QfffffBBffffBB")
  13049. orders = [0, 6, 7, 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 13]
  13050. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1]
  13051. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0]
  13052. crc_extra = 200
  13053. unpacker = struct.Struct("<QfffffBBfff4fBB")
  13054. instance_field = None
  13055. instance_offset = -1
  13056. 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):
  13057. MAVLink_message.__init__(self, MAVLink_landing_target_message.id, MAVLink_landing_target_message.msgname)
  13058. self._fieldnames = MAVLink_landing_target_message.fieldnames
  13059. self._instance_field = MAVLink_landing_target_message.instance_field
  13060. self._instance_offset = MAVLink_landing_target_message.instance_offset
  13061. self.time_usec = time_usec
  13062. self.target_num = target_num
  13063. self.frame = frame
  13064. self.angle_x = angle_x
  13065. self.angle_y = angle_y
  13066. self.distance = distance
  13067. self.size_x = size_x
  13068. self.size_y = size_y
  13069. self.x = x
  13070. self.y = y
  13071. self.z = z
  13072. self.q = q
  13073. self.type = type
  13074. self.position_valid = position_valid
  13075. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13076. 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)
  13077. # Define name on the class for backwards compatibility (it is now msgname).
  13078. # Done with setattr to hide the class variable from mypy.
  13079. setattr(MAVLink_landing_target_message, "name", mavlink_msg_deprecated_name_property())
  13080. class MAVLink_fence_status_message(MAVLink_message):
  13081. """
  13082. Status of geo-fencing. Sent in extended status stream when fencing
  13083. enabled.
  13084. """
  13085. id = MAVLINK_MSG_ID_FENCE_STATUS
  13086. msgname = "FENCE_STATUS"
  13087. fieldnames = ["breach_status", "breach_count", "breach_type", "breach_time", "breach_mitigation"]
  13088. ordered_fieldnames = ["breach_time", "breach_count", "breach_status", "breach_type", "breach_mitigation"]
  13089. fieldtypes = ["uint8_t", "uint16_t", "uint8_t", "uint32_t", "uint8_t"]
  13090. fielddisplays_by_name: Dict[str, str] = {}
  13091. fieldenums_by_name: Dict[str, str] = {"breach_type": "FENCE_BREACH", "breach_mitigation": "FENCE_MITIGATE"}
  13092. fieldunits_by_name: Dict[str, str] = {"breach_time": "ms"}
  13093. native_format = bytearray(b"<IHBBB")
  13094. orders = [2, 1, 3, 0, 4]
  13095. lengths = [1, 1, 1, 1, 1]
  13096. array_lengths = [0, 0, 0, 0, 0]
  13097. crc_extra = 189
  13098. unpacker = struct.Struct("<IHBBB")
  13099. instance_field = None
  13100. instance_offset = -1
  13101. def __init__(self, breach_status: int, breach_count: int, breach_type: int, breach_time: int, breach_mitigation: int = 0):
  13102. MAVLink_message.__init__(self, MAVLink_fence_status_message.id, MAVLink_fence_status_message.msgname)
  13103. self._fieldnames = MAVLink_fence_status_message.fieldnames
  13104. self._instance_field = MAVLink_fence_status_message.instance_field
  13105. self._instance_offset = MAVLink_fence_status_message.instance_offset
  13106. self.breach_status = breach_status
  13107. self.breach_count = breach_count
  13108. self.breach_type = breach_type
  13109. self.breach_time = breach_time
  13110. self.breach_mitigation = breach_mitigation
  13111. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13112. 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)
  13113. # Define name on the class for backwards compatibility (it is now msgname).
  13114. # Done with setattr to hide the class variable from mypy.
  13115. setattr(MAVLink_fence_status_message, "name", mavlink_msg_deprecated_name_property())
  13116. class MAVLink_mag_cal_report_message(MAVLink_message):
  13117. """
  13118. Reports results of completed compass calibration. Sent until
  13119. MAG_CAL_ACK received.
  13120. """
  13121. id = MAVLINK_MSG_ID_MAG_CAL_REPORT
  13122. msgname = "MAG_CAL_REPORT"
  13123. 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"]
  13124. 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"]
  13125. 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"]
  13126. fielddisplays_by_name: Dict[str, str] = {"cal_mask": "bitmask"}
  13127. fieldenums_by_name: Dict[str, str] = {"cal_status": "MAG_CAL_STATUS", "old_orientation": "MAV_SENSOR_ORIENTATION", "new_orientation": "MAV_SENSOR_ORIENTATION"}
  13128. fieldunits_by_name: Dict[str, str] = {"fitness": "mgauss"}
  13129. native_format = bytearray(b"<ffffffffffBBBBfBBf")
  13130. orders = [10, 11, 12, 13, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 14, 15, 16, 17]
  13131. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  13132. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  13133. crc_extra = 36
  13134. unpacker = struct.Struct("<ffffffffffBBBBfBBf")
  13135. instance_field = "compass_id"
  13136. instance_offset = 40
  13137. 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):
  13138. MAVLink_message.__init__(self, MAVLink_mag_cal_report_message.id, MAVLink_mag_cal_report_message.msgname)
  13139. self._fieldnames = MAVLink_mag_cal_report_message.fieldnames
  13140. self._instance_field = MAVLink_mag_cal_report_message.instance_field
  13141. self._instance_offset = MAVLink_mag_cal_report_message.instance_offset
  13142. self.compass_id = compass_id
  13143. self.cal_mask = cal_mask
  13144. self.cal_status = cal_status
  13145. self.autosaved = autosaved
  13146. self.fitness = fitness
  13147. self.ofs_x = ofs_x
  13148. self.ofs_y = ofs_y
  13149. self.ofs_z = ofs_z
  13150. self.diag_x = diag_x
  13151. self.diag_y = diag_y
  13152. self.diag_z = diag_z
  13153. self.offdiag_x = offdiag_x
  13154. self.offdiag_y = offdiag_y
  13155. self.offdiag_z = offdiag_z
  13156. self.orientation_confidence = orientation_confidence
  13157. self.old_orientation = old_orientation
  13158. self.new_orientation = new_orientation
  13159. self.scale_factor = scale_factor
  13160. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13161. 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)
  13162. # Define name on the class for backwards compatibility (it is now msgname).
  13163. # Done with setattr to hide the class variable from mypy.
  13164. setattr(MAVLink_mag_cal_report_message, "name", mavlink_msg_deprecated_name_property())
  13165. class MAVLink_efi_status_message(MAVLink_message):
  13166. """
  13167. EFI status output
  13168. """
  13169. id = MAVLINK_MSG_ID_EFI_STATUS
  13170. msgname = "EFI_STATUS"
  13171. 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"]
  13172. 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"]
  13173. fieldtypes = ["uint8_t", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float"]
  13174. fielddisplays_by_name: Dict[str, str] = {}
  13175. fieldenums_by_name: Dict[str, str] = {}
  13176. 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"}
  13177. native_format = bytearray(b"<ffffffffffffffffBff")
  13178. orders = [16, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 18]
  13179. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  13180. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  13181. crc_extra = 208
  13182. unpacker = struct.Struct("<ffffffffffffffffBff")
  13183. instance_field = None
  13184. instance_offset = -1
  13185. 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):
  13186. MAVLink_message.__init__(self, MAVLink_efi_status_message.id, MAVLink_efi_status_message.msgname)
  13187. self._fieldnames = MAVLink_efi_status_message.fieldnames
  13188. self._instance_field = MAVLink_efi_status_message.instance_field
  13189. self._instance_offset = MAVLink_efi_status_message.instance_offset
  13190. self.health = health
  13191. self.ecu_index = ecu_index
  13192. self.rpm = rpm
  13193. self.fuel_consumed = fuel_consumed
  13194. self.fuel_flow = fuel_flow
  13195. self.engine_load = engine_load
  13196. self.throttle_position = throttle_position
  13197. self.spark_dwell_time = spark_dwell_time
  13198. self.barometric_pressure = barometric_pressure
  13199. self.intake_manifold_pressure = intake_manifold_pressure
  13200. self.intake_manifold_temperature = intake_manifold_temperature
  13201. self.cylinder_head_temperature = cylinder_head_temperature
  13202. self.ignition_timing = ignition_timing
  13203. self.injection_time = injection_time
  13204. self.exhaust_gas_temperature = exhaust_gas_temperature
  13205. self.throttle_out = throttle_out
  13206. self.pt_compensation = pt_compensation
  13207. self.ignition_voltage = ignition_voltage
  13208. self.fuel_pressure = fuel_pressure
  13209. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13210. 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)
  13211. # Define name on the class for backwards compatibility (it is now msgname).
  13212. # Done with setattr to hide the class variable from mypy.
  13213. setattr(MAVLink_efi_status_message, "name", mavlink_msg_deprecated_name_property())
  13214. class MAVLink_estimator_status_message(MAVLink_message):
  13215. """
  13216. Estimator status message including flags, innovation test ratios
  13217. and estimated accuracies. The flags message is an integer bitmask
  13218. containing information on which EKF outputs are valid. See the
  13219. ESTIMATOR_STATUS_FLAGS enum definition for further information.
  13220. The innovation test ratios show the magnitude of the sensor
  13221. innovation divided by the innovation check threshold. Under normal
  13222. operation the innovation test ratios should be below 0.5 with
  13223. occasional values up to 1.0. Values greater than 1.0 should be
  13224. rare under normal operation and indicate that a measurement has
  13225. been rejected by the filter. The user should be notified if an
  13226. innovation test ratio greater than 1.0 is recorded. Notifications
  13227. for values in the range between 0.5 and 1.0 should be optional and
  13228. controllable by the user.
  13229. """
  13230. id = MAVLINK_MSG_ID_ESTIMATOR_STATUS
  13231. msgname = "ESTIMATOR_STATUS"
  13232. fieldnames = ["time_usec", "flags", "vel_ratio", "pos_horiz_ratio", "pos_vert_ratio", "mag_ratio", "hagl_ratio", "tas_ratio", "pos_horiz_accuracy", "pos_vert_accuracy"]
  13233. 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"]
  13234. fieldtypes = ["uint64_t", "uint16_t", "float", "float", "float", "float", "float", "float", "float", "float"]
  13235. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  13236. fieldenums_by_name: Dict[str, str] = {"flags": "ESTIMATOR_STATUS_FLAGS"}
  13237. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "pos_horiz_accuracy": "m", "pos_vert_accuracy": "m"}
  13238. native_format = bytearray(b"<QffffffffH")
  13239. orders = [0, 9, 1, 2, 3, 4, 5, 6, 7, 8]
  13240. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  13241. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  13242. crc_extra = 163
  13243. unpacker = struct.Struct("<QffffffffH")
  13244. instance_field = None
  13245. instance_offset = -1
  13246. 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):
  13247. MAVLink_message.__init__(self, MAVLink_estimator_status_message.id, MAVLink_estimator_status_message.msgname)
  13248. self._fieldnames = MAVLink_estimator_status_message.fieldnames
  13249. self._instance_field = MAVLink_estimator_status_message.instance_field
  13250. self._instance_offset = MAVLink_estimator_status_message.instance_offset
  13251. self.time_usec = time_usec
  13252. self.flags = flags
  13253. self.vel_ratio = vel_ratio
  13254. self.pos_horiz_ratio = pos_horiz_ratio
  13255. self.pos_vert_ratio = pos_vert_ratio
  13256. self.mag_ratio = mag_ratio
  13257. self.hagl_ratio = hagl_ratio
  13258. self.tas_ratio = tas_ratio
  13259. self.pos_horiz_accuracy = pos_horiz_accuracy
  13260. self.pos_vert_accuracy = pos_vert_accuracy
  13261. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13262. 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)
  13263. # Define name on the class for backwards compatibility (it is now msgname).
  13264. # Done with setattr to hide the class variable from mypy.
  13265. setattr(MAVLink_estimator_status_message, "name", mavlink_msg_deprecated_name_property())
  13266. class MAVLink_wind_cov_message(MAVLink_message):
  13267. """
  13268. Wind estimate from vehicle. Note that despite the name, this
  13269. message does not actually contain any covariances but instead
  13270. variability and accuracy fields in terms of standard deviation
  13271. (1-STD).
  13272. """
  13273. id = MAVLINK_MSG_ID_WIND_COV
  13274. msgname = "WIND_COV"
  13275. fieldnames = ["time_usec", "wind_x", "wind_y", "wind_z", "var_horiz", "var_vert", "wind_alt", "horiz_accuracy", "vert_accuracy"]
  13276. ordered_fieldnames = ["time_usec", "wind_x", "wind_y", "wind_z", "var_horiz", "var_vert", "wind_alt", "horiz_accuracy", "vert_accuracy"]
  13277. fieldtypes = ["uint64_t", "float", "float", "float", "float", "float", "float", "float", "float"]
  13278. fielddisplays_by_name: Dict[str, str] = {}
  13279. fieldenums_by_name: Dict[str, str] = {}
  13280. 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"}
  13281. native_format = bytearray(b"<Qffffffff")
  13282. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8]
  13283. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1]
  13284. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0]
  13285. crc_extra = 105
  13286. unpacker = struct.Struct("<Qffffffff")
  13287. instance_field = None
  13288. instance_offset = -1
  13289. 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):
  13290. MAVLink_message.__init__(self, MAVLink_wind_cov_message.id, MAVLink_wind_cov_message.msgname)
  13291. self._fieldnames = MAVLink_wind_cov_message.fieldnames
  13292. self._instance_field = MAVLink_wind_cov_message.instance_field
  13293. self._instance_offset = MAVLink_wind_cov_message.instance_offset
  13294. self.time_usec = time_usec
  13295. self.wind_x = wind_x
  13296. self.wind_y = wind_y
  13297. self.wind_z = wind_z
  13298. self.var_horiz = var_horiz
  13299. self.var_vert = var_vert
  13300. self.wind_alt = wind_alt
  13301. self.horiz_accuracy = horiz_accuracy
  13302. self.vert_accuracy = vert_accuracy
  13303. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13304. 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)
  13305. # Define name on the class for backwards compatibility (it is now msgname).
  13306. # Done with setattr to hide the class variable from mypy.
  13307. setattr(MAVLink_wind_cov_message, "name", mavlink_msg_deprecated_name_property())
  13308. class MAVLink_gps_input_message(MAVLink_message):
  13309. """
  13310. GPS sensor input message. This is a raw sensor value sent by the
  13311. GPS. This is NOT the global position estimate of the system.
  13312. """
  13313. id = MAVLINK_MSG_ID_GPS_INPUT
  13314. msgname = "GPS_INPUT"
  13315. 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"]
  13316. 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"]
  13317. 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"]
  13318. fielddisplays_by_name: Dict[str, str] = {"ignore_flags": "bitmask"}
  13319. fieldenums_by_name: Dict[str, str] = {"ignore_flags": "GPS_INPUT_IGNORE_FLAGS"}
  13320. 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"}
  13321. native_format = bytearray(b"<QIiifffffffffHHBBBH")
  13322. orders = [0, 15, 13, 1, 14, 16, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 17, 18]
  13323. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  13324. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  13325. crc_extra = 151
  13326. unpacker = struct.Struct("<QIiifffffffffHHBBBH")
  13327. instance_field = "gps_id"
  13328. instance_offset = 60
  13329. 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):
  13330. MAVLink_message.__init__(self, MAVLink_gps_input_message.id, MAVLink_gps_input_message.msgname)
  13331. self._fieldnames = MAVLink_gps_input_message.fieldnames
  13332. self._instance_field = MAVLink_gps_input_message.instance_field
  13333. self._instance_offset = MAVLink_gps_input_message.instance_offset
  13334. self.time_usec = time_usec
  13335. self.gps_id = gps_id
  13336. self.ignore_flags = ignore_flags
  13337. self.time_week_ms = time_week_ms
  13338. self.time_week = time_week
  13339. self.fix_type = fix_type
  13340. self.lat = lat
  13341. self.lon = lon
  13342. self.alt = alt
  13343. self.hdop = hdop
  13344. self.vdop = vdop
  13345. self.vn = vn
  13346. self.ve = ve
  13347. self.vd = vd
  13348. self.speed_accuracy = speed_accuracy
  13349. self.horiz_accuracy = horiz_accuracy
  13350. self.vert_accuracy = vert_accuracy
  13351. self.satellites_visible = satellites_visible
  13352. self.yaw = yaw
  13353. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13354. 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)
  13355. # Define name on the class for backwards compatibility (it is now msgname).
  13356. # Done with setattr to hide the class variable from mypy.
  13357. setattr(MAVLink_gps_input_message, "name", mavlink_msg_deprecated_name_property())
  13358. class MAVLink_gps_rtcm_data_message(MAVLink_message):
  13359. """
  13360. RTCM message for injecting into the onboard GPS (used for DGPS)
  13361. """
  13362. id = MAVLINK_MSG_ID_GPS_RTCM_DATA
  13363. msgname = "GPS_RTCM_DATA"
  13364. fieldnames = ["flags", "len", "data"]
  13365. ordered_fieldnames = ["flags", "len", "data"]
  13366. fieldtypes = ["uint8_t", "uint8_t", "uint8_t"]
  13367. fielddisplays_by_name: Dict[str, str] = {}
  13368. fieldenums_by_name: Dict[str, str] = {}
  13369. fieldunits_by_name: Dict[str, str] = {"len": "bytes"}
  13370. native_format = bytearray(b"<BBB")
  13371. orders = [0, 1, 2]
  13372. lengths = [1, 1, 180]
  13373. array_lengths = [0, 0, 180]
  13374. crc_extra = 35
  13375. unpacker = struct.Struct("<BB180B")
  13376. instance_field = None
  13377. instance_offset = -1
  13378. def __init__(self, flags: int, len: int, data: Sequence[int]):
  13379. MAVLink_message.__init__(self, MAVLink_gps_rtcm_data_message.id, MAVLink_gps_rtcm_data_message.msgname)
  13380. self._fieldnames = MAVLink_gps_rtcm_data_message.fieldnames
  13381. self._instance_field = MAVLink_gps_rtcm_data_message.instance_field
  13382. self._instance_offset = MAVLink_gps_rtcm_data_message.instance_offset
  13383. self.flags = flags
  13384. self.len = len
  13385. self.data = data
  13386. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13387. 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)
  13388. # Define name on the class for backwards compatibility (it is now msgname).
  13389. # Done with setattr to hide the class variable from mypy.
  13390. setattr(MAVLink_gps_rtcm_data_message, "name", mavlink_msg_deprecated_name_property())
  13391. class MAVLink_high_latency_message(MAVLink_message):
  13392. """
  13393. Message appropriate for high latency connections like Iridium
  13394. """
  13395. id = MAVLINK_MSG_ID_HIGH_LATENCY
  13396. msgname = "HIGH_LATENCY"
  13397. 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"]
  13398. 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"]
  13399. 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"]
  13400. fielddisplays_by_name: Dict[str, str] = {"base_mode": "bitmask", "custom_mode": "bitmask"}
  13401. fieldenums_by_name: Dict[str, str] = {"base_mode": "MAV_MODE_FLAG", "landed_state": "MAV_LANDED_STATE", "gps_fix_type": "GPS_FIX_TYPE"}
  13402. 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"}
  13403. native_format = bytearray(b"<IiihhHhhhHBBbBBBbBBBbbBB")
  13404. 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]
  13405. 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]
  13406. 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]
  13407. crc_extra = 150
  13408. unpacker = struct.Struct("<IiihhHhhhHBBbBBBbBBBbbBB")
  13409. instance_field = None
  13410. instance_offset = -1
  13411. 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):
  13412. MAVLink_message.__init__(self, MAVLink_high_latency_message.id, MAVLink_high_latency_message.msgname)
  13413. self._fieldnames = MAVLink_high_latency_message.fieldnames
  13414. self._instance_field = MAVLink_high_latency_message.instance_field
  13415. self._instance_offset = MAVLink_high_latency_message.instance_offset
  13416. self.base_mode = base_mode
  13417. self.custom_mode = custom_mode
  13418. self.landed_state = landed_state
  13419. self.roll = roll
  13420. self.pitch = pitch
  13421. self.heading = heading
  13422. self.throttle = throttle
  13423. self.heading_sp = heading_sp
  13424. self.latitude = latitude
  13425. self.longitude = longitude
  13426. self.altitude_amsl = altitude_amsl
  13427. self.altitude_sp = altitude_sp
  13428. self.airspeed = airspeed
  13429. self.airspeed_sp = airspeed_sp
  13430. self.groundspeed = groundspeed
  13431. self.climb_rate = climb_rate
  13432. self.gps_nsat = gps_nsat
  13433. self.gps_fix_type = gps_fix_type
  13434. self.battery_remaining = battery_remaining
  13435. self.temperature = temperature
  13436. self.temperature_air = temperature_air
  13437. self.failsafe = failsafe
  13438. self.wp_num = wp_num
  13439. self.wp_distance = wp_distance
  13440. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13441. 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)
  13442. # Define name on the class for backwards compatibility (it is now msgname).
  13443. # Done with setattr to hide the class variable from mypy.
  13444. setattr(MAVLink_high_latency_message, "name", mavlink_msg_deprecated_name_property())
  13445. class MAVLink_high_latency2_message(MAVLink_message):
  13446. """
  13447. Message appropriate for high latency connections like Iridium
  13448. (version 2)
  13449. """
  13450. id = MAVLINK_MSG_ID_HIGH_LATENCY2
  13451. msgname = "HIGH_LATENCY2"
  13452. 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"]
  13453. 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"]
  13454. 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"]
  13455. fielddisplays_by_name: Dict[str, str] = {"custom_mode": "bitmask", "failure_flags": "bitmask"}
  13456. fieldenums_by_name: Dict[str, str] = {"type": "MAV_TYPE", "autopilot": "MAV_AUTOPILOT", "failure_flags": "HL_FAILURE_FLAG"}
  13457. 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": "%"}
  13458. native_format = bytearray(b"<IiiHhhHHHBBBBBBBBBBBBbbbbbb")
  13459. 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]
  13460. 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]
  13461. 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]
  13462. crc_extra = 179
  13463. unpacker = struct.Struct("<IiiHhhHHHBBBBBBBBBBBBbbbbbb")
  13464. instance_field = None
  13465. instance_offset = -1
  13466. 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):
  13467. MAVLink_message.__init__(self, MAVLink_high_latency2_message.id, MAVLink_high_latency2_message.msgname)
  13468. self._fieldnames = MAVLink_high_latency2_message.fieldnames
  13469. self._instance_field = MAVLink_high_latency2_message.instance_field
  13470. self._instance_offset = MAVLink_high_latency2_message.instance_offset
  13471. self.timestamp = timestamp
  13472. self.type = type
  13473. self.autopilot = autopilot
  13474. self.custom_mode = custom_mode
  13475. self.latitude = latitude
  13476. self.longitude = longitude
  13477. self.altitude = altitude
  13478. self.target_altitude = target_altitude
  13479. self.heading = heading
  13480. self.target_heading = target_heading
  13481. self.target_distance = target_distance
  13482. self.throttle = throttle
  13483. self.airspeed = airspeed
  13484. self.airspeed_sp = airspeed_sp
  13485. self.groundspeed = groundspeed
  13486. self.windspeed = windspeed
  13487. self.wind_heading = wind_heading
  13488. self.eph = eph
  13489. self.epv = epv
  13490. self.temperature_air = temperature_air
  13491. self.climb_rate = climb_rate
  13492. self.battery = battery
  13493. self.wp_num = wp_num
  13494. self.failure_flags = failure_flags
  13495. self.custom0 = custom0
  13496. self.custom1 = custom1
  13497. self.custom2 = custom2
  13498. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13499. 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)
  13500. # Define name on the class for backwards compatibility (it is now msgname).
  13501. # Done with setattr to hide the class variable from mypy.
  13502. setattr(MAVLink_high_latency2_message, "name", mavlink_msg_deprecated_name_property())
  13503. class MAVLink_vibration_message(MAVLink_message):
  13504. """
  13505. Vibration levels and accelerometer clipping
  13506. """
  13507. id = MAVLINK_MSG_ID_VIBRATION
  13508. msgname = "VIBRATION"
  13509. fieldnames = ["time_usec", "vibration_x", "vibration_y", "vibration_z", "clipping_0", "clipping_1", "clipping_2"]
  13510. ordered_fieldnames = ["time_usec", "vibration_x", "vibration_y", "vibration_z", "clipping_0", "clipping_1", "clipping_2"]
  13511. fieldtypes = ["uint64_t", "float", "float", "float", "uint32_t", "uint32_t", "uint32_t"]
  13512. fielddisplays_by_name: Dict[str, str] = {}
  13513. fieldenums_by_name: Dict[str, str] = {}
  13514. fieldunits_by_name: Dict[str, str] = {"time_usec": "us"}
  13515. native_format = bytearray(b"<QfffIII")
  13516. orders = [0, 1, 2, 3, 4, 5, 6]
  13517. lengths = [1, 1, 1, 1, 1, 1, 1]
  13518. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  13519. crc_extra = 90
  13520. unpacker = struct.Struct("<QfffIII")
  13521. instance_field = None
  13522. instance_offset = -1
  13523. def __init__(self, time_usec: int, vibration_x: float, vibration_y: float, vibration_z: float, clipping_0: int, clipping_1: int, clipping_2: int):
  13524. MAVLink_message.__init__(self, MAVLink_vibration_message.id, MAVLink_vibration_message.msgname)
  13525. self._fieldnames = MAVLink_vibration_message.fieldnames
  13526. self._instance_field = MAVLink_vibration_message.instance_field
  13527. self._instance_offset = MAVLink_vibration_message.instance_offset
  13528. self.time_usec = time_usec
  13529. self.vibration_x = vibration_x
  13530. self.vibration_y = vibration_y
  13531. self.vibration_z = vibration_z
  13532. self.clipping_0 = clipping_0
  13533. self.clipping_1 = clipping_1
  13534. self.clipping_2 = clipping_2
  13535. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13536. 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)
  13537. # Define name on the class for backwards compatibility (it is now msgname).
  13538. # Done with setattr to hide the class variable from mypy.
  13539. setattr(MAVLink_vibration_message, "name", mavlink_msg_deprecated_name_property())
  13540. class MAVLink_home_position_message(MAVLink_message):
  13541. """
  13542. Contains the home position. The home position is the
  13543. default position that the system will return to and land on.
  13544. The position must be set automatically by the system during the
  13545. takeoff, and may also be explicitly set using MAV_CMD_DO_SET_HOME.
  13546. The global and local positions encode the position in the
  13547. respective coordinate frames, while the q parameter encodes the
  13548. orientation of the surface. Under normal conditions it
  13549. describes the heading and terrain slope, which can be used by the
  13550. aircraft to adjust the approach. The approach 3D vector
  13551. describes the point to which the system should fly in normal
  13552. flight mode and then perform a landing sequence along the vector.
  13553. Note: this message can be requested by sending the
  13554. MAV_CMD_REQUEST_MESSAGE with param1=242 (or the deprecated
  13555. MAV_CMD_GET_HOME_POSITION command).
  13556. """
  13557. id = MAVLINK_MSG_ID_HOME_POSITION
  13558. msgname = "HOME_POSITION"
  13559. fieldnames = ["latitude", "longitude", "altitude", "x", "y", "z", "q", "approach_x", "approach_y", "approach_z", "time_usec"]
  13560. ordered_fieldnames = ["latitude", "longitude", "altitude", "x", "y", "z", "q", "approach_x", "approach_y", "approach_z", "time_usec"]
  13561. fieldtypes = ["int32_t", "int32_t", "int32_t", "float", "float", "float", "float", "float", "float", "float", "uint64_t"]
  13562. fielddisplays_by_name: Dict[str, str] = {}
  13563. fieldenums_by_name: Dict[str, str] = {}
  13564. 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"}
  13565. native_format = bytearray(b"<iiifffffffQ")
  13566. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
  13567. lengths = [1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1]
  13568. array_lengths = [0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0]
  13569. crc_extra = 104
  13570. unpacker = struct.Struct("<iiifff4ffffQ")
  13571. instance_field = None
  13572. instance_offset = -1
  13573. 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):
  13574. MAVLink_message.__init__(self, MAVLink_home_position_message.id, MAVLink_home_position_message.msgname)
  13575. self._fieldnames = MAVLink_home_position_message.fieldnames
  13576. self._instance_field = MAVLink_home_position_message.instance_field
  13577. self._instance_offset = MAVLink_home_position_message.instance_offset
  13578. self.latitude = latitude
  13579. self.longitude = longitude
  13580. self.altitude = altitude
  13581. self.x = x
  13582. self.y = y
  13583. self.z = z
  13584. self.q = q
  13585. self.approach_x = approach_x
  13586. self.approach_y = approach_y
  13587. self.approach_z = approach_z
  13588. self.time_usec = time_usec
  13589. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13590. 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)
  13591. # Define name on the class for backwards compatibility (it is now msgname).
  13592. # Done with setattr to hide the class variable from mypy.
  13593. setattr(MAVLink_home_position_message, "name", mavlink_msg_deprecated_name_property())
  13594. class MAVLink_set_home_position_message(MAVLink_message):
  13595. """
  13596. Sets the home position. The home position is the default
  13597. position that the system will return to and land on. The
  13598. position is set automatically by the system during the takeoff
  13599. (and may also be set using this message). The global and
  13600. local positions encode the position in the respective coordinate
  13601. frames, while the q parameter encodes the orientation of the
  13602. surface. Under normal conditions it describes the heading
  13603. and terrain slope, which can be used by the aircraft to adjust the
  13604. approach. The approach 3D vector describes the point to
  13605. which the system should fly in normal flight mode and then perform
  13606. a landing sequence along the vector. Note: the current
  13607. home position may be emitted in a HOME_POSITION message on request
  13608. (using MAV_CMD_REQUEST_MESSAGE with param1=242).
  13609. """
  13610. id = MAVLINK_MSG_ID_SET_HOME_POSITION
  13611. msgname = "SET_HOME_POSITION"
  13612. fieldnames = ["target_system", "latitude", "longitude", "altitude", "x", "y", "z", "q", "approach_x", "approach_y", "approach_z", "time_usec"]
  13613. ordered_fieldnames = ["latitude", "longitude", "altitude", "x", "y", "z", "q", "approach_x", "approach_y", "approach_z", "target_system", "time_usec"]
  13614. fieldtypes = ["uint8_t", "int32_t", "int32_t", "int32_t", "float", "float", "float", "float", "float", "float", "float", "uint64_t"]
  13615. fielddisplays_by_name: Dict[str, str] = {}
  13616. fieldenums_by_name: Dict[str, str] = {}
  13617. 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"}
  13618. native_format = bytearray(b"<iiifffffffBQ")
  13619. orders = [10, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11]
  13620. lengths = [1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1]
  13621. array_lengths = [0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0]
  13622. crc_extra = 85
  13623. unpacker = struct.Struct("<iiifff4ffffBQ")
  13624. instance_field = None
  13625. instance_offset = -1
  13626. 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):
  13627. MAVLink_message.__init__(self, MAVLink_set_home_position_message.id, MAVLink_set_home_position_message.msgname)
  13628. self._fieldnames = MAVLink_set_home_position_message.fieldnames
  13629. self._instance_field = MAVLink_set_home_position_message.instance_field
  13630. self._instance_offset = MAVLink_set_home_position_message.instance_offset
  13631. self.target_system = target_system
  13632. self.latitude = latitude
  13633. self.longitude = longitude
  13634. self.altitude = altitude
  13635. self.x = x
  13636. self.y = y
  13637. self.z = z
  13638. self.q = q
  13639. self.approach_x = approach_x
  13640. self.approach_y = approach_y
  13641. self.approach_z = approach_z
  13642. self.time_usec = time_usec
  13643. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13644. 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)
  13645. # Define name on the class for backwards compatibility (it is now msgname).
  13646. # Done with setattr to hide the class variable from mypy.
  13647. setattr(MAVLink_set_home_position_message, "name", mavlink_msg_deprecated_name_property())
  13648. class MAVLink_message_interval_message(MAVLink_message):
  13649. """
  13650. The interval between messages for a particular MAVLink message ID.
  13651. This message is sent in response to the MAV_CMD_REQUEST_MESSAGE
  13652. command with param1=244 (this message) and param2=message_id (the
  13653. id of the message for which the interval is required). It
  13654. may also be sent in response to MAV_CMD_GET_MESSAGE_INTERVAL.
  13655. This interface replaces DATA_STREAM.
  13656. """
  13657. id = MAVLINK_MSG_ID_MESSAGE_INTERVAL
  13658. msgname = "MESSAGE_INTERVAL"
  13659. fieldnames = ["message_id", "interval_us"]
  13660. ordered_fieldnames = ["interval_us", "message_id"]
  13661. fieldtypes = ["uint16_t", "int32_t"]
  13662. fielddisplays_by_name: Dict[str, str] = {}
  13663. fieldenums_by_name: Dict[str, str] = {}
  13664. fieldunits_by_name: Dict[str, str] = {"interval_us": "us"}
  13665. native_format = bytearray(b"<iH")
  13666. orders = [1, 0]
  13667. lengths = [1, 1]
  13668. array_lengths = [0, 0]
  13669. crc_extra = 95
  13670. unpacker = struct.Struct("<iH")
  13671. instance_field = None
  13672. instance_offset = -1
  13673. def __init__(self, message_id: int, interval_us: int):
  13674. MAVLink_message.__init__(self, MAVLink_message_interval_message.id, MAVLink_message_interval_message.msgname)
  13675. self._fieldnames = MAVLink_message_interval_message.fieldnames
  13676. self._instance_field = MAVLink_message_interval_message.instance_field
  13677. self._instance_offset = MAVLink_message_interval_message.instance_offset
  13678. self.message_id = message_id
  13679. self.interval_us = interval_us
  13680. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13681. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.interval_us, self.message_id), force_mavlink1=force_mavlink1)
  13682. # Define name on the class for backwards compatibility (it is now msgname).
  13683. # Done with setattr to hide the class variable from mypy.
  13684. setattr(MAVLink_message_interval_message, "name", mavlink_msg_deprecated_name_property())
  13685. class MAVLink_extended_sys_state_message(MAVLink_message):
  13686. """
  13687. Provides state for additional features
  13688. """
  13689. id = MAVLINK_MSG_ID_EXTENDED_SYS_STATE
  13690. msgname = "EXTENDED_SYS_STATE"
  13691. fieldnames = ["vtol_state", "landed_state"]
  13692. ordered_fieldnames = ["vtol_state", "landed_state"]
  13693. fieldtypes = ["uint8_t", "uint8_t"]
  13694. fielddisplays_by_name: Dict[str, str] = {}
  13695. fieldenums_by_name: Dict[str, str] = {"vtol_state": "MAV_VTOL_STATE", "landed_state": "MAV_LANDED_STATE"}
  13696. fieldunits_by_name: Dict[str, str] = {}
  13697. native_format = bytearray(b"<BB")
  13698. orders = [0, 1]
  13699. lengths = [1, 1]
  13700. array_lengths = [0, 0]
  13701. crc_extra = 130
  13702. unpacker = struct.Struct("<BB")
  13703. instance_field = None
  13704. instance_offset = -1
  13705. def __init__(self, vtol_state: int, landed_state: int):
  13706. MAVLink_message.__init__(self, MAVLink_extended_sys_state_message.id, MAVLink_extended_sys_state_message.msgname)
  13707. self._fieldnames = MAVLink_extended_sys_state_message.fieldnames
  13708. self._instance_field = MAVLink_extended_sys_state_message.instance_field
  13709. self._instance_offset = MAVLink_extended_sys_state_message.instance_offset
  13710. self.vtol_state = vtol_state
  13711. self.landed_state = landed_state
  13712. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13713. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.vtol_state, self.landed_state), force_mavlink1=force_mavlink1)
  13714. # Define name on the class for backwards compatibility (it is now msgname).
  13715. # Done with setattr to hide the class variable from mypy.
  13716. setattr(MAVLink_extended_sys_state_message, "name", mavlink_msg_deprecated_name_property())
  13717. class MAVLink_adsb_vehicle_message(MAVLink_message):
  13718. """
  13719. The location and information of an ADSB vehicle
  13720. """
  13721. id = MAVLINK_MSG_ID_ADSB_VEHICLE
  13722. msgname = "ADSB_VEHICLE"
  13723. fieldnames = ["ICAO_address", "lat", "lon", "altitude_type", "altitude", "heading", "hor_velocity", "ver_velocity", "callsign", "emitter_type", "tslc", "flags", "squawk"]
  13724. ordered_fieldnames = ["ICAO_address", "lat", "lon", "altitude", "heading", "hor_velocity", "ver_velocity", "flags", "squawk", "altitude_type", "callsign", "emitter_type", "tslc"]
  13725. 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"]
  13726. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  13727. fieldenums_by_name: Dict[str, str] = {"altitude_type": "ADSB_ALTITUDE_TYPE", "emitter_type": "ADSB_EMITTER_TYPE", "flags": "ADSB_FLAGS"}
  13728. fieldunits_by_name: Dict[str, str] = {"lat": "degE7", "lon": "degE7", "altitude": "mm", "heading": "cdeg", "hor_velocity": "cm/s", "ver_velocity": "cm/s", "tslc": "s"}
  13729. native_format = bytearray(b"<IiiiHHhHHBcBB")
  13730. orders = [0, 1, 2, 9, 3, 4, 5, 6, 10, 11, 12, 7, 8]
  13731. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  13732. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0]
  13733. crc_extra = 184
  13734. unpacker = struct.Struct("<IiiiHHhHHB9sBB")
  13735. instance_field = None
  13736. instance_offset = -1
  13737. 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):
  13738. MAVLink_message.__init__(self, MAVLink_adsb_vehicle_message.id, MAVLink_adsb_vehicle_message.msgname)
  13739. self._fieldnames = MAVLink_adsb_vehicle_message.fieldnames
  13740. self._instance_field = MAVLink_adsb_vehicle_message.instance_field
  13741. self._instance_offset = MAVLink_adsb_vehicle_message.instance_offset
  13742. self.ICAO_address = ICAO_address
  13743. self.lat = lat
  13744. self.lon = lon
  13745. self.altitude_type = altitude_type
  13746. self.altitude = altitude
  13747. self.heading = heading
  13748. self.hor_velocity = hor_velocity
  13749. self.ver_velocity = ver_velocity
  13750. self._callsign_raw = callsign
  13751. self.callsign = callsign.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  13752. self.emitter_type = emitter_type
  13753. self.tslc = tslc
  13754. self.flags = flags
  13755. self.squawk = squawk
  13756. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13757. 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)
  13758. # Define name on the class for backwards compatibility (it is now msgname).
  13759. # Done with setattr to hide the class variable from mypy.
  13760. setattr(MAVLink_adsb_vehicle_message, "name", mavlink_msg_deprecated_name_property())
  13761. class MAVLink_collision_message(MAVLink_message):
  13762. """
  13763. Information about a potential collision
  13764. """
  13765. id = MAVLINK_MSG_ID_COLLISION
  13766. msgname = "COLLISION"
  13767. fieldnames = ["src", "id", "action", "threat_level", "time_to_minimum_delta", "altitude_minimum_delta", "horizontal_minimum_delta"]
  13768. ordered_fieldnames = ["id", "time_to_minimum_delta", "altitude_minimum_delta", "horizontal_minimum_delta", "src", "action", "threat_level"]
  13769. fieldtypes = ["uint8_t", "uint32_t", "uint8_t", "uint8_t", "float", "float", "float"]
  13770. fielddisplays_by_name: Dict[str, str] = {}
  13771. fieldenums_by_name: Dict[str, str] = {"src": "MAV_COLLISION_SRC", "action": "MAV_COLLISION_ACTION", "threat_level": "MAV_COLLISION_THREAT_LEVEL"}
  13772. fieldunits_by_name: Dict[str, str] = {"time_to_minimum_delta": "s", "altitude_minimum_delta": "m", "horizontal_minimum_delta": "m"}
  13773. native_format = bytearray(b"<IfffBBB")
  13774. orders = [4, 0, 5, 6, 1, 2, 3]
  13775. lengths = [1, 1, 1, 1, 1, 1, 1]
  13776. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  13777. crc_extra = 81
  13778. unpacker = struct.Struct("<IfffBBB")
  13779. instance_field = None
  13780. instance_offset = -1
  13781. 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):
  13782. MAVLink_message.__init__(self, MAVLink_collision_message.id, MAVLink_collision_message.msgname)
  13783. self._fieldnames = MAVLink_collision_message.fieldnames
  13784. self._instance_field = MAVLink_collision_message.instance_field
  13785. self._instance_offset = MAVLink_collision_message.instance_offset
  13786. self.src = src
  13787. self.id = id
  13788. self.action = action
  13789. self.threat_level = threat_level
  13790. self.time_to_minimum_delta = time_to_minimum_delta
  13791. self.altitude_minimum_delta = altitude_minimum_delta
  13792. self.horizontal_minimum_delta = horizontal_minimum_delta
  13793. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13794. 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)
  13795. # Define name on the class for backwards compatibility (it is now msgname).
  13796. # Done with setattr to hide the class variable from mypy.
  13797. setattr(MAVLink_collision_message, "name", mavlink_msg_deprecated_name_property())
  13798. class MAVLink_v2_extension_message(MAVLink_message):
  13799. """
  13800. Message implementing parts of the V2 payload specs in V1 frames
  13801. for transitional support.
  13802. """
  13803. id = MAVLINK_MSG_ID_V2_EXTENSION
  13804. msgname = "V2_EXTENSION"
  13805. fieldnames = ["target_network", "target_system", "target_component", "message_type", "payload"]
  13806. ordered_fieldnames = ["message_type", "target_network", "target_system", "target_component", "payload"]
  13807. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint16_t", "uint8_t"]
  13808. fielddisplays_by_name: Dict[str, str] = {}
  13809. fieldenums_by_name: Dict[str, str] = {}
  13810. fieldunits_by_name: Dict[str, str] = {}
  13811. native_format = bytearray(b"<HBBBB")
  13812. orders = [1, 2, 3, 0, 4]
  13813. lengths = [1, 1, 1, 1, 249]
  13814. array_lengths = [0, 0, 0, 0, 249]
  13815. crc_extra = 8
  13816. unpacker = struct.Struct("<HBBB249B")
  13817. instance_field = None
  13818. instance_offset = -1
  13819. def __init__(self, target_network: int, target_system: int, target_component: int, message_type: int, payload: Sequence[int]):
  13820. MAVLink_message.__init__(self, MAVLink_v2_extension_message.id, MAVLink_v2_extension_message.msgname)
  13821. self._fieldnames = MAVLink_v2_extension_message.fieldnames
  13822. self._instance_field = MAVLink_v2_extension_message.instance_field
  13823. self._instance_offset = MAVLink_v2_extension_message.instance_offset
  13824. self.target_network = target_network
  13825. self.target_system = target_system
  13826. self.target_component = target_component
  13827. self.message_type = message_type
  13828. self.payload = payload
  13829. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13830. 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)
  13831. # Define name on the class for backwards compatibility (it is now msgname).
  13832. # Done with setattr to hide the class variable from mypy.
  13833. setattr(MAVLink_v2_extension_message, "name", mavlink_msg_deprecated_name_property())
  13834. class MAVLink_memory_vect_message(MAVLink_message):
  13835. """
  13836. Send raw controller memory. The use of this message is discouraged
  13837. for normal packets, but a quite efficient way for testing new
  13838. messages and getting experimental debug output.
  13839. """
  13840. id = MAVLINK_MSG_ID_MEMORY_VECT
  13841. msgname = "MEMORY_VECT"
  13842. fieldnames = ["address", "ver", "type", "value"]
  13843. ordered_fieldnames = ["address", "ver", "type", "value"]
  13844. fieldtypes = ["uint16_t", "uint8_t", "uint8_t", "int8_t"]
  13845. fielddisplays_by_name: Dict[str, str] = {}
  13846. fieldenums_by_name: Dict[str, str] = {}
  13847. fieldunits_by_name: Dict[str, str] = {}
  13848. native_format = bytearray(b"<HBBb")
  13849. orders = [0, 1, 2, 3]
  13850. lengths = [1, 1, 1, 32]
  13851. array_lengths = [0, 0, 0, 32]
  13852. crc_extra = 204
  13853. unpacker = struct.Struct("<HBB32b")
  13854. instance_field = None
  13855. instance_offset = -1
  13856. def __init__(self, address: int, ver: int, type: int, value: Sequence[int]):
  13857. MAVLink_message.__init__(self, MAVLink_memory_vect_message.id, MAVLink_memory_vect_message.msgname)
  13858. self._fieldnames = MAVLink_memory_vect_message.fieldnames
  13859. self._instance_field = MAVLink_memory_vect_message.instance_field
  13860. self._instance_offset = MAVLink_memory_vect_message.instance_offset
  13861. self.address = address
  13862. self.ver = ver
  13863. self.type = type
  13864. self.value = value
  13865. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13866. 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)
  13867. # Define name on the class for backwards compatibility (it is now msgname).
  13868. # Done with setattr to hide the class variable from mypy.
  13869. setattr(MAVLink_memory_vect_message, "name", mavlink_msg_deprecated_name_property())
  13870. class MAVLink_debug_vect_message(MAVLink_message):
  13871. """
  13872. To debug something using a named 3D vector.
  13873. """
  13874. id = MAVLINK_MSG_ID_DEBUG_VECT
  13875. msgname = "DEBUG_VECT"
  13876. fieldnames = ["name", "time_usec", "x", "y", "z"]
  13877. ordered_fieldnames = ["time_usec", "x", "y", "z", "name"]
  13878. fieldtypes = ["char", "uint64_t", "float", "float", "float"]
  13879. fielddisplays_by_name: Dict[str, str] = {}
  13880. fieldenums_by_name: Dict[str, str] = {}
  13881. fieldunits_by_name: Dict[str, str] = {"time_usec": "us"}
  13882. native_format = bytearray(b"<Qfffc")
  13883. orders = [4, 0, 1, 2, 3]
  13884. lengths = [1, 1, 1, 1, 1]
  13885. array_lengths = [0, 0, 0, 0, 10]
  13886. crc_extra = 49
  13887. unpacker = struct.Struct("<Qfff10s")
  13888. instance_field = "name"
  13889. instance_offset = 20
  13890. def __init__(self, name: bytes, time_usec: int, x: float, y: float, z: float):
  13891. MAVLink_message.__init__(self, MAVLink_debug_vect_message.id, MAVLink_debug_vect_message.msgname)
  13892. self._fieldnames = MAVLink_debug_vect_message.fieldnames
  13893. self._instance_field = MAVLink_debug_vect_message.instance_field
  13894. self._instance_offset = MAVLink_debug_vect_message.instance_offset
  13895. self._name_raw = name
  13896. self.name = name.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  13897. self.time_usec = time_usec
  13898. self.x = x
  13899. self.y = y
  13900. self.z = z
  13901. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13902. 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)
  13903. # Define name on the class for backwards compatibility (it is now msgname).
  13904. # Done with setattr to hide the class variable from mypy.
  13905. setattr(MAVLink_debug_vect_message, "name", mavlink_msg_deprecated_name_property())
  13906. class MAVLink_named_value_float_message(MAVLink_message):
  13907. """
  13908. Send a key-value pair as float. The use of this message is
  13909. discouraged for normal packets, but a quite efficient way for
  13910. testing new messages and getting experimental debug output.
  13911. """
  13912. id = MAVLINK_MSG_ID_NAMED_VALUE_FLOAT
  13913. msgname = "NAMED_VALUE_FLOAT"
  13914. fieldnames = ["time_boot_ms", "name", "value"]
  13915. ordered_fieldnames = ["time_boot_ms", "value", "name"]
  13916. fieldtypes = ["uint32_t", "char", "float"]
  13917. fielddisplays_by_name: Dict[str, str] = {}
  13918. fieldenums_by_name: Dict[str, str] = {}
  13919. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms"}
  13920. native_format = bytearray(b"<Ifc")
  13921. orders = [0, 2, 1]
  13922. lengths = [1, 1, 1]
  13923. array_lengths = [0, 0, 10]
  13924. crc_extra = 170
  13925. unpacker = struct.Struct("<If10s")
  13926. instance_field = "name"
  13927. instance_offset = 8
  13928. def __init__(self, time_boot_ms: int, name: bytes, value: float):
  13929. MAVLink_message.__init__(self, MAVLink_named_value_float_message.id, MAVLink_named_value_float_message.msgname)
  13930. self._fieldnames = MAVLink_named_value_float_message.fieldnames
  13931. self._instance_field = MAVLink_named_value_float_message.instance_field
  13932. self._instance_offset = MAVLink_named_value_float_message.instance_offset
  13933. self.time_boot_ms = time_boot_ms
  13934. self._name_raw = name
  13935. self.name = name.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  13936. self.value = value
  13937. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13938. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.value, self._name_raw), force_mavlink1=force_mavlink1)
  13939. # Define name on the class for backwards compatibility (it is now msgname).
  13940. # Done with setattr to hide the class variable from mypy.
  13941. setattr(MAVLink_named_value_float_message, "name", mavlink_msg_deprecated_name_property())
  13942. class MAVLink_named_value_int_message(MAVLink_message):
  13943. """
  13944. Send a key-value pair as integer. The use of this message is
  13945. discouraged for normal packets, but a quite efficient way for
  13946. testing new messages and getting experimental debug output.
  13947. """
  13948. id = MAVLINK_MSG_ID_NAMED_VALUE_INT
  13949. msgname = "NAMED_VALUE_INT"
  13950. fieldnames = ["time_boot_ms", "name", "value"]
  13951. ordered_fieldnames = ["time_boot_ms", "value", "name"]
  13952. fieldtypes = ["uint32_t", "char", "int32_t"]
  13953. fielddisplays_by_name: Dict[str, str] = {}
  13954. fieldenums_by_name: Dict[str, str] = {}
  13955. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms"}
  13956. native_format = bytearray(b"<Iic")
  13957. orders = [0, 2, 1]
  13958. lengths = [1, 1, 1]
  13959. array_lengths = [0, 0, 10]
  13960. crc_extra = 44
  13961. unpacker = struct.Struct("<Ii10s")
  13962. instance_field = "name"
  13963. instance_offset = 8
  13964. def __init__(self, time_boot_ms: int, name: bytes, value: int):
  13965. MAVLink_message.__init__(self, MAVLink_named_value_int_message.id, MAVLink_named_value_int_message.msgname)
  13966. self._fieldnames = MAVLink_named_value_int_message.fieldnames
  13967. self._instance_field = MAVLink_named_value_int_message.instance_field
  13968. self._instance_offset = MAVLink_named_value_int_message.instance_offset
  13969. self.time_boot_ms = time_boot_ms
  13970. self._name_raw = name
  13971. self.name = name.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  13972. self.value = value
  13973. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  13974. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.value, self._name_raw), force_mavlink1=force_mavlink1)
  13975. # Define name on the class for backwards compatibility (it is now msgname).
  13976. # Done with setattr to hide the class variable from mypy.
  13977. setattr(MAVLink_named_value_int_message, "name", mavlink_msg_deprecated_name_property())
  13978. class MAVLink_statustext_message(MAVLink_message):
  13979. """
  13980. Status text message. These messages are printed in yellow in the
  13981. COMM console of QGroundControl. WARNING: They consume quite some
  13982. bandwidth, so use only for important status and error messages. If
  13983. implemented wisely, these messages are buffered on the MCU and
  13984. sent only at a limited rate (e.g. 10 Hz).
  13985. """
  13986. id = MAVLINK_MSG_ID_STATUSTEXT
  13987. msgname = "STATUSTEXT"
  13988. fieldnames = ["severity", "text", "id", "chunk_seq"]
  13989. ordered_fieldnames = ["severity", "text", "id", "chunk_seq"]
  13990. fieldtypes = ["uint8_t", "char", "uint16_t", "uint8_t"]
  13991. fielddisplays_by_name: Dict[str, str] = {}
  13992. fieldenums_by_name: Dict[str, str] = {"severity": "MAV_SEVERITY"}
  13993. fieldunits_by_name: Dict[str, str] = {}
  13994. native_format = bytearray(b"<BcHB")
  13995. orders = [0, 1, 2, 3]
  13996. lengths = [1, 1, 1, 1]
  13997. array_lengths = [0, 50, 0, 0]
  13998. crc_extra = 83
  13999. unpacker = struct.Struct("<B50sHB")
  14000. instance_field = None
  14001. instance_offset = -1
  14002. def __init__(self, severity: int, text: bytes, id: int = 0, chunk_seq: int = 0):
  14003. MAVLink_message.__init__(self, MAVLink_statustext_message.id, MAVLink_statustext_message.msgname)
  14004. self._fieldnames = MAVLink_statustext_message.fieldnames
  14005. self._instance_field = MAVLink_statustext_message.instance_field
  14006. self._instance_offset = MAVLink_statustext_message.instance_offset
  14007. self.severity = severity
  14008. self._text_raw = text
  14009. self.text = text.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  14010. self.id = id
  14011. self.chunk_seq = chunk_seq
  14012. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14013. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.severity, self._text_raw, self.id, self.chunk_seq), force_mavlink1=force_mavlink1)
  14014. # Define name on the class for backwards compatibility (it is now msgname).
  14015. # Done with setattr to hide the class variable from mypy.
  14016. setattr(MAVLink_statustext_message, "name", mavlink_msg_deprecated_name_property())
  14017. class MAVLink_debug_message(MAVLink_message):
  14018. """
  14019. Send a debug value. The index is used to discriminate between
  14020. values. These values show up in the plot of QGroundControl as
  14021. DEBUG N.
  14022. """
  14023. id = MAVLINK_MSG_ID_DEBUG
  14024. msgname = "DEBUG"
  14025. fieldnames = ["time_boot_ms", "ind", "value"]
  14026. ordered_fieldnames = ["time_boot_ms", "value", "ind"]
  14027. fieldtypes = ["uint32_t", "uint8_t", "float"]
  14028. fielddisplays_by_name: Dict[str, str] = {}
  14029. fieldenums_by_name: Dict[str, str] = {}
  14030. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms"}
  14031. native_format = bytearray(b"<IfB")
  14032. orders = [0, 2, 1]
  14033. lengths = [1, 1, 1]
  14034. array_lengths = [0, 0, 0]
  14035. crc_extra = 46
  14036. unpacker = struct.Struct("<IfB")
  14037. instance_field = None
  14038. instance_offset = -1
  14039. def __init__(self, time_boot_ms: int, ind: int, value: float):
  14040. MAVLink_message.__init__(self, MAVLink_debug_message.id, MAVLink_debug_message.msgname)
  14041. self._fieldnames = MAVLink_debug_message.fieldnames
  14042. self._instance_field = MAVLink_debug_message.instance_field
  14043. self._instance_offset = MAVLink_debug_message.instance_offset
  14044. self.time_boot_ms = time_boot_ms
  14045. self.ind = ind
  14046. self.value = value
  14047. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14048. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.value, self.ind), force_mavlink1=force_mavlink1)
  14049. # Define name on the class for backwards compatibility (it is now msgname).
  14050. # Done with setattr to hide the class variable from mypy.
  14051. setattr(MAVLink_debug_message, "name", mavlink_msg_deprecated_name_property())
  14052. class MAVLink_setup_signing_message(MAVLink_message):
  14053. """
  14054. Setup a MAVLink2 signing key. If called with secret_key of all
  14055. zero and zero initial_timestamp will disable signing
  14056. """
  14057. id = MAVLINK_MSG_ID_SETUP_SIGNING
  14058. msgname = "SETUP_SIGNING"
  14059. fieldnames = ["target_system", "target_component", "secret_key", "initial_timestamp"]
  14060. ordered_fieldnames = ["initial_timestamp", "target_system", "target_component", "secret_key"]
  14061. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint64_t"]
  14062. fielddisplays_by_name: Dict[str, str] = {}
  14063. fieldenums_by_name: Dict[str, str] = {}
  14064. fieldunits_by_name: Dict[str, str] = {}
  14065. native_format = bytearray(b"<QBBB")
  14066. orders = [1, 2, 3, 0]
  14067. lengths = [1, 1, 1, 32]
  14068. array_lengths = [0, 0, 0, 32]
  14069. crc_extra = 71
  14070. unpacker = struct.Struct("<QBB32B")
  14071. instance_field = None
  14072. instance_offset = -1
  14073. def __init__(self, target_system: int, target_component: int, secret_key: Sequence[int], initial_timestamp: int):
  14074. MAVLink_message.__init__(self, MAVLink_setup_signing_message.id, MAVLink_setup_signing_message.msgname)
  14075. self._fieldnames = MAVLink_setup_signing_message.fieldnames
  14076. self._instance_field = MAVLink_setup_signing_message.instance_field
  14077. self._instance_offset = MAVLink_setup_signing_message.instance_offset
  14078. self.target_system = target_system
  14079. self.target_component = target_component
  14080. self.secret_key = secret_key
  14081. self.initial_timestamp = initial_timestamp
  14082. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14083. 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)
  14084. # Define name on the class for backwards compatibility (it is now msgname).
  14085. # Done with setattr to hide the class variable from mypy.
  14086. setattr(MAVLink_setup_signing_message, "name", mavlink_msg_deprecated_name_property())
  14087. class MAVLink_button_change_message(MAVLink_message):
  14088. """
  14089. Report button state change.
  14090. """
  14091. id = MAVLINK_MSG_ID_BUTTON_CHANGE
  14092. msgname = "BUTTON_CHANGE"
  14093. fieldnames = ["time_boot_ms", "last_change_ms", "state"]
  14094. ordered_fieldnames = ["time_boot_ms", "last_change_ms", "state"]
  14095. fieldtypes = ["uint32_t", "uint32_t", "uint8_t"]
  14096. fielddisplays_by_name: Dict[str, str] = {"state": "bitmask"}
  14097. fieldenums_by_name: Dict[str, str] = {}
  14098. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "last_change_ms": "ms"}
  14099. native_format = bytearray(b"<IIB")
  14100. orders = [0, 1, 2]
  14101. lengths = [1, 1, 1]
  14102. array_lengths = [0, 0, 0]
  14103. crc_extra = 131
  14104. unpacker = struct.Struct("<IIB")
  14105. instance_field = None
  14106. instance_offset = -1
  14107. def __init__(self, time_boot_ms: int, last_change_ms: int, state: int):
  14108. MAVLink_message.__init__(self, MAVLink_button_change_message.id, MAVLink_button_change_message.msgname)
  14109. self._fieldnames = MAVLink_button_change_message.fieldnames
  14110. self._instance_field = MAVLink_button_change_message.instance_field
  14111. self._instance_offset = MAVLink_button_change_message.instance_offset
  14112. self.time_boot_ms = time_boot_ms
  14113. self.last_change_ms = last_change_ms
  14114. self.state = state
  14115. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14116. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.last_change_ms, self.state), force_mavlink1=force_mavlink1)
  14117. # Define name on the class for backwards compatibility (it is now msgname).
  14118. # Done with setattr to hide the class variable from mypy.
  14119. setattr(MAVLink_button_change_message, "name", mavlink_msg_deprecated_name_property())
  14120. class MAVLink_play_tune_message(MAVLink_message):
  14121. """
  14122. Control vehicle tone generation (buzzer).
  14123. """
  14124. id = MAVLINK_MSG_ID_PLAY_TUNE
  14125. msgname = "PLAY_TUNE"
  14126. fieldnames = ["target_system", "target_component", "tune", "tune2"]
  14127. ordered_fieldnames = ["target_system", "target_component", "tune", "tune2"]
  14128. fieldtypes = ["uint8_t", "uint8_t", "char", "char"]
  14129. fielddisplays_by_name: Dict[str, str] = {}
  14130. fieldenums_by_name: Dict[str, str] = {}
  14131. fieldunits_by_name: Dict[str, str] = {}
  14132. native_format = bytearray(b"<BBcc")
  14133. orders = [0, 1, 2, 3]
  14134. lengths = [1, 1, 1, 1]
  14135. array_lengths = [0, 0, 30, 200]
  14136. crc_extra = 187
  14137. unpacker = struct.Struct("<BB30s200s")
  14138. instance_field = None
  14139. instance_offset = -1
  14140. def __init__(self, target_system: int, target_component: int, tune: bytes, tune2: bytes = b""):
  14141. MAVLink_message.__init__(self, MAVLink_play_tune_message.id, MAVLink_play_tune_message.msgname)
  14142. self._fieldnames = MAVLink_play_tune_message.fieldnames
  14143. self._instance_field = MAVLink_play_tune_message.instance_field
  14144. self._instance_offset = MAVLink_play_tune_message.instance_offset
  14145. self.target_system = target_system
  14146. self.target_component = target_component
  14147. self._tune_raw = tune
  14148. self.tune = tune.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  14149. self._tune2_raw = tune2
  14150. self.tune2 = tune2.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  14151. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14152. 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)
  14153. # Define name on the class for backwards compatibility (it is now msgname).
  14154. # Done with setattr to hide the class variable from mypy.
  14155. setattr(MAVLink_play_tune_message, "name", mavlink_msg_deprecated_name_property())
  14156. class MAVLink_camera_information_message(MAVLink_message):
  14157. """
  14158. Information about a camera. Can be requested with a
  14159. MAV_CMD_REQUEST_MESSAGE command.
  14160. """
  14161. id = MAVLINK_MSG_ID_CAMERA_INFORMATION
  14162. msgname = "CAMERA_INFORMATION"
  14163. 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"]
  14164. 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"]
  14165. 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"]
  14166. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  14167. fieldenums_by_name: Dict[str, str] = {"flags": "CAMERA_CAP_FLAGS"}
  14168. 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"}
  14169. native_format = bytearray(b"<IIfffIHHHBBBcB")
  14170. orders = [0, 9, 10, 1, 2, 3, 4, 6, 7, 11, 5, 8, 12, 13]
  14171. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 32, 32, 1, 1, 1]
  14172. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 32, 0, 140, 0]
  14173. crc_extra = 92
  14174. unpacker = struct.Struct("<IIfffIHHH32B32BB140sB")
  14175. instance_field = None
  14176. instance_offset = -1
  14177. 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):
  14178. MAVLink_message.__init__(self, MAVLink_camera_information_message.id, MAVLink_camera_information_message.msgname)
  14179. self._fieldnames = MAVLink_camera_information_message.fieldnames
  14180. self._instance_field = MAVLink_camera_information_message.instance_field
  14181. self._instance_offset = MAVLink_camera_information_message.instance_offset
  14182. self.time_boot_ms = time_boot_ms
  14183. self.vendor_name = vendor_name
  14184. self.model_name = model_name
  14185. self.firmware_version = firmware_version
  14186. self.focal_length = focal_length
  14187. self.sensor_size_h = sensor_size_h
  14188. self.sensor_size_v = sensor_size_v
  14189. self.resolution_h = resolution_h
  14190. self.resolution_v = resolution_v
  14191. self.lens_id = lens_id
  14192. self.flags = flags
  14193. self.cam_definition_version = cam_definition_version
  14194. self._cam_definition_uri_raw = cam_definition_uri
  14195. self.cam_definition_uri = cam_definition_uri.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  14196. self.gimbal_device_id = gimbal_device_id
  14197. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14198. 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)
  14199. # Define name on the class for backwards compatibility (it is now msgname).
  14200. # Done with setattr to hide the class variable from mypy.
  14201. setattr(MAVLink_camera_information_message, "name", mavlink_msg_deprecated_name_property())
  14202. class MAVLink_camera_settings_message(MAVLink_message):
  14203. """
  14204. Settings of a camera. Can be requested with a
  14205. MAV_CMD_REQUEST_MESSAGE command.
  14206. """
  14207. id = MAVLINK_MSG_ID_CAMERA_SETTINGS
  14208. msgname = "CAMERA_SETTINGS"
  14209. fieldnames = ["time_boot_ms", "mode_id", "zoomLevel", "focusLevel"]
  14210. ordered_fieldnames = ["time_boot_ms", "mode_id", "zoomLevel", "focusLevel"]
  14211. fieldtypes = ["uint32_t", "uint8_t", "float", "float"]
  14212. fielddisplays_by_name: Dict[str, str] = {}
  14213. fieldenums_by_name: Dict[str, str] = {"mode_id": "CAMERA_MODE"}
  14214. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms"}
  14215. native_format = bytearray(b"<IBff")
  14216. orders = [0, 1, 2, 3]
  14217. lengths = [1, 1, 1, 1]
  14218. array_lengths = [0, 0, 0, 0]
  14219. crc_extra = 146
  14220. unpacker = struct.Struct("<IBff")
  14221. instance_field = None
  14222. instance_offset = -1
  14223. def __init__(self, time_boot_ms: int, mode_id: int, zoomLevel: float = 0, focusLevel: float = 0):
  14224. MAVLink_message.__init__(self, MAVLink_camera_settings_message.id, MAVLink_camera_settings_message.msgname)
  14225. self._fieldnames = MAVLink_camera_settings_message.fieldnames
  14226. self._instance_field = MAVLink_camera_settings_message.instance_field
  14227. self._instance_offset = MAVLink_camera_settings_message.instance_offset
  14228. self.time_boot_ms = time_boot_ms
  14229. self.mode_id = mode_id
  14230. self.zoomLevel = zoomLevel
  14231. self.focusLevel = focusLevel
  14232. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14233. 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)
  14234. # Define name on the class for backwards compatibility (it is now msgname).
  14235. # Done with setattr to hide the class variable from mypy.
  14236. setattr(MAVLink_camera_settings_message, "name", mavlink_msg_deprecated_name_property())
  14237. class MAVLink_storage_information_message(MAVLink_message):
  14238. """
  14239. Information about a storage medium. This message is sent in
  14240. response to a request with MAV_CMD_REQUEST_MESSAGE and whenever
  14241. the status of the storage changes (STORAGE_STATUS). Use
  14242. MAV_CMD_REQUEST_MESSAGE.param2 to indicate the index/id of
  14243. requested storage: 0 for all, 1 for first, 2 for second, etc.
  14244. """
  14245. id = MAVLINK_MSG_ID_STORAGE_INFORMATION
  14246. msgname = "STORAGE_INFORMATION"
  14247. fieldnames = ["time_boot_ms", "storage_id", "storage_count", "status", "total_capacity", "used_capacity", "available_capacity", "read_speed", "write_speed", "type", "name", "storage_usage"]
  14248. ordered_fieldnames = ["time_boot_ms", "total_capacity", "used_capacity", "available_capacity", "read_speed", "write_speed", "storage_id", "storage_count", "status", "type", "name", "storage_usage"]
  14249. fieldtypes = ["uint32_t", "uint8_t", "uint8_t", "uint8_t", "float", "float", "float", "float", "float", "uint8_t", "char", "uint8_t"]
  14250. fielddisplays_by_name: Dict[str, str] = {}
  14251. fieldenums_by_name: Dict[str, str] = {"status": "STORAGE_STATUS", "type": "STORAGE_TYPE", "storage_usage": "STORAGE_USAGE_FLAG"}
  14252. 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"}
  14253. native_format = bytearray(b"<IfffffBBBBcB")
  14254. orders = [0, 6, 7, 8, 1, 2, 3, 4, 5, 9, 10, 11]
  14255. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  14256. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 0]
  14257. crc_extra = 179
  14258. unpacker = struct.Struct("<IfffffBBBB32sB")
  14259. instance_field = "storage_id"
  14260. instance_offset = 24
  14261. 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):
  14262. MAVLink_message.__init__(self, MAVLink_storage_information_message.id, MAVLink_storage_information_message.msgname)
  14263. self._fieldnames = MAVLink_storage_information_message.fieldnames
  14264. self._instance_field = MAVLink_storage_information_message.instance_field
  14265. self._instance_offset = MAVLink_storage_information_message.instance_offset
  14266. self.time_boot_ms = time_boot_ms
  14267. self.storage_id = storage_id
  14268. self.storage_count = storage_count
  14269. self.status = status
  14270. self.total_capacity = total_capacity
  14271. self.used_capacity = used_capacity
  14272. self.available_capacity = available_capacity
  14273. self.read_speed = read_speed
  14274. self.write_speed = write_speed
  14275. self.type = type
  14276. self._name_raw = name
  14277. self.name = name.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  14278. self.storage_usage = storage_usage
  14279. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14280. 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)
  14281. # Define name on the class for backwards compatibility (it is now msgname).
  14282. # Done with setattr to hide the class variable from mypy.
  14283. setattr(MAVLink_storage_information_message, "name", mavlink_msg_deprecated_name_property())
  14284. class MAVLink_camera_capture_status_message(MAVLink_message):
  14285. """
  14286. Information about the status of a capture. Can be requested with a
  14287. MAV_CMD_REQUEST_MESSAGE command.
  14288. """
  14289. id = MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS
  14290. msgname = "CAMERA_CAPTURE_STATUS"
  14291. fieldnames = ["time_boot_ms", "image_status", "video_status", "image_interval", "recording_time_ms", "available_capacity", "image_count"]
  14292. ordered_fieldnames = ["time_boot_ms", "image_interval", "recording_time_ms", "available_capacity", "image_status", "video_status", "image_count"]
  14293. fieldtypes = ["uint32_t", "uint8_t", "uint8_t", "float", "uint32_t", "float", "int32_t"]
  14294. fielddisplays_by_name: Dict[str, str] = {}
  14295. fieldenums_by_name: Dict[str, str] = {}
  14296. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "image_interval": "s", "recording_time_ms": "ms", "available_capacity": "MiB"}
  14297. native_format = bytearray(b"<IfIfBBi")
  14298. orders = [0, 4, 5, 1, 2, 3, 6]
  14299. lengths = [1, 1, 1, 1, 1, 1, 1]
  14300. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  14301. crc_extra = 12
  14302. unpacker = struct.Struct("<IfIfBBi")
  14303. instance_field = None
  14304. instance_offset = -1
  14305. 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):
  14306. MAVLink_message.__init__(self, MAVLink_camera_capture_status_message.id, MAVLink_camera_capture_status_message.msgname)
  14307. self._fieldnames = MAVLink_camera_capture_status_message.fieldnames
  14308. self._instance_field = MAVLink_camera_capture_status_message.instance_field
  14309. self._instance_offset = MAVLink_camera_capture_status_message.instance_offset
  14310. self.time_boot_ms = time_boot_ms
  14311. self.image_status = image_status
  14312. self.video_status = video_status
  14313. self.image_interval = image_interval
  14314. self.recording_time_ms = recording_time_ms
  14315. self.available_capacity = available_capacity
  14316. self.image_count = image_count
  14317. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14318. 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)
  14319. # Define name on the class for backwards compatibility (it is now msgname).
  14320. # Done with setattr to hide the class variable from mypy.
  14321. setattr(MAVLink_camera_capture_status_message, "name", mavlink_msg_deprecated_name_property())
  14322. class MAVLink_camera_image_captured_message(MAVLink_message):
  14323. """
  14324. Information about a captured image. This is emitted every time a
  14325. message is captured. MAV_CMD_REQUEST_MESSAGE can be used
  14326. to (re)request this message for a specific sequence number or
  14327. range of sequence numbers: MAV_CMD_REQUEST_MESSAGE.param2
  14328. indicates the sequence number the first image to send, or set to
  14329. -1 to send the message for all sequence numbers.
  14330. MAV_CMD_REQUEST_MESSAGE.param3 is used to specify a range of
  14331. messages to send: set to 0 (default) to send just the the
  14332. message for the sequence number in param 2, set to -1 to
  14333. send the message for the sequence number in param 2 and all the
  14334. following sequence numbers, set to the sequence number of
  14335. the final message in the range.
  14336. """
  14337. id = MAVLINK_MSG_ID_CAMERA_IMAGE_CAPTURED
  14338. msgname = "CAMERA_IMAGE_CAPTURED"
  14339. fieldnames = ["time_boot_ms", "time_utc", "camera_id", "lat", "lon", "alt", "relative_alt", "q", "image_index", "capture_result", "file_url"]
  14340. ordered_fieldnames = ["time_utc", "time_boot_ms", "lat", "lon", "alt", "relative_alt", "q", "image_index", "camera_id", "capture_result", "file_url"]
  14341. fieldtypes = ["uint32_t", "uint64_t", "uint8_t", "int32_t", "int32_t", "int32_t", "int32_t", "float", "int32_t", "int8_t", "char"]
  14342. fielddisplays_by_name: Dict[str, str] = {}
  14343. fieldenums_by_name: Dict[str, str] = {}
  14344. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "time_utc": "us", "lat": "degE7", "lon": "degE7", "alt": "mm", "relative_alt": "mm"}
  14345. native_format = bytearray(b"<QIiiiifiBbc")
  14346. orders = [1, 0, 8, 2, 3, 4, 5, 6, 7, 9, 10]
  14347. lengths = [1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1]
  14348. array_lengths = [0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 205]
  14349. crc_extra = 133
  14350. unpacker = struct.Struct("<QIiiii4fiBb205s")
  14351. instance_field = None
  14352. instance_offset = -1
  14353. 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):
  14354. MAVLink_message.__init__(self, MAVLink_camera_image_captured_message.id, MAVLink_camera_image_captured_message.msgname)
  14355. self._fieldnames = MAVLink_camera_image_captured_message.fieldnames
  14356. self._instance_field = MAVLink_camera_image_captured_message.instance_field
  14357. self._instance_offset = MAVLink_camera_image_captured_message.instance_offset
  14358. self.time_boot_ms = time_boot_ms
  14359. self.time_utc = time_utc
  14360. self.camera_id = camera_id
  14361. self.lat = lat
  14362. self.lon = lon
  14363. self.alt = alt
  14364. self.relative_alt = relative_alt
  14365. self.q = q
  14366. self.image_index = image_index
  14367. self.capture_result = capture_result
  14368. self._file_url_raw = file_url
  14369. self.file_url = file_url.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  14370. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14371. 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)
  14372. # Define name on the class for backwards compatibility (it is now msgname).
  14373. # Done with setattr to hide the class variable from mypy.
  14374. setattr(MAVLink_camera_image_captured_message, "name", mavlink_msg_deprecated_name_property())
  14375. class MAVLink_flight_information_message(MAVLink_message):
  14376. """
  14377. Flight information. This includes time since boot for arm,
  14378. takeoff, and land, and a flight number. Takeoff and
  14379. landing values reset to zero on arm. This can be requested
  14380. using MAV_CMD_REQUEST_MESSAGE. Note, some fields are
  14381. misnamed - timestamps are from boot (not UTC) and the flight_uuid
  14382. is a sequence number.
  14383. """
  14384. id = MAVLINK_MSG_ID_FLIGHT_INFORMATION
  14385. msgname = "FLIGHT_INFORMATION"
  14386. fieldnames = ["time_boot_ms", "arming_time_utc", "takeoff_time_utc", "flight_uuid", "landing_time"]
  14387. ordered_fieldnames = ["arming_time_utc", "takeoff_time_utc", "flight_uuid", "time_boot_ms", "landing_time"]
  14388. fieldtypes = ["uint32_t", "uint64_t", "uint64_t", "uint64_t", "uint32_t"]
  14389. fielddisplays_by_name: Dict[str, str] = {}
  14390. fieldenums_by_name: Dict[str, str] = {}
  14391. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "arming_time_utc": "us", "takeoff_time_utc": "us", "landing_time": "ms"}
  14392. native_format = bytearray(b"<QQQII")
  14393. orders = [3, 0, 1, 2, 4]
  14394. lengths = [1, 1, 1, 1, 1]
  14395. array_lengths = [0, 0, 0, 0, 0]
  14396. crc_extra = 49
  14397. unpacker = struct.Struct("<QQQII")
  14398. instance_field = None
  14399. instance_offset = -1
  14400. def __init__(self, time_boot_ms: int, arming_time_utc: int, takeoff_time_utc: int, flight_uuid: int, landing_time: int = 0):
  14401. MAVLink_message.__init__(self, MAVLink_flight_information_message.id, MAVLink_flight_information_message.msgname)
  14402. self._fieldnames = MAVLink_flight_information_message.fieldnames
  14403. self._instance_field = MAVLink_flight_information_message.instance_field
  14404. self._instance_offset = MAVLink_flight_information_message.instance_offset
  14405. self.time_boot_ms = time_boot_ms
  14406. self.arming_time_utc = arming_time_utc
  14407. self.takeoff_time_utc = takeoff_time_utc
  14408. self.flight_uuid = flight_uuid
  14409. self.landing_time = landing_time
  14410. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14411. 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)
  14412. # Define name on the class for backwards compatibility (it is now msgname).
  14413. # Done with setattr to hide the class variable from mypy.
  14414. setattr(MAVLink_flight_information_message, "name", mavlink_msg_deprecated_name_property())
  14415. class MAVLink_mount_orientation_message(MAVLink_message):
  14416. """
  14417. Orientation of a mount
  14418. """
  14419. id = MAVLINK_MSG_ID_MOUNT_ORIENTATION
  14420. msgname = "MOUNT_ORIENTATION"
  14421. fieldnames = ["time_boot_ms", "roll", "pitch", "yaw", "yaw_absolute"]
  14422. ordered_fieldnames = ["time_boot_ms", "roll", "pitch", "yaw", "yaw_absolute"]
  14423. fieldtypes = ["uint32_t", "float", "float", "float", "float"]
  14424. fielddisplays_by_name: Dict[str, str] = {}
  14425. fieldenums_by_name: Dict[str, str] = {}
  14426. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms", "roll": "deg", "pitch": "deg", "yaw": "deg", "yaw_absolute": "deg"}
  14427. native_format = bytearray(b"<Iffff")
  14428. orders = [0, 1, 2, 3, 4]
  14429. lengths = [1, 1, 1, 1, 1]
  14430. array_lengths = [0, 0, 0, 0, 0]
  14431. crc_extra = 26
  14432. unpacker = struct.Struct("<Iffff")
  14433. instance_field = None
  14434. instance_offset = -1
  14435. def __init__(self, time_boot_ms: int, roll: float, pitch: float, yaw: float, yaw_absolute: float = 0):
  14436. MAVLink_message.__init__(self, MAVLink_mount_orientation_message.id, MAVLink_mount_orientation_message.msgname)
  14437. self._fieldnames = MAVLink_mount_orientation_message.fieldnames
  14438. self._instance_field = MAVLink_mount_orientation_message.instance_field
  14439. self._instance_offset = MAVLink_mount_orientation_message.instance_offset
  14440. self.time_boot_ms = time_boot_ms
  14441. self.roll = roll
  14442. self.pitch = pitch
  14443. self.yaw = yaw
  14444. self.yaw_absolute = yaw_absolute
  14445. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14446. 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)
  14447. # Define name on the class for backwards compatibility (it is now msgname).
  14448. # Done with setattr to hide the class variable from mypy.
  14449. setattr(MAVLink_mount_orientation_message, "name", mavlink_msg_deprecated_name_property())
  14450. class MAVLink_logging_data_message(MAVLink_message):
  14451. """
  14452. A message containing logged data (see also MAV_CMD_LOGGING_START)
  14453. """
  14454. id = MAVLINK_MSG_ID_LOGGING_DATA
  14455. msgname = "LOGGING_DATA"
  14456. fieldnames = ["target_system", "target_component", "sequence", "length", "first_message_offset", "data"]
  14457. ordered_fieldnames = ["sequence", "target_system", "target_component", "length", "first_message_offset", "data"]
  14458. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "uint8_t", "uint8_t", "uint8_t"]
  14459. fielddisplays_by_name: Dict[str, str] = {}
  14460. fieldenums_by_name: Dict[str, str] = {}
  14461. fieldunits_by_name: Dict[str, str] = {"length": "bytes", "first_message_offset": "bytes"}
  14462. native_format = bytearray(b"<HBBBBB")
  14463. orders = [1, 2, 0, 3, 4, 5]
  14464. lengths = [1, 1, 1, 1, 1, 249]
  14465. array_lengths = [0, 0, 0, 0, 0, 249]
  14466. crc_extra = 193
  14467. unpacker = struct.Struct("<HBBBB249B")
  14468. instance_field = None
  14469. instance_offset = -1
  14470. def __init__(self, target_system: int, target_component: int, sequence: int, length: int, first_message_offset: int, data: Sequence[int]):
  14471. MAVLink_message.__init__(self, MAVLink_logging_data_message.id, MAVLink_logging_data_message.msgname)
  14472. self._fieldnames = MAVLink_logging_data_message.fieldnames
  14473. self._instance_field = MAVLink_logging_data_message.instance_field
  14474. self._instance_offset = MAVLink_logging_data_message.instance_offset
  14475. self.target_system = target_system
  14476. self.target_component = target_component
  14477. self.sequence = sequence
  14478. self.length = length
  14479. self.first_message_offset = first_message_offset
  14480. self.data = data
  14481. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14482. 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)
  14483. # Define name on the class for backwards compatibility (it is now msgname).
  14484. # Done with setattr to hide the class variable from mypy.
  14485. setattr(MAVLink_logging_data_message, "name", mavlink_msg_deprecated_name_property())
  14486. class MAVLink_logging_data_acked_message(MAVLink_message):
  14487. """
  14488. A message containing logged data which requires a LOGGING_ACK to
  14489. be sent back
  14490. """
  14491. id = MAVLINK_MSG_ID_LOGGING_DATA_ACKED
  14492. msgname = "LOGGING_DATA_ACKED"
  14493. fieldnames = ["target_system", "target_component", "sequence", "length", "first_message_offset", "data"]
  14494. ordered_fieldnames = ["sequence", "target_system", "target_component", "length", "first_message_offset", "data"]
  14495. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "uint8_t", "uint8_t", "uint8_t"]
  14496. fielddisplays_by_name: Dict[str, str] = {}
  14497. fieldenums_by_name: Dict[str, str] = {}
  14498. fieldunits_by_name: Dict[str, str] = {"length": "bytes", "first_message_offset": "bytes"}
  14499. native_format = bytearray(b"<HBBBBB")
  14500. orders = [1, 2, 0, 3, 4, 5]
  14501. lengths = [1, 1, 1, 1, 1, 249]
  14502. array_lengths = [0, 0, 0, 0, 0, 249]
  14503. crc_extra = 35
  14504. unpacker = struct.Struct("<HBBBB249B")
  14505. instance_field = None
  14506. instance_offset = -1
  14507. def __init__(self, target_system: int, target_component: int, sequence: int, length: int, first_message_offset: int, data: Sequence[int]):
  14508. MAVLink_message.__init__(self, MAVLink_logging_data_acked_message.id, MAVLink_logging_data_acked_message.msgname)
  14509. self._fieldnames = MAVLink_logging_data_acked_message.fieldnames
  14510. self._instance_field = MAVLink_logging_data_acked_message.instance_field
  14511. self._instance_offset = MAVLink_logging_data_acked_message.instance_offset
  14512. self.target_system = target_system
  14513. self.target_component = target_component
  14514. self.sequence = sequence
  14515. self.length = length
  14516. self.first_message_offset = first_message_offset
  14517. self.data = data
  14518. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14519. 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)
  14520. # Define name on the class for backwards compatibility (it is now msgname).
  14521. # Done with setattr to hide the class variable from mypy.
  14522. setattr(MAVLink_logging_data_acked_message, "name", mavlink_msg_deprecated_name_property())
  14523. class MAVLink_logging_ack_message(MAVLink_message):
  14524. """
  14525. An ack for a LOGGING_DATA_ACKED message
  14526. """
  14527. id = MAVLINK_MSG_ID_LOGGING_ACK
  14528. msgname = "LOGGING_ACK"
  14529. fieldnames = ["target_system", "target_component", "sequence"]
  14530. ordered_fieldnames = ["sequence", "target_system", "target_component"]
  14531. fieldtypes = ["uint8_t", "uint8_t", "uint16_t"]
  14532. fielddisplays_by_name: Dict[str, str] = {}
  14533. fieldenums_by_name: Dict[str, str] = {}
  14534. fieldunits_by_name: Dict[str, str] = {}
  14535. native_format = bytearray(b"<HBB")
  14536. orders = [1, 2, 0]
  14537. lengths = [1, 1, 1]
  14538. array_lengths = [0, 0, 0]
  14539. crc_extra = 14
  14540. unpacker = struct.Struct("<HBB")
  14541. instance_field = None
  14542. instance_offset = -1
  14543. def __init__(self, target_system: int, target_component: int, sequence: int):
  14544. MAVLink_message.__init__(self, MAVLink_logging_ack_message.id, MAVLink_logging_ack_message.msgname)
  14545. self._fieldnames = MAVLink_logging_ack_message.fieldnames
  14546. self._instance_field = MAVLink_logging_ack_message.instance_field
  14547. self._instance_offset = MAVLink_logging_ack_message.instance_offset
  14548. self.target_system = target_system
  14549. self.target_component = target_component
  14550. self.sequence = sequence
  14551. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14552. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.sequence, self.target_system, self.target_component), force_mavlink1=force_mavlink1)
  14553. # Define name on the class for backwards compatibility (it is now msgname).
  14554. # Done with setattr to hide the class variable from mypy.
  14555. setattr(MAVLink_logging_ack_message, "name", mavlink_msg_deprecated_name_property())
  14556. class MAVLink_video_stream_information_message(MAVLink_message):
  14557. """
  14558. Information about video stream. It may be requested using
  14559. MAV_CMD_REQUEST_MESSAGE, where param2 indicates the video stream
  14560. id: 0 for all streams, 1 for first, 2 for second, etc.
  14561. """
  14562. id = MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION
  14563. msgname = "VIDEO_STREAM_INFORMATION"
  14564. fieldnames = ["stream_id", "count", "type", "flags", "framerate", "resolution_h", "resolution_v", "bitrate", "rotation", "hfov", "name", "uri"]
  14565. ordered_fieldnames = ["framerate", "bitrate", "flags", "resolution_h", "resolution_v", "rotation", "hfov", "stream_id", "count", "type", "name", "uri"]
  14566. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint16_t", "float", "uint16_t", "uint16_t", "uint32_t", "uint16_t", "uint16_t", "char", "char"]
  14567. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  14568. fieldenums_by_name: Dict[str, str] = {"type": "VIDEO_STREAM_TYPE", "flags": "VIDEO_STREAM_STATUS_FLAGS"}
  14569. fieldunits_by_name: Dict[str, str] = {"framerate": "Hz", "resolution_h": "pix", "resolution_v": "pix", "bitrate": "bits/s", "rotation": "deg", "hfov": "deg"}
  14570. native_format = bytearray(b"<fIHHHHHBBBcc")
  14571. orders = [7, 8, 9, 2, 0, 3, 4, 1, 5, 6, 10, 11]
  14572. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  14573. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 160]
  14574. crc_extra = 109
  14575. unpacker = struct.Struct("<fIHHHHHBBB32s160s")
  14576. instance_field = "stream_id"
  14577. instance_offset = 18
  14578. 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):
  14579. MAVLink_message.__init__(self, MAVLink_video_stream_information_message.id, MAVLink_video_stream_information_message.msgname)
  14580. self._fieldnames = MAVLink_video_stream_information_message.fieldnames
  14581. self._instance_field = MAVLink_video_stream_information_message.instance_field
  14582. self._instance_offset = MAVLink_video_stream_information_message.instance_offset
  14583. self.stream_id = stream_id
  14584. self.count = count
  14585. self.type = type
  14586. self.flags = flags
  14587. self.framerate = framerate
  14588. self.resolution_h = resolution_h
  14589. self.resolution_v = resolution_v
  14590. self.bitrate = bitrate
  14591. self.rotation = rotation
  14592. self.hfov = hfov
  14593. self._name_raw = name
  14594. self.name = name.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  14595. self._uri_raw = uri
  14596. self.uri = uri.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  14597. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14598. 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)
  14599. # Define name on the class for backwards compatibility (it is now msgname).
  14600. # Done with setattr to hide the class variable from mypy.
  14601. setattr(MAVLink_video_stream_information_message, "name", mavlink_msg_deprecated_name_property())
  14602. class MAVLink_video_stream_status_message(MAVLink_message):
  14603. """
  14604. Information about the status of a video stream. It may be
  14605. requested using MAV_CMD_REQUEST_MESSAGE.
  14606. """
  14607. id = MAVLINK_MSG_ID_VIDEO_STREAM_STATUS
  14608. msgname = "VIDEO_STREAM_STATUS"
  14609. fieldnames = ["stream_id", "flags", "framerate", "resolution_h", "resolution_v", "bitrate", "rotation", "hfov"]
  14610. ordered_fieldnames = ["framerate", "bitrate", "flags", "resolution_h", "resolution_v", "rotation", "hfov", "stream_id"]
  14611. fieldtypes = ["uint8_t", "uint16_t", "float", "uint16_t", "uint16_t", "uint32_t", "uint16_t", "uint16_t"]
  14612. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  14613. fieldenums_by_name: Dict[str, str] = {"flags": "VIDEO_STREAM_STATUS_FLAGS"}
  14614. fieldunits_by_name: Dict[str, str] = {"framerate": "Hz", "resolution_h": "pix", "resolution_v": "pix", "bitrate": "bits/s", "rotation": "deg", "hfov": "deg"}
  14615. native_format = bytearray(b"<fIHHHHHB")
  14616. orders = [7, 2, 0, 3, 4, 1, 5, 6]
  14617. lengths = [1, 1, 1, 1, 1, 1, 1, 1]
  14618. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0]
  14619. crc_extra = 59
  14620. unpacker = struct.Struct("<fIHHHHHB")
  14621. instance_field = "stream_id"
  14622. instance_offset = 18
  14623. def __init__(self, stream_id: int, flags: int, framerate: float, resolution_h: int, resolution_v: int, bitrate: int, rotation: int, hfov: int):
  14624. MAVLink_message.__init__(self, MAVLink_video_stream_status_message.id, MAVLink_video_stream_status_message.msgname)
  14625. self._fieldnames = MAVLink_video_stream_status_message.fieldnames
  14626. self._instance_field = MAVLink_video_stream_status_message.instance_field
  14627. self._instance_offset = MAVLink_video_stream_status_message.instance_offset
  14628. self.stream_id = stream_id
  14629. self.flags = flags
  14630. self.framerate = framerate
  14631. self.resolution_h = resolution_h
  14632. self.resolution_v = resolution_v
  14633. self.bitrate = bitrate
  14634. self.rotation = rotation
  14635. self.hfov = hfov
  14636. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14637. 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)
  14638. # Define name on the class for backwards compatibility (it is now msgname).
  14639. # Done with setattr to hide the class variable from mypy.
  14640. setattr(MAVLink_video_stream_status_message, "name", mavlink_msg_deprecated_name_property())
  14641. class MAVLink_camera_fov_status_message(MAVLink_message):
  14642. """
  14643. Information about the field of view of a camera. Can be requested
  14644. with a MAV_CMD_REQUEST_MESSAGE command.
  14645. """
  14646. id = MAVLINK_MSG_ID_CAMERA_FOV_STATUS
  14647. msgname = "CAMERA_FOV_STATUS"
  14648. fieldnames = ["time_boot_ms", "lat_camera", "lon_camera", "alt_camera", "lat_image", "lon_image", "alt_image", "q", "hfov", "vfov"]
  14649. ordered_fieldnames = ["time_boot_ms", "lat_camera", "lon_camera", "alt_camera", "lat_image", "lon_image", "alt_image", "q", "hfov", "vfov"]
  14650. fieldtypes = ["uint32_t", "int32_t", "int32_t", "int32_t", "int32_t", "int32_t", "int32_t", "float", "float", "float"]
  14651. fielddisplays_by_name: Dict[str, str] = {}
  14652. fieldenums_by_name: Dict[str, str] = {}
  14653. 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"}
  14654. native_format = bytearray(b"<Iiiiiiifff")
  14655. orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
  14656. lengths = [1, 1, 1, 1, 1, 1, 1, 4, 1, 1]
  14657. array_lengths = [0, 0, 0, 0, 0, 0, 0, 4, 0, 0]
  14658. crc_extra = 22
  14659. unpacker = struct.Struct("<Iiiiiii4fff")
  14660. instance_field = None
  14661. instance_offset = -1
  14662. 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):
  14663. MAVLink_message.__init__(self, MAVLink_camera_fov_status_message.id, MAVLink_camera_fov_status_message.msgname)
  14664. self._fieldnames = MAVLink_camera_fov_status_message.fieldnames
  14665. self._instance_field = MAVLink_camera_fov_status_message.instance_field
  14666. self._instance_offset = MAVLink_camera_fov_status_message.instance_offset
  14667. self.time_boot_ms = time_boot_ms
  14668. self.lat_camera = lat_camera
  14669. self.lon_camera = lon_camera
  14670. self.alt_camera = alt_camera
  14671. self.lat_image = lat_image
  14672. self.lon_image = lon_image
  14673. self.alt_image = alt_image
  14674. self.q = q
  14675. self.hfov = hfov
  14676. self.vfov = vfov
  14677. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14678. 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)
  14679. # Define name on the class for backwards compatibility (it is now msgname).
  14680. # Done with setattr to hide the class variable from mypy.
  14681. setattr(MAVLink_camera_fov_status_message, "name", mavlink_msg_deprecated_name_property())
  14682. class MAVLink_camera_tracking_image_status_message(MAVLink_message):
  14683. """
  14684. Camera tracking status, sent while in active tracking. Use
  14685. MAV_CMD_SET_MESSAGE_INTERVAL to define message interval.
  14686. """
  14687. id = MAVLINK_MSG_ID_CAMERA_TRACKING_IMAGE_STATUS
  14688. msgname = "CAMERA_TRACKING_IMAGE_STATUS"
  14689. fieldnames = ["tracking_status", "tracking_mode", "target_data", "point_x", "point_y", "radius", "rec_top_x", "rec_top_y", "rec_bottom_x", "rec_bottom_y"]
  14690. 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"]
  14691. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "float", "float", "float", "float", "float", "float", "float"]
  14692. fielddisplays_by_name: Dict[str, str] = {"target_data": "bitmask"}
  14693. fieldenums_by_name: Dict[str, str] = {"tracking_status": "CAMERA_TRACKING_STATUS_FLAGS", "tracking_mode": "CAMERA_TRACKING_MODE", "target_data": "CAMERA_TRACKING_TARGET_DATA"}
  14694. fieldunits_by_name: Dict[str, str] = {}
  14695. native_format = bytearray(b"<fffffffBBB")
  14696. orders = [7, 8, 9, 0, 1, 2, 3, 4, 5, 6]
  14697. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  14698. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  14699. crc_extra = 126
  14700. unpacker = struct.Struct("<fffffffBBB")
  14701. instance_field = None
  14702. instance_offset = -1
  14703. 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):
  14704. MAVLink_message.__init__(self, MAVLink_camera_tracking_image_status_message.id, MAVLink_camera_tracking_image_status_message.msgname)
  14705. self._fieldnames = MAVLink_camera_tracking_image_status_message.fieldnames
  14706. self._instance_field = MAVLink_camera_tracking_image_status_message.instance_field
  14707. self._instance_offset = MAVLink_camera_tracking_image_status_message.instance_offset
  14708. self.tracking_status = tracking_status
  14709. self.tracking_mode = tracking_mode
  14710. self.target_data = target_data
  14711. self.point_x = point_x
  14712. self.point_y = point_y
  14713. self.radius = radius
  14714. self.rec_top_x = rec_top_x
  14715. self.rec_top_y = rec_top_y
  14716. self.rec_bottom_x = rec_bottom_x
  14717. self.rec_bottom_y = rec_bottom_y
  14718. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14719. 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)
  14720. # Define name on the class for backwards compatibility (it is now msgname).
  14721. # Done with setattr to hide the class variable from mypy.
  14722. setattr(MAVLink_camera_tracking_image_status_message, "name", mavlink_msg_deprecated_name_property())
  14723. class MAVLink_camera_tracking_geo_status_message(MAVLink_message):
  14724. """
  14725. Camera tracking status, sent while in active tracking. Use
  14726. MAV_CMD_SET_MESSAGE_INTERVAL to define message interval.
  14727. """
  14728. id = MAVLINK_MSG_ID_CAMERA_TRACKING_GEO_STATUS
  14729. msgname = "CAMERA_TRACKING_GEO_STATUS"
  14730. fieldnames = ["tracking_status", "lat", "lon", "alt", "h_acc", "v_acc", "vel_n", "vel_e", "vel_d", "vel_acc", "dist", "hdg", "hdg_acc"]
  14731. ordered_fieldnames = ["lat", "lon", "alt", "h_acc", "v_acc", "vel_n", "vel_e", "vel_d", "vel_acc", "dist", "hdg", "hdg_acc", "tracking_status"]
  14732. fieldtypes = ["uint8_t", "int32_t", "int32_t", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float"]
  14733. fielddisplays_by_name: Dict[str, str] = {}
  14734. fieldenums_by_name: Dict[str, str] = {"tracking_status": "CAMERA_TRACKING_STATUS_FLAGS"}
  14735. 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"}
  14736. native_format = bytearray(b"<iiffffffffffB")
  14737. orders = [12, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
  14738. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  14739. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  14740. crc_extra = 18
  14741. unpacker = struct.Struct("<iiffffffffffB")
  14742. instance_field = None
  14743. instance_offset = -1
  14744. 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):
  14745. MAVLink_message.__init__(self, MAVLink_camera_tracking_geo_status_message.id, MAVLink_camera_tracking_geo_status_message.msgname)
  14746. self._fieldnames = MAVLink_camera_tracking_geo_status_message.fieldnames
  14747. self._instance_field = MAVLink_camera_tracking_geo_status_message.instance_field
  14748. self._instance_offset = MAVLink_camera_tracking_geo_status_message.instance_offset
  14749. self.tracking_status = tracking_status
  14750. self.lat = lat
  14751. self.lon = lon
  14752. self.alt = alt
  14753. self.h_acc = h_acc
  14754. self.v_acc = v_acc
  14755. self.vel_n = vel_n
  14756. self.vel_e = vel_e
  14757. self.vel_d = vel_d
  14758. self.vel_acc = vel_acc
  14759. self.dist = dist
  14760. self.hdg = hdg
  14761. self.hdg_acc = hdg_acc
  14762. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14763. 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)
  14764. # Define name on the class for backwards compatibility (it is now msgname).
  14765. # Done with setattr to hide the class variable from mypy.
  14766. setattr(MAVLink_camera_tracking_geo_status_message, "name", mavlink_msg_deprecated_name_property())
  14767. class MAVLink_gimbal_manager_information_message(MAVLink_message):
  14768. """
  14769. Information about a high level gimbal manager. This message should
  14770. be requested by a ground station using MAV_CMD_REQUEST_MESSAGE.
  14771. """
  14772. id = MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION
  14773. msgname = "GIMBAL_MANAGER_INFORMATION"
  14774. fieldnames = ["time_boot_ms", "cap_flags", "gimbal_device_id", "roll_min", "roll_max", "pitch_min", "pitch_max", "yaw_min", "yaw_max"]
  14775. ordered_fieldnames = ["time_boot_ms", "cap_flags", "roll_min", "roll_max", "pitch_min", "pitch_max", "yaw_min", "yaw_max", "gimbal_device_id"]
  14776. fieldtypes = ["uint32_t", "uint32_t", "uint8_t", "float", "float", "float", "float", "float", "float"]
  14777. fielddisplays_by_name: Dict[str, str] = {"cap_flags": "bitmask"}
  14778. fieldenums_by_name: Dict[str, str] = {"cap_flags": "GIMBAL_MANAGER_CAP_FLAGS"}
  14779. 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"}
  14780. native_format = bytearray(b"<IIffffffB")
  14781. orders = [0, 1, 8, 2, 3, 4, 5, 6, 7]
  14782. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1]
  14783. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0]
  14784. crc_extra = 70
  14785. unpacker = struct.Struct("<IIffffffB")
  14786. instance_field = "gimbal_device_id"
  14787. instance_offset = 32
  14788. 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):
  14789. MAVLink_message.__init__(self, MAVLink_gimbal_manager_information_message.id, MAVLink_gimbal_manager_information_message.msgname)
  14790. self._fieldnames = MAVLink_gimbal_manager_information_message.fieldnames
  14791. self._instance_field = MAVLink_gimbal_manager_information_message.instance_field
  14792. self._instance_offset = MAVLink_gimbal_manager_information_message.instance_offset
  14793. self.time_boot_ms = time_boot_ms
  14794. self.cap_flags = cap_flags
  14795. self.gimbal_device_id = gimbal_device_id
  14796. self.roll_min = roll_min
  14797. self.roll_max = roll_max
  14798. self.pitch_min = pitch_min
  14799. self.pitch_max = pitch_max
  14800. self.yaw_min = yaw_min
  14801. self.yaw_max = yaw_max
  14802. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14803. 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)
  14804. # Define name on the class for backwards compatibility (it is now msgname).
  14805. # Done with setattr to hide the class variable from mypy.
  14806. setattr(MAVLink_gimbal_manager_information_message, "name", mavlink_msg_deprecated_name_property())
  14807. class MAVLink_gimbal_manager_status_message(MAVLink_message):
  14808. """
  14809. Current status about a high level gimbal manager. This message
  14810. should be broadcast at a low regular rate (e.g. 5Hz).
  14811. """
  14812. id = MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS
  14813. msgname = "GIMBAL_MANAGER_STATUS"
  14814. fieldnames = ["time_boot_ms", "flags", "gimbal_device_id", "primary_control_sysid", "primary_control_compid", "secondary_control_sysid", "secondary_control_compid"]
  14815. ordered_fieldnames = ["time_boot_ms", "flags", "gimbal_device_id", "primary_control_sysid", "primary_control_compid", "secondary_control_sysid", "secondary_control_compid"]
  14816. fieldtypes = ["uint32_t", "uint32_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t"]
  14817. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  14818. fieldenums_by_name: Dict[str, str] = {"flags": "GIMBAL_MANAGER_FLAGS"}
  14819. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms"}
  14820. native_format = bytearray(b"<IIBBBBB")
  14821. orders = [0, 1, 2, 3, 4, 5, 6]
  14822. lengths = [1, 1, 1, 1, 1, 1, 1]
  14823. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  14824. crc_extra = 48
  14825. unpacker = struct.Struct("<IIBBBBB")
  14826. instance_field = "gimbal_device_id"
  14827. instance_offset = 8
  14828. 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):
  14829. MAVLink_message.__init__(self, MAVLink_gimbal_manager_status_message.id, MAVLink_gimbal_manager_status_message.msgname)
  14830. self._fieldnames = MAVLink_gimbal_manager_status_message.fieldnames
  14831. self._instance_field = MAVLink_gimbal_manager_status_message.instance_field
  14832. self._instance_offset = MAVLink_gimbal_manager_status_message.instance_offset
  14833. self.time_boot_ms = time_boot_ms
  14834. self.flags = flags
  14835. self.gimbal_device_id = gimbal_device_id
  14836. self.primary_control_sysid = primary_control_sysid
  14837. self.primary_control_compid = primary_control_compid
  14838. self.secondary_control_sysid = secondary_control_sysid
  14839. self.secondary_control_compid = secondary_control_compid
  14840. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14841. 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)
  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_gimbal_manager_status_message, "name", mavlink_msg_deprecated_name_property())
  14845. class MAVLink_gimbal_manager_set_attitude_message(MAVLink_message):
  14846. """
  14847. High level message to control a gimbal's attitude. This message is
  14848. to be sent to the gimbal manager (e.g. from a ground station).
  14849. Angles and rates can be set to NaN according to use case.
  14850. """
  14851. id = MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_ATTITUDE
  14852. msgname = "GIMBAL_MANAGER_SET_ATTITUDE"
  14853. fieldnames = ["target_system", "target_component", "flags", "gimbal_device_id", "q", "angular_velocity_x", "angular_velocity_y", "angular_velocity_z"]
  14854. ordered_fieldnames = ["flags", "q", "angular_velocity_x", "angular_velocity_y", "angular_velocity_z", "target_system", "target_component", "gimbal_device_id"]
  14855. fieldtypes = ["uint8_t", "uint8_t", "uint32_t", "uint8_t", "float", "float", "float", "float"]
  14856. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  14857. fieldenums_by_name: Dict[str, str] = {"flags": "GIMBAL_MANAGER_FLAGS"}
  14858. fieldunits_by_name: Dict[str, str] = {"angular_velocity_x": "rad/s", "angular_velocity_y": "rad/s", "angular_velocity_z": "rad/s"}
  14859. native_format = bytearray(b"<IffffBBB")
  14860. orders = [5, 6, 0, 7, 1, 2, 3, 4]
  14861. lengths = [1, 4, 1, 1, 1, 1, 1, 1]
  14862. array_lengths = [0, 4, 0, 0, 0, 0, 0, 0]
  14863. crc_extra = 123
  14864. unpacker = struct.Struct("<I4ffffBBB")
  14865. instance_field = "gimbal_device_id"
  14866. instance_offset = 34
  14867. 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):
  14868. MAVLink_message.__init__(self, MAVLink_gimbal_manager_set_attitude_message.id, MAVLink_gimbal_manager_set_attitude_message.msgname)
  14869. self._fieldnames = MAVLink_gimbal_manager_set_attitude_message.fieldnames
  14870. self._instance_field = MAVLink_gimbal_manager_set_attitude_message.instance_field
  14871. self._instance_offset = MAVLink_gimbal_manager_set_attitude_message.instance_offset
  14872. self.target_system = target_system
  14873. self.target_component = target_component
  14874. self.flags = flags
  14875. self.gimbal_device_id = gimbal_device_id
  14876. self.q = q
  14877. self.angular_velocity_x = angular_velocity_x
  14878. self.angular_velocity_y = angular_velocity_y
  14879. self.angular_velocity_z = angular_velocity_z
  14880. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14881. 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)
  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_set_attitude_message, "name", mavlink_msg_deprecated_name_property())
  14885. class MAVLink_gimbal_device_information_message(MAVLink_message):
  14886. """
  14887. Information about a low level gimbal. This message should be
  14888. requested by the gimbal manager or a ground station using
  14889. MAV_CMD_REQUEST_MESSAGE. The maximum angles and rates are the
  14890. limits by hardware. However, the limits by software used are
  14891. likely different/smaller and dependent on mode/settings/etc..
  14892. """
  14893. id = MAVLINK_MSG_ID_GIMBAL_DEVICE_INFORMATION
  14894. msgname = "GIMBAL_DEVICE_INFORMATION"
  14895. 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"]
  14896. 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"]
  14897. fieldtypes = ["uint32_t", "char", "char", "char", "uint32_t", "uint32_t", "uint64_t", "uint16_t", "uint16_t", "float", "float", "float", "float", "float", "float", "uint8_t"]
  14898. fielddisplays_by_name: Dict[str, str] = {"cap_flags": "bitmask", "custom_cap_flags": "bitmask"}
  14899. fieldenums_by_name: Dict[str, str] = {"cap_flags": "GIMBAL_DEVICE_CAP_FLAGS"}
  14900. 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"}
  14901. native_format = bytearray(b"<QIIIffffffHHcccB")
  14902. orders = [1, 12, 13, 14, 2, 3, 0, 10, 11, 4, 5, 6, 7, 8, 9, 15]
  14903. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  14904. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 32, 32, 0]
  14905. crc_extra = 74
  14906. unpacker = struct.Struct("<QIIIffffffHH32s32s32sB")
  14907. instance_field = None
  14908. instance_offset = -1
  14909. 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):
  14910. MAVLink_message.__init__(self, MAVLink_gimbal_device_information_message.id, MAVLink_gimbal_device_information_message.msgname)
  14911. self._fieldnames = MAVLink_gimbal_device_information_message.fieldnames
  14912. self._instance_field = MAVLink_gimbal_device_information_message.instance_field
  14913. self._instance_offset = MAVLink_gimbal_device_information_message.instance_offset
  14914. self.time_boot_ms = time_boot_ms
  14915. self._vendor_name_raw = vendor_name
  14916. self.vendor_name = vendor_name.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  14917. self._model_name_raw = model_name
  14918. self.model_name = model_name.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  14919. self._custom_name_raw = custom_name
  14920. self.custom_name = custom_name.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  14921. self.firmware_version = firmware_version
  14922. self.hardware_version = hardware_version
  14923. self.uid = uid
  14924. self.cap_flags = cap_flags
  14925. self.custom_cap_flags = custom_cap_flags
  14926. self.roll_min = roll_min
  14927. self.roll_max = roll_max
  14928. self.pitch_min = pitch_min
  14929. self.pitch_max = pitch_max
  14930. self.yaw_min = yaw_min
  14931. self.yaw_max = yaw_max
  14932. self.gimbal_device_id = gimbal_device_id
  14933. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14934. 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)
  14935. # Define name on the class for backwards compatibility (it is now msgname).
  14936. # Done with setattr to hide the class variable from mypy.
  14937. setattr(MAVLink_gimbal_device_information_message, "name", mavlink_msg_deprecated_name_property())
  14938. class MAVLink_gimbal_device_set_attitude_message(MAVLink_message):
  14939. """
  14940. Low level message to control a gimbal device's attitude.
  14941. This message is to be sent from the gimbal manager to the gimbal
  14942. device component. The quaternion and angular velocities
  14943. can be set to NaN according to use case. For the angles
  14944. encoded in the quaternion and the angular velocities holds:
  14945. If the flag GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME is set, then
  14946. they are relative to the vehicle heading (vehicle frame).
  14947. If the flag GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME is set, then
  14948. they are relative to absolute North (earth frame). If
  14949. neither of these flags are set, then (for backwards compatibility)
  14950. it holds: If the flag GIMBAL_DEVICE_FLAGS_YAW_LOCK is
  14951. set, then they are relative to absolute North (earth frame),
  14952. else they are relative to the vehicle heading (vehicle frame).
  14953. Setting both GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME and
  14954. GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME is not allowed.
  14955. These rules are to ensure backwards compatibility. New
  14956. implementations should always set either
  14957. GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME or
  14958. GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME.
  14959. """
  14960. id = MAVLINK_MSG_ID_GIMBAL_DEVICE_SET_ATTITUDE
  14961. msgname = "GIMBAL_DEVICE_SET_ATTITUDE"
  14962. fieldnames = ["target_system", "target_component", "flags", "q", "angular_velocity_x", "angular_velocity_y", "angular_velocity_z"]
  14963. ordered_fieldnames = ["q", "angular_velocity_x", "angular_velocity_y", "angular_velocity_z", "flags", "target_system", "target_component"]
  14964. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "float", "float", "float", "float"]
  14965. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  14966. fieldenums_by_name: Dict[str, str] = {"flags": "GIMBAL_DEVICE_FLAGS"}
  14967. fieldunits_by_name: Dict[str, str] = {"angular_velocity_x": "rad/s", "angular_velocity_y": "rad/s", "angular_velocity_z": "rad/s"}
  14968. native_format = bytearray(b"<ffffHBB")
  14969. orders = [5, 6, 4, 0, 1, 2, 3]
  14970. lengths = [4, 1, 1, 1, 1, 1, 1]
  14971. array_lengths = [4, 0, 0, 0, 0, 0, 0]
  14972. crc_extra = 99
  14973. unpacker = struct.Struct("<4ffffHBB")
  14974. instance_field = None
  14975. instance_offset = -1
  14976. 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):
  14977. MAVLink_message.__init__(self, MAVLink_gimbal_device_set_attitude_message.id, MAVLink_gimbal_device_set_attitude_message.msgname)
  14978. self._fieldnames = MAVLink_gimbal_device_set_attitude_message.fieldnames
  14979. self._instance_field = MAVLink_gimbal_device_set_attitude_message.instance_field
  14980. self._instance_offset = MAVLink_gimbal_device_set_attitude_message.instance_offset
  14981. self.target_system = target_system
  14982. self.target_component = target_component
  14983. self.flags = flags
  14984. self.q = q
  14985. self.angular_velocity_x = angular_velocity_x
  14986. self.angular_velocity_y = angular_velocity_y
  14987. self.angular_velocity_z = angular_velocity_z
  14988. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  14989. 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)
  14990. # Define name on the class for backwards compatibility (it is now msgname).
  14991. # Done with setattr to hide the class variable from mypy.
  14992. setattr(MAVLink_gimbal_device_set_attitude_message, "name", mavlink_msg_deprecated_name_property())
  14993. class MAVLink_gimbal_device_attitude_status_message(MAVLink_message):
  14994. """
  14995. Message reporting the status of a gimbal device. This
  14996. message should be broadcast by a gimbal device component at a low
  14997. regular rate (e.g. 5 Hz). For the angles encoded in the
  14998. quaternion and the angular velocities holds: If the flag
  14999. GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME is set, then they are
  15000. relative to the vehicle heading (vehicle frame). If the
  15001. flag GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME is set, then they are
  15002. relative to absolute North (earth frame). If neither of
  15003. these flags are set, then (for backwards compatibility) it holds:
  15004. If the flag GIMBAL_DEVICE_FLAGS_YAW_LOCK is set, then they are
  15005. relative to absolute North (earth frame), else they are
  15006. relative to the vehicle heading (vehicle frame). Other
  15007. conditions of the flags are not allowed. The quaternion
  15008. and angular velocities in the other frame can be calculated from
  15009. delta_yaw and delta_yaw_velocity as q_earth =
  15010. q_delta_yaw * q_vehicle and w_earth = w_delta_yaw_velocity +
  15011. w_vehicle (if not NaN). If neither the
  15012. GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME nor the
  15013. GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME flag is set, then
  15014. (for backwards compatibility) the data in the delta_yaw and
  15015. delta_yaw_velocity fields are to be ignored. New
  15016. implementations should always set either
  15017. GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME or
  15018. GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME, and always
  15019. should set delta_yaw and delta_yaw_velocity either to the proper
  15020. value or NaN.
  15021. """
  15022. id = MAVLINK_MSG_ID_GIMBAL_DEVICE_ATTITUDE_STATUS
  15023. msgname = "GIMBAL_DEVICE_ATTITUDE_STATUS"
  15024. 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"]
  15025. 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"]
  15026. fieldtypes = ["uint8_t", "uint8_t", "uint32_t", "uint16_t", "float", "float", "float", "float", "uint32_t", "float", "float", "uint8_t"]
  15027. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask", "failure_flags": "bitmask"}
  15028. fieldenums_by_name: Dict[str, str] = {"flags": "GIMBAL_DEVICE_FLAGS", "failure_flags": "GIMBAL_DEVICE_ERROR_FLAGS"}
  15029. 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"}
  15030. native_format = bytearray(b"<IffffIHBBffB")
  15031. orders = [7, 8, 0, 6, 1, 2, 3, 4, 5, 9, 10, 11]
  15032. lengths = [1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  15033. array_lengths = [0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  15034. crc_extra = 137
  15035. unpacker = struct.Struct("<I4ffffIHBBffB")
  15036. instance_field = None
  15037. instance_offset = -1
  15038. 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):
  15039. MAVLink_message.__init__(self, MAVLink_gimbal_device_attitude_status_message.id, MAVLink_gimbal_device_attitude_status_message.msgname)
  15040. self._fieldnames = MAVLink_gimbal_device_attitude_status_message.fieldnames
  15041. self._instance_field = MAVLink_gimbal_device_attitude_status_message.instance_field
  15042. self._instance_offset = MAVLink_gimbal_device_attitude_status_message.instance_offset
  15043. self.target_system = target_system
  15044. self.target_component = target_component
  15045. self.time_boot_ms = time_boot_ms
  15046. self.flags = flags
  15047. self.q = q
  15048. self.angular_velocity_x = angular_velocity_x
  15049. self.angular_velocity_y = angular_velocity_y
  15050. self.angular_velocity_z = angular_velocity_z
  15051. self.failure_flags = failure_flags
  15052. self.delta_yaw = delta_yaw
  15053. self.delta_yaw_velocity = delta_yaw_velocity
  15054. self.gimbal_device_id = gimbal_device_id
  15055. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15056. 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)
  15057. # Define name on the class for backwards compatibility (it is now msgname).
  15058. # Done with setattr to hide the class variable from mypy.
  15059. setattr(MAVLink_gimbal_device_attitude_status_message, "name", mavlink_msg_deprecated_name_property())
  15060. class MAVLink_autopilot_state_for_gimbal_device_message(MAVLink_message):
  15061. """
  15062. Low level message containing autopilot state relevant for a gimbal
  15063. device. This message is to be sent from the autopilot to the
  15064. gimbal device component. The data of this message are for the
  15065. gimbal device's estimator corrections, in particular horizon
  15066. compensation, as well as indicates autopilot control intentions,
  15067. e.g. feed forward angular control in the z-axis.
  15068. """
  15069. id = MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE
  15070. msgname = "AUTOPILOT_STATE_FOR_GIMBAL_DEVICE"
  15071. 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"]
  15072. 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"]
  15073. fieldtypes = ["uint8_t", "uint8_t", "uint64_t", "float", "uint32_t", "float", "float", "float", "uint32_t", "float", "uint16_t", "uint8_t", "float"]
  15074. fielddisplays_by_name: Dict[str, str] = {"estimator_status": "bitmask"}
  15075. fieldenums_by_name: Dict[str, str] = {"estimator_status": "ESTIMATOR_STATUS_FLAGS", "landed_state": "MAV_LANDED_STATE"}
  15076. 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"}
  15077. native_format = bytearray(b"<QfIfffIfHBBBf")
  15078. orders = [9, 10, 0, 1, 2, 3, 4, 5, 6, 7, 8, 11, 12]
  15079. lengths = [1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  15080. array_lengths = [0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  15081. crc_extra = 210
  15082. unpacker = struct.Struct("<Q4fIfffIfHBBBf")
  15083. instance_field = None
  15084. instance_offset = -1
  15085. 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):
  15086. MAVLink_message.__init__(self, MAVLink_autopilot_state_for_gimbal_device_message.id, MAVLink_autopilot_state_for_gimbal_device_message.msgname)
  15087. self._fieldnames = MAVLink_autopilot_state_for_gimbal_device_message.fieldnames
  15088. self._instance_field = MAVLink_autopilot_state_for_gimbal_device_message.instance_field
  15089. self._instance_offset = MAVLink_autopilot_state_for_gimbal_device_message.instance_offset
  15090. self.target_system = target_system
  15091. self.target_component = target_component
  15092. self.time_boot_us = time_boot_us
  15093. self.q = q
  15094. self.q_estimated_delay_us = q_estimated_delay_us
  15095. self.vx = vx
  15096. self.vy = vy
  15097. self.vz = vz
  15098. self.v_estimated_delay_us = v_estimated_delay_us
  15099. self.feed_forward_angular_velocity_z = feed_forward_angular_velocity_z
  15100. self.estimator_status = estimator_status
  15101. self.landed_state = landed_state
  15102. self.angular_velocity_z = angular_velocity_z
  15103. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15104. 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)
  15105. # Define name on the class for backwards compatibility (it is now msgname).
  15106. # Done with setattr to hide the class variable from mypy.
  15107. setattr(MAVLink_autopilot_state_for_gimbal_device_message, "name", mavlink_msg_deprecated_name_property())
  15108. class MAVLink_gimbal_manager_set_pitchyaw_message(MAVLink_message):
  15109. """
  15110. Set gimbal manager pitch and yaw angles (high rate message). This
  15111. message is to be sent to the gimbal manager (e.g. from a ground
  15112. station) and will be ignored by gimbal devices. Angles and rates
  15113. can be set to NaN according to use case. Use
  15114. MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW for low-rate adjustments that
  15115. require confirmation.
  15116. """
  15117. id = MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_PITCHYAW
  15118. msgname = "GIMBAL_MANAGER_SET_PITCHYAW"
  15119. fieldnames = ["target_system", "target_component", "flags", "gimbal_device_id", "pitch", "yaw", "pitch_rate", "yaw_rate"]
  15120. ordered_fieldnames = ["flags", "pitch", "yaw", "pitch_rate", "yaw_rate", "target_system", "target_component", "gimbal_device_id"]
  15121. fieldtypes = ["uint8_t", "uint8_t", "uint32_t", "uint8_t", "float", "float", "float", "float"]
  15122. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  15123. fieldenums_by_name: Dict[str, str] = {"flags": "GIMBAL_MANAGER_FLAGS"}
  15124. fieldunits_by_name: Dict[str, str] = {"pitch": "rad", "yaw": "rad", "pitch_rate": "rad/s", "yaw_rate": "rad/s"}
  15125. native_format = bytearray(b"<IffffBBB")
  15126. orders = [5, 6, 0, 7, 1, 2, 3, 4]
  15127. lengths = [1, 1, 1, 1, 1, 1, 1, 1]
  15128. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0]
  15129. crc_extra = 1
  15130. unpacker = struct.Struct("<IffffBBB")
  15131. instance_field = "gimbal_device_id"
  15132. instance_offset = 22
  15133. 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):
  15134. MAVLink_message.__init__(self, MAVLink_gimbal_manager_set_pitchyaw_message.id, MAVLink_gimbal_manager_set_pitchyaw_message.msgname)
  15135. self._fieldnames = MAVLink_gimbal_manager_set_pitchyaw_message.fieldnames
  15136. self._instance_field = MAVLink_gimbal_manager_set_pitchyaw_message.instance_field
  15137. self._instance_offset = MAVLink_gimbal_manager_set_pitchyaw_message.instance_offset
  15138. self.target_system = target_system
  15139. self.target_component = target_component
  15140. self.flags = flags
  15141. self.gimbal_device_id = gimbal_device_id
  15142. self.pitch = pitch
  15143. self.yaw = yaw
  15144. self.pitch_rate = pitch_rate
  15145. self.yaw_rate = yaw_rate
  15146. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15147. 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)
  15148. # Define name on the class for backwards compatibility (it is now msgname).
  15149. # Done with setattr to hide the class variable from mypy.
  15150. setattr(MAVLink_gimbal_manager_set_pitchyaw_message, "name", mavlink_msg_deprecated_name_property())
  15151. class MAVLink_gimbal_manager_set_manual_control_message(MAVLink_message):
  15152. """
  15153. High level message to control a gimbal manually. The angles or
  15154. angular rates are unitless; the actual rates will depend on
  15155. internal gimbal manager settings/configuration (e.g. set by
  15156. parameters). This message is to be sent to the gimbal manager
  15157. (e.g. from a ground station). Angles and rates can be set to NaN
  15158. according to use case.
  15159. """
  15160. id = MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_MANUAL_CONTROL
  15161. msgname = "GIMBAL_MANAGER_SET_MANUAL_CONTROL"
  15162. fieldnames = ["target_system", "target_component", "flags", "gimbal_device_id", "pitch", "yaw", "pitch_rate", "yaw_rate"]
  15163. ordered_fieldnames = ["flags", "pitch", "yaw", "pitch_rate", "yaw_rate", "target_system", "target_component", "gimbal_device_id"]
  15164. fieldtypes = ["uint8_t", "uint8_t", "uint32_t", "uint8_t", "float", "float", "float", "float"]
  15165. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  15166. fieldenums_by_name: Dict[str, str] = {"flags": "GIMBAL_MANAGER_FLAGS"}
  15167. fieldunits_by_name: Dict[str, str] = {}
  15168. native_format = bytearray(b"<IffffBBB")
  15169. orders = [5, 6, 0, 7, 1, 2, 3, 4]
  15170. lengths = [1, 1, 1, 1, 1, 1, 1, 1]
  15171. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0]
  15172. crc_extra = 20
  15173. unpacker = struct.Struct("<IffffBBB")
  15174. instance_field = "gimbal_device_id"
  15175. instance_offset = 22
  15176. 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):
  15177. MAVLink_message.__init__(self, MAVLink_gimbal_manager_set_manual_control_message.id, MAVLink_gimbal_manager_set_manual_control_message.msgname)
  15178. self._fieldnames = MAVLink_gimbal_manager_set_manual_control_message.fieldnames
  15179. self._instance_field = MAVLink_gimbal_manager_set_manual_control_message.instance_field
  15180. self._instance_offset = MAVLink_gimbal_manager_set_manual_control_message.instance_offset
  15181. self.target_system = target_system
  15182. self.target_component = target_component
  15183. self.flags = flags
  15184. self.gimbal_device_id = gimbal_device_id
  15185. self.pitch = pitch
  15186. self.yaw = yaw
  15187. self.pitch_rate = pitch_rate
  15188. self.yaw_rate = yaw_rate
  15189. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15190. 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)
  15191. # Define name on the class for backwards compatibility (it is now msgname).
  15192. # Done with setattr to hide the class variable from mypy.
  15193. setattr(MAVLink_gimbal_manager_set_manual_control_message, "name", mavlink_msg_deprecated_name_property())
  15194. class MAVLink_esc_info_message(MAVLink_message):
  15195. """
  15196. ESC information for lower rate streaming. Recommended streaming
  15197. rate 1Hz. See ESC_STATUS for higher-rate ESC data.
  15198. """
  15199. id = MAVLINK_MSG_ID_ESC_INFO
  15200. msgname = "ESC_INFO"
  15201. fieldnames = ["index", "time_usec", "counter", "count", "connection_type", "info", "failure_flags", "error_count", "temperature"]
  15202. ordered_fieldnames = ["time_usec", "error_count", "counter", "failure_flags", "temperature", "index", "count", "connection_type", "info"]
  15203. fieldtypes = ["uint8_t", "uint64_t", "uint16_t", "uint8_t", "uint8_t", "uint8_t", "uint16_t", "uint32_t", "int16_t"]
  15204. fielddisplays_by_name: Dict[str, str] = {"info": "bitmask", "failure_flags": "bitmask"}
  15205. fieldenums_by_name: Dict[str, str] = {"connection_type": "ESC_CONNECTION_TYPE", "failure_flags": "ESC_FAILURE_FLAGS"}
  15206. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "temperature": "cdegC"}
  15207. native_format = bytearray(b"<QIHHhBBBB")
  15208. orders = [5, 0, 2, 6, 7, 8, 3, 1, 4]
  15209. lengths = [1, 4, 1, 4, 4, 1, 1, 1, 1]
  15210. array_lengths = [0, 4, 0, 4, 4, 0, 0, 0, 0]
  15211. crc_extra = 251
  15212. unpacker = struct.Struct("<Q4IH4H4hBBBB")
  15213. instance_field = "index"
  15214. instance_offset = 42
  15215. 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]):
  15216. MAVLink_message.__init__(self, MAVLink_esc_info_message.id, MAVLink_esc_info_message.msgname)
  15217. self._fieldnames = MAVLink_esc_info_message.fieldnames
  15218. self._instance_field = MAVLink_esc_info_message.instance_field
  15219. self._instance_offset = MAVLink_esc_info_message.instance_offset
  15220. self.index = index
  15221. self.time_usec = time_usec
  15222. self.counter = counter
  15223. self.count = count
  15224. self.connection_type = connection_type
  15225. self.info = info
  15226. self.failure_flags = failure_flags
  15227. self.error_count = error_count
  15228. self.temperature = temperature
  15229. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15230. 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)
  15231. # Define name on the class for backwards compatibility (it is now msgname).
  15232. # Done with setattr to hide the class variable from mypy.
  15233. setattr(MAVLink_esc_info_message, "name", mavlink_msg_deprecated_name_property())
  15234. class MAVLink_esc_status_message(MAVLink_message):
  15235. """
  15236. ESC information for higher rate streaming. Recommended streaming
  15237. rate is ~10 Hz. Information that changes more slowly is sent in
  15238. ESC_INFO. It should typically only be streamed on high-bandwidth
  15239. links (i.e. to a companion computer).
  15240. """
  15241. id = MAVLINK_MSG_ID_ESC_STATUS
  15242. msgname = "ESC_STATUS"
  15243. fieldnames = ["index", "time_usec", "rpm", "voltage", "current"]
  15244. ordered_fieldnames = ["time_usec", "rpm", "voltage", "current", "index"]
  15245. fieldtypes = ["uint8_t", "uint64_t", "int32_t", "float", "float"]
  15246. fielddisplays_by_name: Dict[str, str] = {}
  15247. fieldenums_by_name: Dict[str, str] = {}
  15248. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "rpm": "rpm", "voltage": "V", "current": "A"}
  15249. native_format = bytearray(b"<QiffB")
  15250. orders = [4, 0, 1, 2, 3]
  15251. lengths = [1, 4, 4, 4, 1]
  15252. array_lengths = [0, 4, 4, 4, 0]
  15253. crc_extra = 10
  15254. unpacker = struct.Struct("<Q4i4f4fB")
  15255. instance_field = "index"
  15256. instance_offset = 56
  15257. def __init__(self, index: int, time_usec: int, rpm: Sequence[int], voltage: Sequence[float], current: Sequence[float]):
  15258. MAVLink_message.__init__(self, MAVLink_esc_status_message.id, MAVLink_esc_status_message.msgname)
  15259. self._fieldnames = MAVLink_esc_status_message.fieldnames
  15260. self._instance_field = MAVLink_esc_status_message.instance_field
  15261. self._instance_offset = MAVLink_esc_status_message.instance_offset
  15262. self.index = index
  15263. self.time_usec = time_usec
  15264. self.rpm = rpm
  15265. self.voltage = voltage
  15266. self.current = current
  15267. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15268. 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)
  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_esc_status_message, "name", mavlink_msg_deprecated_name_property())
  15272. class MAVLink_wifi_config_ap_message(MAVLink_message):
  15273. """
  15274. Configure WiFi AP SSID, password, and mode. This message is re-
  15275. emitted as an acknowledgement by the AP. The message may also be
  15276. explicitly requested using MAV_CMD_REQUEST_MESSAGE
  15277. """
  15278. id = MAVLINK_MSG_ID_WIFI_CONFIG_AP
  15279. msgname = "WIFI_CONFIG_AP"
  15280. fieldnames = ["ssid", "password", "mode", "response"]
  15281. ordered_fieldnames = ["ssid", "password", "mode", "response"]
  15282. fieldtypes = ["char", "char", "int8_t", "int8_t"]
  15283. fielddisplays_by_name: Dict[str, str] = {}
  15284. fieldenums_by_name: Dict[str, str] = {"mode": "WIFI_CONFIG_AP_MODE", "response": "WIFI_CONFIG_AP_RESPONSE"}
  15285. fieldunits_by_name: Dict[str, str] = {}
  15286. native_format = bytearray(b"<ccbb")
  15287. orders = [0, 1, 2, 3]
  15288. lengths = [1, 1, 1, 1]
  15289. array_lengths = [32, 64, 0, 0]
  15290. crc_extra = 19
  15291. unpacker = struct.Struct("<32s64sbb")
  15292. instance_field = None
  15293. instance_offset = -1
  15294. def __init__(self, ssid: bytes, password: bytes, mode: int = 0, response: int = 0):
  15295. MAVLink_message.__init__(self, MAVLink_wifi_config_ap_message.id, MAVLink_wifi_config_ap_message.msgname)
  15296. self._fieldnames = MAVLink_wifi_config_ap_message.fieldnames
  15297. self._instance_field = MAVLink_wifi_config_ap_message.instance_field
  15298. self._instance_offset = MAVLink_wifi_config_ap_message.instance_offset
  15299. self._ssid_raw = ssid
  15300. self.ssid = ssid.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15301. self._password_raw = password
  15302. self.password = password.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15303. self.mode = mode
  15304. self.response = response
  15305. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15306. return self._pack(mav, self.crc_extra, self.unpacker.pack(self._ssid_raw, self._password_raw, self.mode, self.response), force_mavlink1=force_mavlink1)
  15307. # Define name on the class for backwards compatibility (it is now msgname).
  15308. # Done with setattr to hide the class variable from mypy.
  15309. setattr(MAVLink_wifi_config_ap_message, "name", mavlink_msg_deprecated_name_property())
  15310. class MAVLink_ais_vessel_message(MAVLink_message):
  15311. """
  15312. The location and information of an AIS vessel
  15313. """
  15314. id = MAVLINK_MSG_ID_AIS_VESSEL
  15315. msgname = "AIS_VESSEL"
  15316. fieldnames = ["MMSI", "lat", "lon", "COG", "heading", "velocity", "turn_rate", "navigational_status", "type", "dimension_bow", "dimension_stern", "dimension_port", "dimension_starboard", "callsign", "name", "tslc", "flags"]
  15317. 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"]
  15318. 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"]
  15319. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  15320. fieldenums_by_name: Dict[str, str] = {"navigational_status": "AIS_NAV_STATUS", "type": "AIS_TYPE", "flags": "AIS_FLAGS"}
  15321. 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"}
  15322. native_format = bytearray(b"<IiiHHHHHHHbBBBBcc")
  15323. orders = [0, 1, 2, 3, 4, 5, 10, 11, 12, 6, 7, 13, 14, 15, 16, 8, 9]
  15324. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  15325. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 20]
  15326. crc_extra = 243
  15327. unpacker = struct.Struct("<IiiHHHHHHHbBBBB7s20s")
  15328. instance_field = None
  15329. instance_offset = -1
  15330. 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):
  15331. MAVLink_message.__init__(self, MAVLink_ais_vessel_message.id, MAVLink_ais_vessel_message.msgname)
  15332. self._fieldnames = MAVLink_ais_vessel_message.fieldnames
  15333. self._instance_field = MAVLink_ais_vessel_message.instance_field
  15334. self._instance_offset = MAVLink_ais_vessel_message.instance_offset
  15335. self.MMSI = MMSI
  15336. self.lat = lat
  15337. self.lon = lon
  15338. self.COG = COG
  15339. self.heading = heading
  15340. self.velocity = velocity
  15341. self.turn_rate = turn_rate
  15342. self.navigational_status = navigational_status
  15343. self.type = type
  15344. self.dimension_bow = dimension_bow
  15345. self.dimension_stern = dimension_stern
  15346. self.dimension_port = dimension_port
  15347. self.dimension_starboard = dimension_starboard
  15348. self._callsign_raw = callsign
  15349. self.callsign = callsign.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15350. self._name_raw = name
  15351. self.name = name.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15352. self.tslc = tslc
  15353. self.flags = flags
  15354. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15355. 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)
  15356. # Define name on the class for backwards compatibility (it is now msgname).
  15357. # Done with setattr to hide the class variable from mypy.
  15358. setattr(MAVLink_ais_vessel_message, "name", mavlink_msg_deprecated_name_property())
  15359. class MAVLink_uavcan_node_status_message(MAVLink_message):
  15360. """
  15361. General status information of an UAVCAN node. Please refer to the
  15362. definition of the UAVCAN message "uavcan.protocol.NodeStatus" for
  15363. the background information. The UAVCAN specification is available
  15364. at http://uavcan.org.
  15365. """
  15366. id = MAVLINK_MSG_ID_UAVCAN_NODE_STATUS
  15367. msgname = "UAVCAN_NODE_STATUS"
  15368. fieldnames = ["time_usec", "uptime_sec", "health", "mode", "sub_mode", "vendor_specific_status_code"]
  15369. ordered_fieldnames = ["time_usec", "uptime_sec", "vendor_specific_status_code", "health", "mode", "sub_mode"]
  15370. fieldtypes = ["uint64_t", "uint32_t", "uint8_t", "uint8_t", "uint8_t", "uint16_t"]
  15371. fielddisplays_by_name: Dict[str, str] = {}
  15372. fieldenums_by_name: Dict[str, str] = {"health": "UAVCAN_NODE_HEALTH", "mode": "UAVCAN_NODE_MODE"}
  15373. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "uptime_sec": "s"}
  15374. native_format = bytearray(b"<QIHBBB")
  15375. orders = [0, 1, 3, 4, 5, 2]
  15376. lengths = [1, 1, 1, 1, 1, 1]
  15377. array_lengths = [0, 0, 0, 0, 0, 0]
  15378. crc_extra = 28
  15379. unpacker = struct.Struct("<QIHBBB")
  15380. instance_field = None
  15381. instance_offset = -1
  15382. def __init__(self, time_usec: int, uptime_sec: int, health: int, mode: int, sub_mode: int, vendor_specific_status_code: int):
  15383. MAVLink_message.__init__(self, MAVLink_uavcan_node_status_message.id, MAVLink_uavcan_node_status_message.msgname)
  15384. self._fieldnames = MAVLink_uavcan_node_status_message.fieldnames
  15385. self._instance_field = MAVLink_uavcan_node_status_message.instance_field
  15386. self._instance_offset = MAVLink_uavcan_node_status_message.instance_offset
  15387. self.time_usec = time_usec
  15388. self.uptime_sec = uptime_sec
  15389. self.health = health
  15390. self.mode = mode
  15391. self.sub_mode = sub_mode
  15392. self.vendor_specific_status_code = vendor_specific_status_code
  15393. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15394. 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)
  15395. # Define name on the class for backwards compatibility (it is now msgname).
  15396. # Done with setattr to hide the class variable from mypy.
  15397. setattr(MAVLink_uavcan_node_status_message, "name", mavlink_msg_deprecated_name_property())
  15398. class MAVLink_uavcan_node_info_message(MAVLink_message):
  15399. """
  15400. General information describing a particular UAVCAN node. Please
  15401. refer to the definition of the UAVCAN service
  15402. "uavcan.protocol.GetNodeInfo" for the background information. This
  15403. message should be emitted by the system whenever a new node
  15404. appears online, or an existing node reboots. Additionally, it can
  15405. be emitted upon request from the other end of the MAVLink channel
  15406. (see MAV_CMD_UAVCAN_GET_NODE_INFO). It is also not prohibited to
  15407. emit this message unconditionally at a low frequency. The UAVCAN
  15408. specification is available at http://uavcan.org.
  15409. """
  15410. id = MAVLINK_MSG_ID_UAVCAN_NODE_INFO
  15411. msgname = "UAVCAN_NODE_INFO"
  15412. fieldnames = ["time_usec", "uptime_sec", "name", "hw_version_major", "hw_version_minor", "hw_unique_id", "sw_version_major", "sw_version_minor", "sw_vcs_commit"]
  15413. 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"]
  15414. fieldtypes = ["uint64_t", "uint32_t", "char", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint32_t"]
  15415. fielddisplays_by_name: Dict[str, str] = {}
  15416. fieldenums_by_name: Dict[str, str] = {}
  15417. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "uptime_sec": "s"}
  15418. native_format = bytearray(b"<QIIcBBBBB")
  15419. orders = [0, 1, 3, 4, 5, 6, 7, 8, 2]
  15420. lengths = [1, 1, 1, 1, 1, 1, 16, 1, 1]
  15421. array_lengths = [0, 0, 0, 80, 0, 0, 16, 0, 0]
  15422. crc_extra = 95
  15423. unpacker = struct.Struct("<QII80sBB16BBB")
  15424. instance_field = None
  15425. instance_offset = -1
  15426. 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):
  15427. MAVLink_message.__init__(self, MAVLink_uavcan_node_info_message.id, MAVLink_uavcan_node_info_message.msgname)
  15428. self._fieldnames = MAVLink_uavcan_node_info_message.fieldnames
  15429. self._instance_field = MAVLink_uavcan_node_info_message.instance_field
  15430. self._instance_offset = MAVLink_uavcan_node_info_message.instance_offset
  15431. self.time_usec = time_usec
  15432. self.uptime_sec = uptime_sec
  15433. self._name_raw = name
  15434. self.name = name.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15435. self.hw_version_major = hw_version_major
  15436. self.hw_version_minor = hw_version_minor
  15437. self.hw_unique_id = hw_unique_id
  15438. self.sw_version_major = sw_version_major
  15439. self.sw_version_minor = sw_version_minor
  15440. self.sw_vcs_commit = sw_vcs_commit
  15441. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15442. 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)
  15443. # Define name on the class for backwards compatibility (it is now msgname).
  15444. # Done with setattr to hide the class variable from mypy.
  15445. setattr(MAVLink_uavcan_node_info_message, "name", mavlink_msg_deprecated_name_property())
  15446. class MAVLink_param_ext_request_read_message(MAVLink_message):
  15447. """
  15448. Request to read the value of a parameter with either the param_id
  15449. string id or param_index. PARAM_EXT_VALUE should be emitted in
  15450. response.
  15451. """
  15452. id = MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ
  15453. msgname = "PARAM_EXT_REQUEST_READ"
  15454. fieldnames = ["target_system", "target_component", "param_id", "param_index"]
  15455. ordered_fieldnames = ["param_index", "target_system", "target_component", "param_id"]
  15456. fieldtypes = ["uint8_t", "uint8_t", "char", "int16_t"]
  15457. fielddisplays_by_name: Dict[str, str] = {}
  15458. fieldenums_by_name: Dict[str, str] = {}
  15459. fieldunits_by_name: Dict[str, str] = {}
  15460. native_format = bytearray(b"<hBBc")
  15461. orders = [1, 2, 3, 0]
  15462. lengths = [1, 1, 1, 1]
  15463. array_lengths = [0, 0, 0, 16]
  15464. crc_extra = 243
  15465. unpacker = struct.Struct("<hBB16s")
  15466. instance_field = None
  15467. instance_offset = -1
  15468. def __init__(self, target_system: int, target_component: int, param_id: bytes, param_index: int):
  15469. MAVLink_message.__init__(self, MAVLink_param_ext_request_read_message.id, MAVLink_param_ext_request_read_message.msgname)
  15470. self._fieldnames = MAVLink_param_ext_request_read_message.fieldnames
  15471. self._instance_field = MAVLink_param_ext_request_read_message.instance_field
  15472. self._instance_offset = MAVLink_param_ext_request_read_message.instance_offset
  15473. self.target_system = target_system
  15474. self.target_component = target_component
  15475. self._param_id_raw = param_id
  15476. self.param_id = param_id.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15477. self.param_index = param_index
  15478. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15479. 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)
  15480. # Define name on the class for backwards compatibility (it is now msgname).
  15481. # Done with setattr to hide the class variable from mypy.
  15482. setattr(MAVLink_param_ext_request_read_message, "name", mavlink_msg_deprecated_name_property())
  15483. class MAVLink_param_ext_request_list_message(MAVLink_message):
  15484. """
  15485. Request all parameters of this component. All parameters should be
  15486. emitted in response as PARAM_EXT_VALUE.
  15487. """
  15488. id = MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST
  15489. msgname = "PARAM_EXT_REQUEST_LIST"
  15490. fieldnames = ["target_system", "target_component"]
  15491. ordered_fieldnames = ["target_system", "target_component"]
  15492. fieldtypes = ["uint8_t", "uint8_t"]
  15493. fielddisplays_by_name: Dict[str, str] = {}
  15494. fieldenums_by_name: Dict[str, str] = {}
  15495. fieldunits_by_name: Dict[str, str] = {}
  15496. native_format = bytearray(b"<BB")
  15497. orders = [0, 1]
  15498. lengths = [1, 1]
  15499. array_lengths = [0, 0]
  15500. crc_extra = 88
  15501. unpacker = struct.Struct("<BB")
  15502. instance_field = None
  15503. instance_offset = -1
  15504. def __init__(self, target_system: int, target_component: int):
  15505. MAVLink_message.__init__(self, MAVLink_param_ext_request_list_message.id, MAVLink_param_ext_request_list_message.msgname)
  15506. self._fieldnames = MAVLink_param_ext_request_list_message.fieldnames
  15507. self._instance_field = MAVLink_param_ext_request_list_message.instance_field
  15508. self._instance_offset = MAVLink_param_ext_request_list_message.instance_offset
  15509. self.target_system = target_system
  15510. self.target_component = target_component
  15511. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15512. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.target_system, self.target_component), force_mavlink1=force_mavlink1)
  15513. # Define name on the class for backwards compatibility (it is now msgname).
  15514. # Done with setattr to hide the class variable from mypy.
  15515. setattr(MAVLink_param_ext_request_list_message, "name", mavlink_msg_deprecated_name_property())
  15516. class MAVLink_param_ext_value_message(MAVLink_message):
  15517. """
  15518. Emit the value of a parameter. The inclusion of param_count and
  15519. param_index in the message allows the recipient to keep track of
  15520. received parameters and allows them to re-request missing
  15521. parameters after a loss or timeout.
  15522. """
  15523. id = MAVLINK_MSG_ID_PARAM_EXT_VALUE
  15524. msgname = "PARAM_EXT_VALUE"
  15525. fieldnames = ["param_id", "param_value", "param_type", "param_count", "param_index"]
  15526. ordered_fieldnames = ["param_count", "param_index", "param_id", "param_value", "param_type"]
  15527. fieldtypes = ["char", "char", "uint8_t", "uint16_t", "uint16_t"]
  15528. fielddisplays_by_name: Dict[str, str] = {}
  15529. fieldenums_by_name: Dict[str, str] = {"param_type": "MAV_PARAM_EXT_TYPE"}
  15530. fieldunits_by_name: Dict[str, str] = {}
  15531. native_format = bytearray(b"<HHccB")
  15532. orders = [2, 3, 4, 0, 1]
  15533. lengths = [1, 1, 1, 1, 1]
  15534. array_lengths = [0, 0, 16, 128, 0]
  15535. crc_extra = 243
  15536. unpacker = struct.Struct("<HH16s128sB")
  15537. instance_field = None
  15538. instance_offset = -1
  15539. def __init__(self, param_id: bytes, param_value: bytes, param_type: int, param_count: int, param_index: int):
  15540. MAVLink_message.__init__(self, MAVLink_param_ext_value_message.id, MAVLink_param_ext_value_message.msgname)
  15541. self._fieldnames = MAVLink_param_ext_value_message.fieldnames
  15542. self._instance_field = MAVLink_param_ext_value_message.instance_field
  15543. self._instance_offset = MAVLink_param_ext_value_message.instance_offset
  15544. self._param_id_raw = param_id
  15545. self.param_id = param_id.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15546. self._param_value_raw = param_value
  15547. self.param_value = param_value.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15548. self.param_type = param_type
  15549. self.param_count = param_count
  15550. self.param_index = param_index
  15551. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15552. 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)
  15553. # Define name on the class for backwards compatibility (it is now msgname).
  15554. # Done with setattr to hide the class variable from mypy.
  15555. setattr(MAVLink_param_ext_value_message, "name", mavlink_msg_deprecated_name_property())
  15556. class MAVLink_param_ext_set_message(MAVLink_message):
  15557. """
  15558. Set a parameter value. In order to deal with message loss (and
  15559. retransmission of PARAM_EXT_SET), when setting a parameter value
  15560. and the new value is the same as the current value, you will
  15561. immediately get a PARAM_ACK_ACCEPTED response. If the current
  15562. state is PARAM_ACK_IN_PROGRESS, you will accordingly receive a
  15563. PARAM_ACK_IN_PROGRESS in response.
  15564. """
  15565. id = MAVLINK_MSG_ID_PARAM_EXT_SET
  15566. msgname = "PARAM_EXT_SET"
  15567. fieldnames = ["target_system", "target_component", "param_id", "param_value", "param_type"]
  15568. ordered_fieldnames = ["target_system", "target_component", "param_id", "param_value", "param_type"]
  15569. fieldtypes = ["uint8_t", "uint8_t", "char", "char", "uint8_t"]
  15570. fielddisplays_by_name: Dict[str, str] = {}
  15571. fieldenums_by_name: Dict[str, str] = {"param_type": "MAV_PARAM_EXT_TYPE"}
  15572. fieldunits_by_name: Dict[str, str] = {}
  15573. native_format = bytearray(b"<BBccB")
  15574. orders = [0, 1, 2, 3, 4]
  15575. lengths = [1, 1, 1, 1, 1]
  15576. array_lengths = [0, 0, 16, 128, 0]
  15577. crc_extra = 78
  15578. unpacker = struct.Struct("<BB16s128sB")
  15579. instance_field = None
  15580. instance_offset = -1
  15581. def __init__(self, target_system: int, target_component: int, param_id: bytes, param_value: bytes, param_type: int):
  15582. MAVLink_message.__init__(self, MAVLink_param_ext_set_message.id, MAVLink_param_ext_set_message.msgname)
  15583. self._fieldnames = MAVLink_param_ext_set_message.fieldnames
  15584. self._instance_field = MAVLink_param_ext_set_message.instance_field
  15585. self._instance_offset = MAVLink_param_ext_set_message.instance_offset
  15586. self.target_system = target_system
  15587. self.target_component = target_component
  15588. self._param_id_raw = param_id
  15589. self.param_id = param_id.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15590. self._param_value_raw = param_value
  15591. self.param_value = param_value.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15592. self.param_type = param_type
  15593. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15594. 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)
  15595. # Define name on the class for backwards compatibility (it is now msgname).
  15596. # Done with setattr to hide the class variable from mypy.
  15597. setattr(MAVLink_param_ext_set_message, "name", mavlink_msg_deprecated_name_property())
  15598. class MAVLink_param_ext_ack_message(MAVLink_message):
  15599. """
  15600. Response from a PARAM_EXT_SET message.
  15601. """
  15602. id = MAVLINK_MSG_ID_PARAM_EXT_ACK
  15603. msgname = "PARAM_EXT_ACK"
  15604. fieldnames = ["param_id", "param_value", "param_type", "param_result"]
  15605. ordered_fieldnames = ["param_id", "param_value", "param_type", "param_result"]
  15606. fieldtypes = ["char", "char", "uint8_t", "uint8_t"]
  15607. fielddisplays_by_name: Dict[str, str] = {}
  15608. fieldenums_by_name: Dict[str, str] = {"param_type": "MAV_PARAM_EXT_TYPE", "param_result": "PARAM_ACK"}
  15609. fieldunits_by_name: Dict[str, str] = {}
  15610. native_format = bytearray(b"<ccBB")
  15611. orders = [0, 1, 2, 3]
  15612. lengths = [1, 1, 1, 1]
  15613. array_lengths = [16, 128, 0, 0]
  15614. crc_extra = 132
  15615. unpacker = struct.Struct("<16s128sBB")
  15616. instance_field = None
  15617. instance_offset = -1
  15618. def __init__(self, param_id: bytes, param_value: bytes, param_type: int, param_result: int):
  15619. MAVLink_message.__init__(self, MAVLink_param_ext_ack_message.id, MAVLink_param_ext_ack_message.msgname)
  15620. self._fieldnames = MAVLink_param_ext_ack_message.fieldnames
  15621. self._instance_field = MAVLink_param_ext_ack_message.instance_field
  15622. self._instance_offset = MAVLink_param_ext_ack_message.instance_offset
  15623. self._param_id_raw = param_id
  15624. self.param_id = param_id.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15625. self._param_value_raw = param_value
  15626. self.param_value = param_value.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15627. self.param_type = param_type
  15628. self.param_result = param_result
  15629. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15630. 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)
  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_ack_message, "name", mavlink_msg_deprecated_name_property())
  15634. class MAVLink_obstacle_distance_message(MAVLink_message):
  15635. """
  15636. Obstacle distances in front of the sensor, starting from the left
  15637. in increment degrees to the right
  15638. """
  15639. id = MAVLINK_MSG_ID_OBSTACLE_DISTANCE
  15640. msgname = "OBSTACLE_DISTANCE"
  15641. fieldnames = ["time_usec", "sensor_type", "distances", "increment", "min_distance", "max_distance", "increment_f", "angle_offset", "frame"]
  15642. ordered_fieldnames = ["time_usec", "distances", "min_distance", "max_distance", "sensor_type", "increment", "increment_f", "angle_offset", "frame"]
  15643. fieldtypes = ["uint64_t", "uint8_t", "uint16_t", "uint8_t", "uint16_t", "uint16_t", "float", "float", "uint8_t"]
  15644. fielddisplays_by_name: Dict[str, str] = {}
  15645. fieldenums_by_name: Dict[str, str] = {"sensor_type": "MAV_DISTANCE_SENSOR", "frame": "MAV_FRAME"}
  15646. 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"}
  15647. native_format = bytearray(b"<QHHHBBffB")
  15648. orders = [0, 4, 1, 5, 2, 3, 6, 7, 8]
  15649. lengths = [1, 72, 1, 1, 1, 1, 1, 1, 1]
  15650. array_lengths = [0, 72, 0, 0, 0, 0, 0, 0, 0]
  15651. crc_extra = 23
  15652. unpacker = struct.Struct("<Q72HHHBBffB")
  15653. instance_field = None
  15654. instance_offset = -1
  15655. 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):
  15656. MAVLink_message.__init__(self, MAVLink_obstacle_distance_message.id, MAVLink_obstacle_distance_message.msgname)
  15657. self._fieldnames = MAVLink_obstacle_distance_message.fieldnames
  15658. self._instance_field = MAVLink_obstacle_distance_message.instance_field
  15659. self._instance_offset = MAVLink_obstacle_distance_message.instance_offset
  15660. self.time_usec = time_usec
  15661. self.sensor_type = sensor_type
  15662. self.distances = distances
  15663. self.increment = increment
  15664. self.min_distance = min_distance
  15665. self.max_distance = max_distance
  15666. self.increment_f = increment_f
  15667. self.angle_offset = angle_offset
  15668. self.frame = frame
  15669. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15670. 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)
  15671. # Define name on the class for backwards compatibility (it is now msgname).
  15672. # Done with setattr to hide the class variable from mypy.
  15673. setattr(MAVLink_obstacle_distance_message, "name", mavlink_msg_deprecated_name_property())
  15674. class MAVLink_odometry_message(MAVLink_message):
  15675. """
  15676. Odometry message to communicate odometry information with an
  15677. external interface. Fits ROS REP 147 standard for aerial vehicles
  15678. (http://www.ros.org/reps/rep-0147.html).
  15679. """
  15680. id = MAVLINK_MSG_ID_ODOMETRY
  15681. msgname = "ODOMETRY"
  15682. 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"]
  15683. 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"]
  15684. 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"]
  15685. fielddisplays_by_name: Dict[str, str] = {}
  15686. fieldenums_by_name: Dict[str, str] = {"frame_id": "MAV_FRAME", "child_frame_id": "MAV_FRAME", "estimator_type": "MAV_ESTIMATOR_TYPE"}
  15687. 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": "%"}
  15688. native_format = bytearray(b"<QffffffffffffBBBBb")
  15689. orders = [0, 13, 14, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 15, 16, 17]
  15690. lengths = [1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, 21, 21, 1, 1, 1, 1, 1]
  15691. array_lengths = [0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 21, 21, 0, 0, 0, 0, 0]
  15692. crc_extra = 91
  15693. unpacker = struct.Struct("<Qfff4fffffff21f21fBBBBb")
  15694. instance_field = None
  15695. instance_offset = -1
  15696. 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):
  15697. MAVLink_message.__init__(self, MAVLink_odometry_message.id, MAVLink_odometry_message.msgname)
  15698. self._fieldnames = MAVLink_odometry_message.fieldnames
  15699. self._instance_field = MAVLink_odometry_message.instance_field
  15700. self._instance_offset = MAVLink_odometry_message.instance_offset
  15701. self.time_usec = time_usec
  15702. self.frame_id = frame_id
  15703. self.child_frame_id = child_frame_id
  15704. self.x = x
  15705. self.y = y
  15706. self.z = z
  15707. self.q = q
  15708. self.vx = vx
  15709. self.vy = vy
  15710. self.vz = vz
  15711. self.rollspeed = rollspeed
  15712. self.pitchspeed = pitchspeed
  15713. self.yawspeed = yawspeed
  15714. self.pose_covariance = pose_covariance
  15715. self.velocity_covariance = velocity_covariance
  15716. self.reset_counter = reset_counter
  15717. self.estimator_type = estimator_type
  15718. self.quality = quality
  15719. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15720. 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)
  15721. # Define name on the class for backwards compatibility (it is now msgname).
  15722. # Done with setattr to hide the class variable from mypy.
  15723. setattr(MAVLink_odometry_message, "name", mavlink_msg_deprecated_name_property())
  15724. class MAVLink_trajectory_representation_waypoints_message(MAVLink_message):
  15725. """
  15726. Describe a trajectory using an array of up-to 5 waypoints in the
  15727. local frame (MAV_FRAME_LOCAL_NED).
  15728. """
  15729. id = MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS
  15730. msgname = "TRAJECTORY_REPRESENTATION_WAYPOINTS"
  15731. 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"]
  15732. 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"]
  15733. fieldtypes = ["uint64_t", "uint8_t", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "float", "uint16_t"]
  15734. fielddisplays_by_name: Dict[str, str] = {}
  15735. fieldenums_by_name: Dict[str, str] = {"command": "MAV_CMD"}
  15736. 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"}
  15737. native_format = bytearray(b"<QfffffffffffHB")
  15738. orders = [0, 13, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
  15739. lengths = [1, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 1]
  15740. array_lengths = [0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0]
  15741. crc_extra = 236
  15742. unpacker = struct.Struct("<Q5f5f5f5f5f5f5f5f5f5f5f5HB")
  15743. instance_field = None
  15744. instance_offset = -1
  15745. 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]):
  15746. MAVLink_message.__init__(self, MAVLink_trajectory_representation_waypoints_message.id, MAVLink_trajectory_representation_waypoints_message.msgname)
  15747. self._fieldnames = MAVLink_trajectory_representation_waypoints_message.fieldnames
  15748. self._instance_field = MAVLink_trajectory_representation_waypoints_message.instance_field
  15749. self._instance_offset = MAVLink_trajectory_representation_waypoints_message.instance_offset
  15750. self.time_usec = time_usec
  15751. self.valid_points = valid_points
  15752. self.pos_x = pos_x
  15753. self.pos_y = pos_y
  15754. self.pos_z = pos_z
  15755. self.vel_x = vel_x
  15756. self.vel_y = vel_y
  15757. self.vel_z = vel_z
  15758. self.acc_x = acc_x
  15759. self.acc_y = acc_y
  15760. self.acc_z = acc_z
  15761. self.pos_yaw = pos_yaw
  15762. self.vel_yaw = vel_yaw
  15763. self.command = command
  15764. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15765. 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)
  15766. # Define name on the class for backwards compatibility (it is now msgname).
  15767. # Done with setattr to hide the class variable from mypy.
  15768. setattr(MAVLink_trajectory_representation_waypoints_message, "name", mavlink_msg_deprecated_name_property())
  15769. class MAVLink_trajectory_representation_bezier_message(MAVLink_message):
  15770. """
  15771. Describe a trajectory using an array of up-to 5 bezier control
  15772. points in the local frame (MAV_FRAME_LOCAL_NED).
  15773. """
  15774. id = MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_BEZIER
  15775. msgname = "TRAJECTORY_REPRESENTATION_BEZIER"
  15776. fieldnames = ["time_usec", "valid_points", "pos_x", "pos_y", "pos_z", "delta", "pos_yaw"]
  15777. ordered_fieldnames = ["time_usec", "pos_x", "pos_y", "pos_z", "delta", "pos_yaw", "valid_points"]
  15778. fieldtypes = ["uint64_t", "uint8_t", "float", "float", "float", "float", "float"]
  15779. fielddisplays_by_name: Dict[str, str] = {}
  15780. fieldenums_by_name: Dict[str, str] = {}
  15781. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "pos_x": "m", "pos_y": "m", "pos_z": "m", "delta": "s", "pos_yaw": "rad"}
  15782. native_format = bytearray(b"<QfffffB")
  15783. orders = [0, 6, 1, 2, 3, 4, 5]
  15784. lengths = [1, 5, 5, 5, 5, 5, 1]
  15785. array_lengths = [0, 5, 5, 5, 5, 5, 0]
  15786. crc_extra = 231
  15787. unpacker = struct.Struct("<Q5f5f5f5f5fB")
  15788. instance_field = None
  15789. instance_offset = -1
  15790. 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]):
  15791. MAVLink_message.__init__(self, MAVLink_trajectory_representation_bezier_message.id, MAVLink_trajectory_representation_bezier_message.msgname)
  15792. self._fieldnames = MAVLink_trajectory_representation_bezier_message.fieldnames
  15793. self._instance_field = MAVLink_trajectory_representation_bezier_message.instance_field
  15794. self._instance_offset = MAVLink_trajectory_representation_bezier_message.instance_offset
  15795. self.time_usec = time_usec
  15796. self.valid_points = valid_points
  15797. self.pos_x = pos_x
  15798. self.pos_y = pos_y
  15799. self.pos_z = pos_z
  15800. self.delta = delta
  15801. self.pos_yaw = pos_yaw
  15802. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15803. 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)
  15804. # Define name on the class for backwards compatibility (it is now msgname).
  15805. # Done with setattr to hide the class variable from mypy.
  15806. setattr(MAVLink_trajectory_representation_bezier_message, "name", mavlink_msg_deprecated_name_property())
  15807. class MAVLink_cellular_status_message(MAVLink_message):
  15808. """
  15809. Report current used cellular network status
  15810. """
  15811. id = MAVLINK_MSG_ID_CELLULAR_STATUS
  15812. msgname = "CELLULAR_STATUS"
  15813. fieldnames = ["status", "failure_reason", "type", "quality", "mcc", "mnc", "lac"]
  15814. ordered_fieldnames = ["mcc", "mnc", "lac", "status", "failure_reason", "type", "quality"]
  15815. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint16_t", "uint16_t", "uint16_t"]
  15816. fielddisplays_by_name: Dict[str, str] = {}
  15817. fieldenums_by_name: Dict[str, str] = {"status": "CELLULAR_STATUS_FLAG", "failure_reason": "CELLULAR_NETWORK_FAILED_REASON", "type": "CELLULAR_NETWORK_RADIO_TYPE"}
  15818. fieldunits_by_name: Dict[str, str] = {}
  15819. native_format = bytearray(b"<HHHBBBB")
  15820. orders = [3, 4, 5, 6, 0, 1, 2]
  15821. lengths = [1, 1, 1, 1, 1, 1, 1]
  15822. array_lengths = [0, 0, 0, 0, 0, 0, 0]
  15823. crc_extra = 72
  15824. unpacker = struct.Struct("<HHHBBBB")
  15825. instance_field = None
  15826. instance_offset = -1
  15827. def __init__(self, status: int, failure_reason: int, type: int, quality: int, mcc: int, mnc: int, lac: int):
  15828. MAVLink_message.__init__(self, MAVLink_cellular_status_message.id, MAVLink_cellular_status_message.msgname)
  15829. self._fieldnames = MAVLink_cellular_status_message.fieldnames
  15830. self._instance_field = MAVLink_cellular_status_message.instance_field
  15831. self._instance_offset = MAVLink_cellular_status_message.instance_offset
  15832. self.status = status
  15833. self.failure_reason = failure_reason
  15834. self.type = type
  15835. self.quality = quality
  15836. self.mcc = mcc
  15837. self.mnc = mnc
  15838. self.lac = lac
  15839. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15840. 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)
  15841. # Define name on the class for backwards compatibility (it is now msgname).
  15842. # Done with setattr to hide the class variable from mypy.
  15843. setattr(MAVLink_cellular_status_message, "name", mavlink_msg_deprecated_name_property())
  15844. class MAVLink_isbd_link_status_message(MAVLink_message):
  15845. """
  15846. Status of the Iridium SBD link.
  15847. """
  15848. id = MAVLINK_MSG_ID_ISBD_LINK_STATUS
  15849. msgname = "ISBD_LINK_STATUS"
  15850. fieldnames = ["timestamp", "last_heartbeat", "failed_sessions", "successful_sessions", "signal_quality", "ring_pending", "tx_session_pending", "rx_session_pending"]
  15851. ordered_fieldnames = ["timestamp", "last_heartbeat", "failed_sessions", "successful_sessions", "signal_quality", "ring_pending", "tx_session_pending", "rx_session_pending"]
  15852. fieldtypes = ["uint64_t", "uint64_t", "uint16_t", "uint16_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t"]
  15853. fielddisplays_by_name: Dict[str, str] = {}
  15854. fieldenums_by_name: Dict[str, str] = {}
  15855. fieldunits_by_name: Dict[str, str] = {"timestamp": "us", "last_heartbeat": "us"}
  15856. native_format = bytearray(b"<QQHHBBBB")
  15857. orders = [0, 1, 2, 3, 4, 5, 6, 7]
  15858. lengths = [1, 1, 1, 1, 1, 1, 1, 1]
  15859. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0]
  15860. crc_extra = 225
  15861. unpacker = struct.Struct("<QQHHBBBB")
  15862. instance_field = None
  15863. instance_offset = -1
  15864. 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):
  15865. MAVLink_message.__init__(self, MAVLink_isbd_link_status_message.id, MAVLink_isbd_link_status_message.msgname)
  15866. self._fieldnames = MAVLink_isbd_link_status_message.fieldnames
  15867. self._instance_field = MAVLink_isbd_link_status_message.instance_field
  15868. self._instance_offset = MAVLink_isbd_link_status_message.instance_offset
  15869. self.timestamp = timestamp
  15870. self.last_heartbeat = last_heartbeat
  15871. self.failed_sessions = failed_sessions
  15872. self.successful_sessions = successful_sessions
  15873. self.signal_quality = signal_quality
  15874. self.ring_pending = ring_pending
  15875. self.tx_session_pending = tx_session_pending
  15876. self.rx_session_pending = rx_session_pending
  15877. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15878. 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)
  15879. # Define name on the class for backwards compatibility (it is now msgname).
  15880. # Done with setattr to hide the class variable from mypy.
  15881. setattr(MAVLink_isbd_link_status_message, "name", mavlink_msg_deprecated_name_property())
  15882. class MAVLink_cellular_config_message(MAVLink_message):
  15883. """
  15884. Configure cellular modems. This message is re-emitted as
  15885. an acknowledgement by the modem. The message may also be
  15886. explicitly requested using MAV_CMD_REQUEST_MESSAGE.
  15887. """
  15888. id = MAVLINK_MSG_ID_CELLULAR_CONFIG
  15889. msgname = "CELLULAR_CONFIG"
  15890. fieldnames = ["enable_lte", "enable_pin", "pin", "new_pin", "apn", "puk", "roaming", "response"]
  15891. ordered_fieldnames = ["enable_lte", "enable_pin", "pin", "new_pin", "apn", "puk", "roaming", "response"]
  15892. fieldtypes = ["uint8_t", "uint8_t", "char", "char", "char", "char", "uint8_t", "uint8_t"]
  15893. fielddisplays_by_name: Dict[str, str] = {}
  15894. fieldenums_by_name: Dict[str, str] = {"response": "CELLULAR_CONFIG_RESPONSE"}
  15895. fieldunits_by_name: Dict[str, str] = {}
  15896. native_format = bytearray(b"<BBccccBB")
  15897. orders = [0, 1, 2, 3, 4, 5, 6, 7]
  15898. lengths = [1, 1, 1, 1, 1, 1, 1, 1]
  15899. array_lengths = [0, 0, 16, 16, 32, 16, 0, 0]
  15900. crc_extra = 245
  15901. unpacker = struct.Struct("<BB16s16s32s16sBB")
  15902. instance_field = None
  15903. instance_offset = -1
  15904. def __init__(self, enable_lte: int, enable_pin: int, pin: bytes, new_pin: bytes, apn: bytes, puk: bytes, roaming: int, response: int):
  15905. MAVLink_message.__init__(self, MAVLink_cellular_config_message.id, MAVLink_cellular_config_message.msgname)
  15906. self._fieldnames = MAVLink_cellular_config_message.fieldnames
  15907. self._instance_field = MAVLink_cellular_config_message.instance_field
  15908. self._instance_offset = MAVLink_cellular_config_message.instance_offset
  15909. self.enable_lte = enable_lte
  15910. self.enable_pin = enable_pin
  15911. self._pin_raw = pin
  15912. self.pin = pin.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15913. self._new_pin_raw = new_pin
  15914. self.new_pin = new_pin.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15915. self._apn_raw = apn
  15916. self.apn = apn.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15917. self._puk_raw = puk
  15918. self.puk = puk.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  15919. self.roaming = roaming
  15920. self.response = response
  15921. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15922. 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)
  15923. # Define name on the class for backwards compatibility (it is now msgname).
  15924. # Done with setattr to hide the class variable from mypy.
  15925. setattr(MAVLink_cellular_config_message, "name", mavlink_msg_deprecated_name_property())
  15926. class MAVLink_raw_rpm_message(MAVLink_message):
  15927. """
  15928. RPM sensor data message.
  15929. """
  15930. id = MAVLINK_MSG_ID_RAW_RPM
  15931. msgname = "RAW_RPM"
  15932. fieldnames = ["index", "frequency"]
  15933. ordered_fieldnames = ["frequency", "index"]
  15934. fieldtypes = ["uint8_t", "float"]
  15935. fielddisplays_by_name: Dict[str, str] = {}
  15936. fieldenums_by_name: Dict[str, str] = {}
  15937. fieldunits_by_name: Dict[str, str] = {"frequency": "rpm"}
  15938. native_format = bytearray(b"<fB")
  15939. orders = [1, 0]
  15940. lengths = [1, 1]
  15941. array_lengths = [0, 0]
  15942. crc_extra = 199
  15943. unpacker = struct.Struct("<fB")
  15944. instance_field = None
  15945. instance_offset = -1
  15946. def __init__(self, index: int, frequency: float):
  15947. MAVLink_message.__init__(self, MAVLink_raw_rpm_message.id, MAVLink_raw_rpm_message.msgname)
  15948. self._fieldnames = MAVLink_raw_rpm_message.fieldnames
  15949. self._instance_field = MAVLink_raw_rpm_message.instance_field
  15950. self._instance_offset = MAVLink_raw_rpm_message.instance_offset
  15951. self.index = index
  15952. self.frequency = frequency
  15953. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  15954. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.frequency, self.index), force_mavlink1=force_mavlink1)
  15955. # Define name on the class for backwards compatibility (it is now msgname).
  15956. # Done with setattr to hide the class variable from mypy.
  15957. setattr(MAVLink_raw_rpm_message, "name", mavlink_msg_deprecated_name_property())
  15958. class MAVLink_utm_global_position_message(MAVLink_message):
  15959. """
  15960. The global position resulting from GPS and sensor fusion.
  15961. """
  15962. id = MAVLINK_MSG_ID_UTM_GLOBAL_POSITION
  15963. msgname = "UTM_GLOBAL_POSITION"
  15964. 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"]
  15965. 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"]
  15966. 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"]
  15967. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  15968. fieldenums_by_name: Dict[str, str] = {"flight_state": "UTM_FLIGHT_STATE", "flags": "UTM_DATA_AVAIL_FLAGS"}
  15969. 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"}
  15970. native_format = bytearray(b"<QiiiiiiihhhHHHHBBB")
  15971. orders = [0, 15, 1, 2, 3, 4, 8, 9, 10, 11, 12, 13, 5, 6, 7, 14, 16, 17]
  15972. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 18, 1, 1]
  15973. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 0, 0]
  15974. crc_extra = 99
  15975. unpacker = struct.Struct("<QiiiiiiihhhHHHH18BBB")
  15976. instance_field = None
  15977. instance_offset = -1
  15978. 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):
  15979. MAVLink_message.__init__(self, MAVLink_utm_global_position_message.id, MAVLink_utm_global_position_message.msgname)
  15980. self._fieldnames = MAVLink_utm_global_position_message.fieldnames
  15981. self._instance_field = MAVLink_utm_global_position_message.instance_field
  15982. self._instance_offset = MAVLink_utm_global_position_message.instance_offset
  15983. self.time = time
  15984. self.uas_id = uas_id
  15985. self.lat = lat
  15986. self.lon = lon
  15987. self.alt = alt
  15988. self.relative_alt = relative_alt
  15989. self.vx = vx
  15990. self.vy = vy
  15991. self.vz = vz
  15992. self.h_acc = h_acc
  15993. self.v_acc = v_acc
  15994. self.vel_acc = vel_acc
  15995. self.next_lat = next_lat
  15996. self.next_lon = next_lon
  15997. self.next_alt = next_alt
  15998. self.update_rate = update_rate
  15999. self.flight_state = flight_state
  16000. self.flags = flags
  16001. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16002. 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)
  16003. # Define name on the class for backwards compatibility (it is now msgname).
  16004. # Done with setattr to hide the class variable from mypy.
  16005. setattr(MAVLink_utm_global_position_message, "name", mavlink_msg_deprecated_name_property())
  16006. class MAVLink_debug_float_array_message(MAVLink_message):
  16007. """
  16008. Large debug/prototyping array. The message uses the maximum
  16009. available payload for data. The array_id and name fields are used
  16010. to discriminate between messages in code and in user interfaces
  16011. (respectively). Do not use in production code.
  16012. """
  16013. id = MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY
  16014. msgname = "DEBUG_FLOAT_ARRAY"
  16015. fieldnames = ["time_usec", "name", "array_id", "data"]
  16016. ordered_fieldnames = ["time_usec", "array_id", "name", "data"]
  16017. fieldtypes = ["uint64_t", "char", "uint16_t", "float"]
  16018. fielddisplays_by_name: Dict[str, str] = {}
  16019. fieldenums_by_name: Dict[str, str] = {}
  16020. fieldunits_by_name: Dict[str, str] = {"time_usec": "us"}
  16021. native_format = bytearray(b"<QHcf")
  16022. orders = [0, 2, 1, 3]
  16023. lengths = [1, 1, 1, 58]
  16024. array_lengths = [0, 0, 10, 58]
  16025. crc_extra = 232
  16026. unpacker = struct.Struct("<QH10s58f")
  16027. instance_field = "array_id"
  16028. instance_offset = 8
  16029. 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)):
  16030. MAVLink_message.__init__(self, MAVLink_debug_float_array_message.id, MAVLink_debug_float_array_message.msgname)
  16031. self._fieldnames = MAVLink_debug_float_array_message.fieldnames
  16032. self._instance_field = MAVLink_debug_float_array_message.instance_field
  16033. self._instance_offset = MAVLink_debug_float_array_message.instance_offset
  16034. self.time_usec = time_usec
  16035. self._name_raw = name
  16036. self.name = name.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  16037. self.array_id = array_id
  16038. self.data = data
  16039. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16040. 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)
  16041. # Define name on the class for backwards compatibility (it is now msgname).
  16042. # Done with setattr to hide the class variable from mypy.
  16043. setattr(MAVLink_debug_float_array_message, "name", mavlink_msg_deprecated_name_property())
  16044. class MAVLink_orbit_execution_status_message(MAVLink_message):
  16045. """
  16046. Vehicle status report that is sent out while orbit execution is in
  16047. progress (see MAV_CMD_DO_ORBIT).
  16048. """
  16049. id = MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS
  16050. msgname = "ORBIT_EXECUTION_STATUS"
  16051. fieldnames = ["time_usec", "radius", "frame", "x", "y", "z"]
  16052. ordered_fieldnames = ["time_usec", "radius", "x", "y", "z", "frame"]
  16053. fieldtypes = ["uint64_t", "float", "uint8_t", "int32_t", "int32_t", "float"]
  16054. fielddisplays_by_name: Dict[str, str] = {}
  16055. fieldenums_by_name: Dict[str, str] = {"frame": "MAV_FRAME"}
  16056. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "radius": "m", "z": "m"}
  16057. native_format = bytearray(b"<QfiifB")
  16058. orders = [0, 1, 5, 2, 3, 4]
  16059. lengths = [1, 1, 1, 1, 1, 1]
  16060. array_lengths = [0, 0, 0, 0, 0, 0]
  16061. crc_extra = 11
  16062. unpacker = struct.Struct("<QfiifB")
  16063. instance_field = None
  16064. instance_offset = -1
  16065. def __init__(self, time_usec: int, radius: float, frame: int, x: int, y: int, z: float):
  16066. MAVLink_message.__init__(self, MAVLink_orbit_execution_status_message.id, MAVLink_orbit_execution_status_message.msgname)
  16067. self._fieldnames = MAVLink_orbit_execution_status_message.fieldnames
  16068. self._instance_field = MAVLink_orbit_execution_status_message.instance_field
  16069. self._instance_offset = MAVLink_orbit_execution_status_message.instance_offset
  16070. self.time_usec = time_usec
  16071. self.radius = radius
  16072. self.frame = frame
  16073. self.x = x
  16074. self.y = y
  16075. self.z = z
  16076. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16077. 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)
  16078. # Define name on the class for backwards compatibility (it is now msgname).
  16079. # Done with setattr to hide the class variable from mypy.
  16080. setattr(MAVLink_orbit_execution_status_message, "name", mavlink_msg_deprecated_name_property())
  16081. class MAVLink_battery_info_message(MAVLink_message):
  16082. """
  16083. Battery information that is static, or requires infrequent update.
  16084. This message should requested using MAV_CMD_REQUEST_MESSAGE and/or
  16085. streamed at very low rate. BATTERY_STATUS_V2 is used for
  16086. higher-rate battery status information.
  16087. """
  16088. id = MAVLINK_MSG_ID_BATTERY_INFO
  16089. msgname = "BATTERY_INFO"
  16090. 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"]
  16091. 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"]
  16092. 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"]
  16093. fielddisplays_by_name: Dict[str, str] = {}
  16094. fieldenums_by_name: Dict[str, str] = {"battery_function": "MAV_BATTERY_FUNCTION", "type": "MAV_BATTERY_TYPE"}
  16095. 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"}
  16096. native_format = bytearray(b"<ffffffffffHHBBBBBccc")
  16097. orders = [12, 13, 14, 15, 16, 10, 11, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 19]
  16098. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  16099. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 32, 50]
  16100. crc_extra = 26
  16101. unpacker = struct.Struct("<ffffffffffHHBBBBB9s32s50s")
  16102. instance_field = "id"
  16103. instance_offset = 44
  16104. 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):
  16105. MAVLink_message.__init__(self, MAVLink_battery_info_message.id, MAVLink_battery_info_message.msgname)
  16106. self._fieldnames = MAVLink_battery_info_message.fieldnames
  16107. self._instance_field = MAVLink_battery_info_message.instance_field
  16108. self._instance_offset = MAVLink_battery_info_message.instance_offset
  16109. self.id = id
  16110. self.battery_function = battery_function
  16111. self.type = type
  16112. self.state_of_health = state_of_health
  16113. self.cells_in_series = cells_in_series
  16114. self.cycle_count = cycle_count
  16115. self.weight = weight
  16116. self.discharge_minimum_voltage = discharge_minimum_voltage
  16117. self.charging_minimum_voltage = charging_minimum_voltage
  16118. self.resting_minimum_voltage = resting_minimum_voltage
  16119. self.charging_maximum_voltage = charging_maximum_voltage
  16120. self.charging_maximum_current = charging_maximum_current
  16121. self.nominal_voltage = nominal_voltage
  16122. self.discharge_maximum_current = discharge_maximum_current
  16123. self.discharge_maximum_burst_current = discharge_maximum_burst_current
  16124. self.design_capacity = design_capacity
  16125. self.full_charge_capacity = full_charge_capacity
  16126. self._manufacture_date_raw = manufacture_date
  16127. self.manufacture_date = manufacture_date.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  16128. self._serial_number_raw = serial_number
  16129. self.serial_number = serial_number.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  16130. self._name_raw = name
  16131. self.name = name.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  16132. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16133. 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)
  16134. # Define name on the class for backwards compatibility (it is now msgname).
  16135. # Done with setattr to hide the class variable from mypy.
  16136. setattr(MAVLink_battery_info_message, "name", mavlink_msg_deprecated_name_property())
  16137. class MAVLink_generator_status_message(MAVLink_message):
  16138. """
  16139. Telemetry of power generation system. Alternator or mechanical
  16140. generator.
  16141. """
  16142. id = MAVLINK_MSG_ID_GENERATOR_STATUS
  16143. msgname = "GENERATOR_STATUS"
  16144. fieldnames = ["status", "generator_speed", "battery_current", "load_current", "power_generated", "bus_voltage", "rectifier_temperature", "bat_current_setpoint", "generator_temperature", "runtime", "time_until_maintenance"]
  16145. ordered_fieldnames = ["status", "battery_current", "load_current", "power_generated", "bus_voltage", "bat_current_setpoint", "runtime", "time_until_maintenance", "generator_speed", "rectifier_temperature", "generator_temperature"]
  16146. fieldtypes = ["uint64_t", "uint16_t", "float", "float", "float", "float", "int16_t", "float", "int16_t", "uint32_t", "int32_t"]
  16147. fielddisplays_by_name: Dict[str, str] = {"status": "bitmask"}
  16148. fieldenums_by_name: Dict[str, str] = {"status": "MAV_GENERATOR_STATUS_FLAG"}
  16149. 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"}
  16150. native_format = bytearray(b"<QfffffIiHhh")
  16151. orders = [0, 8, 1, 2, 3, 4, 9, 5, 10, 6, 7]
  16152. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  16153. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  16154. crc_extra = 117
  16155. unpacker = struct.Struct("<QfffffIiHhh")
  16156. instance_field = None
  16157. instance_offset = -1
  16158. 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):
  16159. MAVLink_message.__init__(self, MAVLink_generator_status_message.id, MAVLink_generator_status_message.msgname)
  16160. self._fieldnames = MAVLink_generator_status_message.fieldnames
  16161. self._instance_field = MAVLink_generator_status_message.instance_field
  16162. self._instance_offset = MAVLink_generator_status_message.instance_offset
  16163. self.status = status
  16164. self.generator_speed = generator_speed
  16165. self.battery_current = battery_current
  16166. self.load_current = load_current
  16167. self.power_generated = power_generated
  16168. self.bus_voltage = bus_voltage
  16169. self.rectifier_temperature = rectifier_temperature
  16170. self.bat_current_setpoint = bat_current_setpoint
  16171. self.generator_temperature = generator_temperature
  16172. self.runtime = runtime
  16173. self.time_until_maintenance = time_until_maintenance
  16174. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16175. 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)
  16176. # Define name on the class for backwards compatibility (it is now msgname).
  16177. # Done with setattr to hide the class variable from mypy.
  16178. setattr(MAVLink_generator_status_message, "name", mavlink_msg_deprecated_name_property())
  16179. class MAVLink_actuator_output_status_message(MAVLink_message):
  16180. """
  16181. The raw values of the actuator outputs (e.g. on Pixhawk, from
  16182. MAIN, AUX ports). This message supersedes SERVO_OUTPUT_RAW.
  16183. """
  16184. id = MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS
  16185. msgname = "ACTUATOR_OUTPUT_STATUS"
  16186. fieldnames = ["time_usec", "active", "actuator"]
  16187. ordered_fieldnames = ["time_usec", "active", "actuator"]
  16188. fieldtypes = ["uint64_t", "uint32_t", "float"]
  16189. fielddisplays_by_name: Dict[str, str] = {"active": "bitmask"}
  16190. fieldenums_by_name: Dict[str, str] = {}
  16191. fieldunits_by_name: Dict[str, str] = {"time_usec": "us"}
  16192. native_format = bytearray(b"<QIf")
  16193. orders = [0, 1, 2]
  16194. lengths = [1, 1, 32]
  16195. array_lengths = [0, 0, 32]
  16196. crc_extra = 251
  16197. unpacker = struct.Struct("<QI32f")
  16198. instance_field = None
  16199. instance_offset = -1
  16200. def __init__(self, time_usec: int, active: int, actuator: Sequence[float]):
  16201. MAVLink_message.__init__(self, MAVLink_actuator_output_status_message.id, MAVLink_actuator_output_status_message.msgname)
  16202. self._fieldnames = MAVLink_actuator_output_status_message.fieldnames
  16203. self._instance_field = MAVLink_actuator_output_status_message.instance_field
  16204. self._instance_offset = MAVLink_actuator_output_status_message.instance_offset
  16205. self.time_usec = time_usec
  16206. self.active = active
  16207. self.actuator = actuator
  16208. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16209. 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)
  16210. # Define name on the class for backwards compatibility (it is now msgname).
  16211. # Done with setattr to hide the class variable from mypy.
  16212. setattr(MAVLink_actuator_output_status_message, "name", mavlink_msg_deprecated_name_property())
  16213. class MAVLink_time_estimate_to_target_message(MAVLink_message):
  16214. """
  16215. Time/duration estimates for various events and actions given the
  16216. current vehicle state and position.
  16217. """
  16218. id = MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET
  16219. msgname = "TIME_ESTIMATE_TO_TARGET"
  16220. fieldnames = ["safe_return", "land", "mission_next_item", "mission_end", "commanded_action"]
  16221. ordered_fieldnames = ["safe_return", "land", "mission_next_item", "mission_end", "commanded_action"]
  16222. fieldtypes = ["int32_t", "int32_t", "int32_t", "int32_t", "int32_t"]
  16223. fielddisplays_by_name: Dict[str, str] = {}
  16224. fieldenums_by_name: Dict[str, str] = {}
  16225. fieldunits_by_name: Dict[str, str] = {"safe_return": "s", "land": "s", "mission_next_item": "s", "mission_end": "s", "commanded_action": "s"}
  16226. native_format = bytearray(b"<iiiii")
  16227. orders = [0, 1, 2, 3, 4]
  16228. lengths = [1, 1, 1, 1, 1]
  16229. array_lengths = [0, 0, 0, 0, 0]
  16230. crc_extra = 232
  16231. unpacker = struct.Struct("<iiiii")
  16232. instance_field = None
  16233. instance_offset = -1
  16234. def __init__(self, safe_return: int, land: int, mission_next_item: int, mission_end: int, commanded_action: int):
  16235. MAVLink_message.__init__(self, MAVLink_time_estimate_to_target_message.id, MAVLink_time_estimate_to_target_message.msgname)
  16236. self._fieldnames = MAVLink_time_estimate_to_target_message.fieldnames
  16237. self._instance_field = MAVLink_time_estimate_to_target_message.instance_field
  16238. self._instance_offset = MAVLink_time_estimate_to_target_message.instance_offset
  16239. self.safe_return = safe_return
  16240. self.land = land
  16241. self.mission_next_item = mission_next_item
  16242. self.mission_end = mission_end
  16243. self.commanded_action = commanded_action
  16244. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16245. 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)
  16246. # Define name on the class for backwards compatibility (it is now msgname).
  16247. # Done with setattr to hide the class variable from mypy.
  16248. setattr(MAVLink_time_estimate_to_target_message, "name", mavlink_msg_deprecated_name_property())
  16249. class MAVLink_tunnel_message(MAVLink_message):
  16250. """
  16251. Message for transporting "arbitrary" variable-length data from one
  16252. component to another (broadcast is not forbidden, but
  16253. discouraged). The encoding of the data is usually extension
  16254. specific, i.e. determined by the source, and is usually not
  16255. documented as part of the MAVLink specification.
  16256. """
  16257. id = MAVLINK_MSG_ID_TUNNEL
  16258. msgname = "TUNNEL"
  16259. fieldnames = ["target_system", "target_component", "payload_type", "payload_length", "payload"]
  16260. ordered_fieldnames = ["payload_type", "target_system", "target_component", "payload_length", "payload"]
  16261. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "uint8_t", "uint8_t"]
  16262. fielddisplays_by_name: Dict[str, str] = {}
  16263. fieldenums_by_name: Dict[str, str] = {"payload_type": "MAV_TUNNEL_PAYLOAD_TYPE"}
  16264. fieldunits_by_name: Dict[str, str] = {}
  16265. native_format = bytearray(b"<HBBBB")
  16266. orders = [1, 2, 0, 3, 4]
  16267. lengths = [1, 1, 1, 1, 128]
  16268. array_lengths = [0, 0, 0, 0, 128]
  16269. crc_extra = 147
  16270. unpacker = struct.Struct("<HBBB128B")
  16271. instance_field = None
  16272. instance_offset = -1
  16273. def __init__(self, target_system: int, target_component: int, payload_type: int, payload_length: int, payload: Sequence[int]):
  16274. MAVLink_message.__init__(self, MAVLink_tunnel_message.id, MAVLink_tunnel_message.msgname)
  16275. self._fieldnames = MAVLink_tunnel_message.fieldnames
  16276. self._instance_field = MAVLink_tunnel_message.instance_field
  16277. self._instance_offset = MAVLink_tunnel_message.instance_offset
  16278. self.target_system = target_system
  16279. self.target_component = target_component
  16280. self.payload_type = payload_type
  16281. self.payload_length = payload_length
  16282. self.payload = payload
  16283. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16284. 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)
  16285. # Define name on the class for backwards compatibility (it is now msgname).
  16286. # Done with setattr to hide the class variable from mypy.
  16287. setattr(MAVLink_tunnel_message, "name", mavlink_msg_deprecated_name_property())
  16288. class MAVLink_can_frame_message(MAVLink_message):
  16289. """
  16290. A forwarded CAN frame as requested by MAV_CMD_CAN_FORWARD.
  16291. """
  16292. id = MAVLINK_MSG_ID_CAN_FRAME
  16293. msgname = "CAN_FRAME"
  16294. fieldnames = ["target_system", "target_component", "bus", "len", "id", "data"]
  16295. ordered_fieldnames = ["id", "target_system", "target_component", "bus", "len", "data"]
  16296. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint32_t", "uint8_t"]
  16297. fielddisplays_by_name: Dict[str, str] = {}
  16298. fieldenums_by_name: Dict[str, str] = {}
  16299. fieldunits_by_name: Dict[str, str] = {}
  16300. native_format = bytearray(b"<IBBBBB")
  16301. orders = [1, 2, 3, 4, 0, 5]
  16302. lengths = [1, 1, 1, 1, 1, 8]
  16303. array_lengths = [0, 0, 0, 0, 0, 8]
  16304. crc_extra = 132
  16305. unpacker = struct.Struct("<IBBBB8B")
  16306. instance_field = None
  16307. instance_offset = -1
  16308. def __init__(self, target_system: int, target_component: int, bus: int, len: int, id: int, data: Sequence[int]):
  16309. MAVLink_message.__init__(self, MAVLink_can_frame_message.id, MAVLink_can_frame_message.msgname)
  16310. self._fieldnames = MAVLink_can_frame_message.fieldnames
  16311. self._instance_field = MAVLink_can_frame_message.instance_field
  16312. self._instance_offset = MAVLink_can_frame_message.instance_offset
  16313. self.target_system = target_system
  16314. self.target_component = target_component
  16315. self.bus = bus
  16316. self.len = len
  16317. self.id = id
  16318. self.data = data
  16319. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16320. 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)
  16321. # Define name on the class for backwards compatibility (it is now msgname).
  16322. # Done with setattr to hide the class variable from mypy.
  16323. setattr(MAVLink_can_frame_message, "name", mavlink_msg_deprecated_name_property())
  16324. class MAVLink_onboard_computer_status_message(MAVLink_message):
  16325. """
  16326. Hardware status sent by an onboard computer.
  16327. """
  16328. id = MAVLINK_MSG_ID_ONBOARD_COMPUTER_STATUS
  16329. msgname = "ONBOARD_COMPUTER_STATUS"
  16330. 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"]
  16331. 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"]
  16332. 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"]
  16333. fielddisplays_by_name: Dict[str, str] = {}
  16334. fieldenums_by_name: Dict[str, str] = {}
  16335. 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"}
  16336. native_format = bytearray(b"<QIIIIIIIIIIIhBBBBBbb")
  16337. orders = [0, 1, 13, 14, 15, 16, 17, 18, 19, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
  16338. lengths = [1, 1, 1, 1, 4, 4, 4, 6, 6, 6, 6, 6, 4, 1, 8, 10, 4, 10, 1, 8]
  16339. array_lengths = [0, 0, 0, 0, 4, 4, 4, 6, 6, 6, 6, 6, 4, 0, 8, 10, 4, 10, 0, 8]
  16340. crc_extra = 156
  16341. unpacker = struct.Struct("<QIII4I4I4I6I6I6I6I6I4hB8B10B4B10Bb8b")
  16342. instance_field = None
  16343. instance_offset = -1
  16344. 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]):
  16345. MAVLink_message.__init__(self, MAVLink_onboard_computer_status_message.id, MAVLink_onboard_computer_status_message.msgname)
  16346. self._fieldnames = MAVLink_onboard_computer_status_message.fieldnames
  16347. self._instance_field = MAVLink_onboard_computer_status_message.instance_field
  16348. self._instance_offset = MAVLink_onboard_computer_status_message.instance_offset
  16349. self.time_usec = time_usec
  16350. self.uptime = uptime
  16351. self.type = type
  16352. self.cpu_cores = cpu_cores
  16353. self.cpu_combined = cpu_combined
  16354. self.gpu_cores = gpu_cores
  16355. self.gpu_combined = gpu_combined
  16356. self.temperature_board = temperature_board
  16357. self.temperature_core = temperature_core
  16358. self.fan_speed = fan_speed
  16359. self.ram_usage = ram_usage
  16360. self.ram_total = ram_total
  16361. self.storage_type = storage_type
  16362. self.storage_usage = storage_usage
  16363. self.storage_total = storage_total
  16364. self.link_type = link_type
  16365. self.link_tx_rate = link_tx_rate
  16366. self.link_rx_rate = link_rx_rate
  16367. self.link_tx_max = link_tx_max
  16368. self.link_rx_max = link_rx_max
  16369. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16370. 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)
  16371. # Define name on the class for backwards compatibility (it is now msgname).
  16372. # Done with setattr to hide the class variable from mypy.
  16373. setattr(MAVLink_onboard_computer_status_message, "name", mavlink_msg_deprecated_name_property())
  16374. class MAVLink_component_information_message(MAVLink_message):
  16375. """
  16376. Component information message, which may be requested using
  16377. MAV_CMD_REQUEST_MESSAGE.
  16378. """
  16379. id = MAVLINK_MSG_ID_COMPONENT_INFORMATION
  16380. msgname = "COMPONENT_INFORMATION"
  16381. fieldnames = ["time_boot_ms", "general_metadata_file_crc", "general_metadata_uri", "peripherals_metadata_file_crc", "peripherals_metadata_uri"]
  16382. ordered_fieldnames = ["time_boot_ms", "general_metadata_file_crc", "peripherals_metadata_file_crc", "general_metadata_uri", "peripherals_metadata_uri"]
  16383. fieldtypes = ["uint32_t", "uint32_t", "char", "uint32_t", "char"]
  16384. fielddisplays_by_name: Dict[str, str] = {}
  16385. fieldenums_by_name: Dict[str, str] = {}
  16386. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms"}
  16387. native_format = bytearray(b"<IIIcc")
  16388. orders = [0, 1, 3, 2, 4]
  16389. lengths = [1, 1, 1, 1, 1]
  16390. array_lengths = [0, 0, 0, 100, 100]
  16391. crc_extra = 0
  16392. unpacker = struct.Struct("<III100s100s")
  16393. instance_field = None
  16394. instance_offset = -1
  16395. 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):
  16396. MAVLink_message.__init__(self, MAVLink_component_information_message.id, MAVLink_component_information_message.msgname)
  16397. self._fieldnames = MAVLink_component_information_message.fieldnames
  16398. self._instance_field = MAVLink_component_information_message.instance_field
  16399. self._instance_offset = MAVLink_component_information_message.instance_offset
  16400. self.time_boot_ms = time_boot_ms
  16401. self.general_metadata_file_crc = general_metadata_file_crc
  16402. self._general_metadata_uri_raw = general_metadata_uri
  16403. self.general_metadata_uri = general_metadata_uri.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  16404. self.peripherals_metadata_file_crc = peripherals_metadata_file_crc
  16405. self._peripherals_metadata_uri_raw = peripherals_metadata_uri
  16406. self.peripherals_metadata_uri = peripherals_metadata_uri.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  16407. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16408. 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)
  16409. # Define name on the class for backwards compatibility (it is now msgname).
  16410. # Done with setattr to hide the class variable from mypy.
  16411. setattr(MAVLink_component_information_message, "name", mavlink_msg_deprecated_name_property())
  16412. class MAVLink_component_metadata_message(MAVLink_message):
  16413. """
  16414. Component metadata message, which may be requested using
  16415. MAV_CMD_REQUEST_MESSAGE. This contains the MAVLink FTP
  16416. URI and CRC for the component's general metadata file. The
  16417. file must be hosted on the component, and may be xz compressed.
  16418. The file CRC can be used for file caching. The general
  16419. metadata file can be read to get the locations of other metadata
  16420. files (COMP_METADATA_TYPE) and translations, which may be hosted
  16421. either on the vehicle or the internet. For more
  16422. information see:
  16423. https://mavlink.io/en/services/component_information.html.
  16424. Note: Camera components should use CAMERA_INFORMATION instead, and
  16425. autopilots may use both this message and AUTOPILOT_VERSION.
  16426. """
  16427. id = MAVLINK_MSG_ID_COMPONENT_METADATA
  16428. msgname = "COMPONENT_METADATA"
  16429. fieldnames = ["time_boot_ms", "file_crc", "uri"]
  16430. ordered_fieldnames = ["time_boot_ms", "file_crc", "uri"]
  16431. fieldtypes = ["uint32_t", "uint32_t", "char"]
  16432. fielddisplays_by_name: Dict[str, str] = {}
  16433. fieldenums_by_name: Dict[str, str] = {}
  16434. fieldunits_by_name: Dict[str, str] = {"time_boot_ms": "ms"}
  16435. native_format = bytearray(b"<IIc")
  16436. orders = [0, 1, 2]
  16437. lengths = [1, 1, 1]
  16438. array_lengths = [0, 0, 100]
  16439. crc_extra = 182
  16440. unpacker = struct.Struct("<II100s")
  16441. instance_field = None
  16442. instance_offset = -1
  16443. def __init__(self, time_boot_ms: int, file_crc: int, uri: bytes):
  16444. MAVLink_message.__init__(self, MAVLink_component_metadata_message.id, MAVLink_component_metadata_message.msgname)
  16445. self._fieldnames = MAVLink_component_metadata_message.fieldnames
  16446. self._instance_field = MAVLink_component_metadata_message.instance_field
  16447. self._instance_offset = MAVLink_component_metadata_message.instance_offset
  16448. self.time_boot_ms = time_boot_ms
  16449. self.file_crc = file_crc
  16450. self._uri_raw = uri
  16451. self.uri = uri.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  16452. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16453. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.time_boot_ms, self.file_crc, self._uri_raw), force_mavlink1=force_mavlink1)
  16454. # Define name on the class for backwards compatibility (it is now msgname).
  16455. # Done with setattr to hide the class variable from mypy.
  16456. setattr(MAVLink_component_metadata_message, "name", mavlink_msg_deprecated_name_property())
  16457. class MAVLink_play_tune_v2_message(MAVLink_message):
  16458. """
  16459. Play vehicle tone/tune (buzzer). Supersedes message PLAY_TUNE.
  16460. """
  16461. id = MAVLINK_MSG_ID_PLAY_TUNE_V2
  16462. msgname = "PLAY_TUNE_V2"
  16463. fieldnames = ["target_system", "target_component", "format", "tune"]
  16464. ordered_fieldnames = ["format", "target_system", "target_component", "tune"]
  16465. fieldtypes = ["uint8_t", "uint8_t", "uint32_t", "char"]
  16466. fielddisplays_by_name: Dict[str, str] = {"format": "bitmask"}
  16467. fieldenums_by_name: Dict[str, str] = {"format": "TUNE_FORMAT"}
  16468. fieldunits_by_name: Dict[str, str] = {}
  16469. native_format = bytearray(b"<IBBc")
  16470. orders = [1, 2, 0, 3]
  16471. lengths = [1, 1, 1, 1]
  16472. array_lengths = [0, 0, 0, 248]
  16473. crc_extra = 110
  16474. unpacker = struct.Struct("<IBB248s")
  16475. instance_field = None
  16476. instance_offset = -1
  16477. def __init__(self, target_system: int, target_component: int, format: int, tune: bytes):
  16478. MAVLink_message.__init__(self, MAVLink_play_tune_v2_message.id, MAVLink_play_tune_v2_message.msgname)
  16479. self._fieldnames = MAVLink_play_tune_v2_message.fieldnames
  16480. self._instance_field = MAVLink_play_tune_v2_message.instance_field
  16481. self._instance_offset = MAVLink_play_tune_v2_message.instance_offset
  16482. self.target_system = target_system
  16483. self.target_component = target_component
  16484. self.format = format
  16485. self._tune_raw = tune
  16486. self.tune = tune.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  16487. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16488. 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)
  16489. # Define name on the class for backwards compatibility (it is now msgname).
  16490. # Done with setattr to hide the class variable from mypy.
  16491. setattr(MAVLink_play_tune_v2_message, "name", mavlink_msg_deprecated_name_property())
  16492. class MAVLink_supported_tunes_message(MAVLink_message):
  16493. """
  16494. Tune formats supported by vehicle. This should be emitted as
  16495. response to MAV_CMD_REQUEST_MESSAGE.
  16496. """
  16497. id = MAVLINK_MSG_ID_SUPPORTED_TUNES
  16498. msgname = "SUPPORTED_TUNES"
  16499. fieldnames = ["target_system", "target_component", "format"]
  16500. ordered_fieldnames = ["format", "target_system", "target_component"]
  16501. fieldtypes = ["uint8_t", "uint8_t", "uint32_t"]
  16502. fielddisplays_by_name: Dict[str, str] = {"format": "bitmask"}
  16503. fieldenums_by_name: Dict[str, str] = {"format": "TUNE_FORMAT"}
  16504. fieldunits_by_name: Dict[str, str] = {}
  16505. native_format = bytearray(b"<IBB")
  16506. orders = [1, 2, 0]
  16507. lengths = [1, 1, 1]
  16508. array_lengths = [0, 0, 0]
  16509. crc_extra = 183
  16510. unpacker = struct.Struct("<IBB")
  16511. instance_field = None
  16512. instance_offset = -1
  16513. def __init__(self, target_system: int, target_component: int, format: int):
  16514. MAVLink_message.__init__(self, MAVLink_supported_tunes_message.id, MAVLink_supported_tunes_message.msgname)
  16515. self._fieldnames = MAVLink_supported_tunes_message.fieldnames
  16516. self._instance_field = MAVLink_supported_tunes_message.instance_field
  16517. self._instance_offset = MAVLink_supported_tunes_message.instance_offset
  16518. self.target_system = target_system
  16519. self.target_component = target_component
  16520. self.format = format
  16521. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16522. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.format, self.target_system, self.target_component), force_mavlink1=force_mavlink1)
  16523. # Define name on the class for backwards compatibility (it is now msgname).
  16524. # Done with setattr to hide the class variable from mypy.
  16525. setattr(MAVLink_supported_tunes_message, "name", mavlink_msg_deprecated_name_property())
  16526. class MAVLink_event_message(MAVLink_message):
  16527. """
  16528. Event message. Each new event from a particular component gets a
  16529. new sequence number. The same message might be sent multiple times
  16530. if (re-)requested. Most events are broadcast, some can be specific
  16531. to a target component (as receivers keep track of the sequence for
  16532. missed events, all events need to be broadcast. Thus we use
  16533. destination_component instead of target_component).
  16534. """
  16535. id = MAVLINK_MSG_ID_EVENT
  16536. msgname = "EVENT"
  16537. fieldnames = ["destination_component", "destination_system", "id", "event_time_boot_ms", "sequence", "log_levels", "arguments"]
  16538. ordered_fieldnames = ["id", "event_time_boot_ms", "sequence", "destination_component", "destination_system", "log_levels", "arguments"]
  16539. fieldtypes = ["uint8_t", "uint8_t", "uint32_t", "uint32_t", "uint16_t", "uint8_t", "uint8_t"]
  16540. fielddisplays_by_name: Dict[str, str] = {}
  16541. fieldenums_by_name: Dict[str, str] = {}
  16542. fieldunits_by_name: Dict[str, str] = {"event_time_boot_ms": "ms"}
  16543. native_format = bytearray(b"<IIHBBBB")
  16544. orders = [3, 4, 0, 1, 2, 5, 6]
  16545. lengths = [1, 1, 1, 1, 1, 1, 40]
  16546. array_lengths = [0, 0, 0, 0, 0, 0, 40]
  16547. crc_extra = 160
  16548. unpacker = struct.Struct("<IIHBBB40B")
  16549. instance_field = None
  16550. instance_offset = -1
  16551. def __init__(self, destination_component: int, destination_system: int, id: int, event_time_boot_ms: int, sequence: int, log_levels: int, arguments: Sequence[int]):
  16552. MAVLink_message.__init__(self, MAVLink_event_message.id, MAVLink_event_message.msgname)
  16553. self._fieldnames = MAVLink_event_message.fieldnames
  16554. self._instance_field = MAVLink_event_message.instance_field
  16555. self._instance_offset = MAVLink_event_message.instance_offset
  16556. self.destination_component = destination_component
  16557. self.destination_system = destination_system
  16558. self.id = id
  16559. self.event_time_boot_ms = event_time_boot_ms
  16560. self.sequence = sequence
  16561. self.log_levels = log_levels
  16562. self.arguments = arguments
  16563. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16564. 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)
  16565. # Define name on the class for backwards compatibility (it is now msgname).
  16566. # Done with setattr to hide the class variable from mypy.
  16567. setattr(MAVLink_event_message, "name", mavlink_msg_deprecated_name_property())
  16568. class MAVLink_current_event_sequence_message(MAVLink_message):
  16569. """
  16570. Regular broadcast for the current latest event sequence number for
  16571. a component. This is used to check for dropped events.
  16572. """
  16573. id = MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE
  16574. msgname = "CURRENT_EVENT_SEQUENCE"
  16575. fieldnames = ["sequence", "flags"]
  16576. ordered_fieldnames = ["sequence", "flags"]
  16577. fieldtypes = ["uint16_t", "uint8_t"]
  16578. fielddisplays_by_name: Dict[str, str] = {"flags": "bitmask"}
  16579. fieldenums_by_name: Dict[str, str] = {"flags": "MAV_EVENT_CURRENT_SEQUENCE_FLAGS"}
  16580. fieldunits_by_name: Dict[str, str] = {}
  16581. native_format = bytearray(b"<HB")
  16582. orders = [0, 1]
  16583. lengths = [1, 1]
  16584. array_lengths = [0, 0]
  16585. crc_extra = 106
  16586. unpacker = struct.Struct("<HB")
  16587. instance_field = None
  16588. instance_offset = -1
  16589. def __init__(self, sequence: int, flags: int):
  16590. MAVLink_message.__init__(self, MAVLink_current_event_sequence_message.id, MAVLink_current_event_sequence_message.msgname)
  16591. self._fieldnames = MAVLink_current_event_sequence_message.fieldnames
  16592. self._instance_field = MAVLink_current_event_sequence_message.instance_field
  16593. self._instance_offset = MAVLink_current_event_sequence_message.instance_offset
  16594. self.sequence = sequence
  16595. self.flags = flags
  16596. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16597. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.sequence, self.flags), force_mavlink1=force_mavlink1)
  16598. # Define name on the class for backwards compatibility (it is now msgname).
  16599. # Done with setattr to hide the class variable from mypy.
  16600. setattr(MAVLink_current_event_sequence_message, "name", mavlink_msg_deprecated_name_property())
  16601. class MAVLink_request_event_message(MAVLink_message):
  16602. """
  16603. Request one or more events to be (re-)sent. If
  16604. first_sequence==last_sequence, only a single event is requested.
  16605. Note that first_sequence can be larger than last_sequence (because
  16606. the sequence number can wrap). Each sequence will trigger an EVENT
  16607. or EVENT_ERROR response.
  16608. """
  16609. id = MAVLINK_MSG_ID_REQUEST_EVENT
  16610. msgname = "REQUEST_EVENT"
  16611. fieldnames = ["target_system", "target_component", "first_sequence", "last_sequence"]
  16612. ordered_fieldnames = ["first_sequence", "last_sequence", "target_system", "target_component"]
  16613. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "uint16_t"]
  16614. fielddisplays_by_name: Dict[str, str] = {}
  16615. fieldenums_by_name: Dict[str, str] = {}
  16616. fieldunits_by_name: Dict[str, str] = {}
  16617. native_format = bytearray(b"<HHBB")
  16618. orders = [2, 3, 0, 1]
  16619. lengths = [1, 1, 1, 1]
  16620. array_lengths = [0, 0, 0, 0]
  16621. crc_extra = 33
  16622. unpacker = struct.Struct("<HHBB")
  16623. instance_field = None
  16624. instance_offset = -1
  16625. def __init__(self, target_system: int, target_component: int, first_sequence: int, last_sequence: int):
  16626. MAVLink_message.__init__(self, MAVLink_request_event_message.id, MAVLink_request_event_message.msgname)
  16627. self._fieldnames = MAVLink_request_event_message.fieldnames
  16628. self._instance_field = MAVLink_request_event_message.instance_field
  16629. self._instance_offset = MAVLink_request_event_message.instance_offset
  16630. self.target_system = target_system
  16631. self.target_component = target_component
  16632. self.first_sequence = first_sequence
  16633. self.last_sequence = last_sequence
  16634. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16635. 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)
  16636. # Define name on the class for backwards compatibility (it is now msgname).
  16637. # Done with setattr to hide the class variable from mypy.
  16638. setattr(MAVLink_request_event_message, "name", mavlink_msg_deprecated_name_property())
  16639. class MAVLink_response_event_error_message(MAVLink_message):
  16640. """
  16641. Response to a REQUEST_EVENT in case of an error (e.g. the event is
  16642. not available anymore).
  16643. """
  16644. id = MAVLINK_MSG_ID_RESPONSE_EVENT_ERROR
  16645. msgname = "RESPONSE_EVENT_ERROR"
  16646. fieldnames = ["target_system", "target_component", "sequence", "sequence_oldest_available", "reason"]
  16647. ordered_fieldnames = ["sequence", "sequence_oldest_available", "target_system", "target_component", "reason"]
  16648. fieldtypes = ["uint8_t", "uint8_t", "uint16_t", "uint16_t", "uint8_t"]
  16649. fielddisplays_by_name: Dict[str, str] = {}
  16650. fieldenums_by_name: Dict[str, str] = {"reason": "MAV_EVENT_ERROR_REASON"}
  16651. fieldunits_by_name: Dict[str, str] = {}
  16652. native_format = bytearray(b"<HHBBB")
  16653. orders = [2, 3, 0, 1, 4]
  16654. lengths = [1, 1, 1, 1, 1]
  16655. array_lengths = [0, 0, 0, 0, 0]
  16656. crc_extra = 77
  16657. unpacker = struct.Struct("<HHBBB")
  16658. instance_field = None
  16659. instance_offset = -1
  16660. def __init__(self, target_system: int, target_component: int, sequence: int, sequence_oldest_available: int, reason: int):
  16661. MAVLink_message.__init__(self, MAVLink_response_event_error_message.id, MAVLink_response_event_error_message.msgname)
  16662. self._fieldnames = MAVLink_response_event_error_message.fieldnames
  16663. self._instance_field = MAVLink_response_event_error_message.instance_field
  16664. self._instance_offset = MAVLink_response_event_error_message.instance_offset
  16665. self.target_system = target_system
  16666. self.target_component = target_component
  16667. self.sequence = sequence
  16668. self.sequence_oldest_available = sequence_oldest_available
  16669. self.reason = reason
  16670. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16671. 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)
  16672. # Define name on the class for backwards compatibility (it is now msgname).
  16673. # Done with setattr to hide the class variable from mypy.
  16674. setattr(MAVLink_response_event_error_message, "name", mavlink_msg_deprecated_name_property())
  16675. class MAVLink_canfd_frame_message(MAVLink_message):
  16676. """
  16677. A forwarded CANFD frame as requested by MAV_CMD_CAN_FORWARD. These
  16678. are separated from CAN_FRAME as they need different handling (eg.
  16679. TAO handling)
  16680. """
  16681. id = MAVLINK_MSG_ID_CANFD_FRAME
  16682. msgname = "CANFD_FRAME"
  16683. fieldnames = ["target_system", "target_component", "bus", "len", "id", "data"]
  16684. ordered_fieldnames = ["id", "target_system", "target_component", "bus", "len", "data"]
  16685. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint32_t", "uint8_t"]
  16686. fielddisplays_by_name: Dict[str, str] = {}
  16687. fieldenums_by_name: Dict[str, str] = {}
  16688. fieldunits_by_name: Dict[str, str] = {}
  16689. native_format = bytearray(b"<IBBBBB")
  16690. orders = [1, 2, 3, 4, 0, 5]
  16691. lengths = [1, 1, 1, 1, 1, 64]
  16692. array_lengths = [0, 0, 0, 0, 0, 64]
  16693. crc_extra = 4
  16694. unpacker = struct.Struct("<IBBBB64B")
  16695. instance_field = None
  16696. instance_offset = -1
  16697. def __init__(self, target_system: int, target_component: int, bus: int, len: int, id: int, data: Sequence[int]):
  16698. MAVLink_message.__init__(self, MAVLink_canfd_frame_message.id, MAVLink_canfd_frame_message.msgname)
  16699. self._fieldnames = MAVLink_canfd_frame_message.fieldnames
  16700. self._instance_field = MAVLink_canfd_frame_message.instance_field
  16701. self._instance_offset = MAVLink_canfd_frame_message.instance_offset
  16702. self.target_system = target_system
  16703. self.target_component = target_component
  16704. self.bus = bus
  16705. self.len = len
  16706. self.id = id
  16707. self.data = data
  16708. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16709. 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)
  16710. # Define name on the class for backwards compatibility (it is now msgname).
  16711. # Done with setattr to hide the class variable from mypy.
  16712. setattr(MAVLink_canfd_frame_message, "name", mavlink_msg_deprecated_name_property())
  16713. class MAVLink_can_filter_modify_message(MAVLink_message):
  16714. """
  16715. Modify the filter of what CAN messages to forward over the
  16716. mavlink. This can be used to make CAN forwarding work well on low
  16717. bandwidth links. The filtering is applied on bits 8 to 24 of the
  16718. CAN id (2nd and 3rd bytes) which corresponds to the DroneCAN
  16719. message ID for DroneCAN. Filters with more than 16 IDs can be
  16720. constructed by sending multiple CAN_FILTER_MODIFY messages.
  16721. """
  16722. id = MAVLINK_MSG_ID_CAN_FILTER_MODIFY
  16723. msgname = "CAN_FILTER_MODIFY"
  16724. fieldnames = ["target_system", "target_component", "bus", "operation", "num_ids", "ids"]
  16725. ordered_fieldnames = ["ids", "target_system", "target_component", "bus", "operation", "num_ids"]
  16726. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint16_t"]
  16727. fielddisplays_by_name: Dict[str, str] = {}
  16728. fieldenums_by_name: Dict[str, str] = {"operation": "CAN_FILTER_OP"}
  16729. fieldunits_by_name: Dict[str, str] = {}
  16730. native_format = bytearray(b"<HBBBBB")
  16731. orders = [1, 2, 3, 4, 5, 0]
  16732. lengths = [16, 1, 1, 1, 1, 1]
  16733. array_lengths = [16, 0, 0, 0, 0, 0]
  16734. crc_extra = 8
  16735. unpacker = struct.Struct("<16HBBBBB")
  16736. instance_field = None
  16737. instance_offset = -1
  16738. def __init__(self, target_system: int, target_component: int, bus: int, operation: int, num_ids: int, ids: Sequence[int]):
  16739. MAVLink_message.__init__(self, MAVLink_can_filter_modify_message.id, MAVLink_can_filter_modify_message.msgname)
  16740. self._fieldnames = MAVLink_can_filter_modify_message.fieldnames
  16741. self._instance_field = MAVLink_can_filter_modify_message.instance_field
  16742. self._instance_offset = MAVLink_can_filter_modify_message.instance_offset
  16743. self.target_system = target_system
  16744. self.target_component = target_component
  16745. self.bus = bus
  16746. self.operation = operation
  16747. self.num_ids = num_ids
  16748. self.ids = ids
  16749. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16750. 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)
  16751. # Define name on the class for backwards compatibility (it is now msgname).
  16752. # Done with setattr to hide the class variable from mypy.
  16753. setattr(MAVLink_can_filter_modify_message, "name", mavlink_msg_deprecated_name_property())
  16754. class MAVLink_wheel_distance_message(MAVLink_message):
  16755. """
  16756. Cumulative distance traveled for each reported wheel.
  16757. """
  16758. id = MAVLINK_MSG_ID_WHEEL_DISTANCE
  16759. msgname = "WHEEL_DISTANCE"
  16760. fieldnames = ["time_usec", "count", "distance"]
  16761. ordered_fieldnames = ["time_usec", "distance", "count"]
  16762. fieldtypes = ["uint64_t", "uint8_t", "double"]
  16763. fielddisplays_by_name: Dict[str, str] = {}
  16764. fieldenums_by_name: Dict[str, str] = {}
  16765. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "distance": "m"}
  16766. native_format = bytearray(b"<QdB")
  16767. orders = [0, 2, 1]
  16768. lengths = [1, 16, 1]
  16769. array_lengths = [0, 16, 0]
  16770. crc_extra = 113
  16771. unpacker = struct.Struct("<Q16dB")
  16772. instance_field = None
  16773. instance_offset = -1
  16774. def __init__(self, time_usec: int, count: int, distance: Sequence[float]):
  16775. MAVLink_message.__init__(self, MAVLink_wheel_distance_message.id, MAVLink_wheel_distance_message.msgname)
  16776. self._fieldnames = MAVLink_wheel_distance_message.fieldnames
  16777. self._instance_field = MAVLink_wheel_distance_message.instance_field
  16778. self._instance_offset = MAVLink_wheel_distance_message.instance_offset
  16779. self.time_usec = time_usec
  16780. self.count = count
  16781. self.distance = distance
  16782. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16783. 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)
  16784. # Define name on the class for backwards compatibility (it is now msgname).
  16785. # Done with setattr to hide the class variable from mypy.
  16786. setattr(MAVLink_wheel_distance_message, "name", mavlink_msg_deprecated_name_property())
  16787. class MAVLink_winch_status_message(MAVLink_message):
  16788. """
  16789. Winch status.
  16790. """
  16791. id = MAVLINK_MSG_ID_WINCH_STATUS
  16792. msgname = "WINCH_STATUS"
  16793. fieldnames = ["time_usec", "line_length", "speed", "tension", "voltage", "current", "temperature", "status"]
  16794. ordered_fieldnames = ["time_usec", "line_length", "speed", "tension", "voltage", "current", "status", "temperature"]
  16795. fieldtypes = ["uint64_t", "float", "float", "float", "float", "float", "int16_t", "uint32_t"]
  16796. fielddisplays_by_name: Dict[str, str] = {"status": "bitmask"}
  16797. fieldenums_by_name: Dict[str, str] = {"status": "MAV_WINCH_STATUS_FLAG"}
  16798. fieldunits_by_name: Dict[str, str] = {"time_usec": "us", "line_length": "m", "speed": "m/s", "tension": "kg", "voltage": "V", "current": "A", "temperature": "degC"}
  16799. native_format = bytearray(b"<QfffffIh")
  16800. orders = [0, 1, 2, 3, 4, 5, 7, 6]
  16801. lengths = [1, 1, 1, 1, 1, 1, 1, 1]
  16802. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0]
  16803. crc_extra = 117
  16804. unpacker = struct.Struct("<QfffffIh")
  16805. instance_field = None
  16806. instance_offset = -1
  16807. def __init__(self, time_usec: int, line_length: float, speed: float, tension: float, voltage: float, current: float, temperature: int, status: int):
  16808. MAVLink_message.__init__(self, MAVLink_winch_status_message.id, MAVLink_winch_status_message.msgname)
  16809. self._fieldnames = MAVLink_winch_status_message.fieldnames
  16810. self._instance_field = MAVLink_winch_status_message.instance_field
  16811. self._instance_offset = MAVLink_winch_status_message.instance_offset
  16812. self.time_usec = time_usec
  16813. self.line_length = line_length
  16814. self.speed = speed
  16815. self.tension = tension
  16816. self.voltage = voltage
  16817. self.current = current
  16818. self.temperature = temperature
  16819. self.status = status
  16820. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16821. 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)
  16822. # Define name on the class for backwards compatibility (it is now msgname).
  16823. # Done with setattr to hide the class variable from mypy.
  16824. setattr(MAVLink_winch_status_message, "name", mavlink_msg_deprecated_name_property())
  16825. class MAVLink_open_drone_id_basic_id_message(MAVLink_message):
  16826. """
  16827. Data for filling the OpenDroneID Basic ID message. This and the
  16828. below messages are primarily meant for feeding data to/from an
  16829. OpenDroneID implementation. E.g.
  16830. https://github.com/opendroneid/opendroneid-core-c. These messages
  16831. are compatible with the ASTM F3411 Remote ID standard and the ASD-
  16832. STAN prEN 4709-002 Direct Remote ID standard. Additional
  16833. information and usage of these messages is documented at
  16834. https://mavlink.io/en/services/opendroneid.html.
  16835. """
  16836. id = MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID
  16837. msgname = "OPEN_DRONE_ID_BASIC_ID"
  16838. fieldnames = ["target_system", "target_component", "id_or_mac", "id_type", "ua_type", "uas_id"]
  16839. ordered_fieldnames = ["target_system", "target_component", "id_or_mac", "id_type", "ua_type", "uas_id"]
  16840. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t"]
  16841. fielddisplays_by_name: Dict[str, str] = {}
  16842. fieldenums_by_name: Dict[str, str] = {"id_type": "MAV_ODID_ID_TYPE", "ua_type": "MAV_ODID_UA_TYPE"}
  16843. fieldunits_by_name: Dict[str, str] = {}
  16844. native_format = bytearray(b"<BBBBBB")
  16845. orders = [0, 1, 2, 3, 4, 5]
  16846. lengths = [1, 1, 20, 1, 1, 20]
  16847. array_lengths = [0, 0, 20, 0, 0, 20]
  16848. crc_extra = 114
  16849. unpacker = struct.Struct("<BB20BBB20B")
  16850. instance_field = None
  16851. instance_offset = -1
  16852. def __init__(self, target_system: int, target_component: int, id_or_mac: Sequence[int], id_type: int, ua_type: int, uas_id: Sequence[int]):
  16853. MAVLink_message.__init__(self, MAVLink_open_drone_id_basic_id_message.id, MAVLink_open_drone_id_basic_id_message.msgname)
  16854. self._fieldnames = MAVLink_open_drone_id_basic_id_message.fieldnames
  16855. self._instance_field = MAVLink_open_drone_id_basic_id_message.instance_field
  16856. self._instance_offset = MAVLink_open_drone_id_basic_id_message.instance_offset
  16857. self.target_system = target_system
  16858. self.target_component = target_component
  16859. self.id_or_mac = id_or_mac
  16860. self.id_type = id_type
  16861. self.ua_type = ua_type
  16862. self.uas_id = uas_id
  16863. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16864. 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)
  16865. # Define name on the class for backwards compatibility (it is now msgname).
  16866. # Done with setattr to hide the class variable from mypy.
  16867. setattr(MAVLink_open_drone_id_basic_id_message, "name", mavlink_msg_deprecated_name_property())
  16868. class MAVLink_open_drone_id_location_message(MAVLink_message):
  16869. """
  16870. Data for filling the OpenDroneID Location message. The float data
  16871. types are 32-bit IEEE 754. The Location message provides the
  16872. location, altitude, direction and speed of the aircraft.
  16873. """
  16874. id = MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION
  16875. msgname = "OPEN_DRONE_ID_LOCATION"
  16876. 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"]
  16877. 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"]
  16878. 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"]
  16879. fielddisplays_by_name: Dict[str, str] = {}
  16880. 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"}
  16881. 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"}
  16882. native_format = bytearray(b"<iiffffHHhBBBBBBBBBB")
  16883. orders = [9, 10, 11, 12, 6, 7, 8, 0, 1, 2, 3, 13, 4, 14, 15, 16, 17, 5, 18]
  16884. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 20, 1, 1, 1, 1, 1, 1, 1]
  16885. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0]
  16886. crc_extra = 254
  16887. unpacker = struct.Struct("<iiffffHHhBB20BBBBBBBB")
  16888. instance_field = None
  16889. instance_offset = -1
  16890. 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):
  16891. MAVLink_message.__init__(self, MAVLink_open_drone_id_location_message.id, MAVLink_open_drone_id_location_message.msgname)
  16892. self._fieldnames = MAVLink_open_drone_id_location_message.fieldnames
  16893. self._instance_field = MAVLink_open_drone_id_location_message.instance_field
  16894. self._instance_offset = MAVLink_open_drone_id_location_message.instance_offset
  16895. self.target_system = target_system
  16896. self.target_component = target_component
  16897. self.id_or_mac = id_or_mac
  16898. self.status = status
  16899. self.direction = direction
  16900. self.speed_horizontal = speed_horizontal
  16901. self.speed_vertical = speed_vertical
  16902. self.latitude = latitude
  16903. self.longitude = longitude
  16904. self.altitude_barometric = altitude_barometric
  16905. self.altitude_geodetic = altitude_geodetic
  16906. self.height_reference = height_reference
  16907. self.height = height
  16908. self.horizontal_accuracy = horizontal_accuracy
  16909. self.vertical_accuracy = vertical_accuracy
  16910. self.barometer_accuracy = barometer_accuracy
  16911. self.speed_accuracy = speed_accuracy
  16912. self.timestamp = timestamp
  16913. self.timestamp_accuracy = timestamp_accuracy
  16914. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16915. 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)
  16916. # Define name on the class for backwards compatibility (it is now msgname).
  16917. # Done with setattr to hide the class variable from mypy.
  16918. setattr(MAVLink_open_drone_id_location_message, "name", mavlink_msg_deprecated_name_property())
  16919. class MAVLink_open_drone_id_authentication_message(MAVLink_message):
  16920. """
  16921. Data for filling the OpenDroneID Authentication message. The
  16922. Authentication Message defines a field that can provide a means of
  16923. authenticity for the identity of the UAS (Unmanned Aircraft
  16924. System). The Authentication message can have two different
  16925. formats. For data page 0, the fields PageCount, Length and
  16926. TimeStamp are present and AuthData is only 17 bytes. For data page
  16927. 1 through 15, PageCount, Length and TimeStamp are not present and
  16928. the size of AuthData is 23 bytes.
  16929. """
  16930. id = MAVLINK_MSG_ID_OPEN_DRONE_ID_AUTHENTICATION
  16931. msgname = "OPEN_DRONE_ID_AUTHENTICATION"
  16932. fieldnames = ["target_system", "target_component", "id_or_mac", "authentication_type", "data_page", "last_page_index", "length", "timestamp", "authentication_data"]
  16933. ordered_fieldnames = ["timestamp", "target_system", "target_component", "id_or_mac", "authentication_type", "data_page", "last_page_index", "length", "authentication_data"]
  16934. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint32_t", "uint8_t"]
  16935. fielddisplays_by_name: Dict[str, str] = {}
  16936. fieldenums_by_name: Dict[str, str] = {"authentication_type": "MAV_ODID_AUTH_TYPE"}
  16937. fieldunits_by_name: Dict[str, str] = {"length": "bytes", "timestamp": "s"}
  16938. native_format = bytearray(b"<IBBBBBBBB")
  16939. orders = [1, 2, 3, 4, 5, 6, 7, 0, 8]
  16940. lengths = [1, 1, 1, 20, 1, 1, 1, 1, 23]
  16941. array_lengths = [0, 0, 0, 20, 0, 0, 0, 0, 23]
  16942. crc_extra = 140
  16943. unpacker = struct.Struct("<IBB20BBBBB23B")
  16944. instance_field = None
  16945. instance_offset = -1
  16946. 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]):
  16947. MAVLink_message.__init__(self, MAVLink_open_drone_id_authentication_message.id, MAVLink_open_drone_id_authentication_message.msgname)
  16948. self._fieldnames = MAVLink_open_drone_id_authentication_message.fieldnames
  16949. self._instance_field = MAVLink_open_drone_id_authentication_message.instance_field
  16950. self._instance_offset = MAVLink_open_drone_id_authentication_message.instance_offset
  16951. self.target_system = target_system
  16952. self.target_component = target_component
  16953. self.id_or_mac = id_or_mac
  16954. self.authentication_type = authentication_type
  16955. self.data_page = data_page
  16956. self.last_page_index = last_page_index
  16957. self.length = length
  16958. self.timestamp = timestamp
  16959. self.authentication_data = authentication_data
  16960. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  16961. 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)
  16962. # Define name on the class for backwards compatibility (it is now msgname).
  16963. # Done with setattr to hide the class variable from mypy.
  16964. setattr(MAVLink_open_drone_id_authentication_message, "name", mavlink_msg_deprecated_name_property())
  16965. class MAVLink_open_drone_id_self_id_message(MAVLink_message):
  16966. """
  16967. Data for filling the OpenDroneID Self ID message. The Self ID
  16968. Message is an opportunity for the operator to (optionally) declare
  16969. their identity and purpose of the flight. This message can provide
  16970. additional information that could reduce the threat profile of a
  16971. UA (Unmanned Aircraft) flying in a particular area or manner. This
  16972. message can also be used to provide optional additional
  16973. clarification in an emergency/remote ID system failure situation.
  16974. """
  16975. id = MAVLINK_MSG_ID_OPEN_DRONE_ID_SELF_ID
  16976. msgname = "OPEN_DRONE_ID_SELF_ID"
  16977. fieldnames = ["target_system", "target_component", "id_or_mac", "description_type", "description"]
  16978. ordered_fieldnames = ["target_system", "target_component", "id_or_mac", "description_type", "description"]
  16979. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "char"]
  16980. fielddisplays_by_name: Dict[str, str] = {}
  16981. fieldenums_by_name: Dict[str, str] = {"description_type": "MAV_ODID_DESC_TYPE"}
  16982. fieldunits_by_name: Dict[str, str] = {}
  16983. native_format = bytearray(b"<BBBBc")
  16984. orders = [0, 1, 2, 3, 4]
  16985. lengths = [1, 1, 20, 1, 1]
  16986. array_lengths = [0, 0, 20, 0, 23]
  16987. crc_extra = 249
  16988. unpacker = struct.Struct("<BB20BB23s")
  16989. instance_field = None
  16990. instance_offset = -1
  16991. def __init__(self, target_system: int, target_component: int, id_or_mac: Sequence[int], description_type: int, description: bytes):
  16992. MAVLink_message.__init__(self, MAVLink_open_drone_id_self_id_message.id, MAVLink_open_drone_id_self_id_message.msgname)
  16993. self._fieldnames = MAVLink_open_drone_id_self_id_message.fieldnames
  16994. self._instance_field = MAVLink_open_drone_id_self_id_message.instance_field
  16995. self._instance_offset = MAVLink_open_drone_id_self_id_message.instance_offset
  16996. self.target_system = target_system
  16997. self.target_component = target_component
  16998. self.id_or_mac = id_or_mac
  16999. self.description_type = description_type
  17000. self._description_raw = description
  17001. self.description = description.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  17002. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  17003. 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)
  17004. # Define name on the class for backwards compatibility (it is now msgname).
  17005. # Done with setattr to hide the class variable from mypy.
  17006. setattr(MAVLink_open_drone_id_self_id_message, "name", mavlink_msg_deprecated_name_property())
  17007. class MAVLink_open_drone_id_system_message(MAVLink_message):
  17008. """
  17009. Data for filling the OpenDroneID System message. The System
  17010. Message contains general system information including the operator
  17011. location/altitude and possible aircraft group and/or
  17012. category/class information.
  17013. """
  17014. id = MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM
  17015. msgname = "OPEN_DRONE_ID_SYSTEM"
  17016. 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"]
  17017. 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"]
  17018. 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"]
  17019. fielddisplays_by_name: Dict[str, str] = {}
  17020. 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"}
  17021. 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"}
  17022. native_format = bytearray(b"<iifffIHHBBBBBBB")
  17023. orders = [8, 9, 10, 11, 12, 0, 1, 6, 7, 2, 3, 13, 14, 4, 5]
  17024. lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 20, 1, 1, 1, 1]
  17025. array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0]
  17026. crc_extra = 77
  17027. unpacker = struct.Struct("<iifffIHHBB20BBBBB")
  17028. instance_field = None
  17029. instance_offset = -1
  17030. 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):
  17031. MAVLink_message.__init__(self, MAVLink_open_drone_id_system_message.id, MAVLink_open_drone_id_system_message.msgname)
  17032. self._fieldnames = MAVLink_open_drone_id_system_message.fieldnames
  17033. self._instance_field = MAVLink_open_drone_id_system_message.instance_field
  17034. self._instance_offset = MAVLink_open_drone_id_system_message.instance_offset
  17035. self.target_system = target_system
  17036. self.target_component = target_component
  17037. self.id_or_mac = id_or_mac
  17038. self.operator_location_type = operator_location_type
  17039. self.classification_type = classification_type
  17040. self.operator_latitude = operator_latitude
  17041. self.operator_longitude = operator_longitude
  17042. self.area_count = area_count
  17043. self.area_radius = area_radius
  17044. self.area_ceiling = area_ceiling
  17045. self.area_floor = area_floor
  17046. self.category_eu = category_eu
  17047. self.class_eu = class_eu
  17048. self.operator_altitude_geo = operator_altitude_geo
  17049. self.timestamp = timestamp
  17050. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  17051. 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)
  17052. # Define name on the class for backwards compatibility (it is now msgname).
  17053. # Done with setattr to hide the class variable from mypy.
  17054. setattr(MAVLink_open_drone_id_system_message, "name", mavlink_msg_deprecated_name_property())
  17055. class MAVLink_open_drone_id_operator_id_message(MAVLink_message):
  17056. """
  17057. Data for filling the OpenDroneID Operator ID message, which
  17058. contains the CAA (Civil Aviation Authority) issued operator ID.
  17059. """
  17060. id = MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID
  17061. msgname = "OPEN_DRONE_ID_OPERATOR_ID"
  17062. fieldnames = ["target_system", "target_component", "id_or_mac", "operator_id_type", "operator_id"]
  17063. ordered_fieldnames = ["target_system", "target_component", "id_or_mac", "operator_id_type", "operator_id"]
  17064. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "char"]
  17065. fielddisplays_by_name: Dict[str, str] = {}
  17066. fieldenums_by_name: Dict[str, str] = {"operator_id_type": "MAV_ODID_OPERATOR_ID_TYPE"}
  17067. fieldunits_by_name: Dict[str, str] = {}
  17068. native_format = bytearray(b"<BBBBc")
  17069. orders = [0, 1, 2, 3, 4]
  17070. lengths = [1, 1, 20, 1, 1]
  17071. array_lengths = [0, 0, 20, 0, 20]
  17072. crc_extra = 49
  17073. unpacker = struct.Struct("<BB20BB20s")
  17074. instance_field = None
  17075. instance_offset = -1
  17076. def __init__(self, target_system: int, target_component: int, id_or_mac: Sequence[int], operator_id_type: int, operator_id: bytes):
  17077. MAVLink_message.__init__(self, MAVLink_open_drone_id_operator_id_message.id, MAVLink_open_drone_id_operator_id_message.msgname)
  17078. self._fieldnames = MAVLink_open_drone_id_operator_id_message.fieldnames
  17079. self._instance_field = MAVLink_open_drone_id_operator_id_message.instance_field
  17080. self._instance_offset = MAVLink_open_drone_id_operator_id_message.instance_offset
  17081. self.target_system = target_system
  17082. self.target_component = target_component
  17083. self.id_or_mac = id_or_mac
  17084. self.operator_id_type = operator_id_type
  17085. self._operator_id_raw = operator_id
  17086. self.operator_id = operator_id.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  17087. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  17088. 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)
  17089. # Define name on the class for backwards compatibility (it is now msgname).
  17090. # Done with setattr to hide the class variable from mypy.
  17091. setattr(MAVLink_open_drone_id_operator_id_message, "name", mavlink_msg_deprecated_name_property())
  17092. class MAVLink_open_drone_id_message_pack_message(MAVLink_message):
  17093. """
  17094. An OpenDroneID message pack is a container for multiple encoded
  17095. OpenDroneID messages (i.e. not in the format given for the above
  17096. message descriptions but after encoding into the compressed
  17097. OpenDroneID byte format). Used e.g. when transmitting on Bluetooth
  17098. 5.0 Long Range/Extended Advertising or on WiFi Neighbor Aware
  17099. Networking or on WiFi Beacon.
  17100. """
  17101. id = MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK
  17102. msgname = "OPEN_DRONE_ID_MESSAGE_PACK"
  17103. fieldnames = ["target_system", "target_component", "id_or_mac", "single_message_size", "msg_pack_size", "messages"]
  17104. ordered_fieldnames = ["target_system", "target_component", "id_or_mac", "single_message_size", "msg_pack_size", "messages"]
  17105. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t", "uint8_t"]
  17106. fielddisplays_by_name: Dict[str, str] = {}
  17107. fieldenums_by_name: Dict[str, str] = {}
  17108. fieldunits_by_name: Dict[str, str] = {"single_message_size": "bytes"}
  17109. native_format = bytearray(b"<BBBBBB")
  17110. orders = [0, 1, 2, 3, 4, 5]
  17111. lengths = [1, 1, 20, 1, 1, 225]
  17112. array_lengths = [0, 0, 20, 0, 0, 225]
  17113. crc_extra = 94
  17114. unpacker = struct.Struct("<BB20BBB225B")
  17115. instance_field = None
  17116. instance_offset = -1
  17117. 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]):
  17118. MAVLink_message.__init__(self, MAVLink_open_drone_id_message_pack_message.id, MAVLink_open_drone_id_message_pack_message.msgname)
  17119. self._fieldnames = MAVLink_open_drone_id_message_pack_message.fieldnames
  17120. self._instance_field = MAVLink_open_drone_id_message_pack_message.instance_field
  17121. self._instance_offset = MAVLink_open_drone_id_message_pack_message.instance_offset
  17122. self.target_system = target_system
  17123. self.target_component = target_component
  17124. self.id_or_mac = id_or_mac
  17125. self.single_message_size = single_message_size
  17126. self.msg_pack_size = msg_pack_size
  17127. self.messages = messages
  17128. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  17129. 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)
  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_message_pack_message, "name", mavlink_msg_deprecated_name_property())
  17133. class MAVLink_open_drone_id_arm_status_message(MAVLink_message):
  17134. """
  17135. Transmitter (remote ID system) is enabled and ready to start
  17136. sending location and other required information. This is streamed
  17137. by transmitter. A flight controller uses it as a condition to arm.
  17138. """
  17139. id = MAVLINK_MSG_ID_OPEN_DRONE_ID_ARM_STATUS
  17140. msgname = "OPEN_DRONE_ID_ARM_STATUS"
  17141. fieldnames = ["status", "error"]
  17142. ordered_fieldnames = ["status", "error"]
  17143. fieldtypes = ["uint8_t", "char"]
  17144. fielddisplays_by_name: Dict[str, str] = {}
  17145. fieldenums_by_name: Dict[str, str] = {"status": "MAV_ODID_ARM_STATUS"}
  17146. fieldunits_by_name: Dict[str, str] = {}
  17147. native_format = bytearray(b"<Bc")
  17148. orders = [0, 1]
  17149. lengths = [1, 1]
  17150. array_lengths = [0, 50]
  17151. crc_extra = 139
  17152. unpacker = struct.Struct("<B50s")
  17153. instance_field = None
  17154. instance_offset = -1
  17155. def __init__(self, status: int, error: bytes):
  17156. MAVLink_message.__init__(self, MAVLink_open_drone_id_arm_status_message.id, MAVLink_open_drone_id_arm_status_message.msgname)
  17157. self._fieldnames = MAVLink_open_drone_id_arm_status_message.fieldnames
  17158. self._instance_field = MAVLink_open_drone_id_arm_status_message.instance_field
  17159. self._instance_offset = MAVLink_open_drone_id_arm_status_message.instance_offset
  17160. self.status = status
  17161. self._error_raw = error
  17162. self.error = error.split(b"\x00", 1)[0].decode("ascii", errors="replace")
  17163. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  17164. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.status, self._error_raw), force_mavlink1=force_mavlink1)
  17165. # Define name on the class for backwards compatibility (it is now msgname).
  17166. # Done with setattr to hide the class variable from mypy.
  17167. setattr(MAVLink_open_drone_id_arm_status_message, "name", mavlink_msg_deprecated_name_property())
  17168. class MAVLink_open_drone_id_system_update_message(MAVLink_message):
  17169. """
  17170. Update the data in the OPEN_DRONE_ID_SYSTEM message with new
  17171. location information. This can be sent to update the location
  17172. information for the operator when no other information in the
  17173. SYSTEM message has changed. This message allows for efficient
  17174. operation on radio links which have limited uplink bandwidth while
  17175. meeting requirements for update frequency of the operator
  17176. location.
  17177. """
  17178. id = MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE
  17179. msgname = "OPEN_DRONE_ID_SYSTEM_UPDATE"
  17180. fieldnames = ["target_system", "target_component", "operator_latitude", "operator_longitude", "operator_altitude_geo", "timestamp"]
  17181. ordered_fieldnames = ["operator_latitude", "operator_longitude", "operator_altitude_geo", "timestamp", "target_system", "target_component"]
  17182. fieldtypes = ["uint8_t", "uint8_t", "int32_t", "int32_t", "float", "uint32_t"]
  17183. fielddisplays_by_name: Dict[str, str] = {}
  17184. fieldenums_by_name: Dict[str, str] = {}
  17185. fieldunits_by_name: Dict[str, str] = {"operator_latitude": "degE7", "operator_longitude": "degE7", "operator_altitude_geo": "m", "timestamp": "s"}
  17186. native_format = bytearray(b"<iifIBB")
  17187. orders = [4, 5, 0, 1, 2, 3]
  17188. lengths = [1, 1, 1, 1, 1, 1]
  17189. array_lengths = [0, 0, 0, 0, 0, 0]
  17190. crc_extra = 7
  17191. unpacker = struct.Struct("<iifIBB")
  17192. instance_field = None
  17193. instance_offset = -1
  17194. def __init__(self, target_system: int, target_component: int, operator_latitude: int, operator_longitude: int, operator_altitude_geo: float, timestamp: int):
  17195. MAVLink_message.__init__(self, MAVLink_open_drone_id_system_update_message.id, MAVLink_open_drone_id_system_update_message.msgname)
  17196. self._fieldnames = MAVLink_open_drone_id_system_update_message.fieldnames
  17197. self._instance_field = MAVLink_open_drone_id_system_update_message.instance_field
  17198. self._instance_offset = MAVLink_open_drone_id_system_update_message.instance_offset
  17199. self.target_system = target_system
  17200. self.target_component = target_component
  17201. self.operator_latitude = operator_latitude
  17202. self.operator_longitude = operator_longitude
  17203. self.operator_altitude_geo = operator_altitude_geo
  17204. self.timestamp = timestamp
  17205. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  17206. 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)
  17207. # Define name on the class for backwards compatibility (it is now msgname).
  17208. # Done with setattr to hide the class variable from mypy.
  17209. setattr(MAVLink_open_drone_id_system_update_message, "name", mavlink_msg_deprecated_name_property())
  17210. class MAVLink_hygrometer_sensor_message(MAVLink_message):
  17211. """
  17212. Temperature and humidity from hygrometer.
  17213. """
  17214. id = MAVLINK_MSG_ID_HYGROMETER_SENSOR
  17215. msgname = "HYGROMETER_SENSOR"
  17216. fieldnames = ["id", "temperature", "humidity"]
  17217. ordered_fieldnames = ["temperature", "humidity", "id"]
  17218. fieldtypes = ["uint8_t", "int16_t", "uint16_t"]
  17219. fielddisplays_by_name: Dict[str, str] = {}
  17220. fieldenums_by_name: Dict[str, str] = {}
  17221. fieldunits_by_name: Dict[str, str] = {"temperature": "cdegC", "humidity": "c%"}
  17222. native_format = bytearray(b"<hHB")
  17223. orders = [2, 0, 1]
  17224. lengths = [1, 1, 1]
  17225. array_lengths = [0, 0, 0]
  17226. crc_extra = 20
  17227. unpacker = struct.Struct("<hHB")
  17228. instance_field = "id"
  17229. instance_offset = 4
  17230. def __init__(self, id: int, temperature: int, humidity: int):
  17231. MAVLink_message.__init__(self, MAVLink_hygrometer_sensor_message.id, MAVLink_hygrometer_sensor_message.msgname)
  17232. self._fieldnames = MAVLink_hygrometer_sensor_message.fieldnames
  17233. self._instance_field = MAVLink_hygrometer_sensor_message.instance_field
  17234. self._instance_offset = MAVLink_hygrometer_sensor_message.instance_offset
  17235. self.id = id
  17236. self.temperature = temperature
  17237. self.humidity = humidity
  17238. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  17239. return self._pack(mav, self.crc_extra, self.unpacker.pack(self.temperature, self.humidity, self.id), force_mavlink1=force_mavlink1)
  17240. # Define name on the class for backwards compatibility (it is now msgname).
  17241. # Done with setattr to hide the class variable from mypy.
  17242. setattr(MAVLink_hygrometer_sensor_message, "name", mavlink_msg_deprecated_name_property())
  17243. class MAVLink_heartbeat_message(MAVLink_message):
  17244. """
  17245. The heartbeat message shows that a system or component is present
  17246. and responding. The type and autopilot fields (along with the
  17247. message component id), allow the receiving system to treat further
  17248. messages from this system appropriately (e.g. by laying out the
  17249. user interface based on the autopilot). This microservice is
  17250. documented at https://mavlink.io/en/services/heartbeat.html
  17251. """
  17252. id = MAVLINK_MSG_ID_HEARTBEAT
  17253. msgname = "HEARTBEAT"
  17254. fieldnames = ["type", "autopilot", "base_mode", "custom_mode", "system_status", "mavlink_version"]
  17255. ordered_fieldnames = ["custom_mode", "type", "autopilot", "base_mode", "system_status", "mavlink_version"]
  17256. fieldtypes = ["uint8_t", "uint8_t", "uint8_t", "uint32_t", "uint8_t", "uint8_t"]
  17257. fielddisplays_by_name: Dict[str, str] = {"base_mode": "bitmask"}
  17258. fieldenums_by_name: Dict[str, str] = {"type": "MAV_TYPE", "autopilot": "MAV_AUTOPILOT", "base_mode": "MAV_MODE_FLAG", "system_status": "MAV_STATE"}
  17259. fieldunits_by_name: Dict[str, str] = {}
  17260. native_format = bytearray(b"<IBBBBB")
  17261. orders = [1, 2, 3, 0, 4, 5]
  17262. lengths = [1, 1, 1, 1, 1, 1]
  17263. array_lengths = [0, 0, 0, 0, 0, 0]
  17264. crc_extra = 50
  17265. unpacker = struct.Struct("<IBBBBB")
  17266. instance_field = None
  17267. instance_offset = -1
  17268. def __init__(self, type: int, autopilot: int, base_mode: int, custom_mode: int, system_status: int, mavlink_version: int):
  17269. MAVLink_message.__init__(self, MAVLink_heartbeat_message.id, MAVLink_heartbeat_message.msgname)
  17270. self._fieldnames = MAVLink_heartbeat_message.fieldnames
  17271. self._instance_field = MAVLink_heartbeat_message.instance_field
  17272. self._instance_offset = MAVLink_heartbeat_message.instance_offset
  17273. self.type = type
  17274. self.autopilot = autopilot
  17275. self.base_mode = base_mode
  17276. self.custom_mode = custom_mode
  17277. self.system_status = system_status
  17278. self.mavlink_version = mavlink_version
  17279. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  17280. 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)
  17281. # Define name on the class for backwards compatibility (it is now msgname).
  17282. # Done with setattr to hide the class variable from mypy.
  17283. setattr(MAVLink_heartbeat_message, "name", mavlink_msg_deprecated_name_property())
  17284. class MAVLink_protocol_version_message(MAVLink_message):
  17285. """
  17286. Version and capability of protocol version. This message can be
  17287. requested with MAV_CMD_REQUEST_MESSAGE and is used as part of the
  17288. handshaking to establish which MAVLink version should be used on
  17289. the network. Every node should respond to a request for
  17290. PROTOCOL_VERSION to enable the handshaking. Library implementers
  17291. should consider adding this into the default decoding state
  17292. machine to allow the protocol core to respond directly.
  17293. """
  17294. id = MAVLINK_MSG_ID_PROTOCOL_VERSION
  17295. msgname = "PROTOCOL_VERSION"
  17296. fieldnames = ["version", "min_version", "max_version", "spec_version_hash", "library_version_hash"]
  17297. ordered_fieldnames = ["version", "min_version", "max_version", "spec_version_hash", "library_version_hash"]
  17298. fieldtypes = ["uint16_t", "uint16_t", "uint16_t", "uint8_t", "uint8_t"]
  17299. fielddisplays_by_name: Dict[str, str] = {}
  17300. fieldenums_by_name: Dict[str, str] = {}
  17301. fieldunits_by_name: Dict[str, str] = {}
  17302. native_format = bytearray(b"<HHHBB")
  17303. orders = [0, 1, 2, 3, 4]
  17304. lengths = [1, 1, 1, 8, 8]
  17305. array_lengths = [0, 0, 0, 8, 8]
  17306. crc_extra = 217
  17307. unpacker = struct.Struct("<HHH8B8B")
  17308. instance_field = None
  17309. instance_offset = -1
  17310. def __init__(self, version: int, min_version: int, max_version: int, spec_version_hash: Sequence[int], library_version_hash: Sequence[int]):
  17311. MAVLink_message.__init__(self, MAVLink_protocol_version_message.id, MAVLink_protocol_version_message.msgname)
  17312. self._fieldnames = MAVLink_protocol_version_message.fieldnames
  17313. self._instance_field = MAVLink_protocol_version_message.instance_field
  17314. self._instance_offset = MAVLink_protocol_version_message.instance_offset
  17315. self.version = version
  17316. self.min_version = min_version
  17317. self.max_version = max_version
  17318. self.spec_version_hash = spec_version_hash
  17319. self.library_version_hash = library_version_hash
  17320. def pack(self, mav: "MAVLink", force_mavlink1: bool = False) -> bytes:
  17321. 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)
  17322. # Define name on the class for backwards compatibility (it is now msgname).
  17323. # Done with setattr to hide the class variable from mypy.
  17324. setattr(MAVLink_protocol_version_message, "name", mavlink_msg_deprecated_name_property())
  17325. mavlink_map: Dict[int, Type[MAVLink_message]] = {
  17326. MAVLINK_MSG_ID_VKINS_STATUS: MAVLink_vkins_status_message,
  17327. MAVLINK_MSG_ID_VKFMU_STATUS: MAVLink_vkfmu_status_message,
  17328. MAVLINK_MSG_ID_VK_ROI_TARGET: MAVLink_vk_roi_target_message,
  17329. MAVLINK_MSG_ID_VK_BMS_STATUS: MAVLink_vk_bms_status_message,
  17330. MAVLINK_MSG_ID_VK_FORMATION_LEADER: MAVLink_vk_formation_leader_message,
  17331. MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS: MAVLink_vk_engine_ecu_staus_message,
  17332. MAVLINK_MSG_ID_VK_COMP_VERSION: MAVLink_vk_comp_version_message,
  17333. MAVLINK_MSG_ID_VK_MOSAICH_GPS_RAW: MAVLink_vk_mosaich_gps_raw_message,
  17334. MAVLINK_MSG_ID_VK_DIGI_ESC_STATUS: MAVLink_vk_digi_esc_status_message,
  17335. MAVLINK_MSG_ID_VK_FIXEDWING_CONTROL_VALUE: MAVLink_vk_fixedwing_control_value_message,
  17336. MAVLINK_MSG_ID_VK_FIXEDWING_SERVO_SIGNAL: MAVLink_vk_fixedwing_servo_signal_message,
  17337. MAVLINK_MSG_ID_VK_FIXEDWING_RTL_CIRCLE_WP: MAVLink_vk_fixedwing_rtl_circle_wp_message,
  17338. MAVLINK_MSG_ID_VK_AIRSPEED: MAVLink_vk_airspeed_message,
  17339. MAVLINK_MSG_ID_VK_PARACHUTE_STATUS: MAVLink_vk_parachute_status_message,
  17340. MAVLINK_MSG_ID_VK_WEIGHER_STATE: MAVLink_vk_weigher_state_message,
  17341. MAVLINK_MSG_ID_VK_PAYLOAD_DATA_RELAY: MAVLink_vk_payload_data_relay_message,
  17342. MAVLINK_MSG_ID_VK_EXTERNAL_INS_NAV: MAVLink_vk_external_ins_nav_message,
  17343. MAVLINK_MSG_ID_VK_RTK_BASE_PVT: MAVLink_vk_rtk_base_pvt_message,
  17344. MAVLINK_MSG_ID_VKFLY_EDU_STATUS: MAVLink_vkfly_edu_status_message,
  17345. MAVLINK_MSG_ID_VKFLY_EDU_STATUS_ACK: MAVLink_vkfly_edu_status_ack_message,
  17346. MAVLINK_MSG_ID_VKFLY_TIANQU_SERVO_STATUS: MAVLink_vkfly_tianqu_servo_status_message,
  17347. MAVLINK_MSG_ID_VK_ADC_EXT_STATUS: MAVLink_vk_adc_ext_status_message,
  17348. MAVLINK_MSG_ID_VK_FW_UPDATE_BEGIN: MAVLink_vk_fw_update_begin_message,
  17349. MAVLINK_MSG_ID_VK_FW_UPDATE_ACK: MAVLink_vk_fw_update_ack_message,
  17350. MAVLINK_MSG_ID_VK_FW_UPDATE_DATA_REQUEST: MAVLink_vk_fw_update_data_request_message,
  17351. MAVLINK_MSG_ID_VK_FW_UPDATE_DATA: MAVLink_vk_fw_update_data_message,
  17352. MAVLINK_MSG_ID_VK_UPDATE_TERMINATE: MAVLink_vk_update_terminate_message,
  17353. MAVLINK_MSG_ID_VK_CACC_MANAGER_VERIFY: MAVLink_vk_cacc_manager_verify_message,
  17354. MAVLINK_MSG_ID_VK_EXT_VISION_FUSION: MAVLink_vk_ext_vision_fusion_message,
  17355. MAVLINK_MSG_ID_KMUB_STATUS: MAVLink_kmub_status_message,
  17356. MAVLINK_MSG_ID_QINGXIE_BMS: MAVLink_qingxie_bms_message,
  17357. MAVLINK_MSG_ID_SYS_STATUS: MAVLink_sys_status_message,
  17358. MAVLINK_MSG_ID_SYSTEM_TIME: MAVLink_system_time_message,
  17359. MAVLINK_MSG_ID_PING: MAVLink_ping_message,
  17360. MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL: MAVLink_change_operator_control_message,
  17361. MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK: MAVLink_change_operator_control_ack_message,
  17362. MAVLINK_MSG_ID_AUTH_KEY: MAVLink_auth_key_message,
  17363. MAVLINK_MSG_ID_LINK_NODE_STATUS: MAVLink_link_node_status_message,
  17364. MAVLINK_MSG_ID_SET_MODE: MAVLink_set_mode_message,
  17365. MAVLINK_MSG_ID_PARAM_REQUEST_READ: MAVLink_param_request_read_message,
  17366. MAVLINK_MSG_ID_PARAM_REQUEST_LIST: MAVLink_param_request_list_message,
  17367. MAVLINK_MSG_ID_PARAM_VALUE: MAVLink_param_value_message,
  17368. MAVLINK_MSG_ID_PARAM_SET: MAVLink_param_set_message,
  17369. MAVLINK_MSG_ID_GPS_RAW_INT: MAVLink_gps_raw_int_message,
  17370. MAVLINK_MSG_ID_GPS_STATUS: MAVLink_gps_status_message,
  17371. MAVLINK_MSG_ID_SCALED_IMU: MAVLink_scaled_imu_message,
  17372. MAVLINK_MSG_ID_RAW_IMU: MAVLink_raw_imu_message,
  17373. MAVLINK_MSG_ID_RAW_PRESSURE: MAVLink_raw_pressure_message,
  17374. MAVLINK_MSG_ID_SCALED_PRESSURE: MAVLink_scaled_pressure_message,
  17375. MAVLINK_MSG_ID_ATTITUDE: MAVLink_attitude_message,
  17376. MAVLINK_MSG_ID_ATTITUDE_QUATERNION: MAVLink_attitude_quaternion_message,
  17377. MAVLINK_MSG_ID_LOCAL_POSITION_NED: MAVLink_local_position_ned_message,
  17378. MAVLINK_MSG_ID_GLOBAL_POSITION_INT: MAVLink_global_position_int_message,
  17379. MAVLINK_MSG_ID_RC_CHANNELS_SCALED: MAVLink_rc_channels_scaled_message,
  17380. MAVLINK_MSG_ID_RC_CHANNELS_RAW: MAVLink_rc_channels_raw_message,
  17381. MAVLINK_MSG_ID_SERVO_OUTPUT_RAW: MAVLink_servo_output_raw_message,
  17382. MAVLINK_MSG_ID_MISSION_REQUEST_PARTIAL_LIST: MAVLink_mission_request_partial_list_message,
  17383. MAVLINK_MSG_ID_MISSION_WRITE_PARTIAL_LIST: MAVLink_mission_write_partial_list_message,
  17384. MAVLINK_MSG_ID_MISSION_ITEM: MAVLink_mission_item_message,
  17385. MAVLINK_MSG_ID_MISSION_REQUEST: MAVLink_mission_request_message,
  17386. MAVLINK_MSG_ID_MISSION_SET_CURRENT: MAVLink_mission_set_current_message,
  17387. MAVLINK_MSG_ID_MISSION_CURRENT: MAVLink_mission_current_message,
  17388. MAVLINK_MSG_ID_MISSION_REQUEST_LIST: MAVLink_mission_request_list_message,
  17389. MAVLINK_MSG_ID_MISSION_COUNT: MAVLink_mission_count_message,
  17390. MAVLINK_MSG_ID_MISSION_CLEAR_ALL: MAVLink_mission_clear_all_message,
  17391. MAVLINK_MSG_ID_MISSION_ITEM_REACHED: MAVLink_mission_item_reached_message,
  17392. MAVLINK_MSG_ID_MISSION_ACK: MAVLink_mission_ack_message,
  17393. MAVLINK_MSG_ID_SET_GPS_GLOBAL_ORIGIN: MAVLink_set_gps_global_origin_message,
  17394. MAVLINK_MSG_ID_GPS_GLOBAL_ORIGIN: MAVLink_gps_global_origin_message,
  17395. MAVLINK_MSG_ID_PARAM_MAP_RC: MAVLink_param_map_rc_message,
  17396. MAVLINK_MSG_ID_MISSION_REQUEST_INT: MAVLink_mission_request_int_message,
  17397. MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA: MAVLink_safety_set_allowed_area_message,
  17398. MAVLINK_MSG_ID_SAFETY_ALLOWED_AREA: MAVLink_safety_allowed_area_message,
  17399. MAVLINK_MSG_ID_ATTITUDE_QUATERNION_COV: MAVLink_attitude_quaternion_cov_message,
  17400. MAVLINK_MSG_ID_NAV_CONTROLLER_OUTPUT: MAVLink_nav_controller_output_message,
  17401. MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV: MAVLink_global_position_int_cov_message,
  17402. MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV: MAVLink_local_position_ned_cov_message,
  17403. MAVLINK_MSG_ID_RC_CHANNELS: MAVLink_rc_channels_message,
  17404. MAVLINK_MSG_ID_REQUEST_DATA_STREAM: MAVLink_request_data_stream_message,
  17405. MAVLINK_MSG_ID_DATA_STREAM: MAVLink_data_stream_message,
  17406. MAVLINK_MSG_ID_MANUAL_CONTROL: MAVLink_manual_control_message,
  17407. MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE: MAVLink_rc_channels_override_message,
  17408. MAVLINK_MSG_ID_MISSION_ITEM_INT: MAVLink_mission_item_int_message,
  17409. MAVLINK_MSG_ID_VFR_HUD: MAVLink_vfr_hud_message,
  17410. MAVLINK_MSG_ID_COMMAND_INT: MAVLink_command_int_message,
  17411. MAVLINK_MSG_ID_COMMAND_LONG: MAVLink_command_long_message,
  17412. MAVLINK_MSG_ID_COMMAND_ACK: MAVLink_command_ack_message,
  17413. MAVLINK_MSG_ID_COMMAND_CANCEL: MAVLink_command_cancel_message,
  17414. MAVLINK_MSG_ID_MANUAL_SETPOINT: MAVLink_manual_setpoint_message,
  17415. MAVLINK_MSG_ID_SET_ATTITUDE_TARGET: MAVLink_set_attitude_target_message,
  17416. MAVLINK_MSG_ID_ATTITUDE_TARGET: MAVLink_attitude_target_message,
  17417. MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED: MAVLink_set_position_target_local_ned_message,
  17418. MAVLINK_MSG_ID_POSITION_TARGET_LOCAL_NED: MAVLink_position_target_local_ned_message,
  17419. MAVLINK_MSG_ID_SET_POSITION_TARGET_GLOBAL_INT: MAVLink_set_position_target_global_int_message,
  17420. MAVLINK_MSG_ID_POSITION_TARGET_GLOBAL_INT: MAVLink_position_target_global_int_message,
  17421. MAVLINK_MSG_ID_LOCAL_POSITION_NED_SYSTEM_GLOBAL_OFFSET: MAVLink_local_position_ned_system_global_offset_message,
  17422. MAVLINK_MSG_ID_HIL_STATE: MAVLink_hil_state_message,
  17423. MAVLINK_MSG_ID_HIL_CONTROLS: MAVLink_hil_controls_message,
  17424. MAVLINK_MSG_ID_HIL_RC_INPUTS_RAW: MAVLink_hil_rc_inputs_raw_message,
  17425. MAVLINK_MSG_ID_HIL_ACTUATOR_CONTROLS: MAVLink_hil_actuator_controls_message,
  17426. MAVLINK_MSG_ID_OPTICAL_FLOW: MAVLink_optical_flow_message,
  17427. MAVLINK_MSG_ID_GLOBAL_VISION_POSITION_ESTIMATE: MAVLink_global_vision_position_estimate_message,
  17428. MAVLINK_MSG_ID_VISION_POSITION_ESTIMATE: MAVLink_vision_position_estimate_message,
  17429. MAVLINK_MSG_ID_VISION_SPEED_ESTIMATE: MAVLink_vision_speed_estimate_message,
  17430. MAVLINK_MSG_ID_VICON_POSITION_ESTIMATE: MAVLink_vicon_position_estimate_message,
  17431. MAVLINK_MSG_ID_HIGHRES_IMU: MAVLink_highres_imu_message,
  17432. MAVLINK_MSG_ID_OPTICAL_FLOW_RAD: MAVLink_optical_flow_rad_message,
  17433. MAVLINK_MSG_ID_HIL_SENSOR: MAVLink_hil_sensor_message,
  17434. MAVLINK_MSG_ID_SIM_STATE: MAVLink_sim_state_message,
  17435. MAVLINK_MSG_ID_RADIO_STATUS: MAVLink_radio_status_message,
  17436. MAVLINK_MSG_ID_FILE_TRANSFER_PROTOCOL: MAVLink_file_transfer_protocol_message,
  17437. MAVLINK_MSG_ID_TIMESYNC: MAVLink_timesync_message,
  17438. MAVLINK_MSG_ID_CAMERA_TRIGGER: MAVLink_camera_trigger_message,
  17439. MAVLINK_MSG_ID_HIL_GPS: MAVLink_hil_gps_message,
  17440. MAVLINK_MSG_ID_HIL_OPTICAL_FLOW: MAVLink_hil_optical_flow_message,
  17441. MAVLINK_MSG_ID_HIL_STATE_QUATERNION: MAVLink_hil_state_quaternion_message,
  17442. MAVLINK_MSG_ID_SCALED_IMU2: MAVLink_scaled_imu2_message,
  17443. MAVLINK_MSG_ID_LOG_REQUEST_LIST: MAVLink_log_request_list_message,
  17444. MAVLINK_MSG_ID_LOG_ENTRY: MAVLink_log_entry_message,
  17445. MAVLINK_MSG_ID_LOG_REQUEST_DATA: MAVLink_log_request_data_message,
  17446. MAVLINK_MSG_ID_LOG_DATA: MAVLink_log_data_message,
  17447. MAVLINK_MSG_ID_LOG_ERASE: MAVLink_log_erase_message,
  17448. MAVLINK_MSG_ID_LOG_REQUEST_END: MAVLink_log_request_end_message,
  17449. MAVLINK_MSG_ID_GPS_INJECT_DATA: MAVLink_gps_inject_data_message,
  17450. MAVLINK_MSG_ID_GPS2_RAW: MAVLink_gps2_raw_message,
  17451. MAVLINK_MSG_ID_POWER_STATUS: MAVLink_power_status_message,
  17452. MAVLINK_MSG_ID_SERIAL_CONTROL: MAVLink_serial_control_message,
  17453. MAVLINK_MSG_ID_GPS_RTK: MAVLink_gps_rtk_message,
  17454. MAVLINK_MSG_ID_GPS2_RTK: MAVLink_gps2_rtk_message,
  17455. MAVLINK_MSG_ID_SCALED_IMU3: MAVLink_scaled_imu3_message,
  17456. MAVLINK_MSG_ID_DATA_TRANSMISSION_HANDSHAKE: MAVLink_data_transmission_handshake_message,
  17457. MAVLINK_MSG_ID_ENCAPSULATED_DATA: MAVLink_encapsulated_data_message,
  17458. MAVLINK_MSG_ID_DISTANCE_SENSOR: MAVLink_distance_sensor_message,
  17459. MAVLINK_MSG_ID_TERRAIN_REQUEST: MAVLink_terrain_request_message,
  17460. MAVLINK_MSG_ID_TERRAIN_DATA: MAVLink_terrain_data_message,
  17461. MAVLINK_MSG_ID_TERRAIN_CHECK: MAVLink_terrain_check_message,
  17462. MAVLINK_MSG_ID_TERRAIN_REPORT: MAVLink_terrain_report_message,
  17463. MAVLINK_MSG_ID_SCALED_PRESSURE2: MAVLink_scaled_pressure2_message,
  17464. MAVLINK_MSG_ID_ATT_POS_MOCAP: MAVLink_att_pos_mocap_message,
  17465. MAVLINK_MSG_ID_SET_ACTUATOR_CONTROL_TARGET: MAVLink_set_actuator_control_target_message,
  17466. MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET: MAVLink_actuator_control_target_message,
  17467. MAVLINK_MSG_ID_ALTITUDE: MAVLink_altitude_message,
  17468. MAVLINK_MSG_ID_RESOURCE_REQUEST: MAVLink_resource_request_message,
  17469. MAVLINK_MSG_ID_SCALED_PRESSURE3: MAVLink_scaled_pressure3_message,
  17470. MAVLINK_MSG_ID_FOLLOW_TARGET: MAVLink_follow_target_message,
  17471. MAVLINK_MSG_ID_CONTROL_SYSTEM_STATE: MAVLink_control_system_state_message,
  17472. MAVLINK_MSG_ID_BATTERY_STATUS: MAVLink_battery_status_message,
  17473. MAVLINK_MSG_ID_AUTOPILOT_VERSION: MAVLink_autopilot_version_message,
  17474. MAVLINK_MSG_ID_LANDING_TARGET: MAVLink_landing_target_message,
  17475. MAVLINK_MSG_ID_FENCE_STATUS: MAVLink_fence_status_message,
  17476. MAVLINK_MSG_ID_MAG_CAL_REPORT: MAVLink_mag_cal_report_message,
  17477. MAVLINK_MSG_ID_EFI_STATUS: MAVLink_efi_status_message,
  17478. MAVLINK_MSG_ID_ESTIMATOR_STATUS: MAVLink_estimator_status_message,
  17479. MAVLINK_MSG_ID_WIND_COV: MAVLink_wind_cov_message,
  17480. MAVLINK_MSG_ID_GPS_INPUT: MAVLink_gps_input_message,
  17481. MAVLINK_MSG_ID_GPS_RTCM_DATA: MAVLink_gps_rtcm_data_message,
  17482. MAVLINK_MSG_ID_HIGH_LATENCY: MAVLink_high_latency_message,
  17483. MAVLINK_MSG_ID_HIGH_LATENCY2: MAVLink_high_latency2_message,
  17484. MAVLINK_MSG_ID_VIBRATION: MAVLink_vibration_message,
  17485. MAVLINK_MSG_ID_HOME_POSITION: MAVLink_home_position_message,
  17486. MAVLINK_MSG_ID_SET_HOME_POSITION: MAVLink_set_home_position_message,
  17487. MAVLINK_MSG_ID_MESSAGE_INTERVAL: MAVLink_message_interval_message,
  17488. MAVLINK_MSG_ID_EXTENDED_SYS_STATE: MAVLink_extended_sys_state_message,
  17489. MAVLINK_MSG_ID_ADSB_VEHICLE: MAVLink_adsb_vehicle_message,
  17490. MAVLINK_MSG_ID_COLLISION: MAVLink_collision_message,
  17491. MAVLINK_MSG_ID_V2_EXTENSION: MAVLink_v2_extension_message,
  17492. MAVLINK_MSG_ID_MEMORY_VECT: MAVLink_memory_vect_message,
  17493. MAVLINK_MSG_ID_DEBUG_VECT: MAVLink_debug_vect_message,
  17494. MAVLINK_MSG_ID_NAMED_VALUE_FLOAT: MAVLink_named_value_float_message,
  17495. MAVLINK_MSG_ID_NAMED_VALUE_INT: MAVLink_named_value_int_message,
  17496. MAVLINK_MSG_ID_STATUSTEXT: MAVLink_statustext_message,
  17497. MAVLINK_MSG_ID_DEBUG: MAVLink_debug_message,
  17498. MAVLINK_MSG_ID_SETUP_SIGNING: MAVLink_setup_signing_message,
  17499. MAVLINK_MSG_ID_BUTTON_CHANGE: MAVLink_button_change_message,
  17500. MAVLINK_MSG_ID_PLAY_TUNE: MAVLink_play_tune_message,
  17501. MAVLINK_MSG_ID_CAMERA_INFORMATION: MAVLink_camera_information_message,
  17502. MAVLINK_MSG_ID_CAMERA_SETTINGS: MAVLink_camera_settings_message,
  17503. MAVLINK_MSG_ID_STORAGE_INFORMATION: MAVLink_storage_information_message,
  17504. MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS: MAVLink_camera_capture_status_message,
  17505. MAVLINK_MSG_ID_CAMERA_IMAGE_CAPTURED: MAVLink_camera_image_captured_message,
  17506. MAVLINK_MSG_ID_FLIGHT_INFORMATION: MAVLink_flight_information_message,
  17507. MAVLINK_MSG_ID_MOUNT_ORIENTATION: MAVLink_mount_orientation_message,
  17508. MAVLINK_MSG_ID_LOGGING_DATA: MAVLink_logging_data_message,
  17509. MAVLINK_MSG_ID_LOGGING_DATA_ACKED: MAVLink_logging_data_acked_message,
  17510. MAVLINK_MSG_ID_LOGGING_ACK: MAVLink_logging_ack_message,
  17511. MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION: MAVLink_video_stream_information_message,
  17512. MAVLINK_MSG_ID_VIDEO_STREAM_STATUS: MAVLink_video_stream_status_message,
  17513. MAVLINK_MSG_ID_CAMERA_FOV_STATUS: MAVLink_camera_fov_status_message,
  17514. MAVLINK_MSG_ID_CAMERA_TRACKING_IMAGE_STATUS: MAVLink_camera_tracking_image_status_message,
  17515. MAVLINK_MSG_ID_CAMERA_TRACKING_GEO_STATUS: MAVLink_camera_tracking_geo_status_message,
  17516. MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION: MAVLink_gimbal_manager_information_message,
  17517. MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS: MAVLink_gimbal_manager_status_message,
  17518. MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_ATTITUDE: MAVLink_gimbal_manager_set_attitude_message,
  17519. MAVLINK_MSG_ID_GIMBAL_DEVICE_INFORMATION: MAVLink_gimbal_device_information_message,
  17520. MAVLINK_MSG_ID_GIMBAL_DEVICE_SET_ATTITUDE: MAVLink_gimbal_device_set_attitude_message,
  17521. MAVLINK_MSG_ID_GIMBAL_DEVICE_ATTITUDE_STATUS: MAVLink_gimbal_device_attitude_status_message,
  17522. MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE: MAVLink_autopilot_state_for_gimbal_device_message,
  17523. MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_PITCHYAW: MAVLink_gimbal_manager_set_pitchyaw_message,
  17524. MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_MANUAL_CONTROL: MAVLink_gimbal_manager_set_manual_control_message,
  17525. MAVLINK_MSG_ID_ESC_INFO: MAVLink_esc_info_message,
  17526. MAVLINK_MSG_ID_ESC_STATUS: MAVLink_esc_status_message,
  17527. MAVLINK_MSG_ID_WIFI_CONFIG_AP: MAVLink_wifi_config_ap_message,
  17528. MAVLINK_MSG_ID_AIS_VESSEL: MAVLink_ais_vessel_message,
  17529. MAVLINK_MSG_ID_UAVCAN_NODE_STATUS: MAVLink_uavcan_node_status_message,
  17530. MAVLINK_MSG_ID_UAVCAN_NODE_INFO: MAVLink_uavcan_node_info_message,
  17531. MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ: MAVLink_param_ext_request_read_message,
  17532. MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST: MAVLink_param_ext_request_list_message,
  17533. MAVLINK_MSG_ID_PARAM_EXT_VALUE: MAVLink_param_ext_value_message,
  17534. MAVLINK_MSG_ID_PARAM_EXT_SET: MAVLink_param_ext_set_message,
  17535. MAVLINK_MSG_ID_PARAM_EXT_ACK: MAVLink_param_ext_ack_message,
  17536. MAVLINK_MSG_ID_OBSTACLE_DISTANCE: MAVLink_obstacle_distance_message,
  17537. MAVLINK_MSG_ID_ODOMETRY: MAVLink_odometry_message,
  17538. MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS: MAVLink_trajectory_representation_waypoints_message,
  17539. MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_BEZIER: MAVLink_trajectory_representation_bezier_message,
  17540. MAVLINK_MSG_ID_CELLULAR_STATUS: MAVLink_cellular_status_message,
  17541. MAVLINK_MSG_ID_ISBD_LINK_STATUS: MAVLink_isbd_link_status_message,
  17542. MAVLINK_MSG_ID_CELLULAR_CONFIG: MAVLink_cellular_config_message,
  17543. MAVLINK_MSG_ID_RAW_RPM: MAVLink_raw_rpm_message,
  17544. MAVLINK_MSG_ID_UTM_GLOBAL_POSITION: MAVLink_utm_global_position_message,
  17545. MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY: MAVLink_debug_float_array_message,
  17546. MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS: MAVLink_orbit_execution_status_message,
  17547. MAVLINK_MSG_ID_BATTERY_INFO: MAVLink_battery_info_message,
  17548. MAVLINK_MSG_ID_GENERATOR_STATUS: MAVLink_generator_status_message,
  17549. MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS: MAVLink_actuator_output_status_message,
  17550. MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET: MAVLink_time_estimate_to_target_message,
  17551. MAVLINK_MSG_ID_TUNNEL: MAVLink_tunnel_message,
  17552. MAVLINK_MSG_ID_CAN_FRAME: MAVLink_can_frame_message,
  17553. MAVLINK_MSG_ID_ONBOARD_COMPUTER_STATUS: MAVLink_onboard_computer_status_message,
  17554. MAVLINK_MSG_ID_COMPONENT_INFORMATION: MAVLink_component_information_message,
  17555. MAVLINK_MSG_ID_COMPONENT_METADATA: MAVLink_component_metadata_message,
  17556. MAVLINK_MSG_ID_PLAY_TUNE_V2: MAVLink_play_tune_v2_message,
  17557. MAVLINK_MSG_ID_SUPPORTED_TUNES: MAVLink_supported_tunes_message,
  17558. MAVLINK_MSG_ID_EVENT: MAVLink_event_message,
  17559. MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE: MAVLink_current_event_sequence_message,
  17560. MAVLINK_MSG_ID_REQUEST_EVENT: MAVLink_request_event_message,
  17561. MAVLINK_MSG_ID_RESPONSE_EVENT_ERROR: MAVLink_response_event_error_message,
  17562. MAVLINK_MSG_ID_CANFD_FRAME: MAVLink_canfd_frame_message,
  17563. MAVLINK_MSG_ID_CAN_FILTER_MODIFY: MAVLink_can_filter_modify_message,
  17564. MAVLINK_MSG_ID_WHEEL_DISTANCE: MAVLink_wheel_distance_message,
  17565. MAVLINK_MSG_ID_WINCH_STATUS: MAVLink_winch_status_message,
  17566. MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID: MAVLink_open_drone_id_basic_id_message,
  17567. MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION: MAVLink_open_drone_id_location_message,
  17568. MAVLINK_MSG_ID_OPEN_DRONE_ID_AUTHENTICATION: MAVLink_open_drone_id_authentication_message,
  17569. MAVLINK_MSG_ID_OPEN_DRONE_ID_SELF_ID: MAVLink_open_drone_id_self_id_message,
  17570. MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM: MAVLink_open_drone_id_system_message,
  17571. MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID: MAVLink_open_drone_id_operator_id_message,
  17572. MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK: MAVLink_open_drone_id_message_pack_message,
  17573. MAVLINK_MSG_ID_OPEN_DRONE_ID_ARM_STATUS: MAVLink_open_drone_id_arm_status_message,
  17574. MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE: MAVLink_open_drone_id_system_update_message,
  17575. MAVLINK_MSG_ID_HYGROMETER_SENSOR: MAVLink_hygrometer_sensor_message,
  17576. MAVLINK_MSG_ID_HEARTBEAT: MAVLink_heartbeat_message,
  17577. MAVLINK_MSG_ID_PROTOCOL_VERSION: MAVLink_protocol_version_message,
  17578. }
  17579. class MAVError(Exception):
  17580. """MAVLink error class"""
  17581. def __init__(self, msg: str) -> None:
  17582. Exception.__init__(self, msg)
  17583. self.message = msg
  17584. class MAVLink_bad_data(MAVLink_message):
  17585. """
  17586. a piece of bad data in a mavlink stream
  17587. """
  17588. def __init__(self, data: Union[bytes, bytearray], reason: str) -> None:
  17589. MAVLink_message.__init__(self, MAVLINK_MSG_ID_BAD_DATA, "BAD_DATA")
  17590. self._fieldnames = ["data", "reason"]
  17591. self.data = data
  17592. self.reason = reason
  17593. self._msgbuf = bytearray(data)
  17594. self._instance_field = None
  17595. def __str__(self) -> str:
  17596. """Override the __str__ function from MAVLink_messages because non-printable characters are common in to be the reason for this message to exist."""
  17597. hexstr = ["{:x}".format(i) for i in self.data]
  17598. return "%s {%s, data:%s}" % (self._type, self.reason, hexstr)
  17599. class MAVLink_unknown(MAVLink_message):
  17600. """
  17601. a message that we don't have in the XML used when built
  17602. """
  17603. def __init__(self, msgid: int, data: Union[bytes, bytearray]) -> None:
  17604. MAVLink_message.__init__(self, MAVLINK_MSG_ID_UNKNOWN, "UNKNOWN_%u" % msgid)
  17605. self._fieldnames = ["data"]
  17606. self.data = data
  17607. self._msgbuf = bytearray(data)
  17608. self._instance_field = None
  17609. def __str__(self) -> str:
  17610. """Override the __str__ function from MAVLink_messages because non-printable characters are common."""
  17611. hexstr = ["{:x}".format(i) for i in self.data]
  17612. return "%s {data:%s}" % (self._type, hexstr)
  17613. class MAVLinkSigning(object):
  17614. """MAVLink signing state class"""
  17615. def __init__(self) -> None:
  17616. self.secret_key: Optional[bytes] = None
  17617. self.timestamp = 0
  17618. self.link_id = 0
  17619. self.sign_outgoing = False
  17620. self.allow_unsigned_callback: Optional[Callable[["MAVLink", int], bool]] = None
  17621. self.stream_timestamps: Dict[Tuple[int, int, int], int] = {}
  17622. self.sig_count = 0
  17623. self.badsig_count = 0
  17624. self.goodsig_count = 0
  17625. self.unsigned_count = 0
  17626. self.reject_count = 0
  17627. MAVLinkV1Header = Tuple[bytes, int, int, int, int, int]
  17628. MAVLinkV2Header = Tuple[bytes, int, int, int, int, int, int, int, int]
  17629. class MAVLink(object):
  17630. """MAVLink protocol handling class"""
  17631. def __init__(self, file: Any, srcSystem: int = 0, srcComponent: int = 0, use_native: bool = False) -> None:
  17632. self.seq = 0
  17633. self.file = file
  17634. self.srcSystem = srcSystem
  17635. self.srcComponent = srcComponent
  17636. self.callback: Optional[Callable[..., None]] = None
  17637. self.callback_args: Optional[Iterable[Any]] = None
  17638. self.callback_kwargs: Optional[Mapping[str, Any]] = None
  17639. self.send_callback: Optional[Callable[..., None]] = None
  17640. self.send_callback_args: Optional[Iterable[Any]] = None
  17641. self.send_callback_kwargs: Optional[Mapping[str, Any]] = None
  17642. self.buf = bytearray()
  17643. self.buf_index = 0
  17644. self.expected_length = HEADER_LEN_V1 + 2
  17645. self.have_prefix_error = False
  17646. self.robust_parsing = False
  17647. self.protocol_marker = 253
  17648. self.little_endian = True
  17649. self.crc_extra = True
  17650. self.sort_fields = True
  17651. self.total_packets_sent = 0
  17652. self.total_bytes_sent = 0
  17653. self.total_packets_received = 0
  17654. self.total_bytes_received = 0
  17655. self.total_receive_errors = 0
  17656. self.startup_time = time.time()
  17657. self.signing = MAVLinkSigning()
  17658. self.mav20_unpacker = struct.Struct("<cBBBBBBHB")
  17659. self.mav10_unpacker = struct.Struct("<cBBBBB")
  17660. self.mav20_h3_unpacker = struct.Struct("BBB")
  17661. self.mav_csum_unpacker = struct.Struct("<H")
  17662. self.mav_sign_unpacker = struct.Struct("<IH")
  17663. def set_callback(self, callback: Callable[..., None], *args: Any, **kwargs: Any) -> None:
  17664. self.callback = callback
  17665. self.callback_args = args
  17666. self.callback_kwargs = kwargs
  17667. def set_send_callback(self, callback: Callable[..., None], *args: Any, **kwargs: Any) -> None:
  17668. self.send_callback = callback
  17669. self.send_callback_args = args
  17670. self.send_callback_kwargs = kwargs
  17671. def send(self, mavmsg: MAVLink_message, force_mavlink1: bool = False) -> None:
  17672. """send a MAVLink message"""
  17673. buf = mavmsg.pack(self, force_mavlink1=force_mavlink1)
  17674. self.file.write(buf)
  17675. self.seq = (self.seq + 1) % 256
  17676. self.total_packets_sent += 1
  17677. self.total_bytes_sent += len(buf)
  17678. if self.send_callback is not None and self.send_callback_args is not None and self.send_callback_kwargs is not None:
  17679. self.send_callback(mavmsg, *self.send_callback_args, **self.send_callback_kwargs)
  17680. def buf_len(self) -> int:
  17681. return len(self.buf) - self.buf_index
  17682. def bytes_needed(self) -> int:
  17683. """return number of bytes needed for next parsing stage"""
  17684. ret = self.expected_length - self.buf_len()
  17685. if ret <= 0:
  17686. return 1
  17687. return ret
  17688. def __callbacks(self, msg: MAVLink_message) -> None:
  17689. """this method exists only to make profiling results easier to read"""
  17690. if self.callback is not None and self.callback_args is not None and self.callback_kwargs is not None:
  17691. self.callback(msg, *self.callback_args, **self.callback_kwargs)
  17692. def parse_char(self, c: Sequence[int]) -> Optional[MAVLink_message]:
  17693. """input some data bytes, possibly returning a new message"""
  17694. self.buf.extend(c)
  17695. self.total_bytes_received += len(c)
  17696. m = self.__parse_char_legacy()
  17697. if m is not None:
  17698. self.total_packets_received += 1
  17699. self.__callbacks(m)
  17700. # See if there's nothing left in the buffer, reset it to 0
  17701. # which frees the memory
  17702. if self.buf_index != 0 and self.buf_len() == 0:
  17703. self.buf = bytearray()
  17704. self.buf_index = 0
  17705. return m
  17706. def __parse_char_legacy(self) -> Optional[MAVLink_message]:
  17707. """input some data bytes, possibly returning a new message"""
  17708. header_len = HEADER_LEN_V1
  17709. if self.buf_len() >= 1 and self.buf[self.buf_index] == PROTOCOL_MARKER_V2:
  17710. header_len = HEADER_LEN_V2
  17711. m: Optional[MAVLink_message] = None
  17712. if self.buf_len() >= 1 and self.buf[self.buf_index] != PROTOCOL_MARKER_V1 and self.buf[self.buf_index] != PROTOCOL_MARKER_V2:
  17713. magic = self.buf[self.buf_index]
  17714. self.buf_index += 1
  17715. if self.robust_parsing:
  17716. invalid_prefix_start = self.buf_index - 1
  17717. while self.buf_len() >= 1 and self.buf[self.buf_index] != PROTOCOL_MARKER_V1 and self.buf[self.buf_index] != PROTOCOL_MARKER_V2:
  17718. self.buf_index += 1
  17719. m = MAVLink_bad_data(self.buf[invalid_prefix_start : self.buf_index], "Bad prefix")
  17720. self.expected_length = header_len + 2
  17721. self.total_receive_errors += 1
  17722. return m
  17723. if self.have_prefix_error:
  17724. return None
  17725. self.have_prefix_error = True
  17726. self.total_receive_errors += 1
  17727. raise MAVError("invalid MAVLink prefix '%s'" % magic)
  17728. self.have_prefix_error = False
  17729. if self.buf_len() >= 3:
  17730. sbuf = self.buf[self.buf_index : 3 + self.buf_index]
  17731. unpacked_h3: Tuple[int, int, int] = self.mav20_h3_unpacker.unpack(sbuf)
  17732. magic, self.expected_length, incompat_flags = unpacked_h3
  17733. if magic == PROTOCOL_MARKER_V2 and (incompat_flags & MAVLINK_IFLAG_SIGNED):
  17734. self.expected_length += MAVLINK_SIGNATURE_BLOCK_LEN
  17735. self.expected_length += header_len + 2
  17736. if self.expected_length >= (header_len + 2) and self.buf_len() >= self.expected_length:
  17737. mbuf = self.buf[self.buf_index : self.buf_index + self.expected_length]
  17738. self.buf_index += self.expected_length
  17739. self.expected_length = header_len + 2
  17740. if self.robust_parsing:
  17741. try:
  17742. if magic == PROTOCOL_MARKER_V2 and (incompat_flags & ~MAVLINK_IFLAG_SIGNED) != 0:
  17743. raise MAVError("invalid incompat_flags 0x%x 0x%x %u" % (incompat_flags, magic, self.expected_length))
  17744. m = self.decode(mbuf)
  17745. except MAVError as reason:
  17746. m = MAVLink_bad_data(mbuf, reason.message)
  17747. self.total_receive_errors += 1
  17748. else:
  17749. if magic == PROTOCOL_MARKER_V2 and (incompat_flags & ~MAVLINK_IFLAG_SIGNED) != 0:
  17750. raise MAVError("invalid incompat_flags 0x%x 0x%x %u" % (incompat_flags, magic, self.expected_length))
  17751. m = self.decode(mbuf)
  17752. return m
  17753. return None
  17754. def parse_buffer(self, s: Sequence[int]) -> Optional[List[MAVLink_message]]:
  17755. """input some data bytes, possibly returning a list of new messages"""
  17756. m = self.parse_char(s)
  17757. if m is None:
  17758. return None
  17759. ret = [m]
  17760. while True:
  17761. m = self.parse_char(b"")
  17762. if m is None:
  17763. return ret
  17764. ret.append(m)
  17765. def check_signature(self, msgbuf: bytearray, srcSystem: int, srcComponent: int) -> bool:
  17766. """check signature on incoming message"""
  17767. assert self.signing.secret_key is not None
  17768. timestamp_buf = msgbuf[-12:-6]
  17769. link_id = msgbuf[-13]
  17770. tbytes: Tuple[int, int] = self.mav_sign_unpacker.unpack(timestamp_buf)
  17771. tlow, thigh = tbytes
  17772. timestamp = tlow + (thigh << 32)
  17773. # see if the timestamp is acceptable
  17774. stream_key = (link_id, srcSystem, srcComponent)
  17775. if stream_key in self.signing.stream_timestamps:
  17776. if timestamp <= self.signing.stream_timestamps[stream_key]:
  17777. # reject old timestamp
  17778. logger.info("old timestamp")
  17779. return False
  17780. else:
  17781. # a new stream has appeared. Accept the timestamp if it is at most
  17782. # one minute behind our current timestamp
  17783. if timestamp + 6000 * 1000 < self.signing.timestamp:
  17784. 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))
  17785. return False
  17786. logger.info("new stream")
  17787. # set the streams timestamp so we reject timestamps that go backwards
  17788. self.signing.stream_timestamps[stream_key] = timestamp
  17789. h = hashlib.new("sha256")
  17790. h.update(self.signing.secret_key)
  17791. h.update(msgbuf[:-6])
  17792. sig1 = h.digest()[:6]
  17793. sig2 = msgbuf[-6:]
  17794. if sig1 != sig2:
  17795. logger.info("sig mismatch")
  17796. return False
  17797. # the timestamp we next send with is the max of the received timestamp and
  17798. # our current timestamp
  17799. self.signing.timestamp = max(self.signing.timestamp, timestamp)
  17800. return True
  17801. def decode(self, msgbuf: bytearray) -> MAVLink_message:
  17802. """decode a buffer as a MAVLink message"""
  17803. # decode the header
  17804. if msgbuf[0] != PROTOCOL_MARKER_V1:
  17805. headerlen = 10
  17806. try:
  17807. header_v2: MAVLinkV2Header = self.mav20_unpacker.unpack(msgbuf[:headerlen])
  17808. except struct.error as emsg:
  17809. raise MAVError("Unable to unpack MAVLink header: %s" % emsg)
  17810. magic, mlen, incompat_flags, compat_flags, seq, srcSystem, srcComponent, msgIdlow, msgIdhigh = header_v2
  17811. msgId = msgIdlow | (msgIdhigh << 16)
  17812. else:
  17813. headerlen = 6
  17814. try:
  17815. header_v1: MAVLinkV1Header = self.mav10_unpacker.unpack(msgbuf[:headerlen])
  17816. except struct.error as emsg:
  17817. raise MAVError("Unable to unpack MAVLink header: %s" % emsg)
  17818. magic, mlen, seq, srcSystem, srcComponent, msgId = header_v1
  17819. incompat_flags = 0
  17820. compat_flags = 0
  17821. mapkey = msgId
  17822. if (incompat_flags & MAVLINK_IFLAG_SIGNED) != 0:
  17823. signature_len = MAVLINK_SIGNATURE_BLOCK_LEN
  17824. else:
  17825. signature_len = 0
  17826. if ord(magic) != PROTOCOL_MARKER_V1 and ord(magic) != PROTOCOL_MARKER_V2:
  17827. raise MAVError("invalid MAVLink prefix '{}'".format(hex(ord(magic))))
  17828. if mlen != len(msgbuf) - (headerlen + 2 + signature_len):
  17829. raise MAVError("invalid MAVLink message length. Got %u expected %u, msgId=%u headerlen=%u" % (len(msgbuf) - (headerlen + 2 + signature_len), mlen, msgId, headerlen))
  17830. if mapkey not in mavlink_map:
  17831. return MAVLink_unknown(msgId, msgbuf)
  17832. # decode the payload
  17833. msgtype = mavlink_map[mapkey]
  17834. order_map = msgtype.orders
  17835. len_map = msgtype.lengths
  17836. crc_extra = msgtype.crc_extra
  17837. # decode the checksum
  17838. try:
  17839. crc: int = self.mav_csum_unpacker.unpack(msgbuf[-(2 + signature_len) :][:2])[0]
  17840. except struct.error as emsg:
  17841. raise MAVError("Unable to unpack MAVLink CRC: %s" % emsg)
  17842. crcbuf = msgbuf[1 : -(2 + signature_len)]
  17843. # using CRC extra
  17844. crcbuf.append(crc_extra)
  17845. crc2 = x25crc(crcbuf)
  17846. if crc != crc2.crc and not MAVLINK_IGNORE_CRC:
  17847. raise MAVError("invalid MAVLink CRC in msgID %u 0x%04x should be 0x%04x" % (msgId, crc, crc2.crc))
  17848. sig_ok = False
  17849. if signature_len == MAVLINK_SIGNATURE_BLOCK_LEN:
  17850. self.signing.sig_count += 1
  17851. if self.signing.secret_key is not None:
  17852. accept_signature = False
  17853. if signature_len == MAVLINK_SIGNATURE_BLOCK_LEN:
  17854. sig_ok = self.check_signature(msgbuf, srcSystem, srcComponent)
  17855. accept_signature = sig_ok
  17856. if sig_ok:
  17857. self.signing.goodsig_count += 1
  17858. else:
  17859. self.signing.badsig_count += 1
  17860. if not accept_signature and self.signing.allow_unsigned_callback is not None:
  17861. accept_signature = self.signing.allow_unsigned_callback(self, msgId)
  17862. if accept_signature:
  17863. self.signing.unsigned_count += 1
  17864. else:
  17865. self.signing.reject_count += 1
  17866. elif self.signing.allow_unsigned_callback is not None:
  17867. accept_signature = self.signing.allow_unsigned_callback(self, msgId)
  17868. if accept_signature:
  17869. self.signing.unsigned_count += 1
  17870. else:
  17871. self.signing.reject_count += 1
  17872. if not accept_signature:
  17873. raise MAVError("Invalid signature")
  17874. csize = msgtype.unpacker.size
  17875. mbuf = msgbuf[headerlen : -(2 + signature_len)]
  17876. if len(mbuf) < csize:
  17877. # zero pad to give right size
  17878. mbuf.extend([0] * (csize - len(mbuf)))
  17879. if len(mbuf) < csize:
  17880. raise MAVError("Bad message of type %s length %u needs %s" % (msgtype, len(mbuf), csize))
  17881. mbuf = mbuf[:csize]
  17882. try:
  17883. t: Tuple[Union[bytes, int, float], ...] = msgtype.unpacker.unpack(mbuf)
  17884. except struct.error as emsg:
  17885. raise MAVError("Unable to unpack MAVLink payload type=%s payloadLength=%u: %s" % (msgtype, len(mbuf), emsg))
  17886. tlist: List[Union[bytes, float, int, Sequence[Union[bytes, float, int]]]] = list(t)
  17887. # handle sorted fields
  17888. if sum(len_map) == len(len_map):
  17889. # message has no arrays in it
  17890. for i in range(0, len(tlist)):
  17891. tlist[i] = t[order_map[i]]
  17892. else:
  17893. # message has some arrays
  17894. tlist = []
  17895. for i in range(0, len(order_map)):
  17896. order = order_map[i]
  17897. L = len_map[order]
  17898. tip = sum(len_map[:order])
  17899. field = t[tip]
  17900. if L == 1 or isinstance(field, bytes):
  17901. tlist.append(field)
  17902. else:
  17903. tlist.append(list(t[tip : (tip + L)]))
  17904. # terminate any strings
  17905. for i, elem in enumerate(tlist):
  17906. if isinstance(elem, bytes):
  17907. tlist[i] = elem.rstrip(b"\x00")
  17908. # construct the message object
  17909. try:
  17910. # Note that initializers don't follow the Liskov Substitution Principle
  17911. # therefore it can't be typechecked
  17912. m = msgtype(*tlist) # type: ignore
  17913. except Exception as emsg:
  17914. raise MAVError("Unable to instantiate MAVLink message of type %s : %s" % (msgtype, emsg))
  17915. m._signed = sig_ok
  17916. if m._signed:
  17917. m._link_id = msgbuf[-13]
  17918. m._msgbuf = msgbuf
  17919. m._payload = msgbuf[6 : -(2 + signature_len)]
  17920. m._crc = crc
  17921. m._header = MAVLink_header(msgId, incompat_flags, compat_flags, mlen, seq, srcSystem, srcComponent)
  17922. return m
  17923. 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:
  17924. """
  17925. time_boot_ms : Timestamp in ms from system boot. [ms] (type:uint32_t)
  17926. nav_status : VKINS
  17927. navigation status flag. (type:uint8_t, values:VKFLY_VKINS_NAV_STATUS)
  17928. s_flag1 : vinks flag1 (type:uint8_t)
  17929. s_flag2 : vinks flag2. (type:uint8_t)
  17930. s_flag3 : vinks flag3. (type:uint8_t)
  17931. s_flag4 : vinks flag4. (type:uint8_t)
  17932. s_flag5 : vinks flag5. (type:uint8_t)
  17933. s_flag6 : vinks flag6. (type:uint8_t)
  17934. mag_calib_stage : vkins mag calib
  17935. stage. (type:uint8_t, values:VKFLY_MAGCALIB_STAGE)
  17936. g0 : vkins initial calibrated gravitation acceleration. [m/s/s] (type:float)
  17937. raw_latitude : raw longitude for data fusion [degE7] (type:int32_t)
  17938. raw_longitude : raw latitidue for data fusion [degE7] (type:int32_t)
  17939. baro_alt : raw baromoter altitude for data fusion [m] (type:float)
  17940. raw_gps_alt : gps amsl altitude for data fusion [m] (type:float)
  17941. solv_psat_num : satelites number for position (type:uint8_t)
  17942. solv_hsat_num : satelites number for heading (type:uint8_t)
  17943. temperature : temperature [degC] (type:int16_t)
  17944. vibe_coe : (type:uint8_t)
  17945. """
  17946. 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)
  17947. 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:
  17948. """
  17949. time_boot_ms : Timestamp in ms from system boot. [ms] (type:uint32_t)
  17950. nav_status : VKINS
  17951. navigation status flag. (type:uint8_t, values:VKFLY_VKINS_NAV_STATUS)
  17952. s_flag1 : vinks flag1 (type:uint8_t)
  17953. s_flag2 : vinks flag2. (type:uint8_t)
  17954. s_flag3 : vinks flag3. (type:uint8_t)
  17955. s_flag4 : vinks flag4. (type:uint8_t)
  17956. s_flag5 : vinks flag5. (type:uint8_t)
  17957. s_flag6 : vinks flag6. (type:uint8_t)
  17958. mag_calib_stage : vkins mag calib
  17959. stage. (type:uint8_t, values:VKFLY_MAGCALIB_STAGE)
  17960. g0 : vkins initial calibrated gravitation acceleration. [m/s/s] (type:float)
  17961. raw_latitude : raw longitude for data fusion [degE7] (type:int32_t)
  17962. raw_longitude : raw latitidue for data fusion [degE7] (type:int32_t)
  17963. baro_alt : raw baromoter altitude for data fusion [m] (type:float)
  17964. raw_gps_alt : gps amsl altitude for data fusion [m] (type:float)
  17965. solv_psat_num : satelites number for position (type:uint8_t)
  17966. solv_hsat_num : satelites number for heading (type:uint8_t)
  17967. temperature : temperature [degC] (type:int16_t)
  17968. vibe_coe : (type:uint8_t)
  17969. """
  17970. 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)
  17971. 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:
  17972. """
  17973. time_boot_ms : Timestamp in ms from system boot. [ms] (type:uint32_t)
  17974. rtl_reason : return to launch reason. (type:uint8_t, values:VKFLY_RTL_REASON)
  17975. loiter_reason : Loiter reason (type:uint8_t, values:VKFLY_LOITER_REASON)
  17976. s_flag3 : fmu sflag3 (type:uint8_t)
  17977. ups_volt : ups voltage in 0.1V (type:uint16_t)
  17978. adc_volt : adc voltage in 0.1V (type:uint16_t)
  17979. flight_time : flight time in seconds [s] (type:uint32_t)
  17980. dist_to_tar : distance to target position in cm [cm] (type:uint32_t)
  17981. servo_state : bitmap for servo state (type:uint16_t)
  17982. flight_dist : flight distance since this power up [m] (type:float)
  17983. servo_display : bitmap for servo state display (type:uint16_t)
  17984. """
  17985. 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)
  17986. 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:
  17987. """
  17988. time_boot_ms : Timestamp in ms from system boot. [ms] (type:uint32_t)
  17989. rtl_reason : return to launch reason. (type:uint8_t, values:VKFLY_RTL_REASON)
  17990. loiter_reason : Loiter reason (type:uint8_t, values:VKFLY_LOITER_REASON)
  17991. s_flag3 : fmu sflag3 (type:uint8_t)
  17992. ups_volt : ups voltage in 0.1V (type:uint16_t)
  17993. adc_volt : adc voltage in 0.1V (type:uint16_t)
  17994. flight_time : flight time in seconds [s] (type:uint32_t)
  17995. dist_to_tar : distance to target position in cm [cm] (type:uint32_t)
  17996. servo_state : bitmap for servo state (type:uint16_t)
  17997. flight_dist : flight distance since this power up [m] (type:float)
  17998. servo_display : bitmap for servo state display (type:uint16_t)
  17999. """
  18000. 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)
  18001. def vk_roi_target_encode(self, time_boot_ms: int, lat: int, lon: int, alt: float, state: int) -> MAVLink_vk_roi_target_message:
  18002. """
  18003. time_boot_ms : Timestamp in ms from system boot. [ms] (type:uint32_t)
  18004. lat : wgs48 latitude [degE7] (type:int32_t)
  18005. lon : wgs48 longitude [degE7] (type:int32_t)
  18006. alt : altitude amsl, wgs48 [m] (type:float)
  18007. state : Bitmap to indicate ROI state (type:uint16_t, values:VKFLY_ROI_STATE)
  18008. """
  18009. return MAVLink_vk_roi_target_message(time_boot_ms, lat, lon, alt, state)
  18010. def vk_roi_target_send(self, time_boot_ms: int, lat: int, lon: int, alt: float, state: int, force_mavlink1: bool = False) -> None:
  18011. """
  18012. time_boot_ms : Timestamp in ms from system boot. [ms] (type:uint32_t)
  18013. lat : wgs48 latitude [degE7] (type:int32_t)
  18014. lon : wgs48 longitude [degE7] (type:int32_t)
  18015. alt : altitude amsl, wgs48 [m] (type:float)
  18016. state : Bitmap to indicate ROI state (type:uint16_t, values:VKFLY_ROI_STATE)
  18017. """
  18018. self.send(self.vk_roi_target_encode(time_boot_ms, lat, lon, alt, state), force_mavlink1=force_mavlink1)
  18019. 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:
  18020. """
  18021. battery bms status message
  18022. time_boot_ms : Timestamp in ms from system boot. [ms] (type:uint32_t)
  18023. voltage : BMS voltage in mV [mV] (type:uint32_t)
  18024. current : BMS current in cA, negative value means in
  18025. charging [cA] (type:int32_t)
  18026. temperature : BMS temperature in degC [degC] (type:int16_t)
  18027. cap_percent : BMS remaining power in percentage [%] (type:int8_t)
  18028. bat_id : BMS id, start from
  18029. 0 (type:uint8_t)
  18030. err_code : BMS error code,
  18031. 0 means no error (type:uint32_t)
  18032. cell_num : BMS cell numbers (type:uint16_t)
  18033. cell_volt : BMS cell voltage in mV [mV] (type:uint16_t)
  18034. cyc_cnt : charge and discharge times (type:uint16_t)
  18035. health : battery healthiness in
  18036. percentage (type:uint8_t)
  18037. """
  18038. 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)
  18039. 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:
  18040. """
  18041. battery bms status message
  18042. time_boot_ms : Timestamp in ms from system boot. [ms] (type:uint32_t)
  18043. voltage : BMS voltage in mV [mV] (type:uint32_t)
  18044. current : BMS current in cA, negative value means in
  18045. charging [cA] (type:int32_t)
  18046. temperature : BMS temperature in degC [degC] (type:int16_t)
  18047. cap_percent : BMS remaining power in percentage [%] (type:int8_t)
  18048. bat_id : BMS id, start from
  18049. 0 (type:uint8_t)
  18050. err_code : BMS error code,
  18051. 0 means no error (type:uint32_t)
  18052. cell_num : BMS cell numbers (type:uint16_t)
  18053. cell_volt : BMS cell voltage in mV [mV] (type:uint16_t)
  18054. cyc_cnt : charge and discharge times (type:uint16_t)
  18055. health : battery healthiness in
  18056. percentage (type:uint8_t)
  18057. """
  18058. 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)
  18059. 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:
  18060. """
  18061. formation fly leader status message
  18062. timestamp : Timestamp in ms from system boot. [ms] (type:uint32_t)
  18063. state : formation leader drone state bitmap (type:uint32_t)
  18064. lat : formation leader latitude in 1e-7deg [degE7] (type:int32_t)
  18065. lon : formation leader longitude in 1e-7deg [degE7] (type:int32_t)
  18066. msl : formation leader msl altitude in meter [m] (type:float)
  18067. ve : formation leader east speed [m/s] (type:float)
  18068. vn : formation leader north speed [m/s] (type:float)
  18069. vu : formation leader up speed [m/s] (type:float)
  18070. yaw : formation leader yaw [deg] (type:float)
  18071. formation_type : formation type (type:uint8_t, values:VKFLY_FORMATION_TYPE)
  18072. x_dist : distance between drones in x axis [cm] (type:int16_t)
  18073. y_dist : distance between drones in y axis [cm] (type:int16_t)
  18074. z_dist : distance between drones in z axis [cm] (type:int16_t)
  18075. rect_col_num : columns number of rectangle formation (type:uint16_t)
  18076. formation_heading : if nan, use yaw as formation heading [deg] (type:float)
  18077. form_head_lock : 0 unlock, 1 lock (type:float)
  18078. ae : formation leader east acceleration [m/s/s] (type:float)
  18079. an : formation leader east acceleration [m/s/s] (type:float)
  18080. au : formation leader east acceleration [m/s/s] (type:float)
  18081. """
  18082. 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)
  18083. 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:
  18084. """
  18085. formation fly leader status message
  18086. timestamp : Timestamp in ms from system boot. [ms] (type:uint32_t)
  18087. state : formation leader drone state bitmap (type:uint32_t)
  18088. lat : formation leader latitude in 1e-7deg [degE7] (type:int32_t)
  18089. lon : formation leader longitude in 1e-7deg [degE7] (type:int32_t)
  18090. msl : formation leader msl altitude in meter [m] (type:float)
  18091. ve : formation leader east speed [m/s] (type:float)
  18092. vn : formation leader north speed [m/s] (type:float)
  18093. vu : formation leader up speed [m/s] (type:float)
  18094. yaw : formation leader yaw [deg] (type:float)
  18095. formation_type : formation type (type:uint8_t, values:VKFLY_FORMATION_TYPE)
  18096. x_dist : distance between drones in x axis [cm] (type:int16_t)
  18097. y_dist : distance between drones in y axis [cm] (type:int16_t)
  18098. z_dist : distance between drones in z axis [cm] (type:int16_t)
  18099. rect_col_num : columns number of rectangle formation (type:uint16_t)
  18100. formation_heading : if nan, use yaw as formation heading [deg] (type:float)
  18101. form_head_lock : 0 unlock, 1 lock (type:float)
  18102. ae : formation leader east acceleration [m/s/s] (type:float)
  18103. an : formation leader east acceleration [m/s/s] (type:float)
  18104. au : formation leader east acceleration [m/s/s] (type:float)
  18105. """
  18106. 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)
  18107. 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:
  18108. """
  18109. engine ecu status message
  18110. timestamp : Timestamp in ms from system boot. [ms] (type:uint32_t)
  18111. spd_rpm : rotational speed in rpm (type:uint16_t)
  18112. thr_pos : throttle
  18113. position [%] (type:uint8_t)
  18114. fuel_pos : fuel
  18115. position [%] (type:uint8_t)
  18116. cylinderA_temp : CylinderA head temperature [degC] (type:int16_t)
  18117. cylinderB_temp : CylinderB head temperature [degC] (type:int16_t)
  18118. coolant_temp : coolant head temperature [degC] (type:int16_t)
  18119. fuel_remain : engine index (type:uint16_t)
  18120. alarm : range extender alarm bitmap (type:uint16_t)
  18121. total_runtime : range extender output voltage [min] (type:uint32_t)
  18122. runtime : range extender output voltage [min] (type:uint16_t)
  18123. service_time : left time for service [min] (type:uint16_t)
  18124. output_volt : range extender output voltage [dV] (type:uint16_t)
  18125. output_curr : range extender output current [dA] (type:uint16_t)
  18126. fault : engine fault (type:uint8_t)
  18127. engine_state : engine state (type:uint8_t)
  18128. index : engine index (type:uint8_t)
  18129. reserve : engine state (type:uint8_t)
  18130. inlet_pressure : inlet air pressure [hPa] (type:uint16_t)
  18131. ge_temp : Ge temperature [degC] (type:int16_t)
  18132. air_temp : air temperature [degC] (type:int16_t)
  18133. temp_1 : temperature 1 [degC] (type:int16_t)
  18134. volt_2 : volt 2 [dV] (type:int16_t)
  18135. """
  18136. 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)
  18137. 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:
  18138. """
  18139. engine ecu status message
  18140. timestamp : Timestamp in ms from system boot. [ms] (type:uint32_t)
  18141. spd_rpm : rotational speed in rpm (type:uint16_t)
  18142. thr_pos : throttle
  18143. position [%] (type:uint8_t)
  18144. fuel_pos : fuel
  18145. position [%] (type:uint8_t)
  18146. cylinderA_temp : CylinderA head temperature [degC] (type:int16_t)
  18147. cylinderB_temp : CylinderB head temperature [degC] (type:int16_t)
  18148. coolant_temp : coolant head temperature [degC] (type:int16_t)
  18149. fuel_remain : engine index (type:uint16_t)
  18150. alarm : range extender alarm bitmap (type:uint16_t)
  18151. total_runtime : range extender output voltage [min] (type:uint32_t)
  18152. runtime : range extender output voltage [min] (type:uint16_t)
  18153. service_time : left time for service [min] (type:uint16_t)
  18154. output_volt : range extender output voltage [dV] (type:uint16_t)
  18155. output_curr : range extender output current [dA] (type:uint16_t)
  18156. fault : engine fault (type:uint8_t)
  18157. engine_state : engine state (type:uint8_t)
  18158. index : engine index (type:uint8_t)
  18159. reserve : engine state (type:uint8_t)
  18160. inlet_pressure : inlet air pressure [hPa] (type:uint16_t)
  18161. ge_temp : Ge temperature [degC] (type:int16_t)
  18162. air_temp : air temperature [degC] (type:int16_t)
  18163. temp_1 : temperature 1 [degC] (type:int16_t)
  18164. volt_2 : volt 2 [dV] (type:int16_t)
  18165. """
  18166. 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)
  18167. 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:
  18168. """
  18169. vkfly gps version
  18170. comp_id : component id (type:uint16_t, values:VKFLY_USER_COMP_ID)
  18171. hw_ver : hardware version (type:uint8_t)
  18172. fw_ver : firmware version (type:uint8_t)
  18173. SN : SN number (type:uint8_t)
  18174. manufactory : manufactory (type:uint8_t)
  18175. model : model (type:uint8_t)
  18176. priv_data : gnss configuration (type:uint8_t)
  18177. """
  18178. return MAVLink_vk_comp_version_message(comp_id, hw_ver, fw_ver, SN, manufactory, model, priv_data)
  18179. 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:
  18180. """
  18181. vkfly gps version
  18182. comp_id : component id (type:uint16_t, values:VKFLY_USER_COMP_ID)
  18183. hw_ver : hardware version (type:uint8_t)
  18184. fw_ver : firmware version (type:uint8_t)
  18185. SN : SN number (type:uint8_t)
  18186. manufactory : manufactory (type:uint8_t)
  18187. model : model (type:uint8_t)
  18188. priv_data : gnss configuration (type:uint8_t)
  18189. """
  18190. self.send(self.vk_comp_version_encode(comp_id, hw_ver, fw_ver, SN, manufactory, model, priv_data), force_mavlink1=force_mavlink1)
  18191. 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:
  18192. """
  18193. Mosaic_h gps raw data
  18194. time_usec : Timestamp (UNIX Epoch time or time since
  18195. system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system
  18196. boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  18197. fix_type : GPS fix type. (type:uint8_t, values:GPS_FIX_TYPE)
  18198. psv_num : Number of satellites for positioning ANT (type:uint8_t)
  18199. pvt_err : refer to mosaic_h reference page 308 (type:uint8_t)
  18200. pvt_mode : refer to mosaic_h reference page 308 (type:uint8_t)
  18201. lat : Latitude (WGS84, EGM96 ellipsoid) [degE7] (type:int32_t)
  18202. lon : Longitude (WGS84, EGM96 ellipsoid) [degE7] (type:int32_t)
  18203. ellipsoid_alt : Altitude (Ellipsoild). Positive for up. [m] (type:float)
  18204. ve : Ease speed in m/s. [m/s] (type:float)
  18205. vn : North speed in m/s. [m/s] (type:float)
  18206. vu : Up speed in m/s. [m/s] (type:float)
  18207. h_acc : Position uncertainty. [cm] (type:uint16_t)
  18208. v_acc : Altitude uncertainty. [cm] (type:uint16_t)
  18209. yaw : Attitude euler yaw. [deg] (type:float)
  18210. pitch : Attitude euler pitch. [deg] (type:float)
  18211. hsv_num : Number of satellites for heading ANT (type:uint8_t)
  18212. att_err : refer to mosaic_h reference page 336. (type:uint8_t)
  18213. att_mode : refer to mosaic_h reference page 336. (type:uint8_t)
  18214. reserved : reserved (type:uint8_t)
  18215. """
  18216. 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)
  18217. 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:
  18218. """
  18219. Mosaic_h gps raw data
  18220. time_usec : Timestamp (UNIX Epoch time or time since
  18221. system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system
  18222. boot) by checking for the magnitude of the number. [us] (type:uint64_t)
  18223. fix_type : GPS fix type. (type:uint8_t, values:GPS_FIX_TYPE)
  18224. psv_num : Number of satellites for positioning ANT (type:uint8_t)
  18225. pvt_err : refer to mosaic_h reference page 308 (type:uint8_t)
  18226. pvt_mode : refer to mosaic_h reference page 308 (type:uint8_t)
  18227. lat : Latitude (WGS84, EGM96 ellipsoid) [degE7] (type:int32_t)
  18228. lon : Longitude (WGS84, EGM96 ellipsoid) [degE7] (type:int32_t)
  18229. ellipsoid_alt : Altitude (Ellipsoild). Positive for up. [m] (type:float)
  18230. ve : Ease speed in m/s. [m/s] (type:float)
  18231. vn : North speed in m/s. [m/s] (type:float)
  18232. vu : Up speed in m/s. [m/s] (type:float)
  18233. h_acc : Position uncertainty. [cm] (type:uint16_t)
  18234. v_acc : Altitude uncertainty. [cm] (type:uint16_t)
  18235. yaw : Attitude euler yaw. [deg] (type:float)
  18236. pitch : Attitude euler pitch. [deg] (type:float)
  18237. hsv_num : Number of satellites for heading ANT (type:uint8_t)
  18238. att_err : refer to mosaic_h reference page 336. (type:uint8_t)
  18239. att_mode : refer to mosaic_h reference page 336. (type:uint8_t)
  18240. reserved : reserved (type:uint8_t)
  18241. """
  18242. 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)
  18243. 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:
  18244. """
  18245. Mosaic_h gps raw data
  18246. index : Index of the first ESC in this message.
  18247. minValue = 0, maxValue = 60, increment = 4. (type:uint8_t)
  18248. timestamp : Timestamp from system boot. [ms] (type:uint32_t)
  18249. rpm : Reported motor RPM from each ESC (negative for
  18250. reverse rotation). [rpm] (type:int32_t)
  18251. voltage : Voltage measured from each ESC. [V] (type:float)
  18252. current : Current measured from each ESC. [A] (type:float)
  18253. temperature : Temperature measured from each ESC. [degC] (type:int16_t)
  18254. status : Status data from each ESC. (type:uint32_t)
  18255. motor_temp : Motro temperature from each ESC. [degC] (type:int16_t)
  18256. cap_temp : Capacity temperature from each ESC. [degC] (type:int16_t)
  18257. status2 : Status2 data from each ESC. (type:uint32_t)
  18258. """
  18259. return MAVLink_vk_digi_esc_status_message(index, timestamp, rpm, voltage, current, temperature, status, motor_temp, cap_temp, status2)
  18260. 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:
  18261. """
  18262. Mosaic_h gps raw data
  18263. index : Index of the first ESC in this message.
  18264. minValue = 0, maxValue = 60, increment = 4. (type:uint8_t)
  18265. timestamp : Timestamp from system boot. [ms] (type:uint32_t)
  18266. rpm : Reported motor RPM from each ESC (negative for
  18267. reverse rotation). [rpm] (type:int32_t)
  18268. voltage : Voltage measured from each ESC. [V] (type:float)
  18269. current : Current measured from each ESC. [A] (type:float)
  18270. temperature : Temperature measured from each ESC. [degC] (type:int16_t)
  18271. status : Status data from each ESC. (type:uint32_t)
  18272. motor_temp : Motro temperature from each ESC. [degC] (type:int16_t)
  18273. cap_temp : Capacity temperature from each ESC. [degC] (type:int16_t)
  18274. status2 : Status2 data from each ESC. (type:uint32_t)
  18275. """
  18276. self.send(self.vk_digi_esc_status_encode(index, timestamp, rpm, voltage, current, temperature, status, motor_temp, cap_temp, status2), force_mavlink1=force_mavlink1)
  18277. 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:
  18278. """
  18279. Mosaic_h gps raw data
  18280. timestamp : Timestamp from system boot. [ms] (type:uint32_t)
  18281. roll_value : Roll control value,
  18282. negative value means roll left. (type:float)
  18283. pitch_value : Pitch control value,
  18284. negative value means pitch down. (type:float)
  18285. throttle_value : Throttle control
  18286. value, negative value means throttle off (type:float)
  18287. yaw_value : Throttle control
  18288. value, negative value means turn left (type:float)
  18289. """
  18290. return MAVLink_vk_fixedwing_control_value_message(timestamp, roll_value, pitch_value, throttle_value, yaw_value)
  18291. 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:
  18292. """
  18293. Mosaic_h gps raw data
  18294. timestamp : Timestamp from system boot. [ms] (type:uint32_t)
  18295. roll_value : Roll control value,
  18296. negative value means roll left. (type:float)
  18297. pitch_value : Pitch control value,
  18298. negative value means pitch down. (type:float)
  18299. throttle_value : Throttle control
  18300. value, negative value means throttle off (type:float)
  18301. yaw_value : Throttle control
  18302. value, negative value means turn left (type:float)
  18303. """
  18304. self.send(self.vk_fixedwing_control_value_encode(timestamp, roll_value, pitch_value, throttle_value, yaw_value), force_mavlink1=force_mavlink1)
  18305. def vk_fixedwing_servo_signal_encode(self, timestamp: int, servo_signal: Sequence[int]) -> MAVLink_vk_fixedwing_servo_signal_message:
  18306. """
  18307. Mosaic_h gps raw data
  18308. timestamp : Timestamp from system boot. [ms] (type:uint32_t)
  18309. servo_signal : Servo signal (type:uint16_t)
  18310. """
  18311. return MAVLink_vk_fixedwing_servo_signal_message(timestamp, servo_signal)
  18312. def vk_fixedwing_servo_signal_send(self, timestamp: int, servo_signal: Sequence[int], force_mavlink1: bool = False) -> None:
  18313. """
  18314. Mosaic_h gps raw data
  18315. timestamp : Timestamp from system boot. [ms] (type:uint32_t)
  18316. servo_signal : Servo signal (type:uint16_t)
  18317. """
  18318. self.send(self.vk_fixedwing_servo_signal_encode(timestamp, servo_signal), force_mavlink1=force_mavlink1)
  18319. def vk_fixedwing_rtl_circle_wp_encode(self, latitude: int, longitude: int, altitude: float, radius: float) -> MAVLink_vk_fixedwing_rtl_circle_wp_message:
  18320. """
  18321. latitude : Latitude in wgs84 [degE7] (type:int32_t)
  18322. longitude : Longitude in wgs84 [degE7] (type:int32_t)
  18323. altitude : Relativ altitude [m] (type:float)
  18324. radius : Radius in m, NAN means use default radius. [m] (type:float)
  18325. """
  18326. return MAVLink_vk_fixedwing_rtl_circle_wp_message(latitude, longitude, altitude, radius)
  18327. def vk_fixedwing_rtl_circle_wp_send(self, latitude: int, longitude: int, altitude: float, radius: float, force_mavlink1: bool = False) -> None:
  18328. """
  18329. latitude : Latitude in wgs84 [degE7] (type:int32_t)
  18330. longitude : Longitude in wgs84 [degE7] (type:int32_t)
  18331. altitude : Relativ altitude [m] (type:float)
  18332. radius : Radius in m, NAN means use default radius. [m] (type:float)
  18333. """
  18334. self.send(self.vk_fixedwing_rtl_circle_wp_encode(latitude, longitude, altitude, radius), force_mavlink1=force_mavlink1)
  18335. def vk_airspeed_encode(self, id: int, airspeed: float, temperature: int, raw_press: float, flags: int) -> MAVLink_vk_airspeed_message:
  18336. """
  18337. Airspeed information from a sensor.
  18338. id : Sensor ID. (type:uint8_t)
  18339. airspeed : Calibrated airspeed (CAS). [m/s] (type:float)
  18340. temperature : Temperature. [cdegC] (type:int16_t)
  18341. raw_press : Raw differential pressure. [hPa] (type:float)
  18342. flags : Airspeed sensor flags. (type:uint8_t)
  18343. """
  18344. return MAVLink_vk_airspeed_message(id, airspeed, temperature, raw_press, flags)
  18345. def vk_airspeed_send(self, id: int, airspeed: float, temperature: int, raw_press: float, flags: int, force_mavlink1: bool = False) -> None:
  18346. """
  18347. Airspeed information from a sensor.
  18348. id : Sensor ID. (type:uint8_t)
  18349. airspeed : Calibrated airspeed (CAS). [m/s] (type:float)
  18350. temperature : Temperature. [cdegC] (type:int16_t)
  18351. raw_press : Raw differential pressure. [hPa] (type:float)
  18352. flags : Airspeed sensor flags. (type:uint8_t)
  18353. """
  18354. self.send(self.vk_airspeed_encode(id, airspeed, temperature, raw_press, flags), force_mavlink1=force_mavlink1)
  18355. 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:
  18356. """
  18357. parachute status
  18358. timestamp : timestamp from system boot [ms] (type:uint32_t)
  18359. state : parachute state (type:uint8_t)
  18360. auto_launch : is auto launch enabled (type:uint8_t)
  18361. uav_cmd : uav command from parachute (type:uint8_t)
  18362. err_code : parachute error code (type:uint16_t)
  18363. backvolt : parachute backup voltage (type:float)
  18364. """
  18365. return MAVLink_vk_parachute_status_message(timestamp, state, auto_launch, uav_cmd, err_code, backvolt)
  18366. 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:
  18367. """
  18368. parachute status
  18369. timestamp : timestamp from system boot [ms] (type:uint32_t)
  18370. state : parachute state (type:uint8_t)
  18371. auto_launch : is auto launch enabled (type:uint8_t)
  18372. uav_cmd : uav command from parachute (type:uint8_t)
  18373. err_code : parachute error code (type:uint16_t)
  18374. backvolt : parachute backup voltage (type:float)
  18375. """
  18376. self.send(self.vk_parachute_status_encode(timestamp, state, auto_launch, uav_cmd, err_code, backvolt), force_mavlink1=force_mavlink1)
  18377. 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:
  18378. """
  18379. Weigher state
  18380. timestamp : timestamp from system boot [ms] (type:uint32_t)
  18381. weight : weight in gram [g] (type:uint32_t)
  18382. weight_d : weight variant rate (type:uint16_t)
  18383. work_state : (type:uint8_t)
  18384. err_code : (type:uint8_t)
  18385. attitude_Q : (type:float)
  18386. rope_length : length in m, NAN means ignore (type:float)
  18387. rope_vel : velocity in m/s, NAN means ignore (type:float)
  18388. """
  18389. return MAVLink_vk_weigher_state_message(timestamp, weight, weight_d, work_state, err_code, attitude_Q, rope_length, rope_vel)
  18390. 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:
  18391. """
  18392. Weigher state
  18393. timestamp : timestamp from system boot [ms] (type:uint32_t)
  18394. weight : weight in gram [g] (type:uint32_t)
  18395. weight_d : weight variant rate (type:uint16_t)
  18396. work_state : (type:uint8_t)
  18397. err_code : (type:uint8_t)
  18398. attitude_Q : (type:float)
  18399. rope_length : length in m, NAN means ignore (type:float)
  18400. rope_vel : velocity in m/s, NAN means ignore (type:float)
  18401. """
  18402. 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)
  18403. def vk_payload_data_relay_encode(self, payload_addr: int, reserve: int, data_len: int, data: Sequence[int]) -> MAVLink_vk_payload_data_relay_message:
  18404. """
  18405. VK payload message relay
  18406. payload_addr : payload address code (type:uint16_t)
  18407. reserve : reserve (type:uint8_t)
  18408. data_len : data field length in bytes (type:uint8_t)
  18409. data : data to relay (type:uint8_t)
  18410. """
  18411. return MAVLink_vk_payload_data_relay_message(payload_addr, reserve, data_len, data)
  18412. def vk_payload_data_relay_send(self, payload_addr: int, reserve: int, data_len: int, data: Sequence[int], force_mavlink1: bool = False) -> None:
  18413. """
  18414. VK payload message relay
  18415. payload_addr : payload address code (type:uint16_t)
  18416. reserve : reserve (type:uint8_t)
  18417. data_len : data field length in bytes (type:uint8_t)
  18418. data : data to relay (type:uint8_t)
  18419. """
  18420. self.send(self.vk_payload_data_relay_encode(payload_addr, reserve, data_len, data), force_mavlink1=force_mavlink1)
  18421. 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:
  18422. """
  18423. VK external INS navigation
  18424. timestamp : timestamp from system boot [ms] (type:uint32_t)
  18425. lon : solved longitude [degE7] (type:int32_t)
  18426. lat : solved latitude [degE7] (type:int32_t)
  18427. msl : solved latitude [m] (type:float)
  18428. ve : solved east speed [m/s] (type:float)
  18429. vn : solved north speed [m/s] (type:float)
  18430. vu : solved up speed [m/s] (type:float)
  18431. yaw : yaw angle [deg] (type:float)
  18432. pitch : pitch angle [deg] (type:float)
  18433. roll : roll angle [deg] (type:float)
  18434. gx : roll angle [deg/s] (type:float)
  18435. gy : roll angle [deg/s] (type:float)
  18436. gz : roll angle [deg/s] (type:float)
  18437. ax : roll angle [m/s/s] (type:float)
  18438. ay : roll angle [m/s/s] (type:float)
  18439. az : roll angle [m/s/s] (type:float)
  18440. sat_lon : gps longitude [degE7] (type:int32_t)
  18441. sat_lat : gps latitude [degE7] (type:int32_t)
  18442. sat_msl : gps altitude [m] (type:float)
  18443. sat_ve : gps east speed [m/s] (type:float)
  18444. sat_vn : gps north speed [m/s] (type:float)
  18445. sat_vu : gps up speed [m/s] (type:float)
  18446. sat_pfix : gps position fix (type:uint8_t)
  18447. sat_hfix : gps heading fix (type:uint8_t)
  18448. wk_state : work state (type:uint8_t)
  18449. err_code : error code (type:uint8_t)
  18450. """
  18451. 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)
  18452. 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:
  18453. """
  18454. VK external INS navigation
  18455. timestamp : timestamp from system boot [ms] (type:uint32_t)
  18456. lon : solved longitude [degE7] (type:int32_t)
  18457. lat : solved latitude [degE7] (type:int32_t)
  18458. msl : solved latitude [m] (type:float)
  18459. ve : solved east speed [m/s] (type:float)
  18460. vn : solved north speed [m/s] (type:float)
  18461. vu : solved up speed [m/s] (type:float)
  18462. yaw : yaw angle [deg] (type:float)
  18463. pitch : pitch angle [deg] (type:float)
  18464. roll : roll angle [deg] (type:float)
  18465. gx : roll angle [deg/s] (type:float)
  18466. gy : roll angle [deg/s] (type:float)
  18467. gz : roll angle [deg/s] (type:float)
  18468. ax : roll angle [m/s/s] (type:float)
  18469. ay : roll angle [m/s/s] (type:float)
  18470. az : roll angle [m/s/s] (type:float)
  18471. sat_lon : gps longitude [degE7] (type:int32_t)
  18472. sat_lat : gps latitude [degE7] (type:int32_t)
  18473. sat_msl : gps altitude [m] (type:float)
  18474. sat_ve : gps east speed [m/s] (type:float)
  18475. sat_vn : gps north speed [m/s] (type:float)
  18476. sat_vu : gps up speed [m/s] (type:float)
  18477. sat_pfix : gps position fix (type:uint8_t)
  18478. sat_hfix : gps heading fix (type:uint8_t)
  18479. wk_state : work state (type:uint8_t)
  18480. err_code : error code (type:uint8_t)
  18481. """
  18482. 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)
  18483. 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:
  18484. """
  18485. RTK basestaion pvt
  18486. timestamp : timestamp from system boot [ms] (type:uint32_t)
  18487. lon : solved longitude [degE7] (type:int32_t)
  18488. lat : solved latitude [degE7] (type:int32_t)
  18489. msl : solved latitude [m] (type:float)
  18490. ve : solved east speed [m/s] (type:float)
  18491. vn : solved north speed [m/s] (type:float)
  18492. vu : solved up speed [m/s] (type:float)
  18493. heading : yaw angle [deg] (type:float)
  18494. pitch : pitch angle [deg] (type:float)
  18495. p_sat_num : position satellite number (type:uint8_t)
  18496. h_sat_num : heading satellite number (type:uint8_t)
  18497. p_type : heading satellite number (type:uint8_t)
  18498. h_type : heading satellite number (type:uint8_t)
  18499. """
  18500. 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)
  18501. 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:
  18502. """
  18503. RTK basestaion pvt
  18504. timestamp : timestamp from system boot [ms] (type:uint32_t)
  18505. lon : solved longitude [degE7] (type:int32_t)
  18506. lat : solved latitude [degE7] (type:int32_t)
  18507. msl : solved latitude [m] (type:float)
  18508. ve : solved east speed [m/s] (type:float)
  18509. vn : solved north speed [m/s] (type:float)
  18510. vu : solved up speed [m/s] (type:float)
  18511. heading : yaw angle [deg] (type:float)
  18512. pitch : pitch angle [deg] (type:float)
  18513. p_sat_num : position satellite number (type:uint8_t)
  18514. h_sat_num : heading satellite number (type:uint8_t)
  18515. p_type : heading satellite number (type:uint8_t)
  18516. h_type : heading satellite number (type:uint8_t)
  18517. """
  18518. 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)
  18519. 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:
  18520. """
  18521. EDU status
  18522. unix_timestamp : Unix timestamp in ms, from 1 Jan 1970. [ms] (type:uint64_t)
  18523. boot_timestamp : Timestamp in ms from system boot. [ms] (type:uint32_t)
  18524. seq : Sequence number for this package. (type:uint32_t)
  18525. dev_sn : Device SN number. (type:uint32_t)
  18526. dev_type : 0 for flight controller. 1 for elec-stake (type:uint8_t)
  18527. retry_cnt : Retry send this message count. (type:uint8_t)
  18528. fix_type : 0 no fix, 1 single, 2 RTK (type:uint8_t)
  18529. reserve : (type:uint8_t)
  18530. longitude : wgs84 longitude [degE7] (type:int32_t)
  18531. latitude : wgs84 latitude [degE7] (type:int32_t)
  18532. amsl : altitude amsl [m] (type:float)
  18533. alt_relative : altitude above takeoff [m] (type:float)
  18534. ve : [cm/s] (type:int16_t)
  18535. vn : [cm/s] (type:int16_t)
  18536. vu : [cm/s] (type:int16_t)
  18537. yaw : [cdeg] (type:int16_t)
  18538. pitch : [cdeg] (type:int16_t)
  18539. roll : [cdeg] (type:int16_t)
  18540. yaw_rate : [cdeg/s] (type:int16_t)
  18541. flight_mode : (type:uint8_t)
  18542. """
  18543. 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)
  18544. 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:
  18545. """
  18546. EDU status
  18547. unix_timestamp : Unix timestamp in ms, from 1 Jan 1970. [ms] (type:uint64_t)
  18548. boot_timestamp : Timestamp in ms from system boot. [ms] (type:uint32_t)
  18549. seq : Sequence number for this package. (type:uint32_t)
  18550. dev_sn : Device SN number. (type:uint32_t)
  18551. dev_type : 0 for flight controller. 1 for elec-stake (type:uint8_t)
  18552. retry_cnt : Retry send this message count. (type:uint8_t)
  18553. fix_type : 0 no fix, 1 single, 2 RTK (type:uint8_t)
  18554. reserve : (type:uint8_t)
  18555. longitude : wgs84 longitude [degE7] (type:int32_t)
  18556. latitude : wgs84 latitude [degE7] (type:int32_t)
  18557. amsl : altitude amsl [m] (type:float)
  18558. alt_relative : altitude above takeoff [m] (type:float)
  18559. ve : [cm/s] (type:int16_t)
  18560. vn : [cm/s] (type:int16_t)
  18561. vu : [cm/s] (type:int16_t)
  18562. yaw : [cdeg] (type:int16_t)
  18563. pitch : [cdeg] (type:int16_t)
  18564. roll : [cdeg] (type:int16_t)
  18565. yaw_rate : [cdeg/s] (type:int16_t)
  18566. flight_mode : (type:uint8_t)
  18567. """
  18568. 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)
  18569. def vkfly_edu_status_ack_encode(self, unix_timestamp: int, seq: int) -> MAVLink_vkfly_edu_status_ack_message:
  18570. """
  18571. EDU status ack
  18572. unix_timestamp : Unix timestamp in ms, from 1 Jan 1970. [ms] (type:uint64_t)
  18573. seq : Sequence number in the received VKFLY_EDU_STATUS. (type:uint32_t)
  18574. """
  18575. return MAVLink_vkfly_edu_status_ack_message(unix_timestamp, seq)
  18576. def vkfly_edu_status_ack_send(self, unix_timestamp: int, seq: int, force_mavlink1: bool = False) -> None:
  18577. """
  18578. EDU status ack
  18579. unix_timestamp : Unix timestamp in ms, from 1 Jan 1970. [ms] (type:uint64_t)
  18580. seq : Sequence number in the received VKFLY_EDU_STATUS. (type:uint32_t)
  18581. """
  18582. self.send(self.vkfly_edu_status_ack_encode(unix_timestamp, seq), force_mavlink1=force_mavlink1)
  18583. def vkfly_tianqu_servo_status_encode(self, timestamp: int, load_status: int, servo_status: int) -> MAVLink_vkfly_tianqu_servo_status_message:
  18584. """
  18585. TianQu servo status
  18586. timestamp : (type:uint32_t)
  18587. load_status : (type:uint32_t)
  18588. servo_status : (type:uint32_t)
  18589. """
  18590. return MAVLink_vkfly_tianqu_servo_status_message(timestamp, load_status, servo_status)
  18591. def vkfly_tianqu_servo_status_send(self, timestamp: int, load_status: int, servo_status: int, force_mavlink1: bool = False) -> None:
  18592. """
  18593. TianQu servo status
  18594. timestamp : (type:uint32_t)
  18595. load_status : (type:uint32_t)
  18596. servo_status : (type:uint32_t)
  18597. """
  18598. self.send(self.vkfly_tianqu_servo_status_encode(timestamp, load_status, servo_status), force_mavlink1=force_mavlink1)
  18599. 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:
  18600. """
  18601. External ADC interpreted status.
  18602. time_boot_ms : Timestamp in ms from system boot. [ms] (type:uint32_t)
  18603. type : 0:disable, 1:voltage, 2:current, 3:fuel (type:uint8_t)
  18604. valid : 0:invalid, 1:valid (type:uint8_t)
  18605. raw_voltage : Calibrated ADC_EX voltage. [V] (type:float)
  18606. voltage_ratio : ADC_EXT_V_DIV ratio applied to raw_voltage. (type:float)
  18607. voltage : Voltage mode value. [V] (type:float)
  18608. current : Current mode value. [A] (type:float)
  18609. fuel_percent : Fuel mode value. [%] (type:float)
  18610. fuel_low1 : 0:normal, 1:below ADC_EXT_FUEL_LOW1 (type:uint8_t)
  18611. fuel_low2 : 0:normal, 1:below ADC_EXT_FUEL_LOW2 (type:uint8_t)
  18612. """
  18613. return MAVLink_vk_adc_ext_status_message(time_boot_ms, type, valid, raw_voltage, voltage_ratio, voltage, current, fuel_percent, fuel_low1, fuel_low2)
  18614. 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:
  18615. """
  18616. External ADC interpreted status.
  18617. time_boot_ms : Timestamp in ms from system boot. [ms] (type:uint32_t)
  18618. type : 0:disable, 1:voltage, 2:current, 3:fuel (type:uint8_t)
  18619. valid : 0:invalid, 1:valid (type:uint8_t)
  18620. raw_voltage : Calibrated ADC_EX voltage. [V] (type:float)
  18621. voltage_ratio : ADC_EXT_V_DIV ratio applied to raw_voltage. (type:float)
  18622. voltage : Voltage mode value. [V] (type:float)
  18623. current : Current mode value. [A] (type:float)
  18624. fuel_percent : Fuel mode value. [%] (type:float)
  18625. fuel_low1 : 0:normal, 1:below ADC_EXT_FUEL_LOW1 (type:uint8_t)
  18626. fuel_low2 : 0:normal, 1:below ADC_EXT_FUEL_LOW2 (type:uint8_t)
  18627. """
  18628. 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)
  18629. def vk_fw_update_begin_encode(self, target_system: int, target_comp: int, file_size: int) -> MAVLink_vk_fw_update_begin_message:
  18630. """
  18631. VKFLY autopilot update firmware begin. This message send from GCS to
  18632. autopilot.
  18633. target_system : Target system id. (type:uint8_t)
  18634. target_comp : Target compid id. (type:uint8_t)
  18635. file_size : Size of the firmware file in bytes. [bytes] (type:uint32_t)
  18636. """
  18637. return MAVLink_vk_fw_update_begin_message(target_system, target_comp, file_size)
  18638. def vk_fw_update_begin_send(self, target_system: int, target_comp: int, file_size: int, force_mavlink1: bool = False) -> None:
  18639. """
  18640. VKFLY autopilot update firmware begin. This message send from GCS to
  18641. autopilot.
  18642. target_system : Target system id. (type:uint8_t)
  18643. target_comp : Target compid id. (type:uint8_t)
  18644. file_size : Size of the firmware file in bytes. [bytes] (type:uint32_t)
  18645. """
  18646. self.send(self.vk_fw_update_begin_encode(target_system, target_comp, file_size), force_mavlink1=force_mavlink1)
  18647. def vk_fw_update_ack_encode(self, result: int) -> MAVLink_vk_fw_update_ack_message:
  18648. """
  18649. VKFLY udpate acknowledge.
  18650. result : Update begin ack. (type:uint8_t, values:MAV_RESULT)
  18651. """
  18652. return MAVLink_vk_fw_update_ack_message(result)
  18653. def vk_fw_update_ack_send(self, result: int, force_mavlink1: bool = False) -> None:
  18654. """
  18655. VKFLY udpate acknowledge.
  18656. result : Update begin ack. (type:uint8_t, values:MAV_RESULT)
  18657. """
  18658. self.send(self.vk_fw_update_ack_encode(result), force_mavlink1=force_mavlink1)
  18659. def vk_fw_update_data_request_encode(self, offset: int, count: int) -> MAVLink_vk_fw_update_data_request_message:
  18660. """
  18661. VKFLY autopilot request update file data from GCS.
  18662. offset : Offset into the update file. (type:uint32_t)
  18663. count : Number of bytes. (type:uint32_t)
  18664. """
  18665. return MAVLink_vk_fw_update_data_request_message(offset, count)
  18666. def vk_fw_update_data_request_send(self, offset: int, count: int, force_mavlink1: bool = False) -> None:
  18667. """
  18668. VKFLY autopilot request update file data from GCS.
  18669. offset : Offset into the update file. (type:uint32_t)
  18670. count : Number of bytes. (type:uint32_t)
  18671. """
  18672. self.send(self.vk_fw_update_data_request_encode(offset, count), force_mavlink1=force_mavlink1)
  18673. def vk_fw_update_data_encode(self, offset: int, count: int, data: Sequence[int]) -> MAVLink_vk_fw_update_data_message:
  18674. """
  18675. VKFLY transfer update file data.
  18676. offset : Offset into the update file. (type:uint32_t)
  18677. count : Number of bytes.
  18678. Zero for end of file. (type:uint8_t)
  18679. data : File data. (type:uint8_t)
  18680. """
  18681. return MAVLink_vk_fw_update_data_message(offset, count, data)
  18682. def vk_fw_update_data_send(self, offset: int, count: int, data: Sequence[int], force_mavlink1: bool = False) -> None:
  18683. """
  18684. VKFLY transfer update file data.
  18685. offset : Offset into the update file. (type:uint32_t)
  18686. count : Number of bytes.
  18687. Zero for end of file. (type:uint8_t)
  18688. data : File data. (type:uint8_t)
  18689. """
  18690. self.send(self.vk_fw_update_data_encode(offset, count, data), force_mavlink1=force_mavlink1)
  18691. def vk_update_terminate_encode(self, target_system: int, target_comp: int) -> MAVLink_vk_update_terminate_message:
  18692. """
  18693. VKFLY transfer update terminate. Send this message to terminate a
  18694. update file transfer.
  18695. target_system : Target system id. (type:uint8_t)
  18696. target_comp : Target compid id. (type:uint8_t)
  18697. """
  18698. return MAVLink_vk_update_terminate_message(target_system, target_comp)
  18699. def vk_update_terminate_send(self, target_system: int, target_comp: int, force_mavlink1: bool = False) -> None:
  18700. """
  18701. VKFLY transfer update terminate. Send this message to terminate a
  18702. update file transfer.
  18703. target_system : Target system id. (type:uint8_t)
  18704. target_comp : Target compid id. (type:uint8_t)
  18705. """
  18706. self.send(self.vk_update_terminate_encode(target_system, target_comp), force_mavlink1=force_mavlink1)
  18707. def vk_cacc_manager_verify_encode(self, len: int, json_data: Sequence[int]) -> MAVLink_vk_cacc_manager_verify_message:
  18708. """
  18709. CACC manager verify message, in json format.
  18710. len : json data length in byte. (type:uint8_t)
  18711. json_data : json data. (type:uint8_t)
  18712. """
  18713. return MAVLink_vk_cacc_manager_verify_message(len, json_data)
  18714. def vk_cacc_manager_verify_send(self, len: int, json_data: Sequence[int], force_mavlink1: bool = False) -> None:
  18715. """
  18716. CACC manager verify message, in json format.
  18717. len : json data length in byte. (type:uint8_t)
  18718. json_data : json data. (type:uint8_t)
  18719. """
  18720. self.send(self.vk_cacc_manager_verify_encode(len, json_data), force_mavlink1=force_mavlink1)
  18721. 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:
  18722. """
  18723. external vision fusion data
  18724. timestamp : timestamp from system boot [ms] (type:uint32_t)
  18725. pos_frd : position in vision frd frame [m] (type:float)
  18726. vel_frd : velocity in vision frd frame [m/s] (type:float)
  18727. Q_g : attitude quaternion by FRD_NED (type:float)
  18728. lat : latitidue (type:int32_t)
  18729. lon : longitude (type:int32_t)
  18730. alt_amsl : amsl latitidue (type:float)
  18731. hR : relative altitude (type:float)
  18732. vel_ned : velocity in NED frame [m/s] (type:float)
  18733. bias_acc : acceleration bias in body XYZ [m/s/s] (type:float)
  18734. bias_gyr : gyroscope bias in body XYZ [rad/s] (type:float)
  18735. cov_att : attitude covariance [rad] (type:float)
  18736. cov_pos : position covariance [m] (type:float)
  18737. cov_vel : [m/s] (type:float)
  18738. unhealthy : unhealthy flag (type:uint8_t)
  18739. flag : work status flag (type:uint8_t)
  18740. reset_cnt : reset count (type:uint8_t)
  18741. """
  18742. 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)
  18743. 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:
  18744. """
  18745. external vision fusion data
  18746. timestamp : timestamp from system boot [ms] (type:uint32_t)
  18747. pos_frd : position in vision frd frame [m] (type:float)
  18748. vel_frd : velocity in vision frd frame [m/s] (type:float)
  18749. Q_g : attitude quaternion by FRD_NED (type:float)
  18750. lat : latitidue (type:int32_t)
  18751. lon : longitude (type:int32_t)
  18752. alt_amsl : amsl latitidue (type:float)
  18753. hR : relative altitude (type:float)
  18754. vel_ned : velocity in NED frame [m/s] (type:float)
  18755. bias_acc : acceleration bias in body XYZ [m/s/s] (type:float)
  18756. bias_gyr : gyroscope bias in body XYZ [rad/s] (type:float)
  18757. cov_att : attitude covariance [rad] (type:float)
  18758. cov_pos : position covariance [m] (type:float)
  18759. cov_vel : [m/s] (type:float)
  18760. unhealthy : unhealthy flag (type:uint8_t)
  18761. flag : work status flag (type:uint8_t)
  18762. reset_cnt : reset count (type:uint8_t)
  18763. """
  18764. 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)
  18765. 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:
  18766. """
  18767. EV2 FMU backup status.
  18768. timestamp : timestamp from systemboot in ms. [ms] (type:uint32_t)
  18769. roll : euler roll angle. [rad] (type:float)
  18770. pitch : euler pitch angle. [rad] (type:float)
  18771. yaw : euler yaw angle. [rad] (type:float)
  18772. vn : velocity in northward axis. [m/s] (type:float)
  18773. ve : velocity in eastward axis. [m/s] (type:float)
  18774. vd : velocity in downward axis. [m/s] (type:float)
  18775. ax : acceleration in x axis. [m/s/s] (type:float)
  18776. ay : acceleration in y axis. [m/s/s] (type:float)
  18777. az : acceleration in z axis. [m/s/s] (type:float)
  18778. gx : angular velocity in x axis. [rad/s] (type:float)
  18779. gy : angular velocity in y axis. [rad/s] (type:float)
  18780. gz : angular velocity in z axis. [rad/s] (type:float)
  18781. lat : latitude. [degE7] (type:int32_t)
  18782. lon : longitude. [degE7] (type:int32_t)
  18783. amsl : altitude above mean sea level. [m] (type:float)
  18784. ins_status : (type:int32_t)
  18785. ins_flag : (type:int32_t)
  18786. throttle : throttle
  18787. output. (type:uint16_t)
  18788. flight_mode : flight mode. (type:uint8_t)
  18789. btake_status : backup
  18790. takeover
  18791. status. (type:uint8_t)
  18792. """
  18793. 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)
  18794. 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:
  18795. """
  18796. EV2 FMU backup status.
  18797. timestamp : timestamp from systemboot in ms. [ms] (type:uint32_t)
  18798. roll : euler roll angle. [rad] (type:float)
  18799. pitch : euler pitch angle. [rad] (type:float)
  18800. yaw : euler yaw angle. [rad] (type:float)
  18801. vn : velocity in northward axis. [m/s] (type:float)
  18802. ve : velocity in eastward axis. [m/s] (type:float)
  18803. vd : velocity in downward axis. [m/s] (type:float)
  18804. ax : acceleration in x axis. [m/s/s] (type:float)
  18805. ay : acceleration in y axis. [m/s/s] (type:float)
  18806. az : acceleration in z axis. [m/s/s] (type:float)
  18807. gx : angular velocity in x axis. [rad/s] (type:float)
  18808. gy : angular velocity in y axis. [rad/s] (type:float)
  18809. gz : angular velocity in z axis. [rad/s] (type:float)
  18810. lat : latitude. [degE7] (type:int32_t)
  18811. lon : longitude. [degE7] (type:int32_t)
  18812. amsl : altitude above mean sea level. [m] (type:float)
  18813. ins_status : (type:int32_t)
  18814. ins_flag : (type:int32_t)
  18815. throttle : throttle
  18816. output. (type:uint16_t)
  18817. flight_mode : flight mode. (type:uint8_t)
  18818. btake_status : backup
  18819. takeover
  18820. status. (type:uint8_t)
  18821. """
  18822. 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)
  18823. 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:
  18824. """
  18825. VKFLY transfer update terminate. Send this message to terminate a
  18826. update file transfer.
  18827. bat_voltage : Battery voltage. [cV] (type:uint16_t)
  18828. servo_current : Servo current. [cA] (type:uint16_t)
  18829. stack_voltage : Stack voltage. [cV] (type:uint16_t)
  18830. servo_voltage : Servo voltage. [cV] (type:uint16_t)
  18831. bat_refuel_current : Battery refuel current. [cA] (type:uint16_t)
  18832. gas_tank_pressure : Gas tank pressure. (type:uint16_t)
  18833. pipe_pressure : Pipe pressure. (type:uint16_t)
  18834. pcb_temp : PCB temperature. (type:uint16_t)
  18835. stack_temp : Stack temperature. (type:uint16_t)
  18836. work_status : (type:uint16_t)
  18837. falt_status : (type:uint16_t)
  18838. self_check : (type:uint8_t)
  18839. Id : (type:uint8_t)
  18840. gass_mass : [dg] (type:uint16_t)
  18841. gass_percent : [%] (type:uint16_t)
  18842. runtime_remain : (type:uint16_t)
  18843. fan_percent : (type:uint8_t)
  18844. fan_rpm : (type:uint8_t)
  18845. sys_run_state : (type:uint8_t)
  18846. sys_fault_state : (type:uint8_t)
  18847. sys_fault_code : (type:uint16_t)
  18848. lipo_current : [dA] (type:uint16_t)
  18849. total_runtime : [dh] (type:uint16_t)
  18850. """
  18851. 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)
  18852. 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:
  18853. """
  18854. VKFLY transfer update terminate. Send this message to terminate a
  18855. update file transfer.
  18856. bat_voltage : Battery voltage. [cV] (type:uint16_t)
  18857. servo_current : Servo current. [cA] (type:uint16_t)
  18858. stack_voltage : Stack voltage. [cV] (type:uint16_t)
  18859. servo_voltage : Servo voltage. [cV] (type:uint16_t)
  18860. bat_refuel_current : Battery refuel current. [cA] (type:uint16_t)
  18861. gas_tank_pressure : Gas tank pressure. (type:uint16_t)
  18862. pipe_pressure : Pipe pressure. (type:uint16_t)
  18863. pcb_temp : PCB temperature. (type:uint16_t)
  18864. stack_temp : Stack temperature. (type:uint16_t)
  18865. work_status : (type:uint16_t)
  18866. falt_status : (type:uint16_t)
  18867. self_check : (type:uint8_t)
  18868. Id : (type:uint8_t)
  18869. gass_mass : [dg] (type:uint16_t)
  18870. gass_percent : [%] (type:uint16_t)
  18871. runtime_remain : (type:uint16_t)
  18872. fan_percent : (type:uint8_t)
  18873. fan_rpm : (type:uint8_t)
  18874. sys_run_state : (type:uint8_t)
  18875. sys_fault_state : (type:uint8_t)
  18876. sys_fault_code : (type:uint16_t)
  18877. lipo_current : [dA] (type:uint16_t)
  18878. total_runtime : [dh] (type:uint16_t)
  18879. """
  18880. 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)
  18881. 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:
  18882. """
  18883. The general system state. If the system is following the MAVLink
  18884. standard, the system state is mainly defined by three
  18885. orthogonal states/modes: The system mode, which is either
  18886. LOCKED (motors shut down and locked), MANUAL (system under RC
  18887. control), GUIDED (system with autonomous position control,
  18888. position setpoint controlled manually) or AUTO (system guided
  18889. by path/waypoint planner). The NAV_MODE defined the current
  18890. flight state: LIFTOFF (often an open-loop maneuver), LANDING,
  18891. WAYPOINTS or VECTOR. This represents the internal navigation
  18892. state machine. The system status shows whether the system is
  18893. currently active or not and if an emergency occurred. During
  18894. the CRITICAL and EMERGENCY states the MAV is still considered
  18895. to be active, but should start emergency procedures
  18896. autonomously. After a failure occurred it should first move
  18897. from active to critical to allow manual intervention and then
  18898. move to emergency after a certain timeout.
  18899. 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)
  18900. 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)
  18901. 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)
  18902. load : Maximum usage in percent of the mainloop time. Values: [0-1000] - should always be below 1000 [d%] (type:uint16_t)
  18903. voltage_battery : Battery voltage, UINT16_MAX: Voltage not sent by autopilot [mV] (type:uint16_t)
  18904. current_battery : Battery current, -1: Current not sent by autopilot [cA] (type:int16_t)
  18905. battery_remaining : Battery energy remaining, -1: Battery remaining energy not sent by autopilot [%] (type:int8_t)
  18906. 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)
  18907. 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)
  18908. errors_count1 : Autopilot-specific errors (type:uint16_t)
  18909. errors_count2 : Autopilot-specific errors (type:uint16_t)
  18910. errors_count3 : Autopilot-specific errors (type:uint16_t)
  18911. errors_count4 : Autopilot-specific errors (type:uint16_t)
  18912. 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)
  18913. 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)
  18914. 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)
  18915. """
  18916. 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)
  18917. 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:
  18918. """
  18919. The general system state. If the system is following the MAVLink
  18920. standard, the system state is mainly defined by three
  18921. orthogonal states/modes: The system mode, which is either
  18922. LOCKED (motors shut down and locked), MANUAL (system under RC
  18923. control), GUIDED (system with autonomous position control,
  18924. position setpoint controlled manually) or AUTO (system guided
  18925. by path/waypoint planner). The NAV_MODE defined the current
  18926. flight state: LIFTOFF (often an open-loop maneuver), LANDING,
  18927. WAYPOINTS or VECTOR. This represents the internal navigation
  18928. state machine. The system status shows whether the system is
  18929. currently active or not and if an emergency occurred. During
  18930. the CRITICAL and EMERGENCY states the MAV is still considered
  18931. to be active, but should start emergency procedures
  18932. autonomously. After a failure occurred it should first move
  18933. from active to critical to allow manual intervention and then
  18934. move to emergency after a certain timeout.
  18935. 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)
  18936. 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)
  18937. 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)
  18938. load : Maximum usage in percent of the mainloop time. Values: [0-1000] - should always be below 1000 [d%] (type:uint16_t)
  18939. voltage_battery : Battery voltage, UINT16_MAX: Voltage not sent by autopilot [mV] (type:uint16_t)
  18940. current_battery : Battery current, -1: Current not sent by autopilot [cA] (type:int16_t)
  18941. battery_remaining : Battery energy remaining, -1: Battery remaining energy not sent by autopilot [%] (type:int8_t)
  18942. 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)
  18943. 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)
  18944. errors_count1 : Autopilot-specific errors (type:uint16_t)
  18945. errors_count2 : Autopilot-specific errors (type:uint16_t)
  18946. errors_count3 : Autopilot-specific errors (type:uint16_t)
  18947. errors_count4 : Autopilot-specific errors (type:uint16_t)
  18948. 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)
  18949. 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)
  18950. 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)
  18951. """
  18952. 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)
  18953. def system_time_encode(self, time_unix_usec: int, time_boot_ms: int) -> MAVLink_system_time_message:
  18954. """
  18955. The system time is the time of the master clock, typically the
  18956. computer clock of the main onboard computer.
  18957. time_unix_usec : Timestamp (UNIX epoch time). [us] (type:uint64_t)
  18958. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  18959. """
  18960. return MAVLink_system_time_message(time_unix_usec, time_boot_ms)
  18961. def system_time_send(self, time_unix_usec: int, time_boot_ms: int, force_mavlink1: bool = False) -> None:
  18962. """
  18963. The system time is the time of the master clock, typically the
  18964. computer clock of the main onboard computer.
  18965. time_unix_usec : Timestamp (UNIX epoch time). [us] (type:uint64_t)
  18966. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  18967. """
  18968. self.send(self.system_time_encode(time_unix_usec, time_boot_ms), force_mavlink1=force_mavlink1)
  18969. def ping_encode(self, time_usec: int, seq: int, target_system: int, target_component: int) -> MAVLink_ping_message:
  18970. """
  18971. A ping message either requesting or responding to a ping. This allows
  18972. to measure the system latencies, including serial port, radio
  18973. modem and UDP connections. The ping microservice is documented
  18974. at https://mavlink.io/en/services/ping.html
  18975. 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)
  18976. seq : PING sequence (type:uint32_t)
  18977. 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)
  18978. 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)
  18979. """
  18980. return MAVLink_ping_message(time_usec, seq, target_system, target_component)
  18981. def ping_send(self, time_usec: int, seq: int, target_system: int, target_component: int, force_mavlink1: bool = False) -> None:
  18982. """
  18983. A ping message either requesting or responding to a ping. This allows
  18984. to measure the system latencies, including serial port, radio
  18985. modem and UDP connections. The ping microservice is documented
  18986. at https://mavlink.io/en/services/ping.html
  18987. 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)
  18988. seq : PING sequence (type:uint32_t)
  18989. 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)
  18990. 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)
  18991. """
  18992. self.send(self.ping_encode(time_usec, seq, target_system, target_component), force_mavlink1=force_mavlink1)
  18993. def change_operator_control_encode(self, target_system: int, control_request: int, version: int, passkey: bytes) -> MAVLink_change_operator_control_message:
  18994. """
  18995. Request to control this MAV
  18996. target_system : System the GCS requests control for (type:uint8_t)
  18997. control_request : 0: request control of this MAV, 1: Release control of this MAV (type:uint8_t)
  18998. 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)
  18999. 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)
  19000. """
  19001. return MAVLink_change_operator_control_message(target_system, control_request, version, passkey)
  19002. def change_operator_control_send(self, target_system: int, control_request: int, version: int, passkey: bytes, force_mavlink1: bool = False) -> None:
  19003. """
  19004. Request to control this MAV
  19005. target_system : System the GCS requests control for (type:uint8_t)
  19006. control_request : 0: request control of this MAV, 1: Release control of this MAV (type:uint8_t)
  19007. 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)
  19008. 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)
  19009. """
  19010. self.send(self.change_operator_control_encode(target_system, control_request, version, passkey), force_mavlink1=force_mavlink1)
  19011. def change_operator_control_ack_encode(self, gcs_system_id: int, control_request: int, ack: int) -> MAVLink_change_operator_control_ack_message:
  19012. """
  19013. Accept / deny control of this MAV
  19014. gcs_system_id : ID of the GCS this message (type:uint8_t)
  19015. control_request : 0: request control of this MAV, 1: Release control of this MAV (type:uint8_t)
  19016. ack : 0: ACK, 1: NACK: Wrong passkey, 2: NACK: Unsupported passkey encryption method, 3: NACK: Already under control (type:uint8_t)
  19017. """
  19018. return MAVLink_change_operator_control_ack_message(gcs_system_id, control_request, ack)
  19019. def change_operator_control_ack_send(self, gcs_system_id: int, control_request: int, ack: int, force_mavlink1: bool = False) -> None:
  19020. """
  19021. Accept / deny control of this MAV
  19022. gcs_system_id : ID of the GCS this message (type:uint8_t)
  19023. control_request : 0: request control of this MAV, 1: Release control of this MAV (type:uint8_t)
  19024. ack : 0: ACK, 1: NACK: Wrong passkey, 2: NACK: Unsupported passkey encryption method, 3: NACK: Already under control (type:uint8_t)
  19025. """
  19026. self.send(self.change_operator_control_ack_encode(gcs_system_id, control_request, ack), force_mavlink1=force_mavlink1)
  19027. def auth_key_encode(self, key: bytes) -> MAVLink_auth_key_message:
  19028. """
  19029. Emit an encrypted signature / key identifying this system. PLEASE
  19030. NOTE: This protocol has been kept simple, so transmitting the
  19031. key requires an encrypted channel for true safety.
  19032. key : key (type:char)
  19033. """
  19034. return MAVLink_auth_key_message(key)
  19035. def auth_key_send(self, key: bytes, force_mavlink1: bool = False) -> None:
  19036. """
  19037. Emit an encrypted signature / key identifying this system. PLEASE
  19038. NOTE: This protocol has been kept simple, so transmitting the
  19039. key requires an encrypted channel for true safety.
  19040. key : key (type:char)
  19041. """
  19042. self.send(self.auth_key_encode(key), force_mavlink1=force_mavlink1)
  19043. 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:
  19044. """
  19045. Status generated in each node in the communication chain and injected
  19046. into MAVLink stream.
  19047. timestamp : Timestamp (time since system boot). [ms] (type:uint64_t)
  19048. tx_buf : Remaining free transmit buffer space [%] (type:uint8_t)
  19049. rx_buf : Remaining free receive buffer space [%] (type:uint8_t)
  19050. tx_rate : Transmit rate [bytes/s] (type:uint32_t)
  19051. rx_rate : Receive rate [bytes/s] (type:uint32_t)
  19052. rx_parse_err : Number of bytes that could not be parsed correctly. [bytes] (type:uint16_t)
  19053. tx_overflows : Transmit buffer overflows. This number wraps around as it reaches UINT16_MAX [bytes] (type:uint16_t)
  19054. rx_overflows : Receive buffer overflows. This number wraps around as it reaches UINT16_MAX [bytes] (type:uint16_t)
  19055. messages_sent : Messages sent (type:uint32_t)
  19056. messages_received : Messages received (estimated from counting seq) (type:uint32_t)
  19057. messages_lost : Messages lost (estimated from counting seq) (type:uint32_t)
  19058. """
  19059. 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)
  19060. 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:
  19061. """
  19062. Status generated in each node in the communication chain and injected
  19063. into MAVLink stream.
  19064. timestamp : Timestamp (time since system boot). [ms] (type:uint64_t)
  19065. tx_buf : Remaining free transmit buffer space [%] (type:uint8_t)
  19066. rx_buf : Remaining free receive buffer space [%] (type:uint8_t)
  19067. tx_rate : Transmit rate [bytes/s] (type:uint32_t)
  19068. rx_rate : Receive rate [bytes/s] (type:uint32_t)
  19069. rx_parse_err : Number of bytes that could not be parsed correctly. [bytes] (type:uint16_t)
  19070. tx_overflows : Transmit buffer overflows. This number wraps around as it reaches UINT16_MAX [bytes] (type:uint16_t)
  19071. rx_overflows : Receive buffer overflows. This number wraps around as it reaches UINT16_MAX [bytes] (type:uint16_t)
  19072. messages_sent : Messages sent (type:uint32_t)
  19073. messages_received : Messages received (estimated from counting seq) (type:uint32_t)
  19074. messages_lost : Messages lost (estimated from counting seq) (type:uint32_t)
  19075. """
  19076. 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)
  19077. def set_mode_encode(self, target_system: int, base_mode: int, custom_mode: int) -> MAVLink_set_mode_message:
  19078. """
  19079. Set the system mode, as defined by enum MAV_MODE. There is no target
  19080. component id as the mode is by definition for the overall
  19081. aircraft, not only for one component.
  19082. target_system : The system setting the mode (type:uint8_t)
  19083. base_mode : The new base mode. (type:uint8_t, values:MAV_MODE)
  19084. custom_mode : The new autopilot-specific mode. This field can be ignored by an autopilot. (type:uint32_t)
  19085. """
  19086. return MAVLink_set_mode_message(target_system, base_mode, custom_mode)
  19087. def set_mode_send(self, target_system: int, base_mode: int, custom_mode: int, force_mavlink1: bool = False) -> None:
  19088. """
  19089. Set the system mode, as defined by enum MAV_MODE. There is no target
  19090. component id as the mode is by definition for the overall
  19091. aircraft, not only for one component.
  19092. target_system : The system setting the mode (type:uint8_t)
  19093. base_mode : The new base mode. (type:uint8_t, values:MAV_MODE)
  19094. custom_mode : The new autopilot-specific mode. This field can be ignored by an autopilot. (type:uint32_t)
  19095. """
  19096. self.send(self.set_mode_encode(target_system, base_mode, custom_mode), force_mavlink1=force_mavlink1)
  19097. def param_request_read_encode(self, target_system: int, target_component: int, param_id: bytes, param_index: int) -> MAVLink_param_request_read_message:
  19098. """
  19099. Request to read the onboard parameter with the param_id string id.
  19100. Onboard parameters are stored as key[const char*] ->
  19101. value[float]. This allows to send a parameter to any other
  19102. component (such as the GCS) without the need of previous
  19103. knowledge of possible parameter names. Thus the same GCS can
  19104. store different parameters for different autopilots. See also
  19105. https://mavlink.io/en/services/parameter.html for a full
  19106. documentation of QGroundControl and IMU code.
  19107. target_system : System ID (type:uint8_t)
  19108. target_component : Component ID (type:uint8_t)
  19109. 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)
  19110. param_index : Parameter index. Send -1 to use the param ID field as identifier (else the param id will be ignored) (type:int16_t)
  19111. """
  19112. return MAVLink_param_request_read_message(target_system, target_component, param_id, param_index)
  19113. def param_request_read_send(self, target_system: int, target_component: int, param_id: bytes, param_index: int, force_mavlink1: bool = False) -> None:
  19114. """
  19115. Request to read the onboard parameter with the param_id string id.
  19116. Onboard parameters are stored as key[const char*] ->
  19117. value[float]. This allows to send a parameter to any other
  19118. component (such as the GCS) without the need of previous
  19119. knowledge of possible parameter names. Thus the same GCS can
  19120. store different parameters for different autopilots. See also
  19121. https://mavlink.io/en/services/parameter.html for a full
  19122. documentation of QGroundControl and IMU code.
  19123. target_system : System ID (type:uint8_t)
  19124. target_component : Component ID (type:uint8_t)
  19125. 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)
  19126. param_index : Parameter index. Send -1 to use the param ID field as identifier (else the param id will be ignored) (type:int16_t)
  19127. """
  19128. self.send(self.param_request_read_encode(target_system, target_component, param_id, param_index), force_mavlink1=force_mavlink1)
  19129. def param_request_list_encode(self, target_system: int, target_component: int) -> MAVLink_param_request_list_message:
  19130. """
  19131. Request all parameters of this component. After this request, all
  19132. parameters are emitted. The parameter microservice is
  19133. documented at https://mavlink.io/en/services/parameter.html
  19134. target_system : System ID (type:uint8_t)
  19135. target_component : Component ID (type:uint8_t)
  19136. """
  19137. return MAVLink_param_request_list_message(target_system, target_component)
  19138. def param_request_list_send(self, target_system: int, target_component: int, force_mavlink1: bool = False) -> None:
  19139. """
  19140. Request all parameters of this component. After this request, all
  19141. parameters are emitted. The parameter microservice is
  19142. documented at https://mavlink.io/en/services/parameter.html
  19143. target_system : System ID (type:uint8_t)
  19144. target_component : Component ID (type:uint8_t)
  19145. """
  19146. self.send(self.param_request_list_encode(target_system, target_component), force_mavlink1=force_mavlink1)
  19147. def param_value_encode(self, param_id: bytes, param_value: float, param_type: int, param_count: int, param_index: int) -> MAVLink_param_value_message:
  19148. """
  19149. Emit the value of a onboard parameter. The inclusion of param_count
  19150. and param_index in the message allows the recipient to keep
  19151. track of received parameters and allows him to re-request
  19152. missing parameters after a loss or timeout. The parameter
  19153. microservice is documented at
  19154. https://mavlink.io/en/services/parameter.html
  19155. 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)
  19156. param_value : Onboard parameter value (type:float)
  19157. param_type : Onboard parameter type. (type:uint8_t, values:MAV_PARAM_TYPE)
  19158. param_count : Total number of onboard parameters (type:uint16_t)
  19159. param_index : Index of this onboard parameter (type:uint16_t)
  19160. """
  19161. return MAVLink_param_value_message(param_id, param_value, param_type, param_count, param_index)
  19162. 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:
  19163. """
  19164. Emit the value of a onboard parameter. The inclusion of param_count
  19165. and param_index in the message allows the recipient to keep
  19166. track of received parameters and allows him to re-request
  19167. missing parameters after a loss or timeout. The parameter
  19168. microservice is documented at
  19169. https://mavlink.io/en/services/parameter.html
  19170. 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)
  19171. param_value : Onboard parameter value (type:float)
  19172. param_type : Onboard parameter type. (type:uint8_t, values:MAV_PARAM_TYPE)
  19173. param_count : Total number of onboard parameters (type:uint16_t)
  19174. param_index : Index of this onboard parameter (type:uint16_t)
  19175. """
  19176. self.send(self.param_value_encode(param_id, param_value, param_type, param_count, param_index), force_mavlink1=force_mavlink1)
  19177. def param_set_encode(self, target_system: int, target_component: int, param_id: bytes, param_value: float, param_type: int) -> MAVLink_param_set_message:
  19178. """
  19179. Set a parameter value (write new value to permanent storage).
  19180. The receiving component should acknowledge the new parameter
  19181. value by broadcasting a PARAM_VALUE message (broadcasting
  19182. ensures that multiple GCS all have an up-to-date list of all
  19183. parameters). If the sending GCS did not receive a PARAM_VALUE
  19184. within its timeout time, it should re-send the PARAM_SET
  19185. message. The parameter microservice is documented at
  19186. https://mavlink.io/en/services/parameter.html.
  19187. PARAM_SET may also be called within the context of a
  19188. transaction (started with MAV_CMD_PARAM_TRANSACTION). Within a
  19189. transaction the receiving component should respond with
  19190. PARAM_ACK_TRANSACTION to the setter component (instead of
  19191. broadcasting PARAM_VALUE), and PARAM_SET should be re-sent if
  19192. this is ACK not received.
  19193. target_system : System ID (type:uint8_t)
  19194. target_component : Component ID (type:uint8_t)
  19195. 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)
  19196. param_value : Onboard parameter value (type:float)
  19197. param_type : Onboard parameter type. (type:uint8_t, values:MAV_PARAM_TYPE)
  19198. """
  19199. return MAVLink_param_set_message(target_system, target_component, param_id, param_value, param_type)
  19200. 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:
  19201. """
  19202. Set a parameter value (write new value to permanent storage).
  19203. The receiving component should acknowledge the new parameter
  19204. value by broadcasting a PARAM_VALUE message (broadcasting
  19205. ensures that multiple GCS all have an up-to-date list of all
  19206. parameters). If the sending GCS did not receive a PARAM_VALUE
  19207. within its timeout time, it should re-send the PARAM_SET
  19208. message. The parameter microservice is documented at
  19209. https://mavlink.io/en/services/parameter.html.
  19210. PARAM_SET may also be called within the context of a
  19211. transaction (started with MAV_CMD_PARAM_TRANSACTION). Within a
  19212. transaction the receiving component should respond with
  19213. PARAM_ACK_TRANSACTION to the setter component (instead of
  19214. broadcasting PARAM_VALUE), and PARAM_SET should be re-sent if
  19215. this is ACK not received.
  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_value : Onboard parameter value (type:float)
  19220. param_type : Onboard parameter type. (type:uint8_t, values:MAV_PARAM_TYPE)
  19221. """
  19222. self.send(self.param_set_encode(target_system, target_component, param_id, param_value, param_type), force_mavlink1=force_mavlink1)
  19223. 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:
  19224. """
  19225. The global position, as returned by the Global Positioning System
  19226. (GPS). This is NOT the global position
  19227. estimate of the system, but rather a RAW sensor value. See
  19228. message GLOBAL_POSITION_INT for the global position estimate.
  19229. 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)
  19230. fix_type : GPS fix type. (type:uint8_t, values:GPS_FIX_TYPE)
  19231. lat : Latitude (WGS84, EGM96 ellipsoid) [degE7] (type:int32_t)
  19232. lon : Longitude (WGS84, EGM96 ellipsoid) [degE7] (type:int32_t)
  19233. 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)
  19234. eph : GPS HDOP horizontal dilution of position (unitless * 100). If unknown, set to: UINT16_MAX (type:uint16_t)
  19235. epv : GPS VDOP vertical dilution of position (unitless * 100). If unknown, set to: UINT16_MAX (type:uint16_t)
  19236. vel : GPS ground speed. If unknown, set to: UINT16_MAX [cm/s] (type:uint16_t)
  19237. 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)
  19238. satellites_visible : Number of satellites visible. If unknown, set to UINT8_MAX (type:uint8_t)
  19239. alt_ellipsoid : Altitude (above WGS84, EGM96 ellipsoid). Positive for up. [mm] (type:int32_t)
  19240. h_acc : Position uncertainty. [mm] (type:uint32_t)
  19241. v_acc : Altitude uncertainty. [mm] (type:uint32_t)
  19242. vel_acc : Speed uncertainty. [mm] (type:uint32_t)
  19243. hdg_acc : Heading / track uncertainty [degE5] (type:uint32_t)
  19244. 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)
  19245. """
  19246. 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)
  19247. 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:
  19248. """
  19249. The global position, as returned by the Global Positioning System
  19250. (GPS). This is NOT the global position
  19251. estimate of the system, but rather a RAW sensor value. See
  19252. message GLOBAL_POSITION_INT for the global position estimate.
  19253. 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)
  19254. fix_type : GPS fix type. (type:uint8_t, values:GPS_FIX_TYPE)
  19255. lat : Latitude (WGS84, EGM96 ellipsoid) [degE7] (type:int32_t)
  19256. lon : Longitude (WGS84, EGM96 ellipsoid) [degE7] (type:int32_t)
  19257. 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)
  19258. eph : GPS HDOP horizontal dilution of position (unitless * 100). If unknown, set to: UINT16_MAX (type:uint16_t)
  19259. epv : GPS VDOP vertical dilution of position (unitless * 100). If unknown, set to: UINT16_MAX (type:uint16_t)
  19260. vel : GPS ground speed. If unknown, set to: UINT16_MAX [cm/s] (type:uint16_t)
  19261. 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)
  19262. satellites_visible : Number of satellites visible. If unknown, set to UINT8_MAX (type:uint8_t)
  19263. alt_ellipsoid : Altitude (above WGS84, EGM96 ellipsoid). Positive for up. [mm] (type:int32_t)
  19264. h_acc : Position uncertainty. [mm] (type:uint32_t)
  19265. v_acc : Altitude uncertainty. [mm] (type:uint32_t)
  19266. vel_acc : Speed uncertainty. [mm] (type:uint32_t)
  19267. hdg_acc : Heading / track uncertainty [degE5] (type:uint32_t)
  19268. 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)
  19269. """
  19270. 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)
  19271. 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:
  19272. """
  19273. The positioning status, as reported by GPS. This message is intended
  19274. to display status information about each satellite visible to
  19275. the receiver. See message GLOBAL_POSITION_INT for the global
  19276. position estimate. This message can contain information for up
  19277. to 20 satellites.
  19278. satellites_visible : Number of satellites visible (type:uint8_t)
  19279. satellite_prn : Global satellite ID (type:uint8_t)
  19280. satellite_used : 0: Satellite not used, 1: used for localization (type:uint8_t)
  19281. satellite_elevation : Elevation (0: right on top of receiver, 90: on the horizon) of satellite [deg] (type:uint8_t)
  19282. satellite_azimuth : Direction of satellite, 0: 0 deg, 255: 360 deg. [deg] (type:uint8_t)
  19283. satellite_snr : Signal to noise ratio of satellite [dB] (type:uint8_t)
  19284. """
  19285. return MAVLink_gps_status_message(satellites_visible, satellite_prn, satellite_used, satellite_elevation, satellite_azimuth, satellite_snr)
  19286. 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:
  19287. """
  19288. The positioning status, as reported by GPS. This message is intended
  19289. to display status information about each satellite visible to
  19290. the receiver. See message GLOBAL_POSITION_INT for the global
  19291. position estimate. This message can contain information for up
  19292. to 20 satellites.
  19293. satellites_visible : Number of satellites visible (type:uint8_t)
  19294. satellite_prn : Global satellite ID (type:uint8_t)
  19295. satellite_used : 0: Satellite not used, 1: used for localization (type:uint8_t)
  19296. satellite_elevation : Elevation (0: right on top of receiver, 90: on the horizon) of satellite [deg] (type:uint8_t)
  19297. satellite_azimuth : Direction of satellite, 0: 0 deg, 255: 360 deg. [deg] (type:uint8_t)
  19298. satellite_snr : Signal to noise ratio of satellite [dB] (type:uint8_t)
  19299. """
  19300. self.send(self.gps_status_encode(satellites_visible, satellite_prn, satellite_used, satellite_elevation, satellite_azimuth, satellite_snr), force_mavlink1=force_mavlink1)
  19301. 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:
  19302. """
  19303. The RAW IMU readings for the usual 9DOF sensor setup. This message
  19304. should contain the scaled values to the described units
  19305. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19306. xacc : X acceleration [mG] (type:int16_t)
  19307. yacc : Y acceleration [mG] (type:int16_t)
  19308. zacc : Z acceleration [mG] (type:int16_t)
  19309. xgyro : Angular speed around X axis [mrad/s] (type:int16_t)
  19310. ygyro : Angular speed around Y axis [mrad/s] (type:int16_t)
  19311. zgyro : Angular speed around Z axis [mrad/s] (type:int16_t)
  19312. xmag : X Magnetic field [mgauss] (type:int16_t)
  19313. ymag : Y Magnetic field [mgauss] (type:int16_t)
  19314. zmag : Z Magnetic field [mgauss] (type:int16_t)
  19315. 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)
  19316. """
  19317. return MAVLink_scaled_imu_message(time_boot_ms, xacc, yacc, zacc, xgyro, ygyro, zgyro, xmag, ymag, zmag, temperature)
  19318. 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:
  19319. """
  19320. The RAW IMU readings for the usual 9DOF sensor setup. This message
  19321. should contain the scaled values to the described units
  19322. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19323. xacc : X acceleration [mG] (type:int16_t)
  19324. yacc : Y acceleration [mG] (type:int16_t)
  19325. zacc : Z acceleration [mG] (type:int16_t)
  19326. xgyro : Angular speed around X axis [mrad/s] (type:int16_t)
  19327. ygyro : Angular speed around Y axis [mrad/s] (type:int16_t)
  19328. zgyro : Angular speed around Z axis [mrad/s] (type:int16_t)
  19329. xmag : X Magnetic field [mgauss] (type:int16_t)
  19330. ymag : Y Magnetic field [mgauss] (type:int16_t)
  19331. zmag : Z Magnetic field [mgauss] (type:int16_t)
  19332. 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)
  19333. """
  19334. self.send(self.scaled_imu_encode(time_boot_ms, xacc, yacc, zacc, xgyro, ygyro, zgyro, xmag, ymag, zmag, temperature), force_mavlink1=force_mavlink1)
  19335. 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:
  19336. """
  19337. The RAW IMU readings for a 9DOF sensor, which is identified by the id
  19338. (default IMU1). This message should always contain the true
  19339. raw values without any scaling to allow data capture and
  19340. system debugging.
  19341. 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)
  19342. xacc : X acceleration (raw) (type:int16_t)
  19343. yacc : Y acceleration (raw) (type:int16_t)
  19344. zacc : Z acceleration (raw) (type:int16_t)
  19345. xgyro : Angular speed around X axis (raw) (type:int16_t)
  19346. ygyro : Angular speed around Y axis (raw) (type:int16_t)
  19347. zgyro : Angular speed around Z axis (raw) (type:int16_t)
  19348. xmag : X Magnetic field (raw) (type:int16_t)
  19349. ymag : Y Magnetic field (raw) (type:int16_t)
  19350. zmag : Z Magnetic field (raw) (type:int16_t)
  19351. 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)
  19352. 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)
  19353. """
  19354. return MAVLink_raw_imu_message(time_usec, xacc, yacc, zacc, xgyro, ygyro, zgyro, xmag, ymag, zmag, id, temperature)
  19355. 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:
  19356. """
  19357. The RAW IMU readings for a 9DOF sensor, which is identified by the id
  19358. (default IMU1). This message should always contain the true
  19359. raw values without any scaling to allow data capture and
  19360. system debugging.
  19361. 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)
  19362. xacc : X acceleration (raw) (type:int16_t)
  19363. yacc : Y acceleration (raw) (type:int16_t)
  19364. zacc : Z acceleration (raw) (type:int16_t)
  19365. xgyro : Angular speed around X axis (raw) (type:int16_t)
  19366. ygyro : Angular speed around Y axis (raw) (type:int16_t)
  19367. zgyro : Angular speed around Z axis (raw) (type:int16_t)
  19368. xmag : X Magnetic field (raw) (type:int16_t)
  19369. ymag : Y Magnetic field (raw) (type:int16_t)
  19370. zmag : Z Magnetic field (raw) (type:int16_t)
  19371. 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)
  19372. 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)
  19373. """
  19374. self.send(self.raw_imu_encode(time_usec, xacc, yacc, zacc, xgyro, ygyro, zgyro, xmag, ymag, zmag, id, temperature), force_mavlink1=force_mavlink1)
  19375. def raw_pressure_encode(self, time_usec: int, press_abs: int, press_diff1: int, press_diff2: int, temperature: int) -> MAVLink_raw_pressure_message:
  19376. """
  19377. The RAW pressure readings for the typical setup of one absolute
  19378. pressure and one differential pressure sensor. The sensor
  19379. values should be the raw, UNSCALED ADC values.
  19380. 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)
  19381. press_abs : Absolute pressure (raw) (type:int16_t)
  19382. press_diff1 : Differential pressure 1 (raw, 0 if nonexistent) (type:int16_t)
  19383. press_diff2 : Differential pressure 2 (raw, 0 if nonexistent) (type:int16_t)
  19384. temperature : Raw Temperature measurement (raw) (type:int16_t)
  19385. """
  19386. return MAVLink_raw_pressure_message(time_usec, press_abs, press_diff1, press_diff2, temperature)
  19387. def raw_pressure_send(self, time_usec: int, press_abs: int, press_diff1: int, press_diff2: int, temperature: int, force_mavlink1: bool = False) -> None:
  19388. """
  19389. The RAW pressure readings for the typical setup of one absolute
  19390. pressure and one differential pressure sensor. The sensor
  19391. values should be the raw, UNSCALED ADC values.
  19392. 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)
  19393. press_abs : Absolute pressure (raw) (type:int16_t)
  19394. press_diff1 : Differential pressure 1 (raw, 0 if nonexistent) (type:int16_t)
  19395. press_diff2 : Differential pressure 2 (raw, 0 if nonexistent) (type:int16_t)
  19396. temperature : Raw Temperature measurement (raw) (type:int16_t)
  19397. """
  19398. self.send(self.raw_pressure_encode(time_usec, press_abs, press_diff1, press_diff2, temperature), force_mavlink1=force_mavlink1)
  19399. 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:
  19400. """
  19401. The pressure readings for the typical setup of one absolute and
  19402. differential pressure sensor. The units are as specified in
  19403. each field.
  19404. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19405. press_abs : Absolute pressure [hPa] (type:float)
  19406. press_diff : Differential pressure 1 [hPa] (type:float)
  19407. temperature : Absolute pressure temperature [cdegC] (type:int16_t)
  19408. temperature_press_diff : Differential pressure temperature (0, if not available). Report values of 0 (or 1) as 1 cdegC. [cdegC] (type:int16_t)
  19409. """
  19410. return MAVLink_scaled_pressure_message(time_boot_ms, press_abs, press_diff, temperature, temperature_press_diff)
  19411. 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:
  19412. """
  19413. The pressure readings for the typical setup of one absolute and
  19414. differential pressure sensor. The units are as specified in
  19415. each field.
  19416. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19417. press_abs : Absolute pressure [hPa] (type:float)
  19418. press_diff : Differential pressure 1 [hPa] (type:float)
  19419. temperature : Absolute pressure temperature [cdegC] (type:int16_t)
  19420. temperature_press_diff : Differential pressure temperature (0, if not available). Report values of 0 (or 1) as 1 cdegC. [cdegC] (type:int16_t)
  19421. """
  19422. self.send(self.scaled_pressure_encode(time_boot_ms, press_abs, press_diff, temperature, temperature_press_diff), force_mavlink1=force_mavlink1)
  19423. def attitude_encode(self, time_boot_ms: int, roll: float, pitch: float, yaw: float, rollspeed: float, pitchspeed: float, yawspeed: float) -> MAVLink_attitude_message:
  19424. """
  19425. The attitude in the aeronautical frame (right-handed, Z-down, Y-right,
  19426. X-front, ZYX, intrinsic).
  19427. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19428. roll : Roll angle (-pi..+pi) [rad] (type:float)
  19429. pitch : Pitch angle (-pi..+pi) [rad] (type:float)
  19430. yaw : Yaw angle (-pi..+pi) [rad] (type:float)
  19431. rollspeed : Roll angular speed [rad/s] (type:float)
  19432. pitchspeed : Pitch angular speed [rad/s] (type:float)
  19433. yawspeed : Yaw angular speed [rad/s] (type:float)
  19434. """
  19435. return MAVLink_attitude_message(time_boot_ms, roll, pitch, yaw, rollspeed, pitchspeed, yawspeed)
  19436. 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:
  19437. """
  19438. The attitude in the aeronautical frame (right-handed, Z-down, Y-right,
  19439. X-front, ZYX, intrinsic).
  19440. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19441. roll : Roll angle (-pi..+pi) [rad] (type:float)
  19442. pitch : Pitch angle (-pi..+pi) [rad] (type:float)
  19443. yaw : Yaw angle (-pi..+pi) [rad] (type:float)
  19444. rollspeed : Roll angular speed [rad/s] (type:float)
  19445. pitchspeed : Pitch angular speed [rad/s] (type:float)
  19446. yawspeed : Yaw angular speed [rad/s] (type:float)
  19447. """
  19448. self.send(self.attitude_encode(time_boot_ms, roll, pitch, yaw, rollspeed, pitchspeed, yawspeed), force_mavlink1=force_mavlink1)
  19449. 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:
  19450. """
  19451. The attitude in the aeronautical frame (right-handed, Z-down, X-front,
  19452. Y-right), expressed as quaternion. Quaternion order is w, x,
  19453. y, z and a zero rotation would be expressed as (1 0 0 0).
  19454. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19455. q1 : Quaternion component 1, w (1 in null-rotation) (type:float)
  19456. q2 : Quaternion component 2, x (0 in null-rotation) (type:float)
  19457. q3 : Quaternion component 3, y (0 in null-rotation) (type:float)
  19458. q4 : Quaternion component 4, z (0 in null-rotation) (type:float)
  19459. rollspeed : Roll angular speed [rad/s] (type:float)
  19460. pitchspeed : Pitch angular speed [rad/s] (type:float)
  19461. yawspeed : Yaw angular speed [rad/s] (type:float)
  19462. 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)
  19463. """
  19464. return MAVLink_attitude_quaternion_message(time_boot_ms, q1, q2, q3, q4, rollspeed, pitchspeed, yawspeed, repr_offset_q)
  19465. 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:
  19466. """
  19467. The attitude in the aeronautical frame (right-handed, Z-down, X-front,
  19468. Y-right), expressed as quaternion. Quaternion order is w, x,
  19469. y, z and a zero rotation would be expressed as (1 0 0 0).
  19470. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19471. q1 : Quaternion component 1, w (1 in null-rotation) (type:float)
  19472. q2 : Quaternion component 2, x (0 in null-rotation) (type:float)
  19473. q3 : Quaternion component 3, y (0 in null-rotation) (type:float)
  19474. q4 : Quaternion component 4, z (0 in null-rotation) (type:float)
  19475. rollspeed : Roll angular speed [rad/s] (type:float)
  19476. pitchspeed : Pitch angular speed [rad/s] (type:float)
  19477. yawspeed : Yaw angular speed [rad/s] (type:float)
  19478. 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)
  19479. """
  19480. self.send(self.attitude_quaternion_encode(time_boot_ms, q1, q2, q3, q4, rollspeed, pitchspeed, yawspeed, repr_offset_q), force_mavlink1=force_mavlink1)
  19481. 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:
  19482. """
  19483. The filtered local position (e.g. fused computer vision and
  19484. accelerometers). Coordinate frame is right-handed, Z-axis down
  19485. (aeronautical frame, NED / north-east-down convention)
  19486. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19487. x : X Position [m] (type:float)
  19488. y : Y Position [m] (type:float)
  19489. z : Z Position [m] (type:float)
  19490. vx : X Speed [m/s] (type:float)
  19491. vy : Y Speed [m/s] (type:float)
  19492. vz : Z Speed [m/s] (type:float)
  19493. """
  19494. return MAVLink_local_position_ned_message(time_boot_ms, x, y, z, vx, vy, vz)
  19495. 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:
  19496. """
  19497. The filtered local position (e.g. fused computer vision and
  19498. accelerometers). Coordinate frame is right-handed, Z-axis down
  19499. (aeronautical frame, NED / north-east-down convention)
  19500. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19501. x : X Position [m] (type:float)
  19502. y : Y Position [m] (type:float)
  19503. z : Z Position [m] (type:float)
  19504. vx : X Speed [m/s] (type:float)
  19505. vy : Y Speed [m/s] (type:float)
  19506. vz : Z Speed [m/s] (type:float)
  19507. """
  19508. self.send(self.local_position_ned_encode(time_boot_ms, x, y, z, vx, vy, vz), force_mavlink1=force_mavlink1)
  19509. 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:
  19510. """
  19511. The filtered global position (e.g. fused GPS and accelerometers). The
  19512. position is in GPS-frame (right-handed, Z-up). It
  19513. is designed as scaled integer message since the resolution of
  19514. float is not sufficient.
  19515. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19516. lat : Latitude, expressed [degE7] (type:int32_t)
  19517. lon : Longitude, expressed [degE7] (type:int32_t)
  19518. alt : Altitude (MSL). Note that virtually all GPS modules provide both WGS84 and MSL. [mm] (type:int32_t)
  19519. relative_alt : Altitude above ground [mm] (type:int32_t)
  19520. vx : Ground X Speed (Latitude, positive north) [cm/s] (type:int16_t)
  19521. vy : Ground Y Speed (Longitude, positive east) [cm/s] (type:int16_t)
  19522. vz : Ground Z Speed (Altitude, positive down) [cm/s] (type:int16_t)
  19523. hdg : Vehicle heading (yaw angle), 0.0..359.99 degrees. If unknown, set to: UINT16_MAX [cdeg] (type:uint16_t)
  19524. """
  19525. return MAVLink_global_position_int_message(time_boot_ms, lat, lon, alt, relative_alt, vx, vy, vz, hdg)
  19526. 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:
  19527. """
  19528. The filtered global position (e.g. fused GPS and accelerometers). The
  19529. position is in GPS-frame (right-handed, Z-up). It
  19530. is designed as scaled integer message since the resolution of
  19531. float is not sufficient.
  19532. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19533. lat : Latitude, expressed [degE7] (type:int32_t)
  19534. lon : Longitude, expressed [degE7] (type:int32_t)
  19535. alt : Altitude (MSL). Note that virtually all GPS modules provide both WGS84 and MSL. [mm] (type:int32_t)
  19536. relative_alt : Altitude above ground [mm] (type:int32_t)
  19537. vx : Ground X Speed (Latitude, positive north) [cm/s] (type:int16_t)
  19538. vy : Ground Y Speed (Longitude, positive east) [cm/s] (type:int16_t)
  19539. vz : Ground Z Speed (Altitude, positive down) [cm/s] (type:int16_t)
  19540. hdg : Vehicle heading (yaw angle), 0.0..359.99 degrees. If unknown, set to: UINT16_MAX [cdeg] (type:uint16_t)
  19541. """
  19542. self.send(self.global_position_int_encode(time_boot_ms, lat, lon, alt, relative_alt, vx, vy, vz, hdg), force_mavlink1=force_mavlink1)
  19543. 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:
  19544. """
  19545. The scaled values of the RC channels received: (-100%) -10000, (0%) 0,
  19546. (100%) 10000. Channels that are inactive should be set to
  19547. INT16_MAX.
  19548. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19549. port : Servo output port (set of 8 outputs = 1 port). Flight stacks running on Pixhawk should use: 0 = MAIN, 1 = AUX. (type:uint8_t)
  19550. chan1_scaled : RC channel 1 value scaled. (type:int16_t)
  19551. chan2_scaled : RC channel 2 value scaled. (type:int16_t)
  19552. chan3_scaled : RC channel 3 value scaled. (type:int16_t)
  19553. chan4_scaled : RC channel 4 value scaled. (type:int16_t)
  19554. chan5_scaled : RC channel 5 value scaled. (type:int16_t)
  19555. chan6_scaled : RC channel 6 value scaled. (type:int16_t)
  19556. chan7_scaled : RC channel 7 value scaled. (type:int16_t)
  19557. chan8_scaled : RC channel 8 value scaled. (type:int16_t)
  19558. rssi : Receive signal strength indicator in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown. (type:uint8_t)
  19559. """
  19560. 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)
  19561. 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:
  19562. """
  19563. The scaled values of the RC channels received: (-100%) -10000, (0%) 0,
  19564. (100%) 10000. Channels that are inactive should be set to
  19565. INT16_MAX.
  19566. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19567. port : Servo output port (set of 8 outputs = 1 port). Flight stacks running on Pixhawk should use: 0 = MAIN, 1 = AUX. (type:uint8_t)
  19568. chan1_scaled : RC channel 1 value scaled. (type:int16_t)
  19569. chan2_scaled : RC channel 2 value scaled. (type:int16_t)
  19570. chan3_scaled : RC channel 3 value scaled. (type:int16_t)
  19571. chan4_scaled : RC channel 4 value scaled. (type:int16_t)
  19572. chan5_scaled : RC channel 5 value scaled. (type:int16_t)
  19573. chan6_scaled : RC channel 6 value scaled. (type:int16_t)
  19574. chan7_scaled : RC channel 7 value scaled. (type:int16_t)
  19575. chan8_scaled : RC channel 8 value scaled. (type:int16_t)
  19576. rssi : Receive signal strength indicator in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown. (type:uint8_t)
  19577. """
  19578. 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)
  19579. 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:
  19580. """
  19581. The RAW values of the RC channels received. The standard PPM
  19582. modulation is as follows: 1000 microseconds: 0%, 2000
  19583. microseconds: 100%. A value of UINT16_MAX implies the channel
  19584. is unused. Individual receivers/transmitters might violate
  19585. this specification.
  19586. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19587. port : Servo output port (set of 8 outputs = 1 port). Flight stacks running on Pixhawk should use: 0 = MAIN, 1 = AUX. (type:uint8_t)
  19588. chan1_raw : RC channel 1 value. [us] (type:uint16_t)
  19589. chan2_raw : RC channel 2 value. [us] (type:uint16_t)
  19590. chan3_raw : RC channel 3 value. [us] (type:uint16_t)
  19591. chan4_raw : RC channel 4 value. [us] (type:uint16_t)
  19592. chan5_raw : RC channel 5 value. [us] (type:uint16_t)
  19593. chan6_raw : RC channel 6 value. [us] (type:uint16_t)
  19594. chan7_raw : RC channel 7 value. [us] (type:uint16_t)
  19595. chan8_raw : RC channel 8 value. [us] (type:uint16_t)
  19596. rssi : Receive signal strength indicator in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown. (type:uint8_t)
  19597. """
  19598. 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)
  19599. 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:
  19600. """
  19601. The RAW values of the RC channels received. The standard PPM
  19602. modulation is as follows: 1000 microseconds: 0%, 2000
  19603. microseconds: 100%. A value of UINT16_MAX implies the channel
  19604. is unused. Individual receivers/transmitters might violate
  19605. this specification.
  19606. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  19607. port : Servo output port (set of 8 outputs = 1 port). Flight stacks running on Pixhawk should use: 0 = MAIN, 1 = AUX. (type:uint8_t)
  19608. chan1_raw : RC channel 1 value. [us] (type:uint16_t)
  19609. chan2_raw : RC channel 2 value. [us] (type:uint16_t)
  19610. chan3_raw : RC channel 3 value. [us] (type:uint16_t)
  19611. chan4_raw : RC channel 4 value. [us] (type:uint16_t)
  19612. chan5_raw : RC channel 5 value. [us] (type:uint16_t)
  19613. chan6_raw : RC channel 6 value. [us] (type:uint16_t)
  19614. chan7_raw : RC channel 7 value. [us] (type:uint16_t)
  19615. chan8_raw : RC channel 8 value. [us] (type:uint16_t)
  19616. rssi : Receive signal strength indicator in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown. (type:uint8_t)
  19617. """
  19618. 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)
  19619. 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:
  19620. """
  19621. Superseded by ACTUATOR_OUTPUT_STATUS. The RAW values of the servo
  19622. outputs (for RC input from the remote, use the RC_CHANNELS
  19623. messages). The standard PPM modulation is as follows: 1000
  19624. microseconds: 0%, 2000 microseconds: 100%.
  19625. 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)
  19626. port : Servo output port (set of 8 outputs = 1 port). Flight stacks running on Pixhawk should use: 0 = MAIN, 1 = AUX. (type:uint8_t)
  19627. servo1_raw : Servo output 1 value [us] (type:uint16_t)
  19628. servo2_raw : Servo output 2 value [us] (type:uint16_t)
  19629. servo3_raw : Servo output 3 value [us] (type:uint16_t)
  19630. servo4_raw : Servo output 4 value [us] (type:uint16_t)
  19631. servo5_raw : Servo output 5 value [us] (type:uint16_t)
  19632. servo6_raw : Servo output 6 value [us] (type:uint16_t)
  19633. servo7_raw : Servo output 7 value [us] (type:uint16_t)
  19634. servo8_raw : Servo output 8 value [us] (type:uint16_t)
  19635. servo9_raw : Servo output 9 value [us] (type:uint16_t)
  19636. servo10_raw : Servo output 10 value [us] (type:uint16_t)
  19637. servo11_raw : Servo output 11 value [us] (type:uint16_t)
  19638. servo12_raw : Servo output 12 value [us] (type:uint16_t)
  19639. servo13_raw : Servo output 13 value [us] (type:uint16_t)
  19640. servo14_raw : Servo output 14 value [us] (type:uint16_t)
  19641. servo15_raw : Servo output 15 value [us] (type:uint16_t)
  19642. servo16_raw : Servo output 16 value [us] (type:uint16_t)
  19643. """
  19644. 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)
  19645. 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:
  19646. """
  19647. Superseded by ACTUATOR_OUTPUT_STATUS. The RAW values of the servo
  19648. outputs (for RC input from the remote, use the RC_CHANNELS
  19649. messages). The standard PPM modulation is as follows: 1000
  19650. microseconds: 0%, 2000 microseconds: 100%.
  19651. 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)
  19652. port : Servo output port (set of 8 outputs = 1 port). Flight stacks running on Pixhawk should use: 0 = MAIN, 1 = AUX. (type:uint8_t)
  19653. servo1_raw : Servo output 1 value [us] (type:uint16_t)
  19654. servo2_raw : Servo output 2 value [us] (type:uint16_t)
  19655. servo3_raw : Servo output 3 value [us] (type:uint16_t)
  19656. servo4_raw : Servo output 4 value [us] (type:uint16_t)
  19657. servo5_raw : Servo output 5 value [us] (type:uint16_t)
  19658. servo6_raw : Servo output 6 value [us] (type:uint16_t)
  19659. servo7_raw : Servo output 7 value [us] (type:uint16_t)
  19660. servo8_raw : Servo output 8 value [us] (type:uint16_t)
  19661. servo9_raw : Servo output 9 value [us] (type:uint16_t)
  19662. servo10_raw : Servo output 10 value [us] (type:uint16_t)
  19663. servo11_raw : Servo output 11 value [us] (type:uint16_t)
  19664. servo12_raw : Servo output 12 value [us] (type:uint16_t)
  19665. servo13_raw : Servo output 13 value [us] (type:uint16_t)
  19666. servo14_raw : Servo output 14 value [us] (type:uint16_t)
  19667. servo15_raw : Servo output 15 value [us] (type:uint16_t)
  19668. servo16_raw : Servo output 16 value [us] (type:uint16_t)
  19669. """
  19670. 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)
  19671. 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:
  19672. """
  19673. Request a partial list of mission items from the system/component.
  19674. https://mavlink.io/en/services/mission.html. If start and end
  19675. index are the same, just send one waypoint.
  19676. target_system : System ID (type:uint8_t)
  19677. target_component : Component ID (type:uint8_t)
  19678. start_index : Start index (type:int16_t)
  19679. end_index : End index, -1 by default (-1: send list to end). Else a valid index of the list (type:int16_t)
  19680. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  19681. """
  19682. return MAVLink_mission_request_partial_list_message(target_system, target_component, start_index, end_index, mission_type)
  19683. 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:
  19684. """
  19685. Request a partial list of mission items from the system/component.
  19686. https://mavlink.io/en/services/mission.html. If start and end
  19687. index are the same, just send one waypoint.
  19688. target_system : System ID (type:uint8_t)
  19689. target_component : Component ID (type:uint8_t)
  19690. start_index : Start index (type:int16_t)
  19691. end_index : End index, -1 by default (-1: send list to end). Else a valid index of the list (type:int16_t)
  19692. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  19693. """
  19694. self.send(self.mission_request_partial_list_encode(target_system, target_component, start_index, end_index, mission_type), force_mavlink1=force_mavlink1)
  19695. 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:
  19696. """
  19697. This message is sent to the MAV to write a partial list. If start
  19698. index == end index, only one item will be transmitted /
  19699. updated. If the start index is NOT 0 and above the current
  19700. list size, this request should be REJECTED!
  19701. target_system : System ID (type:uint8_t)
  19702. target_component : Component ID (type:uint8_t)
  19703. start_index : Start index. Must be smaller / equal to the largest index of the current onboard list. (type:int16_t)
  19704. end_index : End index, equal or greater than start index. (type:int16_t)
  19705. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  19706. """
  19707. return MAVLink_mission_write_partial_list_message(target_system, target_component, start_index, end_index, mission_type)
  19708. 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:
  19709. """
  19710. This message is sent to the MAV to write a partial list. If start
  19711. index == end index, only one item will be transmitted /
  19712. updated. If the start index is NOT 0 and above the current
  19713. list size, this request should be REJECTED!
  19714. target_system : System ID (type:uint8_t)
  19715. target_component : Component ID (type:uint8_t)
  19716. start_index : Start index. Must be smaller / equal to the largest index of the current onboard list. (type:int16_t)
  19717. end_index : End index, equal or greater than start index. (type:int16_t)
  19718. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  19719. """
  19720. self.send(self.mission_write_partial_list_encode(target_system, target_component, start_index, end_index, mission_type), force_mavlink1=force_mavlink1)
  19721. 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:
  19722. """
  19723. Message encoding a mission item. This message is emitted to announce
  19724. the presence of a mission item and to set a mission item on
  19725. the system. The mission item can be either in x, y, z meters
  19726. (type: LOCAL) or x:lat, y:lon, z:altitude. Local frame is
  19727. Z-down, right handed (NED), global frame is Z-up, right handed
  19728. (ENU). NaN may be used to indicate an optional/default value
  19729. (e.g. to use the system's current latitude or yaw rather than
  19730. a specific value). See also
  19731. https://mavlink.io/en/services/mission.html.
  19732. target_system : System ID (type:uint8_t)
  19733. target_component : Component ID (type:uint8_t)
  19734. seq : Sequence (type:uint16_t)
  19735. frame : The coordinate system of the waypoint. (type:uint8_t, values:MAV_FRAME)
  19736. command : The scheduled action for the waypoint. (type:uint16_t, values:MAV_CMD)
  19737. current : false:0, true:1 (type:uint8_t)
  19738. autocontinue : Autocontinue to next waypoint. 0: false, 1: true. Set false to pause mission after the item completes. (type:uint8_t)
  19739. param1 : PARAM1, see MAV_CMD enum (type:float)
  19740. param2 : PARAM2, see MAV_CMD enum (type:float)
  19741. param3 : PARAM3, see MAV_CMD enum (type:float)
  19742. param4 : PARAM4, see MAV_CMD enum (type:float)
  19743. x : PARAM5 / local: X coordinate, global: latitude (type:float)
  19744. y : PARAM6 / local: Y coordinate, global: longitude (type:float)
  19745. z : PARAM7 / local: Z coordinate, global: altitude (relative or absolute, depending on frame). (type:float)
  19746. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  19747. """
  19748. return MAVLink_mission_item_message(target_system, target_component, seq, frame, command, current, autocontinue, param1, param2, param3, param4, x, y, z, mission_type)
  19749. 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:
  19750. """
  19751. Message encoding a mission item. This message is emitted to announce
  19752. the presence of a mission item and to set a mission item on
  19753. the system. The mission item can be either in x, y, z meters
  19754. (type: LOCAL) or x:lat, y:lon, z:altitude. Local frame is
  19755. Z-down, right handed (NED), global frame is Z-up, right handed
  19756. (ENU). NaN may be used to indicate an optional/default value
  19757. (e.g. to use the system's current latitude or yaw rather than
  19758. a specific value). See also
  19759. https://mavlink.io/en/services/mission.html.
  19760. target_system : System ID (type:uint8_t)
  19761. target_component : Component ID (type:uint8_t)
  19762. seq : Sequence (type:uint16_t)
  19763. frame : The coordinate system of the waypoint. (type:uint8_t, values:MAV_FRAME)
  19764. command : The scheduled action for the waypoint. (type:uint16_t, values:MAV_CMD)
  19765. current : false:0, true:1 (type:uint8_t)
  19766. autocontinue : Autocontinue to next waypoint. 0: false, 1: true. Set false to pause mission after the item completes. (type:uint8_t)
  19767. param1 : PARAM1, see MAV_CMD enum (type:float)
  19768. param2 : PARAM2, see MAV_CMD enum (type:float)
  19769. param3 : PARAM3, see MAV_CMD enum (type:float)
  19770. param4 : PARAM4, see MAV_CMD enum (type:float)
  19771. x : PARAM5 / local: X coordinate, global: latitude (type:float)
  19772. y : PARAM6 / local: Y coordinate, global: longitude (type:float)
  19773. z : PARAM7 / local: Z coordinate, global: altitude (relative or absolute, depending on frame). (type:float)
  19774. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  19775. """
  19776. 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)
  19777. def mission_request_encode(self, target_system: int, target_component: int, seq: int, mission_type: int = 0) -> MAVLink_mission_request_message:
  19778. """
  19779. Request the information of the mission item with the sequence number
  19780. seq. The response of the system to this message should be a
  19781. MISSION_ITEM message.
  19782. https://mavlink.io/en/services/mission.html
  19783. target_system : System ID (type:uint8_t)
  19784. target_component : Component ID (type:uint8_t)
  19785. seq : Sequence (type:uint16_t)
  19786. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  19787. """
  19788. return MAVLink_mission_request_message(target_system, target_component, seq, mission_type)
  19789. def mission_request_send(self, target_system: int, target_component: int, seq: int, mission_type: int = 0, force_mavlink1: bool = False) -> None:
  19790. """
  19791. Request the information of the mission item with the sequence number
  19792. seq. The response of the system to this message should be a
  19793. MISSION_ITEM message.
  19794. https://mavlink.io/en/services/mission.html
  19795. target_system : System ID (type:uint8_t)
  19796. target_component : Component ID (type:uint8_t)
  19797. seq : Sequence (type:uint16_t)
  19798. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  19799. """
  19800. self.send(self.mission_request_encode(target_system, target_component, seq, mission_type), force_mavlink1=force_mavlink1)
  19801. def mission_set_current_encode(self, target_system: int, target_component: int, seq: int) -> MAVLink_mission_set_current_message:
  19802. """
  19803. Set the mission item with sequence number seq as the current item and
  19804. emit MISSION_CURRENT (whether or not the mission number
  19805. changed). If a mission is currently being executed,
  19806. the system will continue to this new mission item on the
  19807. shortest path, skipping any intermediate mission items.
  19808. Note that mission jump repeat counters are not reset (see
  19809. MAV_CMD_DO_JUMP param2). This message may trigger a
  19810. mission state-machine change on some systems: for example from
  19811. MISSION_STATE_NOT_STARTED or MISSION_STATE_PAUSED to
  19812. MISSION_STATE_ACTIVE. If the system is in mission
  19813. mode, on those systems this command might therefore start,
  19814. restart or resume the mission. If the system is not in
  19815. mission mode this message must not trigger a switch to mission
  19816. mode.
  19817. target_system : System ID (type:uint8_t)
  19818. target_component : Component ID (type:uint8_t)
  19819. seq : Sequence (type:uint16_t)
  19820. """
  19821. return MAVLink_mission_set_current_message(target_system, target_component, seq)
  19822. def mission_set_current_send(self, target_system: int, target_component: int, seq: int, force_mavlink1: bool = False) -> None:
  19823. """
  19824. Set the mission item with sequence number seq as the current item and
  19825. emit MISSION_CURRENT (whether or not the mission number
  19826. changed). If a mission is currently being executed,
  19827. the system will continue to this new mission item on the
  19828. shortest path, skipping any intermediate mission items.
  19829. Note that mission jump repeat counters are not reset (see
  19830. MAV_CMD_DO_JUMP param2). This message may trigger a
  19831. mission state-machine change on some systems: for example from
  19832. MISSION_STATE_NOT_STARTED or MISSION_STATE_PAUSED to
  19833. MISSION_STATE_ACTIVE. If the system is in mission
  19834. mode, on those systems this command might therefore start,
  19835. restart or resume the mission. If the system is not in
  19836. mission mode this message must not trigger a switch to mission
  19837. mode.
  19838. target_system : System ID (type:uint8_t)
  19839. target_component : Component ID (type:uint8_t)
  19840. seq : Sequence (type:uint16_t)
  19841. """
  19842. self.send(self.mission_set_current_encode(target_system, target_component, seq), force_mavlink1=force_mavlink1)
  19843. 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:
  19844. """
  19845. Message that announces the sequence number of the current target
  19846. mission item (that the system will fly towards/execute when
  19847. the mission is running). This message should be
  19848. streamed all the time (nominally at 1Hz). This message
  19849. should be emitted following a call to
  19850. MAV_CMD_DO_SET_MISSION_CURRENT or SET_MISSION_CURRENT.
  19851. seq : Sequence (type:uint16_t)
  19852. 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)
  19853. mission_state : Mission state machine state. MISSION_STATE_UNKNOWN if state reporting not supported. (type:uint8_t, values:MISSION_STATE)
  19854. 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)
  19855. 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)
  19856. 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)
  19857. 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)
  19858. """
  19859. return MAVLink_mission_current_message(seq, total, mission_state, mission_mode, mission_id, fence_id, rally_points_id)
  19860. 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:
  19861. """
  19862. Message that announces the sequence number of the current target
  19863. mission item (that the system will fly towards/execute when
  19864. the mission is running). This message should be
  19865. streamed all the time (nominally at 1Hz). This message
  19866. should be emitted following a call to
  19867. MAV_CMD_DO_SET_MISSION_CURRENT or SET_MISSION_CURRENT.
  19868. seq : Sequence (type:uint16_t)
  19869. 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)
  19870. mission_state : Mission state machine state. MISSION_STATE_UNKNOWN if state reporting not supported. (type:uint8_t, values:MISSION_STATE)
  19871. 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)
  19872. 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)
  19873. 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)
  19874. 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)
  19875. """
  19876. self.send(self.mission_current_encode(seq, total, mission_state, mission_mode, mission_id, fence_id, rally_points_id), force_mavlink1=force_mavlink1)
  19877. def mission_request_list_encode(self, target_system: int, target_component: int, mission_type: int = 0) -> MAVLink_mission_request_list_message:
  19878. """
  19879. Request the overall list of mission items from the system/component.
  19880. target_system : System ID (type:uint8_t)
  19881. target_component : Component ID (type:uint8_t)
  19882. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  19883. """
  19884. return MAVLink_mission_request_list_message(target_system, target_component, mission_type)
  19885. def mission_request_list_send(self, target_system: int, target_component: int, mission_type: int = 0, force_mavlink1: bool = False) -> None:
  19886. """
  19887. Request the overall list of mission items from the system/component.
  19888. target_system : System ID (type:uint8_t)
  19889. target_component : Component ID (type:uint8_t)
  19890. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  19891. """
  19892. self.send(self.mission_request_list_encode(target_system, target_component, mission_type), force_mavlink1=force_mavlink1)
  19893. 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:
  19894. """
  19895. This message is emitted as response to MISSION_REQUEST_LIST by the MAV
  19896. and to initiate a write transaction. The GCS can then request
  19897. the individual mission item based on the knowledge of the
  19898. total number of waypoints.
  19899. target_system : System ID (type:uint8_t)
  19900. target_component : Component ID (type:uint8_t)
  19901. count : Number of mission items in the sequence (type:uint16_t)
  19902. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  19903. opaque_id : Id of current on-vehicle mission, fence, or rally point plan (on download from vehicle).
  19904. This field is used when downloading a plan from a vehicle to a GCS.
  19905. 0 on upload to the vehicle from GCS.
  19906. 0 if plan ids are not supported.
  19907. 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.
  19908. 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)
  19909. """
  19910. return MAVLink_mission_count_message(target_system, target_component, count, mission_type, opaque_id)
  19911. 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:
  19912. """
  19913. This message is emitted as response to MISSION_REQUEST_LIST by the MAV
  19914. and to initiate a write transaction. The GCS can then request
  19915. the individual mission item based on the knowledge of the
  19916. total number of waypoints.
  19917. target_system : System ID (type:uint8_t)
  19918. target_component : Component ID (type:uint8_t)
  19919. count : Number of mission items in the sequence (type:uint16_t)
  19920. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  19921. opaque_id : Id of current on-vehicle mission, fence, or rally point plan (on download from vehicle).
  19922. This field is used when downloading a plan from a vehicle to a GCS.
  19923. 0 on upload to the vehicle from GCS.
  19924. 0 if plan ids are not supported.
  19925. 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.
  19926. 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)
  19927. """
  19928. self.send(self.mission_count_encode(target_system, target_component, count, mission_type, opaque_id), force_mavlink1=force_mavlink1)
  19929. def mission_clear_all_encode(self, target_system: int, target_component: int, mission_type: int = 0) -> MAVLink_mission_clear_all_message:
  19930. """
  19931. Delete all mission items at once.
  19932. target_system : System ID (type:uint8_t)
  19933. target_component : Component ID (type:uint8_t)
  19934. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  19935. """
  19936. return MAVLink_mission_clear_all_message(target_system, target_component, mission_type)
  19937. def mission_clear_all_send(self, target_system: int, target_component: int, mission_type: int = 0, force_mavlink1: bool = False) -> None:
  19938. """
  19939. Delete all mission items at once.
  19940. target_system : System ID (type:uint8_t)
  19941. target_component : Component ID (type:uint8_t)
  19942. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  19943. """
  19944. self.send(self.mission_clear_all_encode(target_system, target_component, mission_type), force_mavlink1=force_mavlink1)
  19945. def mission_item_reached_encode(self, seq: int) -> MAVLink_mission_item_reached_message:
  19946. """
  19947. A certain mission item has been reached. The system will either hold
  19948. this position (or circle on the orbit) or (if the autocontinue
  19949. on the WP was set) continue to the next waypoint.
  19950. seq : Sequence (type:uint16_t)
  19951. """
  19952. return MAVLink_mission_item_reached_message(seq)
  19953. def mission_item_reached_send(self, seq: int, force_mavlink1: bool = False) -> None:
  19954. """
  19955. A certain mission item has been reached. The system will either hold
  19956. this position (or circle on the orbit) or (if the autocontinue
  19957. on the WP was set) continue to the next waypoint.
  19958. seq : Sequence (type:uint16_t)
  19959. """
  19960. self.send(self.mission_item_reached_encode(seq), force_mavlink1=force_mavlink1)
  19961. 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:
  19962. """
  19963. Acknowledgment message during waypoint handling. The type field states
  19964. if this message is a positive ack (type=0) or if an error
  19965. happened (type=non-zero).
  19966. target_system : System ID (type:uint8_t)
  19967. target_component : Component ID (type:uint8_t)
  19968. type : Mission result. (type:uint8_t, values:MAV_MISSION_RESULT)
  19969. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  19970. opaque_id : Id of new on-vehicle mission, fence, or rally point plan (on upload to vehicle).
  19971. The id is calculated and returned by a vehicle when a new plan is uploaded by a GCS.
  19972. 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).
  19973. 0 on download from the vehicle to the GCS (on download the ID is set in MISSION_COUNT).
  19974. 0 if plan ids are not supported.
  19975. 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)
  19976. """
  19977. return MAVLink_mission_ack_message(target_system, target_component, type, mission_type, opaque_id)
  19978. 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:
  19979. """
  19980. Acknowledgment message during waypoint handling. The type field states
  19981. if this message is a positive ack (type=0) or if an error
  19982. happened (type=non-zero).
  19983. target_system : System ID (type:uint8_t)
  19984. target_component : Component ID (type:uint8_t)
  19985. type : Mission result. (type:uint8_t, values:MAV_MISSION_RESULT)
  19986. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  19987. opaque_id : Id of new on-vehicle mission, fence, or rally point plan (on upload to vehicle).
  19988. The id is calculated and returned by a vehicle when a new plan is uploaded by a GCS.
  19989. 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).
  19990. 0 on download from the vehicle to the GCS (on download the ID is set in MISSION_COUNT).
  19991. 0 if plan ids are not supported.
  19992. 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)
  19993. """
  19994. self.send(self.mission_ack_encode(target_system, target_component, type, mission_type, opaque_id), force_mavlink1=force_mavlink1)
  19995. 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:
  19996. """
  19997. Sets the GPS coordinates of the vehicle local origin (0,0,0) position.
  19998. Vehicle should emit GPS_GLOBAL_ORIGIN irrespective of whether
  19999. the origin is changed. This enables transform between the
  20000. local coordinate frame and the global (GPS) coordinate frame,
  20001. which may be necessary when (for example) indoor and outdoor
  20002. settings are connected and the MAV should move from in- to
  20003. outdoor.
  20004. target_system : System ID (type:uint8_t)
  20005. latitude : Latitude (WGS84) [degE7] (type:int32_t)
  20006. longitude : Longitude (WGS84) [degE7] (type:int32_t)
  20007. altitude : Altitude (MSL). Positive for up. [mm] (type:int32_t)
  20008. 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)
  20009. """
  20010. return MAVLink_set_gps_global_origin_message(target_system, latitude, longitude, altitude, time_usec)
  20011. 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:
  20012. """
  20013. Sets the GPS coordinates of the vehicle local origin (0,0,0) position.
  20014. Vehicle should emit GPS_GLOBAL_ORIGIN irrespective of whether
  20015. the origin is changed. This enables transform between the
  20016. local coordinate frame and the global (GPS) coordinate frame,
  20017. which may be necessary when (for example) indoor and outdoor
  20018. settings are connected and the MAV should move from in- to
  20019. outdoor.
  20020. target_system : System ID (type:uint8_t)
  20021. latitude : Latitude (WGS84) [degE7] (type:int32_t)
  20022. longitude : Longitude (WGS84) [degE7] (type:int32_t)
  20023. altitude : Altitude (MSL). Positive for up. [mm] (type:int32_t)
  20024. 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)
  20025. """
  20026. self.send(self.set_gps_global_origin_encode(target_system, latitude, longitude, altitude, time_usec), force_mavlink1=force_mavlink1)
  20027. def gps_global_origin_encode(self, latitude: int, longitude: int, altitude: int, time_usec: int = 0) -> MAVLink_gps_global_origin_message:
  20028. """
  20029. Publishes the GPS coordinates of the vehicle local origin (0,0,0)
  20030. position. Emitted whenever a new GPS-Local position mapping is
  20031. requested or set - e.g. following SET_GPS_GLOBAL_ORIGIN
  20032. message.
  20033. latitude : Latitude (WGS84) [degE7] (type:int32_t)
  20034. longitude : Longitude (WGS84) [degE7] (type:int32_t)
  20035. altitude : Altitude (MSL). Positive for up. [mm] (type:int32_t)
  20036. 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)
  20037. """
  20038. return MAVLink_gps_global_origin_message(latitude, longitude, altitude, time_usec)
  20039. def gps_global_origin_send(self, latitude: int, longitude: int, altitude: int, time_usec: int = 0, force_mavlink1: bool = False) -> None:
  20040. """
  20041. Publishes the GPS coordinates of the vehicle local origin (0,0,0)
  20042. position. Emitted whenever a new GPS-Local position mapping is
  20043. requested or set - e.g. following SET_GPS_GLOBAL_ORIGIN
  20044. message.
  20045. latitude : Latitude (WGS84) [degE7] (type:int32_t)
  20046. longitude : Longitude (WGS84) [degE7] (type:int32_t)
  20047. altitude : Altitude (MSL). Positive for up. [mm] (type:int32_t)
  20048. 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)
  20049. """
  20050. self.send(self.gps_global_origin_encode(latitude, longitude, altitude, time_usec), force_mavlink1=force_mavlink1)
  20051. 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:
  20052. """
  20053. Bind a RC channel to a parameter. The parameter should change
  20054. according to the RC channel value.
  20055. target_system : System ID (type:uint8_t)
  20056. target_component : Component ID (type:uint8_t)
  20057. 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)
  20058. 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)
  20059. 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)
  20060. param_value0 : Initial parameter value (type:float)
  20061. scale : Scale, maps the RC range [-1, 1] to a parameter value (type:float)
  20062. param_value_min : Minimum param value. The protocol does not define if this overwrites an onboard minimum value. (Depends on implementation) (type:float)
  20063. param_value_max : Maximum param value. The protocol does not define if this overwrites an onboard maximum value. (Depends on implementation) (type:float)
  20064. """
  20065. 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)
  20066. 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:
  20067. """
  20068. Bind a RC channel to a parameter. The parameter should change
  20069. according to the RC channel value.
  20070. target_system : System ID (type:uint8_t)
  20071. target_component : Component ID (type:uint8_t)
  20072. 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)
  20073. 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)
  20074. 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)
  20075. param_value0 : Initial parameter value (type:float)
  20076. scale : Scale, maps the RC range [-1, 1] to a parameter value (type:float)
  20077. param_value_min : Minimum param value. The protocol does not define if this overwrites an onboard minimum value. (Depends on implementation) (type:float)
  20078. param_value_max : Maximum param value. The protocol does not define if this overwrites an onboard maximum value. (Depends on implementation) (type:float)
  20079. """
  20080. 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)
  20081. def mission_request_int_encode(self, target_system: int, target_component: int, seq: int, mission_type: int = 0) -> MAVLink_mission_request_int_message:
  20082. """
  20083. Request the information of the mission item with the sequence number
  20084. seq. The response of the system to this message should be a
  20085. MISSION_ITEM_INT message.
  20086. https://mavlink.io/en/services/mission.html
  20087. target_system : System ID (type:uint8_t)
  20088. target_component : Component ID (type:uint8_t)
  20089. seq : Sequence (type:uint16_t)
  20090. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  20091. """
  20092. return MAVLink_mission_request_int_message(target_system, target_component, seq, mission_type)
  20093. def mission_request_int_send(self, target_system: int, target_component: int, seq: int, mission_type: int = 0, force_mavlink1: bool = False) -> None:
  20094. """
  20095. Request the information of the mission item with the sequence number
  20096. seq. The response of the system to this message should be a
  20097. MISSION_ITEM_INT message.
  20098. https://mavlink.io/en/services/mission.html
  20099. target_system : System ID (type:uint8_t)
  20100. target_component : Component ID (type:uint8_t)
  20101. seq : Sequence (type:uint16_t)
  20102. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  20103. """
  20104. self.send(self.mission_request_int_encode(target_system, target_component, seq, mission_type), force_mavlink1=force_mavlink1)
  20105. 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:
  20106. """
  20107. Set a safety zone (volume), which is defined by two corners of a cube.
  20108. This message can be used to tell the MAV which
  20109. setpoints/waypoints to accept and which to reject. Safety
  20110. areas are often enforced by national or competition
  20111. regulations.
  20112. target_system : System ID (type:uint8_t)
  20113. target_component : Component ID (type:uint8_t)
  20114. 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)
  20115. p1x : x position 1 / Latitude 1 [m] (type:float)
  20116. p1y : y position 1 / Longitude 1 [m] (type:float)
  20117. p1z : z position 1 / Altitude 1 [m] (type:float)
  20118. p2x : x position 2 / Latitude 2 [m] (type:float)
  20119. p2y : y position 2 / Longitude 2 [m] (type:float)
  20120. p2z : z position 2 / Altitude 2 [m] (type:float)
  20121. """
  20122. return MAVLink_safety_set_allowed_area_message(target_system, target_component, frame, p1x, p1y, p1z, p2x, p2y, p2z)
  20123. 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:
  20124. """
  20125. Set a safety zone (volume), which is defined by two corners of a cube.
  20126. This message can be used to tell the MAV which
  20127. setpoints/waypoints to accept and which to reject. Safety
  20128. areas are often enforced by national or competition
  20129. regulations.
  20130. target_system : System ID (type:uint8_t)
  20131. target_component : Component ID (type:uint8_t)
  20132. 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)
  20133. p1x : x position 1 / Latitude 1 [m] (type:float)
  20134. p1y : y position 1 / Longitude 1 [m] (type:float)
  20135. p1z : z position 1 / Altitude 1 [m] (type:float)
  20136. p2x : x position 2 / Latitude 2 [m] (type:float)
  20137. p2y : y position 2 / Longitude 2 [m] (type:float)
  20138. p2z : z position 2 / Altitude 2 [m] (type:float)
  20139. """
  20140. self.send(self.safety_set_allowed_area_encode(target_system, target_component, frame, p1x, p1y, p1z, p2x, p2y, p2z), force_mavlink1=force_mavlink1)
  20141. 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:
  20142. """
  20143. Read out the safety zone the MAV currently assumes.
  20144. 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)
  20145. p1x : x position 1 / Latitude 1 [m] (type:float)
  20146. p1y : y position 1 / Longitude 1 [m] (type:float)
  20147. p1z : z position 1 / Altitude 1 [m] (type:float)
  20148. p2x : x position 2 / Latitude 2 [m] (type:float)
  20149. p2y : y position 2 / Longitude 2 [m] (type:float)
  20150. p2z : z position 2 / Altitude 2 [m] (type:float)
  20151. """
  20152. return MAVLink_safety_allowed_area_message(frame, p1x, p1y, p1z, p2x, p2y, p2z)
  20153. 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:
  20154. """
  20155. Read out the safety zone the MAV currently assumes.
  20156. 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)
  20157. p1x : x position 1 / Latitude 1 [m] (type:float)
  20158. p1y : y position 1 / Longitude 1 [m] (type:float)
  20159. p1z : z position 1 / Altitude 1 [m] (type:float)
  20160. p2x : x position 2 / Latitude 2 [m] (type:float)
  20161. p2y : y position 2 / Longitude 2 [m] (type:float)
  20162. p2z : z position 2 / Altitude 2 [m] (type:float)
  20163. """
  20164. self.send(self.safety_allowed_area_encode(frame, p1x, p1y, p1z, p2x, p2y, p2z), force_mavlink1=force_mavlink1)
  20165. 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:
  20166. """
  20167. The attitude in the aeronautical frame (right-handed, Z-down, X-front,
  20168. Y-right), expressed as quaternion. Quaternion order is w, x,
  20169. y, z and a zero rotation would be expressed as (1 0 0 0).
  20170. 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)
  20171. q : Quaternion components, w, x, y, z (1 0 0 0 is the null-rotation) (type:float)
  20172. rollspeed : Roll angular speed [rad/s] (type:float)
  20173. pitchspeed : Pitch angular speed [rad/s] (type:float)
  20174. yawspeed : Yaw angular speed [rad/s] (type:float)
  20175. 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)
  20176. """
  20177. return MAVLink_attitude_quaternion_cov_message(time_usec, q, rollspeed, pitchspeed, yawspeed, covariance)
  20178. 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:
  20179. """
  20180. The attitude in the aeronautical frame (right-handed, Z-down, X-front,
  20181. Y-right), expressed as quaternion. Quaternion order is w, x,
  20182. y, z and a zero rotation would be expressed as (1 0 0 0).
  20183. 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)
  20184. q : Quaternion components, w, x, y, z (1 0 0 0 is the null-rotation) (type:float)
  20185. rollspeed : Roll angular speed [rad/s] (type:float)
  20186. pitchspeed : Pitch angular speed [rad/s] (type:float)
  20187. yawspeed : Yaw angular speed [rad/s] (type:float)
  20188. 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)
  20189. """
  20190. self.send(self.attitude_quaternion_cov_encode(time_usec, q, rollspeed, pitchspeed, yawspeed, covariance), force_mavlink1=force_mavlink1)
  20191. 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:
  20192. """
  20193. The state of the navigation and position controller.
  20194. nav_roll : Current desired roll [deg] (type:float)
  20195. nav_pitch : Current desired pitch [deg] (type:float)
  20196. nav_bearing : Current desired heading [deg] (type:int16_t)
  20197. target_bearing : Bearing to current waypoint/target [deg] (type:int16_t)
  20198. wp_dist : Distance to active waypoint [m] (type:uint16_t)
  20199. alt_error : Current altitude error [m] (type:float)
  20200. aspd_error : Current airspeed error [m/s] (type:float)
  20201. xtrack_error : Current crosstrack error on x-y plane [m] (type:float)
  20202. """
  20203. return MAVLink_nav_controller_output_message(nav_roll, nav_pitch, nav_bearing, target_bearing, wp_dist, alt_error, aspd_error, xtrack_error)
  20204. 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:
  20205. """
  20206. The state of the navigation and position controller.
  20207. nav_roll : Current desired roll [deg] (type:float)
  20208. nav_pitch : Current desired pitch [deg] (type:float)
  20209. nav_bearing : Current desired heading [deg] (type:int16_t)
  20210. target_bearing : Bearing to current waypoint/target [deg] (type:int16_t)
  20211. wp_dist : Distance to active waypoint [m] (type:uint16_t)
  20212. alt_error : Current altitude error [m] (type:float)
  20213. aspd_error : Current airspeed error [m/s] (type:float)
  20214. xtrack_error : Current crosstrack error on x-y plane [m] (type:float)
  20215. """
  20216. 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)
  20217. 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:
  20218. """
  20219. The filtered global position (e.g. fused GPS and accelerometers). The
  20220. position is in GPS-frame (right-handed, Z-up). It is designed
  20221. as scaled integer message since the resolution of float is not
  20222. sufficient. NOTE: This message is intended for onboard
  20223. networks / companion computers and higher-bandwidth links and
  20224. optimized for accuracy and completeness. Please use the
  20225. GLOBAL_POSITION_INT message for a minimal subset.
  20226. 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)
  20227. estimator_type : Class id of the estimator this estimate originated from. (type:uint8_t, values:MAV_ESTIMATOR_TYPE)
  20228. lat : Latitude [degE7] (type:int32_t)
  20229. lon : Longitude [degE7] (type:int32_t)
  20230. alt : Altitude in meters above MSL [mm] (type:int32_t)
  20231. relative_alt : Altitude above ground [mm] (type:int32_t)
  20232. vx : Ground X Speed (Latitude) [m/s] (type:float)
  20233. vy : Ground Y Speed (Longitude) [m/s] (type:float)
  20234. vz : Ground Z Speed (Altitude) [m/s] (type:float)
  20235. 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)
  20236. """
  20237. return MAVLink_global_position_int_cov_message(time_usec, estimator_type, lat, lon, alt, relative_alt, vx, vy, vz, covariance)
  20238. 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:
  20239. """
  20240. The filtered global position (e.g. fused GPS and accelerometers). The
  20241. position is in GPS-frame (right-handed, Z-up). It is designed
  20242. as scaled integer message since the resolution of float is not
  20243. sufficient. NOTE: This message is intended for onboard
  20244. networks / companion computers and higher-bandwidth links and
  20245. optimized for accuracy and completeness. Please use the
  20246. GLOBAL_POSITION_INT message for a minimal subset.
  20247. 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)
  20248. estimator_type : Class id of the estimator this estimate originated from. (type:uint8_t, values:MAV_ESTIMATOR_TYPE)
  20249. lat : Latitude [degE7] (type:int32_t)
  20250. lon : Longitude [degE7] (type:int32_t)
  20251. alt : Altitude in meters above MSL [mm] (type:int32_t)
  20252. relative_alt : Altitude above ground [mm] (type:int32_t)
  20253. vx : Ground X Speed (Latitude) [m/s] (type:float)
  20254. vy : Ground Y Speed (Longitude) [m/s] (type:float)
  20255. vz : Ground Z Speed (Altitude) [m/s] (type:float)
  20256. 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)
  20257. """
  20258. 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)
  20259. 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:
  20260. """
  20261. The filtered local position (e.g. fused computer vision and
  20262. accelerometers). Coordinate frame is right-handed, Z-axis down
  20263. (aeronautical frame, NED / north-east-down convention)
  20264. 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)
  20265. estimator_type : Class id of the estimator this estimate originated from. (type:uint8_t, values:MAV_ESTIMATOR_TYPE)
  20266. x : X Position [m] (type:float)
  20267. y : Y Position [m] (type:float)
  20268. z : Z Position [m] (type:float)
  20269. vx : X Speed [m/s] (type:float)
  20270. vy : Y Speed [m/s] (type:float)
  20271. vz : Z Speed [m/s] (type:float)
  20272. ax : X Acceleration [m/s/s] (type:float)
  20273. ay : Y Acceleration [m/s/s] (type:float)
  20274. az : Z Acceleration [m/s/s] (type:float)
  20275. 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)
  20276. """
  20277. return MAVLink_local_position_ned_cov_message(time_usec, estimator_type, x, y, z, vx, vy, vz, ax, ay, az, covariance)
  20278. 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:
  20279. """
  20280. The filtered local position (e.g. fused computer vision and
  20281. accelerometers). Coordinate frame is right-handed, Z-axis down
  20282. (aeronautical frame, NED / north-east-down convention)
  20283. 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)
  20284. estimator_type : Class id of the estimator this estimate originated from. (type:uint8_t, values:MAV_ESTIMATOR_TYPE)
  20285. x : X Position [m] (type:float)
  20286. y : Y Position [m] (type:float)
  20287. z : Z Position [m] (type:float)
  20288. vx : X Speed [m/s] (type:float)
  20289. vy : Y Speed [m/s] (type:float)
  20290. vz : Z Speed [m/s] (type:float)
  20291. ax : X Acceleration [m/s/s] (type:float)
  20292. ay : Y Acceleration [m/s/s] (type:float)
  20293. az : Z Acceleration [m/s/s] (type:float)
  20294. 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)
  20295. """
  20296. 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)
  20297. 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:
  20298. """
  20299. The PPM values of the RC channels received. The standard PPM
  20300. modulation is as follows: 1000 microseconds: 0%, 2000
  20301. microseconds: 100%. A value of UINT16_MAX implies the channel
  20302. is unused. Individual receivers/transmitters might violate
  20303. this specification.
  20304. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  20305. 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)
  20306. chan1_raw : RC channel 1 value. [us] (type:uint16_t)
  20307. chan2_raw : RC channel 2 value. [us] (type:uint16_t)
  20308. chan3_raw : RC channel 3 value. [us] (type:uint16_t)
  20309. chan4_raw : RC channel 4 value. [us] (type:uint16_t)
  20310. chan5_raw : RC channel 5 value. [us] (type:uint16_t)
  20311. chan6_raw : RC channel 6 value. [us] (type:uint16_t)
  20312. chan7_raw : RC channel 7 value. [us] (type:uint16_t)
  20313. chan8_raw : RC channel 8 value. [us] (type:uint16_t)
  20314. chan9_raw : RC channel 9 value. [us] (type:uint16_t)
  20315. chan10_raw : RC channel 10 value. [us] (type:uint16_t)
  20316. chan11_raw : RC channel 11 value. [us] (type:uint16_t)
  20317. chan12_raw : RC channel 12 value. [us] (type:uint16_t)
  20318. chan13_raw : RC channel 13 value. [us] (type:uint16_t)
  20319. chan14_raw : RC channel 14 value. [us] (type:uint16_t)
  20320. chan15_raw : RC channel 15 value. [us] (type:uint16_t)
  20321. chan16_raw : RC channel 16 value. [us] (type:uint16_t)
  20322. chan17_raw : RC channel 17 value. [us] (type:uint16_t)
  20323. chan18_raw : RC channel 18 value. [us] (type:uint16_t)
  20324. rssi : Receive signal strength indicator in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown. (type:uint8_t)
  20325. """
  20326. 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)
  20327. 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:
  20328. """
  20329. The PPM values of the RC channels received. The standard PPM
  20330. modulation is as follows: 1000 microseconds: 0%, 2000
  20331. microseconds: 100%. A value of UINT16_MAX implies the channel
  20332. is unused. Individual receivers/transmitters might violate
  20333. this specification.
  20334. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  20335. 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)
  20336. chan1_raw : RC channel 1 value. [us] (type:uint16_t)
  20337. chan2_raw : RC channel 2 value. [us] (type:uint16_t)
  20338. chan3_raw : RC channel 3 value. [us] (type:uint16_t)
  20339. chan4_raw : RC channel 4 value. [us] (type:uint16_t)
  20340. chan5_raw : RC channel 5 value. [us] (type:uint16_t)
  20341. chan6_raw : RC channel 6 value. [us] (type:uint16_t)
  20342. chan7_raw : RC channel 7 value. [us] (type:uint16_t)
  20343. chan8_raw : RC channel 8 value. [us] (type:uint16_t)
  20344. chan9_raw : RC channel 9 value. [us] (type:uint16_t)
  20345. chan10_raw : RC channel 10 value. [us] (type:uint16_t)
  20346. chan11_raw : RC channel 11 value. [us] (type:uint16_t)
  20347. chan12_raw : RC channel 12 value. [us] (type:uint16_t)
  20348. chan13_raw : RC channel 13 value. [us] (type:uint16_t)
  20349. chan14_raw : RC channel 14 value. [us] (type:uint16_t)
  20350. chan15_raw : RC channel 15 value. [us] (type:uint16_t)
  20351. chan16_raw : RC channel 16 value. [us] (type:uint16_t)
  20352. chan17_raw : RC channel 17 value. [us] (type:uint16_t)
  20353. chan18_raw : RC channel 18 value. [us] (type:uint16_t)
  20354. rssi : Receive signal strength indicator in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown. (type:uint8_t)
  20355. """
  20356. 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)
  20357. 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:
  20358. """
  20359. Request a data stream.
  20360. target_system : The target requested to send the message stream. (type:uint8_t)
  20361. target_component : The target requested to send the message stream. (type:uint8_t)
  20362. req_stream_id : The ID of the requested data stream (type:uint8_t)
  20363. req_message_rate : The requested message rate [Hz] (type:uint16_t)
  20364. start_stop : 1 to start sending, 0 to stop sending. (type:uint8_t)
  20365. """
  20366. return MAVLink_request_data_stream_message(target_system, target_component, req_stream_id, req_message_rate, start_stop)
  20367. 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:
  20368. """
  20369. Request a data stream.
  20370. target_system : The target requested to send the message stream. (type:uint8_t)
  20371. target_component : The target requested to send the message stream. (type:uint8_t)
  20372. req_stream_id : The ID of the requested data stream (type:uint8_t)
  20373. req_message_rate : The requested message rate [Hz] (type:uint16_t)
  20374. start_stop : 1 to start sending, 0 to stop sending. (type:uint8_t)
  20375. """
  20376. self.send(self.request_data_stream_encode(target_system, target_component, req_stream_id, req_message_rate, start_stop), force_mavlink1=force_mavlink1)
  20377. def data_stream_encode(self, stream_id: int, message_rate: int, on_off: int) -> MAVLink_data_stream_message:
  20378. """
  20379. Data stream status information.
  20380. stream_id : The ID of the requested data stream (type:uint8_t)
  20381. message_rate : The message rate [Hz] (type:uint16_t)
  20382. on_off : 1 stream is enabled, 0 stream is stopped. (type:uint8_t)
  20383. """
  20384. return MAVLink_data_stream_message(stream_id, message_rate, on_off)
  20385. def data_stream_send(self, stream_id: int, message_rate: int, on_off: int, force_mavlink1: bool = False) -> None:
  20386. """
  20387. Data stream status information.
  20388. stream_id : The ID of the requested data stream (type:uint8_t)
  20389. message_rate : The message rate [Hz] (type:uint16_t)
  20390. on_off : 1 stream is enabled, 0 stream is stopped. (type:uint8_t)
  20391. """
  20392. self.send(self.data_stream_encode(stream_id, message_rate, on_off), force_mavlink1=force_mavlink1)
  20393. 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:
  20394. """
  20395. This message provides an API for manually controlling the vehicle
  20396. using standard joystick axes nomenclature, along with a
  20397. joystick-like input device. Unused axes can be disabled and
  20398. buttons states are transmitted as individual on/off bits of a
  20399. bitmask
  20400. target : The system to be controlled. (type:uint8_t)
  20401. 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)
  20402. 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)
  20403. 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)
  20404. 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)
  20405. 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)
  20406. 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)
  20407. 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)
  20408. 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)
  20409. 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)
  20410. 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)
  20411. 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)
  20412. 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)
  20413. 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)
  20414. 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)
  20415. 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)
  20416. """
  20417. return MAVLink_manual_control_message(target, x, y, z, r, buttons, buttons2, enabled_extensions, s, t, aux1, aux2, aux3, aux4, aux5, aux6)
  20418. 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:
  20419. """
  20420. This message provides an API for manually controlling the vehicle
  20421. using standard joystick axes nomenclature, along with a
  20422. joystick-like input device. Unused axes can be disabled and
  20423. buttons states are transmitted as individual on/off bits of a
  20424. bitmask
  20425. target : The system to be controlled. (type:uint8_t)
  20426. 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)
  20427. 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)
  20428. 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)
  20429. 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)
  20430. 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)
  20431. 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)
  20432. 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)
  20433. 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)
  20434. 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)
  20435. 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)
  20436. 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)
  20437. 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)
  20438. 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)
  20439. 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)
  20440. 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)
  20441. """
  20442. 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)
  20443. 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:
  20444. """
  20445. The RAW values of the RC channels sent to the MAV to override info
  20446. received from the RC radio. The standard PPM modulation is as
  20447. follows: 1000 microseconds: 0%, 2000 microseconds: 100%.
  20448. Individual receivers/transmitters might violate this
  20449. specification. Note carefully the semantic differences
  20450. between the first 8 channels and the subsequent channels
  20451. target_system : System ID (type:uint8_t)
  20452. target_component : Component ID (type:uint8_t)
  20453. 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)
  20454. 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)
  20455. 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)
  20456. 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)
  20457. 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)
  20458. 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)
  20459. 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)
  20460. 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)
  20461. 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)
  20462. 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)
  20463. 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)
  20464. 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)
  20465. 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)
  20466. 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)
  20467. 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)
  20468. 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)
  20469. 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)
  20470. 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)
  20471. """
  20472. 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)
  20473. 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:
  20474. """
  20475. The RAW values of the RC channels sent to the MAV to override info
  20476. received from the RC radio. The standard PPM modulation is as
  20477. follows: 1000 microseconds: 0%, 2000 microseconds: 100%.
  20478. Individual receivers/transmitters might violate this
  20479. specification. Note carefully the semantic differences
  20480. between the first 8 channels and the subsequent channels
  20481. target_system : System ID (type:uint8_t)
  20482. target_component : Component ID (type:uint8_t)
  20483. 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)
  20484. 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)
  20485. 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)
  20486. 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)
  20487. 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)
  20488. 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)
  20489. 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)
  20490. 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)
  20491. 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)
  20492. 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)
  20493. 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)
  20494. 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)
  20495. 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)
  20496. 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)
  20497. 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)
  20498. 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)
  20499. 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)
  20500. 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)
  20501. """
  20502. 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)
  20503. 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:
  20504. """
  20505. Message encoding a mission item. This message is emitted to announce
  20506. the presence of a mission item and to set a mission item on
  20507. the system. The mission item can be either in x, y, z meters
  20508. (type: LOCAL) or x:lat, y:lon, z:altitude. Local frame is
  20509. Z-down, right handed (NED), global frame is Z-up, right handed
  20510. (ENU). NaN or INT32_MAX may be used in float/integer params
  20511. (respectively) to indicate optional/default values (e.g. to
  20512. use the component's current latitude, yaw rather than a
  20513. specific value). See also
  20514. https://mavlink.io/en/services/mission.html.
  20515. target_system : System ID (type:uint8_t)
  20516. target_component : Component ID (type:uint8_t)
  20517. 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)
  20518. frame : The coordinate system of the waypoint. (type:uint8_t, values:MAV_FRAME)
  20519. command : The scheduled action for the waypoint. (type:uint16_t, values:MAV_CMD)
  20520. current : false:0, true:1 (type:uint8_t)
  20521. autocontinue : Autocontinue to next waypoint. 0: false, 1: true. Set false to pause mission after the item completes. (type:uint8_t)
  20522. param1 : PARAM1, see MAV_CMD enum (type:float)
  20523. param2 : PARAM2, see MAV_CMD enum (type:float)
  20524. param3 : PARAM3, see MAV_CMD enum (type:float)
  20525. param4 : PARAM4, see MAV_CMD enum (type:float)
  20526. x : PARAM5 / local: x position in meters * 1e4, global: latitude in degrees * 10^7 (type:int32_t)
  20527. y : PARAM6 / y position: local: x position in meters * 1e4, global: longitude in degrees *10^7 (type:int32_t)
  20528. z : PARAM7 / z position: global: altitude in meters (relative or absolute, depending on frame. (type:float)
  20529. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  20530. """
  20531. return MAVLink_mission_item_int_message(target_system, target_component, seq, frame, command, current, autocontinue, param1, param2, param3, param4, x, y, z, mission_type)
  20532. 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:
  20533. """
  20534. Message encoding a mission item. This message is emitted to announce
  20535. the presence of a mission item and to set a mission item on
  20536. the system. The mission item can be either in x, y, z meters
  20537. (type: LOCAL) or x:lat, y:lon, z:altitude. Local frame is
  20538. Z-down, right handed (NED), global frame is Z-up, right handed
  20539. (ENU). NaN or INT32_MAX may be used in float/integer params
  20540. (respectively) to indicate optional/default values (e.g. to
  20541. use the component's current latitude, yaw rather than a
  20542. specific value). See also
  20543. https://mavlink.io/en/services/mission.html.
  20544. target_system : System ID (type:uint8_t)
  20545. target_component : Component ID (type:uint8_t)
  20546. 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)
  20547. frame : The coordinate system of the waypoint. (type:uint8_t, values:MAV_FRAME)
  20548. command : The scheduled action for the waypoint. (type:uint16_t, values:MAV_CMD)
  20549. current : false:0, true:1 (type:uint8_t)
  20550. autocontinue : Autocontinue to next waypoint. 0: false, 1: true. Set false to pause mission after the item completes. (type:uint8_t)
  20551. param1 : PARAM1, see MAV_CMD enum (type:float)
  20552. param2 : PARAM2, see MAV_CMD enum (type:float)
  20553. param3 : PARAM3, see MAV_CMD enum (type:float)
  20554. param4 : PARAM4, see MAV_CMD enum (type:float)
  20555. x : PARAM5 / local: x position in meters * 1e4, global: latitude in degrees * 10^7 (type:int32_t)
  20556. y : PARAM6 / y position: local: x position in meters * 1e4, global: longitude in degrees *10^7 (type:int32_t)
  20557. z : PARAM7 / z position: global: altitude in meters (relative or absolute, depending on frame. (type:float)
  20558. mission_type : Mission type. (type:uint8_t, values:MAV_MISSION_TYPE)
  20559. """
  20560. 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)
  20561. def vfr_hud_encode(self, airspeed: float, groundspeed: float, heading: int, throttle: int, alt: float, climb: float) -> MAVLink_vfr_hud_message:
  20562. """
  20563. Metrics typically displayed on a HUD for fixed wing aircraft.
  20564. 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)
  20565. groundspeed : Current ground speed. [m/s] (type:float)
  20566. heading : Current heading in compass units (0-360, 0=north). [deg] (type:int16_t)
  20567. throttle : Current throttle setting (0 to 100). [%] (type:uint16_t)
  20568. alt : Current altitude (MSL). [m] (type:float)
  20569. climb : Current climb rate. [m/s] (type:float)
  20570. """
  20571. return MAVLink_vfr_hud_message(airspeed, groundspeed, heading, throttle, alt, climb)
  20572. def vfr_hud_send(self, airspeed: float, groundspeed: float, heading: int, throttle: int, alt: float, climb: float, force_mavlink1: bool = False) -> None:
  20573. """
  20574. Metrics typically displayed on a HUD for fixed wing aircraft.
  20575. 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)
  20576. groundspeed : Current ground speed. [m/s] (type:float)
  20577. heading : Current heading in compass units (0-360, 0=north). [deg] (type:int16_t)
  20578. throttle : Current throttle setting (0 to 100). [%] (type:uint16_t)
  20579. alt : Current altitude (MSL). [m] (type:float)
  20580. climb : Current climb rate. [m/s] (type:float)
  20581. """
  20582. self.send(self.vfr_hud_encode(airspeed, groundspeed, heading, throttle, alt, climb), force_mavlink1=force_mavlink1)
  20583. 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:
  20584. """
  20585. Send a command with up to seven parameters to the MAV, where params 5
  20586. and 6 are integers and the other values are floats. This is
  20587. preferred over COMMAND_LONG as it allows the MAV_FRAME to be
  20588. specified for interpreting positional information, such as
  20589. altitude. COMMAND_INT is also preferred when sending latitude
  20590. and longitude data in params 5 and 6, as it allows for greater
  20591. precision. Param 5 and 6 encode positional data as scaled
  20592. integers, where the scaling depends on the actual command
  20593. value. NaN or INT32_MAX may be used in float/integer params
  20594. (respectively) to indicate optional/default values (e.g. to
  20595. use the component's current latitude, yaw rather than a
  20596. specific value). The command microservice is documented at
  20597. https://mavlink.io/en/services/command.html
  20598. target_system : System ID (type:uint8_t)
  20599. target_component : Component ID (type:uint8_t)
  20600. frame : The coordinate system of the COMMAND. (type:uint8_t, values:MAV_FRAME)
  20601. command : The scheduled action for the mission item. (type:uint16_t, values:MAV_CMD)
  20602. current : Not used. (type:uint8_t)
  20603. autocontinue : Not used (set 0). (type:uint8_t)
  20604. param1 : PARAM1, see MAV_CMD enum (type:float)
  20605. param2 : PARAM2, see MAV_CMD enum (type:float)
  20606. param3 : PARAM3, see MAV_CMD enum (type:float)
  20607. param4 : PARAM4, see MAV_CMD enum (type:float)
  20608. x : PARAM5 / local: x position in meters * 1e4, global: latitude in degrees * 10^7 (type:int32_t)
  20609. y : PARAM6 / local: y position in meters * 1e4, global: longitude in degrees * 10^7 (type:int32_t)
  20610. z : PARAM7 / z position: global: altitude in meters (relative or absolute, depending on frame). (type:float)
  20611. """
  20612. return MAVLink_command_int_message(target_system, target_component, frame, command, current, autocontinue, param1, param2, param3, param4, x, y, z)
  20613. 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:
  20614. """
  20615. Send a command with up to seven parameters to the MAV, where params 5
  20616. and 6 are integers and the other values are floats. This is
  20617. preferred over COMMAND_LONG as it allows the MAV_FRAME to be
  20618. specified for interpreting positional information, such as
  20619. altitude. COMMAND_INT is also preferred when sending latitude
  20620. and longitude data in params 5 and 6, as it allows for greater
  20621. precision. Param 5 and 6 encode positional data as scaled
  20622. integers, where the scaling depends on the actual command
  20623. value. NaN or INT32_MAX may be used in float/integer params
  20624. (respectively) to indicate optional/default values (e.g. to
  20625. use the component's current latitude, yaw rather than a
  20626. specific value). The command microservice is documented at
  20627. https://mavlink.io/en/services/command.html
  20628. target_system : System ID (type:uint8_t)
  20629. target_component : Component ID (type:uint8_t)
  20630. frame : The coordinate system of the COMMAND. (type:uint8_t, values:MAV_FRAME)
  20631. command : The scheduled action for the mission item. (type:uint16_t, values:MAV_CMD)
  20632. current : Not used. (type:uint8_t)
  20633. autocontinue : Not used (set 0). (type:uint8_t)
  20634. param1 : PARAM1, see MAV_CMD enum (type:float)
  20635. param2 : PARAM2, see MAV_CMD enum (type:float)
  20636. param3 : PARAM3, see MAV_CMD enum (type:float)
  20637. param4 : PARAM4, see MAV_CMD enum (type:float)
  20638. x : PARAM5 / local: x position in meters * 1e4, global: latitude in degrees * 10^7 (type:int32_t)
  20639. y : PARAM6 / local: y position in meters * 1e4, global: longitude in degrees * 10^7 (type:int32_t)
  20640. z : PARAM7 / z position: global: altitude in meters (relative or absolute, depending on frame). (type:float)
  20641. """
  20642. 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)
  20643. 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:
  20644. """
  20645. Send a command with up to seven parameters to the MAV. COMMAND_INT is
  20646. generally preferred when sending MAV_CMD commands that include
  20647. positional information; it offers higher precision and allows
  20648. the MAV_FRAME to be specified (which may otherwise be
  20649. ambiguous, particularly for altitude). The command
  20650. microservice is documented at
  20651. https://mavlink.io/en/services/command.html
  20652. target_system : System which should execute the command (type:uint8_t)
  20653. target_component : Component which should execute the command, 0 for all components (type:uint8_t)
  20654. command : Command ID (of command to send). (type:uint16_t, values:MAV_CMD)
  20655. confirmation : 0: First transmission of this command. 1-255: Confirmation transmissions (e.g. for kill command) (type:uint8_t)
  20656. param1 : Parameter 1 (for the specific command). (type:float)
  20657. param2 : Parameter 2 (for the specific command). (type:float)
  20658. param3 : Parameter 3 (for the specific command). (type:float)
  20659. param4 : Parameter 4 (for the specific command). (type:float)
  20660. param5 : Parameter 5 (for the specific command). (type:float)
  20661. param6 : Parameter 6 (for the specific command). (type:float)
  20662. param7 : Parameter 7 (for the specific command). (type:float)
  20663. """
  20664. return MAVLink_command_long_message(target_system, target_component, command, confirmation, param1, param2, param3, param4, param5, param6, param7)
  20665. 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:
  20666. """
  20667. Send a command with up to seven parameters to the MAV. COMMAND_INT is
  20668. generally preferred when sending MAV_CMD commands that include
  20669. positional information; it offers higher precision and allows
  20670. the MAV_FRAME to be specified (which may otherwise be
  20671. ambiguous, particularly for altitude). The command
  20672. microservice is documented at
  20673. https://mavlink.io/en/services/command.html
  20674. target_system : System which should execute the command (type:uint8_t)
  20675. target_component : Component which should execute the command, 0 for all components (type:uint8_t)
  20676. command : Command ID (of command to send). (type:uint16_t, values:MAV_CMD)
  20677. confirmation : 0: First transmission of this command. 1-255: Confirmation transmissions (e.g. for kill command) (type:uint8_t)
  20678. param1 : Parameter 1 (for the specific command). (type:float)
  20679. param2 : Parameter 2 (for the specific command). (type:float)
  20680. param3 : Parameter 3 (for the specific command). (type:float)
  20681. param4 : Parameter 4 (for the specific command). (type:float)
  20682. param5 : Parameter 5 (for the specific command). (type:float)
  20683. param6 : Parameter 6 (for the specific command). (type:float)
  20684. param7 : Parameter 7 (for the specific command). (type:float)
  20685. """
  20686. self.send(self.command_long_encode(target_system, target_component, command, confirmation, param1, param2, param3, param4, param5, param6, param7), force_mavlink1=force_mavlink1)
  20687. 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:
  20688. """
  20689. Report status of a command. Includes feedback whether the command was
  20690. executed. The command microservice is documented at
  20691. https://mavlink.io/en/services/command.html
  20692. command : Command ID (of acknowledged command). (type:uint16_t, values:MAV_CMD)
  20693. result : Result of command. (type:uint8_t, values:MAV_RESULT)
  20694. 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)
  20695. 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)
  20696. 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)
  20697. 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)
  20698. """
  20699. return MAVLink_command_ack_message(command, result, progress, result_param2, target_system, target_component)
  20700. 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:
  20701. """
  20702. Report status of a command. Includes feedback whether the command was
  20703. executed. The command microservice is documented at
  20704. https://mavlink.io/en/services/command.html
  20705. command : Command ID (of acknowledged command). (type:uint16_t, values:MAV_CMD)
  20706. result : Result of command. (type:uint8_t, values:MAV_RESULT)
  20707. 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)
  20708. 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)
  20709. 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)
  20710. 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)
  20711. """
  20712. self.send(self.command_ack_encode(command, result, progress, result_param2, target_system, target_component), force_mavlink1=force_mavlink1)
  20713. def command_cancel_encode(self, target_system: int, target_component: int, command: int) -> MAVLink_command_cancel_message:
  20714. """
  20715. Cancel a long running command. The target system should respond with a
  20716. COMMAND_ACK to the original command with
  20717. result=MAV_RESULT_CANCELLED if the long running process was
  20718. cancelled. If it has already completed, the cancel action can
  20719. be ignored. The cancel action can be retried until some sort
  20720. of acknowledgement to the original command has been received.
  20721. The command microservice is documented at
  20722. https://mavlink.io/en/services/command.html
  20723. target_system : System executing long running command. Should not be broadcast (0). (type:uint8_t)
  20724. target_component : Component executing long running command. (type:uint8_t)
  20725. command : Command ID (of command to cancel). (type:uint16_t, values:MAV_CMD)
  20726. """
  20727. return MAVLink_command_cancel_message(target_system, target_component, command)
  20728. def command_cancel_send(self, target_system: int, target_component: int, command: int, force_mavlink1: bool = False) -> None:
  20729. """
  20730. Cancel a long running command. The target system should respond with a
  20731. COMMAND_ACK to the original command with
  20732. result=MAV_RESULT_CANCELLED if the long running process was
  20733. cancelled. If it has already completed, the cancel action can
  20734. be ignored. The cancel action can be retried until some sort
  20735. of acknowledgement to the original command has been received.
  20736. The command microservice is documented at
  20737. https://mavlink.io/en/services/command.html
  20738. target_system : System executing long running command. Should not be broadcast (0). (type:uint8_t)
  20739. target_component : Component executing long running command. (type:uint8_t)
  20740. command : Command ID (of command to cancel). (type:uint16_t, values:MAV_CMD)
  20741. """
  20742. self.send(self.command_cancel_encode(target_system, target_component, command), force_mavlink1=force_mavlink1)
  20743. 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:
  20744. """
  20745. Setpoint in roll, pitch, yaw and thrust from the operator
  20746. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  20747. roll : Desired roll rate [rad/s] (type:float)
  20748. pitch : Desired pitch rate [rad/s] (type:float)
  20749. yaw : Desired yaw rate [rad/s] (type:float)
  20750. thrust : Collective thrust, normalized to 0 .. 1 (type:float)
  20751. mode_switch : Flight mode switch position, 0.. 255 (type:uint8_t)
  20752. manual_override_switch : Override mode switch position, 0.. 255 (type:uint8_t)
  20753. """
  20754. return MAVLink_manual_setpoint_message(time_boot_ms, roll, pitch, yaw, thrust, mode_switch, manual_override_switch)
  20755. 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:
  20756. """
  20757. Setpoint in roll, pitch, yaw and thrust from the operator
  20758. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  20759. roll : Desired roll rate [rad/s] (type:float)
  20760. pitch : Desired pitch rate [rad/s] (type:float)
  20761. yaw : Desired yaw rate [rad/s] (type:float)
  20762. thrust : Collective thrust, normalized to 0 .. 1 (type:float)
  20763. mode_switch : Flight mode switch position, 0.. 255 (type:uint8_t)
  20764. manual_override_switch : Override mode switch position, 0.. 255 (type:uint8_t)
  20765. """
  20766. self.send(self.manual_setpoint_encode(time_boot_ms, roll, pitch, yaw, thrust, mode_switch, manual_override_switch), force_mavlink1=force_mavlink1)
  20767. 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:
  20768. """
  20769. Sets a desired vehicle attitude. Used by an external controller to
  20770. command the vehicle (manual controller or other system).
  20771. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  20772. target_system : System ID (type:uint8_t)
  20773. target_component : Component ID (type:uint8_t)
  20774. type_mask : Bitmap to indicate which dimensions should be ignored by the vehicle. (type:uint8_t, values:ATTITUDE_TARGET_TYPEMASK)
  20775. 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)
  20776. body_roll_rate : Body roll rate [rad/s] (type:float)
  20777. body_pitch_rate : Body pitch rate [rad/s] (type:float)
  20778. body_yaw_rate : Body yaw rate [rad/s] (type:float)
  20779. thrust : Collective thrust, normalized to 0 .. 1 (-1 .. 1 for vehicles capable of reverse trust) (type:float)
  20780. thrust_body : 3D thrust setpoint in the body NED frame, normalized to -1 .. 1 (type:float)
  20781. """
  20782. 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)
  20783. 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:
  20784. """
  20785. Sets a desired vehicle attitude. Used by an external controller to
  20786. command the vehicle (manual controller or other system).
  20787. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  20788. target_system : System ID (type:uint8_t)
  20789. target_component : Component ID (type:uint8_t)
  20790. type_mask : Bitmap to indicate which dimensions should be ignored by the vehicle. (type:uint8_t, values:ATTITUDE_TARGET_TYPEMASK)
  20791. 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)
  20792. body_roll_rate : Body roll rate [rad/s] (type:float)
  20793. body_pitch_rate : Body pitch rate [rad/s] (type:float)
  20794. body_yaw_rate : Body yaw rate [rad/s] (type:float)
  20795. thrust : Collective thrust, normalized to 0 .. 1 (-1 .. 1 for vehicles capable of reverse trust) (type:float)
  20796. thrust_body : 3D thrust setpoint in the body NED frame, normalized to -1 .. 1 (type:float)
  20797. """
  20798. 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)
  20799. 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:
  20800. """
  20801. Reports the current commanded attitude of the vehicle as specified by
  20802. the autopilot. This should match the commands sent in a
  20803. SET_ATTITUDE_TARGET message if the vehicle is being controlled
  20804. this way.
  20805. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  20806. type_mask : Bitmap to indicate which dimensions should be ignored by the vehicle. (type:uint8_t, values:ATTITUDE_TARGET_TYPEMASK)
  20807. q : Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0) (type:float)
  20808. body_roll_rate : Body roll rate [rad/s] (type:float)
  20809. body_pitch_rate : Body pitch rate [rad/s] (type:float)
  20810. body_yaw_rate : Body yaw rate [rad/s] (type:float)
  20811. thrust : Collective thrust, normalized to 0 .. 1 (-1 .. 1 for vehicles capable of reverse trust) (type:float)
  20812. """
  20813. return MAVLink_attitude_target_message(time_boot_ms, type_mask, q, body_roll_rate, body_pitch_rate, body_yaw_rate, thrust)
  20814. 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:
  20815. """
  20816. Reports the current commanded attitude of the vehicle as specified by
  20817. the autopilot. This should match the commands sent in a
  20818. SET_ATTITUDE_TARGET message if the vehicle is being controlled
  20819. this way.
  20820. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  20821. type_mask : Bitmap to indicate which dimensions should be ignored by the vehicle. (type:uint8_t, values:ATTITUDE_TARGET_TYPEMASK)
  20822. q : Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0) (type:float)
  20823. body_roll_rate : Body roll rate [rad/s] (type:float)
  20824. body_pitch_rate : Body pitch rate [rad/s] (type:float)
  20825. body_yaw_rate : Body yaw rate [rad/s] (type:float)
  20826. thrust : Collective thrust, normalized to 0 .. 1 (-1 .. 1 for vehicles capable of reverse trust) (type:float)
  20827. """
  20828. 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)
  20829. 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:
  20830. """
  20831. Sets a desired vehicle position in a local north-east-down coordinate
  20832. frame. Used by an external controller to command the vehicle
  20833. (manual controller or other system).
  20834. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  20835. target_system : System ID (type:uint8_t)
  20836. target_component : Component ID (type:uint8_t)
  20837. 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)
  20838. type_mask : Bitmap to indicate which dimensions should be ignored by the vehicle. (type:uint16_t, values:POSITION_TARGET_TYPEMASK)
  20839. x : X Position in NED frame [m] (type:float)
  20840. y : Y Position in NED frame [m] (type:float)
  20841. z : Z Position in NED frame (note, altitude is negative in NED) [m] (type:float)
  20842. vx : X velocity in NED frame [m/s] (type:float)
  20843. vy : Y velocity in NED frame [m/s] (type:float)
  20844. vz : Z velocity in NED frame [m/s] (type:float)
  20845. 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)
  20846. 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)
  20847. 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)
  20848. yaw : yaw setpoint [rad] (type:float)
  20849. yaw_rate : yaw rate setpoint [rad/s] (type:float)
  20850. """
  20851. 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)
  20852. 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:
  20853. """
  20854. Sets a desired vehicle position in a local north-east-down coordinate
  20855. frame. Used by an external controller to command the vehicle
  20856. (manual controller or other system).
  20857. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  20858. target_system : System ID (type:uint8_t)
  20859. target_component : Component ID (type:uint8_t)
  20860. 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)
  20861. type_mask : Bitmap to indicate which dimensions should be ignored by the vehicle. (type:uint16_t, values:POSITION_TARGET_TYPEMASK)
  20862. x : X Position in NED frame [m] (type:float)
  20863. y : Y Position in NED frame [m] (type:float)
  20864. z : Z Position in NED frame (note, altitude is negative in NED) [m] (type:float)
  20865. vx : X velocity in NED frame [m/s] (type:float)
  20866. vy : Y velocity in NED frame [m/s] (type:float)
  20867. vz : Z velocity in NED frame [m/s] (type:float)
  20868. 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)
  20869. 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)
  20870. 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)
  20871. yaw : yaw setpoint [rad] (type:float)
  20872. yaw_rate : yaw rate setpoint [rad/s] (type:float)
  20873. """
  20874. 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)
  20875. 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:
  20876. """
  20877. Reports the current commanded vehicle position, velocity, and
  20878. acceleration as specified by the autopilot. This should match
  20879. the commands sent in SET_POSITION_TARGET_LOCAL_NED if the
  20880. vehicle is being controlled this way.
  20881. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  20882. 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)
  20883. type_mask : Bitmap to indicate which dimensions should be ignored by the vehicle. (type:uint16_t, values:POSITION_TARGET_TYPEMASK)
  20884. x : X Position in NED frame [m] (type:float)
  20885. y : Y Position in NED frame [m] (type:float)
  20886. z : Z Position in NED frame (note, altitude is negative in NED) [m] (type:float)
  20887. vx : X velocity in NED frame [m/s] (type:float)
  20888. vy : Y velocity in NED frame [m/s] (type:float)
  20889. vz : Z velocity in NED frame [m/s] (type:float)
  20890. 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)
  20891. 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)
  20892. 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)
  20893. yaw : yaw setpoint [rad] (type:float)
  20894. yaw_rate : yaw rate setpoint [rad/s] (type:float)
  20895. """
  20896. 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)
  20897. 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:
  20898. """
  20899. Reports the current commanded vehicle position, velocity, and
  20900. acceleration as specified by the autopilot. This should match
  20901. the commands sent in SET_POSITION_TARGET_LOCAL_NED if the
  20902. vehicle is being controlled this way.
  20903. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  20904. 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)
  20905. type_mask : Bitmap to indicate which dimensions should be ignored by the vehicle. (type:uint16_t, values:POSITION_TARGET_TYPEMASK)
  20906. x : X Position in NED frame [m] (type:float)
  20907. y : Y Position in NED frame [m] (type:float)
  20908. z : Z Position in NED frame (note, altitude is negative in NED) [m] (type:float)
  20909. vx : X velocity in NED frame [m/s] (type:float)
  20910. vy : Y velocity in NED frame [m/s] (type:float)
  20911. vz : Z velocity in NED frame [m/s] (type:float)
  20912. 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)
  20913. 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)
  20914. 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)
  20915. yaw : yaw setpoint [rad] (type:float)
  20916. yaw_rate : yaw rate setpoint [rad/s] (type:float)
  20917. """
  20918. 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)
  20919. 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:
  20920. """
  20921. Sets a desired vehicle position, velocity, and/or acceleration in a
  20922. global coordinate system (WGS84). Used by an external
  20923. controller to command the vehicle (manual controller or other
  20924. system).
  20925. 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)
  20926. target_system : System ID (type:uint8_t)
  20927. target_component : Component ID (type:uint8_t)
  20928. 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)
  20929. type_mask : Bitmap to indicate which dimensions should be ignored by the vehicle. (type:uint16_t, values:POSITION_TARGET_TYPEMASK)
  20930. lat_int : X Position in WGS84 frame [degE7] (type:int32_t)
  20931. lon_int : Y Position in WGS84 frame [degE7] (type:int32_t)
  20932. alt : Altitude (MSL, Relative to home, or AGL - depending on frame) [m] (type:float)
  20933. vx : X velocity in NED frame [m/s] (type:float)
  20934. vy : Y velocity in NED frame [m/s] (type:float)
  20935. vz : Z velocity in NED frame [m/s] (type:float)
  20936. 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)
  20937. 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)
  20938. 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)
  20939. yaw : yaw setpoint [rad] (type:float)
  20940. yaw_rate : yaw rate setpoint [rad/s] (type:float)
  20941. """
  20942. 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)
  20943. 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:
  20944. """
  20945. Sets a desired vehicle position, velocity, and/or acceleration in a
  20946. global coordinate system (WGS84). Used by an external
  20947. controller to command the vehicle (manual controller or other
  20948. system).
  20949. 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)
  20950. target_system : System ID (type:uint8_t)
  20951. target_component : Component ID (type:uint8_t)
  20952. 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)
  20953. type_mask : Bitmap to indicate which dimensions should be ignored by the vehicle. (type:uint16_t, values:POSITION_TARGET_TYPEMASK)
  20954. lat_int : X Position in WGS84 frame [degE7] (type:int32_t)
  20955. lon_int : Y Position in WGS84 frame [degE7] (type:int32_t)
  20956. alt : Altitude (MSL, Relative to home, or AGL - depending on frame) [m] (type:float)
  20957. vx : X velocity in NED frame [m/s] (type:float)
  20958. vy : Y velocity in NED frame [m/s] (type:float)
  20959. vz : Z velocity in NED frame [m/s] (type:float)
  20960. 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)
  20961. 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)
  20962. 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)
  20963. yaw : yaw setpoint [rad] (type:float)
  20964. yaw_rate : yaw rate setpoint [rad/s] (type:float)
  20965. """
  20966. 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)
  20967. 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:
  20968. """
  20969. Reports the current commanded vehicle position, velocity, and
  20970. acceleration as specified by the autopilot. This should match
  20971. the commands sent in SET_POSITION_TARGET_GLOBAL_INT if the
  20972. vehicle is being controlled this way.
  20973. 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)
  20974. 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)
  20975. type_mask : Bitmap to indicate which dimensions should be ignored by the vehicle. (type:uint16_t, values:POSITION_TARGET_TYPEMASK)
  20976. lat_int : X Position in WGS84 frame [degE7] (type:int32_t)
  20977. lon_int : Y Position in WGS84 frame [degE7] (type:int32_t)
  20978. alt : Altitude (MSL, AGL or relative to home altitude, depending on frame) [m] (type:float)
  20979. vx : X velocity in NED frame [m/s] (type:float)
  20980. vy : Y velocity in NED frame [m/s] (type:float)
  20981. vz : Z velocity in NED frame [m/s] (type:float)
  20982. 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)
  20983. 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)
  20984. 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)
  20985. yaw : yaw setpoint [rad] (type:float)
  20986. yaw_rate : yaw rate setpoint [rad/s] (type:float)
  20987. """
  20988. 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)
  20989. 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:
  20990. """
  20991. Reports the current commanded vehicle position, velocity, and
  20992. acceleration as specified by the autopilot. This should match
  20993. the commands sent in SET_POSITION_TARGET_GLOBAL_INT if the
  20994. vehicle is being controlled this way.
  20995. 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)
  20996. 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)
  20997. type_mask : Bitmap to indicate which dimensions should be ignored by the vehicle. (type:uint16_t, values:POSITION_TARGET_TYPEMASK)
  20998. lat_int : X Position in WGS84 frame [degE7] (type:int32_t)
  20999. lon_int : Y Position in WGS84 frame [degE7] (type:int32_t)
  21000. alt : Altitude (MSL, AGL or relative to home altitude, depending on frame) [m] (type:float)
  21001. vx : X velocity in NED frame [m/s] (type:float)
  21002. vy : Y velocity in NED frame [m/s] (type:float)
  21003. vz : Z velocity in NED frame [m/s] (type:float)
  21004. 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)
  21005. 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)
  21006. 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)
  21007. yaw : yaw setpoint [rad] (type:float)
  21008. yaw_rate : yaw rate setpoint [rad/s] (type:float)
  21009. """
  21010. 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)
  21011. 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:
  21012. """
  21013. The offset in X, Y, Z and yaw between the LOCAL_POSITION_NED messages
  21014. of MAV X and the global coordinate frame in NED coordinates.
  21015. Coordinate frame is right-handed, Z-axis down (aeronautical
  21016. frame, NED / north-east-down convention)
  21017. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  21018. x : X Position [m] (type:float)
  21019. y : Y Position [m] (type:float)
  21020. z : Z Position [m] (type:float)
  21021. roll : Roll [rad] (type:float)
  21022. pitch : Pitch [rad] (type:float)
  21023. yaw : Yaw [rad] (type:float)
  21024. """
  21025. return MAVLink_local_position_ned_system_global_offset_message(time_boot_ms, x, y, z, roll, pitch, yaw)
  21026. 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:
  21027. """
  21028. The offset in X, Y, Z and yaw between the LOCAL_POSITION_NED messages
  21029. of MAV X and the global coordinate frame in NED coordinates.
  21030. Coordinate frame is right-handed, Z-axis down (aeronautical
  21031. frame, NED / north-east-down convention)
  21032. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  21033. x : X Position [m] (type:float)
  21034. y : Y Position [m] (type:float)
  21035. z : Z Position [m] (type:float)
  21036. roll : Roll [rad] (type:float)
  21037. pitch : Pitch [rad] (type:float)
  21038. yaw : Yaw [rad] (type:float)
  21039. """
  21040. self.send(self.local_position_ned_system_global_offset_encode(time_boot_ms, x, y, z, roll, pitch, yaw), force_mavlink1=force_mavlink1)
  21041. 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:
  21042. """
  21043. Sent from simulation to autopilot. This packet is useful for high
  21044. throughput applications such as hardware in the loop
  21045. simulations.
  21046. 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)
  21047. roll : Roll angle [rad] (type:float)
  21048. pitch : Pitch angle [rad] (type:float)
  21049. yaw : Yaw angle [rad] (type:float)
  21050. rollspeed : Body frame roll / phi angular speed [rad/s] (type:float)
  21051. pitchspeed : Body frame pitch / theta angular speed [rad/s] (type:float)
  21052. yawspeed : Body frame yaw / psi angular speed [rad/s] (type:float)
  21053. lat : Latitude [degE7] (type:int32_t)
  21054. lon : Longitude [degE7] (type:int32_t)
  21055. alt : Altitude [mm] (type:int32_t)
  21056. vx : Ground X Speed (Latitude) [cm/s] (type:int16_t)
  21057. vy : Ground Y Speed (Longitude) [cm/s] (type:int16_t)
  21058. vz : Ground Z Speed (Altitude) [cm/s] (type:int16_t)
  21059. xacc : X acceleration [mG] (type:int16_t)
  21060. yacc : Y acceleration [mG] (type:int16_t)
  21061. zacc : Z acceleration [mG] (type:int16_t)
  21062. """
  21063. return MAVLink_hil_state_message(time_usec, roll, pitch, yaw, rollspeed, pitchspeed, yawspeed, lat, lon, alt, vx, vy, vz, xacc, yacc, zacc)
  21064. 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:
  21065. """
  21066. Sent from simulation to autopilot. This packet is useful for high
  21067. throughput applications such as hardware in the loop
  21068. simulations.
  21069. 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)
  21070. roll : Roll angle [rad] (type:float)
  21071. pitch : Pitch angle [rad] (type:float)
  21072. yaw : Yaw angle [rad] (type:float)
  21073. rollspeed : Body frame roll / phi angular speed [rad/s] (type:float)
  21074. pitchspeed : Body frame pitch / theta angular speed [rad/s] (type:float)
  21075. yawspeed : Body frame yaw / psi angular speed [rad/s] (type:float)
  21076. lat : Latitude [degE7] (type:int32_t)
  21077. lon : Longitude [degE7] (type:int32_t)
  21078. alt : Altitude [mm] (type:int32_t)
  21079. vx : Ground X Speed (Latitude) [cm/s] (type:int16_t)
  21080. vy : Ground Y Speed (Longitude) [cm/s] (type:int16_t)
  21081. vz : Ground Z Speed (Altitude) [cm/s] (type:int16_t)
  21082. xacc : X acceleration [mG] (type:int16_t)
  21083. yacc : Y acceleration [mG] (type:int16_t)
  21084. zacc : Z acceleration [mG] (type:int16_t)
  21085. """
  21086. 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)
  21087. 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:
  21088. """
  21089. Sent from autopilot to simulation. Hardware in the loop control
  21090. outputs
  21091. 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)
  21092. roll_ailerons : Control output -1 .. 1 (type:float)
  21093. pitch_elevator : Control output -1 .. 1 (type:float)
  21094. yaw_rudder : Control output -1 .. 1 (type:float)
  21095. throttle : Throttle 0 .. 1 (type:float)
  21096. aux1 : Aux 1, -1 .. 1 (type:float)
  21097. aux2 : Aux 2, -1 .. 1 (type:float)
  21098. aux3 : Aux 3, -1 .. 1 (type:float)
  21099. aux4 : Aux 4, -1 .. 1 (type:float)
  21100. mode : System mode. (type:uint8_t, values:MAV_MODE)
  21101. nav_mode : Navigation mode (MAV_NAV_MODE) (type:uint8_t)
  21102. """
  21103. return MAVLink_hil_controls_message(time_usec, roll_ailerons, pitch_elevator, yaw_rudder, throttle, aux1, aux2, aux3, aux4, mode, nav_mode)
  21104. 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:
  21105. """
  21106. Sent from autopilot to simulation. Hardware in the loop control
  21107. outputs
  21108. 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)
  21109. roll_ailerons : Control output -1 .. 1 (type:float)
  21110. pitch_elevator : Control output -1 .. 1 (type:float)
  21111. yaw_rudder : Control output -1 .. 1 (type:float)
  21112. throttle : Throttle 0 .. 1 (type:float)
  21113. aux1 : Aux 1, -1 .. 1 (type:float)
  21114. aux2 : Aux 2, -1 .. 1 (type:float)
  21115. aux3 : Aux 3, -1 .. 1 (type:float)
  21116. aux4 : Aux 4, -1 .. 1 (type:float)
  21117. mode : System mode. (type:uint8_t, values:MAV_MODE)
  21118. nav_mode : Navigation mode (MAV_NAV_MODE) (type:uint8_t)
  21119. """
  21120. 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)
  21121. 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:
  21122. """
  21123. Sent from simulation to autopilot. The RAW values of the RC channels
  21124. received. The standard PPM modulation is as follows: 1000
  21125. microseconds: 0%, 2000 microseconds: 100%. Individual
  21126. receivers/transmitters might violate this specification.
  21127. 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)
  21128. chan1_raw : RC channel 1 value [us] (type:uint16_t)
  21129. chan2_raw : RC channel 2 value [us] (type:uint16_t)
  21130. chan3_raw : RC channel 3 value [us] (type:uint16_t)
  21131. chan4_raw : RC channel 4 value [us] (type:uint16_t)
  21132. chan5_raw : RC channel 5 value [us] (type:uint16_t)
  21133. chan6_raw : RC channel 6 value [us] (type:uint16_t)
  21134. chan7_raw : RC channel 7 value [us] (type:uint16_t)
  21135. chan8_raw : RC channel 8 value [us] (type:uint16_t)
  21136. chan9_raw : RC channel 9 value [us] (type:uint16_t)
  21137. chan10_raw : RC channel 10 value [us] (type:uint16_t)
  21138. chan11_raw : RC channel 11 value [us] (type:uint16_t)
  21139. chan12_raw : RC channel 12 value [us] (type:uint16_t)
  21140. rssi : Receive signal strength indicator in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown. (type:uint8_t)
  21141. """
  21142. 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)
  21143. 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:
  21144. """
  21145. Sent from simulation to autopilot. The RAW values of the RC channels
  21146. received. The standard PPM modulation is as follows: 1000
  21147. microseconds: 0%, 2000 microseconds: 100%. Individual
  21148. receivers/transmitters might violate this specification.
  21149. 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)
  21150. chan1_raw : RC channel 1 value [us] (type:uint16_t)
  21151. chan2_raw : RC channel 2 value [us] (type:uint16_t)
  21152. chan3_raw : RC channel 3 value [us] (type:uint16_t)
  21153. chan4_raw : RC channel 4 value [us] (type:uint16_t)
  21154. chan5_raw : RC channel 5 value [us] (type:uint16_t)
  21155. chan6_raw : RC channel 6 value [us] (type:uint16_t)
  21156. chan7_raw : RC channel 7 value [us] (type:uint16_t)
  21157. chan8_raw : RC channel 8 value [us] (type:uint16_t)
  21158. chan9_raw : RC channel 9 value [us] (type:uint16_t)
  21159. chan10_raw : RC channel 10 value [us] (type:uint16_t)
  21160. chan11_raw : RC channel 11 value [us] (type:uint16_t)
  21161. chan12_raw : RC channel 12 value [us] (type:uint16_t)
  21162. rssi : Receive signal strength indicator in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown. (type:uint8_t)
  21163. """
  21164. 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)
  21165. def hil_actuator_controls_encode(self, time_usec: int, controls: Sequence[float], mode: int, flags: int) -> MAVLink_hil_actuator_controls_message:
  21166. """
  21167. Sent from autopilot to simulation. Hardware in the loop control
  21168. outputs (replacement for HIL_CONTROLS)
  21169. 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)
  21170. controls : Control outputs -1 .. 1. Channel assignment depends on the simulated hardware. (type:float)
  21171. mode : System mode. Includes arming state. (type:uint8_t, values:MAV_MODE_FLAG)
  21172. flags : Flags as bitfield, 1: indicate simulation using lockstep. (type:uint64_t)
  21173. """
  21174. return MAVLink_hil_actuator_controls_message(time_usec, controls, mode, flags)
  21175. def hil_actuator_controls_send(self, time_usec: int, controls: Sequence[float], mode: int, flags: int, force_mavlink1: bool = False) -> None:
  21176. """
  21177. Sent from autopilot to simulation. Hardware in the loop control
  21178. outputs (replacement for HIL_CONTROLS)
  21179. 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)
  21180. controls : Control outputs -1 .. 1. Channel assignment depends on the simulated hardware. (type:float)
  21181. mode : System mode. Includes arming state. (type:uint8_t, values:MAV_MODE_FLAG)
  21182. flags : Flags as bitfield, 1: indicate simulation using lockstep. (type:uint64_t)
  21183. """
  21184. self.send(self.hil_actuator_controls_encode(time_usec, controls, mode, flags), force_mavlink1=force_mavlink1)
  21185. 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:
  21186. """
  21187. Optical flow from a flow sensor (e.g. optical mouse sensor)
  21188. 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)
  21189. sensor_id : Sensor ID (type:uint8_t)
  21190. flow_x : Flow in x-sensor direction [dpix] (type:int16_t)
  21191. flow_y : Flow in y-sensor direction [dpix] (type:int16_t)
  21192. flow_comp_m_x : Flow in x-sensor direction, angular-speed compensated [m/s] (type:float)
  21193. flow_comp_m_y : Flow in y-sensor direction, angular-speed compensated [m/s] (type:float)
  21194. quality : Optical flow quality / confidence. 0: bad, 255: maximum quality (type:uint8_t)
  21195. ground_distance : Ground distance. Positive value: distance known. Negative value: Unknown distance [m] (type:float)
  21196. flow_rate_x : Flow rate about X axis [rad/s] (type:float)
  21197. flow_rate_y : Flow rate about Y axis [rad/s] (type:float)
  21198. """
  21199. 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)
  21200. 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:
  21201. """
  21202. Optical flow from a flow sensor (e.g. optical mouse sensor)
  21203. 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)
  21204. sensor_id : Sensor ID (type:uint8_t)
  21205. flow_x : Flow in x-sensor direction [dpix] (type:int16_t)
  21206. flow_y : Flow in y-sensor direction [dpix] (type:int16_t)
  21207. flow_comp_m_x : Flow in x-sensor direction, angular-speed compensated [m/s] (type:float)
  21208. flow_comp_m_y : Flow in y-sensor direction, angular-speed compensated [m/s] (type:float)
  21209. quality : Optical flow quality / confidence. 0: bad, 255: maximum quality (type:uint8_t)
  21210. ground_distance : Ground distance. Positive value: distance known. Negative value: Unknown distance [m] (type:float)
  21211. flow_rate_x : Flow rate about X axis [rad/s] (type:float)
  21212. flow_rate_y : Flow rate about Y axis [rad/s] (type:float)
  21213. """
  21214. 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)
  21215. 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:
  21216. """
  21217. Global position/attitude estimate from a vision source.
  21218. usec : Timestamp (UNIX time or since system boot) [us] (type:uint64_t)
  21219. x : Global X position [m] (type:float)
  21220. y : Global Y position [m] (type:float)
  21221. z : Global Z position [m] (type:float)
  21222. roll : Roll angle [rad] (type:float)
  21223. pitch : Pitch angle [rad] (type:float)
  21224. yaw : Yaw angle [rad] (type:float)
  21225. 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)
  21226. 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)
  21227. """
  21228. return MAVLink_global_vision_position_estimate_message(usec, x, y, z, roll, pitch, yaw, covariance, reset_counter)
  21229. 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:
  21230. """
  21231. Global position/attitude estimate from a vision source.
  21232. usec : Timestamp (UNIX time or since system boot) [us] (type:uint64_t)
  21233. x : Global X position [m] (type:float)
  21234. y : Global Y position [m] (type:float)
  21235. z : Global Z position [m] (type:float)
  21236. roll : Roll angle [rad] (type:float)
  21237. pitch : Pitch angle [rad] (type:float)
  21238. yaw : Yaw angle [rad] (type:float)
  21239. 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)
  21240. 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)
  21241. """
  21242. self.send(self.global_vision_position_estimate_encode(usec, x, y, z, roll, pitch, yaw, covariance, reset_counter), force_mavlink1=force_mavlink1)
  21243. 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:
  21244. """
  21245. Local position/attitude estimate from a vision source.
  21246. usec : Timestamp (UNIX time or time since system boot) [us] (type:uint64_t)
  21247. x : Local X position [m] (type:float)
  21248. y : Local Y position [m] (type:float)
  21249. z : Local Z position [m] (type:float)
  21250. roll : Roll angle [rad] (type:float)
  21251. pitch : Pitch angle [rad] (type:float)
  21252. yaw : Yaw angle [rad] (type:float)
  21253. 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)
  21254. 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)
  21255. """
  21256. return MAVLink_vision_position_estimate_message(usec, x, y, z, roll, pitch, yaw, covariance, reset_counter)
  21257. 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:
  21258. """
  21259. Local position/attitude estimate from a vision source.
  21260. usec : Timestamp (UNIX time or time since system boot) [us] (type:uint64_t)
  21261. x : Local X position [m] (type:float)
  21262. y : Local Y position [m] (type:float)
  21263. z : Local Z position [m] (type:float)
  21264. roll : Roll angle [rad] (type:float)
  21265. pitch : Pitch angle [rad] (type:float)
  21266. yaw : Yaw angle [rad] (type:float)
  21267. 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)
  21268. 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)
  21269. """
  21270. self.send(self.vision_position_estimate_encode(usec, x, y, z, roll, pitch, yaw, covariance, reset_counter), force_mavlink1=force_mavlink1)
  21271. 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:
  21272. """
  21273. Speed estimate from a vision source.
  21274. usec : Timestamp (UNIX time or time since system boot) [us] (type:uint64_t)
  21275. x : Global X speed [m/s] (type:float)
  21276. y : Global Y speed [m/s] (type:float)
  21277. z : Global Z speed [m/s] (type:float)
  21278. 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)
  21279. 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)
  21280. """
  21281. return MAVLink_vision_speed_estimate_message(usec, x, y, z, covariance, reset_counter)
  21282. 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:
  21283. """
  21284. Speed estimate from a vision source.
  21285. usec : Timestamp (UNIX time or time since system boot) [us] (type:uint64_t)
  21286. x : Global X speed [m/s] (type:float)
  21287. y : Global Y speed [m/s] (type:float)
  21288. z : Global Z speed [m/s] (type:float)
  21289. 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)
  21290. 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)
  21291. """
  21292. self.send(self.vision_speed_estimate_encode(usec, x, y, z, covariance, reset_counter), force_mavlink1=force_mavlink1)
  21293. 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:
  21294. """
  21295. Global position estimate from a Vicon motion system source.
  21296. usec : Timestamp (UNIX time or time since system boot) [us] (type:uint64_t)
  21297. x : Global X position [m] (type:float)
  21298. y : Global Y position [m] (type:float)
  21299. z : Global Z position [m] (type:float)
  21300. roll : Roll angle [rad] (type:float)
  21301. pitch : Pitch angle [rad] (type:float)
  21302. yaw : Yaw angle [rad] (type:float)
  21303. 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)
  21304. """
  21305. return MAVLink_vicon_position_estimate_message(usec, x, y, z, roll, pitch, yaw, covariance)
  21306. 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:
  21307. """
  21308. Global position estimate from a Vicon motion system source.
  21309. usec : Timestamp (UNIX time or time since system boot) [us] (type:uint64_t)
  21310. x : Global X position [m] (type:float)
  21311. y : Global Y position [m] (type:float)
  21312. z : Global Z position [m] (type:float)
  21313. roll : Roll angle [rad] (type:float)
  21314. pitch : Pitch angle [rad] (type:float)
  21315. yaw : Yaw angle [rad] (type:float)
  21316. 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)
  21317. """
  21318. self.send(self.vicon_position_estimate_encode(usec, x, y, z, roll, pitch, yaw, covariance), force_mavlink1=force_mavlink1)
  21319. 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:
  21320. """
  21321. The IMU readings in SI units in NED body frame
  21322. 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)
  21323. xacc : X acceleration [m/s/s] (type:float)
  21324. yacc : Y acceleration [m/s/s] (type:float)
  21325. zacc : Z acceleration [m/s/s] (type:float)
  21326. xgyro : Angular speed around X axis [rad/s] (type:float)
  21327. ygyro : Angular speed around Y axis [rad/s] (type:float)
  21328. zgyro : Angular speed around Z axis [rad/s] (type:float)
  21329. xmag : X Magnetic field [gauss] (type:float)
  21330. ymag : Y Magnetic field [gauss] (type:float)
  21331. zmag : Z Magnetic field [gauss] (type:float)
  21332. abs_pressure : Absolute pressure [hPa] (type:float)
  21333. diff_pressure : Differential pressure [hPa] (type:float)
  21334. pressure_alt : Altitude calculated from pressure (type:float)
  21335. temperature : Temperature [degC] (type:float)
  21336. fields_updated : Bitmap for fields that have updated since last message (type:uint16_t, values:HIGHRES_IMU_UPDATED_FLAGS)
  21337. 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)
  21338. """
  21339. 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)
  21340. 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:
  21341. """
  21342. The IMU readings in SI units in NED body frame
  21343. 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)
  21344. xacc : X acceleration [m/s/s] (type:float)
  21345. yacc : Y acceleration [m/s/s] (type:float)
  21346. zacc : Z acceleration [m/s/s] (type:float)
  21347. xgyro : Angular speed around X axis [rad/s] (type:float)
  21348. ygyro : Angular speed around Y axis [rad/s] (type:float)
  21349. zgyro : Angular speed around Z axis [rad/s] (type:float)
  21350. xmag : X Magnetic field [gauss] (type:float)
  21351. ymag : Y Magnetic field [gauss] (type:float)
  21352. zmag : Z Magnetic field [gauss] (type:float)
  21353. abs_pressure : Absolute pressure [hPa] (type:float)
  21354. diff_pressure : Differential pressure [hPa] (type:float)
  21355. pressure_alt : Altitude calculated from pressure (type:float)
  21356. temperature : Temperature [degC] (type:float)
  21357. fields_updated : Bitmap for fields that have updated since last message (type:uint16_t, values:HIGHRES_IMU_UPDATED_FLAGS)
  21358. 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)
  21359. """
  21360. 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)
  21361. 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:
  21362. """
  21363. Optical flow from an angular rate flow sensor (e.g. PX4FLOW or mouse
  21364. sensor)
  21365. 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)
  21366. sensor_id : Sensor ID (type:uint8_t)
  21367. 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)
  21368. 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)
  21369. 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)
  21370. integrated_xgyro : RH rotation around X axis [rad] (type:float)
  21371. integrated_ygyro : RH rotation around Y axis [rad] (type:float)
  21372. integrated_zgyro : RH rotation around Z axis [rad] (type:float)
  21373. temperature : Temperature [cdegC] (type:int16_t)
  21374. quality : Optical flow quality / confidence. 0: no valid flow, 255: maximum quality (type:uint8_t)
  21375. time_delta_distance_us : Time since the distance was sampled. [us] (type:uint32_t)
  21376. distance : Distance to the center of the flow field. Positive value (including zero): distance known. Negative value: Unknown distance. [m] (type:float)
  21377. """
  21378. 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)
  21379. 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:
  21380. """
  21381. Optical flow from an angular rate flow sensor (e.g. PX4FLOW or mouse
  21382. sensor)
  21383. 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)
  21384. sensor_id : Sensor ID (type:uint8_t)
  21385. 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)
  21386. 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)
  21387. 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)
  21388. integrated_xgyro : RH rotation around X axis [rad] (type:float)
  21389. integrated_ygyro : RH rotation around Y axis [rad] (type:float)
  21390. integrated_zgyro : RH rotation around Z axis [rad] (type:float)
  21391. temperature : Temperature [cdegC] (type:int16_t)
  21392. quality : Optical flow quality / confidence. 0: no valid flow, 255: maximum quality (type:uint8_t)
  21393. time_delta_distance_us : Time since the distance was sampled. [us] (type:uint32_t)
  21394. distance : Distance to the center of the flow field. Positive value (including zero): distance known. Negative value: Unknown distance. [m] (type:float)
  21395. """
  21396. 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)
  21397. 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:
  21398. """
  21399. The IMU readings in SI units in NED body frame
  21400. 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)
  21401. xacc : X acceleration [m/s/s] (type:float)
  21402. yacc : Y acceleration [m/s/s] (type:float)
  21403. zacc : Z acceleration [m/s/s] (type:float)
  21404. xgyro : Angular speed around X axis in body frame [rad/s] (type:float)
  21405. ygyro : Angular speed around Y axis in body frame [rad/s] (type:float)
  21406. zgyro : Angular speed around Z axis in body frame [rad/s] (type:float)
  21407. xmag : X Magnetic field [gauss] (type:float)
  21408. ymag : Y Magnetic field [gauss] (type:float)
  21409. zmag : Z Magnetic field [gauss] (type:float)
  21410. abs_pressure : Absolute pressure [hPa] (type:float)
  21411. diff_pressure : Differential pressure (airspeed) [hPa] (type:float)
  21412. pressure_alt : Altitude calculated from pressure (type:float)
  21413. temperature : Temperature [degC] (type:float)
  21414. fields_updated : Bitmap for fields that have updated since last message (type:uint32_t, values:HIL_SENSOR_UPDATED_FLAGS)
  21415. id : Sensor ID (zero indexed). Used for multiple sensor inputs (type:uint8_t)
  21416. """
  21417. 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)
  21418. 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:
  21419. """
  21420. The IMU readings in SI units in NED body frame
  21421. 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)
  21422. xacc : X acceleration [m/s/s] (type:float)
  21423. yacc : Y acceleration [m/s/s] (type:float)
  21424. zacc : Z acceleration [m/s/s] (type:float)
  21425. xgyro : Angular speed around X axis in body frame [rad/s] (type:float)
  21426. ygyro : Angular speed around Y axis in body frame [rad/s] (type:float)
  21427. zgyro : Angular speed around Z axis in body frame [rad/s] (type:float)
  21428. xmag : X Magnetic field [gauss] (type:float)
  21429. ymag : Y Magnetic field [gauss] (type:float)
  21430. zmag : Z Magnetic field [gauss] (type:float)
  21431. abs_pressure : Absolute pressure [hPa] (type:float)
  21432. diff_pressure : Differential pressure (airspeed) [hPa] (type:float)
  21433. pressure_alt : Altitude calculated from pressure (type:float)
  21434. temperature : Temperature [degC] (type:float)
  21435. fields_updated : Bitmap for fields that have updated since last message (type:uint32_t, values:HIL_SENSOR_UPDATED_FLAGS)
  21436. id : Sensor ID (zero indexed). Used for multiple sensor inputs (type:uint8_t)
  21437. """
  21438. 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)
  21439. 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:
  21440. """
  21441. Status of simulation environment, if used
  21442. q1 : True attitude quaternion component 1, w (1 in null-rotation) (type:float)
  21443. q2 : True attitude quaternion component 2, x (0 in null-rotation) (type:float)
  21444. q3 : True attitude quaternion component 3, y (0 in null-rotation) (type:float)
  21445. q4 : True attitude quaternion component 4, z (0 in null-rotation) (type:float)
  21446. roll : Attitude roll expressed as Euler angles, not recommended except for human-readable outputs (type:float)
  21447. pitch : Attitude pitch expressed as Euler angles, not recommended except for human-readable outputs (type:float)
  21448. yaw : Attitude yaw expressed as Euler angles, not recommended except for human-readable outputs (type:float)
  21449. xacc : X acceleration [m/s/s] (type:float)
  21450. yacc : Y acceleration [m/s/s] (type:float)
  21451. zacc : Z acceleration [m/s/s] (type:float)
  21452. xgyro : Angular speed around X axis [rad/s] (type:float)
  21453. ygyro : Angular speed around Y axis [rad/s] (type:float)
  21454. zgyro : Angular speed around Z axis [rad/s] (type:float)
  21455. lat : Latitude (lower precision). Both this and the lat_int field should be set. [deg] (type:float)
  21456. lon : Longitude (lower precision). Both this and the lon_int field should be set. [deg] (type:float)
  21457. alt : Altitude [m] (type:float)
  21458. std_dev_horz : Horizontal position standard deviation (type:float)
  21459. std_dev_vert : Vertical position standard deviation (type:float)
  21460. vn : True velocity in north direction in earth-fixed NED frame [m/s] (type:float)
  21461. ve : True velocity in east direction in earth-fixed NED frame [m/s] (type:float)
  21462. vd : True velocity in down direction in earth-fixed NED frame [m/s] (type:float)
  21463. lat_int : Latitude (higher precision). If 0, recipients should use the lat field value (otherwise this field is preferred). [degE7] (type:int32_t)
  21464. lon_int : Longitude (higher precision). If 0, recipients should use the lon field value (otherwise this field is preferred). [degE7] (type:int32_t)
  21465. """
  21466. 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)
  21467. 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:
  21468. """
  21469. Status of simulation environment, if used
  21470. q1 : True attitude quaternion component 1, w (1 in null-rotation) (type:float)
  21471. q2 : True attitude quaternion component 2, x (0 in null-rotation) (type:float)
  21472. q3 : True attitude quaternion component 3, y (0 in null-rotation) (type:float)
  21473. q4 : True attitude quaternion component 4, z (0 in null-rotation) (type:float)
  21474. roll : Attitude roll expressed as Euler angles, not recommended except for human-readable outputs (type:float)
  21475. pitch : Attitude pitch expressed as Euler angles, not recommended except for human-readable outputs (type:float)
  21476. yaw : Attitude yaw expressed as Euler angles, not recommended except for human-readable outputs (type:float)
  21477. xacc : X acceleration [m/s/s] (type:float)
  21478. yacc : Y acceleration [m/s/s] (type:float)
  21479. zacc : Z acceleration [m/s/s] (type:float)
  21480. xgyro : Angular speed around X axis [rad/s] (type:float)
  21481. ygyro : Angular speed around Y axis [rad/s] (type:float)
  21482. zgyro : Angular speed around Z axis [rad/s] (type:float)
  21483. lat : Latitude (lower precision). Both this and the lat_int field should be set. [deg] (type:float)
  21484. lon : Longitude (lower precision). Both this and the lon_int field should be set. [deg] (type:float)
  21485. alt : Altitude [m] (type:float)
  21486. std_dev_horz : Horizontal position standard deviation (type:float)
  21487. std_dev_vert : Vertical position standard deviation (type:float)
  21488. vn : True velocity in north direction in earth-fixed NED frame [m/s] (type:float)
  21489. ve : True velocity in east direction in earth-fixed NED frame [m/s] (type:float)
  21490. vd : True velocity in down direction in earth-fixed NED frame [m/s] (type:float)
  21491. lat_int : Latitude (higher precision). If 0, recipients should use the lat field value (otherwise this field is preferred). [degE7] (type:int32_t)
  21492. lon_int : Longitude (higher precision). If 0, recipients should use the lon field value (otherwise this field is preferred). [degE7] (type:int32_t)
  21493. """
  21494. 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)
  21495. def radio_status_encode(self, rssi: int, remrssi: int, txbuf: int, noise: int, remnoise: int, rxerrors: int, fixed: int) -> MAVLink_radio_status_message:
  21496. """
  21497. Status generated by radio and injected into MAVLink stream.
  21498. rssi : Local (message sender) received signal strength indication in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown. (type:uint8_t)
  21499. remrssi : Remote (message receiver) signal strength indication in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown. (type:uint8_t)
  21500. txbuf : Remaining free transmitter buffer space. [%] (type:uint8_t)
  21501. 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)
  21502. 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)
  21503. rxerrors : Count of radio packet receive errors (since boot). (type:uint16_t)
  21504. fixed : Count of error corrected radio packets (since boot). (type:uint16_t)
  21505. """
  21506. return MAVLink_radio_status_message(rssi, remrssi, txbuf, noise, remnoise, rxerrors, fixed)
  21507. def radio_status_send(self, rssi: int, remrssi: int, txbuf: int, noise: int, remnoise: int, rxerrors: int, fixed: int, force_mavlink1: bool = False) -> None:
  21508. """
  21509. Status generated by radio and injected into MAVLink stream.
  21510. rssi : Local (message sender) received signal strength indication in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown. (type:uint8_t)
  21511. remrssi : Remote (message receiver) signal strength indication in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown. (type:uint8_t)
  21512. txbuf : Remaining free transmitter buffer space. [%] (type:uint8_t)
  21513. 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)
  21514. 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)
  21515. rxerrors : Count of radio packet receive errors (since boot). (type:uint16_t)
  21516. fixed : Count of error corrected radio packets (since boot). (type:uint16_t)
  21517. """
  21518. self.send(self.radio_status_encode(rssi, remrssi, txbuf, noise, remnoise, rxerrors, fixed), force_mavlink1=force_mavlink1)
  21519. def file_transfer_protocol_encode(self, target_network: int, target_system: int, target_component: int, payload: Sequence[int]) -> MAVLink_file_transfer_protocol_message:
  21520. """
  21521. File transfer protocol message:
  21522. https://mavlink.io/en/services/ftp.html.
  21523. target_network : Network ID (0 for broadcast) (type:uint8_t)
  21524. target_system : System ID (0 for broadcast) (type:uint8_t)
  21525. target_component : Component ID (0 for broadcast) (type:uint8_t)
  21526. 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)
  21527. """
  21528. return MAVLink_file_transfer_protocol_message(target_network, target_system, target_component, payload)
  21529. def file_transfer_protocol_send(self, target_network: int, target_system: int, target_component: int, payload: Sequence[int], force_mavlink1: bool = False) -> None:
  21530. """
  21531. File transfer protocol message:
  21532. https://mavlink.io/en/services/ftp.html.
  21533. target_network : Network ID (0 for broadcast) (type:uint8_t)
  21534. target_system : System ID (0 for broadcast) (type:uint8_t)
  21535. target_component : Component ID (0 for broadcast) (type:uint8_t)
  21536. 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)
  21537. """
  21538. self.send(self.file_transfer_protocol_encode(target_network, target_system, target_component, payload), force_mavlink1=force_mavlink1)
  21539. def timesync_encode(self, tc1: int, ts1: int, target_system: int = 0, target_component: int = 0) -> MAVLink_timesync_message:
  21540. """
  21541. Time synchronization message. The message is used for both
  21542. timesync requests and responses. The request is sent
  21543. with `ts1=syncing component timestamp` and `tc1=0`, and may be
  21544. broadcast or targeted to a specific system/component.
  21545. The response is sent with `ts1=syncing component timestamp`
  21546. (mirror back unchanged), and `tc1=responding component
  21547. timestamp`, with the `target_system` and `target_component`
  21548. set to ids of the original request. Systems can
  21549. determine if they are receiving a request or response based on
  21550. the value of `tc`. If the response has
  21551. `target_system==target_component==0` the remote system has not
  21552. been updated to use the component IDs and cannot reliably
  21553. timesync; the requestor may report an error.
  21554. Timestamps are UNIX Epoch time or time since system boot in
  21555. nanoseconds (the timestamp format can be inferred by checking
  21556. for the magnitude of the number; generally it doesn't matter
  21557. as only the offset is used). The message sequence is
  21558. repeated numerous times with results being filtered/averaged
  21559. to estimate the offset.
  21560. tc1 : Time sync timestamp 1. Syncing: 0. Responding: Timestamp of responding component. [ns] (type:int64_t)
  21561. ts1 : Time sync timestamp 2. Timestamp of syncing component (mirrored in response). [ns] (type:int64_t)
  21562. 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)
  21563. 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)
  21564. """
  21565. return MAVLink_timesync_message(tc1, ts1, target_system, target_component)
  21566. def timesync_send(self, tc1: int, ts1: int, target_system: int = 0, target_component: int = 0, force_mavlink1: bool = False) -> None:
  21567. """
  21568. Time synchronization message. The message is used for both
  21569. timesync requests and responses. The request is sent
  21570. with `ts1=syncing component timestamp` and `tc1=0`, and may be
  21571. broadcast or targeted to a specific system/component.
  21572. The response is sent with `ts1=syncing component timestamp`
  21573. (mirror back unchanged), and `tc1=responding component
  21574. timestamp`, with the `target_system` and `target_component`
  21575. set to ids of the original request. Systems can
  21576. determine if they are receiving a request or response based on
  21577. the value of `tc`. If the response has
  21578. `target_system==target_component==0` the remote system has not
  21579. been updated to use the component IDs and cannot reliably
  21580. timesync; the requestor may report an error.
  21581. Timestamps are UNIX Epoch time or time since system boot in
  21582. nanoseconds (the timestamp format can be inferred by checking
  21583. for the magnitude of the number; generally it doesn't matter
  21584. as only the offset is used). The message sequence is
  21585. repeated numerous times with results being filtered/averaged
  21586. to estimate the offset.
  21587. tc1 : Time sync timestamp 1. Syncing: 0. Responding: Timestamp of responding component. [ns] (type:int64_t)
  21588. ts1 : Time sync timestamp 2. Timestamp of syncing component (mirrored in response). [ns] (type:int64_t)
  21589. 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)
  21590. 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)
  21591. """
  21592. self.send(self.timesync_encode(tc1, ts1, target_system, target_component), force_mavlink1=force_mavlink1)
  21593. def camera_trigger_encode(self, time_usec: int, seq: int) -> MAVLink_camera_trigger_message:
  21594. """
  21595. Camera-IMU triggering and synchronisation message.
  21596. 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)
  21597. seq : Image frame sequence (type:uint32_t)
  21598. """
  21599. return MAVLink_camera_trigger_message(time_usec, seq)
  21600. def camera_trigger_send(self, time_usec: int, seq: int, force_mavlink1: bool = False) -> None:
  21601. """
  21602. Camera-IMU triggering and synchronisation message.
  21603. 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)
  21604. seq : Image frame sequence (type:uint32_t)
  21605. """
  21606. self.send(self.camera_trigger_encode(time_usec, seq), force_mavlink1=force_mavlink1)
  21607. 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:
  21608. """
  21609. The global position, as returned by the Global Positioning System
  21610. (GPS). This is NOT the global position
  21611. estimate of the system, but rather a RAW sensor value. See
  21612. message GLOBAL_POSITION_INT for the global position estimate.
  21613. 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)
  21614. 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)
  21615. lat : Latitude (WGS84) [degE7] (type:int32_t)
  21616. lon : Longitude (WGS84) [degE7] (type:int32_t)
  21617. alt : Altitude (MSL). Positive for up. [mm] (type:int32_t)
  21618. eph : GPS HDOP horizontal dilution of position (unitless * 100). If unknown, set to: UINT16_MAX (type:uint16_t)
  21619. epv : GPS VDOP vertical dilution of position (unitless * 100). If unknown, set to: UINT16_MAX (type:uint16_t)
  21620. vel : GPS ground speed. If unknown, set to: UINT16_MAX [cm/s] (type:uint16_t)
  21621. vn : GPS velocity in north direction in earth-fixed NED frame [cm/s] (type:int16_t)
  21622. ve : GPS velocity in east direction in earth-fixed NED frame [cm/s] (type:int16_t)
  21623. vd : GPS velocity in down direction in earth-fixed NED frame [cm/s] (type:int16_t)
  21624. 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)
  21625. satellites_visible : Number of satellites visible. If unknown, set to UINT8_MAX (type:uint8_t)
  21626. id : GPS ID (zero indexed). Used for multiple GPS inputs (type:uint8_t)
  21627. yaw : Yaw of vehicle relative to Earth's North, zero means not available, use 36000 for north [cdeg] (type:uint16_t)
  21628. """
  21629. return MAVLink_hil_gps_message(time_usec, fix_type, lat, lon, alt, eph, epv, vel, vn, ve, vd, cog, satellites_visible, id, yaw)
  21630. 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:
  21631. """
  21632. The global position, as returned by the Global Positioning System
  21633. (GPS). This is NOT the global position
  21634. estimate of the system, but rather a RAW sensor value. See
  21635. message GLOBAL_POSITION_INT for the global position estimate.
  21636. 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)
  21637. 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)
  21638. lat : Latitude (WGS84) [degE7] (type:int32_t)
  21639. lon : Longitude (WGS84) [degE7] (type:int32_t)
  21640. alt : Altitude (MSL). Positive for up. [mm] (type:int32_t)
  21641. eph : GPS HDOP horizontal dilution of position (unitless * 100). If unknown, set to: UINT16_MAX (type:uint16_t)
  21642. epv : GPS VDOP vertical dilution of position (unitless * 100). If unknown, set to: UINT16_MAX (type:uint16_t)
  21643. vel : GPS ground speed. If unknown, set to: UINT16_MAX [cm/s] (type:uint16_t)
  21644. vn : GPS velocity in north direction in earth-fixed NED frame [cm/s] (type:int16_t)
  21645. ve : GPS velocity in east direction in earth-fixed NED frame [cm/s] (type:int16_t)
  21646. vd : GPS velocity in down direction in earth-fixed NED frame [cm/s] (type:int16_t)
  21647. 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)
  21648. satellites_visible : Number of satellites visible. If unknown, set to UINT8_MAX (type:uint8_t)
  21649. id : GPS ID (zero indexed). Used for multiple GPS inputs (type:uint8_t)
  21650. yaw : Yaw of vehicle relative to Earth's North, zero means not available, use 36000 for north [cdeg] (type:uint16_t)
  21651. """
  21652. 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)
  21653. 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:
  21654. """
  21655. Simulated optical flow from a flow sensor (e.g. PX4FLOW or optical
  21656. mouse sensor)
  21657. 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)
  21658. sensor_id : Sensor ID (type:uint8_t)
  21659. 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)
  21660. 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)
  21661. 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)
  21662. integrated_xgyro : RH rotation around X axis [rad] (type:float)
  21663. integrated_ygyro : RH rotation around Y axis [rad] (type:float)
  21664. integrated_zgyro : RH rotation around Z axis [rad] (type:float)
  21665. temperature : Temperature [cdegC] (type:int16_t)
  21666. quality : Optical flow quality / confidence. 0: no valid flow, 255: maximum quality (type:uint8_t)
  21667. time_delta_distance_us : Time since the distance was sampled. [us] (type:uint32_t)
  21668. distance : Distance to the center of the flow field. Positive value (including zero): distance known. Negative value: Unknown distance. [m] (type:float)
  21669. """
  21670. 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)
  21671. 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:
  21672. """
  21673. Simulated optical flow from a flow sensor (e.g. PX4FLOW or optical
  21674. mouse sensor)
  21675. 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)
  21676. sensor_id : Sensor ID (type:uint8_t)
  21677. 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)
  21678. 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)
  21679. 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)
  21680. integrated_xgyro : RH rotation around X axis [rad] (type:float)
  21681. integrated_ygyro : RH rotation around Y axis [rad] (type:float)
  21682. integrated_zgyro : RH rotation around Z axis [rad] (type:float)
  21683. temperature : Temperature [cdegC] (type:int16_t)
  21684. quality : Optical flow quality / confidence. 0: no valid flow, 255: maximum quality (type:uint8_t)
  21685. time_delta_distance_us : Time since the distance was sampled. [us] (type:uint32_t)
  21686. distance : Distance to the center of the flow field. Positive value (including zero): distance known. Negative value: Unknown distance. [m] (type:float)
  21687. """
  21688. 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)
  21689. 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:
  21690. """
  21691. Sent from simulation to autopilot, avoids in contrast to HIL_STATE
  21692. singularities. This packet is useful for high throughput
  21693. applications such as hardware in the loop simulations.
  21694. 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)
  21695. 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)
  21696. rollspeed : Body frame roll / phi angular speed [rad/s] (type:float)
  21697. pitchspeed : Body frame pitch / theta angular speed [rad/s] (type:float)
  21698. yawspeed : Body frame yaw / psi angular speed [rad/s] (type:float)
  21699. lat : Latitude [degE7] (type:int32_t)
  21700. lon : Longitude [degE7] (type:int32_t)
  21701. alt : Altitude [mm] (type:int32_t)
  21702. vx : Ground X Speed (Latitude) [cm/s] (type:int16_t)
  21703. vy : Ground Y Speed (Longitude) [cm/s] (type:int16_t)
  21704. vz : Ground Z Speed (Altitude) [cm/s] (type:int16_t)
  21705. ind_airspeed : Indicated airspeed [cm/s] (type:uint16_t)
  21706. true_airspeed : True airspeed [cm/s] (type:uint16_t)
  21707. xacc : X acceleration [mG] (type:int16_t)
  21708. yacc : Y acceleration [mG] (type:int16_t)
  21709. zacc : Z acceleration [mG] (type:int16_t)
  21710. """
  21711. 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)
  21712. 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:
  21713. """
  21714. Sent from simulation to autopilot, avoids in contrast to HIL_STATE
  21715. singularities. This packet is useful for high throughput
  21716. applications such as hardware in the loop simulations.
  21717. 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)
  21718. 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)
  21719. rollspeed : Body frame roll / phi angular speed [rad/s] (type:float)
  21720. pitchspeed : Body frame pitch / theta angular speed [rad/s] (type:float)
  21721. yawspeed : Body frame yaw / psi angular speed [rad/s] (type:float)
  21722. lat : Latitude [degE7] (type:int32_t)
  21723. lon : Longitude [degE7] (type:int32_t)
  21724. alt : Altitude [mm] (type:int32_t)
  21725. vx : Ground X Speed (Latitude) [cm/s] (type:int16_t)
  21726. vy : Ground Y Speed (Longitude) [cm/s] (type:int16_t)
  21727. vz : Ground Z Speed (Altitude) [cm/s] (type:int16_t)
  21728. ind_airspeed : Indicated airspeed [cm/s] (type:uint16_t)
  21729. true_airspeed : True airspeed [cm/s] (type:uint16_t)
  21730. xacc : X acceleration [mG] (type:int16_t)
  21731. yacc : Y acceleration [mG] (type:int16_t)
  21732. zacc : Z acceleration [mG] (type:int16_t)
  21733. """
  21734. 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)
  21735. 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:
  21736. """
  21737. The RAW IMU readings for secondary 9DOF sensor setup. This message
  21738. should contain the scaled values to the described units
  21739. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  21740. xacc : X acceleration [mG] (type:int16_t)
  21741. yacc : Y acceleration [mG] (type:int16_t)
  21742. zacc : Z acceleration [mG] (type:int16_t)
  21743. xgyro : Angular speed around X axis [mrad/s] (type:int16_t)
  21744. ygyro : Angular speed around Y axis [mrad/s] (type:int16_t)
  21745. zgyro : Angular speed around Z axis [mrad/s] (type:int16_t)
  21746. xmag : X Magnetic field [mgauss] (type:int16_t)
  21747. ymag : Y Magnetic field [mgauss] (type:int16_t)
  21748. zmag : Z Magnetic field [mgauss] (type:int16_t)
  21749. 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)
  21750. """
  21751. return MAVLink_scaled_imu2_message(time_boot_ms, xacc, yacc, zacc, xgyro, ygyro, zgyro, xmag, ymag, zmag, temperature)
  21752. 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:
  21753. """
  21754. The RAW IMU readings for secondary 9DOF sensor setup. This message
  21755. should contain the scaled values to the described units
  21756. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  21757. xacc : X acceleration [mG] (type:int16_t)
  21758. yacc : Y acceleration [mG] (type:int16_t)
  21759. zacc : Z acceleration [mG] (type:int16_t)
  21760. xgyro : Angular speed around X axis [mrad/s] (type:int16_t)
  21761. ygyro : Angular speed around Y axis [mrad/s] (type:int16_t)
  21762. zgyro : Angular speed around Z axis [mrad/s] (type:int16_t)
  21763. xmag : X Magnetic field [mgauss] (type:int16_t)
  21764. ymag : Y Magnetic field [mgauss] (type:int16_t)
  21765. zmag : Z Magnetic field [mgauss] (type:int16_t)
  21766. 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)
  21767. """
  21768. self.send(self.scaled_imu2_encode(time_boot_ms, xacc, yacc, zacc, xgyro, ygyro, zgyro, xmag, ymag, zmag, temperature), force_mavlink1=force_mavlink1)
  21769. def log_request_list_encode(self, target_system: int, target_component: int, start: int, end: int) -> MAVLink_log_request_list_message:
  21770. """
  21771. Request a list of available logs. On some systems calling this may
  21772. stop on-board logging until LOG_REQUEST_END is called. If
  21773. there are no log files available this request shall be
  21774. answered with one LOG_ENTRY message with id = 0 and num_logs =
  21775. 0.
  21776. target_system : System ID (type:uint8_t)
  21777. target_component : Component ID (type:uint8_t)
  21778. start : First log id (0 for first available) (type:uint16_t)
  21779. end : Last log id (0xffff for last available) (type:uint16_t)
  21780. """
  21781. return MAVLink_log_request_list_message(target_system, target_component, start, end)
  21782. def log_request_list_send(self, target_system: int, target_component: int, start: int, end: int, force_mavlink1: bool = False) -> None:
  21783. """
  21784. Request a list of available logs. On some systems calling this may
  21785. stop on-board logging until LOG_REQUEST_END is called. If
  21786. there are no log files available this request shall be
  21787. answered with one LOG_ENTRY message with id = 0 and num_logs =
  21788. 0.
  21789. target_system : System ID (type:uint8_t)
  21790. target_component : Component ID (type:uint8_t)
  21791. start : First log id (0 for first available) (type:uint16_t)
  21792. end : Last log id (0xffff for last available) (type:uint16_t)
  21793. """
  21794. self.send(self.log_request_list_encode(target_system, target_component, start, end), force_mavlink1=force_mavlink1)
  21795. def log_entry_encode(self, id: int, num_logs: int, last_log_num: int, time_utc: int, size: int) -> MAVLink_log_entry_message:
  21796. """
  21797. Reply to LOG_REQUEST_LIST
  21798. id : Log id (type:uint16_t)
  21799. num_logs : Total number of logs (type:uint16_t)
  21800. last_log_num : High log number (type:uint16_t)
  21801. time_utc : UTC timestamp of log since 1970, or 0 if not available [s] (type:uint32_t)
  21802. size : Size of the log (may be approximate) [bytes] (type:uint32_t)
  21803. """
  21804. return MAVLink_log_entry_message(id, num_logs, last_log_num, time_utc, size)
  21805. def log_entry_send(self, id: int, num_logs: int, last_log_num: int, time_utc: int, size: int, force_mavlink1: bool = False) -> None:
  21806. """
  21807. Reply to LOG_REQUEST_LIST
  21808. id : Log id (type:uint16_t)
  21809. num_logs : Total number of logs (type:uint16_t)
  21810. last_log_num : High log number (type:uint16_t)
  21811. time_utc : UTC timestamp of log since 1970, or 0 if not available [s] (type:uint32_t)
  21812. size : Size of the log (may be approximate) [bytes] (type:uint32_t)
  21813. """
  21814. self.send(self.log_entry_encode(id, num_logs, last_log_num, time_utc, size), force_mavlink1=force_mavlink1)
  21815. def log_request_data_encode(self, target_system: int, target_component: int, id: int, ofs: int, count: int) -> MAVLink_log_request_data_message:
  21816. """
  21817. Request a chunk of a log
  21818. target_system : System ID (type:uint8_t)
  21819. target_component : Component ID (type:uint8_t)
  21820. id : Log id (from LOG_ENTRY reply) (type:uint16_t)
  21821. ofs : Offset into the log (type:uint32_t)
  21822. count : Number of bytes [bytes] (type:uint32_t)
  21823. """
  21824. return MAVLink_log_request_data_message(target_system, target_component, id, ofs, count)
  21825. def log_request_data_send(self, target_system: int, target_component: int, id: int, ofs: int, count: int, force_mavlink1: bool = False) -> None:
  21826. """
  21827. Request a chunk of a log
  21828. target_system : System ID (type:uint8_t)
  21829. target_component : Component ID (type:uint8_t)
  21830. id : Log id (from LOG_ENTRY reply) (type:uint16_t)
  21831. ofs : Offset into the log (type:uint32_t)
  21832. count : Number of bytes [bytes] (type:uint32_t)
  21833. """
  21834. self.send(self.log_request_data_encode(target_system, target_component, id, ofs, count), force_mavlink1=force_mavlink1)
  21835. def log_data_encode(self, id: int, ofs: int, count: int, data: Sequence[int]) -> MAVLink_log_data_message:
  21836. """
  21837. Reply to LOG_REQUEST_DATA
  21838. id : Log id (from LOG_ENTRY reply) (type:uint16_t)
  21839. ofs : Offset into the log (type:uint32_t)
  21840. count : Number of bytes (zero for end of log) [bytes] (type:uint8_t)
  21841. data : log data (type:uint8_t)
  21842. """
  21843. return MAVLink_log_data_message(id, ofs, count, data)
  21844. def log_data_send(self, id: int, ofs: int, count: int, data: Sequence[int], force_mavlink1: bool = False) -> None:
  21845. """
  21846. Reply to LOG_REQUEST_DATA
  21847. id : Log id (from LOG_ENTRY reply) (type:uint16_t)
  21848. ofs : Offset into the log (type:uint32_t)
  21849. count : Number of bytes (zero for end of log) [bytes] (type:uint8_t)
  21850. data : log data (type:uint8_t)
  21851. """
  21852. self.send(self.log_data_encode(id, ofs, count, data), force_mavlink1=force_mavlink1)
  21853. def log_erase_encode(self, target_system: int, target_component: int) -> MAVLink_log_erase_message:
  21854. """
  21855. Erase all logs
  21856. target_system : System ID (type:uint8_t)
  21857. target_component : Component ID (type:uint8_t)
  21858. """
  21859. return MAVLink_log_erase_message(target_system, target_component)
  21860. def log_erase_send(self, target_system: int, target_component: int, force_mavlink1: bool = False) -> None:
  21861. """
  21862. Erase all logs
  21863. target_system : System ID (type:uint8_t)
  21864. target_component : Component ID (type:uint8_t)
  21865. """
  21866. self.send(self.log_erase_encode(target_system, target_component), force_mavlink1=force_mavlink1)
  21867. def log_request_end_encode(self, target_system: int, target_component: int) -> MAVLink_log_request_end_message:
  21868. """
  21869. Stop log transfer and resume normal logging
  21870. target_system : System ID (type:uint8_t)
  21871. target_component : Component ID (type:uint8_t)
  21872. """
  21873. return MAVLink_log_request_end_message(target_system, target_component)
  21874. def log_request_end_send(self, target_system: int, target_component: int, force_mavlink1: bool = False) -> None:
  21875. """
  21876. Stop log transfer and resume normal logging
  21877. target_system : System ID (type:uint8_t)
  21878. target_component : Component ID (type:uint8_t)
  21879. """
  21880. self.send(self.log_request_end_encode(target_system, target_component), force_mavlink1=force_mavlink1)
  21881. def gps_inject_data_encode(self, target_system: int, target_component: int, len: int, data: Sequence[int]) -> MAVLink_gps_inject_data_message:
  21882. """
  21883. Data for injecting into the onboard GPS (used for DGPS)
  21884. target_system : System ID (type:uint8_t)
  21885. target_component : Component ID (type:uint8_t)
  21886. len : Data length [bytes] (type:uint8_t)
  21887. data : Raw data (110 is enough for 12 satellites of RTCMv2) (type:uint8_t)
  21888. """
  21889. return MAVLink_gps_inject_data_message(target_system, target_component, len, data)
  21890. def gps_inject_data_send(self, target_system: int, target_component: int, len: int, data: Sequence[int], force_mavlink1: bool = False) -> None:
  21891. """
  21892. Data for injecting into the onboard GPS (used for DGPS)
  21893. target_system : System ID (type:uint8_t)
  21894. target_component : Component ID (type:uint8_t)
  21895. len : Data length [bytes] (type:uint8_t)
  21896. data : Raw data (110 is enough for 12 satellites of RTCMv2) (type:uint8_t)
  21897. """
  21898. self.send(self.gps_inject_data_encode(target_system, target_component, len, data), force_mavlink1=force_mavlink1)
  21899. 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:
  21900. """
  21901. Second GPS data.
  21902. 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)
  21903. fix_type : GPS fix type. (type:uint8_t, values:GPS_FIX_TYPE)
  21904. lat : Latitude (WGS84) [degE7] (type:int32_t)
  21905. lon : Longitude (WGS84) [degE7] (type:int32_t)
  21906. alt : Altitude (MSL). Positive for up. [mm] (type:int32_t)
  21907. eph : GPS HDOP horizontal dilution of position (unitless * 100). If unknown, set to: UINT16_MAX (type:uint16_t)
  21908. epv : GPS VDOP vertical dilution of position (unitless * 100). If unknown, set to: UINT16_MAX (type:uint16_t)
  21909. vel : GPS ground speed. If unknown, set to: UINT16_MAX [cm/s] (type:uint16_t)
  21910. 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)
  21911. satellites_visible : Number of satellites visible. If unknown, set to UINT8_MAX (type:uint8_t)
  21912. dgps_numch : Number of DGPS satellites (type:uint8_t)
  21913. dgps_age : Age of DGPS info [ms] (type:uint32_t)
  21914. 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)
  21915. alt_ellipsoid : Altitude (above WGS84, EGM96 ellipsoid). Positive for up. [mm] (type:int32_t)
  21916. h_acc : Position uncertainty. [mm] (type:uint32_t)
  21917. v_acc : Altitude uncertainty. [mm] (type:uint32_t)
  21918. vel_acc : Speed uncertainty. [mm] (type:uint32_t)
  21919. hdg_acc : Heading / track uncertainty [degE5] (type:uint32_t)
  21920. """
  21921. 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)
  21922. 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:
  21923. """
  21924. Second GPS data.
  21925. 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)
  21926. fix_type : GPS fix type. (type:uint8_t, values:GPS_FIX_TYPE)
  21927. lat : Latitude (WGS84) [degE7] (type:int32_t)
  21928. lon : Longitude (WGS84) [degE7] (type:int32_t)
  21929. alt : Altitude (MSL). Positive for up. [mm] (type:int32_t)
  21930. eph : GPS HDOP horizontal dilution of position (unitless * 100). If unknown, set to: UINT16_MAX (type:uint16_t)
  21931. epv : GPS VDOP vertical dilution of position (unitless * 100). If unknown, set to: UINT16_MAX (type:uint16_t)
  21932. vel : GPS ground speed. If unknown, set to: UINT16_MAX [cm/s] (type:uint16_t)
  21933. 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)
  21934. satellites_visible : Number of satellites visible. If unknown, set to UINT8_MAX (type:uint8_t)
  21935. dgps_numch : Number of DGPS satellites (type:uint8_t)
  21936. dgps_age : Age of DGPS info [ms] (type:uint32_t)
  21937. 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)
  21938. alt_ellipsoid : Altitude (above WGS84, EGM96 ellipsoid). Positive for up. [mm] (type:int32_t)
  21939. h_acc : Position uncertainty. [mm] (type:uint32_t)
  21940. v_acc : Altitude uncertainty. [mm] (type:uint32_t)
  21941. vel_acc : Speed uncertainty. [mm] (type:uint32_t)
  21942. hdg_acc : Heading / track uncertainty [degE5] (type:uint32_t)
  21943. """
  21944. 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)
  21945. def power_status_encode(self, Vcc: int, Vservo: int, flags: int) -> MAVLink_power_status_message:
  21946. """
  21947. Power supply status
  21948. Vcc : 5V rail voltage. [mV] (type:uint16_t)
  21949. Vservo : Servo rail voltage. [mV] (type:uint16_t)
  21950. flags : Bitmap of power supply status flags. (type:uint16_t, values:MAV_POWER_STATUS)
  21951. """
  21952. return MAVLink_power_status_message(Vcc, Vservo, flags)
  21953. def power_status_send(self, Vcc: int, Vservo: int, flags: int, force_mavlink1: bool = False) -> None:
  21954. """
  21955. Power supply status
  21956. Vcc : 5V rail voltage. [mV] (type:uint16_t)
  21957. Vservo : Servo rail voltage. [mV] (type:uint16_t)
  21958. flags : Bitmap of power supply status flags. (type:uint16_t, values:MAV_POWER_STATUS)
  21959. """
  21960. self.send(self.power_status_encode(Vcc, Vservo, flags), force_mavlink1=force_mavlink1)
  21961. 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:
  21962. """
  21963. Control a serial port. This can be used for raw access to an onboard
  21964. serial peripheral such as a GPS or telemetry radio. It is
  21965. designed to make it possible to update the devices firmware
  21966. via MAVLink messages or change the devices settings. A message
  21967. with zero bytes can be used to change just the baudrate.
  21968. device : Serial control device type. (type:uint8_t, values:SERIAL_CONTROL_DEV)
  21969. flags : Bitmap of serial control flags. (type:uint8_t, values:SERIAL_CONTROL_FLAG)
  21970. timeout : Timeout for reply data [ms] (type:uint16_t)
  21971. baudrate : Baudrate of transfer. Zero means no change. [bits/s] (type:uint32_t)
  21972. count : how many bytes in this transfer [bytes] (type:uint8_t)
  21973. data : serial data (type:uint8_t)
  21974. target_system : System ID (type:uint8_t)
  21975. target_component : Component ID (type:uint8_t)
  21976. """
  21977. return MAVLink_serial_control_message(device, flags, timeout, baudrate, count, data, target_system, target_component)
  21978. 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:
  21979. """
  21980. Control a serial port. This can be used for raw access to an onboard
  21981. serial peripheral such as a GPS or telemetry radio. It is
  21982. designed to make it possible to update the devices firmware
  21983. via MAVLink messages or change the devices settings. A message
  21984. with zero bytes can be used to change just the baudrate.
  21985. device : Serial control device type. (type:uint8_t, values:SERIAL_CONTROL_DEV)
  21986. flags : Bitmap of serial control flags. (type:uint8_t, values:SERIAL_CONTROL_FLAG)
  21987. timeout : Timeout for reply data [ms] (type:uint16_t)
  21988. baudrate : Baudrate of transfer. Zero means no change. [bits/s] (type:uint32_t)
  21989. count : how many bytes in this transfer [bytes] (type:uint8_t)
  21990. data : serial data (type:uint8_t)
  21991. target_system : System ID (type:uint8_t)
  21992. target_component : Component ID (type:uint8_t)
  21993. """
  21994. self.send(self.serial_control_encode(device, flags, timeout, baudrate, count, data, target_system, target_component), force_mavlink1=force_mavlink1)
  21995. 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:
  21996. """
  21997. RTK GPS data. Gives information on the relative baseline calculation
  21998. the GPS is reporting
  21999. time_last_baseline_ms : Time since boot of last baseline message received. [ms] (type:uint32_t)
  22000. rtk_receiver_id : Identification of connected RTK receiver. (type:uint8_t)
  22001. wn : GPS Week Number of last baseline (type:uint16_t)
  22002. tow : GPS Time of Week of last baseline [ms] (type:uint32_t)
  22003. rtk_health : GPS-specific health report for RTK data. (type:uint8_t)
  22004. rtk_rate : Rate of baseline messages being received by GPS [Hz] (type:uint8_t)
  22005. nsats : Current number of sats used for RTK calculation. (type:uint8_t)
  22006. baseline_coords_type : Coordinate system of baseline (type:uint8_t, values:RTK_BASELINE_COORDINATE_SYSTEM)
  22007. baseline_a_mm : Current baseline in ECEF x or NED north component. [mm] (type:int32_t)
  22008. baseline_b_mm : Current baseline in ECEF y or NED east component. [mm] (type:int32_t)
  22009. baseline_c_mm : Current baseline in ECEF z or NED down component. [mm] (type:int32_t)
  22010. accuracy : Current estimate of baseline accuracy. (type:uint32_t)
  22011. iar_num_hypotheses : Current number of integer ambiguity hypotheses. (type:int32_t)
  22012. """
  22013. 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)
  22014. 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:
  22015. """
  22016. RTK GPS data. Gives information on the relative baseline calculation
  22017. the GPS is reporting
  22018. time_last_baseline_ms : Time since boot of last baseline message received. [ms] (type:uint32_t)
  22019. rtk_receiver_id : Identification of connected RTK receiver. (type:uint8_t)
  22020. wn : GPS Week Number of last baseline (type:uint16_t)
  22021. tow : GPS Time of Week of last baseline [ms] (type:uint32_t)
  22022. rtk_health : GPS-specific health report for RTK data. (type:uint8_t)
  22023. rtk_rate : Rate of baseline messages being received by GPS [Hz] (type:uint8_t)
  22024. nsats : Current number of sats used for RTK calculation. (type:uint8_t)
  22025. baseline_coords_type : Coordinate system of baseline (type:uint8_t, values:RTK_BASELINE_COORDINATE_SYSTEM)
  22026. baseline_a_mm : Current baseline in ECEF x or NED north component. [mm] (type:int32_t)
  22027. baseline_b_mm : Current baseline in ECEF y or NED east component. [mm] (type:int32_t)
  22028. baseline_c_mm : Current baseline in ECEF z or NED down component. [mm] (type:int32_t)
  22029. accuracy : Current estimate of baseline accuracy. (type:uint32_t)
  22030. iar_num_hypotheses : Current number of integer ambiguity hypotheses. (type:int32_t)
  22031. """
  22032. 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)
  22033. 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:
  22034. """
  22035. RTK GPS data. Gives information on the relative baseline calculation
  22036. the GPS is reporting
  22037. time_last_baseline_ms : Time since boot of last baseline message received. [ms] (type:uint32_t)
  22038. rtk_receiver_id : Identification of connected RTK receiver. (type:uint8_t)
  22039. wn : GPS Week Number of last baseline (type:uint16_t)
  22040. tow : GPS Time of Week of last baseline [ms] (type:uint32_t)
  22041. rtk_health : GPS-specific health report for RTK data. (type:uint8_t)
  22042. rtk_rate : Rate of baseline messages being received by GPS [Hz] (type:uint8_t)
  22043. nsats : Current number of sats used for RTK calculation. (type:uint8_t)
  22044. baseline_coords_type : Coordinate system of baseline (type:uint8_t, values:RTK_BASELINE_COORDINATE_SYSTEM)
  22045. baseline_a_mm : Current baseline in ECEF x or NED north component. [mm] (type:int32_t)
  22046. baseline_b_mm : Current baseline in ECEF y or NED east component. [mm] (type:int32_t)
  22047. baseline_c_mm : Current baseline in ECEF z or NED down component. [mm] (type:int32_t)
  22048. accuracy : Current estimate of baseline accuracy. (type:uint32_t)
  22049. iar_num_hypotheses : Current number of integer ambiguity hypotheses. (type:int32_t)
  22050. """
  22051. 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)
  22052. 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:
  22053. """
  22054. RTK GPS data. Gives information on the relative baseline calculation
  22055. the GPS is reporting
  22056. time_last_baseline_ms : Time since boot of last baseline message received. [ms] (type:uint32_t)
  22057. rtk_receiver_id : Identification of connected RTK receiver. (type:uint8_t)
  22058. wn : GPS Week Number of last baseline (type:uint16_t)
  22059. tow : GPS Time of Week of last baseline [ms] (type:uint32_t)
  22060. rtk_health : GPS-specific health report for RTK data. (type:uint8_t)
  22061. rtk_rate : Rate of baseline messages being received by GPS [Hz] (type:uint8_t)
  22062. nsats : Current number of sats used for RTK calculation. (type:uint8_t)
  22063. baseline_coords_type : Coordinate system of baseline (type:uint8_t, values:RTK_BASELINE_COORDINATE_SYSTEM)
  22064. baseline_a_mm : Current baseline in ECEF x or NED north component. [mm] (type:int32_t)
  22065. baseline_b_mm : Current baseline in ECEF y or NED east component. [mm] (type:int32_t)
  22066. baseline_c_mm : Current baseline in ECEF z or NED down component. [mm] (type:int32_t)
  22067. accuracy : Current estimate of baseline accuracy. (type:uint32_t)
  22068. iar_num_hypotheses : Current number of integer ambiguity hypotheses. (type:int32_t)
  22069. """
  22070. 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)
  22071. 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:
  22072. """
  22073. The RAW IMU readings for 3rd 9DOF sensor setup. This message should
  22074. contain the scaled values to the described units
  22075. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  22076. xacc : X acceleration [mG] (type:int16_t)
  22077. yacc : Y acceleration [mG] (type:int16_t)
  22078. zacc : Z acceleration [mG] (type:int16_t)
  22079. xgyro : Angular speed around X axis [mrad/s] (type:int16_t)
  22080. ygyro : Angular speed around Y axis [mrad/s] (type:int16_t)
  22081. zgyro : Angular speed around Z axis [mrad/s] (type:int16_t)
  22082. xmag : X Magnetic field [mgauss] (type:int16_t)
  22083. ymag : Y Magnetic field [mgauss] (type:int16_t)
  22084. zmag : Z Magnetic field [mgauss] (type:int16_t)
  22085. 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)
  22086. """
  22087. return MAVLink_scaled_imu3_message(time_boot_ms, xacc, yacc, zacc, xgyro, ygyro, zgyro, xmag, ymag, zmag, temperature)
  22088. 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:
  22089. """
  22090. The RAW IMU readings for 3rd 9DOF sensor setup. This message should
  22091. contain the scaled values to the described units
  22092. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  22093. xacc : X acceleration [mG] (type:int16_t)
  22094. yacc : Y acceleration [mG] (type:int16_t)
  22095. zacc : Z acceleration [mG] (type:int16_t)
  22096. xgyro : Angular speed around X axis [mrad/s] (type:int16_t)
  22097. ygyro : Angular speed around Y axis [mrad/s] (type:int16_t)
  22098. zgyro : Angular speed around Z axis [mrad/s] (type:int16_t)
  22099. xmag : X Magnetic field [mgauss] (type:int16_t)
  22100. ymag : Y Magnetic field [mgauss] (type:int16_t)
  22101. zmag : Z Magnetic field [mgauss] (type:int16_t)
  22102. 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)
  22103. """
  22104. self.send(self.scaled_imu3_encode(time_boot_ms, xacc, yacc, zacc, xgyro, ygyro, zgyro, xmag, ymag, zmag, temperature), force_mavlink1=force_mavlink1)
  22105. 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:
  22106. """
  22107. Handshake message to initiate, control and stop image streaming when
  22108. using the Image Transmission Protocol:
  22109. https://mavlink.io/en/services/image_transmission.html.
  22110. type : Type of requested/acknowledged data. (type:uint8_t, values:MAVLINK_DATA_STREAM_TYPE)
  22111. size : total data size (set on ACK only). [bytes] (type:uint32_t)
  22112. width : Width of a matrix or image. (type:uint16_t)
  22113. height : Height of a matrix or image. (type:uint16_t)
  22114. packets : Number of packets being sent (set on ACK only). (type:uint16_t)
  22115. payload : Payload size per packet (normally 253 byte, see DATA field size in message ENCAPSULATED_DATA) (set on ACK only). [bytes] (type:uint8_t)
  22116. jpg_quality : JPEG quality. Values: [1-100]. [%] (type:uint8_t)
  22117. """
  22118. return MAVLink_data_transmission_handshake_message(type, size, width, height, packets, payload, jpg_quality)
  22119. 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:
  22120. """
  22121. Handshake message to initiate, control and stop image streaming when
  22122. using the Image Transmission Protocol:
  22123. https://mavlink.io/en/services/image_transmission.html.
  22124. type : Type of requested/acknowledged data. (type:uint8_t, values:MAVLINK_DATA_STREAM_TYPE)
  22125. size : total data size (set on ACK only). [bytes] (type:uint32_t)
  22126. width : Width of a matrix or image. (type:uint16_t)
  22127. height : Height of a matrix or image. (type:uint16_t)
  22128. packets : Number of packets being sent (set on ACK only). (type:uint16_t)
  22129. payload : Payload size per packet (normally 253 byte, see DATA field size in message ENCAPSULATED_DATA) (set on ACK only). [bytes] (type:uint8_t)
  22130. jpg_quality : JPEG quality. Values: [1-100]. [%] (type:uint8_t)
  22131. """
  22132. self.send(self.data_transmission_handshake_encode(type, size, width, height, packets, payload, jpg_quality), force_mavlink1=force_mavlink1)
  22133. def encapsulated_data_encode(self, seqnr: int, data: Sequence[int]) -> MAVLink_encapsulated_data_message:
  22134. """
  22135. Data packet for images sent using the Image Transmission Protocol:
  22136. https://mavlink.io/en/services/image_transmission.html.
  22137. seqnr : sequence number (starting with 0 on every transmission) (type:uint16_t)
  22138. data : image data bytes (type:uint8_t)
  22139. """
  22140. return MAVLink_encapsulated_data_message(seqnr, data)
  22141. def encapsulated_data_send(self, seqnr: int, data: Sequence[int], force_mavlink1: bool = False) -> None:
  22142. """
  22143. Data packet for images sent using the Image Transmission Protocol:
  22144. https://mavlink.io/en/services/image_transmission.html.
  22145. seqnr : sequence number (starting with 0 on every transmission) (type:uint16_t)
  22146. data : image data bytes (type:uint8_t)
  22147. """
  22148. self.send(self.encapsulated_data_encode(seqnr, data), force_mavlink1=force_mavlink1)
  22149. 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:
  22150. """
  22151. Distance sensor information for an onboard rangefinder.
  22152. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  22153. min_distance : Minimum distance the sensor can measure [cm] (type:uint16_t)
  22154. max_distance : Maximum distance the sensor can measure [cm] (type:uint16_t)
  22155. current_distance : Current distance reading [cm] (type:uint16_t)
  22156. type : Type of distance sensor. (type:uint8_t, values:MAV_DISTANCE_SENSOR)
  22157. id : Onboard ID of the sensor (type:uint8_t)
  22158. 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)
  22159. covariance : Measurement variance. Max standard deviation is 6cm. UINT8_MAX if unknown. [cm^2] (type:uint8_t)
  22160. 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)
  22161. 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)
  22162. 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)
  22163. 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)
  22164. """
  22165. 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)
  22166. 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:
  22167. """
  22168. Distance sensor information for an onboard rangefinder.
  22169. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  22170. min_distance : Minimum distance the sensor can measure [cm] (type:uint16_t)
  22171. max_distance : Maximum distance the sensor can measure [cm] (type:uint16_t)
  22172. current_distance : Current distance reading [cm] (type:uint16_t)
  22173. type : Type of distance sensor. (type:uint8_t, values:MAV_DISTANCE_SENSOR)
  22174. id : Onboard ID of the sensor (type:uint8_t)
  22175. 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)
  22176. covariance : Measurement variance. Max standard deviation is 6cm. UINT8_MAX if unknown. [cm^2] (type:uint8_t)
  22177. 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)
  22178. 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)
  22179. 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)
  22180. 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)
  22181. """
  22182. 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)
  22183. def terrain_request_encode(self, lat: int, lon: int, grid_spacing: int, mask: int) -> MAVLink_terrain_request_message:
  22184. """
  22185. Request for terrain data and terrain status. See terrain protocol
  22186. docs: https://mavlink.io/en/services/terrain.html
  22187. lat : Latitude of SW corner of first grid [degE7] (type:int32_t)
  22188. lon : Longitude of SW corner of first grid [degE7] (type:int32_t)
  22189. grid_spacing : Grid spacing [m] (type:uint16_t)
  22190. mask : Bitmask of requested 4x4 grids (row major 8x7 array of grids, 56 bits) (type:uint64_t)
  22191. """
  22192. return MAVLink_terrain_request_message(lat, lon, grid_spacing, mask)
  22193. def terrain_request_send(self, lat: int, lon: int, grid_spacing: int, mask: int, force_mavlink1: bool = False) -> None:
  22194. """
  22195. Request for terrain data and terrain status. See terrain protocol
  22196. docs: https://mavlink.io/en/services/terrain.html
  22197. lat : Latitude of SW corner of first grid [degE7] (type:int32_t)
  22198. lon : Longitude of SW corner of first grid [degE7] (type:int32_t)
  22199. grid_spacing : Grid spacing [m] (type:uint16_t)
  22200. mask : Bitmask of requested 4x4 grids (row major 8x7 array of grids, 56 bits) (type:uint64_t)
  22201. """
  22202. self.send(self.terrain_request_encode(lat, lon, grid_spacing, mask), force_mavlink1=force_mavlink1)
  22203. def terrain_data_encode(self, lat: int, lon: int, grid_spacing: int, gridbit: int, data: Sequence[int]) -> MAVLink_terrain_data_message:
  22204. """
  22205. Terrain data sent from GCS. The lat/lon and grid_spacing must be the
  22206. same as a lat/lon from a TERRAIN_REQUEST. See terrain protocol
  22207. docs: https://mavlink.io/en/services/terrain.html
  22208. lat : Latitude of SW corner of first grid [degE7] (type:int32_t)
  22209. lon : Longitude of SW corner of first grid [degE7] (type:int32_t)
  22210. grid_spacing : Grid spacing [m] (type:uint16_t)
  22211. gridbit : bit within the terrain request mask (type:uint8_t)
  22212. data : Terrain data MSL [m] (type:int16_t)
  22213. """
  22214. return MAVLink_terrain_data_message(lat, lon, grid_spacing, gridbit, data)
  22215. def terrain_data_send(self, lat: int, lon: int, grid_spacing: int, gridbit: int, data: Sequence[int], force_mavlink1: bool = False) -> None:
  22216. """
  22217. Terrain data sent from GCS. The lat/lon and grid_spacing must be the
  22218. same as a lat/lon from a TERRAIN_REQUEST. See terrain protocol
  22219. docs: https://mavlink.io/en/services/terrain.html
  22220. lat : Latitude of SW corner of first grid [degE7] (type:int32_t)
  22221. lon : Longitude of SW corner of first grid [degE7] (type:int32_t)
  22222. grid_spacing : Grid spacing [m] (type:uint16_t)
  22223. gridbit : bit within the terrain request mask (type:uint8_t)
  22224. data : Terrain data MSL [m] (type:int16_t)
  22225. """
  22226. self.send(self.terrain_data_encode(lat, lon, grid_spacing, gridbit, data), force_mavlink1=force_mavlink1)
  22227. def terrain_check_encode(self, lat: int, lon: int) -> MAVLink_terrain_check_message:
  22228. """
  22229. Request that the vehicle report terrain height at the given location
  22230. (expected response is a TERRAIN_REPORT). Used by GCS to check
  22231. if vehicle has all terrain data needed for a mission.
  22232. lat : Latitude [degE7] (type:int32_t)
  22233. lon : Longitude [degE7] (type:int32_t)
  22234. """
  22235. return MAVLink_terrain_check_message(lat, lon)
  22236. def terrain_check_send(self, lat: int, lon: int, force_mavlink1: bool = False) -> None:
  22237. """
  22238. Request that the vehicle report terrain height at the given location
  22239. (expected response is a TERRAIN_REPORT). Used by GCS to check
  22240. if vehicle has all terrain data needed for a mission.
  22241. lat : Latitude [degE7] (type:int32_t)
  22242. lon : Longitude [degE7] (type:int32_t)
  22243. """
  22244. self.send(self.terrain_check_encode(lat, lon), force_mavlink1=force_mavlink1)
  22245. 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:
  22246. """
  22247. Streamed from drone to report progress of terrain map download
  22248. (initiated by TERRAIN_REQUEST), or sent as a response to a
  22249. TERRAIN_CHECK request. See terrain protocol docs:
  22250. https://mavlink.io/en/services/terrain.html
  22251. lat : Latitude [degE7] (type:int32_t)
  22252. lon : Longitude [degE7] (type:int32_t)
  22253. spacing : grid spacing (zero if terrain at this location unavailable) (type:uint16_t)
  22254. terrain_height : Terrain height MSL [m] (type:float)
  22255. current_height : Current vehicle height above lat/lon terrain height [m] (type:float)
  22256. pending : Number of 4x4 terrain blocks waiting to be received or read from disk (type:uint16_t)
  22257. loaded : Number of 4x4 terrain blocks in memory (type:uint16_t)
  22258. """
  22259. return MAVLink_terrain_report_message(lat, lon, spacing, terrain_height, current_height, pending, loaded)
  22260. 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:
  22261. """
  22262. Streamed from drone to report progress of terrain map download
  22263. (initiated by TERRAIN_REQUEST), or sent as a response to a
  22264. TERRAIN_CHECK request. See terrain protocol docs:
  22265. https://mavlink.io/en/services/terrain.html
  22266. lat : Latitude [degE7] (type:int32_t)
  22267. lon : Longitude [degE7] (type:int32_t)
  22268. spacing : grid spacing (zero if terrain at this location unavailable) (type:uint16_t)
  22269. terrain_height : Terrain height MSL [m] (type:float)
  22270. current_height : Current vehicle height above lat/lon terrain height [m] (type:float)
  22271. pending : Number of 4x4 terrain blocks waiting to be received or read from disk (type:uint16_t)
  22272. loaded : Number of 4x4 terrain blocks in memory (type:uint16_t)
  22273. """
  22274. self.send(self.terrain_report_encode(lat, lon, spacing, terrain_height, current_height, pending, loaded), force_mavlink1=force_mavlink1)
  22275. 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:
  22276. """
  22277. Barometer readings for 2nd barometer
  22278. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  22279. press_abs : Absolute pressure [hPa] (type:float)
  22280. press_diff : Differential pressure [hPa] (type:float)
  22281. temperature : Absolute pressure temperature [cdegC] (type:int16_t)
  22282. temperature_press_diff : Differential pressure temperature (0, if not available). Report values of 0 (or 1) as 1 cdegC. [cdegC] (type:int16_t)
  22283. """
  22284. return MAVLink_scaled_pressure2_message(time_boot_ms, press_abs, press_diff, temperature, temperature_press_diff)
  22285. 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:
  22286. """
  22287. Barometer readings for 2nd barometer
  22288. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  22289. press_abs : Absolute pressure [hPa] (type:float)
  22290. press_diff : Differential pressure [hPa] (type:float)
  22291. temperature : Absolute pressure temperature [cdegC] (type:int16_t)
  22292. temperature_press_diff : Differential pressure temperature (0, if not available). Report values of 0 (or 1) as 1 cdegC. [cdegC] (type:int16_t)
  22293. """
  22294. self.send(self.scaled_pressure2_encode(time_boot_ms, press_abs, press_diff, temperature, temperature_press_diff), force_mavlink1=force_mavlink1)
  22295. 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:
  22296. """
  22297. Motion capture attitude and position
  22298. 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)
  22299. q : Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0) (type:float)
  22300. x : X position (NED) [m] (type:float)
  22301. y : Y position (NED) [m] (type:float)
  22302. z : Z position (NED) [m] (type:float)
  22303. 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)
  22304. """
  22305. return MAVLink_att_pos_mocap_message(time_usec, q, x, y, z, covariance)
  22306. 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:
  22307. """
  22308. Motion capture attitude and position
  22309. 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)
  22310. q : Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0) (type:float)
  22311. x : X position (NED) [m] (type:float)
  22312. y : Y position (NED) [m] (type:float)
  22313. z : Z position (NED) [m] (type:float)
  22314. 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)
  22315. """
  22316. self.send(self.att_pos_mocap_encode(time_usec, q, x, y, z, covariance), force_mavlink1=force_mavlink1)
  22317. 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:
  22318. """
  22319. Set the vehicle attitude and body angular rates.
  22320. 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)
  22321. 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)
  22322. target_system : System ID (type:uint8_t)
  22323. target_component : Component ID (type:uint8_t)
  22324. 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)
  22325. """
  22326. return MAVLink_set_actuator_control_target_message(time_usec, group_mlx, target_system, target_component, controls)
  22327. 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:
  22328. """
  22329. Set the vehicle attitude and body angular rates.
  22330. 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)
  22331. 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)
  22332. target_system : System ID (type:uint8_t)
  22333. target_component : Component ID (type:uint8_t)
  22334. 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)
  22335. """
  22336. self.send(self.set_actuator_control_target_encode(time_usec, group_mlx, target_system, target_component, controls), force_mavlink1=force_mavlink1)
  22337. def actuator_control_target_encode(self, time_usec: int, group_mlx: int, controls: Sequence[float]) -> MAVLink_actuator_control_target_message:
  22338. """
  22339. Set the vehicle attitude and body angular rates.
  22340. 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)
  22341. 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)
  22342. 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)
  22343. """
  22344. return MAVLink_actuator_control_target_message(time_usec, group_mlx, controls)
  22345. def actuator_control_target_send(self, time_usec: int, group_mlx: int, controls: Sequence[float], force_mavlink1: bool = False) -> None:
  22346. """
  22347. Set the vehicle attitude and body angular rates.
  22348. 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)
  22349. 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)
  22350. 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)
  22351. """
  22352. self.send(self.actuator_control_target_encode(time_usec, group_mlx, controls), force_mavlink1=force_mavlink1)
  22353. 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:
  22354. """
  22355. The current system altitude.
  22356. 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)
  22357. 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)
  22358. 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)
  22359. 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)
  22360. altitude_relative : This is the altitude above the home position. It resets on each change of the current home position. [m] (type:float)
  22361. 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)
  22362. 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)
  22363. """
  22364. return MAVLink_altitude_message(time_usec, altitude_monotonic, altitude_amsl, altitude_local, altitude_relative, altitude_terrain, bottom_clearance)
  22365. 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:
  22366. """
  22367. The current system altitude.
  22368. 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)
  22369. 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)
  22370. 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)
  22371. 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)
  22372. altitude_relative : This is the altitude above the home position. It resets on each change of the current home position. [m] (type:float)
  22373. 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)
  22374. 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)
  22375. """
  22376. self.send(self.altitude_encode(time_usec, altitude_monotonic, altitude_amsl, altitude_local, altitude_relative, altitude_terrain, bottom_clearance), force_mavlink1=force_mavlink1)
  22377. def resource_request_encode(self, request_id: int, uri_type: int, uri: Sequence[int], transfer_type: int, storage: Sequence[int]) -> MAVLink_resource_request_message:
  22378. """
  22379. The autopilot is requesting a resource (file, binary, other type of
  22380. data)
  22381. request_id : Request ID. This ID should be re-used when sending back URI contents (type:uint8_t)
  22382. uri_type : The type of requested URI. 0 = a file via URL. 1 = a UAVCAN binary (type:uint8_t)
  22383. uri : The requested unique resource identifier (URI). It is not necessarily a straight domain name (depends on the URI type enum) (type:uint8_t)
  22384. transfer_type : The way the autopilot wants to receive the URI. 0 = MAVLink FTP. 1 = binary stream. (type:uint8_t)
  22385. 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)
  22386. """
  22387. return MAVLink_resource_request_message(request_id, uri_type, uri, transfer_type, storage)
  22388. 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:
  22389. """
  22390. The autopilot is requesting a resource (file, binary, other type of
  22391. data)
  22392. request_id : Request ID. This ID should be re-used when sending back URI contents (type:uint8_t)
  22393. uri_type : The type of requested URI. 0 = a file via URL. 1 = a UAVCAN binary (type:uint8_t)
  22394. uri : The requested unique resource identifier (URI). It is not necessarily a straight domain name (depends on the URI type enum) (type:uint8_t)
  22395. transfer_type : The way the autopilot wants to receive the URI. 0 = MAVLink FTP. 1 = binary stream. (type:uint8_t)
  22396. 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)
  22397. """
  22398. self.send(self.resource_request_encode(request_id, uri_type, uri, transfer_type, storage), force_mavlink1=force_mavlink1)
  22399. 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:
  22400. """
  22401. Barometer readings for 3rd barometer
  22402. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  22403. press_abs : Absolute pressure [hPa] (type:float)
  22404. press_diff : Differential pressure [hPa] (type:float)
  22405. temperature : Absolute pressure temperature [cdegC] (type:int16_t)
  22406. temperature_press_diff : Differential pressure temperature (0, if not available). Report values of 0 (or 1) as 1 cdegC. [cdegC] (type:int16_t)
  22407. """
  22408. return MAVLink_scaled_pressure3_message(time_boot_ms, press_abs, press_diff, temperature, temperature_press_diff)
  22409. 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:
  22410. """
  22411. Barometer readings for 3rd barometer
  22412. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  22413. press_abs : Absolute pressure [hPa] (type:float)
  22414. press_diff : Differential pressure [hPa] (type:float)
  22415. temperature : Absolute pressure temperature [cdegC] (type:int16_t)
  22416. temperature_press_diff : Differential pressure temperature (0, if not available). Report values of 0 (or 1) as 1 cdegC. [cdegC] (type:int16_t)
  22417. """
  22418. self.send(self.scaled_pressure3_encode(time_boot_ms, press_abs, press_diff, temperature, temperature_press_diff), force_mavlink1=force_mavlink1)
  22419. 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:
  22420. """
  22421. Current motion information from a designated system
  22422. timestamp : Timestamp (time since system boot). [ms] (type:uint64_t)
  22423. est_capabilities : bit positions for tracker reporting capabilities (POS = 0, VEL = 1, ACCEL = 2, ATT + RATES = 3) (type:uint8_t)
  22424. lat : Latitude (WGS84) [degE7] (type:int32_t)
  22425. lon : Longitude (WGS84) [degE7] (type:int32_t)
  22426. alt : Altitude (MSL) [m] (type:float)
  22427. vel : target velocity (0,0,0) for unknown [m/s] (type:float)
  22428. acc : linear target acceleration (0,0,0) for unknown [m/s/s] (type:float)
  22429. attitude_q : (0 0 0 0 for unknown) (type:float)
  22430. rates : (0 0 0 for unknown) (type:float)
  22431. position_cov : eph epv (type:float)
  22432. custom_state : button states or switches of a tracker device (type:uint64_t)
  22433. """
  22434. return MAVLink_follow_target_message(timestamp, est_capabilities, lat, lon, alt, vel, acc, attitude_q, rates, position_cov, custom_state)
  22435. 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:
  22436. """
  22437. Current motion information from a designated system
  22438. timestamp : Timestamp (time since system boot). [ms] (type:uint64_t)
  22439. est_capabilities : bit positions for tracker reporting capabilities (POS = 0, VEL = 1, ACCEL = 2, ATT + RATES = 3) (type:uint8_t)
  22440. lat : Latitude (WGS84) [degE7] (type:int32_t)
  22441. lon : Longitude (WGS84) [degE7] (type:int32_t)
  22442. alt : Altitude (MSL) [m] (type:float)
  22443. vel : target velocity (0,0,0) for unknown [m/s] (type:float)
  22444. acc : linear target acceleration (0,0,0) for unknown [m/s/s] (type:float)
  22445. attitude_q : (0 0 0 0 for unknown) (type:float)
  22446. rates : (0 0 0 for unknown) (type:float)
  22447. position_cov : eph epv (type:float)
  22448. custom_state : button states or switches of a tracker device (type:uint64_t)
  22449. """
  22450. 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)
  22451. 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:
  22452. """
  22453. The smoothed, monotonic system state used to feed the control loops of
  22454. the system.
  22455. 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)
  22456. x_acc : X acceleration in body frame [m/s/s] (type:float)
  22457. y_acc : Y acceleration in body frame [m/s/s] (type:float)
  22458. z_acc : Z acceleration in body frame [m/s/s] (type:float)
  22459. x_vel : X velocity in body frame [m/s] (type:float)
  22460. y_vel : Y velocity in body frame [m/s] (type:float)
  22461. z_vel : Z velocity in body frame [m/s] (type:float)
  22462. x_pos : X position in local frame [m] (type:float)
  22463. y_pos : Y position in local frame [m] (type:float)
  22464. z_pos : Z position in local frame [m] (type:float)
  22465. airspeed : Airspeed, set to -1 if unknown [m/s] (type:float)
  22466. vel_variance : Variance of body velocity estimate (type:float)
  22467. pos_variance : Variance in local position (type:float)
  22468. q : The attitude, represented as Quaternion (type:float)
  22469. roll_rate : Angular rate in roll axis [rad/s] (type:float)
  22470. pitch_rate : Angular rate in pitch axis [rad/s] (type:float)
  22471. yaw_rate : Angular rate in yaw axis [rad/s] (type:float)
  22472. """
  22473. 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)
  22474. 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:
  22475. """
  22476. The smoothed, monotonic system state used to feed the control loops of
  22477. the system.
  22478. 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)
  22479. x_acc : X acceleration in body frame [m/s/s] (type:float)
  22480. y_acc : Y acceleration in body frame [m/s/s] (type:float)
  22481. z_acc : Z acceleration in body frame [m/s/s] (type:float)
  22482. x_vel : X velocity in body frame [m/s] (type:float)
  22483. y_vel : Y velocity in body frame [m/s] (type:float)
  22484. z_vel : Z velocity in body frame [m/s] (type:float)
  22485. x_pos : X position in local frame [m] (type:float)
  22486. y_pos : Y position in local frame [m] (type:float)
  22487. z_pos : Z position in local frame [m] (type:float)
  22488. airspeed : Airspeed, set to -1 if unknown [m/s] (type:float)
  22489. vel_variance : Variance of body velocity estimate (type:float)
  22490. pos_variance : Variance in local position (type:float)
  22491. q : The attitude, represented as Quaternion (type:float)
  22492. roll_rate : Angular rate in roll axis [rad/s] (type:float)
  22493. pitch_rate : Angular rate in pitch axis [rad/s] (type:float)
  22494. yaw_rate : Angular rate in yaw axis [rad/s] (type:float)
  22495. """
  22496. 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)
  22497. 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:
  22498. """
  22499. Battery information. Updates GCS with flight controller battery
  22500. status. Smart batteries also use this message, but may
  22501. additionally send BATTERY_INFO.
  22502. id : Battery ID (type:uint8_t)
  22503. battery_function : Function of the battery (type:uint8_t, values:MAV_BATTERY_FUNCTION)
  22504. type : Type (chemistry) of the battery (type:uint8_t, values:MAV_BATTERY_TYPE)
  22505. temperature : Temperature of the battery. INT16_MAX for unknown temperature. [cdegC] (type:int16_t)
  22506. 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)
  22507. current_battery : Battery current, -1: autopilot does not measure the current [cA] (type:int16_t)
  22508. current_consumed : Consumed charge, -1: autopilot does not provide consumption estimate [mAh] (type:int32_t)
  22509. energy_consumed : Consumed energy, -1: autopilot does not provide energy consumption estimate [hJ] (type:int32_t)
  22510. battery_remaining : Remaining battery energy. Values: [0-100], -1: autopilot does not estimate the remaining battery. [%] (type:int8_t)
  22511. time_remaining : Remaining battery time, 0: autopilot does not provide remaining battery time estimate [s] (type:int32_t)
  22512. charge_state : State for extent of discharge, provided by autopilot for warning or external reactions (type:uint8_t, values:MAV_BATTERY_CHARGE_STATE)
  22513. 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)
  22514. 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)
  22515. 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)
  22516. """
  22517. 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)
  22518. 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:
  22519. """
  22520. Battery information. Updates GCS with flight controller battery
  22521. status. Smart batteries also use this message, but may
  22522. additionally send BATTERY_INFO.
  22523. id : Battery ID (type:uint8_t)
  22524. battery_function : Function of the battery (type:uint8_t, values:MAV_BATTERY_FUNCTION)
  22525. type : Type (chemistry) of the battery (type:uint8_t, values:MAV_BATTERY_TYPE)
  22526. temperature : Temperature of the battery. INT16_MAX for unknown temperature. [cdegC] (type:int16_t)
  22527. 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)
  22528. current_battery : Battery current, -1: autopilot does not measure the current [cA] (type:int16_t)
  22529. current_consumed : Consumed charge, -1: autopilot does not provide consumption estimate [mAh] (type:int32_t)
  22530. energy_consumed : Consumed energy, -1: autopilot does not provide energy consumption estimate [hJ] (type:int32_t)
  22531. battery_remaining : Remaining battery energy. Values: [0-100], -1: autopilot does not estimate the remaining battery. [%] (type:int8_t)
  22532. time_remaining : Remaining battery time, 0: autopilot does not provide remaining battery time estimate [s] (type:int32_t)
  22533. charge_state : State for extent of discharge, provided by autopilot for warning or external reactions (type:uint8_t, values:MAV_BATTERY_CHARGE_STATE)
  22534. 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)
  22535. 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)
  22536. 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)
  22537. """
  22538. 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)
  22539. 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:
  22540. """
  22541. Version and capability of autopilot software. This should be emitted
  22542. in response to a request with MAV_CMD_REQUEST_MESSAGE.
  22543. capabilities : Bitmap of capabilities (type:uint64_t, values:MAV_PROTOCOL_CAPABILITY)
  22544. flight_sw_version : Firmware version number (type:uint32_t)
  22545. middleware_sw_version : Middleware version number (type:uint32_t)
  22546. os_sw_version : Operating system version number (type:uint32_t)
  22547. 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)
  22548. 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)
  22549. 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)
  22550. 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)
  22551. vendor_id : ID of the board vendor (type:uint16_t)
  22552. product_id : ID of the product (type:uint16_t)
  22553. uid : UID if provided by hardware (see uid2) (type:uint64_t)
  22554. uid2 : UID if provided by hardware (supersedes the uid field. If this is non-zero, use this field, otherwise use uid) (type:uint8_t)
  22555. """
  22556. 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)
  22557. 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:
  22558. """
  22559. Version and capability of autopilot software. This should be emitted
  22560. in response to a request with MAV_CMD_REQUEST_MESSAGE.
  22561. capabilities : Bitmap of capabilities (type:uint64_t, values:MAV_PROTOCOL_CAPABILITY)
  22562. flight_sw_version : Firmware version number (type:uint32_t)
  22563. middleware_sw_version : Middleware version number (type:uint32_t)
  22564. os_sw_version : Operating system version number (type:uint32_t)
  22565. 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)
  22566. 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)
  22567. 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)
  22568. 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)
  22569. vendor_id : ID of the board vendor (type:uint16_t)
  22570. product_id : ID of the product (type:uint16_t)
  22571. uid : UID if provided by hardware (see uid2) (type:uint64_t)
  22572. uid2 : UID if provided by hardware (supersedes the uid field. If this is non-zero, use this field, otherwise use uid) (type:uint8_t)
  22573. """
  22574. 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)
  22575. 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:
  22576. """
  22577. The location of a landing target. See:
  22578. https://mavlink.io/en/services/landing_target.html
  22579. 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)
  22580. target_num : The ID of the target if multiple targets are present (type:uint8_t)
  22581. frame : Coordinate frame used for following fields. (type:uint8_t, values:MAV_FRAME)
  22582. angle_x : X-axis angular offset of the target from the center of the image [rad] (type:float)
  22583. angle_y : Y-axis angular offset of the target from the center of the image [rad] (type:float)
  22584. distance : Distance to the target from the vehicle [m] (type:float)
  22585. size_x : Size of target along x-axis [rad] (type:float)
  22586. size_y : Size of target along y-axis [rad] (type:float)
  22587. x : X Position of the landing target in MAV_FRAME [m] (type:float)
  22588. y : Y Position of the landing target in MAV_FRAME [m] (type:float)
  22589. z : Z Position of the landing target in MAV_FRAME [m] (type:float)
  22590. q : Quaternion of landing target orientation (w, x, y, z order, zero-rotation is 1, 0, 0, 0) (type:float)
  22591. type : Type of landing target (type:uint8_t, values:LANDING_TARGET_TYPE)
  22592. 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)
  22593. """
  22594. 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)
  22595. 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:
  22596. """
  22597. The location of a landing target. See:
  22598. https://mavlink.io/en/services/landing_target.html
  22599. 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)
  22600. target_num : The ID of the target if multiple targets are present (type:uint8_t)
  22601. frame : Coordinate frame used for following fields. (type:uint8_t, values:MAV_FRAME)
  22602. angle_x : X-axis angular offset of the target from the center of the image [rad] (type:float)
  22603. angle_y : Y-axis angular offset of the target from the center of the image [rad] (type:float)
  22604. distance : Distance to the target from the vehicle [m] (type:float)
  22605. size_x : Size of target along x-axis [rad] (type:float)
  22606. size_y : Size of target along y-axis [rad] (type:float)
  22607. x : X Position of the landing target in MAV_FRAME [m] (type:float)
  22608. y : Y Position of the landing target in MAV_FRAME [m] (type:float)
  22609. z : Z Position of the landing target in MAV_FRAME [m] (type:float)
  22610. q : Quaternion of landing target orientation (w, x, y, z order, zero-rotation is 1, 0, 0, 0) (type:float)
  22611. type : Type of landing target (type:uint8_t, values:LANDING_TARGET_TYPE)
  22612. 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)
  22613. """
  22614. 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)
  22615. 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:
  22616. """
  22617. Status of geo-fencing. Sent in extended status stream when fencing
  22618. enabled.
  22619. breach_status : Breach status (0 if currently inside fence, 1 if outside). (type:uint8_t)
  22620. breach_count : Number of fence breaches. (type:uint16_t)
  22621. breach_type : Last breach type. (type:uint8_t, values:FENCE_BREACH)
  22622. breach_time : Time (since boot) of last breach. [ms] (type:uint32_t)
  22623. breach_mitigation : Active action to prevent fence breach (type:uint8_t, values:FENCE_MITIGATE)
  22624. """
  22625. return MAVLink_fence_status_message(breach_status, breach_count, breach_type, breach_time, breach_mitigation)
  22626. 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:
  22627. """
  22628. Status of geo-fencing. Sent in extended status stream when fencing
  22629. enabled.
  22630. breach_status : Breach status (0 if currently inside fence, 1 if outside). (type:uint8_t)
  22631. breach_count : Number of fence breaches. (type:uint16_t)
  22632. breach_type : Last breach type. (type:uint8_t, values:FENCE_BREACH)
  22633. breach_time : Time (since boot) of last breach. [ms] (type:uint32_t)
  22634. breach_mitigation : Active action to prevent fence breach (type:uint8_t, values:FENCE_MITIGATE)
  22635. """
  22636. self.send(self.fence_status_encode(breach_status, breach_count, breach_type, breach_time, breach_mitigation), force_mavlink1=force_mavlink1)
  22637. 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:
  22638. """
  22639. Reports results of completed compass calibration. Sent until
  22640. MAG_CAL_ACK received.
  22641. compass_id : Compass being calibrated. (type:uint8_t)
  22642. cal_mask : Bitmask of compasses being calibrated. (type:uint8_t)
  22643. cal_status : Calibration Status. (type:uint8_t, values:MAG_CAL_STATUS)
  22644. autosaved : 0=requires a MAV_CMD_DO_ACCEPT_MAG_CAL, 1=saved to parameters. (type:uint8_t)
  22645. fitness : RMS milligauss residuals. [mgauss] (type:float)
  22646. ofs_x : X offset. (type:float)
  22647. ofs_y : Y offset. (type:float)
  22648. ofs_z : Z offset. (type:float)
  22649. diag_x : X diagonal (matrix 11). (type:float)
  22650. diag_y : Y diagonal (matrix 22). (type:float)
  22651. diag_z : Z diagonal (matrix 33). (type:float)
  22652. offdiag_x : X off-diagonal (matrix 12 and 21). (type:float)
  22653. offdiag_y : Y off-diagonal (matrix 13 and 31). (type:float)
  22654. offdiag_z : Z off-diagonal (matrix 32 and 23). (type:float)
  22655. orientation_confidence : Confidence in orientation (higher is better). (type:float)
  22656. old_orientation : orientation before calibration. (type:uint8_t, values:MAV_SENSOR_ORIENTATION)
  22657. new_orientation : orientation after calibration. (type:uint8_t, values:MAV_SENSOR_ORIENTATION)
  22658. scale_factor : field radius correction factor (type:float)
  22659. """
  22660. 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)
  22661. 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:
  22662. """
  22663. Reports results of completed compass calibration. Sent until
  22664. MAG_CAL_ACK received.
  22665. compass_id : Compass being calibrated. (type:uint8_t)
  22666. cal_mask : Bitmask of compasses being calibrated. (type:uint8_t)
  22667. cal_status : Calibration Status. (type:uint8_t, values:MAG_CAL_STATUS)
  22668. autosaved : 0=requires a MAV_CMD_DO_ACCEPT_MAG_CAL, 1=saved to parameters. (type:uint8_t)
  22669. fitness : RMS milligauss residuals. [mgauss] (type:float)
  22670. ofs_x : X offset. (type:float)
  22671. ofs_y : Y offset. (type:float)
  22672. ofs_z : Z offset. (type:float)
  22673. diag_x : X diagonal (matrix 11). (type:float)
  22674. diag_y : Y diagonal (matrix 22). (type:float)
  22675. diag_z : Z diagonal (matrix 33). (type:float)
  22676. offdiag_x : X off-diagonal (matrix 12 and 21). (type:float)
  22677. offdiag_y : Y off-diagonal (matrix 13 and 31). (type:float)
  22678. offdiag_z : Z off-diagonal (matrix 32 and 23). (type:float)
  22679. orientation_confidence : Confidence in orientation (higher is better). (type:float)
  22680. old_orientation : orientation before calibration. (type:uint8_t, values:MAV_SENSOR_ORIENTATION)
  22681. new_orientation : orientation after calibration. (type:uint8_t, values:MAV_SENSOR_ORIENTATION)
  22682. scale_factor : field radius correction factor (type:float)
  22683. """
  22684. 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)
  22685. 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:
  22686. """
  22687. EFI status output
  22688. health : EFI health status (type:uint8_t)
  22689. ecu_index : ECU index (type:float)
  22690. rpm : RPM (type:float)
  22691. fuel_consumed : Fuel consumed [cm^3] (type:float)
  22692. fuel_flow : Fuel flow rate [cm^3/min] (type:float)
  22693. engine_load : Engine load [%] (type:float)
  22694. throttle_position : Throttle position [%] (type:float)
  22695. spark_dwell_time : Spark dwell time [ms] (type:float)
  22696. barometric_pressure : Barometric pressure [kPa] (type:float)
  22697. intake_manifold_pressure : Intake manifold pressure( [kPa] (type:float)
  22698. intake_manifold_temperature : Intake manifold temperature [degC] (type:float)
  22699. cylinder_head_temperature : Cylinder head temperature [degC] (type:float)
  22700. ignition_timing : Ignition timing (Crank angle degrees) [deg] (type:float)
  22701. injection_time : Injection time [ms] (type:float)
  22702. exhaust_gas_temperature : Exhaust gas temperature [degC] (type:float)
  22703. throttle_out : Output throttle [%] (type:float)
  22704. pt_compensation : Pressure/temperature compensation (type:float)
  22705. 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)
  22706. 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)
  22707. """
  22708. 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)
  22709. 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:
  22710. """
  22711. EFI status output
  22712. health : EFI health status (type:uint8_t)
  22713. ecu_index : ECU index (type:float)
  22714. rpm : RPM (type:float)
  22715. fuel_consumed : Fuel consumed [cm^3] (type:float)
  22716. fuel_flow : Fuel flow rate [cm^3/min] (type:float)
  22717. engine_load : Engine load [%] (type:float)
  22718. throttle_position : Throttle position [%] (type:float)
  22719. spark_dwell_time : Spark dwell time [ms] (type:float)
  22720. barometric_pressure : Barometric pressure [kPa] (type:float)
  22721. intake_manifold_pressure : Intake manifold pressure( [kPa] (type:float)
  22722. intake_manifold_temperature : Intake manifold temperature [degC] (type:float)
  22723. cylinder_head_temperature : Cylinder head temperature [degC] (type:float)
  22724. ignition_timing : Ignition timing (Crank angle degrees) [deg] (type:float)
  22725. injection_time : Injection time [ms] (type:float)
  22726. exhaust_gas_temperature : Exhaust gas temperature [degC] (type:float)
  22727. throttle_out : Output throttle [%] (type:float)
  22728. pt_compensation : Pressure/temperature compensation (type:float)
  22729. 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)
  22730. 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)
  22731. """
  22732. 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)
  22733. 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:
  22734. """
  22735. Estimator status message including flags, innovation test ratios and
  22736. estimated accuracies. The flags message is an integer bitmask
  22737. containing information on which EKF outputs are valid. See the
  22738. ESTIMATOR_STATUS_FLAGS enum definition for further
  22739. information. The innovation test ratios show the magnitude of
  22740. the sensor innovation divided by the innovation check
  22741. threshold. Under normal operation the innovation test ratios
  22742. should be below 0.5 with occasional values up to 1.0. Values
  22743. greater than 1.0 should be rare under normal operation and
  22744. indicate that a measurement has been rejected by the filter.
  22745. The user should be notified if an innovation test ratio
  22746. greater than 1.0 is recorded. Notifications for values in the
  22747. range between 0.5 and 1.0 should be optional and controllable
  22748. by the user.
  22749. 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)
  22750. flags : Bitmap indicating which EKF outputs are valid. (type:uint16_t, values:ESTIMATOR_STATUS_FLAGS)
  22751. vel_ratio : Velocity innovation test ratio (type:float)
  22752. pos_horiz_ratio : Horizontal position innovation test ratio (type:float)
  22753. pos_vert_ratio : Vertical position innovation test ratio (type:float)
  22754. mag_ratio : Magnetometer innovation test ratio (type:float)
  22755. hagl_ratio : Height above terrain innovation test ratio (type:float)
  22756. tas_ratio : True airspeed innovation test ratio (type:float)
  22757. pos_horiz_accuracy : Horizontal position 1-STD accuracy relative to the EKF local origin [m] (type:float)
  22758. pos_vert_accuracy : Vertical position 1-STD accuracy relative to the EKF local origin [m] (type:float)
  22759. """
  22760. 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)
  22761. 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:
  22762. """
  22763. Estimator status message including flags, innovation test ratios and
  22764. estimated accuracies. The flags message is an integer bitmask
  22765. containing information on which EKF outputs are valid. See the
  22766. ESTIMATOR_STATUS_FLAGS enum definition for further
  22767. information. The innovation test ratios show the magnitude of
  22768. the sensor innovation divided by the innovation check
  22769. threshold. Under normal operation the innovation test ratios
  22770. should be below 0.5 with occasional values up to 1.0. Values
  22771. greater than 1.0 should be rare under normal operation and
  22772. indicate that a measurement has been rejected by the filter.
  22773. The user should be notified if an innovation test ratio
  22774. greater than 1.0 is recorded. Notifications for values in the
  22775. range between 0.5 and 1.0 should be optional and controllable
  22776. by the user.
  22777. 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)
  22778. flags : Bitmap indicating which EKF outputs are valid. (type:uint16_t, values:ESTIMATOR_STATUS_FLAGS)
  22779. vel_ratio : Velocity innovation test ratio (type:float)
  22780. pos_horiz_ratio : Horizontal position innovation test ratio (type:float)
  22781. pos_vert_ratio : Vertical position innovation test ratio (type:float)
  22782. mag_ratio : Magnetometer innovation test ratio (type:float)
  22783. hagl_ratio : Height above terrain innovation test ratio (type:float)
  22784. tas_ratio : True airspeed innovation test ratio (type:float)
  22785. pos_horiz_accuracy : Horizontal position 1-STD accuracy relative to the EKF local origin [m] (type:float)
  22786. pos_vert_accuracy : Vertical position 1-STD accuracy relative to the EKF local origin [m] (type:float)
  22787. """
  22788. 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)
  22789. 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:
  22790. """
  22791. Wind estimate from vehicle. Note that despite the name, this message
  22792. does not actually contain any covariances but instead
  22793. variability and accuracy fields in terms of standard deviation
  22794. (1-STD).
  22795. 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)
  22796. wind_x : Wind in North (NED) direction (NAN if unknown) [m/s] (type:float)
  22797. wind_y : Wind in East (NED) direction (NAN if unknown) [m/s] (type:float)
  22798. wind_z : Wind in down (NED) direction (NAN if unknown) [m/s] (type:float)
  22799. var_horiz : Variability of wind in XY, 1-STD estimated from a 1 Hz lowpassed wind estimate (NAN if unknown) [m/s] (type:float)
  22800. var_vert : Variability of wind in Z, 1-STD estimated from a 1 Hz lowpassed wind estimate (NAN if unknown) [m/s] (type:float)
  22801. wind_alt : Altitude (MSL) that this measurement was taken at (NAN if unknown) [m] (type:float)
  22802. horiz_accuracy : Horizontal speed 1-STD accuracy (0 if unknown) [m/s] (type:float)
  22803. vert_accuracy : Vertical speed 1-STD accuracy (0 if unknown) [m/s] (type:float)
  22804. """
  22805. return MAVLink_wind_cov_message(time_usec, wind_x, wind_y, wind_z, var_horiz, var_vert, wind_alt, horiz_accuracy, vert_accuracy)
  22806. 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:
  22807. """
  22808. Wind estimate from vehicle. Note that despite the name, this message
  22809. does not actually contain any covariances but instead
  22810. variability and accuracy fields in terms of standard deviation
  22811. (1-STD).
  22812. 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)
  22813. wind_x : Wind in North (NED) direction (NAN if unknown) [m/s] (type:float)
  22814. wind_y : Wind in East (NED) direction (NAN if unknown) [m/s] (type:float)
  22815. wind_z : Wind in down (NED) direction (NAN if unknown) [m/s] (type:float)
  22816. var_horiz : Variability of wind in XY, 1-STD estimated from a 1 Hz lowpassed wind estimate (NAN if unknown) [m/s] (type:float)
  22817. var_vert : Variability of wind in Z, 1-STD estimated from a 1 Hz lowpassed wind estimate (NAN if unknown) [m/s] (type:float)
  22818. wind_alt : Altitude (MSL) that this measurement was taken at (NAN if unknown) [m] (type:float)
  22819. horiz_accuracy : Horizontal speed 1-STD accuracy (0 if unknown) [m/s] (type:float)
  22820. vert_accuracy : Vertical speed 1-STD accuracy (0 if unknown) [m/s] (type:float)
  22821. """
  22822. 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)
  22823. 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:
  22824. """
  22825. GPS sensor input message. This is a raw sensor value sent by the GPS.
  22826. This is NOT the global position estimate of the system.
  22827. 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)
  22828. gps_id : ID of the GPS for multiple GPS inputs (type:uint8_t)
  22829. 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)
  22830. time_week_ms : GPS time (from start of GPS week) [ms] (type:uint32_t)
  22831. time_week : GPS week number (type:uint16_t)
  22832. fix_type : 0-1: no fix, 2: 2D fix, 3: 3D fix. 4: 3D with DGPS. 5: 3D with RTK (type:uint8_t)
  22833. lat : Latitude (WGS84) [degE7] (type:int32_t)
  22834. lon : Longitude (WGS84) [degE7] (type:int32_t)
  22835. alt : Altitude (MSL). Positive for up. [m] (type:float)
  22836. hdop : GPS HDOP horizontal dilution of position (unitless). If unknown, set to: UINT16_MAX (type:float)
  22837. vdop : GPS VDOP vertical dilution of position (unitless). If unknown, set to: UINT16_MAX (type:float)
  22838. vn : GPS velocity in north direction in earth-fixed NED frame [m/s] (type:float)
  22839. ve : GPS velocity in east direction in earth-fixed NED frame [m/s] (type:float)
  22840. vd : GPS velocity in down direction in earth-fixed NED frame [m/s] (type:float)
  22841. speed_accuracy : GPS speed accuracy [m/s] (type:float)
  22842. horiz_accuracy : GPS horizontal accuracy [m] (type:float)
  22843. vert_accuracy : GPS vertical accuracy [m] (type:float)
  22844. satellites_visible : Number of satellites visible. (type:uint8_t)
  22845. yaw : Yaw of vehicle relative to Earth's North, zero means not available, use 36000 for north [cdeg] (type:uint16_t)
  22846. """
  22847. 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)
  22848. 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:
  22849. """
  22850. GPS sensor input message. This is a raw sensor value sent by the GPS.
  22851. This is NOT the global position estimate of the system.
  22852. 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)
  22853. gps_id : ID of the GPS for multiple GPS inputs (type:uint8_t)
  22854. 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)
  22855. time_week_ms : GPS time (from start of GPS week) [ms] (type:uint32_t)
  22856. time_week : GPS week number (type:uint16_t)
  22857. fix_type : 0-1: no fix, 2: 2D fix, 3: 3D fix. 4: 3D with DGPS. 5: 3D with RTK (type:uint8_t)
  22858. lat : Latitude (WGS84) [degE7] (type:int32_t)
  22859. lon : Longitude (WGS84) [degE7] (type:int32_t)
  22860. alt : Altitude (MSL). Positive for up. [m] (type:float)
  22861. hdop : GPS HDOP horizontal dilution of position (unitless). If unknown, set to: UINT16_MAX (type:float)
  22862. vdop : GPS VDOP vertical dilution of position (unitless). If unknown, set to: UINT16_MAX (type:float)
  22863. vn : GPS velocity in north direction in earth-fixed NED frame [m/s] (type:float)
  22864. ve : GPS velocity in east direction in earth-fixed NED frame [m/s] (type:float)
  22865. vd : GPS velocity in down direction in earth-fixed NED frame [m/s] (type:float)
  22866. speed_accuracy : GPS speed accuracy [m/s] (type:float)
  22867. horiz_accuracy : GPS horizontal accuracy [m] (type:float)
  22868. vert_accuracy : GPS vertical accuracy [m] (type:float)
  22869. satellites_visible : Number of satellites visible. (type:uint8_t)
  22870. yaw : Yaw of vehicle relative to Earth's North, zero means not available, use 36000 for north [cdeg] (type:uint16_t)
  22871. """
  22872. 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)
  22873. def gps_rtcm_data_encode(self, flags: int, len: int, data: Sequence[int]) -> MAVLink_gps_rtcm_data_message:
  22874. """
  22875. RTCM message for injecting into the onboard GPS (used for DGPS)
  22876. 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)
  22877. len : data length [bytes] (type:uint8_t)
  22878. data : RTCM message (may be fragmented) (type:uint8_t)
  22879. """
  22880. return MAVLink_gps_rtcm_data_message(flags, len, data)
  22881. def gps_rtcm_data_send(self, flags: int, len: int, data: Sequence[int], force_mavlink1: bool = False) -> None:
  22882. """
  22883. RTCM message for injecting into the onboard GPS (used for DGPS)
  22884. 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)
  22885. len : data length [bytes] (type:uint8_t)
  22886. data : RTCM message (may be fragmented) (type:uint8_t)
  22887. """
  22888. self.send(self.gps_rtcm_data_encode(flags, len, data), force_mavlink1=force_mavlink1)
  22889. 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:
  22890. """
  22891. Message appropriate for high latency connections like Iridium
  22892. base_mode : Bitmap of enabled system modes. (type:uint8_t, values:MAV_MODE_FLAG)
  22893. custom_mode : A bitfield for use for autopilot-specific flags. (type:uint32_t)
  22894. landed_state : The landed state. Is set to MAV_LANDED_STATE_UNDEFINED if landed state is unknown. (type:uint8_t, values:MAV_LANDED_STATE)
  22895. roll : roll [cdeg] (type:int16_t)
  22896. pitch : pitch [cdeg] (type:int16_t)
  22897. heading : heading [cdeg] (type:uint16_t)
  22898. throttle : throttle (percentage) [%] (type:int8_t)
  22899. heading_sp : heading setpoint [cdeg] (type:int16_t)
  22900. latitude : Latitude [degE7] (type:int32_t)
  22901. longitude : Longitude [degE7] (type:int32_t)
  22902. altitude_amsl : Altitude above mean sea level [m] (type:int16_t)
  22903. altitude_sp : Altitude setpoint relative to the home position [m] (type:int16_t)
  22904. airspeed : airspeed [m/s] (type:uint8_t)
  22905. airspeed_sp : airspeed setpoint [m/s] (type:uint8_t)
  22906. groundspeed : groundspeed [m/s] (type:uint8_t)
  22907. climb_rate : climb rate [m/s] (type:int8_t)
  22908. gps_nsat : Number of satellites visible. If unknown, set to UINT8_MAX (type:uint8_t)
  22909. gps_fix_type : GPS Fix type. (type:uint8_t, values:GPS_FIX_TYPE)
  22910. battery_remaining : Remaining battery (percentage) [%] (type:uint8_t)
  22911. temperature : Autopilot temperature (degrees C) [degC] (type:int8_t)
  22912. temperature_air : Air temperature (degrees C) from airspeed sensor [degC] (type:int8_t)
  22913. 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)
  22914. wp_num : current waypoint number (type:uint8_t)
  22915. wp_distance : distance to target [m] (type:uint16_t)
  22916. """
  22917. 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)
  22918. 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:
  22919. """
  22920. Message appropriate for high latency connections like Iridium
  22921. base_mode : Bitmap of enabled system modes. (type:uint8_t, values:MAV_MODE_FLAG)
  22922. custom_mode : A bitfield for use for autopilot-specific flags. (type:uint32_t)
  22923. landed_state : The landed state. Is set to MAV_LANDED_STATE_UNDEFINED if landed state is unknown. (type:uint8_t, values:MAV_LANDED_STATE)
  22924. roll : roll [cdeg] (type:int16_t)
  22925. pitch : pitch [cdeg] (type:int16_t)
  22926. heading : heading [cdeg] (type:uint16_t)
  22927. throttle : throttle (percentage) [%] (type:int8_t)
  22928. heading_sp : heading setpoint [cdeg] (type:int16_t)
  22929. latitude : Latitude [degE7] (type:int32_t)
  22930. longitude : Longitude [degE7] (type:int32_t)
  22931. altitude_amsl : Altitude above mean sea level [m] (type:int16_t)
  22932. altitude_sp : Altitude setpoint relative to the home position [m] (type:int16_t)
  22933. airspeed : airspeed [m/s] (type:uint8_t)
  22934. airspeed_sp : airspeed setpoint [m/s] (type:uint8_t)
  22935. groundspeed : groundspeed [m/s] (type:uint8_t)
  22936. climb_rate : climb rate [m/s] (type:int8_t)
  22937. gps_nsat : Number of satellites visible. If unknown, set to UINT8_MAX (type:uint8_t)
  22938. gps_fix_type : GPS Fix type. (type:uint8_t, values:GPS_FIX_TYPE)
  22939. battery_remaining : Remaining battery (percentage) [%] (type:uint8_t)
  22940. temperature : Autopilot temperature (degrees C) [degC] (type:int8_t)
  22941. temperature_air : Air temperature (degrees C) from airspeed sensor [degC] (type:int8_t)
  22942. 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)
  22943. wp_num : current waypoint number (type:uint8_t)
  22944. wp_distance : distance to target [m] (type:uint16_t)
  22945. """
  22946. 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)
  22947. 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:
  22948. """
  22949. Message appropriate for high latency connections like Iridium (version
  22950. 2)
  22951. timestamp : Timestamp (milliseconds since boot or Unix epoch) [ms] (type:uint32_t)
  22952. type : Type of the MAV (quadrotor, helicopter, etc.) (type:uint8_t, values:MAV_TYPE)
  22953. autopilot : Autopilot type / class. Use MAV_AUTOPILOT_INVALID for components that are not flight controllers. (type:uint8_t, values:MAV_AUTOPILOT)
  22954. custom_mode : A bitfield for use for autopilot-specific flags (2 byte version). (type:uint16_t)
  22955. latitude : Latitude [degE7] (type:int32_t)
  22956. longitude : Longitude [degE7] (type:int32_t)
  22957. altitude : Altitude above mean sea level [m] (type:int16_t)
  22958. target_altitude : Altitude setpoint [m] (type:int16_t)
  22959. heading : Heading [deg/2] (type:uint8_t)
  22960. target_heading : Heading setpoint [deg/2] (type:uint8_t)
  22961. target_distance : Distance to target waypoint or position [dam] (type:uint16_t)
  22962. throttle : Throttle [%] (type:uint8_t)
  22963. airspeed : Airspeed [m/s*5] (type:uint8_t)
  22964. airspeed_sp : Airspeed setpoint [m/s*5] (type:uint8_t)
  22965. groundspeed : Groundspeed [m/s*5] (type:uint8_t)
  22966. windspeed : Windspeed [m/s*5] (type:uint8_t)
  22967. wind_heading : Wind heading [deg/2] (type:uint8_t)
  22968. eph : Maximum error horizontal position since last message [dm] (type:uint8_t)
  22969. epv : Maximum error vertical position since last message [dm] (type:uint8_t)
  22970. temperature_air : Air temperature from airspeed sensor [degC] (type:int8_t)
  22971. climb_rate : Maximum climb rate magnitude since last message [dm/s] (type:int8_t)
  22972. battery : Battery level (-1 if field not provided). [%] (type:int8_t)
  22973. wp_num : Current waypoint number (type:uint16_t)
  22974. failure_flags : Bitmap of failure flags. (type:uint16_t, values:HL_FAILURE_FLAG)
  22975. custom0 : Field for custom payload. (type:int8_t)
  22976. custom1 : Field for custom payload. (type:int8_t)
  22977. custom2 : Field for custom payload. (type:int8_t)
  22978. """
  22979. 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)
  22980. 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:
  22981. """
  22982. Message appropriate for high latency connections like Iridium (version
  22983. 2)
  22984. timestamp : Timestamp (milliseconds since boot or Unix epoch) [ms] (type:uint32_t)
  22985. type : Type of the MAV (quadrotor, helicopter, etc.) (type:uint8_t, values:MAV_TYPE)
  22986. autopilot : Autopilot type / class. Use MAV_AUTOPILOT_INVALID for components that are not flight controllers. (type:uint8_t, values:MAV_AUTOPILOT)
  22987. custom_mode : A bitfield for use for autopilot-specific flags (2 byte version). (type:uint16_t)
  22988. latitude : Latitude [degE7] (type:int32_t)
  22989. longitude : Longitude [degE7] (type:int32_t)
  22990. altitude : Altitude above mean sea level [m] (type:int16_t)
  22991. target_altitude : Altitude setpoint [m] (type:int16_t)
  22992. heading : Heading [deg/2] (type:uint8_t)
  22993. target_heading : Heading setpoint [deg/2] (type:uint8_t)
  22994. target_distance : Distance to target waypoint or position [dam] (type:uint16_t)
  22995. throttle : Throttle [%] (type:uint8_t)
  22996. airspeed : Airspeed [m/s*5] (type:uint8_t)
  22997. airspeed_sp : Airspeed setpoint [m/s*5] (type:uint8_t)
  22998. groundspeed : Groundspeed [m/s*5] (type:uint8_t)
  22999. windspeed : Windspeed [m/s*5] (type:uint8_t)
  23000. wind_heading : Wind heading [deg/2] (type:uint8_t)
  23001. eph : Maximum error horizontal position since last message [dm] (type:uint8_t)
  23002. epv : Maximum error vertical position since last message [dm] (type:uint8_t)
  23003. temperature_air : Air temperature from airspeed sensor [degC] (type:int8_t)
  23004. climb_rate : Maximum climb rate magnitude since last message [dm/s] (type:int8_t)
  23005. battery : Battery level (-1 if field not provided). [%] (type:int8_t)
  23006. wp_num : Current waypoint number (type:uint16_t)
  23007. failure_flags : Bitmap of failure flags. (type:uint16_t, values:HL_FAILURE_FLAG)
  23008. custom0 : Field for custom payload. (type:int8_t)
  23009. custom1 : Field for custom payload. (type:int8_t)
  23010. custom2 : Field for custom payload. (type:int8_t)
  23011. """
  23012. 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)
  23013. 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:
  23014. """
  23015. Vibration levels and accelerometer clipping
  23016. 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)
  23017. vibration_x : Vibration levels on X-axis (type:float)
  23018. vibration_y : Vibration levels on Y-axis (type:float)
  23019. vibration_z : Vibration levels on Z-axis (type:float)
  23020. clipping_0 : first accelerometer clipping count (type:uint32_t)
  23021. clipping_1 : second accelerometer clipping count (type:uint32_t)
  23022. clipping_2 : third accelerometer clipping count (type:uint32_t)
  23023. """
  23024. return MAVLink_vibration_message(time_usec, vibration_x, vibration_y, vibration_z, clipping_0, clipping_1, clipping_2)
  23025. 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:
  23026. """
  23027. Vibration levels and accelerometer clipping
  23028. 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)
  23029. vibration_x : Vibration levels on X-axis (type:float)
  23030. vibration_y : Vibration levels on Y-axis (type:float)
  23031. vibration_z : Vibration levels on Z-axis (type:float)
  23032. clipping_0 : first accelerometer clipping count (type:uint32_t)
  23033. clipping_1 : second accelerometer clipping count (type:uint32_t)
  23034. clipping_2 : third accelerometer clipping count (type:uint32_t)
  23035. """
  23036. self.send(self.vibration_encode(time_usec, vibration_x, vibration_y, vibration_z, clipping_0, clipping_1, clipping_2), force_mavlink1=force_mavlink1)
  23037. 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:
  23038. """
  23039. Contains the home position. The home position is the default
  23040. position that the system will return to and land on.
  23041. The position must be set automatically by the system during
  23042. the takeoff, and may also be explicitly set using
  23043. MAV_CMD_DO_SET_HOME. The global and local positions
  23044. encode the position in the respective coordinate frames, while
  23045. the q parameter encodes the orientation of the surface.
  23046. Under normal conditions it describes the heading and terrain
  23047. slope, which can be used by the aircraft to adjust the
  23048. approach. The approach 3D vector describes the point
  23049. to which the system should fly in normal flight mode and then
  23050. perform a landing sequence along the vector. Note:
  23051. this message can be requested by sending the
  23052. MAV_CMD_REQUEST_MESSAGE with param1=242 (or the deprecated
  23053. MAV_CMD_GET_HOME_POSITION command).
  23054. latitude : Latitude (WGS84) [degE7] (type:int32_t)
  23055. longitude : Longitude (WGS84) [degE7] (type:int32_t)
  23056. altitude : Altitude (MSL). Positive for up. [mm] (type:int32_t)
  23057. x : Local X position of this position in the local coordinate frame (NED) [m] (type:float)
  23058. y : Local Y position of this position in the local coordinate frame (NED) [m] (type:float)
  23059. z : Local Z position of this position in the local coordinate frame (NED: positive "down") [m] (type:float)
  23060. q : Quaternion indicating world-to-surface-normal and heading transformation of the takeoff position.
  23061. Used to indicate the heading and slope of the ground.
  23062. All fields should be set to NaN if an accurate quaternion for both heading and surface slope cannot be supplied. (type:float)
  23063. 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)
  23064. 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)
  23065. 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)
  23066. 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)
  23067. """
  23068. return MAVLink_home_position_message(latitude, longitude, altitude, x, y, z, q, approach_x, approach_y, approach_z, time_usec)
  23069. 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:
  23070. """
  23071. Contains the home position. The home position is the default
  23072. position that the system will return to and land on.
  23073. The position must be set automatically by the system during
  23074. the takeoff, and may also be explicitly set using
  23075. MAV_CMD_DO_SET_HOME. The global and local positions
  23076. encode the position in the respective coordinate frames, while
  23077. the q parameter encodes the orientation of the surface.
  23078. Under normal conditions it describes the heading and terrain
  23079. slope, which can be used by the aircraft to adjust the
  23080. approach. The approach 3D vector describes the point
  23081. to which the system should fly in normal flight mode and then
  23082. perform a landing sequence along the vector. Note:
  23083. this message can be requested by sending the
  23084. MAV_CMD_REQUEST_MESSAGE with param1=242 (or the deprecated
  23085. MAV_CMD_GET_HOME_POSITION command).
  23086. latitude : Latitude (WGS84) [degE7] (type:int32_t)
  23087. longitude : Longitude (WGS84) [degE7] (type:int32_t)
  23088. altitude : Altitude (MSL). Positive for up. [mm] (type:int32_t)
  23089. x : Local X position of this position in the local coordinate frame (NED) [m] (type:float)
  23090. y : Local Y position of this position in the local coordinate frame (NED) [m] (type:float)
  23091. z : Local Z position of this position in the local coordinate frame (NED: positive "down") [m] (type:float)
  23092. q : Quaternion indicating world-to-surface-normal and heading transformation of the takeoff position.
  23093. Used to indicate the heading and slope of the ground.
  23094. All fields should be set to NaN if an accurate quaternion for both heading and surface slope cannot be supplied. (type:float)
  23095. 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)
  23096. 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)
  23097. 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)
  23098. 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)
  23099. """
  23100. 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)
  23101. 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:
  23102. """
  23103. Sets the home position. The home position is the default
  23104. position that the system will return to and land on.
  23105. The position is set automatically by the system during the
  23106. takeoff (and may also be set using this message). The
  23107. global and local positions encode the position in the
  23108. respective coordinate frames, while the q parameter encodes
  23109. the orientation of the surface. Under normal
  23110. conditions it describes the heading and terrain slope, which
  23111. can be used by the aircraft to adjust the approach.
  23112. The approach 3D vector describes the point to which the system
  23113. should fly in normal flight mode and then perform a landing
  23114. sequence along the vector. Note: the current home
  23115. position may be emitted in a HOME_POSITION message on request
  23116. (using MAV_CMD_REQUEST_MESSAGE with param1=242).
  23117. target_system : System ID. (type:uint8_t)
  23118. latitude : Latitude (WGS84) [degE7] (type:int32_t)
  23119. longitude : Longitude (WGS84) [degE7] (type:int32_t)
  23120. altitude : Altitude (MSL). Positive for up. [mm] (type:int32_t)
  23121. x : Local X position of this position in the local coordinate frame (NED) [m] (type:float)
  23122. y : Local Y position of this position in the local coordinate frame (NED) [m] (type:float)
  23123. z : Local Z position of this position in the local coordinate frame (NED: positive "down") [m] (type:float)
  23124. q : World to surface normal and heading transformation of the takeoff position. Used to indicate the heading and slope of the ground (type:float)
  23125. 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)
  23126. 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)
  23127. 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)
  23128. 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)
  23129. """
  23130. return MAVLink_set_home_position_message(target_system, latitude, longitude, altitude, x, y, z, q, approach_x, approach_y, approach_z, time_usec)
  23131. 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:
  23132. """
  23133. Sets the home position. The home position is the default
  23134. position that the system will return to and land on.
  23135. The position is set automatically by the system during the
  23136. takeoff (and may also be set using this message). The
  23137. global and local positions encode the position in the
  23138. respective coordinate frames, while the q parameter encodes
  23139. the orientation of the surface. Under normal
  23140. conditions it describes the heading and terrain slope, which
  23141. can be used by the aircraft to adjust the approach.
  23142. The approach 3D vector describes the point to which the system
  23143. should fly in normal flight mode and then perform a landing
  23144. sequence along the vector. Note: the current home
  23145. position may be emitted in a HOME_POSITION message on request
  23146. (using MAV_CMD_REQUEST_MESSAGE with param1=242).
  23147. target_system : System ID. (type:uint8_t)
  23148. latitude : Latitude (WGS84) [degE7] (type:int32_t)
  23149. longitude : Longitude (WGS84) [degE7] (type:int32_t)
  23150. altitude : Altitude (MSL). Positive for up. [mm] (type:int32_t)
  23151. x : Local X position of this position in the local coordinate frame (NED) [m] (type:float)
  23152. y : Local Y position of this position in the local coordinate frame (NED) [m] (type:float)
  23153. z : Local Z position of this position in the local coordinate frame (NED: positive "down") [m] (type:float)
  23154. q : World to surface normal and heading transformation of the takeoff position. Used to indicate the heading and slope of the ground (type:float)
  23155. 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)
  23156. 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)
  23157. 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)
  23158. 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)
  23159. """
  23160. 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)
  23161. def message_interval_encode(self, message_id: int, interval_us: int) -> MAVLink_message_interval_message:
  23162. """
  23163. The interval between messages for a particular MAVLink message ID.
  23164. This message is sent in response to the
  23165. MAV_CMD_REQUEST_MESSAGE command with param1=244 (this message)
  23166. and param2=message_id (the id of the message for which the
  23167. interval is required). It may also be sent in response
  23168. to MAV_CMD_GET_MESSAGE_INTERVAL. This interface
  23169. replaces DATA_STREAM.
  23170. message_id : The ID of the requested MAVLink message. v1.0 is limited to 254 messages. (type:uint16_t)
  23171. 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)
  23172. """
  23173. return MAVLink_message_interval_message(message_id, interval_us)
  23174. def message_interval_send(self, message_id: int, interval_us: int, force_mavlink1: bool = False) -> None:
  23175. """
  23176. The interval between messages for a particular MAVLink message ID.
  23177. This message is sent in response to the
  23178. MAV_CMD_REQUEST_MESSAGE command with param1=244 (this message)
  23179. and param2=message_id (the id of the message for which the
  23180. interval is required). It may also be sent in response
  23181. to MAV_CMD_GET_MESSAGE_INTERVAL. This interface
  23182. replaces DATA_STREAM.
  23183. message_id : The ID of the requested MAVLink message. v1.0 is limited to 254 messages. (type:uint16_t)
  23184. 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)
  23185. """
  23186. self.send(self.message_interval_encode(message_id, interval_us), force_mavlink1=force_mavlink1)
  23187. def extended_sys_state_encode(self, vtol_state: int, landed_state: int) -> MAVLink_extended_sys_state_message:
  23188. """
  23189. Provides state for additional features
  23190. 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)
  23191. landed_state : The landed state. Is set to MAV_LANDED_STATE_UNDEFINED if landed state is unknown. (type:uint8_t, values:MAV_LANDED_STATE)
  23192. """
  23193. return MAVLink_extended_sys_state_message(vtol_state, landed_state)
  23194. def extended_sys_state_send(self, vtol_state: int, landed_state: int, force_mavlink1: bool = False) -> None:
  23195. """
  23196. Provides state for additional features
  23197. 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)
  23198. landed_state : The landed state. Is set to MAV_LANDED_STATE_UNDEFINED if landed state is unknown. (type:uint8_t, values:MAV_LANDED_STATE)
  23199. """
  23200. self.send(self.extended_sys_state_encode(vtol_state, landed_state), force_mavlink1=force_mavlink1)
  23201. 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:
  23202. """
  23203. The location and information of an ADSB vehicle
  23204. ICAO_address : ICAO address (type:uint32_t)
  23205. lat : Latitude [degE7] (type:int32_t)
  23206. lon : Longitude [degE7] (type:int32_t)
  23207. altitude_type : ADSB altitude type. (type:uint8_t, values:ADSB_ALTITUDE_TYPE)
  23208. altitude : Altitude(ASL) [mm] (type:int32_t)
  23209. heading : Course over ground [cdeg] (type:uint16_t)
  23210. hor_velocity : The horizontal velocity [cm/s] (type:uint16_t)
  23211. ver_velocity : The vertical velocity. Positive is up [cm/s] (type:int16_t)
  23212. callsign : The callsign, 8+null (type:char)
  23213. emitter_type : ADSB emitter type. (type:uint8_t, values:ADSB_EMITTER_TYPE)
  23214. tslc : Time since last communication in seconds [s] (type:uint8_t)
  23215. flags : Bitmap to indicate various statuses including valid data fields (type:uint16_t, values:ADSB_FLAGS)
  23216. squawk : Squawk code (type:uint16_t)
  23217. """
  23218. return MAVLink_adsb_vehicle_message(ICAO_address, lat, lon, altitude_type, altitude, heading, hor_velocity, ver_velocity, callsign, emitter_type, tslc, flags, squawk)
  23219. 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:
  23220. """
  23221. The location and information of an ADSB vehicle
  23222. ICAO_address : ICAO address (type:uint32_t)
  23223. lat : Latitude [degE7] (type:int32_t)
  23224. lon : Longitude [degE7] (type:int32_t)
  23225. altitude_type : ADSB altitude type. (type:uint8_t, values:ADSB_ALTITUDE_TYPE)
  23226. altitude : Altitude(ASL) [mm] (type:int32_t)
  23227. heading : Course over ground [cdeg] (type:uint16_t)
  23228. hor_velocity : The horizontal velocity [cm/s] (type:uint16_t)
  23229. ver_velocity : The vertical velocity. Positive is up [cm/s] (type:int16_t)
  23230. callsign : The callsign, 8+null (type:char)
  23231. emitter_type : ADSB emitter type. (type:uint8_t, values:ADSB_EMITTER_TYPE)
  23232. tslc : Time since last communication in seconds [s] (type:uint8_t)
  23233. flags : Bitmap to indicate various statuses including valid data fields (type:uint16_t, values:ADSB_FLAGS)
  23234. squawk : Squawk code (type:uint16_t)
  23235. """
  23236. 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)
  23237. 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:
  23238. """
  23239. Information about a potential collision
  23240. src : Collision data source (type:uint8_t, values:MAV_COLLISION_SRC)
  23241. id : Unique identifier, domain based on src field (type:uint32_t)
  23242. action : Action that is being taken to avoid this collision (type:uint8_t, values:MAV_COLLISION_ACTION)
  23243. threat_level : How concerned the aircraft is about this collision (type:uint8_t, values:MAV_COLLISION_THREAT_LEVEL)
  23244. time_to_minimum_delta : Estimated time until collision occurs [s] (type:float)
  23245. altitude_minimum_delta : Closest vertical distance between vehicle and object [m] (type:float)
  23246. horizontal_minimum_delta : Closest horizontal distance between vehicle and object [m] (type:float)
  23247. """
  23248. return MAVLink_collision_message(src, id, action, threat_level, time_to_minimum_delta, altitude_minimum_delta, horizontal_minimum_delta)
  23249. 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:
  23250. """
  23251. Information about a potential collision
  23252. src : Collision data source (type:uint8_t, values:MAV_COLLISION_SRC)
  23253. id : Unique identifier, domain based on src field (type:uint32_t)
  23254. action : Action that is being taken to avoid this collision (type:uint8_t, values:MAV_COLLISION_ACTION)
  23255. threat_level : How concerned the aircraft is about this collision (type:uint8_t, values:MAV_COLLISION_THREAT_LEVEL)
  23256. time_to_minimum_delta : Estimated time until collision occurs [s] (type:float)
  23257. altitude_minimum_delta : Closest vertical distance between vehicle and object [m] (type:float)
  23258. horizontal_minimum_delta : Closest horizontal distance between vehicle and object [m] (type:float)
  23259. """
  23260. self.send(self.collision_encode(src, id, action, threat_level, time_to_minimum_delta, altitude_minimum_delta, horizontal_minimum_delta), force_mavlink1=force_mavlink1)
  23261. def v2_extension_encode(self, target_network: int, target_system: int, target_component: int, message_type: int, payload: Sequence[int]) -> MAVLink_v2_extension_message:
  23262. """
  23263. Message implementing parts of the V2 payload specs in V1 frames for
  23264. transitional support.
  23265. target_network : Network ID (0 for broadcast) (type:uint8_t)
  23266. target_system : System ID (0 for broadcast) (type:uint8_t)
  23267. target_component : Component ID (0 for broadcast) (type:uint8_t)
  23268. 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)
  23269. 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)
  23270. """
  23271. return MAVLink_v2_extension_message(target_network, target_system, target_component, message_type, payload)
  23272. 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:
  23273. """
  23274. Message implementing parts of the V2 payload specs in V1 frames for
  23275. transitional support.
  23276. target_network : Network ID (0 for broadcast) (type:uint8_t)
  23277. target_system : System ID (0 for broadcast) (type:uint8_t)
  23278. target_component : Component ID (0 for broadcast) (type:uint8_t)
  23279. 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)
  23280. 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)
  23281. """
  23282. self.send(self.v2_extension_encode(target_network, target_system, target_component, message_type, payload), force_mavlink1=force_mavlink1)
  23283. def memory_vect_encode(self, address: int, ver: int, type: int, value: Sequence[int]) -> MAVLink_memory_vect_message:
  23284. """
  23285. Send raw controller memory. The use of this message is discouraged for
  23286. normal packets, but a quite efficient way for testing new
  23287. messages and getting experimental debug output.
  23288. address : Starting address of the debug variables (type:uint16_t)
  23289. ver : Version code of the type variable. 0=unknown, type ignored and assumed int16_t. 1=as below (type:uint8_t)
  23290. 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)
  23291. value : Memory contents at specified address (type:int8_t)
  23292. """
  23293. return MAVLink_memory_vect_message(address, ver, type, value)
  23294. def memory_vect_send(self, address: int, ver: int, type: int, value: Sequence[int], force_mavlink1: bool = False) -> None:
  23295. """
  23296. Send raw controller memory. The use of this message is discouraged for
  23297. normal packets, but a quite efficient way for testing new
  23298. messages and getting experimental debug output.
  23299. address : Starting address of the debug variables (type:uint16_t)
  23300. ver : Version code of the type variable. 0=unknown, type ignored and assumed int16_t. 1=as below (type:uint8_t)
  23301. 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)
  23302. value : Memory contents at specified address (type:int8_t)
  23303. """
  23304. self.send(self.memory_vect_encode(address, ver, type, value), force_mavlink1=force_mavlink1)
  23305. def debug_vect_encode(self, name: bytes, time_usec: int, x: float, y: float, z: float) -> MAVLink_debug_vect_message:
  23306. """
  23307. To debug something using a named 3D vector.
  23308. name : Name (type:char)
  23309. 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)
  23310. x : x (type:float)
  23311. y : y (type:float)
  23312. z : z (type:float)
  23313. """
  23314. return MAVLink_debug_vect_message(name, time_usec, x, y, z)
  23315. def debug_vect_send(self, name: bytes, time_usec: int, x: float, y: float, z: float, force_mavlink1: bool = False) -> None:
  23316. """
  23317. To debug something using a named 3D vector.
  23318. name : Name (type:char)
  23319. 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)
  23320. x : x (type:float)
  23321. y : y (type:float)
  23322. z : z (type:float)
  23323. """
  23324. self.send(self.debug_vect_encode(name, time_usec, x, y, z), force_mavlink1=force_mavlink1)
  23325. def named_value_float_encode(self, time_boot_ms: int, name: bytes, value: float) -> MAVLink_named_value_float_message:
  23326. """
  23327. Send a key-value pair as float. The use of this message is discouraged
  23328. for normal packets, but a quite efficient way for testing new
  23329. messages and getting experimental debug output.
  23330. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23331. name : Name of the debug variable (type:char)
  23332. value : Floating point value (type:float)
  23333. """
  23334. return MAVLink_named_value_float_message(time_boot_ms, name, value)
  23335. def named_value_float_send(self, time_boot_ms: int, name: bytes, value: float, force_mavlink1: bool = False) -> None:
  23336. """
  23337. Send a key-value pair as float. The use of this message is discouraged
  23338. for normal packets, but a quite efficient way for testing new
  23339. messages and getting experimental debug output.
  23340. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23341. name : Name of the debug variable (type:char)
  23342. value : Floating point value (type:float)
  23343. """
  23344. self.send(self.named_value_float_encode(time_boot_ms, name, value), force_mavlink1=force_mavlink1)
  23345. def named_value_int_encode(self, time_boot_ms: int, name: bytes, value: int) -> MAVLink_named_value_int_message:
  23346. """
  23347. Send a key-value pair as integer. The use of this message is
  23348. discouraged for normal packets, but a quite efficient way for
  23349. testing new messages and getting experimental debug output.
  23350. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23351. name : Name of the debug variable (type:char)
  23352. value : Signed integer value (type:int32_t)
  23353. """
  23354. return MAVLink_named_value_int_message(time_boot_ms, name, value)
  23355. def named_value_int_send(self, time_boot_ms: int, name: bytes, value: int, force_mavlink1: bool = False) -> None:
  23356. """
  23357. Send a key-value pair as integer. The use of this message is
  23358. discouraged for normal packets, but a quite efficient way for
  23359. testing new messages and getting experimental debug output.
  23360. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23361. name : Name of the debug variable (type:char)
  23362. value : Signed integer value (type:int32_t)
  23363. """
  23364. self.send(self.named_value_int_encode(time_boot_ms, name, value), force_mavlink1=force_mavlink1)
  23365. def statustext_encode(self, severity: int, text: bytes, id: int = 0, chunk_seq: int = 0) -> MAVLink_statustext_message:
  23366. """
  23367. Status text message. These messages are printed in yellow in the COMM
  23368. console of QGroundControl. WARNING: They consume quite some
  23369. bandwidth, so use only for important status and error
  23370. messages. If implemented wisely, these messages are buffered
  23371. on the MCU and sent only at a limited rate (e.g. 10 Hz).
  23372. severity : Severity of status. Relies on the definitions within RFC-5424. (type:uint8_t, values:MAV_SEVERITY)
  23373. text : Status text message, without null termination character (type:char)
  23374. 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)
  23375. 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)
  23376. """
  23377. return MAVLink_statustext_message(severity, text, id, chunk_seq)
  23378. def statustext_send(self, severity: int, text: bytes, id: int = 0, chunk_seq: int = 0, force_mavlink1: bool = False) -> None:
  23379. """
  23380. Status text message. These messages are printed in yellow in the COMM
  23381. console of QGroundControl. WARNING: They consume quite some
  23382. bandwidth, so use only for important status and error
  23383. messages. If implemented wisely, these messages are buffered
  23384. on the MCU and sent only at a limited rate (e.g. 10 Hz).
  23385. severity : Severity of status. Relies on the definitions within RFC-5424. (type:uint8_t, values:MAV_SEVERITY)
  23386. text : Status text message, without null termination character (type:char)
  23387. 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)
  23388. 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)
  23389. """
  23390. self.send(self.statustext_encode(severity, text, id, chunk_seq), force_mavlink1=force_mavlink1)
  23391. def debug_encode(self, time_boot_ms: int, ind: int, value: float) -> MAVLink_debug_message:
  23392. """
  23393. Send a debug value. The index is used to discriminate between values.
  23394. These values show up in the plot of QGroundControl as DEBUG N.
  23395. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23396. ind : index of debug variable (type:uint8_t)
  23397. value : DEBUG value (type:float)
  23398. """
  23399. return MAVLink_debug_message(time_boot_ms, ind, value)
  23400. def debug_send(self, time_boot_ms: int, ind: int, value: float, force_mavlink1: bool = False) -> None:
  23401. """
  23402. Send a debug value. The index is used to discriminate between values.
  23403. These values show up in the plot of QGroundControl as DEBUG N.
  23404. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23405. ind : index of debug variable (type:uint8_t)
  23406. value : DEBUG value (type:float)
  23407. """
  23408. self.send(self.debug_encode(time_boot_ms, ind, value), force_mavlink1=force_mavlink1)
  23409. def setup_signing_encode(self, target_system: int, target_component: int, secret_key: Sequence[int], initial_timestamp: int) -> MAVLink_setup_signing_message:
  23410. """
  23411. Setup a MAVLink2 signing key. If called with secret_key of all zero
  23412. and zero initial_timestamp will disable signing
  23413. target_system : system id of the target (type:uint8_t)
  23414. target_component : component ID of the target (type:uint8_t)
  23415. secret_key : signing key (type:uint8_t)
  23416. initial_timestamp : initial timestamp (type:uint64_t)
  23417. """
  23418. return MAVLink_setup_signing_message(target_system, target_component, secret_key, initial_timestamp)
  23419. def setup_signing_send(self, target_system: int, target_component: int, secret_key: Sequence[int], initial_timestamp: int, force_mavlink1: bool = False) -> None:
  23420. """
  23421. Setup a MAVLink2 signing key. If called with secret_key of all zero
  23422. and zero initial_timestamp will disable signing
  23423. target_system : system id of the target (type:uint8_t)
  23424. target_component : component ID of the target (type:uint8_t)
  23425. secret_key : signing key (type:uint8_t)
  23426. initial_timestamp : initial timestamp (type:uint64_t)
  23427. """
  23428. self.send(self.setup_signing_encode(target_system, target_component, secret_key, initial_timestamp), force_mavlink1=force_mavlink1)
  23429. def button_change_encode(self, time_boot_ms: int, last_change_ms: int, state: int) -> MAVLink_button_change_message:
  23430. """
  23431. Report button state change.
  23432. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23433. last_change_ms : Time of last change of button state. [ms] (type:uint32_t)
  23434. state : Bitmap for state of buttons. (type:uint8_t)
  23435. """
  23436. return MAVLink_button_change_message(time_boot_ms, last_change_ms, state)
  23437. def button_change_send(self, time_boot_ms: int, last_change_ms: int, state: int, force_mavlink1: bool = False) -> None:
  23438. """
  23439. Report button state change.
  23440. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23441. last_change_ms : Time of last change of button state. [ms] (type:uint32_t)
  23442. state : Bitmap for state of buttons. (type:uint8_t)
  23443. """
  23444. self.send(self.button_change_encode(time_boot_ms, last_change_ms, state), force_mavlink1=force_mavlink1)
  23445. def play_tune_encode(self, target_system: int, target_component: int, tune: bytes, tune2: bytes = b"") -> MAVLink_play_tune_message:
  23446. """
  23447. Control vehicle tone generation (buzzer).
  23448. target_system : System ID (type:uint8_t)
  23449. target_component : Component ID (type:uint8_t)
  23450. tune : tune in board specific format (type:char)
  23451. tune2 : tune extension (appended to tune) (type:char)
  23452. """
  23453. return MAVLink_play_tune_message(target_system, target_component, tune, tune2)
  23454. def play_tune_send(self, target_system: int, target_component: int, tune: bytes, tune2: bytes = b"", force_mavlink1: bool = False) -> None:
  23455. """
  23456. Control vehicle tone generation (buzzer).
  23457. target_system : System ID (type:uint8_t)
  23458. target_component : Component ID (type:uint8_t)
  23459. tune : tune in board specific format (type:char)
  23460. tune2 : tune extension (appended to tune) (type:char)
  23461. """
  23462. self.send(self.play_tune_encode(target_system, target_component, tune, tune2), force_mavlink1=force_mavlink1)
  23463. 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:
  23464. """
  23465. Information about a camera. Can be requested with a
  23466. MAV_CMD_REQUEST_MESSAGE command.
  23467. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23468. vendor_name : Name of the camera vendor (type:uint8_t)
  23469. model_name : Name of the camera model (type:uint8_t)
  23470. 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)
  23471. focal_length : Focal length. Use NaN if not known. [mm] (type:float)
  23472. sensor_size_h : Image sensor size horizontal. Use NaN if not known. [mm] (type:float)
  23473. sensor_size_v : Image sensor size vertical. Use NaN if not known. [mm] (type:float)
  23474. resolution_h : Horizontal image resolution. Use 0 if not known. [pix] (type:uint16_t)
  23475. resolution_v : Vertical image resolution. Use 0 if not known. [pix] (type:uint16_t)
  23476. lens_id : Reserved for a lens ID. Use 0 if not known. (type:uint8_t)
  23477. flags : Bitmap of camera capability flags. (type:uint32_t, values:CAMERA_CAP_FLAGS)
  23478. cam_definition_version : Camera definition version (iteration). Use 0 if not known. (type:uint16_t)
  23479. 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)
  23480. 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)
  23481. """
  23482. 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)
  23483. 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:
  23484. """
  23485. Information about a camera. Can be requested with a
  23486. MAV_CMD_REQUEST_MESSAGE command.
  23487. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23488. vendor_name : Name of the camera vendor (type:uint8_t)
  23489. model_name : Name of the camera model (type:uint8_t)
  23490. 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)
  23491. focal_length : Focal length. Use NaN if not known. [mm] (type:float)
  23492. sensor_size_h : Image sensor size horizontal. Use NaN if not known. [mm] (type:float)
  23493. sensor_size_v : Image sensor size vertical. Use NaN if not known. [mm] (type:float)
  23494. resolution_h : Horizontal image resolution. Use 0 if not known. [pix] (type:uint16_t)
  23495. resolution_v : Vertical image resolution. Use 0 if not known. [pix] (type:uint16_t)
  23496. lens_id : Reserved for a lens ID. Use 0 if not known. (type:uint8_t)
  23497. flags : Bitmap of camera capability flags. (type:uint32_t, values:CAMERA_CAP_FLAGS)
  23498. cam_definition_version : Camera definition version (iteration). Use 0 if not known. (type:uint16_t)
  23499. 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)
  23500. 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)
  23501. """
  23502. 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)
  23503. def camera_settings_encode(self, time_boot_ms: int, mode_id: int, zoomLevel: float = 0, focusLevel: float = 0) -> MAVLink_camera_settings_message:
  23504. """
  23505. Settings of a camera. Can be requested with a MAV_CMD_REQUEST_MESSAGE
  23506. command.
  23507. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23508. mode_id : Camera mode (type:uint8_t, values:CAMERA_MODE)
  23509. zoomLevel : Current zoom level as a percentage of the full range (0.0 to 100.0, NaN if not known) (type:float)
  23510. focusLevel : Current focus level as a percentage of the full range (0.0 to 100.0, NaN if not known) (type:float)
  23511. """
  23512. return MAVLink_camera_settings_message(time_boot_ms, mode_id, zoomLevel, focusLevel)
  23513. def camera_settings_send(self, time_boot_ms: int, mode_id: int, zoomLevel: float = 0, focusLevel: float = 0, force_mavlink1: bool = False) -> None:
  23514. """
  23515. Settings of a camera. Can be requested with a MAV_CMD_REQUEST_MESSAGE
  23516. command.
  23517. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23518. mode_id : Camera mode (type:uint8_t, values:CAMERA_MODE)
  23519. zoomLevel : Current zoom level as a percentage of the full range (0.0 to 100.0, NaN if not known) (type:float)
  23520. focusLevel : Current focus level as a percentage of the full range (0.0 to 100.0, NaN if not known) (type:float)
  23521. """
  23522. self.send(self.camera_settings_encode(time_boot_ms, mode_id, zoomLevel, focusLevel), force_mavlink1=force_mavlink1)
  23523. 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:
  23524. """
  23525. Information about a storage medium. This message is sent in response
  23526. to a request with MAV_CMD_REQUEST_MESSAGE and whenever the
  23527. status of the storage changes (STORAGE_STATUS). Use
  23528. MAV_CMD_REQUEST_MESSAGE.param2 to indicate the index/id of
  23529. requested storage: 0 for all, 1 for first, 2 for second, etc.
  23530. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23531. storage_id : Storage ID (1 for first, 2 for second, etc.) (type:uint8_t)
  23532. storage_count : Number of storage devices (type:uint8_t)
  23533. status : Status of storage (type:uint8_t, values:STORAGE_STATUS)
  23534. total_capacity : Total capacity. If storage is not ready (STORAGE_STATUS_READY) value will be ignored. [MiB] (type:float)
  23535. used_capacity : Used capacity. If storage is not ready (STORAGE_STATUS_READY) value will be ignored. [MiB] (type:float)
  23536. available_capacity : Available storage capacity. If storage is not ready (STORAGE_STATUS_READY) value will be ignored. [MiB] (type:float)
  23537. read_speed : Read speed. [MiB/s] (type:float)
  23538. write_speed : Write speed. [MiB/s] (type:float)
  23539. type : Type of storage (type:uint8_t, values:STORAGE_TYPE)
  23540. 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)
  23541. storage_usage : Flags indicating whether this instance is preferred storage for photos, videos, etc.
  23542. Note: Implementations should initially set the flags on the system-default storage id used for saving media (if possible/supported).
  23543. This setting can then be overridden using MAV_CMD_SET_STORAGE_USAGE.
  23544. 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)
  23545. """
  23546. 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)
  23547. 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:
  23548. """
  23549. Information about a storage medium. This message is sent in response
  23550. to a request with MAV_CMD_REQUEST_MESSAGE and whenever the
  23551. status of the storage changes (STORAGE_STATUS). Use
  23552. MAV_CMD_REQUEST_MESSAGE.param2 to indicate the index/id of
  23553. requested storage: 0 for all, 1 for first, 2 for second, etc.
  23554. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23555. storage_id : Storage ID (1 for first, 2 for second, etc.) (type:uint8_t)
  23556. storage_count : Number of storage devices (type:uint8_t)
  23557. status : Status of storage (type:uint8_t, values:STORAGE_STATUS)
  23558. total_capacity : Total capacity. If storage is not ready (STORAGE_STATUS_READY) value will be ignored. [MiB] (type:float)
  23559. used_capacity : Used capacity. If storage is not ready (STORAGE_STATUS_READY) value will be ignored. [MiB] (type:float)
  23560. available_capacity : Available storage capacity. If storage is not ready (STORAGE_STATUS_READY) value will be ignored. [MiB] (type:float)
  23561. read_speed : Read speed. [MiB/s] (type:float)
  23562. write_speed : Write speed. [MiB/s] (type:float)
  23563. type : Type of storage (type:uint8_t, values:STORAGE_TYPE)
  23564. 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)
  23565. storage_usage : Flags indicating whether this instance is preferred storage for photos, videos, etc.
  23566. Note: Implementations should initially set the flags on the system-default storage id used for saving media (if possible/supported).
  23567. This setting can then be overridden using MAV_CMD_SET_STORAGE_USAGE.
  23568. 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)
  23569. """
  23570. 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)
  23571. 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:
  23572. """
  23573. Information about the status of a capture. Can be requested with a
  23574. MAV_CMD_REQUEST_MESSAGE command.
  23575. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23576. 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)
  23577. video_status : Current status of video capturing (0: idle, 1: capture in progress) (type:uint8_t)
  23578. image_interval : Image capture interval [s] (type:float)
  23579. 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)
  23580. available_capacity : Available storage capacity. [MiB] (type:float)
  23581. image_count : Total number of images captured ('forever', or until reset using MAV_CMD_STORAGE_FORMAT). (type:int32_t)
  23582. """
  23583. return MAVLink_camera_capture_status_message(time_boot_ms, image_status, video_status, image_interval, recording_time_ms, available_capacity, image_count)
  23584. 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:
  23585. """
  23586. Information about the status of a capture. Can be requested with a
  23587. MAV_CMD_REQUEST_MESSAGE command.
  23588. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23589. 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)
  23590. video_status : Current status of video capturing (0: idle, 1: capture in progress) (type:uint8_t)
  23591. image_interval : Image capture interval [s] (type:float)
  23592. 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)
  23593. available_capacity : Available storage capacity. [MiB] (type:float)
  23594. image_count : Total number of images captured ('forever', or until reset using MAV_CMD_STORAGE_FORMAT). (type:int32_t)
  23595. """
  23596. 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)
  23597. 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:
  23598. """
  23599. Information about a captured image. This is emitted every time a
  23600. message is captured. MAV_CMD_REQUEST_MESSAGE can be
  23601. used to (re)request this message for a specific sequence
  23602. number or range of sequence numbers:
  23603. MAV_CMD_REQUEST_MESSAGE.param2 indicates the sequence number
  23604. the first image to send, or set to -1 to send the message for
  23605. all sequence numbers. MAV_CMD_REQUEST_MESSAGE.param3
  23606. is used to specify a range of messages to send: set to
  23607. 0 (default) to send just the the message for the sequence
  23608. number in param 2, set to -1 to send the message for
  23609. the sequence number in param 2 and all the following sequence
  23610. numbers, set to the sequence number of the final
  23611. message in the range.
  23612. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23613. time_utc : Timestamp (time since UNIX epoch) in UTC. 0 for unknown. [us] (type:uint64_t)
  23614. camera_id : Deprecated/unused. Component IDs are used to differentiate multiple cameras. (type:uint8_t)
  23615. lat : Latitude where image was taken [degE7] (type:int32_t)
  23616. lon : Longitude where capture was taken [degE7] (type:int32_t)
  23617. alt : Altitude (MSL) where image was taken [mm] (type:int32_t)
  23618. relative_alt : Altitude above ground [mm] (type:int32_t)
  23619. q : Quaternion of camera orientation (w, x, y, z order, zero-rotation is 1, 0, 0, 0) (type:float)
  23620. 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)
  23621. capture_result : Boolean indicating success (1) or failure (0) while capturing this image. (type:int8_t)
  23622. file_url : URL of image taken. Either local storage or http://foo.jpg if camera provides an HTTP interface. (type:char)
  23623. """
  23624. 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)
  23625. 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:
  23626. """
  23627. Information about a captured image. This is emitted every time a
  23628. message is captured. MAV_CMD_REQUEST_MESSAGE can be
  23629. used to (re)request this message for a specific sequence
  23630. number or range of sequence numbers:
  23631. MAV_CMD_REQUEST_MESSAGE.param2 indicates the sequence number
  23632. the first image to send, or set to -1 to send the message for
  23633. all sequence numbers. MAV_CMD_REQUEST_MESSAGE.param3
  23634. is used to specify a range of messages to send: set to
  23635. 0 (default) to send just the the message for the sequence
  23636. number in param 2, set to -1 to send the message for
  23637. the sequence number in param 2 and all the following sequence
  23638. numbers, set to the sequence number of the final
  23639. message in the range.
  23640. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23641. time_utc : Timestamp (time since UNIX epoch) in UTC. 0 for unknown. [us] (type:uint64_t)
  23642. camera_id : Deprecated/unused. Component IDs are used to differentiate multiple cameras. (type:uint8_t)
  23643. lat : Latitude where image was taken [degE7] (type:int32_t)
  23644. lon : Longitude where capture was taken [degE7] (type:int32_t)
  23645. alt : Altitude (MSL) where image was taken [mm] (type:int32_t)
  23646. relative_alt : Altitude above ground [mm] (type:int32_t)
  23647. q : Quaternion of camera orientation (w, x, y, z order, zero-rotation is 1, 0, 0, 0) (type:float)
  23648. 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)
  23649. capture_result : Boolean indicating success (1) or failure (0) while capturing this image. (type:int8_t)
  23650. file_url : URL of image taken. Either local storage or http://foo.jpg if camera provides an HTTP interface. (type:char)
  23651. """
  23652. 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)
  23653. 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:
  23654. """
  23655. Flight information. This includes time since boot for arm,
  23656. takeoff, and land, and a flight number. Takeoff and
  23657. landing values reset to zero on arm. This can be
  23658. requested using MAV_CMD_REQUEST_MESSAGE. Note, some
  23659. fields are misnamed - timestamps are from boot (not UTC) and
  23660. the flight_uuid is a sequence number.
  23661. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23662. 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)
  23663. 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)
  23664. flight_uuid : Flight number. Note, field is misnamed UUID. (type:uint64_t)
  23665. landing_time : Timestamp at landing (in ms since system boot). Set to 0 at boot and on arming. [ms] (type:uint32_t)
  23666. """
  23667. return MAVLink_flight_information_message(time_boot_ms, arming_time_utc, takeoff_time_utc, flight_uuid, landing_time)
  23668. 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:
  23669. """
  23670. Flight information. This includes time since boot for arm,
  23671. takeoff, and land, and a flight number. Takeoff and
  23672. landing values reset to zero on arm. This can be
  23673. requested using MAV_CMD_REQUEST_MESSAGE. Note, some
  23674. fields are misnamed - timestamps are from boot (not UTC) and
  23675. the flight_uuid is a sequence number.
  23676. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23677. 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)
  23678. 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)
  23679. flight_uuid : Flight number. Note, field is misnamed UUID. (type:uint64_t)
  23680. landing_time : Timestamp at landing (in ms since system boot). Set to 0 at boot and on arming. [ms] (type:uint32_t)
  23681. """
  23682. self.send(self.flight_information_encode(time_boot_ms, arming_time_utc, takeoff_time_utc, flight_uuid, landing_time), force_mavlink1=force_mavlink1)
  23683. def mount_orientation_encode(self, time_boot_ms: int, roll: float, pitch: float, yaw: float, yaw_absolute: float = 0) -> MAVLink_mount_orientation_message:
  23684. """
  23685. Orientation of a mount
  23686. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23687. roll : Roll in global frame (set to NaN for invalid). [deg] (type:float)
  23688. pitch : Pitch in global frame (set to NaN for invalid). [deg] (type:float)
  23689. yaw : Yaw relative to vehicle (set to NaN for invalid). [deg] (type:float)
  23690. yaw_absolute : Yaw in absolute frame relative to Earth's North, north is 0 (set to NaN for invalid). [deg] (type:float)
  23691. """
  23692. return MAVLink_mount_orientation_message(time_boot_ms, roll, pitch, yaw, yaw_absolute)
  23693. def mount_orientation_send(self, time_boot_ms: int, roll: float, pitch: float, yaw: float, yaw_absolute: float = 0, force_mavlink1: bool = False) -> None:
  23694. """
  23695. Orientation of a mount
  23696. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23697. roll : Roll in global frame (set to NaN for invalid). [deg] (type:float)
  23698. pitch : Pitch in global frame (set to NaN for invalid). [deg] (type:float)
  23699. yaw : Yaw relative to vehicle (set to NaN for invalid). [deg] (type:float)
  23700. yaw_absolute : Yaw in absolute frame relative to Earth's North, north is 0 (set to NaN for invalid). [deg] (type:float)
  23701. """
  23702. self.send(self.mount_orientation_encode(time_boot_ms, roll, pitch, yaw, yaw_absolute), force_mavlink1=force_mavlink1)
  23703. 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:
  23704. """
  23705. A message containing logged data (see also MAV_CMD_LOGGING_START)
  23706. target_system : system ID of the target (type:uint8_t)
  23707. target_component : component ID of the target (type:uint8_t)
  23708. sequence : sequence number (can wrap) (type:uint16_t)
  23709. length : data length [bytes] (type:uint8_t)
  23710. 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)
  23711. data : logged data (type:uint8_t)
  23712. """
  23713. return MAVLink_logging_data_message(target_system, target_component, sequence, length, first_message_offset, data)
  23714. 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:
  23715. """
  23716. A message containing logged data (see also MAV_CMD_LOGGING_START)
  23717. target_system : system ID of the target (type:uint8_t)
  23718. target_component : component ID of the target (type:uint8_t)
  23719. sequence : sequence number (can wrap) (type:uint16_t)
  23720. length : data length [bytes] (type:uint8_t)
  23721. 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)
  23722. data : logged data (type:uint8_t)
  23723. """
  23724. self.send(self.logging_data_encode(target_system, target_component, sequence, length, first_message_offset, data), force_mavlink1=force_mavlink1)
  23725. 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:
  23726. """
  23727. A message containing logged data which requires a LOGGING_ACK to be
  23728. sent back
  23729. target_system : system ID of the target (type:uint8_t)
  23730. target_component : component ID of the target (type:uint8_t)
  23731. sequence : sequence number (can wrap) (type:uint16_t)
  23732. length : data length [bytes] (type:uint8_t)
  23733. 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)
  23734. data : logged data (type:uint8_t)
  23735. """
  23736. return MAVLink_logging_data_acked_message(target_system, target_component, sequence, length, first_message_offset, data)
  23737. 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:
  23738. """
  23739. A message containing logged data which requires a LOGGING_ACK to be
  23740. sent back
  23741. target_system : system ID of the target (type:uint8_t)
  23742. target_component : component ID of the target (type:uint8_t)
  23743. sequence : sequence number (can wrap) (type:uint16_t)
  23744. length : data length [bytes] (type:uint8_t)
  23745. 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)
  23746. data : logged data (type:uint8_t)
  23747. """
  23748. self.send(self.logging_data_acked_encode(target_system, target_component, sequence, length, first_message_offset, data), force_mavlink1=force_mavlink1)
  23749. def logging_ack_encode(self, target_system: int, target_component: int, sequence: int) -> MAVLink_logging_ack_message:
  23750. """
  23751. An ack for a LOGGING_DATA_ACKED message
  23752. target_system : system ID of the target (type:uint8_t)
  23753. target_component : component ID of the target (type:uint8_t)
  23754. sequence : sequence number (must match the one in LOGGING_DATA_ACKED) (type:uint16_t)
  23755. """
  23756. return MAVLink_logging_ack_message(target_system, target_component, sequence)
  23757. def logging_ack_send(self, target_system: int, target_component: int, sequence: int, force_mavlink1: bool = False) -> None:
  23758. """
  23759. An ack for a LOGGING_DATA_ACKED message
  23760. target_system : system ID of the target (type:uint8_t)
  23761. target_component : component ID of the target (type:uint8_t)
  23762. sequence : sequence number (must match the one in LOGGING_DATA_ACKED) (type:uint16_t)
  23763. """
  23764. self.send(self.logging_ack_encode(target_system, target_component, sequence), force_mavlink1=force_mavlink1)
  23765. 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:
  23766. """
  23767. Information about video stream. It may be requested using
  23768. MAV_CMD_REQUEST_MESSAGE, where param2 indicates the video
  23769. stream id: 0 for all streams, 1 for first, 2 for second, etc.
  23770. stream_id : Video Stream ID (1 for first, 2 for second, etc.) (type:uint8_t)
  23771. count : Number of streams available. (type:uint8_t)
  23772. type : Type of stream. (type:uint8_t, values:VIDEO_STREAM_TYPE)
  23773. flags : Bitmap of stream status flags. (type:uint16_t, values:VIDEO_STREAM_STATUS_FLAGS)
  23774. framerate : Frame rate. [Hz] (type:float)
  23775. resolution_h : Horizontal resolution. [pix] (type:uint16_t)
  23776. resolution_v : Vertical resolution. [pix] (type:uint16_t)
  23777. bitrate : Bit rate. [bits/s] (type:uint32_t)
  23778. rotation : Video image rotation clockwise. [deg] (type:uint16_t)
  23779. hfov : Horizontal Field of view. [deg] (type:uint16_t)
  23780. name : Stream name. (type:char)
  23781. 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)
  23782. """
  23783. return MAVLink_video_stream_information_message(stream_id, count, type, flags, framerate, resolution_h, resolution_v, bitrate, rotation, hfov, name, uri)
  23784. 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:
  23785. """
  23786. Information about video stream. It may be requested using
  23787. MAV_CMD_REQUEST_MESSAGE, where param2 indicates the video
  23788. stream id: 0 for all streams, 1 for first, 2 for second, etc.
  23789. stream_id : Video Stream ID (1 for first, 2 for second, etc.) (type:uint8_t)
  23790. count : Number of streams available. (type:uint8_t)
  23791. type : Type of stream. (type:uint8_t, values:VIDEO_STREAM_TYPE)
  23792. flags : Bitmap of stream status flags. (type:uint16_t, values:VIDEO_STREAM_STATUS_FLAGS)
  23793. framerate : Frame rate. [Hz] (type:float)
  23794. resolution_h : Horizontal resolution. [pix] (type:uint16_t)
  23795. resolution_v : Vertical resolution. [pix] (type:uint16_t)
  23796. bitrate : Bit rate. [bits/s] (type:uint32_t)
  23797. rotation : Video image rotation clockwise. [deg] (type:uint16_t)
  23798. hfov : Horizontal Field of view. [deg] (type:uint16_t)
  23799. name : Stream name. (type:char)
  23800. 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)
  23801. """
  23802. 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)
  23803. 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:
  23804. """
  23805. Information about the status of a video stream. It may be requested
  23806. using MAV_CMD_REQUEST_MESSAGE.
  23807. stream_id : Video Stream ID (1 for first, 2 for second, etc.) (type:uint8_t)
  23808. flags : Bitmap of stream status flags (type:uint16_t, values:VIDEO_STREAM_STATUS_FLAGS)
  23809. framerate : Frame rate [Hz] (type:float)
  23810. resolution_h : Horizontal resolution [pix] (type:uint16_t)
  23811. resolution_v : Vertical resolution [pix] (type:uint16_t)
  23812. bitrate : Bit rate [bits/s] (type:uint32_t)
  23813. rotation : Video image rotation clockwise [deg] (type:uint16_t)
  23814. hfov : Horizontal Field of view [deg] (type:uint16_t)
  23815. """
  23816. return MAVLink_video_stream_status_message(stream_id, flags, framerate, resolution_h, resolution_v, bitrate, rotation, hfov)
  23817. 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:
  23818. """
  23819. Information about the status of a video stream. It may be requested
  23820. using MAV_CMD_REQUEST_MESSAGE.
  23821. stream_id : Video Stream ID (1 for first, 2 for second, etc.) (type:uint8_t)
  23822. flags : Bitmap of stream status flags (type:uint16_t, values:VIDEO_STREAM_STATUS_FLAGS)
  23823. framerate : Frame rate [Hz] (type:float)
  23824. resolution_h : Horizontal resolution [pix] (type:uint16_t)
  23825. resolution_v : Vertical resolution [pix] (type:uint16_t)
  23826. bitrate : Bit rate [bits/s] (type:uint32_t)
  23827. rotation : Video image rotation clockwise [deg] (type:uint16_t)
  23828. hfov : Horizontal Field of view [deg] (type:uint16_t)
  23829. """
  23830. self.send(self.video_stream_status_encode(stream_id, flags, framerate, resolution_h, resolution_v, bitrate, rotation, hfov), force_mavlink1=force_mavlink1)
  23831. 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:
  23832. """
  23833. Information about the field of view of a camera. Can be requested with
  23834. a MAV_CMD_REQUEST_MESSAGE command.
  23835. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23836. lat_camera : Latitude of camera (INT32_MAX if unknown). [degE7] (type:int32_t)
  23837. lon_camera : Longitude of camera (INT32_MAX if unknown). [degE7] (type:int32_t)
  23838. alt_camera : Altitude (MSL) of camera (INT32_MAX if unknown). [mm] (type:int32_t)
  23839. lat_image : Latitude of center of image (INT32_MAX if unknown, INT32_MIN if at infinity, not intersecting with horizon). [degE7] (type:int32_t)
  23840. lon_image : Longitude of center of image (INT32_MAX if unknown, INT32_MIN if at infinity, not intersecting with horizon). [degE7] (type:int32_t)
  23841. 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)
  23842. q : Quaternion of camera orientation (w, x, y, z order, zero-rotation is 1, 0, 0, 0) (type:float)
  23843. hfov : Horizontal field of view (NaN if unknown). [deg] (type:float)
  23844. vfov : Vertical field of view (NaN if unknown). [deg] (type:float)
  23845. """
  23846. return MAVLink_camera_fov_status_message(time_boot_ms, lat_camera, lon_camera, alt_camera, lat_image, lon_image, alt_image, q, hfov, vfov)
  23847. 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:
  23848. """
  23849. Information about the field of view of a camera. Can be requested with
  23850. a MAV_CMD_REQUEST_MESSAGE command.
  23851. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23852. lat_camera : Latitude of camera (INT32_MAX if unknown). [degE7] (type:int32_t)
  23853. lon_camera : Longitude of camera (INT32_MAX if unknown). [degE7] (type:int32_t)
  23854. alt_camera : Altitude (MSL) of camera (INT32_MAX if unknown). [mm] (type:int32_t)
  23855. lat_image : Latitude of center of image (INT32_MAX if unknown, INT32_MIN if at infinity, not intersecting with horizon). [degE7] (type:int32_t)
  23856. lon_image : Longitude of center of image (INT32_MAX if unknown, INT32_MIN if at infinity, not intersecting with horizon). [degE7] (type:int32_t)
  23857. 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)
  23858. q : Quaternion of camera orientation (w, x, y, z order, zero-rotation is 1, 0, 0, 0) (type:float)
  23859. hfov : Horizontal field of view (NaN if unknown). [deg] (type:float)
  23860. vfov : Vertical field of view (NaN if unknown). [deg] (type:float)
  23861. """
  23862. 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)
  23863. 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:
  23864. """
  23865. Camera tracking status, sent while in active tracking. Use
  23866. MAV_CMD_SET_MESSAGE_INTERVAL to define message interval.
  23867. tracking_status : Current tracking status (type:uint8_t, values:CAMERA_TRACKING_STATUS_FLAGS)
  23868. tracking_mode : Current tracking mode (type:uint8_t, values:CAMERA_TRACKING_MODE)
  23869. target_data : Defines location of target data (type:uint8_t, values:CAMERA_TRACKING_TARGET_DATA)
  23870. 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)
  23871. 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)
  23872. 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)
  23873. 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)
  23874. 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)
  23875. 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)
  23876. 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)
  23877. """
  23878. 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)
  23879. 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:
  23880. """
  23881. Camera tracking status, sent while in active tracking. Use
  23882. MAV_CMD_SET_MESSAGE_INTERVAL to define message interval.
  23883. tracking_status : Current tracking status (type:uint8_t, values:CAMERA_TRACKING_STATUS_FLAGS)
  23884. tracking_mode : Current tracking mode (type:uint8_t, values:CAMERA_TRACKING_MODE)
  23885. target_data : Defines location of target data (type:uint8_t, values:CAMERA_TRACKING_TARGET_DATA)
  23886. 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)
  23887. 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)
  23888. 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)
  23889. 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)
  23890. 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)
  23891. 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)
  23892. 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)
  23893. """
  23894. 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)
  23895. 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:
  23896. """
  23897. Camera tracking status, sent while in active tracking. Use
  23898. MAV_CMD_SET_MESSAGE_INTERVAL to define message interval.
  23899. tracking_status : Current tracking status (type:uint8_t, values:CAMERA_TRACKING_STATUS_FLAGS)
  23900. lat : Latitude of tracked object [degE7] (type:int32_t)
  23901. lon : Longitude of tracked object [degE7] (type:int32_t)
  23902. alt : Altitude of tracked object(AMSL, WGS84) [m] (type:float)
  23903. h_acc : Horizontal accuracy. NAN if unknown [m] (type:float)
  23904. v_acc : Vertical accuracy. NAN if unknown [m] (type:float)
  23905. vel_n : North velocity of tracked object. NAN if unknown [m/s] (type:float)
  23906. vel_e : East velocity of tracked object. NAN if unknown [m/s] (type:float)
  23907. vel_d : Down velocity of tracked object. NAN if unknown [m/s] (type:float)
  23908. vel_acc : Velocity accuracy. NAN if unknown [m/s] (type:float)
  23909. dist : Distance between camera and tracked object. NAN if unknown [m] (type:float)
  23910. hdg : Heading in radians, in NED. NAN if unknown [rad] (type:float)
  23911. hdg_acc : Accuracy of heading, in NED. NAN if unknown [rad] (type:float)
  23912. """
  23913. 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)
  23914. 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:
  23915. """
  23916. Camera tracking status, sent while in active tracking. Use
  23917. MAV_CMD_SET_MESSAGE_INTERVAL to define message interval.
  23918. tracking_status : Current tracking status (type:uint8_t, values:CAMERA_TRACKING_STATUS_FLAGS)
  23919. lat : Latitude of tracked object [degE7] (type:int32_t)
  23920. lon : Longitude of tracked object [degE7] (type:int32_t)
  23921. alt : Altitude of tracked object(AMSL, WGS84) [m] (type:float)
  23922. h_acc : Horizontal accuracy. NAN if unknown [m] (type:float)
  23923. v_acc : Vertical accuracy. NAN if unknown [m] (type:float)
  23924. vel_n : North velocity of tracked object. NAN if unknown [m/s] (type:float)
  23925. vel_e : East velocity of tracked object. NAN if unknown [m/s] (type:float)
  23926. vel_d : Down velocity of tracked object. NAN if unknown [m/s] (type:float)
  23927. vel_acc : Velocity accuracy. NAN if unknown [m/s] (type:float)
  23928. dist : Distance between camera and tracked object. NAN if unknown [m] (type:float)
  23929. hdg : Heading in radians, in NED. NAN if unknown [rad] (type:float)
  23930. hdg_acc : Accuracy of heading, in NED. NAN if unknown [rad] (type:float)
  23931. """
  23932. 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)
  23933. 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:
  23934. """
  23935. Information about a high level gimbal manager. This message should be
  23936. requested by a ground station using MAV_CMD_REQUEST_MESSAGE.
  23937. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23938. cap_flags : Bitmap of gimbal capability flags. (type:uint32_t, values:GIMBAL_MANAGER_CAP_FLAGS)
  23939. 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)
  23940. roll_min : Minimum hardware roll angle (positive: rolling to the right, negative: rolling to the left) [rad] (type:float)
  23941. roll_max : Maximum hardware roll angle (positive: rolling to the right, negative: rolling to the left) [rad] (type:float)
  23942. pitch_min : Minimum pitch angle (positive: up, negative: down) [rad] (type:float)
  23943. pitch_max : Maximum pitch angle (positive: up, negative: down) [rad] (type:float)
  23944. yaw_min : Minimum yaw angle (positive: to the right, negative: to the left) [rad] (type:float)
  23945. yaw_max : Maximum yaw angle (positive: to the right, negative: to the left) [rad] (type:float)
  23946. """
  23947. 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)
  23948. 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:
  23949. """
  23950. Information about a high level gimbal manager. This message should be
  23951. requested by a ground station using MAV_CMD_REQUEST_MESSAGE.
  23952. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23953. cap_flags : Bitmap of gimbal capability flags. (type:uint32_t, values:GIMBAL_MANAGER_CAP_FLAGS)
  23954. 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)
  23955. roll_min : Minimum hardware roll angle (positive: rolling to the right, negative: rolling to the left) [rad] (type:float)
  23956. roll_max : Maximum hardware roll angle (positive: rolling to the right, negative: rolling to the left) [rad] (type:float)
  23957. pitch_min : Minimum pitch angle (positive: up, negative: down) [rad] (type:float)
  23958. pitch_max : Maximum pitch angle (positive: up, negative: down) [rad] (type:float)
  23959. yaw_min : Minimum yaw angle (positive: to the right, negative: to the left) [rad] (type:float)
  23960. yaw_max : Maximum yaw angle (positive: to the right, negative: to the left) [rad] (type:float)
  23961. """
  23962. 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)
  23963. 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:
  23964. """
  23965. Current status about a high level gimbal manager. This message should
  23966. be broadcast at a low regular rate (e.g. 5Hz).
  23967. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23968. flags : High level gimbal manager flags currently applied. (type:uint32_t, values:GIMBAL_MANAGER_FLAGS)
  23969. 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)
  23970. primary_control_sysid : System ID of MAVLink component with primary control, 0 for none. (type:uint8_t)
  23971. primary_control_compid : Component ID of MAVLink component with primary control, 0 for none. (type:uint8_t)
  23972. secondary_control_sysid : System ID of MAVLink component with secondary control, 0 for none. (type:uint8_t)
  23973. secondary_control_compid : Component ID of MAVLink component with secondary control, 0 for none. (type:uint8_t)
  23974. """
  23975. 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)
  23976. 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:
  23977. """
  23978. Current status about a high level gimbal manager. This message should
  23979. be broadcast at a low regular rate (e.g. 5Hz).
  23980. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  23981. flags : High level gimbal manager flags currently applied. (type:uint32_t, values:GIMBAL_MANAGER_FLAGS)
  23982. 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)
  23983. primary_control_sysid : System ID of MAVLink component with primary control, 0 for none. (type:uint8_t)
  23984. primary_control_compid : Component ID of MAVLink component with primary control, 0 for none. (type:uint8_t)
  23985. secondary_control_sysid : System ID of MAVLink component with secondary control, 0 for none. (type:uint8_t)
  23986. secondary_control_compid : Component ID of MAVLink component with secondary control, 0 for none. (type:uint8_t)
  23987. """
  23988. 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)
  23989. 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:
  23990. """
  23991. High level message to control a gimbal's attitude. This message is to
  23992. be sent to the gimbal manager (e.g. from a ground station).
  23993. Angles and rates can be set to NaN according to use case.
  23994. target_system : System ID (type:uint8_t)
  23995. target_component : Component ID (type:uint8_t)
  23996. flags : High level gimbal manager flags to use. (type:uint32_t, values:GIMBAL_MANAGER_FLAGS)
  23997. 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)
  23998. 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)
  23999. angular_velocity_x : X component of angular velocity, positive is rolling to the right, NaN to be ignored. [rad/s] (type:float)
  24000. angular_velocity_y : Y component of angular velocity, positive is pitching up, NaN to be ignored. [rad/s] (type:float)
  24001. angular_velocity_z : Z component of angular velocity, positive is yawing to the right, NaN to be ignored. [rad/s] (type:float)
  24002. """
  24003. 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)
  24004. 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:
  24005. """
  24006. High level message to control a gimbal's attitude. This message is to
  24007. be sent to the gimbal manager (e.g. from a ground station).
  24008. Angles and rates can be set to NaN according to use case.
  24009. target_system : System ID (type:uint8_t)
  24010. target_component : Component ID (type:uint8_t)
  24011. flags : High level gimbal manager flags to use. (type:uint32_t, values:GIMBAL_MANAGER_FLAGS)
  24012. 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)
  24013. 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)
  24014. angular_velocity_x : X component of angular velocity, positive is rolling to the right, NaN to be ignored. [rad/s] (type:float)
  24015. angular_velocity_y : Y component of angular velocity, positive is pitching up, NaN to be ignored. [rad/s] (type:float)
  24016. angular_velocity_z : Z component of angular velocity, positive is yawing to the right, NaN to be ignored. [rad/s] (type:float)
  24017. """
  24018. 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)
  24019. 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:
  24020. """
  24021. Information about a low level gimbal. This message should be requested
  24022. by the gimbal manager or a ground station using
  24023. MAV_CMD_REQUEST_MESSAGE. The maximum angles and rates are the
  24024. limits by hardware. However, the limits by software used are
  24025. likely different/smaller and dependent on mode/settings/etc..
  24026. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  24027. vendor_name : Name of the gimbal vendor. (type:char)
  24028. model_name : Name of the gimbal model. (type:char)
  24029. custom_name : Custom name of the gimbal given to it by the user. (type:char)
  24030. firmware_version : Version of the gimbal firmware, encoded as: (Dev & 0xff) << 24 | (Patch & 0xff) << 16 | (Minor & 0xff) << 8 | (Major & 0xff). (type:uint32_t)
  24031. hardware_version : Version of the gimbal hardware, encoded as: (Dev & 0xff) << 24 | (Patch & 0xff) << 16 | (Minor & 0xff) << 8 | (Major & 0xff). (type:uint32_t)
  24032. uid : UID of gimbal hardware (0 if unknown). (type:uint64_t)
  24033. cap_flags : Bitmap of gimbal capability flags. (type:uint16_t, values:GIMBAL_DEVICE_CAP_FLAGS)
  24034. custom_cap_flags : Bitmap for use for gimbal-specific capability flags. (type:uint16_t)
  24035. roll_min : Minimum hardware roll angle (positive: rolling to the right, negative: rolling to the left). NAN if unknown. [rad] (type:float)
  24036. roll_max : Maximum hardware roll angle (positive: rolling to the right, negative: rolling to the left). NAN if unknown. [rad] (type:float)
  24037. pitch_min : Minimum hardware pitch angle (positive: up, negative: down). NAN if unknown. [rad] (type:float)
  24038. pitch_max : Maximum hardware pitch angle (positive: up, negative: down). NAN if unknown. [rad] (type:float)
  24039. yaw_min : Minimum hardware yaw angle (positive: to the right, negative: to the left). NAN if unknown. [rad] (type:float)
  24040. yaw_max : Maximum hardware yaw angle (positive: to the right, negative: to the left). NAN if unknown. [rad] (type:float)
  24041. 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)
  24042. """
  24043. 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)
  24044. 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:
  24045. """
  24046. Information about a low level gimbal. This message should be requested
  24047. by the gimbal manager or a ground station using
  24048. MAV_CMD_REQUEST_MESSAGE. The maximum angles and rates are the
  24049. limits by hardware. However, the limits by software used are
  24050. likely different/smaller and dependent on mode/settings/etc..
  24051. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  24052. vendor_name : Name of the gimbal vendor. (type:char)
  24053. model_name : Name of the gimbal model. (type:char)
  24054. custom_name : Custom name of the gimbal given to it by the user. (type:char)
  24055. firmware_version : Version of the gimbal firmware, encoded as: (Dev & 0xff) << 24 | (Patch & 0xff) << 16 | (Minor & 0xff) << 8 | (Major & 0xff). (type:uint32_t)
  24056. hardware_version : Version of the gimbal hardware, encoded as: (Dev & 0xff) << 24 | (Patch & 0xff) << 16 | (Minor & 0xff) << 8 | (Major & 0xff). (type:uint32_t)
  24057. uid : UID of gimbal hardware (0 if unknown). (type:uint64_t)
  24058. cap_flags : Bitmap of gimbal capability flags. (type:uint16_t, values:GIMBAL_DEVICE_CAP_FLAGS)
  24059. custom_cap_flags : Bitmap for use for gimbal-specific capability flags. (type:uint16_t)
  24060. roll_min : Minimum hardware roll angle (positive: rolling to the right, negative: rolling to the left). NAN if unknown. [rad] (type:float)
  24061. roll_max : Maximum hardware roll angle (positive: rolling to the right, negative: rolling to the left). NAN if unknown. [rad] (type:float)
  24062. pitch_min : Minimum hardware pitch angle (positive: up, negative: down). NAN if unknown. [rad] (type:float)
  24063. pitch_max : Maximum hardware pitch angle (positive: up, negative: down). NAN if unknown. [rad] (type:float)
  24064. yaw_min : Minimum hardware yaw angle (positive: to the right, negative: to the left). NAN if unknown. [rad] (type:float)
  24065. yaw_max : Maximum hardware yaw angle (positive: to the right, negative: to the left). NAN if unknown. [rad] (type:float)
  24066. 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)
  24067. """
  24068. 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)
  24069. 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:
  24070. """
  24071. Low level message to control a gimbal device's attitude.
  24072. This message is to be sent from the gimbal manager to the
  24073. gimbal device component. The quaternion and angular
  24074. velocities can be set to NaN according to use case.
  24075. For the angles encoded in the quaternion and the angular
  24076. velocities holds: If the flag
  24077. GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME is set, then they are
  24078. relative to the vehicle heading (vehicle frame). If
  24079. the flag GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME is set, then
  24080. they are relative to absolute North (earth frame).
  24081. If neither of these flags are set, then (for backwards
  24082. compatibility) it holds: If the flag
  24083. GIMBAL_DEVICE_FLAGS_YAW_LOCK is set, then they are relative to
  24084. absolute North (earth frame), else they are relative
  24085. to the vehicle heading (vehicle frame). Setting both
  24086. GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME and
  24087. GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME is not allowed.
  24088. These rules are to ensure backwards compatibility.
  24089. New implementations should always set either
  24090. GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME or
  24091. GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME.
  24092. target_system : System ID (type:uint8_t)
  24093. target_component : Component ID (type:uint8_t)
  24094. flags : Low level gimbal flags. (type:uint16_t, values:GIMBAL_DEVICE_FLAGS)
  24095. 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)
  24096. 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)
  24097. 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)
  24098. 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)
  24099. """
  24100. return MAVLink_gimbal_device_set_attitude_message(target_system, target_component, flags, q, angular_velocity_x, angular_velocity_y, angular_velocity_z)
  24101. 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:
  24102. """
  24103. Low level message to control a gimbal device's attitude.
  24104. This message is to be sent from the gimbal manager to the
  24105. gimbal device component. The quaternion and angular
  24106. velocities can be set to NaN according to use case.
  24107. For the angles encoded in the quaternion and the angular
  24108. velocities holds: If the flag
  24109. GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME is set, then they are
  24110. relative to the vehicle heading (vehicle frame). If
  24111. the flag GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME is set, then
  24112. they are relative to absolute North (earth frame).
  24113. If neither of these flags are set, then (for backwards
  24114. compatibility) it holds: If the flag
  24115. GIMBAL_DEVICE_FLAGS_YAW_LOCK is set, then they are relative to
  24116. absolute North (earth frame), else they are relative
  24117. to the vehicle heading (vehicle frame). Setting both
  24118. GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME and
  24119. GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME is not allowed.
  24120. These rules are to ensure backwards compatibility.
  24121. New implementations should always set either
  24122. GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME or
  24123. GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME.
  24124. target_system : System ID (type:uint8_t)
  24125. target_component : Component ID (type:uint8_t)
  24126. flags : Low level gimbal flags. (type:uint16_t, values:GIMBAL_DEVICE_FLAGS)
  24127. 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)
  24128. 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)
  24129. 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)
  24130. 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)
  24131. """
  24132. 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)
  24133. 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:
  24134. """
  24135. Message reporting the status of a gimbal device. This
  24136. message should be broadcast by a gimbal device component at a
  24137. low regular rate (e.g. 5 Hz). For the angles encoded
  24138. in the quaternion and the angular velocities holds:
  24139. If the flag GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME is set,
  24140. then they are relative to the vehicle heading (vehicle frame).
  24141. If the flag GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME is set,
  24142. then they are relative to absolute North (earth frame).
  24143. If neither of these flags are set, then (for backwards
  24144. compatibility) it holds: If the flag
  24145. GIMBAL_DEVICE_FLAGS_YAW_LOCK is set, then they are relative to
  24146. absolute North (earth frame), else they are relative
  24147. to the vehicle heading (vehicle frame). Other
  24148. conditions of the flags are not allowed. The
  24149. quaternion and angular velocities in the other frame can be
  24150. calculated from delta_yaw and delta_yaw_velocity as
  24151. q_earth = q_delta_yaw * q_vehicle and w_earth =
  24152. w_delta_yaw_velocity + w_vehicle (if not NaN). If
  24153. neither the GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME nor the
  24154. GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME flag is set,
  24155. then (for backwards compatibility) the data in the delta_yaw
  24156. and delta_yaw_velocity fields are to be ignored. New
  24157. implementations should always set either
  24158. GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME or
  24159. GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME, and always
  24160. should set delta_yaw and delta_yaw_velocity either to the
  24161. proper value or NaN.
  24162. target_system : System ID (type:uint8_t)
  24163. target_component : Component ID (type:uint8_t)
  24164. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  24165. flags : Current gimbal flags set. (type:uint16_t, values:GIMBAL_DEVICE_FLAGS)
  24166. 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)
  24167. 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)
  24168. 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)
  24169. 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)
  24170. failure_flags : Failure flags (0 for no failure) (type:uint32_t, values:GIMBAL_DEVICE_ERROR_FLAGS)
  24171. delta_yaw : Yaw angle relating the quaternions in earth and body frames (see message description). NaN if unknown. [rad] (type:float)
  24172. 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)
  24173. 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)
  24174. """
  24175. 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)
  24176. 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:
  24177. """
  24178. Message reporting the status of a gimbal device. This
  24179. message should be broadcast by a gimbal device component at a
  24180. low regular rate (e.g. 5 Hz). For the angles encoded
  24181. in the quaternion and the angular velocities holds:
  24182. If the flag GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME is set,
  24183. then they are relative to the vehicle heading (vehicle frame).
  24184. If the flag GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME is set,
  24185. then they are relative to absolute North (earth frame).
  24186. If neither of these flags are set, then (for backwards
  24187. compatibility) it holds: If the flag
  24188. GIMBAL_DEVICE_FLAGS_YAW_LOCK is set, then they are relative to
  24189. absolute North (earth frame), else they are relative
  24190. to the vehicle heading (vehicle frame). Other
  24191. conditions of the flags are not allowed. The
  24192. quaternion and angular velocities in the other frame can be
  24193. calculated from delta_yaw and delta_yaw_velocity as
  24194. q_earth = q_delta_yaw * q_vehicle and w_earth =
  24195. w_delta_yaw_velocity + w_vehicle (if not NaN). If
  24196. neither the GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME nor the
  24197. GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME flag is set,
  24198. then (for backwards compatibility) the data in the delta_yaw
  24199. and delta_yaw_velocity fields are to be ignored. New
  24200. implementations should always set either
  24201. GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME or
  24202. GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME, and always
  24203. should set delta_yaw and delta_yaw_velocity either to the
  24204. proper value or NaN.
  24205. target_system : System ID (type:uint8_t)
  24206. target_component : Component ID (type:uint8_t)
  24207. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  24208. flags : Current gimbal flags set. (type:uint16_t, values:GIMBAL_DEVICE_FLAGS)
  24209. 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)
  24210. 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)
  24211. 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)
  24212. 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)
  24213. failure_flags : Failure flags (0 for no failure) (type:uint32_t, values:GIMBAL_DEVICE_ERROR_FLAGS)
  24214. delta_yaw : Yaw angle relating the quaternions in earth and body frames (see message description). NaN if unknown. [rad] (type:float)
  24215. 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)
  24216. 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)
  24217. """
  24218. 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)
  24219. 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:
  24220. """
  24221. Low level message containing autopilot state relevant for a gimbal
  24222. device. This message is to be sent from the autopilot to the
  24223. gimbal device component. The data of this message are for the
  24224. gimbal device's estimator corrections, in particular horizon
  24225. compensation, as well as indicates autopilot control
  24226. intentions, e.g. feed forward angular control in the z-axis.
  24227. target_system : System ID (type:uint8_t)
  24228. target_component : Component ID (type:uint8_t)
  24229. time_boot_us : Timestamp (time since system boot). [us] (type:uint64_t)
  24230. q : Quaternion components of autopilot attitude: w, x, y, z (1 0 0 0 is the null-rotation, Hamilton convention). (type:float)
  24231. q_estimated_delay_us : Estimated delay of the attitude data. 0 if unknown. [us] (type:uint32_t)
  24232. vx : X Speed in NED (North, East, Down). NAN if unknown. [m/s] (type:float)
  24233. vy : Y Speed in NED (North, East, Down). NAN if unknown. [m/s] (type:float)
  24234. vz : Z Speed in NED (North, East, Down). NAN if unknown. [m/s] (type:float)
  24235. v_estimated_delay_us : Estimated delay of the speed data. 0 if unknown. [us] (type:uint32_t)
  24236. 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)
  24237. estimator_status : Bitmap indicating which estimator outputs are valid. (type:uint16_t, values:ESTIMATOR_STATUS_FLAGS)
  24238. landed_state : The landed state. Is set to MAV_LANDED_STATE_UNDEFINED if landed state is unknown. (type:uint8_t, values:MAV_LANDED_STATE)
  24239. angular_velocity_z : Z component of angular velocity in NED (North, East, Down). NaN if unknown. [rad/s] (type:float)
  24240. """
  24241. 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)
  24242. 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:
  24243. """
  24244. Low level message containing autopilot state relevant for a gimbal
  24245. device. This message is to be sent from the autopilot to the
  24246. gimbal device component. The data of this message are for the
  24247. gimbal device's estimator corrections, in particular horizon
  24248. compensation, as well as indicates autopilot control
  24249. intentions, e.g. feed forward angular control in the z-axis.
  24250. target_system : System ID (type:uint8_t)
  24251. target_component : Component ID (type:uint8_t)
  24252. time_boot_us : Timestamp (time since system boot). [us] (type:uint64_t)
  24253. q : Quaternion components of autopilot attitude: w, x, y, z (1 0 0 0 is the null-rotation, Hamilton convention). (type:float)
  24254. q_estimated_delay_us : Estimated delay of the attitude data. 0 if unknown. [us] (type:uint32_t)
  24255. vx : X Speed in NED (North, East, Down). NAN if unknown. [m/s] (type:float)
  24256. vy : Y Speed in NED (North, East, Down). NAN if unknown. [m/s] (type:float)
  24257. vz : Z Speed in NED (North, East, Down). NAN if unknown. [m/s] (type:float)
  24258. v_estimated_delay_us : Estimated delay of the speed data. 0 if unknown. [us] (type:uint32_t)
  24259. 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)
  24260. estimator_status : Bitmap indicating which estimator outputs are valid. (type:uint16_t, values:ESTIMATOR_STATUS_FLAGS)
  24261. landed_state : The landed state. Is set to MAV_LANDED_STATE_UNDEFINED if landed state is unknown. (type:uint8_t, values:MAV_LANDED_STATE)
  24262. angular_velocity_z : Z component of angular velocity in NED (North, East, Down). NaN if unknown. [rad/s] (type:float)
  24263. """
  24264. 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)
  24265. 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:
  24266. """
  24267. Set gimbal manager pitch and yaw angles (high rate message). This
  24268. message is to be sent to the gimbal manager (e.g. from a
  24269. ground station) and will be ignored by gimbal devices. Angles
  24270. and rates can be set to NaN according to use case. Use
  24271. MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW for low-rate adjustments
  24272. that require confirmation.
  24273. target_system : System ID (type:uint8_t)
  24274. target_component : Component ID (type:uint8_t)
  24275. flags : High level gimbal manager flags to use. (type:uint32_t, values:GIMBAL_MANAGER_FLAGS)
  24276. 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)
  24277. pitch : Pitch angle (positive: up, negative: down, NaN to be ignored). [rad] (type:float)
  24278. yaw : Yaw angle (positive: to the right, negative: to the left, NaN to be ignored). [rad] (type:float)
  24279. pitch_rate : Pitch angular rate (positive: up, negative: down, NaN to be ignored). [rad/s] (type:float)
  24280. yaw_rate : Yaw angular rate (positive: to the right, negative: to the left, NaN to be ignored). [rad/s] (type:float)
  24281. """
  24282. return MAVLink_gimbal_manager_set_pitchyaw_message(target_system, target_component, flags, gimbal_device_id, pitch, yaw, pitch_rate, yaw_rate)
  24283. 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:
  24284. """
  24285. Set gimbal manager pitch and yaw angles (high rate message). This
  24286. message is to be sent to the gimbal manager (e.g. from a
  24287. ground station) and will be ignored by gimbal devices. Angles
  24288. and rates can be set to NaN according to use case. Use
  24289. MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW for low-rate adjustments
  24290. that require confirmation.
  24291. target_system : System ID (type:uint8_t)
  24292. target_component : Component ID (type:uint8_t)
  24293. flags : High level gimbal manager flags to use. (type:uint32_t, values:GIMBAL_MANAGER_FLAGS)
  24294. 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)
  24295. pitch : Pitch angle (positive: up, negative: down, NaN to be ignored). [rad] (type:float)
  24296. yaw : Yaw angle (positive: to the right, negative: to the left, NaN to be ignored). [rad] (type:float)
  24297. pitch_rate : Pitch angular rate (positive: up, negative: down, NaN to be ignored). [rad/s] (type:float)
  24298. yaw_rate : Yaw angular rate (positive: to the right, negative: to the left, NaN to be ignored). [rad/s] (type:float)
  24299. """
  24300. 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)
  24301. 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:
  24302. """
  24303. High level message to control a gimbal manually. The angles or angular
  24304. rates are unitless; the actual rates will depend on internal
  24305. gimbal manager settings/configuration (e.g. set by
  24306. parameters). This message is to be sent to the gimbal manager
  24307. (e.g. from a ground station). Angles and rates can be set to
  24308. NaN according to use case.
  24309. target_system : System ID (type:uint8_t)
  24310. target_component : Component ID (type:uint8_t)
  24311. flags : High level gimbal manager flags. (type:uint32_t, values:GIMBAL_MANAGER_FLAGS)
  24312. 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)
  24313. pitch : Pitch angle unitless (-1..1, positive: up, negative: down, NaN to be ignored). (type:float)
  24314. yaw : Yaw angle unitless (-1..1, positive: to the right, negative: to the left, NaN to be ignored). (type:float)
  24315. pitch_rate : Pitch angular rate unitless (-1..1, positive: up, negative: down, NaN to be ignored). (type:float)
  24316. yaw_rate : Yaw angular rate unitless (-1..1, positive: to the right, negative: to the left, NaN to be ignored). (type:float)
  24317. """
  24318. return MAVLink_gimbal_manager_set_manual_control_message(target_system, target_component, flags, gimbal_device_id, pitch, yaw, pitch_rate, yaw_rate)
  24319. 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:
  24320. """
  24321. High level message to control a gimbal manually. The angles or angular
  24322. rates are unitless; the actual rates will depend on internal
  24323. gimbal manager settings/configuration (e.g. set by
  24324. parameters). This message is to be sent to the gimbal manager
  24325. (e.g. from a ground station). Angles and rates can be set to
  24326. NaN according to use case.
  24327. target_system : System ID (type:uint8_t)
  24328. target_component : Component ID (type:uint8_t)
  24329. flags : High level gimbal manager flags. (type:uint32_t, values:GIMBAL_MANAGER_FLAGS)
  24330. 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)
  24331. pitch : Pitch angle unitless (-1..1, positive: up, negative: down, NaN to be ignored). (type:float)
  24332. yaw : Yaw angle unitless (-1..1, positive: to the right, negative: to the left, NaN to be ignored). (type:float)
  24333. pitch_rate : Pitch angular rate unitless (-1..1, positive: up, negative: down, NaN to be ignored). (type:float)
  24334. yaw_rate : Yaw angular rate unitless (-1..1, positive: to the right, negative: to the left, NaN to be ignored). (type:float)
  24335. """
  24336. 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)
  24337. 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:
  24338. """
  24339. ESC information for lower rate streaming. Recommended streaming rate
  24340. 1Hz. See ESC_STATUS for higher-rate ESC data.
  24341. index : Index of the first ESC in this message. minValue = 0, maxValue = 60, increment = 4. (type:uint8_t)
  24342. 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)
  24343. counter : Counter of data packets received. (type:uint16_t)
  24344. 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)
  24345. connection_type : Connection type protocol for all ESC. (type:uint8_t, values:ESC_CONNECTION_TYPE)
  24346. info : Information regarding online/offline status of each ESC. (type:uint8_t)
  24347. failure_flags : Bitmap of ESC failure flags. (type:uint16_t, values:ESC_FAILURE_FLAGS)
  24348. error_count : Number of reported errors by each ESC since boot. (type:uint32_t)
  24349. temperature : Temperature of each ESC. INT16_MAX: if data not supplied by ESC. [cdegC] (type:int16_t)
  24350. """
  24351. return MAVLink_esc_info_message(index, time_usec, counter, count, connection_type, info, failure_flags, error_count, temperature)
  24352. 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:
  24353. """
  24354. ESC information for lower rate streaming. Recommended streaming rate
  24355. 1Hz. See ESC_STATUS for higher-rate ESC data.
  24356. index : Index of the first ESC in this message. minValue = 0, maxValue = 60, increment = 4. (type:uint8_t)
  24357. 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)
  24358. counter : Counter of data packets received. (type:uint16_t)
  24359. 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)
  24360. connection_type : Connection type protocol for all ESC. (type:uint8_t, values:ESC_CONNECTION_TYPE)
  24361. info : Information regarding online/offline status of each ESC. (type:uint8_t)
  24362. failure_flags : Bitmap of ESC failure flags. (type:uint16_t, values:ESC_FAILURE_FLAGS)
  24363. error_count : Number of reported errors by each ESC since boot. (type:uint32_t)
  24364. temperature : Temperature of each ESC. INT16_MAX: if data not supplied by ESC. [cdegC] (type:int16_t)
  24365. """
  24366. self.send(self.esc_info_encode(index, time_usec, counter, count, connection_type, info, failure_flags, error_count, temperature), force_mavlink1=force_mavlink1)
  24367. def esc_status_encode(self, index: int, time_usec: int, rpm: Sequence[int], voltage: Sequence[float], current: Sequence[float]) -> MAVLink_esc_status_message:
  24368. """
  24369. ESC information for higher rate streaming. Recommended streaming rate
  24370. is ~10 Hz. Information that changes more slowly is sent in
  24371. ESC_INFO. It should typically only be streamed on high-
  24372. bandwidth links (i.e. to a companion computer).
  24373. index : Index of the first ESC in this message. minValue = 0, maxValue = 60, increment = 4. (type:uint8_t)
  24374. 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)
  24375. rpm : Reported motor RPM from each ESC (negative for reverse rotation). [rpm] (type:int32_t)
  24376. voltage : Voltage measured from each ESC. [V] (type:float)
  24377. current : Current measured from each ESC. [A] (type:float)
  24378. """
  24379. return MAVLink_esc_status_message(index, time_usec, rpm, voltage, current)
  24380. def esc_status_send(self, index: int, time_usec: int, rpm: Sequence[int], voltage: Sequence[float], current: Sequence[float], force_mavlink1: bool = False) -> None:
  24381. """
  24382. ESC information for higher rate streaming. Recommended streaming rate
  24383. is ~10 Hz. Information that changes more slowly is sent in
  24384. ESC_INFO. It should typically only be streamed on high-
  24385. bandwidth links (i.e. to a companion computer).
  24386. index : Index of the first ESC in this message. minValue = 0, maxValue = 60, increment = 4. (type:uint8_t)
  24387. 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)
  24388. rpm : Reported motor RPM from each ESC (negative for reverse rotation). [rpm] (type:int32_t)
  24389. voltage : Voltage measured from each ESC. [V] (type:float)
  24390. current : Current measured from each ESC. [A] (type:float)
  24391. """
  24392. self.send(self.esc_status_encode(index, time_usec, rpm, voltage, current), force_mavlink1=force_mavlink1)
  24393. def wifi_config_ap_encode(self, ssid: bytes, password: bytes, mode: int = 0, response: int = 0) -> MAVLink_wifi_config_ap_message:
  24394. """
  24395. Configure WiFi AP SSID, password, and mode. This message is re-emitted
  24396. as an acknowledgement by the AP. The message may also be
  24397. explicitly requested using MAV_CMD_REQUEST_MESSAGE
  24398. ssid : Name of Wi-Fi network (SSID). Blank to leave it unchanged when setting. Current SSID when sent back as a response. (type:char)
  24399. password : Password. Blank for an open AP. MD5 hash when message is sent back as a response. (type:char)
  24400. mode : WiFi Mode. (type:int8_t, values:WIFI_CONFIG_AP_MODE)
  24401. response : Message acceptance response (sent back to GS). (type:int8_t, values:WIFI_CONFIG_AP_RESPONSE)
  24402. """
  24403. return MAVLink_wifi_config_ap_message(ssid, password, mode, response)
  24404. def wifi_config_ap_send(self, ssid: bytes, password: bytes, mode: int = 0, response: int = 0, force_mavlink1: bool = False) -> None:
  24405. """
  24406. Configure WiFi AP SSID, password, and mode. This message is re-emitted
  24407. as an acknowledgement by the AP. The message may also be
  24408. explicitly requested using MAV_CMD_REQUEST_MESSAGE
  24409. ssid : Name of Wi-Fi network (SSID). Blank to leave it unchanged when setting. Current SSID when sent back as a response. (type:char)
  24410. password : Password. Blank for an open AP. MD5 hash when message is sent back as a response. (type:char)
  24411. mode : WiFi Mode. (type:int8_t, values:WIFI_CONFIG_AP_MODE)
  24412. response : Message acceptance response (sent back to GS). (type:int8_t, values:WIFI_CONFIG_AP_RESPONSE)
  24413. """
  24414. self.send(self.wifi_config_ap_encode(ssid, password, mode, response), force_mavlink1=force_mavlink1)
  24415. 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:
  24416. """
  24417. The location and information of an AIS vessel
  24418. MMSI : Mobile Marine Service Identifier, 9 decimal digits (type:uint32_t)
  24419. lat : Latitude [degE7] (type:int32_t)
  24420. lon : Longitude [degE7] (type:int32_t)
  24421. COG : Course over ground [cdeg] (type:uint16_t)
  24422. heading : True heading [cdeg] (type:uint16_t)
  24423. velocity : Speed over ground [cm/s] (type:uint16_t)
  24424. turn_rate : Turn rate [cdeg/s] (type:int8_t)
  24425. navigational_status : Navigational status (type:uint8_t, values:AIS_NAV_STATUS)
  24426. type : Type of vessels (type:uint8_t, values:AIS_TYPE)
  24427. dimension_bow : Distance from lat/lon location to bow [m] (type:uint16_t)
  24428. dimension_stern : Distance from lat/lon location to stern [m] (type:uint16_t)
  24429. dimension_port : Distance from lat/lon location to port side [m] (type:uint8_t)
  24430. dimension_starboard : Distance from lat/lon location to starboard side [m] (type:uint8_t)
  24431. callsign : The vessel callsign (type:char)
  24432. name : The vessel name (type:char)
  24433. tslc : Time since last communication in seconds [s] (type:uint16_t)
  24434. flags : Bitmask to indicate various statuses including valid data fields (type:uint16_t, values:AIS_FLAGS)
  24435. """
  24436. 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)
  24437. 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:
  24438. """
  24439. The location and information of an AIS vessel
  24440. MMSI : Mobile Marine Service Identifier, 9 decimal digits (type:uint32_t)
  24441. lat : Latitude [degE7] (type:int32_t)
  24442. lon : Longitude [degE7] (type:int32_t)
  24443. COG : Course over ground [cdeg] (type:uint16_t)
  24444. heading : True heading [cdeg] (type:uint16_t)
  24445. velocity : Speed over ground [cm/s] (type:uint16_t)
  24446. turn_rate : Turn rate [cdeg/s] (type:int8_t)
  24447. navigational_status : Navigational status (type:uint8_t, values:AIS_NAV_STATUS)
  24448. type : Type of vessels (type:uint8_t, values:AIS_TYPE)
  24449. dimension_bow : Distance from lat/lon location to bow [m] (type:uint16_t)
  24450. dimension_stern : Distance from lat/lon location to stern [m] (type:uint16_t)
  24451. dimension_port : Distance from lat/lon location to port side [m] (type:uint8_t)
  24452. dimension_starboard : Distance from lat/lon location to starboard side [m] (type:uint8_t)
  24453. callsign : The vessel callsign (type:char)
  24454. name : The vessel name (type:char)
  24455. tslc : Time since last communication in seconds [s] (type:uint16_t)
  24456. flags : Bitmask to indicate various statuses including valid data fields (type:uint16_t, values:AIS_FLAGS)
  24457. """
  24458. 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)
  24459. 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:
  24460. """
  24461. General status information of an UAVCAN node. Please refer to the
  24462. definition of the UAVCAN message "uavcan.protocol.NodeStatus"
  24463. for the background information. The UAVCAN specification is
  24464. available at http://uavcan.org.
  24465. 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)
  24466. uptime_sec : Time since the start-up of the node. [s] (type:uint32_t)
  24467. health : Generalized node health status. (type:uint8_t, values:UAVCAN_NODE_HEALTH)
  24468. mode : Generalized operating mode. (type:uint8_t, values:UAVCAN_NODE_MODE)
  24469. sub_mode : Not used currently. (type:uint8_t)
  24470. vendor_specific_status_code : Vendor-specific status information. (type:uint16_t)
  24471. """
  24472. return MAVLink_uavcan_node_status_message(time_usec, uptime_sec, health, mode, sub_mode, vendor_specific_status_code)
  24473. 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:
  24474. """
  24475. General status information of an UAVCAN node. Please refer to the
  24476. definition of the UAVCAN message "uavcan.protocol.NodeStatus"
  24477. for the background information. The UAVCAN specification is
  24478. available at http://uavcan.org.
  24479. 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)
  24480. uptime_sec : Time since the start-up of the node. [s] (type:uint32_t)
  24481. health : Generalized node health status. (type:uint8_t, values:UAVCAN_NODE_HEALTH)
  24482. mode : Generalized operating mode. (type:uint8_t, values:UAVCAN_NODE_MODE)
  24483. sub_mode : Not used currently. (type:uint8_t)
  24484. vendor_specific_status_code : Vendor-specific status information. (type:uint16_t)
  24485. """
  24486. self.send(self.uavcan_node_status_encode(time_usec, uptime_sec, health, mode, sub_mode, vendor_specific_status_code), force_mavlink1=force_mavlink1)
  24487. 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:
  24488. """
  24489. General information describing a particular UAVCAN node. Please refer
  24490. to the definition of the UAVCAN service
  24491. "uavcan.protocol.GetNodeInfo" for the background information.
  24492. This message should be emitted by the system whenever a new
  24493. node appears online, or an existing node reboots.
  24494. Additionally, it can be emitted upon request from the other
  24495. end of the MAVLink channel (see MAV_CMD_UAVCAN_GET_NODE_INFO).
  24496. It is also not prohibited to emit this message unconditionally
  24497. at a low frequency. The UAVCAN specification is available at
  24498. http://uavcan.org.
  24499. 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)
  24500. uptime_sec : Time since the start-up of the node. [s] (type:uint32_t)
  24501. name : Node name string. For example, "sapog.px4.io". (type:char)
  24502. hw_version_major : Hardware major version number. (type:uint8_t)
  24503. hw_version_minor : Hardware minor version number. (type:uint8_t)
  24504. hw_unique_id : Hardware unique 128-bit ID. (type:uint8_t)
  24505. sw_version_major : Software major version number. (type:uint8_t)
  24506. sw_version_minor : Software minor version number. (type:uint8_t)
  24507. sw_vcs_commit : Version control system (VCS) revision identifier (e.g. git short commit hash). 0 if unknown. (type:uint32_t)
  24508. """
  24509. 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)
  24510. 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:
  24511. """
  24512. General information describing a particular UAVCAN node. Please refer
  24513. to the definition of the UAVCAN service
  24514. "uavcan.protocol.GetNodeInfo" for the background information.
  24515. This message should be emitted by the system whenever a new
  24516. node appears online, or an existing node reboots.
  24517. Additionally, it can be emitted upon request from the other
  24518. end of the MAVLink channel (see MAV_CMD_UAVCAN_GET_NODE_INFO).
  24519. It is also not prohibited to emit this message unconditionally
  24520. at a low frequency. The UAVCAN specification is available at
  24521. http://uavcan.org.
  24522. 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)
  24523. uptime_sec : Time since the start-up of the node. [s] (type:uint32_t)
  24524. name : Node name string. For example, "sapog.px4.io". (type:char)
  24525. hw_version_major : Hardware major version number. (type:uint8_t)
  24526. hw_version_minor : Hardware minor version number. (type:uint8_t)
  24527. hw_unique_id : Hardware unique 128-bit ID. (type:uint8_t)
  24528. sw_version_major : Software major version number. (type:uint8_t)
  24529. sw_version_minor : Software minor version number. (type:uint8_t)
  24530. sw_vcs_commit : Version control system (VCS) revision identifier (e.g. git short commit hash). 0 if unknown. (type:uint32_t)
  24531. """
  24532. 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)
  24533. 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:
  24534. """
  24535. Request to read the value of a parameter with either the param_id
  24536. string id or param_index. PARAM_EXT_VALUE should be emitted in
  24537. response.
  24538. target_system : System ID (type:uint8_t)
  24539. target_component : Component ID (type:uint8_t)
  24540. 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)
  24541. param_index : Parameter index. Set to -1 to use the Parameter ID field as identifier (else param_id will be ignored) (type:int16_t)
  24542. """
  24543. return MAVLink_param_ext_request_read_message(target_system, target_component, param_id, param_index)
  24544. def param_ext_request_read_send(self, target_system: int, target_component: int, param_id: bytes, param_index: int, force_mavlink1: bool = False) -> None:
  24545. """
  24546. Request to read the value of a parameter with either the param_id
  24547. string id or param_index. PARAM_EXT_VALUE should be emitted in
  24548. response.
  24549. target_system : System ID (type:uint8_t)
  24550. target_component : Component ID (type:uint8_t)
  24551. 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)
  24552. param_index : Parameter index. Set to -1 to use the Parameter ID field as identifier (else param_id will be ignored) (type:int16_t)
  24553. """
  24554. self.send(self.param_ext_request_read_encode(target_system, target_component, param_id, param_index), force_mavlink1=force_mavlink1)
  24555. def param_ext_request_list_encode(self, target_system: int, target_component: int) -> MAVLink_param_ext_request_list_message:
  24556. """
  24557. Request all parameters of this component. All parameters should be
  24558. emitted in response as PARAM_EXT_VALUE.
  24559. target_system : System ID (type:uint8_t)
  24560. target_component : Component ID (type:uint8_t)
  24561. """
  24562. return MAVLink_param_ext_request_list_message(target_system, target_component)
  24563. def param_ext_request_list_send(self, target_system: int, target_component: int, force_mavlink1: bool = False) -> None:
  24564. """
  24565. Request all parameters of this component. All parameters should be
  24566. emitted in response as PARAM_EXT_VALUE.
  24567. target_system : System ID (type:uint8_t)
  24568. target_component : Component ID (type:uint8_t)
  24569. """
  24570. self.send(self.param_ext_request_list_encode(target_system, target_component), force_mavlink1=force_mavlink1)
  24571. 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:
  24572. """
  24573. Emit the value of a parameter. The inclusion of param_count and
  24574. param_index in the message allows the recipient to keep track
  24575. of received parameters and allows them to re-request missing
  24576. parameters after a loss or timeout.
  24577. 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)
  24578. param_value : Parameter value (type:char)
  24579. param_type : Parameter type. (type:uint8_t, values:MAV_PARAM_EXT_TYPE)
  24580. param_count : Total number of parameters (type:uint16_t)
  24581. param_index : Index of this parameter (type:uint16_t)
  24582. """
  24583. return MAVLink_param_ext_value_message(param_id, param_value, param_type, param_count, param_index)
  24584. 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:
  24585. """
  24586. Emit the value of a parameter. The inclusion of param_count and
  24587. param_index in the message allows the recipient to keep track
  24588. of received parameters and allows them to re-request missing
  24589. parameters after a loss or timeout.
  24590. 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)
  24591. param_value : Parameter value (type:char)
  24592. param_type : Parameter type. (type:uint8_t, values:MAV_PARAM_EXT_TYPE)
  24593. param_count : Total number of parameters (type:uint16_t)
  24594. param_index : Index of this parameter (type:uint16_t)
  24595. """
  24596. self.send(self.param_ext_value_encode(param_id, param_value, param_type, param_count, param_index), force_mavlink1=force_mavlink1)
  24597. 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:
  24598. """
  24599. Set a parameter value. In order to deal with message loss (and
  24600. retransmission of PARAM_EXT_SET), when setting a parameter
  24601. value and the new value is the same as the current value, you
  24602. will immediately get a PARAM_ACK_ACCEPTED response. If the
  24603. current state is PARAM_ACK_IN_PROGRESS, you will accordingly
  24604. receive a PARAM_ACK_IN_PROGRESS in response.
  24605. target_system : System ID (type:uint8_t)
  24606. target_component : Component ID (type:uint8_t)
  24607. 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)
  24608. param_value : Parameter value (type:char)
  24609. param_type : Parameter type. (type:uint8_t, values:MAV_PARAM_EXT_TYPE)
  24610. """
  24611. return MAVLink_param_ext_set_message(target_system, target_component, param_id, param_value, param_type)
  24612. 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:
  24613. """
  24614. Set a parameter value. In order to deal with message loss (and
  24615. retransmission of PARAM_EXT_SET), when setting a parameter
  24616. value and the new value is the same as the current value, you
  24617. will immediately get a PARAM_ACK_ACCEPTED response. If the
  24618. current state is PARAM_ACK_IN_PROGRESS, you will accordingly
  24619. receive a PARAM_ACK_IN_PROGRESS in response.
  24620. target_system : System ID (type:uint8_t)
  24621. target_component : Component ID (type:uint8_t)
  24622. 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)
  24623. param_value : Parameter value (type:char)
  24624. param_type : Parameter type. (type:uint8_t, values:MAV_PARAM_EXT_TYPE)
  24625. """
  24626. self.send(self.param_ext_set_encode(target_system, target_component, param_id, param_value, param_type), force_mavlink1=force_mavlink1)
  24627. def param_ext_ack_encode(self, param_id: bytes, param_value: bytes, param_type: int, param_result: int) -> MAVLink_param_ext_ack_message:
  24628. """
  24629. Response from a PARAM_EXT_SET message.
  24630. 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)
  24631. param_value : Parameter value (new value if PARAM_ACK_ACCEPTED, current value otherwise) (type:char)
  24632. param_type : Parameter type. (type:uint8_t, values:MAV_PARAM_EXT_TYPE)
  24633. param_result : Result code. (type:uint8_t, values:PARAM_ACK)
  24634. """
  24635. return MAVLink_param_ext_ack_message(param_id, param_value, param_type, param_result)
  24636. def param_ext_ack_send(self, param_id: bytes, param_value: bytes, param_type: int, param_result: int, force_mavlink1: bool = False) -> None:
  24637. """
  24638. Response from a PARAM_EXT_SET message.
  24639. 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)
  24640. param_value : Parameter value (new value if PARAM_ACK_ACCEPTED, current value otherwise) (type:char)
  24641. param_type : Parameter type. (type:uint8_t, values:MAV_PARAM_EXT_TYPE)
  24642. param_result : Result code. (type:uint8_t, values:PARAM_ACK)
  24643. """
  24644. self.send(self.param_ext_ack_encode(param_id, param_value, param_type, param_result), force_mavlink1=force_mavlink1)
  24645. 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:
  24646. """
  24647. Obstacle distances in front of the sensor, starting from the left in
  24648. increment degrees to the right
  24649. 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)
  24650. sensor_type : Class id of the distance sensor type. (type:uint8_t, values:MAV_DISTANCE_SENSOR)
  24651. 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)
  24652. 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)
  24653. min_distance : Minimum distance the sensor can measure. [cm] (type:uint16_t)
  24654. max_distance : Maximum distance the sensor can measure. [cm] (type:uint16_t)
  24655. 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)
  24656. 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)
  24657. 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)
  24658. """
  24659. return MAVLink_obstacle_distance_message(time_usec, sensor_type, distances, increment, min_distance, max_distance, increment_f, angle_offset, frame)
  24660. 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:
  24661. """
  24662. Obstacle distances in front of the sensor, starting from the left in
  24663. increment degrees to the right
  24664. 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)
  24665. sensor_type : Class id of the distance sensor type. (type:uint8_t, values:MAV_DISTANCE_SENSOR)
  24666. 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)
  24667. 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)
  24668. min_distance : Minimum distance the sensor can measure. [cm] (type:uint16_t)
  24669. max_distance : Maximum distance the sensor can measure. [cm] (type:uint16_t)
  24670. 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)
  24671. 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)
  24672. 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)
  24673. """
  24674. 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)
  24675. 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:
  24676. """
  24677. Odometry message to communicate odometry information with an external
  24678. interface. Fits ROS REP 147 standard for aerial vehicles
  24679. (http://www.ros.org/reps/rep-0147.html).
  24680. 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)
  24681. frame_id : Coordinate frame of reference for the pose data. (type:uint8_t, values:MAV_FRAME)
  24682. child_frame_id : Coordinate frame of reference for the velocity in free space (twist) data. (type:uint8_t, values:MAV_FRAME)
  24683. x : X Position [m] (type:float)
  24684. y : Y Position [m] (type:float)
  24685. z : Z Position [m] (type:float)
  24686. q : Quaternion components, w, x, y, z (1 0 0 0 is the null-rotation) (type:float)
  24687. vx : X linear speed [m/s] (type:float)
  24688. vy : Y linear speed [m/s] (type:float)
  24689. vz : Z linear speed [m/s] (type:float)
  24690. rollspeed : Roll angular speed [rad/s] (type:float)
  24691. pitchspeed : Pitch angular speed [rad/s] (type:float)
  24692. yawspeed : Yaw angular speed [rad/s] (type:float)
  24693. 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)
  24694. 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)
  24695. 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)
  24696. estimator_type : Type of estimator that is providing the odometry. (type:uint8_t, values:MAV_ESTIMATOR_TYPE)
  24697. 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)
  24698. """
  24699. 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)
  24700. 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:
  24701. """
  24702. Odometry message to communicate odometry information with an external
  24703. interface. Fits ROS REP 147 standard for aerial vehicles
  24704. (http://www.ros.org/reps/rep-0147.html).
  24705. 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)
  24706. frame_id : Coordinate frame of reference for the pose data. (type:uint8_t, values:MAV_FRAME)
  24707. child_frame_id : Coordinate frame of reference for the velocity in free space (twist) data. (type:uint8_t, values:MAV_FRAME)
  24708. x : X Position [m] (type:float)
  24709. y : Y Position [m] (type:float)
  24710. z : Z Position [m] (type:float)
  24711. q : Quaternion components, w, x, y, z (1 0 0 0 is the null-rotation) (type:float)
  24712. vx : X linear speed [m/s] (type:float)
  24713. vy : Y linear speed [m/s] (type:float)
  24714. vz : Z linear speed [m/s] (type:float)
  24715. rollspeed : Roll angular speed [rad/s] (type:float)
  24716. pitchspeed : Pitch angular speed [rad/s] (type:float)
  24717. yawspeed : Yaw angular speed [rad/s] (type:float)
  24718. 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)
  24719. 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)
  24720. 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)
  24721. estimator_type : Type of estimator that is providing the odometry. (type:uint8_t, values:MAV_ESTIMATOR_TYPE)
  24722. 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)
  24723. """
  24724. 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)
  24725. 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:
  24726. """
  24727. Describe a trajectory using an array of up-to 5 waypoints in the local
  24728. frame (MAV_FRAME_LOCAL_NED).
  24729. 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)
  24730. valid_points : Number of valid points (up-to 5 waypoints are possible) (type:uint8_t)
  24731. pos_x : X-coordinate of waypoint, set to NaN if not being used [m] (type:float)
  24732. pos_y : Y-coordinate of waypoint, set to NaN if not being used [m] (type:float)
  24733. pos_z : Z-coordinate of waypoint, set to NaN if not being used [m] (type:float)
  24734. vel_x : X-velocity of waypoint, set to NaN if not being used [m/s] (type:float)
  24735. vel_y : Y-velocity of waypoint, set to NaN if not being used [m/s] (type:float)
  24736. vel_z : Z-velocity of waypoint, set to NaN if not being used [m/s] (type:float)
  24737. acc_x : X-acceleration of waypoint, set to NaN if not being used [m/s/s] (type:float)
  24738. acc_y : Y-acceleration of waypoint, set to NaN if not being used [m/s/s] (type:float)
  24739. acc_z : Z-acceleration of waypoint, set to NaN if not being used [m/s/s] (type:float)
  24740. pos_yaw : Yaw angle, set to NaN if not being used [rad] (type:float)
  24741. vel_yaw : Yaw rate, set to NaN if not being used [rad/s] (type:float)
  24742. command : MAV_CMD command id of waypoint, set to UINT16_MAX if not being used. (type:uint16_t, values:MAV_CMD)
  24743. """
  24744. 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)
  24745. 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:
  24746. """
  24747. Describe a trajectory using an array of up-to 5 waypoints in the local
  24748. frame (MAV_FRAME_LOCAL_NED).
  24749. 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)
  24750. valid_points : Number of valid points (up-to 5 waypoints are possible) (type:uint8_t)
  24751. pos_x : X-coordinate of waypoint, set to NaN if not being used [m] (type:float)
  24752. pos_y : Y-coordinate of waypoint, set to NaN if not being used [m] (type:float)
  24753. pos_z : Z-coordinate of waypoint, set to NaN if not being used [m] (type:float)
  24754. vel_x : X-velocity of waypoint, set to NaN if not being used [m/s] (type:float)
  24755. vel_y : Y-velocity of waypoint, set to NaN if not being used [m/s] (type:float)
  24756. vel_z : Z-velocity of waypoint, set to NaN if not being used [m/s] (type:float)
  24757. acc_x : X-acceleration of waypoint, set to NaN if not being used [m/s/s] (type:float)
  24758. acc_y : Y-acceleration of waypoint, set to NaN if not being used [m/s/s] (type:float)
  24759. acc_z : Z-acceleration of waypoint, set to NaN if not being used [m/s/s] (type:float)
  24760. pos_yaw : Yaw angle, set to NaN if not being used [rad] (type:float)
  24761. vel_yaw : Yaw rate, set to NaN if not being used [rad/s] (type:float)
  24762. command : MAV_CMD command id of waypoint, set to UINT16_MAX if not being used. (type:uint16_t, values:MAV_CMD)
  24763. """
  24764. 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)
  24765. 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:
  24766. """
  24767. Describe a trajectory using an array of up-to 5 bezier control points
  24768. in the local frame (MAV_FRAME_LOCAL_NED).
  24769. 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)
  24770. valid_points : Number of valid control points (up-to 5 points are possible) (type:uint8_t)
  24771. pos_x : X-coordinate of bezier control points. Set to NaN if not being used [m] (type:float)
  24772. pos_y : Y-coordinate of bezier control points. Set to NaN if not being used [m] (type:float)
  24773. pos_z : Z-coordinate of bezier control points. Set to NaN if not being used [m] (type:float)
  24774. delta : Bezier time horizon. Set to NaN if velocity/acceleration should not be incorporated [s] (type:float)
  24775. pos_yaw : Yaw. Set to NaN for unchanged [rad] (type:float)
  24776. """
  24777. return MAVLink_trajectory_representation_bezier_message(time_usec, valid_points, pos_x, pos_y, pos_z, delta, pos_yaw)
  24778. 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:
  24779. """
  24780. Describe a trajectory using an array of up-to 5 bezier control points
  24781. in the local frame (MAV_FRAME_LOCAL_NED).
  24782. 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)
  24783. valid_points : Number of valid control points (up-to 5 points are possible) (type:uint8_t)
  24784. pos_x : X-coordinate of bezier control points. Set to NaN if not being used [m] (type:float)
  24785. pos_y : Y-coordinate of bezier control points. Set to NaN if not being used [m] (type:float)
  24786. pos_z : Z-coordinate of bezier control points. Set to NaN if not being used [m] (type:float)
  24787. delta : Bezier time horizon. Set to NaN if velocity/acceleration should not be incorporated [s] (type:float)
  24788. pos_yaw : Yaw. Set to NaN for unchanged [rad] (type:float)
  24789. """
  24790. self.send(self.trajectory_representation_bezier_encode(time_usec, valid_points, pos_x, pos_y, pos_z, delta, pos_yaw), force_mavlink1=force_mavlink1)
  24791. def cellular_status_encode(self, status: int, failure_reason: int, type: int, quality: int, mcc: int, mnc: int, lac: int) -> MAVLink_cellular_status_message:
  24792. """
  24793. Report current used cellular network status
  24794. status : Cellular modem status (type:uint8_t, values:CELLULAR_STATUS_FLAG)
  24795. failure_reason : Failure reason when status in in CELLULAR_STATUS_FLAG_FAILED (type:uint8_t, values:CELLULAR_NETWORK_FAILED_REASON)
  24796. type : Cellular network radio type: gsm, cdma, lte... (type:uint8_t, values:CELLULAR_NETWORK_RADIO_TYPE)
  24797. quality : Signal quality in percent. If unknown, set to UINT8_MAX (type:uint8_t)
  24798. mcc : Mobile country code. If unknown, set to UINT16_MAX (type:uint16_t)
  24799. mnc : Mobile network code. If unknown, set to UINT16_MAX (type:uint16_t)
  24800. lac : Location area code. If unknown, set to 0 (type:uint16_t)
  24801. """
  24802. return MAVLink_cellular_status_message(status, failure_reason, type, quality, mcc, mnc, lac)
  24803. 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:
  24804. """
  24805. Report current used cellular network status
  24806. status : Cellular modem status (type:uint8_t, values:CELLULAR_STATUS_FLAG)
  24807. failure_reason : Failure reason when status in in CELLULAR_STATUS_FLAG_FAILED (type:uint8_t, values:CELLULAR_NETWORK_FAILED_REASON)
  24808. type : Cellular network radio type: gsm, cdma, lte... (type:uint8_t, values:CELLULAR_NETWORK_RADIO_TYPE)
  24809. quality : Signal quality in percent. If unknown, set to UINT8_MAX (type:uint8_t)
  24810. mcc : Mobile country code. If unknown, set to UINT16_MAX (type:uint16_t)
  24811. mnc : Mobile network code. If unknown, set to UINT16_MAX (type:uint16_t)
  24812. lac : Location area code. If unknown, set to 0 (type:uint16_t)
  24813. """
  24814. self.send(self.cellular_status_encode(status, failure_reason, type, quality, mcc, mnc, lac), force_mavlink1=force_mavlink1)
  24815. 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:
  24816. """
  24817. Status of the Iridium SBD link.
  24818. 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)
  24819. 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)
  24820. failed_sessions : Number of failed SBD sessions. (type:uint16_t)
  24821. successful_sessions : Number of successful SBD sessions. (type:uint16_t)
  24822. 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)
  24823. ring_pending : 1: Ring call pending, 0: No call pending. (type:uint8_t)
  24824. tx_session_pending : 1: Transmission session pending, 0: No transmission session pending. (type:uint8_t)
  24825. rx_session_pending : 1: Receiving session pending, 0: No receiving session pending. (type:uint8_t)
  24826. """
  24827. return MAVLink_isbd_link_status_message(timestamp, last_heartbeat, failed_sessions, successful_sessions, signal_quality, ring_pending, tx_session_pending, rx_session_pending)
  24828. 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:
  24829. """
  24830. Status of the Iridium SBD link.
  24831. 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)
  24832. 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)
  24833. failed_sessions : Number of failed SBD sessions. (type:uint16_t)
  24834. successful_sessions : Number of successful SBD sessions. (type:uint16_t)
  24835. 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)
  24836. ring_pending : 1: Ring call pending, 0: No call pending. (type:uint8_t)
  24837. tx_session_pending : 1: Transmission session pending, 0: No transmission session pending. (type:uint8_t)
  24838. rx_session_pending : 1: Receiving session pending, 0: No receiving session pending. (type:uint8_t)
  24839. """
  24840. 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)
  24841. 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:
  24842. """
  24843. Configure cellular modems. This message is re-emitted as an
  24844. acknowledgement by the modem. The message may also be
  24845. explicitly requested using MAV_CMD_REQUEST_MESSAGE.
  24846. enable_lte : Enable/disable LTE. 0: setting unchanged, 1: disabled, 2: enabled. Current setting when sent back as a response. (type:uint8_t)
  24847. 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)
  24848. pin : PIN sent to the SIM card. Blank when PIN is disabled. Empty when message is sent back as a response. (type:char)
  24849. new_pin : New PIN when changing the PIN. Blank to leave it unchanged. Empty when message is sent back as a response. (type:char)
  24850. apn : Name of the cellular APN. Blank to leave it unchanged. Current APN when sent back as a response. (type:char)
  24851. 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)
  24852. roaming : Enable/disable roaming. 0: setting unchanged, 1: disabled, 2: enabled. Current setting when sent back as a response. (type:uint8_t)
  24853. response : Message acceptance response (sent back to GS). (type:uint8_t, values:CELLULAR_CONFIG_RESPONSE)
  24854. """
  24855. return MAVLink_cellular_config_message(enable_lte, enable_pin, pin, new_pin, apn, puk, roaming, response)
  24856. 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:
  24857. """
  24858. Configure cellular modems. This message is re-emitted as an
  24859. acknowledgement by the modem. The message may also be
  24860. explicitly requested using MAV_CMD_REQUEST_MESSAGE.
  24861. enable_lte : Enable/disable LTE. 0: setting unchanged, 1: disabled, 2: enabled. Current setting when sent back as a response. (type:uint8_t)
  24862. 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)
  24863. pin : PIN sent to the SIM card. Blank when PIN is disabled. Empty when message is sent back as a response. (type:char)
  24864. new_pin : New PIN when changing the PIN. Blank to leave it unchanged. Empty when message is sent back as a response. (type:char)
  24865. apn : Name of the cellular APN. Blank to leave it unchanged. Current APN when sent back as a response. (type:char)
  24866. 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)
  24867. roaming : Enable/disable roaming. 0: setting unchanged, 1: disabled, 2: enabled. Current setting when sent back as a response. (type:uint8_t)
  24868. response : Message acceptance response (sent back to GS). (type:uint8_t, values:CELLULAR_CONFIG_RESPONSE)
  24869. """
  24870. self.send(self.cellular_config_encode(enable_lte, enable_pin, pin, new_pin, apn, puk, roaming, response), force_mavlink1=force_mavlink1)
  24871. def raw_rpm_encode(self, index: int, frequency: float) -> MAVLink_raw_rpm_message:
  24872. """
  24873. RPM sensor data message.
  24874. index : Index of this RPM sensor (0-indexed) (type:uint8_t)
  24875. frequency : Indicated rate [rpm] (type:float)
  24876. """
  24877. return MAVLink_raw_rpm_message(index, frequency)
  24878. def raw_rpm_send(self, index: int, frequency: float, force_mavlink1: bool = False) -> None:
  24879. """
  24880. RPM sensor data message.
  24881. index : Index of this RPM sensor (0-indexed) (type:uint8_t)
  24882. frequency : Indicated rate [rpm] (type:float)
  24883. """
  24884. self.send(self.raw_rpm_encode(index, frequency), force_mavlink1=force_mavlink1)
  24885. 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:
  24886. """
  24887. The global position resulting from GPS and sensor fusion.
  24888. time : Time of applicability of position (microseconds since UNIX epoch). [us] (type:uint64_t)
  24889. uas_id : Unique UAS ID. (type:uint8_t)
  24890. lat : Latitude (WGS84) [degE7] (type:int32_t)
  24891. lon : Longitude (WGS84) [degE7] (type:int32_t)
  24892. alt : Altitude (WGS84) [mm] (type:int32_t)
  24893. relative_alt : Altitude above ground [mm] (type:int32_t)
  24894. vx : Ground X speed (latitude, positive north) [cm/s] (type:int16_t)
  24895. vy : Ground Y speed (longitude, positive east) [cm/s] (type:int16_t)
  24896. vz : Ground Z speed (altitude, positive down) [cm/s] (type:int16_t)
  24897. h_acc : Horizontal position uncertainty (standard deviation) [mm] (type:uint16_t)
  24898. v_acc : Altitude uncertainty (standard deviation) [mm] (type:uint16_t)
  24899. vel_acc : Speed uncertainty (standard deviation) [cm/s] (type:uint16_t)
  24900. next_lat : Next waypoint, latitude (WGS84) [degE7] (type:int32_t)
  24901. next_lon : Next waypoint, longitude (WGS84) [degE7] (type:int32_t)
  24902. next_alt : Next waypoint, altitude (WGS84) [mm] (type:int32_t)
  24903. update_rate : Time until next update. Set to 0 if unknown or in data driven mode. [cs] (type:uint16_t)
  24904. flight_state : Flight state (type:uint8_t, values:UTM_FLIGHT_STATE)
  24905. flags : Bitwise OR combination of the data available flags. (type:uint8_t, values:UTM_DATA_AVAIL_FLAGS)
  24906. """
  24907. 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)
  24908. 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:
  24909. """
  24910. The global position resulting from GPS and sensor fusion.
  24911. time : Time of applicability of position (microseconds since UNIX epoch). [us] (type:uint64_t)
  24912. uas_id : Unique UAS ID. (type:uint8_t)
  24913. lat : Latitude (WGS84) [degE7] (type:int32_t)
  24914. lon : Longitude (WGS84) [degE7] (type:int32_t)
  24915. alt : Altitude (WGS84) [mm] (type:int32_t)
  24916. relative_alt : Altitude above ground [mm] (type:int32_t)
  24917. vx : Ground X speed (latitude, positive north) [cm/s] (type:int16_t)
  24918. vy : Ground Y speed (longitude, positive east) [cm/s] (type:int16_t)
  24919. vz : Ground Z speed (altitude, positive down) [cm/s] (type:int16_t)
  24920. h_acc : Horizontal position uncertainty (standard deviation) [mm] (type:uint16_t)
  24921. v_acc : Altitude uncertainty (standard deviation) [mm] (type:uint16_t)
  24922. vel_acc : Speed uncertainty (standard deviation) [cm/s] (type:uint16_t)
  24923. next_lat : Next waypoint, latitude (WGS84) [degE7] (type:int32_t)
  24924. next_lon : Next waypoint, longitude (WGS84) [degE7] (type:int32_t)
  24925. next_alt : Next waypoint, altitude (WGS84) [mm] (type:int32_t)
  24926. update_rate : Time until next update. Set to 0 if unknown or in data driven mode. [cs] (type:uint16_t)
  24927. flight_state : Flight state (type:uint8_t, values:UTM_FLIGHT_STATE)
  24928. flags : Bitwise OR combination of the data available flags. (type:uint8_t, values:UTM_DATA_AVAIL_FLAGS)
  24929. """
  24930. 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)
  24931. 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:
  24932. """
  24933. Large debug/prototyping array. The message uses the maximum available
  24934. payload for data. The array_id and name fields are used to
  24935. discriminate between messages in code and in user interfaces
  24936. (respectively). Do not use in production code.
  24937. 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)
  24938. name : Name, for human-friendly display in a Ground Control Station (type:char)
  24939. array_id : Unique ID used to discriminate between arrays (type:uint16_t)
  24940. data : data (type:float)
  24941. """
  24942. return MAVLink_debug_float_array_message(time_usec, name, array_id, data)
  24943. 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:
  24944. """
  24945. Large debug/prototyping array. The message uses the maximum available
  24946. payload for data. The array_id and name fields are used to
  24947. discriminate between messages in code and in user interfaces
  24948. (respectively). Do not use in production code.
  24949. 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)
  24950. name : Name, for human-friendly display in a Ground Control Station (type:char)
  24951. array_id : Unique ID used to discriminate between arrays (type:uint16_t)
  24952. data : data (type:float)
  24953. """
  24954. self.send(self.debug_float_array_encode(time_usec, name, array_id, data), force_mavlink1=force_mavlink1)
  24955. def orbit_execution_status_encode(self, time_usec: int, radius: float, frame: int, x: int, y: int, z: float) -> MAVLink_orbit_execution_status_message:
  24956. """
  24957. Vehicle status report that is sent out while orbit execution is in
  24958. progress (see MAV_CMD_DO_ORBIT).
  24959. 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)
  24960. radius : Radius of the orbit circle. Positive values orbit clockwise, negative values orbit counter-clockwise. [m] (type:float)
  24961. frame : The coordinate system of the fields: x, y, z. (type:uint8_t, values:MAV_FRAME)
  24962. 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)
  24963. 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)
  24964. z : Altitude of center point. Coordinate system depends on frame field. [m] (type:float)
  24965. """
  24966. return MAVLink_orbit_execution_status_message(time_usec, radius, frame, x, y, z)
  24967. def orbit_execution_status_send(self, time_usec: int, radius: float, frame: int, x: int, y: int, z: float, force_mavlink1: bool = False) -> None:
  24968. """
  24969. Vehicle status report that is sent out while orbit execution is in
  24970. progress (see MAV_CMD_DO_ORBIT).
  24971. 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)
  24972. radius : Radius of the orbit circle. Positive values orbit clockwise, negative values orbit counter-clockwise. [m] (type:float)
  24973. frame : The coordinate system of the fields: x, y, z. (type:uint8_t, values:MAV_FRAME)
  24974. 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)
  24975. 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)
  24976. z : Altitude of center point. Coordinate system depends on frame field. [m] (type:float)
  24977. """
  24978. self.send(self.orbit_execution_status_encode(time_usec, radius, frame, x, y, z), force_mavlink1=force_mavlink1)
  24979. 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:
  24980. """
  24981. Battery information that is static, or requires infrequent update.
  24982. This message should requested using MAV_CMD_REQUEST_MESSAGE
  24983. and/or streamed at very low rate. BATTERY_STATUS_V2 is
  24984. used for higher-rate battery status information.
  24985. id : Battery ID (type:uint8_t)
  24986. battery_function : Function of the battery. (type:uint8_t, values:MAV_BATTERY_FUNCTION)
  24987. type : Type (chemistry) of the battery. (type:uint8_t, values:MAV_BATTERY_TYPE)
  24988. 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)
  24989. cells_in_series : Number of battery cells in series. 0: field not provided. (type:uint8_t)
  24990. 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)
  24991. weight : Battery weight. 0: field not provided. [g] (type:uint16_t)
  24992. discharge_minimum_voltage : Minimum per-cell voltage when discharging. 0: field not provided. [V] (type:float)
  24993. charging_minimum_voltage : Minimum per-cell voltage when charging. 0: field not provided. [V] (type:float)
  24994. resting_minimum_voltage : Minimum per-cell voltage when resting. 0: field not provided. [V] (type:float)
  24995. charging_maximum_voltage : Maximum per-cell voltage when charged. 0: field not provided. [V] (type:float)
  24996. charging_maximum_current : Maximum pack continuous charge current. 0: field not provided. [A] (type:float)
  24997. nominal_voltage : Battery nominal voltage. Used for conversion between Wh and Ah. 0: field not provided. [V] (type:float)
  24998. discharge_maximum_current : Maximum pack discharge current. 0: field not provided. [A] (type:float)
  24999. discharge_maximum_burst_current : Maximum pack discharge burst current. 0: field not provided. [A] (type:float)
  25000. design_capacity : Fully charged design capacity. 0: field not provided. [Ah] (type:float)
  25001. full_charge_capacity : Predicted battery capacity when fully charged (accounting for battery degradation). NAN: field not provided. [Ah] (type:float)
  25002. manufacture_date : Manufacture date (DDMMYYYY) in ASCII characters, 0 terminated. All 0: field not provided. (type:char)
  25003. serial_number : Serial number in ASCII characters, 0 terminated. All 0: field not provided. (type:char)
  25004. 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)
  25005. """
  25006. 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)
  25007. 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:
  25008. """
  25009. Battery information that is static, or requires infrequent update.
  25010. This message should requested using MAV_CMD_REQUEST_MESSAGE
  25011. and/or streamed at very low rate. BATTERY_STATUS_V2 is
  25012. used for higher-rate battery status information.
  25013. id : Battery ID (type:uint8_t)
  25014. battery_function : Function of the battery. (type:uint8_t, values:MAV_BATTERY_FUNCTION)
  25015. type : Type (chemistry) of the battery. (type:uint8_t, values:MAV_BATTERY_TYPE)
  25016. 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)
  25017. cells_in_series : Number of battery cells in series. 0: field not provided. (type:uint8_t)
  25018. 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)
  25019. weight : Battery weight. 0: field not provided. [g] (type:uint16_t)
  25020. discharge_minimum_voltage : Minimum per-cell voltage when discharging. 0: field not provided. [V] (type:float)
  25021. charging_minimum_voltage : Minimum per-cell voltage when charging. 0: field not provided. [V] (type:float)
  25022. resting_minimum_voltage : Minimum per-cell voltage when resting. 0: field not provided. [V] (type:float)
  25023. charging_maximum_voltage : Maximum per-cell voltage when charged. 0: field not provided. [V] (type:float)
  25024. charging_maximum_current : Maximum pack continuous charge current. 0: field not provided. [A] (type:float)
  25025. nominal_voltage : Battery nominal voltage. Used for conversion between Wh and Ah. 0: field not provided. [V] (type:float)
  25026. discharge_maximum_current : Maximum pack discharge current. 0: field not provided. [A] (type:float)
  25027. discharge_maximum_burst_current : Maximum pack discharge burst current. 0: field not provided. [A] (type:float)
  25028. design_capacity : Fully charged design capacity. 0: field not provided. [Ah] (type:float)
  25029. full_charge_capacity : Predicted battery capacity when fully charged (accounting for battery degradation). NAN: field not provided. [Ah] (type:float)
  25030. manufacture_date : Manufacture date (DDMMYYYY) in ASCII characters, 0 terminated. All 0: field not provided. (type:char)
  25031. serial_number : Serial number in ASCII characters, 0 terminated. All 0: field not provided. (type:char)
  25032. 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)
  25033. """
  25034. 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)
  25035. 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:
  25036. """
  25037. Telemetry of power generation system. Alternator or mechanical
  25038. generator.
  25039. status : Status flags. (type:uint64_t, values:MAV_GENERATOR_STATUS_FLAG)
  25040. generator_speed : Speed of electrical generator or alternator. UINT16_MAX: field not provided. [rpm] (type:uint16_t)
  25041. battery_current : Current into/out of battery. Positive for out. Negative for in. NaN: field not provided. [A] (type:float)
  25042. 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)
  25043. power_generated : The power being generated. NaN: field not provided [W] (type:float)
  25044. 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)
  25045. rectifier_temperature : The temperature of the rectifier or power converter. INT16_MAX: field not provided. [degC] (type:int16_t)
  25046. bat_current_setpoint : The target battery current. Positive for out. Negative for in. NaN: field not provided [A] (type:float)
  25047. generator_temperature : The temperature of the mechanical motor, fuel cell core or generator. INT16_MAX: field not provided. [degC] (type:int16_t)
  25048. runtime : Seconds this generator has run since it was rebooted. UINT32_MAX: field not provided. [s] (type:uint32_t)
  25049. 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)
  25050. """
  25051. 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)
  25052. 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:
  25053. """
  25054. Telemetry of power generation system. Alternator or mechanical
  25055. generator.
  25056. status : Status flags. (type:uint64_t, values:MAV_GENERATOR_STATUS_FLAG)
  25057. generator_speed : Speed of electrical generator or alternator. UINT16_MAX: field not provided. [rpm] (type:uint16_t)
  25058. battery_current : Current into/out of battery. Positive for out. Negative for in. NaN: field not provided. [A] (type:float)
  25059. 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)
  25060. power_generated : The power being generated. NaN: field not provided [W] (type:float)
  25061. 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)
  25062. rectifier_temperature : The temperature of the rectifier or power converter. INT16_MAX: field not provided. [degC] (type:int16_t)
  25063. bat_current_setpoint : The target battery current. Positive for out. Negative for in. NaN: field not provided [A] (type:float)
  25064. generator_temperature : The temperature of the mechanical motor, fuel cell core or generator. INT16_MAX: field not provided. [degC] (type:int16_t)
  25065. runtime : Seconds this generator has run since it was rebooted. UINT32_MAX: field not provided. [s] (type:uint32_t)
  25066. 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)
  25067. """
  25068. 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)
  25069. def actuator_output_status_encode(self, time_usec: int, active: int, actuator: Sequence[float]) -> MAVLink_actuator_output_status_message:
  25070. """
  25071. The raw values of the actuator outputs (e.g. on Pixhawk, from MAIN,
  25072. AUX ports). This message supersedes SERVO_OUTPUT_RAW.
  25073. time_usec : Timestamp (since system boot). [us] (type:uint64_t)
  25074. active : Active outputs (type:uint32_t)
  25075. actuator : Servo / motor output array values. Zero values indicate unused channels. (type:float)
  25076. """
  25077. return MAVLink_actuator_output_status_message(time_usec, active, actuator)
  25078. def actuator_output_status_send(self, time_usec: int, active: int, actuator: Sequence[float], force_mavlink1: bool = False) -> None:
  25079. """
  25080. The raw values of the actuator outputs (e.g. on Pixhawk, from MAIN,
  25081. AUX ports). This message supersedes SERVO_OUTPUT_RAW.
  25082. time_usec : Timestamp (since system boot). [us] (type:uint64_t)
  25083. active : Active outputs (type:uint32_t)
  25084. actuator : Servo / motor output array values. Zero values indicate unused channels. (type:float)
  25085. """
  25086. self.send(self.actuator_output_status_encode(time_usec, active, actuator), force_mavlink1=force_mavlink1)
  25087. 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:
  25088. """
  25089. Time/duration estimates for various events and actions given the
  25090. current vehicle state and position.
  25091. 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)
  25092. 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)
  25093. mission_next_item : Estimated time for reaching/completing the currently active mission item. -1 means no time estimate available. [s] (type:int32_t)
  25094. mission_end : Estimated time for completing the current mission. -1 means no mission active and/or no estimate available. [s] (type:int32_t)
  25095. 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)
  25096. """
  25097. return MAVLink_time_estimate_to_target_message(safe_return, land, mission_next_item, mission_end, commanded_action)
  25098. 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:
  25099. """
  25100. Time/duration estimates for various events and actions given the
  25101. current vehicle state and position.
  25102. 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)
  25103. 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)
  25104. mission_next_item : Estimated time for reaching/completing the currently active mission item. -1 means no time estimate available. [s] (type:int32_t)
  25105. mission_end : Estimated time for completing the current mission. -1 means no mission active and/or no estimate available. [s] (type:int32_t)
  25106. 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)
  25107. """
  25108. self.send(self.time_estimate_to_target_encode(safe_return, land, mission_next_item, mission_end, commanded_action), force_mavlink1=force_mavlink1)
  25109. def tunnel_encode(self, target_system: int, target_component: int, payload_type: int, payload_length: int, payload: Sequence[int]) -> MAVLink_tunnel_message:
  25110. """
  25111. Message for transporting "arbitrary" variable-length data from one
  25112. component to another (broadcast is not forbidden, but
  25113. discouraged). The encoding of the data is usually extension
  25114. specific, i.e. determined by the source, and is usually not
  25115. documented as part of the MAVLink specification.
  25116. target_system : System ID (can be 0 for broadcast, but this is discouraged) (type:uint8_t)
  25117. target_component : Component ID (can be 0 for broadcast, but this is discouraged) (type:uint8_t)
  25118. 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)
  25119. payload_length : Length of the data transported in payload (type:uint8_t)
  25120. 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)
  25121. """
  25122. return MAVLink_tunnel_message(target_system, target_component, payload_type, payload_length, payload)
  25123. def tunnel_send(self, target_system: int, target_component: int, payload_type: int, payload_length: int, payload: Sequence[int], force_mavlink1: bool = False) -> None:
  25124. """
  25125. Message for transporting "arbitrary" variable-length data from one
  25126. component to another (broadcast is not forbidden, but
  25127. discouraged). The encoding of the data is usually extension
  25128. specific, i.e. determined by the source, and is usually not
  25129. documented as part of the MAVLink specification.
  25130. target_system : System ID (can be 0 for broadcast, but this is discouraged) (type:uint8_t)
  25131. target_component : Component ID (can be 0 for broadcast, but this is discouraged) (type:uint8_t)
  25132. 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)
  25133. payload_length : Length of the data transported in payload (type:uint8_t)
  25134. 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)
  25135. """
  25136. self.send(self.tunnel_encode(target_system, target_component, payload_type, payload_length, payload), force_mavlink1=force_mavlink1)
  25137. def can_frame_encode(self, target_system: int, target_component: int, bus: int, len: int, id: int, data: Sequence[int]) -> MAVLink_can_frame_message:
  25138. """
  25139. A forwarded CAN frame as requested by MAV_CMD_CAN_FORWARD.
  25140. target_system : System ID. (type:uint8_t)
  25141. target_component : Component ID. (type:uint8_t)
  25142. bus : Bus number (type:uint8_t)
  25143. len : Frame length (type:uint8_t)
  25144. id : Frame ID (type:uint32_t)
  25145. data : Frame data (type:uint8_t)
  25146. """
  25147. return MAVLink_can_frame_message(target_system, target_component, bus, len, id, data)
  25148. 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:
  25149. """
  25150. A forwarded CAN frame as requested by MAV_CMD_CAN_FORWARD.
  25151. target_system : System ID. (type:uint8_t)
  25152. target_component : Component ID. (type:uint8_t)
  25153. bus : Bus number (type:uint8_t)
  25154. len : Frame length (type:uint8_t)
  25155. id : Frame ID (type:uint32_t)
  25156. data : Frame data (type:uint8_t)
  25157. """
  25158. self.send(self.can_frame_encode(target_system, target_component, bus, len, id, data), force_mavlink1=force_mavlink1)
  25159. 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:
  25160. """
  25161. Hardware status sent by an onboard computer.
  25162. 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)
  25163. uptime : Time since system boot. [ms] (type:uint32_t)
  25164. 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)
  25165. cpu_cores : CPU usage on the component in percent (100 - idle). A value of UINT8_MAX implies the field is unused. (type:uint8_t)
  25166. 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)
  25167. gpu_cores : GPU usage on the component in percent (100 - idle). A value of UINT8_MAX implies the field is unused. (type:uint8_t)
  25168. 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)
  25169. temperature_board : Temperature of the board. A value of INT8_MAX implies the field is unused. [degC] (type:int8_t)
  25170. temperature_core : Temperature of the CPU core. A value of INT8_MAX implies the field is unused. [degC] (type:int8_t)
  25171. fan_speed : Fan speeds. A value of INT16_MAX implies the field is unused. [rpm] (type:int16_t)
  25172. ram_usage : Amount of used RAM on the component system. A value of UINT32_MAX implies the field is unused. [MiB] (type:uint32_t)
  25173. ram_total : Total amount of RAM on the component system. A value of UINT32_MAX implies the field is unused. [MiB] (type:uint32_t)
  25174. 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)
  25175. 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)
  25176. 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)
  25177. 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)
  25178. link_tx_rate : Network traffic from the component system. A value of UINT32_MAX implies the field is unused. [KiB/s] (type:uint32_t)
  25179. link_rx_rate : Network traffic to the component system. A value of UINT32_MAX implies the field is unused. [KiB/s] (type:uint32_t)
  25180. link_tx_max : Network capacity from the component system. A value of UINT32_MAX implies the field is unused. [KiB/s] (type:uint32_t)
  25181. link_rx_max : Network capacity to the component system. A value of UINT32_MAX implies the field is unused. [KiB/s] (type:uint32_t)
  25182. """
  25183. 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)
  25184. 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:
  25185. """
  25186. Hardware status sent by an onboard computer.
  25187. 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)
  25188. uptime : Time since system boot. [ms] (type:uint32_t)
  25189. 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)
  25190. cpu_cores : CPU usage on the component in percent (100 - idle). A value of UINT8_MAX implies the field is unused. (type:uint8_t)
  25191. 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)
  25192. gpu_cores : GPU usage on the component in percent (100 - idle). A value of UINT8_MAX implies the field is unused. (type:uint8_t)
  25193. 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)
  25194. temperature_board : Temperature of the board. A value of INT8_MAX implies the field is unused. [degC] (type:int8_t)
  25195. temperature_core : Temperature of the CPU core. A value of INT8_MAX implies the field is unused. [degC] (type:int8_t)
  25196. fan_speed : Fan speeds. A value of INT16_MAX implies the field is unused. [rpm] (type:int16_t)
  25197. ram_usage : Amount of used RAM on the component system. A value of UINT32_MAX implies the field is unused. [MiB] (type:uint32_t)
  25198. ram_total : Total amount of RAM on the component system. A value of UINT32_MAX implies the field is unused. [MiB] (type:uint32_t)
  25199. 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)
  25200. 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)
  25201. 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)
  25202. 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)
  25203. link_tx_rate : Network traffic from the component system. A value of UINT32_MAX implies the field is unused. [KiB/s] (type:uint32_t)
  25204. link_rx_rate : Network traffic to the component system. A value of UINT32_MAX implies the field is unused. [KiB/s] (type:uint32_t)
  25205. link_tx_max : Network capacity from the component system. A value of UINT32_MAX implies the field is unused. [KiB/s] (type:uint32_t)
  25206. link_rx_max : Network capacity to the component system. A value of UINT32_MAX implies the field is unused. [KiB/s] (type:uint32_t)
  25207. """
  25208. 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)
  25209. 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:
  25210. """
  25211. Component information message, which may be requested using
  25212. MAV_CMD_REQUEST_MESSAGE.
  25213. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  25214. general_metadata_file_crc : CRC32 of the general metadata file (general_metadata_uri). (type:uint32_t)
  25215. 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)
  25216. peripherals_metadata_file_crc : CRC32 of peripherals metadata file (peripherals_metadata_uri). (type:uint32_t)
  25217. 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)
  25218. """
  25219. return MAVLink_component_information_message(time_boot_ms, general_metadata_file_crc, general_metadata_uri, peripherals_metadata_file_crc, peripherals_metadata_uri)
  25220. 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:
  25221. """
  25222. Component information message, which may be requested using
  25223. MAV_CMD_REQUEST_MESSAGE.
  25224. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  25225. general_metadata_file_crc : CRC32 of the general metadata file (general_metadata_uri). (type:uint32_t)
  25226. 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)
  25227. peripherals_metadata_file_crc : CRC32 of peripherals metadata file (peripherals_metadata_uri). (type:uint32_t)
  25228. 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)
  25229. """
  25230. 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)
  25231. def component_metadata_encode(self, time_boot_ms: int, file_crc: int, uri: bytes) -> MAVLink_component_metadata_message:
  25232. """
  25233. Component metadata message, which may be requested using
  25234. MAV_CMD_REQUEST_MESSAGE. This contains the MAVLink
  25235. FTP URI and CRC for the component's general metadata file.
  25236. The file must be hosted on the component, and may be xz
  25237. compressed. The file CRC can be used for file caching.
  25238. The general metadata file can be read to get the locations of
  25239. other metadata files (COMP_METADATA_TYPE) and translations,
  25240. which may be hosted either on the vehicle or the internet.
  25241. For more information see:
  25242. https://mavlink.io/en/services/component_information.html.
  25243. Note: Camera components should use CAMERA_INFORMATION instead,
  25244. and autopilots may use both this message and
  25245. AUTOPILOT_VERSION.
  25246. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  25247. file_crc : CRC32 of the general metadata file. (type:uint32_t)
  25248. 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)
  25249. """
  25250. return MAVLink_component_metadata_message(time_boot_ms, file_crc, uri)
  25251. def component_metadata_send(self, time_boot_ms: int, file_crc: int, uri: bytes, force_mavlink1: bool = False) -> None:
  25252. """
  25253. Component metadata message, which may be requested using
  25254. MAV_CMD_REQUEST_MESSAGE. This contains the MAVLink
  25255. FTP URI and CRC for the component's general metadata file.
  25256. The file must be hosted on the component, and may be xz
  25257. compressed. The file CRC can be used for file caching.
  25258. The general metadata file can be read to get the locations of
  25259. other metadata files (COMP_METADATA_TYPE) and translations,
  25260. which may be hosted either on the vehicle or the internet.
  25261. For more information see:
  25262. https://mavlink.io/en/services/component_information.html.
  25263. Note: Camera components should use CAMERA_INFORMATION instead,
  25264. and autopilots may use both this message and
  25265. AUTOPILOT_VERSION.
  25266. time_boot_ms : Timestamp (time since system boot). [ms] (type:uint32_t)
  25267. file_crc : CRC32 of the general metadata file. (type:uint32_t)
  25268. 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)
  25269. """
  25270. self.send(self.component_metadata_encode(time_boot_ms, file_crc, uri), force_mavlink1=force_mavlink1)
  25271. def play_tune_v2_encode(self, target_system: int, target_component: int, format: int, tune: bytes) -> MAVLink_play_tune_v2_message:
  25272. """
  25273. Play vehicle tone/tune (buzzer). Supersedes message PLAY_TUNE.
  25274. target_system : System ID (type:uint8_t)
  25275. target_component : Component ID (type:uint8_t)
  25276. format : Tune format (type:uint32_t, values:TUNE_FORMAT)
  25277. tune : Tune definition as a NULL-terminated string. (type:char)
  25278. """
  25279. return MAVLink_play_tune_v2_message(target_system, target_component, format, tune)
  25280. def play_tune_v2_send(self, target_system: int, target_component: int, format: int, tune: bytes, force_mavlink1: bool = False) -> None:
  25281. """
  25282. Play vehicle tone/tune (buzzer). Supersedes message PLAY_TUNE.
  25283. target_system : System ID (type:uint8_t)
  25284. target_component : Component ID (type:uint8_t)
  25285. format : Tune format (type:uint32_t, values:TUNE_FORMAT)
  25286. tune : Tune definition as a NULL-terminated string. (type:char)
  25287. """
  25288. self.send(self.play_tune_v2_encode(target_system, target_component, format, tune), force_mavlink1=force_mavlink1)
  25289. def supported_tunes_encode(self, target_system: int, target_component: int, format: int) -> MAVLink_supported_tunes_message:
  25290. """
  25291. Tune formats supported by vehicle. This should be emitted as response
  25292. to MAV_CMD_REQUEST_MESSAGE.
  25293. target_system : System ID (type:uint8_t)
  25294. target_component : Component ID (type:uint8_t)
  25295. format : Bitfield of supported tune formats. (type:uint32_t, values:TUNE_FORMAT)
  25296. """
  25297. return MAVLink_supported_tunes_message(target_system, target_component, format)
  25298. def supported_tunes_send(self, target_system: int, target_component: int, format: int, force_mavlink1: bool = False) -> None:
  25299. """
  25300. Tune formats supported by vehicle. This should be emitted as response
  25301. to MAV_CMD_REQUEST_MESSAGE.
  25302. target_system : System ID (type:uint8_t)
  25303. target_component : Component ID (type:uint8_t)
  25304. format : Bitfield of supported tune formats. (type:uint32_t, values:TUNE_FORMAT)
  25305. """
  25306. self.send(self.supported_tunes_encode(target_system, target_component, format), force_mavlink1=force_mavlink1)
  25307. 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:
  25308. """
  25309. Event message. Each new event from a particular component gets a new
  25310. sequence number. The same message might be sent multiple times
  25311. if (re-)requested. Most events are broadcast, some can be
  25312. specific to a target component (as receivers keep track of the
  25313. sequence for missed events, all events need to be broadcast.
  25314. Thus we use destination_component instead of
  25315. target_component).
  25316. destination_component : Component ID (type:uint8_t)
  25317. destination_system : System ID (type:uint8_t)
  25318. id : Event ID (as defined in the component metadata) (type:uint32_t)
  25319. event_time_boot_ms : Timestamp (time since system boot when the event happened). [ms] (type:uint32_t)
  25320. sequence : Sequence number. (type:uint16_t)
  25321. 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)
  25322. arguments : Arguments (depend on event ID). (type:uint8_t)
  25323. """
  25324. return MAVLink_event_message(destination_component, destination_system, id, event_time_boot_ms, sequence, log_levels, arguments)
  25325. 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:
  25326. """
  25327. Event message. Each new event from a particular component gets a new
  25328. sequence number. The same message might be sent multiple times
  25329. if (re-)requested. Most events are broadcast, some can be
  25330. specific to a target component (as receivers keep track of the
  25331. sequence for missed events, all events need to be broadcast.
  25332. Thus we use destination_component instead of
  25333. target_component).
  25334. destination_component : Component ID (type:uint8_t)
  25335. destination_system : System ID (type:uint8_t)
  25336. id : Event ID (as defined in the component metadata) (type:uint32_t)
  25337. event_time_boot_ms : Timestamp (time since system boot when the event happened). [ms] (type:uint32_t)
  25338. sequence : Sequence number. (type:uint16_t)
  25339. 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)
  25340. arguments : Arguments (depend on event ID). (type:uint8_t)
  25341. """
  25342. self.send(self.event_encode(destination_component, destination_system, id, event_time_boot_ms, sequence, log_levels, arguments), force_mavlink1=force_mavlink1)
  25343. def current_event_sequence_encode(self, sequence: int, flags: int) -> MAVLink_current_event_sequence_message:
  25344. """
  25345. Regular broadcast for the current latest event sequence number for a
  25346. component. This is used to check for dropped events.
  25347. sequence : Sequence number. (type:uint16_t)
  25348. flags : Flag bitset. (type:uint8_t, values:MAV_EVENT_CURRENT_SEQUENCE_FLAGS)
  25349. """
  25350. return MAVLink_current_event_sequence_message(sequence, flags)
  25351. def current_event_sequence_send(self, sequence: int, flags: int, force_mavlink1: bool = False) -> None:
  25352. """
  25353. Regular broadcast for the current latest event sequence number for a
  25354. component. This is used to check for dropped events.
  25355. sequence : Sequence number. (type:uint16_t)
  25356. flags : Flag bitset. (type:uint8_t, values:MAV_EVENT_CURRENT_SEQUENCE_FLAGS)
  25357. """
  25358. self.send(self.current_event_sequence_encode(sequence, flags), force_mavlink1=force_mavlink1)
  25359. def request_event_encode(self, target_system: int, target_component: int, first_sequence: int, last_sequence: int) -> MAVLink_request_event_message:
  25360. """
  25361. Request one or more events to be (re-)sent. If
  25362. first_sequence==last_sequence, only a single event is
  25363. requested. Note that first_sequence can be larger than
  25364. last_sequence (because the sequence number can wrap). Each
  25365. sequence will trigger an EVENT or EVENT_ERROR response.
  25366. target_system : System ID (type:uint8_t)
  25367. target_component : Component ID (type:uint8_t)
  25368. first_sequence : First sequence number of the requested event. (type:uint16_t)
  25369. last_sequence : Last sequence number of the requested event. (type:uint16_t)
  25370. """
  25371. return MAVLink_request_event_message(target_system, target_component, first_sequence, last_sequence)
  25372. def request_event_send(self, target_system: int, target_component: int, first_sequence: int, last_sequence: int, force_mavlink1: bool = False) -> None:
  25373. """
  25374. Request one or more events to be (re-)sent. If
  25375. first_sequence==last_sequence, only a single event is
  25376. requested. Note that first_sequence can be larger than
  25377. last_sequence (because the sequence number can wrap). Each
  25378. sequence will trigger an EVENT or EVENT_ERROR response.
  25379. target_system : System ID (type:uint8_t)
  25380. target_component : Component ID (type:uint8_t)
  25381. first_sequence : First sequence number of the requested event. (type:uint16_t)
  25382. last_sequence : Last sequence number of the requested event. (type:uint16_t)
  25383. """
  25384. self.send(self.request_event_encode(target_system, target_component, first_sequence, last_sequence), force_mavlink1=force_mavlink1)
  25385. 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:
  25386. """
  25387. Response to a REQUEST_EVENT in case of an error (e.g. the event is not
  25388. available anymore).
  25389. target_system : System ID (type:uint8_t)
  25390. target_component : Component ID (type:uint8_t)
  25391. sequence : Sequence number. (type:uint16_t)
  25392. sequence_oldest_available : Oldest Sequence number that is still available after the sequence set in REQUEST_EVENT. (type:uint16_t)
  25393. reason : Error reason. (type:uint8_t, values:MAV_EVENT_ERROR_REASON)
  25394. """
  25395. return MAVLink_response_event_error_message(target_system, target_component, sequence, sequence_oldest_available, reason)
  25396. 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:
  25397. """
  25398. Response to a REQUEST_EVENT in case of an error (e.g. the event is not
  25399. available anymore).
  25400. target_system : System ID (type:uint8_t)
  25401. target_component : Component ID (type:uint8_t)
  25402. sequence : Sequence number. (type:uint16_t)
  25403. sequence_oldest_available : Oldest Sequence number that is still available after the sequence set in REQUEST_EVENT. (type:uint16_t)
  25404. reason : Error reason. (type:uint8_t, values:MAV_EVENT_ERROR_REASON)
  25405. """
  25406. self.send(self.response_event_error_encode(target_system, target_component, sequence, sequence_oldest_available, reason), force_mavlink1=force_mavlink1)
  25407. def canfd_frame_encode(self, target_system: int, target_component: int, bus: int, len: int, id: int, data: Sequence[int]) -> MAVLink_canfd_frame_message:
  25408. """
  25409. A forwarded CANFD frame as requested by MAV_CMD_CAN_FORWARD. These are
  25410. separated from CAN_FRAME as they need different handling (eg.
  25411. TAO handling)
  25412. target_system : System ID. (type:uint8_t)
  25413. target_component : Component ID. (type:uint8_t)
  25414. bus : bus number (type:uint8_t)
  25415. len : Frame length (type:uint8_t)
  25416. id : Frame ID (type:uint32_t)
  25417. data : Frame data (type:uint8_t)
  25418. """
  25419. return MAVLink_canfd_frame_message(target_system, target_component, bus, len, id, data)
  25420. 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:
  25421. """
  25422. A forwarded CANFD frame as requested by MAV_CMD_CAN_FORWARD. These are
  25423. separated from CAN_FRAME as they need different handling (eg.
  25424. TAO handling)
  25425. target_system : System ID. (type:uint8_t)
  25426. target_component : Component ID. (type:uint8_t)
  25427. bus : bus number (type:uint8_t)
  25428. len : Frame length (type:uint8_t)
  25429. id : Frame ID (type:uint32_t)
  25430. data : Frame data (type:uint8_t)
  25431. """
  25432. self.send(self.canfd_frame_encode(target_system, target_component, bus, len, id, data), force_mavlink1=force_mavlink1)
  25433. 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:
  25434. """
  25435. Modify the filter of what CAN messages to forward over the mavlink.
  25436. This can be used to make CAN forwarding work well on low
  25437. bandwidth links. The filtering is applied on bits 8 to 24 of
  25438. the CAN id (2nd and 3rd bytes) which corresponds to the
  25439. DroneCAN message ID for DroneCAN. Filters with more than 16
  25440. IDs can be constructed by sending multiple CAN_FILTER_MODIFY
  25441. messages.
  25442. target_system : System ID. (type:uint8_t)
  25443. target_component : Component ID. (type:uint8_t)
  25444. bus : bus number (type:uint8_t)
  25445. operation : what operation to perform on the filter list. See CAN_FILTER_OP enum. (type:uint8_t, values:CAN_FILTER_OP)
  25446. num_ids : number of IDs in filter list (type:uint8_t)
  25447. ids : filter IDs, length num_ids (type:uint16_t)
  25448. """
  25449. return MAVLink_can_filter_modify_message(target_system, target_component, bus, operation, num_ids, ids)
  25450. 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:
  25451. """
  25452. Modify the filter of what CAN messages to forward over the mavlink.
  25453. This can be used to make CAN forwarding work well on low
  25454. bandwidth links. The filtering is applied on bits 8 to 24 of
  25455. the CAN id (2nd and 3rd bytes) which corresponds to the
  25456. DroneCAN message ID for DroneCAN. Filters with more than 16
  25457. IDs can be constructed by sending multiple CAN_FILTER_MODIFY
  25458. messages.
  25459. target_system : System ID. (type:uint8_t)
  25460. target_component : Component ID. (type:uint8_t)
  25461. bus : bus number (type:uint8_t)
  25462. operation : what operation to perform on the filter list. See CAN_FILTER_OP enum. (type:uint8_t, values:CAN_FILTER_OP)
  25463. num_ids : number of IDs in filter list (type:uint8_t)
  25464. ids : filter IDs, length num_ids (type:uint16_t)
  25465. """
  25466. self.send(self.can_filter_modify_encode(target_system, target_component, bus, operation, num_ids, ids), force_mavlink1=force_mavlink1)
  25467. def wheel_distance_encode(self, time_usec: int, count: int, distance: Sequence[float]) -> MAVLink_wheel_distance_message:
  25468. """
  25469. Cumulative distance traveled for each reported wheel.
  25470. time_usec : Timestamp (synced to UNIX time or since system boot). [us] (type:uint64_t)
  25471. count : Number of wheels reported. (type:uint8_t)
  25472. 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)
  25473. """
  25474. return MAVLink_wheel_distance_message(time_usec, count, distance)
  25475. def wheel_distance_send(self, time_usec: int, count: int, distance: Sequence[float], force_mavlink1: bool = False) -> None:
  25476. """
  25477. Cumulative distance traveled for each reported wheel.
  25478. time_usec : Timestamp (synced to UNIX time or since system boot). [us] (type:uint64_t)
  25479. count : Number of wheels reported. (type:uint8_t)
  25480. 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)
  25481. """
  25482. self.send(self.wheel_distance_encode(time_usec, count, distance), force_mavlink1=force_mavlink1)
  25483. 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:
  25484. """
  25485. Winch status.
  25486. time_usec : Timestamp (synced to UNIX time or since system boot). [us] (type:uint64_t)
  25487. line_length : Length of line released. NaN if unknown [m] (type:float)
  25488. 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)
  25489. tension : Tension on the line. NaN if unknown [kg] (type:float)
  25490. voltage : Voltage of the battery supplying the winch. NaN if unknown [V] (type:float)
  25491. current : Current draw from the winch. NaN if unknown [A] (type:float)
  25492. temperature : Temperature of the motor. INT16_MAX if unknown [degC] (type:int16_t)
  25493. status : Status flags (type:uint32_t, values:MAV_WINCH_STATUS_FLAG)
  25494. """
  25495. return MAVLink_winch_status_message(time_usec, line_length, speed, tension, voltage, current, temperature, status)
  25496. 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:
  25497. """
  25498. Winch status.
  25499. time_usec : Timestamp (synced to UNIX time or since system boot). [us] (type:uint64_t)
  25500. line_length : Length of line released. NaN if unknown [m] (type:float)
  25501. 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)
  25502. tension : Tension on the line. NaN if unknown [kg] (type:float)
  25503. voltage : Voltage of the battery supplying the winch. NaN if unknown [V] (type:float)
  25504. current : Current draw from the winch. NaN if unknown [A] (type:float)
  25505. temperature : Temperature of the motor. INT16_MAX if unknown [degC] (type:int16_t)
  25506. status : Status flags (type:uint32_t, values:MAV_WINCH_STATUS_FLAG)
  25507. """
  25508. self.send(self.winch_status_encode(time_usec, line_length, speed, tension, voltage, current, temperature, status), force_mavlink1=force_mavlink1)
  25509. 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:
  25510. """
  25511. Data for filling the OpenDroneID Basic ID message. This and the below
  25512. messages are primarily meant for feeding data to/from an
  25513. OpenDroneID implementation. E.g.
  25514. https://github.com/opendroneid/opendroneid-core-c. These
  25515. messages are compatible with the ASTM F3411 Remote ID standard
  25516. and the ASD-STAN prEN 4709-002 Direct Remote ID standard.
  25517. Additional information and usage of these messages is
  25518. documented at https://mavlink.io/en/services/opendroneid.html.
  25519. target_system : System ID (0 for broadcast). (type:uint8_t)
  25520. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25521. 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)
  25522. id_type : Indicates the format for the uas_id field of this message. (type:uint8_t, values:MAV_ODID_ID_TYPE)
  25523. ua_type : Indicates the type of UA (Unmanned Aircraft). (type:uint8_t, values:MAV_ODID_UA_TYPE)
  25524. 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)
  25525. """
  25526. return MAVLink_open_drone_id_basic_id_message(target_system, target_component, id_or_mac, id_type, ua_type, uas_id)
  25527. 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:
  25528. """
  25529. Data for filling the OpenDroneID Basic ID message. This and the below
  25530. messages are primarily meant for feeding data to/from an
  25531. OpenDroneID implementation. E.g.
  25532. https://github.com/opendroneid/opendroneid-core-c. These
  25533. messages are compatible with the ASTM F3411 Remote ID standard
  25534. and the ASD-STAN prEN 4709-002 Direct Remote ID standard.
  25535. Additional information and usage of these messages is
  25536. documented at https://mavlink.io/en/services/opendroneid.html.
  25537. target_system : System ID (0 for broadcast). (type:uint8_t)
  25538. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25539. 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)
  25540. id_type : Indicates the format for the uas_id field of this message. (type:uint8_t, values:MAV_ODID_ID_TYPE)
  25541. ua_type : Indicates the type of UA (Unmanned Aircraft). (type:uint8_t, values:MAV_ODID_UA_TYPE)
  25542. 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)
  25543. """
  25544. 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)
  25545. 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:
  25546. """
  25547. Data for filling the OpenDroneID Location message. The float data
  25548. types are 32-bit IEEE 754. The Location message provides the
  25549. location, altitude, direction and speed of the aircraft.
  25550. target_system : System ID (0 for broadcast). (type:uint8_t)
  25551. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25552. 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)
  25553. status : Indicates whether the unmanned aircraft is on the ground or in the air. (type:uint8_t, values:MAV_ODID_STATUS)
  25554. 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)
  25555. 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)
  25556. 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)
  25557. latitude : Current latitude of the unmanned aircraft. If unknown: 0 (both Lat/Lon). [degE7] (type:int32_t)
  25558. longitude : Current longitude of the unmanned aircraft. If unknown: 0 (both Lat/Lon). [degE7] (type:int32_t)
  25559. altitude_barometric : The altitude calculated from the barometric pressue. Reference is against 29.92inHg or 1013.2mb. If unknown: -1000 m. [m] (type:float)
  25560. altitude_geodetic : The geodetic altitude as defined by WGS84. If unknown: -1000 m. [m] (type:float)
  25561. height_reference : Indicates the reference point for the height field. (type:uint8_t, values:MAV_ODID_HEIGHT_REF)
  25562. 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)
  25563. horizontal_accuracy : The accuracy of the horizontal position. (type:uint8_t, values:MAV_ODID_HOR_ACC)
  25564. vertical_accuracy : The accuracy of the vertical position. (type:uint8_t, values:MAV_ODID_VER_ACC)
  25565. barometer_accuracy : The accuracy of the barometric altitude. (type:uint8_t, values:MAV_ODID_VER_ACC)
  25566. speed_accuracy : The accuracy of the horizontal and vertical speed. (type:uint8_t, values:MAV_ODID_SPEED_ACC)
  25567. 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)
  25568. timestamp_accuracy : The accuracy of the timestamps. (type:uint8_t, values:MAV_ODID_TIME_ACC)
  25569. """
  25570. 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)
  25571. 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:
  25572. """
  25573. Data for filling the OpenDroneID Location message. The float data
  25574. types are 32-bit IEEE 754. The Location message provides the
  25575. location, altitude, direction and speed of the aircraft.
  25576. target_system : System ID (0 for broadcast). (type:uint8_t)
  25577. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25578. 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)
  25579. status : Indicates whether the unmanned aircraft is on the ground or in the air. (type:uint8_t, values:MAV_ODID_STATUS)
  25580. 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)
  25581. 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)
  25582. 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)
  25583. latitude : Current latitude of the unmanned aircraft. If unknown: 0 (both Lat/Lon). [degE7] (type:int32_t)
  25584. longitude : Current longitude of the unmanned aircraft. If unknown: 0 (both Lat/Lon). [degE7] (type:int32_t)
  25585. altitude_barometric : The altitude calculated from the barometric pressue. Reference is against 29.92inHg or 1013.2mb. If unknown: -1000 m. [m] (type:float)
  25586. altitude_geodetic : The geodetic altitude as defined by WGS84. If unknown: -1000 m. [m] (type:float)
  25587. height_reference : Indicates the reference point for the height field. (type:uint8_t, values:MAV_ODID_HEIGHT_REF)
  25588. 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)
  25589. horizontal_accuracy : The accuracy of the horizontal position. (type:uint8_t, values:MAV_ODID_HOR_ACC)
  25590. vertical_accuracy : The accuracy of the vertical position. (type:uint8_t, values:MAV_ODID_VER_ACC)
  25591. barometer_accuracy : The accuracy of the barometric altitude. (type:uint8_t, values:MAV_ODID_VER_ACC)
  25592. speed_accuracy : The accuracy of the horizontal and vertical speed. (type:uint8_t, values:MAV_ODID_SPEED_ACC)
  25593. 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)
  25594. timestamp_accuracy : The accuracy of the timestamps. (type:uint8_t, values:MAV_ODID_TIME_ACC)
  25595. """
  25596. 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)
  25597. 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:
  25598. """
  25599. Data for filling the OpenDroneID Authentication message. The
  25600. Authentication Message defines a field that can provide a
  25601. means of authenticity for the identity of the UAS (Unmanned
  25602. Aircraft System). The Authentication message can have two
  25603. different formats. For data page 0, the fields PageCount,
  25604. Length and TimeStamp are present and AuthData is only 17
  25605. bytes. For data page 1 through 15, PageCount, Length and
  25606. TimeStamp are not present and the size of AuthData is 23
  25607. bytes.
  25608. target_system : System ID (0 for broadcast). (type:uint8_t)
  25609. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25610. 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)
  25611. authentication_type : Indicates the type of authentication. (type:uint8_t, values:MAV_ODID_AUTH_TYPE)
  25612. data_page : Allowed range is 0 - 15. (type:uint8_t)
  25613. 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)
  25614. 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)
  25615. 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)
  25616. 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)
  25617. """
  25618. 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)
  25619. 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:
  25620. """
  25621. Data for filling the OpenDroneID Authentication message. The
  25622. Authentication Message defines a field that can provide a
  25623. means of authenticity for the identity of the UAS (Unmanned
  25624. Aircraft System). The Authentication message can have two
  25625. different formats. For data page 0, the fields PageCount,
  25626. Length and TimeStamp are present and AuthData is only 17
  25627. bytes. For data page 1 through 15, PageCount, Length and
  25628. TimeStamp are not present and the size of AuthData is 23
  25629. bytes.
  25630. target_system : System ID (0 for broadcast). (type:uint8_t)
  25631. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25632. 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)
  25633. authentication_type : Indicates the type of authentication. (type:uint8_t, values:MAV_ODID_AUTH_TYPE)
  25634. data_page : Allowed range is 0 - 15. (type:uint8_t)
  25635. 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)
  25636. 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)
  25637. 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)
  25638. 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)
  25639. """
  25640. 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)
  25641. 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:
  25642. """
  25643. Data for filling the OpenDroneID Self ID message. The Self ID Message
  25644. is an opportunity for the operator to (optionally) declare
  25645. their identity and purpose of the flight. This message can
  25646. provide additional information that could reduce the threat
  25647. profile of a UA (Unmanned Aircraft) flying in a particular
  25648. area or manner. This message can also be used to provide
  25649. optional additional clarification in an emergency/remote ID
  25650. system failure situation.
  25651. target_system : System ID (0 for broadcast). (type:uint8_t)
  25652. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25653. 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)
  25654. description_type : Indicates the type of the description field. (type:uint8_t, values:MAV_ODID_DESC_TYPE)
  25655. description : Text description or numeric value expressed as ASCII characters. Shall be filled with nulls in the unused portion of the field. (type:char)
  25656. """
  25657. return MAVLink_open_drone_id_self_id_message(target_system, target_component, id_or_mac, description_type, description)
  25658. 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:
  25659. """
  25660. Data for filling the OpenDroneID Self ID message. The Self ID Message
  25661. is an opportunity for the operator to (optionally) declare
  25662. their identity and purpose of the flight. This message can
  25663. provide additional information that could reduce the threat
  25664. profile of a UA (Unmanned Aircraft) flying in a particular
  25665. area or manner. This message can also be used to provide
  25666. optional additional clarification in an emergency/remote ID
  25667. system failure situation.
  25668. target_system : System ID (0 for broadcast). (type:uint8_t)
  25669. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25670. 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)
  25671. description_type : Indicates the type of the description field. (type:uint8_t, values:MAV_ODID_DESC_TYPE)
  25672. description : Text description or numeric value expressed as ASCII characters. Shall be filled with nulls in the unused portion of the field. (type:char)
  25673. """
  25674. self.send(self.open_drone_id_self_id_encode(target_system, target_component, id_or_mac, description_type, description), force_mavlink1=force_mavlink1)
  25675. 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:
  25676. """
  25677. Data for filling the OpenDroneID System message. The System Message
  25678. contains general system information including the operator
  25679. location/altitude and possible aircraft group and/or
  25680. category/class information.
  25681. target_system : System ID (0 for broadcast). (type:uint8_t)
  25682. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25683. 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)
  25684. operator_location_type : Specifies the operator location type. (type:uint8_t, values:MAV_ODID_OPERATOR_LOCATION_TYPE)
  25685. classification_type : Specifies the classification type of the UA. (type:uint8_t, values:MAV_ODID_CLASSIFICATION_TYPE)
  25686. operator_latitude : Latitude of the operator. If unknown: 0 (both Lat/Lon). [degE7] (type:int32_t)
  25687. operator_longitude : Longitude of the operator. If unknown: 0 (both Lat/Lon). [degE7] (type:int32_t)
  25688. area_count : Number of aircraft in the area, group or formation (default 1). Used only for swarms/multiple UA. (type:uint16_t)
  25689. area_radius : Radius of the cylindrical area of the group or formation (default 0). Used only for swarms/multiple UA. [m] (type:uint16_t)
  25690. area_ceiling : Area Operations Ceiling relative to WGS84. If unknown: -1000 m. Used only for swarms/multiple UA. [m] (type:float)
  25691. area_floor : Area Operations Floor relative to WGS84. If unknown: -1000 m. Used only for swarms/multiple UA. [m] (type:float)
  25692. 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)
  25693. 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)
  25694. operator_altitude_geo : Geodetic altitude of the operator relative to WGS84. If unknown: -1000 m. [m] (type:float)
  25695. timestamp : 32 bit Unix Timestamp in seconds since 00:00:00 01/01/2019. [s] (type:uint32_t)
  25696. """
  25697. 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)
  25698. 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:
  25699. """
  25700. Data for filling the OpenDroneID System message. The System Message
  25701. contains general system information including the operator
  25702. location/altitude and possible aircraft group and/or
  25703. category/class information.
  25704. target_system : System ID (0 for broadcast). (type:uint8_t)
  25705. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25706. 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)
  25707. operator_location_type : Specifies the operator location type. (type:uint8_t, values:MAV_ODID_OPERATOR_LOCATION_TYPE)
  25708. classification_type : Specifies the classification type of the UA. (type:uint8_t, values:MAV_ODID_CLASSIFICATION_TYPE)
  25709. operator_latitude : Latitude of the operator. If unknown: 0 (both Lat/Lon). [degE7] (type:int32_t)
  25710. operator_longitude : Longitude of the operator. If unknown: 0 (both Lat/Lon). [degE7] (type:int32_t)
  25711. area_count : Number of aircraft in the area, group or formation (default 1). Used only for swarms/multiple UA. (type:uint16_t)
  25712. area_radius : Radius of the cylindrical area of the group or formation (default 0). Used only for swarms/multiple UA. [m] (type:uint16_t)
  25713. area_ceiling : Area Operations Ceiling relative to WGS84. If unknown: -1000 m. Used only for swarms/multiple UA. [m] (type:float)
  25714. area_floor : Area Operations Floor relative to WGS84. If unknown: -1000 m. Used only for swarms/multiple UA. [m] (type:float)
  25715. 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)
  25716. 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)
  25717. operator_altitude_geo : Geodetic altitude of the operator relative to WGS84. If unknown: -1000 m. [m] (type:float)
  25718. timestamp : 32 bit Unix Timestamp in seconds since 00:00:00 01/01/2019. [s] (type:uint32_t)
  25719. """
  25720. 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)
  25721. 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:
  25722. """
  25723. Data for filling the OpenDroneID Operator ID message, which contains
  25724. the CAA (Civil Aviation Authority) issued operator ID.
  25725. target_system : System ID (0 for broadcast). (type:uint8_t)
  25726. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25727. 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)
  25728. operator_id_type : Indicates the type of the operator_id field. (type:uint8_t, values:MAV_ODID_OPERATOR_ID_TYPE)
  25729. 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)
  25730. """
  25731. return MAVLink_open_drone_id_operator_id_message(target_system, target_component, id_or_mac, operator_id_type, operator_id)
  25732. 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:
  25733. """
  25734. Data for filling the OpenDroneID Operator ID message, which contains
  25735. the CAA (Civil Aviation Authority) issued operator ID.
  25736. target_system : System ID (0 for broadcast). (type:uint8_t)
  25737. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25738. 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)
  25739. operator_id_type : Indicates the type of the operator_id field. (type:uint8_t, values:MAV_ODID_OPERATOR_ID_TYPE)
  25740. 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)
  25741. """
  25742. 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)
  25743. 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:
  25744. """
  25745. An OpenDroneID message pack is a container for multiple encoded
  25746. OpenDroneID messages (i.e. not in the format given for the
  25747. above message descriptions but after encoding into the
  25748. compressed OpenDroneID byte format). Used e.g. when
  25749. transmitting on Bluetooth 5.0 Long Range/Extended Advertising
  25750. or on WiFi Neighbor Aware Networking or on WiFi Beacon.
  25751. target_system : System ID (0 for broadcast). (type:uint8_t)
  25752. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25753. 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)
  25754. 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)
  25755. msg_pack_size : Number of encoded messages in the pack (not the number of bytes). Allowed range is 1 - 9. (type:uint8_t)
  25756. messages : Concatenation of encoded OpenDroneID messages. Shall be filled with nulls in the unused portion of the field. (type:uint8_t)
  25757. """
  25758. return MAVLink_open_drone_id_message_pack_message(target_system, target_component, id_or_mac, single_message_size, msg_pack_size, messages)
  25759. 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:
  25760. """
  25761. An OpenDroneID message pack is a container for multiple encoded
  25762. OpenDroneID messages (i.e. not in the format given for the
  25763. above message descriptions but after encoding into the
  25764. compressed OpenDroneID byte format). Used e.g. when
  25765. transmitting on Bluetooth 5.0 Long Range/Extended Advertising
  25766. or on WiFi Neighbor Aware Networking or on WiFi Beacon.
  25767. target_system : System ID (0 for broadcast). (type:uint8_t)
  25768. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25769. 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)
  25770. 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)
  25771. msg_pack_size : Number of encoded messages in the pack (not the number of bytes). Allowed range is 1 - 9. (type:uint8_t)
  25772. messages : Concatenation of encoded OpenDroneID messages. Shall be filled with nulls in the unused portion of the field. (type:uint8_t)
  25773. """
  25774. 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)
  25775. def open_drone_id_arm_status_encode(self, status: int, error: bytes) -> MAVLink_open_drone_id_arm_status_message:
  25776. """
  25777. Transmitter (remote ID system) is enabled and ready to start sending
  25778. location and other required information. This is streamed by
  25779. transmitter. A flight controller uses it as a condition to
  25780. arm.
  25781. status : Status level indicating if arming is allowed. (type:uint8_t, values:MAV_ODID_ARM_STATUS)
  25782. error : Text error message, should be empty if status is good to arm. Fill with nulls in unused portion. (type:char)
  25783. """
  25784. return MAVLink_open_drone_id_arm_status_message(status, error)
  25785. def open_drone_id_arm_status_send(self, status: int, error: bytes, force_mavlink1: bool = False) -> None:
  25786. """
  25787. Transmitter (remote ID system) is enabled and ready to start sending
  25788. location and other required information. This is streamed by
  25789. transmitter. A flight controller uses it as a condition to
  25790. arm.
  25791. status : Status level indicating if arming is allowed. (type:uint8_t, values:MAV_ODID_ARM_STATUS)
  25792. error : Text error message, should be empty if status is good to arm. Fill with nulls in unused portion. (type:char)
  25793. """
  25794. self.send(self.open_drone_id_arm_status_encode(status, error), force_mavlink1=force_mavlink1)
  25795. 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:
  25796. """
  25797. Update the data in the OPEN_DRONE_ID_SYSTEM message with new location
  25798. information. This can be sent to update the location
  25799. information for the operator when no other information in the
  25800. SYSTEM message has changed. This message allows for efficient
  25801. operation on radio links which have limited uplink bandwidth
  25802. while meeting requirements for update frequency of the
  25803. operator location.
  25804. target_system : System ID (0 for broadcast). (type:uint8_t)
  25805. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25806. operator_latitude : Latitude of the operator. If unknown: 0 (both Lat/Lon). [degE7] (type:int32_t)
  25807. operator_longitude : Longitude of the operator. If unknown: 0 (both Lat/Lon). [degE7] (type:int32_t)
  25808. operator_altitude_geo : Geodetic altitude of the operator relative to WGS84. If unknown: -1000 m. [m] (type:float)
  25809. timestamp : 32 bit Unix Timestamp in seconds since 00:00:00 01/01/2019. [s] (type:uint32_t)
  25810. """
  25811. return MAVLink_open_drone_id_system_update_message(target_system, target_component, operator_latitude, operator_longitude, operator_altitude_geo, timestamp)
  25812. 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:
  25813. """
  25814. Update the data in the OPEN_DRONE_ID_SYSTEM message with new location
  25815. information. This can be sent to update the location
  25816. information for the operator when no other information in the
  25817. SYSTEM message has changed. This message allows for efficient
  25818. operation on radio links which have limited uplink bandwidth
  25819. while meeting requirements for update frequency of the
  25820. operator location.
  25821. target_system : System ID (0 for broadcast). (type:uint8_t)
  25822. target_component : Component ID (0 for broadcast). (type:uint8_t)
  25823. operator_latitude : Latitude of the operator. If unknown: 0 (both Lat/Lon). [degE7] (type:int32_t)
  25824. operator_longitude : Longitude of the operator. If unknown: 0 (both Lat/Lon). [degE7] (type:int32_t)
  25825. operator_altitude_geo : Geodetic altitude of the operator relative to WGS84. If unknown: -1000 m. [m] (type:float)
  25826. timestamp : 32 bit Unix Timestamp in seconds since 00:00:00 01/01/2019. [s] (type:uint32_t)
  25827. """
  25828. 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)
  25829. def hygrometer_sensor_encode(self, id: int, temperature: int, humidity: int) -> MAVLink_hygrometer_sensor_message:
  25830. """
  25831. Temperature and humidity from hygrometer.
  25832. id : Hygrometer ID (type:uint8_t)
  25833. temperature : Temperature [cdegC] (type:int16_t)
  25834. humidity : Humidity [c%] (type:uint16_t)
  25835. """
  25836. return MAVLink_hygrometer_sensor_message(id, temperature, humidity)
  25837. def hygrometer_sensor_send(self, id: int, temperature: int, humidity: int, force_mavlink1: bool = False) -> None:
  25838. """
  25839. Temperature and humidity from hygrometer.
  25840. id : Hygrometer ID (type:uint8_t)
  25841. temperature : Temperature [cdegC] (type:int16_t)
  25842. humidity : Humidity [c%] (type:uint16_t)
  25843. """
  25844. self.send(self.hygrometer_sensor_encode(id, temperature, humidity), force_mavlink1=force_mavlink1)
  25845. def heartbeat_encode(self, type: int, autopilot: int, base_mode: int, custom_mode: int, system_status: int, mavlink_version: int = 3) -> MAVLink_heartbeat_message:
  25846. """
  25847. The heartbeat message shows that a system or component is present and
  25848. responding. The type and autopilot fields (along with the
  25849. message component id), allow the receiving system to treat
  25850. further messages from this system appropriately (e.g. by
  25851. laying out the user interface based on the autopilot). This
  25852. microservice is documented at
  25853. https://mavlink.io/en/services/heartbeat.html
  25854. 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)
  25855. autopilot : Autopilot type / class. Use MAV_AUTOPILOT_INVALID for components that are not flight controllers. (type:uint8_t, values:MAV_AUTOPILOT)
  25856. base_mode : System mode bitmap. (type:uint8_t, values:MAV_MODE_FLAG)
  25857. custom_mode : A bitfield for use for autopilot-specific flags (type:uint32_t)
  25858. system_status : System status flag. (type:uint8_t, values:MAV_STATE)
  25859. mavlink_version : MAVLink version, not writable by user, gets added by protocol because of magic data type: uint8_t_mavlink_version (type:uint8_t)
  25860. """
  25861. return MAVLink_heartbeat_message(type, autopilot, base_mode, custom_mode, system_status, mavlink_version)
  25862. 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:
  25863. """
  25864. The heartbeat message shows that a system or component is present and
  25865. responding. The type and autopilot fields (along with the
  25866. message component id), allow the receiving system to treat
  25867. further messages from this system appropriately (e.g. by
  25868. laying out the user interface based on the autopilot). This
  25869. microservice is documented at
  25870. https://mavlink.io/en/services/heartbeat.html
  25871. 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)
  25872. autopilot : Autopilot type / class. Use MAV_AUTOPILOT_INVALID for components that are not flight controllers. (type:uint8_t, values:MAV_AUTOPILOT)
  25873. base_mode : System mode bitmap. (type:uint8_t, values:MAV_MODE_FLAG)
  25874. custom_mode : A bitfield for use for autopilot-specific flags (type:uint32_t)
  25875. system_status : System status flag. (type:uint8_t, values:MAV_STATE)
  25876. mavlink_version : MAVLink version, not writable by user, gets added by protocol because of magic data type: uint8_t_mavlink_version (type:uint8_t)
  25877. """
  25878. self.send(self.heartbeat_encode(type, autopilot, base_mode, custom_mode, system_status, mavlink_version), force_mavlink1=force_mavlink1)
  25879. 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:
  25880. """
  25881. Version and capability of protocol version. This message can be
  25882. requested with MAV_CMD_REQUEST_MESSAGE and is used as part of
  25883. the handshaking to establish which MAVLink version should be
  25884. used on the network. Every node should respond to a request
  25885. for PROTOCOL_VERSION to enable the handshaking. Library
  25886. implementers should consider adding this into the default
  25887. decoding state machine to allow the protocol core to respond
  25888. directly.
  25889. version : Currently active MAVLink version number * 100: v1.0 is 100, v2.0 is 200, etc. (type:uint16_t)
  25890. min_version : Minimum MAVLink version supported (type:uint16_t)
  25891. max_version : Maximum MAVLink version supported (set to the same value as version by default) (type:uint16_t)
  25892. spec_version_hash : The first 8 bytes (not characters printed in hex!) of the git hash. (type:uint8_t)
  25893. library_version_hash : The first 8 bytes (not characters printed in hex!) of the git hash. (type:uint8_t)
  25894. """
  25895. return MAVLink_protocol_version_message(version, min_version, max_version, spec_version_hash, library_version_hash)
  25896. 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:
  25897. """
  25898. Version and capability of protocol version. This message can be
  25899. requested with MAV_CMD_REQUEST_MESSAGE and is used as part of
  25900. the handshaking to establish which MAVLink version should be
  25901. used on the network. Every node should respond to a request
  25902. for PROTOCOL_VERSION to enable the handshaking. Library
  25903. implementers should consider adding this into the default
  25904. decoding state machine to allow the protocol core to respond
  25905. directly.
  25906. version : Currently active MAVLink version number * 100: v1.0 is 100, v2.0 is 200, etc. (type:uint16_t)
  25907. min_version : Minimum MAVLink version supported (type:uint16_t)
  25908. max_version : Maximum MAVLink version supported (set to the same value as version by default) (type:uint16_t)
  25909. spec_version_hash : The first 8 bytes (not characters printed in hex!) of the git hash. (type:uint8_t)
  25910. library_version_hash : The first 8 bytes (not characters printed in hex!) of the git hash. (type:uint8_t)
  25911. """
  25912. self.send(self.protocol_version_encode(version, min_version, max_version, spec_version_hash, library_version_hash), force_mavlink1=force_mavlink1)