Module Expr Str ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr BinOpDiv NameLoad Num If CompareEq NameLoad Num body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr BinOpDiv NameLoad Num If CompareEq NameLoad Num body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareEq NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr BinOpBitAnd BinOpRShift NameLoad Num Num Assign AttributeStore NameLoad attr BinOpBitAnd BinOpRShift NameLoad Num Num Assign AttributeStore NameLoad attr BinOpBitAnd BinOpRShift NameLoad Num Num Assign AttributeStore NameLoad attr BinOpBitAnd NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Return NameLoad If CompareEq AttributeLoad NameLoad attr Num body Return Num Return BinOpMod AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Return NameLoad Assign NameStore ListLoad Str Str Str Str Return SubscriptLoad NameLoad Index BinOpDiv AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str If CompareEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body AugAssignAdd NameStore Str orelse If CompareEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body AugAssignAdd NameStore Str orelse AugAssignAdd NameStore Str If CompareEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body AugAssignAdd NameStore Str orelse If CompareEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body AugAssignAdd NameStore Str orelse If CompareEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body AugAssignAdd NameStore Str orelse AugAssignAdd NameStore BinOpMod Str AttributeLoad NameLoad attr If CompareIs Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Str orelse If Call AttributeLoad NameLoad attr body Assign NameStore Str orelse Assign NameStore BinOpAdd BinOpAdd Str Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Return BinOpAdd BinOpAdd NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr CompareEq BinOpBitAnd BinOpRShift NameLoad Num Num Num Assign AttributeStore NameLoad attr CompareEq BinOpBitAnd BinOpRShift NameLoad Num Num Num Assign AttributeStore NameLoad attr CompareEq BinOpBitAnd BinOpRShift NameLoad Num Num Num Assign AttributeStore NameLoad attr CompareEq BinOpBitAnd BinOpRShift NameLoad Num Num Num Assign AttributeStore NameLoad attr CompareEq BinOpBitAnd BinOpRShift NameLoad Num Num Num Assign AttributeStore NameLoad attr CompareEq BinOpBitAnd BinOpRShift NameLoad Num Num Num Assign AttributeStore NameLoad attr CompareEq BinOpBitAnd BinOpRShift NameLoad Num Num Num Assign AttributeStore NameLoad attr CompareEq BinOpBitAnd BinOpRShift NameLoad Num Num Num Assign AttributeStore NameLoad attr CompareEq BinOpBitAnd BinOpRShift NameLoad Num Num Num Assign AttributeStore NameLoad attr CompareEq BinOpBitAnd BinOpRShift NameLoad Num Num Num Assign AttributeStore NameLoad attr CompareEq BinOpBitAnd BinOpRShift NameLoad Num Num Num Assign AttributeStore NameLoad attr CompareEq BinOpBitAnd BinOpRShift NameLoad Num Num Num Assign AttributeStore NameLoad attr CompareEq BinOpBitAnd BinOpRShift NameLoad Num Num Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareEq AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareNotEq AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareEq AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareNotEq AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore ListLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad If UnaryOpNot CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq Call NameLoad NameLoad Num body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If NameLoad body If BoolOpAnd CompareIn NameLoad AttributeLoad NameLoad attr CompareEq SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad body Return Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad body TryExcept body Expr Call NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad BinOpAdd Str Call NameLoad NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str ListLoad body TryExcept body Expr Call NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad BinOpAdd Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad NameLoad body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot BoolOpAnd CompareGt Call NameLoad NameLoad Num CompareLtE Call NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str NameLoad If UnaryOpNot NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad handlers ExceptHandler body Pass orelse Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Assign NameStore BinOpMult ListLoad Num Num For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index BinOpSub Call NameLoad NameLoad Num NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Num Num NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad For NameStore Call NameLoad Num NameLoad body Assign SubscriptStore NameLoad Index BinOpAdd NameLoad Num NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If AttributeLoad NameLoad attr body Raise Call NameLoad Str Return Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Call NameLoad NameLoad NameLoad orelse TryExcept body Delete SubscriptDel AttributeLoad NameLoad attr Index Call NameLoad NameLoad handlers ExceptHandler body Pass Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad BinOpDiv AttributeLoad NameLoad attr Num BinOpDiv AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr BinOpDiv AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr If BoolOpOr CompareNotEq AttributeLoad NameLoad attr NameLoad CompareNotEq AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr BinOpDiv AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr ListLoad Str Str Str Str Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad BinOpDiv AttributeLoad NameLoad attr Num BinOpDiv AttributeLoad NameLoad attr Num BinOpDiv AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr BinOpDiv AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr BinOpDiv AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr BinOpDiv AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Num If BoolOpOr CompareNotEq AttributeLoad NameLoad attr Num CompareGt AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Num FunctionDef arguments args NameParam NameParam NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad BinOpAdd BinOpMult AttributeLoad NameLoad attr Num NameLoad NameLoad decorator_list Expr Call NameLoad Num AttributeLoad NameLoad attr Expr Call NameLoad Num AttributeLoad NameLoad attr Expr Call NameLoad Num AttributeLoad NameLoad attr Expr Call NameLoad Num AttributeLoad NameLoad attr Expr Call NameLoad Num AttributeLoad NameLoad attr Expr Call NameLoad Num AttributeLoad NameLoad attr Expr Call NameLoad Num AttributeLoad NameLoad attr Expr Call NameLoad Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Num FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr ListLoad Str Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr CompareGt BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr CompareGt BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr CompareGt BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr CompareNotEq BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If CompareEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list Call AttributeLoad NameLoad attr ListLoad Str Str FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr Num body If UnaryOpNot BoolOpAnd CompareEq AttributeLoad NameLoad attr Num CompareEq AttributeLoad NameLoad attr Num CompareEq AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareGt AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr body Pass orelse If CompareLt AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr body Pass orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareLt BinOpAdd AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr Num orelse Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr ListLoad Str Str FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareNotEq AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr ListLoad Str Str Assign NameStore Num Assign NameStore Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Return If BoolOpAnd CompareNotIn NameLoad AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr CompareGt BinOpSub Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Num For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body If CompareEq NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Num Str NameLoad AugAssignAdd NameStore Num If CompareGt NameLoad Num body Break Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpMult ListLoad NameLoad AttributeLoad NameLoad attr TryExcept body If BoolOpAnd CompareLt AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler body Import alias Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr ListLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body If CompareGt BinOpSub Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Num Num Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body If BoolOpAnd AttributeLoad NameLoad attr CompareGt AttributeLoad NameLoad attr Num CompareGt BinOpSub Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr orelse If CompareGt BinOpSub Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr ListLoad Str Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr BinOpSub Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad NameLoad body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad ListLoad If CompareNotIn NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body If CompareIn NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad If CompareEq Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Num body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad body TryExcept body Expr Call NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad BinOpMod Str Call AttributeLoad NameLoad attr Expr Call NameLoad BinOpAdd Str Call NameLoad NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str ListLoad body TryExcept body Expr Call NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad BinOpMod Str Call AttributeLoad NameLoad attr Expr Call NameLoad BinOpAdd Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body TryExcept body Return CompareIn NameLoad AttributeLoad NameLoad attr handlers ExceptHandler body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return NameLoad Return Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If BoolOpOr CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad body Return NameLoad Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body If CompareNotEq Call NameLoad NameLoad AttributeLoad NameLoad attr body If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return BoolOpAnd CompareNotEq AttributeLoad NameLoad attr Str CompareGt AttributeLoad AttributeLoad NameLoad attr attr Num AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Dict Num Num Num Num Num Num Num Num Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str attr AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad NameLoad Num Num Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad NameLoad Num Num Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Return BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr orelse Return BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Num AttributeLoad AttributeLoad NameLoad attr attr Num Num Num Num Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If BoolOpOr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Num AttributeLoad AttributeLoad NameLoad attr attr Num Num Num Num Num Num Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpSub AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr orelse Raise Call NameLoad Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Num Num NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Num Num Num Num Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If CompareNotEq NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad If CompareNotEq NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BoolOpOr NameLoad Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad While AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Num If CompareNotEq AttributeLoad NameLoad attr NameLoad body Break If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad Str Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr While NameLoad body If CompareNotIn AttributeLoad NameLoad attr ListLoad NameLoad Str Str body Break Expr Call AttributeLoad NameLoad attr Num If CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Num AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr While NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num If CompareGt AttributeLoad NameLoad attr Num body Break decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num AttributeLoad AttributeLoad NameLoad attr attr Num Num Num Num Num Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If BoolOpOr CompareEq Call NameLoad NameLoad ListLoad NameLoad CompareEq Call NameLoad NameLoad ListLoad body Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad GeneratorExp Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad body Raise Call NameLoad Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr While UnaryOpNot Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Num If CompareGt BinOpSub Call AttributeLoad NameLoad attr NameLoad NameLoad body If NameLoad body Raise Call NameLoad BinOpMod Str NameLoad orelse Return NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr BinOpDiv AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr BinOpDiv AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr BinOpDiv AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Num AttributeLoad AttributeLoad NameLoad attr attr Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Num BinOpMult NameLoad Num BinOpMult NameLoad Num BinOpMult NameLoad Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Num AttributeLoad AttributeLoad NameLoad attr attr Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpSub AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr orelse Raise Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Num AttributeLoad AttributeLoad NameLoad attr attr Num Num Num Num Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Num AttributeLoad AttributeLoad NameLoad attr attr Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore NameLoad Assign NameStore NameLoad While NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad Num body Break AugAssignSub NameStore Num While CompareLt BinOpSub Call AttributeLoad NameLoad attr NameLoad Num body If BoolOpAnd CompareIn NameLoad AttributeLoad AttributeLoad NameLoad attr attr CompareEq SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad NameLoad body Return NameLoad Expr Call AttributeLoad NameLoad attr Num If CompareGt NameLoad Num body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num handlers ExceptHandler body Pass Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad keyword Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad keyword Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If CompareGt Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num body Assign AttributeStore AttributeLoad NameLoad attr attr BinOpMult ListLoad NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr While CompareIn NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Num Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad BinOpSub Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad BinOpSub Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Num decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Return ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr BinOpAdd NameLoad Num If UnaryOpNot NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Return NameLoad orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad BinOpAdd NameLoad Num Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad Num Num Num Num NameLoad body Expr Str If UnaryOpNot NameLoad body Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad If NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad Call AttributeLoad NameLoad attr Str Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str If NameLoad body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad If NameLoad body If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list
N/A N/A 
This is the API Reference for the DroneKit-Python API.

The main API is the :py:class:`Vehicle` class.
The code snippet below shows how to use :py:func:`connect` to obtain an instance of a connected vehicle:

.. code:: python

    from dronekit import connect

    # Connect to the Vehicle using "connection string" (in this case an address on network)
    vehicle = connect('127.0.0.1:14550', wait_ready=True)

:py:class:`Vehicle` provides access to vehicle *state* through python attributes
(e.g. :py:attr:`Vehicle.mode`)
and to settings/parameters though the :py:attr:`Vehicle.parameters` attribute.
Asynchronous notification on vehicle attribute changes is available by registering listeners/observers.

Vehicle movement is primarily controlled using the :py:attr:`Vehicle.armed` attribute and
:py:func:`Vehicle.simple_takeoff` and :py:attr:`Vehicle.simple_goto` in GUIDED mode.

Velocity-based movement and control over other vehicle features can be achieved using custom MAVLink messages
(:py:func:`Vehicle.send_mavlink`, :py:func:`Vehicle.message_factory`).

It is also possible to work with vehicle "missions" using the :py:attr:`Vehicle.commands` attribute, and run them in AUTO mode.

A number of other useful classes and methods are listed below.

----
 __future__ print_function N/A monotonic N/A time N/A socket N/A sys N/A os N/A platform N/A re dronekit.util errprinter pymavlink mavutil mavwp Queue Queue Empty threading Thread N/A types N/A threading N/A math N/A copy N/A collections pymavlink.dialects.v10 ardupilotmega APIException N/A Exception N/A N/A 
    Base class for DroneKit related exceptions.

    :param String message: Message string describing the exception
     __init__ N/A N/A self message N/A N/A N/A N/A N/A N/A super APIException self __init__ message N/A N/A Attitude N/A object N/A N/A 
    Attitude information.

    An object of this type is returned by :py:attr:`Vehicle.attitude`.

    .. _figure_attitude:

    .. figure:: http://upload.wikimedia.org/wikipedia/commons/thumb/c/c1/Yaw_Axis_Corrected.svg/500px-Yaw_Axis_Corrected.svg.png
        :width: 400px
        :alt: Diagram showing Pitch, Roll, Yaw
        :target: http://commons.wikimedia.org/wiki/File:Yaw_Axis_Corrected.svg

        Diagram showing Pitch, Roll, Yaw (`Creative Commons <http://commons.wikimedia.org/wiki/File:Yaw_Axis_Corrected.svg>`_)

    :param pitch: Pitch in radians
    :param yaw: Yaw in radians
    :param roll: Roll in radians
     __init__ N/A N/A self pitch yaw roll N/A N/A N/A N/A self pitch pitch N/A N/A self yaw yaw N/A N/A self roll roll N/A __str__ N/A N/A self N/A N/A N/A N/A Attitude:pitch=%s,yaw=%s,roll=%s N/A N/A self pitch N/A self yaw N/A self roll N/A N/A LocationGlobal N/A object N/A N/A 
    A global location object.

    The latitude and longitude are relative to the `WGS84 coordinate system <http://en.wikipedia.org/wiki/World_Geodetic_System>`_.
    The altitude is relative to mean sea-level (MSL).

    For example, a global location object with altitude 30 metres above sea level might be defined as:

    .. code:: python

       LocationGlobal(-34.364114, 149.166022, 30)

    .. todo:: FIXME: Location class - possibly add a vector3 representation.

    An object of this type is owned by :py:attr:`Vehicle.location`. See that class for information on
    reading and observing location in the global frame.

    :param lat: Latitude.
    :param lon: Longitude.
    :param alt: Altitude in meters relative to mean sea-level (MSL).
     __init__ N/A N/A self lat lon alt N/A None N/A N/A N/A self lat lat N/A N/A self lon lon N/A N/A self alt alt N/A N/A self local_frame None N/A N/A self global_frame None N/A __str__ N/A N/A self N/A N/A N/A N/A LocationGlobal:lat=%s,lon=%s,alt=%s N/A N/A self lat N/A self lon N/A self alt N/A N/A LocationGlobalRelative N/A object N/A N/A 
    A global location object, with attitude relative to home location altitude.

    The latitude and longitude are relative to the `WGS84 coordinate system <http://en.wikipedia.org/wiki/World_Geodetic_System>`_.
    The altitude is relative to the *home position*.

    For example, a ``LocationGlobalRelative`` object with an altitude of 30 metres above the home location might be defined as:

    .. code:: python

       LocationGlobalRelative(-34.364114, 149.166022, 30)

    .. todo:: FIXME: Location class - possibly add a vector3 representation.

    An object of this type is owned by :py:attr:`Vehicle.location`. See that class for information on
    reading and observing location in the global-relative frame.

    :param lat: Latitude.
    :param lon: Longitude.
    :param alt: Altitude in meters (relative to the home location).
     __init__ N/A N/A self lat lon alt N/A None N/A N/A N/A self lat lat N/A N/A self lon lon N/A N/A self alt alt N/A N/A self local_frame None N/A N/A self global_frame None N/A __str__ N/A N/A self N/A N/A N/A N/A LocationGlobalRelative:lat=%s,lon=%s,alt=%s N/A N/A self lat N/A self lon N/A self alt N/A N/A LocationLocal N/A object N/A N/A 
    A local location object.

    The north, east and down are relative to the EKF origin.  This is most likely the location where the vehicle was turned on.

    An object of this type is owned by :py:attr:`Vehicle.location`. See that class for information on
    reading and observing location in the local frame.

    :param north: Position north of the EKF origin in meters.
    :param east: Position east of the EKF origin in meters.
    :param down: Position down from the EKF origin in meters. (i.e. negative altitude in meters)
     __init__ N/A N/A self north east down N/A N/A N/A N/A self north north N/A N/A self east east N/A N/A self down down N/A __str__ N/A N/A self N/A N/A N/A N/A LocationLocal:north=%s,east=%s,down=%s N/A N/A self north N/A self east N/A self down N/A N/A GPSInfo N/A object N/A N/A 
    Standard information about GPS.

    If there is no GPS lock the parameters are set to ``None``.

    :param Int eph: GPS horizontal dilution of position (HDOP).
    :param Int epv: GPS vertical dilution of position (VDOP).
    :param Int fix_type: 0-1: no fix, 2: 2D fix, 3: 3D fix
    :param Int satellites_visible: Number of satellites visible.

    .. todo:: FIXME: GPSInfo class - possibly normalize eph/epv?  report fix type as string?
     __init__ N/A N/A self eph epv fix_type satellites_visible N/A N/A N/A N/A self eph eph N/A N/A self epv epv N/A N/A self fix_type fix_type N/A N/A self satellites_visible satellites_visible N/A __str__ N/A N/A self N/A N/A N/A N/A GPSInfo:fix=%s,num_sat=%s N/A N/A self fix_type N/A self satellites_visible N/A N/A Battery N/A object N/A N/A 
    System battery information.

    An object of this type is returned by :py:attr:`Vehicle.battery`.

    :param voltage: Battery voltage in millivolts.
    :param current: Battery current, in 10 * milliamperes. ``None`` if the autopilot does not support current measurement.
    :param level: Remaining battery energy. ``None`` if the autopilot cannot estimate the remaining battery.
     __init__ N/A N/A self voltage current level N/A N/A N/A N/A self voltage N/A voltage 1000.0 N/A N/A current -1 N/A N/A N/A self current None N/A N/A N/A self current N/A current 100.0 N/A N/A level -1 N/A N/A N/A self level None N/A N/A N/A self level level N/A __str__ N/A N/A self N/A N/A N/A N/A N/A Battery:voltage={},current={},level={} format N/A self voltage N/A self current N/A self level N/A N/A Rangefinder N/A object N/A N/A 
    Rangefinder readings.

    An object of this type is returned by :py:attr:`Vehicle.rangefinder`.

    :param distance: Distance (metres). ``None`` if the vehicle doesn't have a rangefinder.
    :param voltage: Voltage (volts). ``None`` if the vehicle doesn't have a rangefinder.
     __init__ N/A N/A self distance voltage N/A N/A N/A N/A self distance distance N/A N/A self voltage voltage N/A __str__ N/A N/A self N/A N/A N/A N/A N/A Rangefinder: distance={}, voltage={} format N/A self distance N/A self voltage N/A N/A Version N/A object N/A N/A 
    Autopilot version and type.

    An object of this type is returned by :py:attr:`Vehicle.version`.

    The version number can be read in a few different formats. To get it in a human-readable
    format, just print `vehicle.version`.  This might print something like "APM:Copter-3.3.2-rc4".

    .. versionadded:: 2.0.3

    .. py:attribute:: major

        Major version number (integer).

    .. py:attribute::minor

        Minor version number (integer).

    .. py:attribute:: patch

        Patch version number (integer).

    .. py:attribute:: release

        Release type (integer). See the enum `FIRMWARE_VERSION_TYPE <http://mavlink.org/messages/common#http://mavlink.org/messages/common#FIRMWARE_VERSION_TYPE_DEV>`_.

        This is a composite of the product release cycle stage (rc, beta etc) and the version in that cycle - e.g. 23.

     __init__ N/A N/A self raw_version autopilot_type vehicle_type N/A N/A N/A N/A self autopilot_type autopilot_type N/A N/A self vehicle_type vehicle_type N/A N/A self raw_version raw_version N/A N/A raw_version None N/A N/A N/A self major None N/A N/A self minor None N/A N/A self patch None N/A N/A self release None N/A N/A N/A self major N/A N/A raw_version 24 255 N/A N/A self minor N/A N/A raw_version 16 255 N/A N/A self patch N/A N/A raw_version 8 255 N/A N/A self release N/A raw_version 255 N/A is_stable N/A N/A self N/A N/A N/A 
        Returns True if the autopilot reports that the current firmware is a stable
        release (not a pre-release or development version).
         N/A N/A N/A self release 255 N/A release_version N/A N/A self N/A N/A N/A 
        Returns the version within the release type (an integer).
        This method returns "23" for Copter-3.3rc23.
         N/A N/A N/A self release None N/A N/A None N/A N/A N/A self release 255 N/A N/A 0 N/A N/A N/A self release 64 N/A release_type N/A N/A self N/A N/A N/A 
        Returns text describing the release type e.g. "alpha", "stable" etc.
         N/A N/A N/A self release None N/A N/A None N/A types N/A dev alpha beta rc N/A N/A types N/A N/A N/A self release 64 N/A __str__ N/A N/A self N/A N/A N/A prefix N/A N/A N/A self autopilot_type N/A N/A mavutil mavlink MAV_AUTOPILOT_ARDUPILOTMEGA N/A N/A prefix APM: N/A N/A N/A N/A self autopilot_type N/A N/A mavutil mavlink MAV_AUTOPILOT_PX4 N/A N/A prefix PX4 N/A N/A prefix UnknownAutoPilot N/A N/A N/A self vehicle_type N/A N/A mavutil mavlink MAV_TYPE_QUADROTOR N/A N/A prefix Copter- N/A N/A N/A N/A self vehicle_type N/A N/A mavutil mavlink MAV_TYPE_FIXED_WING N/A N/A prefix Plane- N/A N/A N/A N/A self vehicle_type N/A N/A mavutil mavlink MAV_TYPE_GROUND_ROVER N/A N/A prefix Rover- N/A N/A prefix N/A UnknownVehicleType%d- N/A self vehicle_type N/A N/A N/A N/A self release_type None N/A N/A release_type UnknownReleaseType N/A N/A N/A N/A self is_stable N/A N/A release_type N/A N/A release_type N/A N/A - N/A str N/A N/A self release_type N/A str N/A N/A self release_version N/A N/A N/A prefix N/A %s.%s.%s N/A N/A self major N/A self minor N/A self patch release_type N/A N/A Capabilities N/A N/A N/A 
    Autopilot capabilities (supported message types and functionality).

    An object of this type is returned by :py:attr:`Vehicle.capabilities`.

    See the enum
    `MAV_PROTOCOL_CAPABILITY <http://mavlink.org/messages/common#MAV_PROTOCOL_CAPABILITY_MISSION_FLOAT>`_.

    .. versionadded:: 2.0.3


    .. py:attribute:: mission_float

        Autopilot supports MISSION float message type (Boolean).

    .. py:attribute:: param_float

        Autopilot supports the PARAM float message type (Boolean).

    .. py:attribute:: mission_int

        Autopilot supports MISSION_INT scaled integer message type (Boolean).

    .. py:attribute:: command_int

        Autopilot supports COMMAND_INT scaled integer message type (Boolean).

    .. py:attribute:: param_union

        Autopilot supports the PARAM_UNION message type (Boolean).

    .. py:attribute:: ftp

        Autopilot supports ftp for file transfers (Boolean).

    .. py:attribute:: set_attitude_target

        Autopilot supports commanding attitude offboard (Boolean).

    .. py:attribute:: set_attitude_target_local_ned

        Autopilot supports commanding position and velocity targets in local NED frame (Boolean).

    .. py:attribute:: set_altitude_target_global_int

        Autopilot supports commanding position and velocity targets in global scaled integers (Boolean).

    .. py:attribute:: terrain

        Autopilot supports terrain protocol / data handling (Boolean).

    .. py:attribute:: set_actuator_target

        Autopilot supports direct actuator control (Boolean).

    .. py:attribute:: flight_termination

        Autopilot supports the flight termination command (Boolean).

    .. py:attribute:: compass_calibration

        Autopilot supports onboard compass calibration (Boolean).
     __init__ N/A N/A self capabilities N/A N/A N/A N/A self mission_float N/A N/A N/A capabilities 0 1 1 N/A N/A self param_float N/A N/A N/A capabilities 1 1 1 N/A N/A self mission_int N/A N/A N/A capabilities 2 1 1 N/A N/A self command_int N/A N/A N/A capabilities 3 1 1 N/A N/A self param_union N/A N/A N/A capabilities 4 1 1 N/A N/A self ftp N/A N/A N/A capabilities 5 1 1 N/A N/A self set_attitude_target N/A N/A N/A capabilities 6 1 1 N/A N/A self set_attitude_target_local_ned N/A N/A N/A capabilities 7 1 1 N/A N/A self set_altitude_target_global_int N/A N/A N/A capabilities 8 1 1 N/A N/A self terrain N/A N/A N/A capabilities 9 1 1 N/A N/A self set_actuator_target N/A N/A N/A capabilities 10 1 1 N/A N/A self flight_termination N/A N/A N/A capabilities 11 1 1 N/A N/A self compass_calibration N/A N/A N/A capabilities 12 1 1 N/A N/A VehicleMode N/A object N/A N/A 
    This object is used to get and set the current "flight mode".

    The flight mode determines the behaviour of the vehicle and what commands it can obey.
    The recommended flight modes for *DroneKit-Python* apps depend on the vehicle type:

    * Copter apps should use ``AUTO`` mode for "normal" waypoint missions and ``GUIDED`` mode otherwise.
    * Plane and Rover apps should use the ``AUTO`` mode in all cases, re-writing the mission commands if "dynamic"
      behaviour is required (they support only a limited subset of commands in ``GUIDED`` mode).
    * Some modes like ``RETURN_TO_LAUNCH`` can be used on all platforms. Care should be taken
      when using manual modes as these may require remote control input from the user.

    The available set of supported flight modes is vehicle-specific (see
    `Copter Modes <http://copter.ardupilot.com/wiki/flying-arducopter/flight-modes/>`_,
    `Plane Modes <http://plane.ardupilot.com/wiki/flying/flight-modes/>`_,
    `Rover Modes <http://rover.ardupilot.com/wiki/configuration-2/#mode_meanings>`_). If an unsupported mode is set the script
    will raise a ``KeyError`` exception.

    The :py:attr:`Vehicle.mode` attribute can be queried for the current mode.
    The code snippet below shows how to observe changes to the mode and then read the value:

    .. code:: python

        #Callback definition for mode observer
        def mode_callback(self, attr_name):
            print "Vehicle Mode", self.mode

        #Add observer callback for attribute `mode`
        vehicle.add_attribute_listener('mode', mode_callback)

    The code snippet below shows how to change the vehicle mode to AUTO:

    .. code:: python

        # Set the vehicle into auto mode
        vehicle.mode = VehicleMode("AUTO")

    For more information on getting/setting/observing the :py:attr:`Vehicle.mode`
    (and other attributes) see the :ref:`attributes guide <vehicle_state_attributes>`.

    .. py:attribute:: name

        The mode name, as a ``string``.
     __init__ N/A N/A self name N/A N/A N/A N/A self name name N/A __str__ N/A N/A self N/A N/A N/A N/A VehicleMode:%s N/A self name N/A __eq__ N/A N/A self other N/A N/A N/A N/A N/A self name other N/A __ne__ N/A N/A self other N/A N/A N/A N/A N/A self name other N/A N/A SystemStatus N/A object N/A N/A 
    This object is used to get and set the current "system status".

    An object of this type is returned by :py:attr:`Vehicle.system_status`.

    .. py:attribute:: state

        The system state, as a ``string``.
     __init__ N/A N/A self state N/A N/A N/A N/A self state state N/A __str__ N/A N/A self N/A N/A N/A N/A SystemStatus:%s N/A self state N/A __eq__ N/A N/A self other N/A N/A N/A N/A N/A self state other N/A __ne__ N/A N/A self other N/A N/A N/A N/A N/A self state other N/A N/A HasObservers N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A self _attribute_listeners N/A N/A N/A self _attribute_cache N/A N/A add_attribute_listener N/A N/A self attr_name observer N/A N/A N/A 
        Add an attribute listener callback.

        The callback function (``observer``) is invoked differently depending on the *type of attribute*.
        Attributes that represent sensor values or which are used to monitor connection status are updated
        whenever a message is received from the vehicle. Attributes which reflect vehicle "state" are
        only updated when their values change (for example :py:attr:`Vehicle.system_status`,
        :py:attr:`Vehicle.armed`, and :py:attr:`Vehicle.mode`).

        The callback can be removed using :py:func:`remove_attribute_listener`.

        .. note::

            The :py:func:`on_attribute` decorator performs the same operation as this method, but with
            a more elegant syntax. Use ``add_attribute_listener`` by preference if you will need to remove
            the observer.

        The argument list for the callback is ``observer(object, attr_name, attribute_value)``:

        * ``self`` - the associated :py:class:`Vehicle`. This may be compared to a global vehicle handle
          to implement vehicle-specific callback handling (if needed).
        * ``attr_name`` - the attribute name. This can be used to infer which attribute has triggered
          if the same callback is used for watching several attributes.
        * ``value`` - the attribute value (so you don't need to re-query the vehicle object).

        The example below shows how to get callbacks for (global) location changes:

        .. code:: python

            #Callback to print the location in global frame
            def location_callback(self, attr_name, msg):
                print "Location (Global): ", msg

            #Add observer for the vehicle's current location
            vehicle.add_attribute_listener('global_frame', location_callback)

        See :ref:`vehicle_state_observe_attributes` for more information.

        :param String attr_name: The name of the attribute to watch (or '*' to watch all attributes).
        :param observer: The callback to invoke when a change in the attribute is detected.

         N/A l N/A N/A N/A self _attribute_listeners get attr_name N/A N/A l None N/A N/A l N/A N/A N/A N/A self _attribute_listeners N/A attr_name l N/A N/A N/A observer l N/A N/A N/A N/A l append observer N/A remove_attribute_listener N/A N/A self attr_name observer N/A N/A N/A 
        Remove an attribute listener (observer) that was previously added using :py:func:`add_attribute_listener`.

        For example, the following line would remove a previously added vehicle 'global_frame'
        observer called ``location_callback``:

        .. code:: python

            vehicle.remove_attribute_listener('global_frame', location_callback)

        See :ref:`vehicle_state_observe_attributes` for more information.

        :param String attr_name: The attribute name that is to have an observer removed (or '*' to remove an 'all attribute' observer).
        :param observer: The callback function to remove.

         N/A l N/A N/A N/A self _attribute_listeners get attr_name N/A N/A l None N/A N/A N/A N/A l remove observer N/A N/A N/A len l 0 N/A N/A N/A N/A self _attribute_listeners N/A attr_name N/A notify_attribute_listeners N/A N/A self attr_name value cache N/A False N/A N/A 
        This method is used to update attribute observers when the named attribute is updated.

        You should call it in your message listeners after updating an attribute with
        information from a vehicle message.

        By default the value of ``cache`` is ``False`` and every update from the vehicle is sent to listeners
        (whether or not the attribute has changed).  This is appropriate for attributes which represent sensor
        or heartbeat-type monitoring.

        Set ``cache=True`` to update listeners only when the value actually changes (cache the previous
        attribute value). This should be used where clients will only ever need to know the value when it has
        changed. For example, this setting has been used for notifying :py:attr:`mode` changes.

        See :ref:`example_create_attribute` for more information.

        :param String attr_name: The name of the attribute that has been updated.
        :param value: The current value of the attribute that has been updated.
        :param Boolean cache: Set ``True`` to only notify observers when the attribute value changes.
         N/A cache N/A N/A N/A N/A attr_name N/A self _attribute_cache N/A N/A N/A self _attribute_cache N/A attr_name value N/A N/A N/A N/A N/A self _attribute_cache N/A attr_name value N/A fn N/A N/A N/A self _attribute_listeners get attr_name N/A N/A N/A N/A N/A N/A fn self attr_name value N/A N/A N/A Exception N/A e N/A N/A N/A errprinter N/A >>> Exception in attribute handler for %s attr_name N/A N/A errprinter N/A >>>  N/A str e N/A fn N/A N/A N/A self _attribute_listeners get * N/A N/A N/A N/A N/A N/A fn self attr_name value N/A N/A N/A Exception N/A e N/A N/A N/A errprinter N/A >>> Exception in attribute handler for %s attr_name N/A N/A errprinter N/A >>>  N/A str e N/A on_attribute N/A N/A self name N/A N/A N/A 
        Decorator for attribute listeners.

        The decorated function (``observer``) is invoked differently depending on the *type of attribute*.
        Attributes that represent sensor values or which are used to monitor connection status are updated
        whenever a message is received from the vehicle. Attributes which reflect vehicle "state" are
        only updated when their values change (for example :py:func:`Vehicle.system_status`,
        :py:attr:`Vehicle.armed`, and :py:attr:`Vehicle.mode`).

        The argument list for the callback is ``observer(object, attr_name, attribute_value)``

        * ``self`` - the associated :py:class:`Vehicle`. This may be compared to a global vehicle handle
          to implement vehicle-specific callback handling (if needed).
        * ``attr_name`` - the attribute name. This can be used to infer which attribute has triggered
          if the same callback is used for watching several attributes.
        * ``msg`` - the attribute value (so you don't need to re-query the vehicle object).

        .. note::

            There is no way to remove an attribute listener added with this decorator. Use
            :py:func:`add_attribute_listener` if you need to be able to remove
            the :py:func:`attribute listener <remove_attribute_listener>`.

        The code fragment below shows how you can create a listener for the attitude attribute.

        .. code:: python

            @vehicle.on_attribute('attitude')
            def attitude_listener(self, name, msg):
                print '%s attribute is: %s' % (name, msg)

        See :ref:`vehicle_state_observe_attributes` for more information.

        :param String attr_name: The name of the attribute to watch (or '*' to watch all attributes).
        :param observer: The callback to invoke when a change in the attribute is detected.
         decorator N/A N/A fn N/A N/A N/A N/A isinstance name list N/A N/A n name N/A N/A N/A N/A self add_attribute_listener n fn N/A N/A N/A N/A self add_attribute_listener name fn N/A N/A decorator N/A N/A ChannelsOverride N/A dict N/A N/A 
    A dictionary class for managing Vehicle channel overrides.

    Channels can be read, written, or cleared by index or using a dictionary syntax.
    To clear a value, set it to ``None`` or use ``del`` on the item.

    An object of this type is returned by :py:attr:`Vehicle.channels.overrides <Channels.overrides>`.

    For more information and examples see :ref:`example_channel_overrides`.
     __init__ N/A N/A self vehicle N/A N/A N/A N/A self _vehicle vehicle N/A N/A self _count 8 N/A N/A self _active True N/A __getitem__ N/A N/A self key N/A N/A N/A N/A N/A dict __getitem__ self N/A str key N/A __setitem__ N/A N/A self key value N/A N/A N/A N/A N/A N/A N/A int key 0 N/A N/A int key N/A self _count N/A N/A N/A Exception N/A Invalid channel index %s key N/A N/A value N/A N/A N/A N/A N/A N/A dict __delitem__ self N/A str key N/A N/A N/A N/A N/A N/A N/A N/A dict __setitem__ self N/A str key value N/A N/A N/A self _send N/A __delitem__ N/A N/A self key N/A N/A N/A N/A N/A dict __delitem__ self N/A str key N/A N/A N/A self _send N/A __len__ N/A N/A self N/A N/A N/A N/A self _count N/A _send N/A N/A self N/A N/A N/A N/A self _active N/A N/A overrides N/A N/A 0 8 N/A N/A k v N/A N/A self iteritems N/A N/A N/A overrides N/A N/A N/A int k 1 v N/A N/A N/A N/A N/A N/A self _vehicle _master mav rc_channels_override_send 0 0 overrides N/A N/A Channels N/A dict N/A N/A 
    A dictionary class for managing RC channel information associated with a :py:class:`Vehicle`.

    An object of this type is accessed through :py:attr:`Vehicle.channels`. This object also stores
    the current vehicle channel overrides through its :py:attr:`overrides` attribute.

    For more information and examples see :ref:`example_channel_overrides`.
     __init__ N/A N/A self vehicle count N/A N/A N/A N/A self _vehicle vehicle N/A N/A self _count count N/A N/A self _overrides N/A ChannelsOverride vehicle N/A N/A self _readonly False N/A k N/A range 0 count N/A N/A N/A self N/A N/A k 1 None N/A N/A self _readonly True N/A count N/A N/A self N/A N/A N/A 
        The number of channels defined in the dictionary (currently 8).
         N/A N/A self _count N/A property __getitem__ N/A N/A self key N/A N/A N/A N/A N/A dict __getitem__ self N/A str key N/A __setitem__ N/A N/A self key value N/A N/A N/A N/A self _readonly N/A N/A N/A TypeError __setitem__ is not supported on Channels object N/A N/A N/A dict __setitem__ self N/A str key value N/A __len__ N/A N/A self N/A N/A N/A N/A self _count N/A _update_channel N/A N/A self channel value N/A N/A N/A channel N/A int channel N/A N/A self _readonly False N/A N/A self N/A channel value N/A N/A self _readonly True N/A N/A self _count N/A max N/A self _count channel N/A overrides N/A N/A self N/A N/A N/A 
        Attribute to read, set and clear channel overrides (also known as "rc overrides")
        associated with a :py:class:`Vehicle` (via :py:class:`Vehicle.channels`). This is an
        object of type :py:class:`ChannelsOverride`.

        For more information and examples see :ref:`example_channel_overrides`.

        To set channel overrides:

        .. code:: python

            # Set and clear overrids using dictionary syntax (clear by setting override to none)
            vehicle.channels.overrides = {'5':None, '6':None,'3':500}

            # You can also set and clear overrides using indexing syntax
            vehicle.channels.overrides['2'] = 200
            vehicle.channels.overrides['2'] = None

            # Clear using 'del'
            del vehicle.channels.overrides['3']

            # Clear all overrides by setting an empty dictionary
            vehicle.channels.overrides = {}

        Read the channel overrides either as a dictionary or by index. Note that you'll get
        a ``KeyError`` exception if you read a channel override that has not been set.

        .. code:: python

            # Get all channel overrides
            print " Channel overrides: %s" % vehicle.channels.overrides
            # Print just one channel override
            print " Ch2 override: %s" % vehicle.channels.overrides['2']
         N/A N/A self _overrides N/A property overrides N/A N/A self newch N/A N/A N/A N/A N/A self _overrides _active False N/A N/A N/A N/A self _overrides clear N/A N/A k v N/A N/A newch iteritems N/A N/A v N/A N/A N/A N/A self _overrides N/A N/A str k v N/A N/A N/A N/A N/A N/A self _overrides N/A N/A str k N/A N/A N/A N/A N/A N/A N/A self _overrides _active True N/A N/A N/A N/A self _overrides _send N/A N/A overrides setter N/A Locations N/A HasObservers N/A N/A 
    An object for holding location information in global, global relative and local frames.

    :py:class:`Vehicle` owns an object of this type. See :py:attr:`Vehicle.location` for information on
    reading and observing location in the different frames.

    The different frames are accessed through the members, which are created with this object.
    They can be read, and are observable.
     __init__ N/A N/A self vehicle N/A N/A N/A N/A N/A N/A super Locations self __init__ N/A N/A self _lat None N/A N/A self _lon None N/A N/A self _alt None N/A N/A self _relative_alt None listener N/A N/A vehicle name m N/A N/A N/A N/A N/A self _lat N/A self _lon N/A N/A N/A m lat 10000000.0 N/A N/A m lon 10000000.0 N/A N/A self _relative_alt N/A N/A m relative_alt 1000.0 N/A N/A N/A self notify_attribute_listeners global_relative_frame N/A self global_relative_frame N/A N/A N/A vehicle notify_attribute_listeners location.global_relative_frame N/A N/A vehicle location global_relative_frame N/A N/A N/A N/A self _alt None N/A N/A m alt 0 N/A N/A N/A self _alt N/A N/A m alt 1000.0 N/A N/A N/A self notify_attribute_listeners global_frame N/A self global_frame N/A N/A N/A vehicle notify_attribute_listeners location.global_frame N/A N/A vehicle location global_frame N/A N/A N/A vehicle notify_attribute_listeners location N/A vehicle location N/A N/A N/A vehicle on_message GLOBAL_POSITION_INT N/A N/A self _north None N/A N/A self _east None N/A N/A self _down None listener N/A N/A vehicle name m N/A N/A N/A N/A self _north N/A m x N/A N/A self _east N/A m y N/A N/A self _down N/A m z N/A N/A N/A self notify_attribute_listeners local_frame N/A self local_frame N/A N/A N/A vehicle notify_attribute_listeners location.local_frame N/A N/A vehicle location local_frame N/A N/A N/A vehicle notify_attribute_listeners location N/A vehicle location N/A N/A N/A vehicle on_message LOCAL_POSITION_NED N/A local_frame N/A N/A self N/A N/A N/A 
        Location in local NED frame (a :py:class:`LocationGlobalRelative`).

        This is accessed through the :py:attr:`Vehicle.location` attribute:

        .. code-block:: python

            print "Local Location: %s" % vehicle.location.local_frame

        This location will not start to update until the vehicle is armed.
         N/A N/A LocationLocal N/A self _north N/A self _east N/A self _down N/A property global_frame N/A N/A self N/A N/A N/A 
        Location in global frame (a :py:class:`LocationGlobal`).

        The latitude and longitude are relative to the
        `WGS84 coordinate system <http://en.wikipedia.org/wiki/World_Geodetic_System>`_.
        The altitude is relative to mean sea-level (MSL).

        This is accessed through the :py:attr:`Vehicle.location` attribute:

        .. code-block:: python

            print "Global Location: %s" % vehicle.location.global_frame
            print "Sea level altitude is: %s" % vehicle.location.global_frame.alt

        Its ``lat`` and ``lon`` attributes are populated shortly after GPS becomes available.
        The ``alt`` can take several seconds longer to populate (from the barometer).
        Listeners are not notified of changes to this attribute until it has fully populated.

        To watch for changes you can use :py:func:`Vehicle.on_attribute` decorator or
        :py:func:`add_attribute_listener` (decorator approach shown below):

        .. code-block:: python

            @vehicle.on_attribute('location.global_frame')
            def listener(self, attr_name, value):
                print " Global: %s" % value

            #Alternatively, use decorator: ``@vehicle.location.on_attribute('global_frame')``.
         N/A N/A LocationGlobal N/A self _lat N/A self _lon N/A self _alt N/A property global_relative_frame N/A N/A self N/A N/A N/A 
        Location in global frame, with altitude relative to the home location
        (a :py:class:`LocationGlobalRelative`).

        The latitude and longitude are relative to the
        `WGS84 coordinate system <http://en.wikipedia.org/wiki/World_Geodetic_System>`_.
        The altitude is relative to :py:attr:`home location <Vehicle.home_location>`.

        This is accessed through the :py:attr:`Vehicle.location` attribute:

        .. code-block:: python

            print "Global Location (relative altitude): %s" % vehicle.location.global_relative_frame
            print "Altitude relative to home_location: %s" % vehicle.location.global_relative_frame.alt
         N/A N/A LocationGlobalRelative N/A self _lat N/A self _lon N/A self _relative_alt N/A property N/A Vehicle N/A HasObservers N/A N/A 
    The main vehicle API.

    Vehicle state is exposed through 'attributes' (e.g. :py:attr:`heading`). All attributes can be
    read, and some are also settable
    (:py:attr:`mode`, :py:attr:`armed` and :py:attr:`home_location`).

    Attributes can also be asynchronously monitored for changes by registering listener callback
    functions.

    Vehicle "settings" (parameters) are read/set using the :py:attr:`parameters` attribute.
    Parameters can be iterated and are also individually observable.

    Vehicle movement is primarily controlled using the :py:attr:`armed` attribute and
    :py:func:`simple_takeoff` and :py:func:`simple_goto` in GUIDED mode.

    It is also possible to work with vehicle "missions" using the :py:attr:`commands` attribute,
    and run them in AUTO mode.

    The guide contains more detailed information on the different ways you can use
    the ``Vehicle`` class:

    - :doc:`guide/vehicle_state_and_parameters`
    - :doc:`guide/copter/guided_mode`
    - :doc:`guide/auto_mode`


    .. note::

        This class currently exposes just the attributes that are most commonly used by all
        vehicle types. if you need to add additional attributes then subclass ``Vehicle``
        as demonstrated in :doc:`examples/create_attribute`.

        Please then :doc:`contribute <contributing/contributions_api>` your additions back
        to the project!
     __init__ N/A N/A self handler N/A N/A N/A N/A N/A N/A super Vehicle self __init__ N/A N/A self _handler handler N/A N/A self _master N/A handler master N/A N/A self _ready_attrs N/A set N/A commands N/A N/A self _default_ready_attrs N/A parameters gps_0 armed mode attitude listener N/A N/A _ name value N/A N/A N/A N/A N/A N/A self _ready_attrs add name N/A N/A N/A self on_attribute * N/A N/A self _message_listeners N/A dict listener N/A N/A _ msg N/A N/A N/A N/A N/A self notify_message_listeners N/A N/A msg get_type msg N/A N/A handler forward_message N/A N/A self _location N/A Locations self N/A N/A self _vx None N/A N/A self _vy None N/A N/A self _vz None listener N/A N/A self name m N/A N/A N/A N/A N/A self _vx N/A self _vy N/A self _vz N/A N/A N/A m vx 100.0 N/A N/A m vy 100.0 N/A N/A m vz 100.0 N/A N/A N/A self notify_attribute_listeners velocity N/A self velocity N/A N/A N/A self on_message GLOBAL_POSITION_INT N/A N/A self _pitch None N/A N/A self _yaw None N/A N/A self _roll None N/A N/A self _pitchspeed None N/A N/A self _yawspeed None N/A N/A self _rollspeed None listener N/A N/A self name m N/A N/A N/A N/A self _pitch N/A m pitch N/A N/A self _yaw N/A m yaw N/A N/A self _roll N/A m roll N/A N/A self _pitchspeed N/A m pitchspeed N/A N/A self _yawspeed N/A m yawspeed N/A N/A self _rollspeed N/A m rollspeed N/A N/A N/A self notify_attribute_listeners attitude N/A self attitude N/A N/A N/A self on_message ATTITUDE N/A N/A self _heading None N/A N/A self _airspeed None N/A N/A self _groundspeed None listener N/A N/A self name m N/A N/A N/A N/A self _heading N/A m heading N/A N/A N/A self notify_attribute_listeners heading N/A self heading N/A N/A self _airspeed N/A m airspeed N/A N/A N/A self notify_attribute_listeners airspeed N/A self airspeed N/A N/A self _groundspeed N/A m groundspeed N/A N/A N/A self notify_attribute_listeners groundspeed N/A self groundspeed N/A N/A N/A self on_message VFR_HUD N/A N/A self _rngfnd_distance None N/A N/A self _rngfnd_voltage None listener N/A N/A self name m N/A N/A N/A N/A self _rngfnd_distance N/A m distance N/A N/A self _rngfnd_voltage N/A m voltage N/A N/A N/A self notify_attribute_listeners rangefinder N/A self rangefinder N/A N/A N/A self on_message RANGEFINDER N/A N/A self _mount_pitch None N/A N/A self _mount_yaw None N/A N/A self _mount_roll None listener N/A N/A self name m N/A N/A N/A N/A self _mount_pitch N/A N/A m pointing_a 100.0 N/A N/A self _mount_roll N/A N/A m pointing_b 100.0 N/A N/A self _mount_yaw N/A N/A m pointing_c 100.0 N/A N/A N/A self notify_attribute_listeners mount N/A self mount_status N/A N/A N/A self on_message MOUNT_STATUS N/A N/A self _capabilities None N/A N/A self _raw_version None N/A N/A self _autopilot_version_msg_count 0 listener N/A N/A vehicle name m N/A N/A N/A N/A self _capabilities N/A m capabilities N/A N/A self _raw_version N/A m flight_sw_version N/A N/A self _autopilot_version_msg_count 1 N/A N/A N/A N/A self _capabilities 0 N/A N/A self _autopilot_version_msg_count 5 N/A N/A N/A N/A vehicle remove_message_listener HEARTBEAT N/A self send_capabilties_request N/A N/A N/A self notify_attribute_listeners autopilot_version N/A self _raw_version N/A N/A N/A self on_message AUTOPILOT_VERSION N/A N/A self _gimbal N/A Gimbal self N/A N/A self _channels N/A Channels self 8 listener N/A N/A self name m N/A N/A set_rc N/A N/A chnum v N/A N/A N/A Private utility for handling rc channel messages N/A N/A N/A N/A self _channels _update_channel N/A str N/A N/A N/A m port 8 chnum v N/A N/A N/A set_rc 1 N/A m chan1_raw N/A N/A set_rc 2 N/A m chan2_raw N/A N/A set_rc 3 N/A m chan3_raw N/A N/A set_rc 4 N/A m chan4_raw N/A N/A set_rc 5 N/A m chan5_raw N/A N/A set_rc 6 N/A m chan6_raw N/A N/A set_rc 7 N/A m chan7_raw N/A N/A set_rc 8 N/A m chan8_raw N/A N/A N/A self notify_attribute_listeners channels N/A self channels N/A N/A N/A self on_message RC_CHANNELS_RAW N/A N/A self _voltage None N/A N/A self _current None N/A N/A self _level None listener N/A N/A self name m N/A N/A N/A N/A self _voltage N/A m voltage_battery N/A N/A self _current N/A m current_battery N/A N/A self _level N/A m battery_remaining N/A N/A N/A self notify_attribute_listeners battery N/A self battery N/A N/A N/A self on_message SYS_STATUS N/A N/A self _eph None N/A N/A self _epv None N/A N/A self _satellites_visible None N/A N/A self _fix_type None listener N/A N/A self name m N/A N/A N/A N/A self _eph N/A m eph N/A N/A self _epv N/A m epv N/A N/A self _satellites_visible N/A m satellites_visible N/A N/A self _fix_type N/A m fix_type N/A N/A N/A self notify_attribute_listeners gps_0 N/A self gps_0 N/A N/A N/A self on_message GPS_RAW_INT N/A N/A self _current_waypoint 0 listener N/A N/A self name m N/A N/A N/A N/A self _current_waypoint N/A m seq N/A N/A N/A self on_message N/A WAYPOINT_CURRENT MISSION_CURRENT N/A N/A self _ekf_poshorizabs False N/A N/A self _ekf_constposmode False N/A N/A self _ekf_predposhorizabs False listener N/A N/A self name m N/A N/A N/A N/A self _ekf_poshorizabs N/A N/A N/A m flags N/A ardupilotmega EKF_POS_HORIZ_ABS 0 N/A N/A self _ekf_constposmode N/A N/A N/A m flags N/A ardupilotmega EKF_CONST_POS_MODE 0 N/A N/A self _ekf_predposhorizabs N/A N/A N/A m flags N/A ardupilotmega EKF_PRED_POS_HORIZ_ABS 0 N/A N/A N/A self notify_attribute_listeners ekf_ok N/A self ekf_ok cache True N/A N/A N/A self on_message EKF_STATUS_REPORT N/A N/A self _flightmode AUTO N/A N/A self _armed False N/A N/A self _system_status None N/A N/A self _autopilot_type None N/A N/A self _vehicle_type None listener N/A N/A self name m N/A N/A N/A N/A self _armed N/A N/A N/A m base_mode N/A N/A mavutil mavlink MAV_MODE_FLAG_SAFETY_ARMED 0 N/A N/A N/A self notify_attribute_listeners armed N/A self armed cache True N/A N/A self _autopilot_type N/A m autopilot N/A N/A self _vehicle_type N/A m type N/A N/A N/A N/A self _is_mode_available N/A m custom_mode False N/A N/A N/A APIException N/A mode %s not available on mavlink definition N/A m custom_mode N/A N/A self _flightmode N/A N/A self _mode_mapping_bynumber N/A N/A m custom_mode N/A N/A N/A self notify_attribute_listeners mode N/A self mode cache True N/A N/A self _system_status N/A m system_status N/A N/A N/A self notify_attribute_listeners system_status N/A self system_status cache True N/A N/A N/A self on_message HEARTBEAT N/A N/A self _home_location None N/A N/A self _wploader N/A N/A mavwp MAVWPLoader N/A N/A self _wp_loaded True N/A N/A self _wp_uploaded None N/A N/A self _wpts_dirty False N/A N/A self _commands N/A CommandSequence self listener N/A N/A self name msg N/A N/A N/A N/A N/A self _wp_loaded N/A N/A N/A N/A N/A self _wploader clear N/A N/A N/A self _wploader expected_count N/A msg count N/A N/A N/A N/A self _master waypoint_request_send 0 N/A N/A N/A self on_message N/A WAYPOINT_COUNT MISSION_COUNT listener N/A N/A self name msg N/A N/A N/A N/A N/A self _wp_loaded N/A N/A N/A N/A msg seq 0 N/A N/A N/A N/A N/A N/A msg x 0 N/A N/A msg y 0 N/A N/A msg z 0 N/A N/A N/A self _home_location N/A LocationGlobal N/A msg x N/A msg y N/A msg z N/A N/A N/A msg seq N/A N/A N/A self _wploader count N/A N/A N/A N/A N/A N/A msg seq N/A N/A N/A self _wploader count N/A N/A N/A N/A N/A N/A N/A self _wploader add msg N/A N/A N/A N/A msg seq 1 N/A N/A self _wploader expected_count N/A N/A N/A N/A N/A self _master waypoint_request_send N/A N/A msg seq 1 N/A N/A N/A self _wp_loaded True N/A N/A N/A self notify_attribute_listeners commands N/A self commands N/A N/A N/A self on_message N/A WAYPOINT MISSION_ITEM listener N/A N/A self name msg N/A N/A N/A N/A N/A self _wp_uploaded None N/A N/A wp N/A N/A N/A self _wploader wp N/A msg seq N/A N/A N/A handler fix_targets wp N/A N/A N/A N/A N/A self _master mav send wp N/A N/A N/A self _wp_uploaded N/A N/A msg seq True N/A N/A N/A self on_message N/A WAYPOINT_REQUEST MISSION_REQUEST N/A start_duration 0.2 N/A repeat_duration 1 N/A N/A self _params_count -1 N/A N/A self _params_set N/A N/A N/A self _params_loaded False N/A N/A self _params_start False N/A N/A self _params_map N/A N/A N/A self _params_last N/A N/A monotonic monotonic N/A N/A self _params_duration start_duration N/A N/A self _parameters N/A Parameters self listener N/A N/A _ N/A N/A N/A N/A N/A self _params_start N/A N/A N/A N/A N/A None N/A self _params_set N/A N/A self _params_loaded N/A N/A N/A self _params_loaded True N/A N/A N/A self notify_attribute_listeners parameters N/A self parameters N/A N/A N/A N/A self _params_loaded N/A N/A N/A N/A monotonic monotonic N/A self _params_last N/A self _params_duration N/A N/A c 0 N/A N/A i v N/A enumerate N/A self _params_set N/A N/A N/A v None N/A N/A N/A N/A N/A N/A self _master mav param_request_read_send 0 0 i N/A c 1 N/A N/A c 50 N/A N/A N/A N/A self _params_duration repeat_duration N/A N/A self _params_last N/A N/A monotonic monotonic N/A N/A handler forward_loop listener N/A N/A self name msg N/A N/A N/A N/A N/A self _params_count N/A msg param_count N/A N/A N/A self _params_loaded False N/A N/A self _params_start True N/A N/A self _params_count N/A msg param_count N/A N/A self _params_set N/A N/A None N/A msg param_count N/A N/A N/A N/A N/A N/A msg param_index N/A msg param_count msg N/A N/A N/A N/A N/A self _params_set N/A N/A msg param_index None N/A N/A N/A self _params_last N/A N/A monotonic monotonic N/A N/A self _params_duration start_duration N/A N/A N/A self _params_set N/A N/A msg param_index msg N/A N/A N/A self _params_map N/A N/A msg param_id N/A msg param_value N/A N/A N/A N/A self _parameters notify_attribute_listeners N/A msg param_id N/A msg param_value cache True N/A N/A N/A N/A traceback N/A N/A N/A traceback print_exc N/A N/A N/A self on_message N/A PARAM_VALUE N/A N/A self _heartbeat_started False N/A N/A self _heartbeat_lastsent 0 N/A N/A self _heartbeat_lastreceived 0 N/A N/A self _heartbeat_timeout False N/A N/A self _heartbeat_warning 5 N/A N/A self _heartbeat_error 30 N/A N/A self _heartbeat_system None listener N/A N/A _ N/A N/A N/A N/A N/A N/A N/A monotonic monotonic N/A self _heartbeat_lastsent 1 N/A N/A N/A N/A N/A N/A self _master mav heartbeat_send N/A N/A mavutil mavlink MAV_TYPE_GCS N/A N/A mavutil mavlink MAV_AUTOPILOT_INVALID 0 0 0 N/A N/A self _heartbeat_lastsent N/A N/A monotonic monotonic N/A N/A self _heartbeat_started N/A N/A N/A N/A self _heartbeat_error N/A N/A self _heartbeat_error 0 N/A N/A N/A N/A monotonic monotonic N/A self _heartbeat_lastreceived N/A self _heartbeat_error N/A N/A N/A APIException N/A No heartbeat in %s seconds, aborting. N/A self _heartbeat_error N/A N/A N/A N/A N/A N/A monotonic monotonic N/A self _heartbeat_lastreceived N/A self _heartbeat_warning N/A N/A N/A N/A self _heartbeat_timeout False N/A N/A N/A errprinter N/A >>> Link timeout, no heartbeat in last %s seconds N/A self _heartbeat_warning N/A N/A self _heartbeat_timeout True N/A N/A handler forward_loop listener N/A N/A self name msg N/A N/A N/A N/A self _heartbeat_system N/A N/A msg get_srcSystem N/A N/A self _heartbeat_lastreceived N/A N/A monotonic monotonic N/A N/A self _heartbeat_timeout N/A N/A N/A errprinter >>> ...link restored. N/A N/A self _heartbeat_timeout False N/A N/A N/A self on_message N/A HEARTBEAT N/A N/A self _last_heartbeat None listener N/A N/A _ N/A N/A N/A N/A self _heartbeat_lastreceived N/A N/A N/A self _last_heartbeat N/A N/A N/A monotonic monotonic N/A self _heartbeat_lastreceived N/A N/A N/A self notify_attribute_listeners last_heartbeat N/A self last_heartbeat N/A N/A handler forward_loop N/A last_heartbeat N/A N/A self N/A N/A N/A 
        Time since last MAVLink heartbeat was received (in seconds).

        The attribute can be used to monitor link activity and implement script-specific timeout handling.

        For example, to pause the script if no heartbeat is received for more than 1 second you might implement
        the following observer, and use ``pause_script`` in a program loop to wait until the link is recovered:

        .. code-block:: python

            pause_script=False

            @vehicle.on_attribute('last_heartbeat')
            def listener(self, attr_name, value):
                global pause_script
                if value > 1 and not pause_script:
                    print "Pausing script due to bad link"
                    pause_script=True;
                if value < 1 and pause_script:
                    pause_script=False;
                    print "Un-pausing script"

        The observer will be called at the period of the messaging loop (about every 0.01 seconds). Testing
        on SITL indicates that ``last_heartbeat`` averages about .5 seconds, but will rarely exceed 1.5 seconds
        when connected. Whether heartbeat monitoring can be useful will very much depend on the application.


        .. note::

            If you just want to change the heartbeat timeout you can modify the ``heartbeat_timeout``
            parameter passed to the :py:func:`connect() <dronekit.connect>` function.

         N/A N/A self _last_heartbeat N/A property on_message N/A N/A self name N/A N/A N/A 
        Decorator for message listener callback functions.

        .. tip::

            This is the most elegant way to define message listener callback functions.
            Use :py:func:`add_message_listener` only if you need to be able to
            :py:func:`remove the listener <remove_message_listener>` later.

        A decorated message listener function is called with three arguments every time the
        specified message is received:

        * ``self`` - the current vehicle.
        * ``name`` - the name of the message that was intercepted.
        * ``message`` - the actual message (a `pymavlink <http://www.qgroundcontrol.org/mavlink/pymavlink>`_
          `class <https://www.samba.org/tridge/UAV/pymavlink/apidocs/classIndex.html>`_).

        For example, in the fragment below ``my_method`` will be called for every heartbeat message:

        .. code:: python

            @vehicle.on_message('HEARTBEAT')
            def my_method(self, name, msg):
                pass

        See :ref:`mavlink_messages` for more information.

        :param String name: The name of the message to be intercepted by the decorated listener function (or '*' to get all messages).
         decorator N/A N/A fn N/A N/A N/A N/A isinstance name list N/A N/A n name N/A N/A N/A N/A self add_message_listener n fn N/A N/A N/A N/A self add_message_listener name fn N/A N/A decorator N/A add_message_listener N/A N/A self name fn N/A N/A N/A 
        Adds a message listener function that will be called every time the specified message is received.

        .. tip::

            We recommend you use :py:func:`on_message` instead of this method as it has a more elegant syntax.
            This method is only preferred if you need to be able to
            :py:func:`remove the listener <remove_message_listener>`.

        The callback function must have three arguments:

        * ``self`` - the current vehicle.
        * ``name`` - the name of the message that was intercepted.
        * ``message`` - the actual message (a `pymavlink <http://www.qgroundcontrol.org/mavlink/pymavlink>`_
          `class <https://www.samba.org/tridge/UAV/pymavlink/apidocs/classIndex.html>`_).

        For example, in the fragment below ``my_method`` will be called for every heartbeat message:

        .. code:: python

            #Callback method for new messages
            def my_method(self, name, msg):
                pass

            vehicle.add_message_listener('HEARTBEAT',my_method)

        See :ref:`mavlink_messages` for more information.

        :param String name: The name of the message to be intercepted by the listener function (or '*' to get all messages).
        :param fn: The listener function that will be called if a message is received.
         N/A name N/A str name N/A N/A name N/A self _message_listeners N/A N/A N/A N/A self _message_listeners N/A name N/A N/A N/A fn N/A N/A self _message_listeners N/A name N/A N/A N/A N/A N/A N/A self _message_listeners N/A name append fn N/A remove_message_listener N/A N/A self name fn N/A N/A N/A 
        Removes a message listener (that was previously added using :py:func:`add_message_listener`).

        See :ref:`mavlink_messages` for more information.

        :param String name: The name of the message for which the listener is to be removed (or '*' to remove an 'all messages' observer).
        :param fn: The listener callback function to remove.

         N/A name N/A str name N/A N/A name N/A self _message_listeners N/A N/A N/A fn N/A N/A self _message_listeners N/A name N/A N/A N/A N/A N/A N/A self _message_listeners N/A name remove fn N/A N/A N/A len N/A N/A self _message_listeners N/A name 0 N/A N/A N/A N/A self _message_listeners N/A name N/A notify_message_listeners N/A N/A self name msg N/A N/A N/A fn N/A N/A N/A self _message_listeners get name N/A N/A N/A N/A N/A N/A fn self name msg N/A N/A N/A Exception N/A e N/A N/A N/A errprinter N/A >>> Exception in message handler for %s N/A N/A msg get_type N/A N/A errprinter N/A >>>  N/A str e N/A fn N/A N/A N/A self _message_listeners get * N/A N/A N/A N/A N/A N/A fn self name msg N/A N/A N/A Exception N/A e N/A N/A N/A errprinter N/A >>> Exception in message handler for %s N/A N/A msg get_type N/A N/A errprinter N/A >>>  N/A str e N/A close N/A N/A self N/A N/A N/A N/A N/A N/A self _handler close N/A flush N/A N/A self N/A N/A N/A 
        Call ``flush()`` after :py:func:`adding <CommandSequence.add>` or :py:func:`clearing <CommandSequence.clear>` mission commands.

        After the return from ``flush()`` any writes are guaranteed to have completed (or thrown an
        exception) and future reads will see their effects.

        .. warning::

            This method is deprecated. It has been replaced by
            :py:func:`Vehicle.commands.upload() <Vehicle.commands.upload>`.
         N/A N/A N/A N/A self commands upload N/A _mode_mapping N/A N/A self N/A N/A N/A N/A N/A N/A self _master mode_mapping N/A property _mode_mapping_bynumber N/A N/A self N/A N/A N/A N/A N/A mavutil mode_mapping_bynumber N/A self _vehicle_type N/A property _is_mode_available N/A N/A self mode_code N/A N/A N/A N/A N/A N/A mode_code N/A self _mode_mapping_bynumber N/A N/A N/A N/A False N/A mode N/A N/A self N/A N/A N/A 
        This attribute is used to get and set the current flight mode (:py:class:`VehicleMode`).
         N/A N/A N/A self _flightmode N/A N/A None N/A N/A VehicleMode N/A self _flightmode N/A property mode N/A N/A self v N/A N/A N/A N/A N/A N/A self _master set_mode N/A N/A self _mode_mapping N/A N/A v name N/A N/A mode setter location N/A N/A self N/A N/A N/A 
        The vehicle location in global, global relative and local frames (:py:class:`Locations`).

        The different frames are accessed through its members:

        * :py:attr:`global_frame <dronekit.Locations.global_frame>` (:py:class:`LocationGlobal`)
        * :py:attr:`global_relative_frame <dronekit.Locations.global_relative_frame>` (:py:class:`LocationGlobalRelative`)
        * :py:attr:`local_frame <dronekit.Locations.local_frame>` (:py:class:`LocationLocal`)

        For example, to print the location in each frame for a ``vehicle``:

        .. code-block:: python

            # Print location information for `vehicle` in all frames (default printer)
            print "Global Location: %s" % vehicle.location.global_frame
            print "Global Location (relative altitude): %s" % vehicle.location.global_relative_frame
            print "Local Location: %s" % vehicle.location.local_frame    #NED

            # Print altitudes in the different frames (see class definitions for other available information)
            print "Altitude (global frame): %s" % vehicle.location.global_frame.alt
            print "Altitude (global relative frame): %s" % vehicle.location.global_relative_frame.alt
            print "Altitude (NED frame): %s" % vehicle.location.local_frame.down

        .. note::

            All the location "values" (e.g. ``global_frame.lat``) are initially
            created with value ``None``. The ``global_frame``, ``global_relative_frame``
            latitude and longitude values are populated shortly after initialisation but
            ``global_frame.alt`` may take a few seconds longer to be updated.
            The ``local_frame`` does not populate until the vehicle is armed.

        The attribute and its members are observable. To watch for changes in all frames using a listener
        created using a decorator (you can also define a listener and explicitly add it).

        .. code-block:: python

            @vehicle.on_attribute('location')
            def listener(self, attr_name, value):
                # `self`: :py:class:`Vehicle` object that has been updated.
                # `attr_name`: name of the observed attribute - 'location'
                # `value` is the updated attribute value (a :py:class:`Locations`). This can be queried for the frame information
                print " Global: %s" % value.global_frame
                print " GlobalRelative: %s" % value.global_relative_frame
                print " Local: %s" % value.local_frame

        To watch for changes in just one attribute (in this case ``global_frame``):

        .. code-block:: python

            @vehicle.on_attribute('location.global_frame')
            def listener(self, attr_name, value):
                # `self`: :py:class:`Locations` object that has been updated.
                # `attr_name`: name of the observed attribute - 'global_frame'
                # `value` is the updated attribute value.
                print " Global: %s" % value

            #Or watch using decorator: ``@vehicle.location.on_attribute('global_frame')``.
         N/A N/A self _location N/A property battery N/A N/A self N/A N/A N/A 
        Current system batter status (:py:class:`Battery`).
         N/A N/A N/A N/A self _voltage None N/A N/A self _current None N/A N/A self _level None N/A N/A None N/A N/A Battery N/A self _voltage N/A self _current N/A self _level N/A property rangefinder N/A N/A self N/A N/A N/A 
        Rangefinder distance and voltage values (:py:class:`Rangefinder`).
         N/A N/A Rangefinder N/A self _rngfnd_distance N/A self _rngfnd_voltage N/A property velocity N/A N/A self N/A N/A N/A 
        Current velocity as a three element list ``[ vx, vy, vz ]`` (in meter/sec).
         N/A N/A N/A self _vx N/A self _vy N/A self _vz N/A property version N/A N/A self N/A N/A N/A 
        The autopilot version and type in a :py:class:`Version` object.

        .. versionadded:: 2.0.3
         N/A N/A Version N/A self _raw_version N/A self _autopilot_type N/A self _vehicle_type N/A property capabilities N/A N/A self N/A N/A N/A 
        The autopilot capabilities in a :py:class:`Capabilities` object.

        .. versionadded:: 2.0.3
         N/A N/A Capabilities N/A self _capabilities N/A property attitude N/A N/A self N/A N/A N/A 
        Current vehicle attitude - pitch, yaw, roll (:py:class:`Attitude`).
         N/A N/A Attitude N/A self _pitch N/A self _yaw N/A self _roll N/A property gps_0 N/A N/A self N/A N/A N/A 
        GPS position information (:py:class:`GPSInfo`).
         N/A N/A GPSInfo N/A self _eph N/A self _epv N/A self _fix_type N/A self _satellites_visible N/A property armed N/A N/A self N/A N/A N/A 
        This attribute can be used to get and set the ``armed`` state of the vehicle (``boolean``).

        The code below shows how to read the state, and to arm/disarm the vehicle:

        .. code:: python

            # Print the armed state for the vehicle
            print "Armed: %s" % vehicle.armed

            # Disarm the vehicle
            vehicle.armed = False

            # Arm the vehicle
            vehicle.armed = True
         N/A N/A self _armed N/A property armed N/A N/A self value N/A N/A N/A N/A N/A bool value N/A self _armed N/A N/A value N/A N/A N/A N/A N/A self _master arducopter_arm N/A N/A N/A N/A N/A self _master arducopter_disarm N/A N/A armed setter is_armable N/A N/A self N/A N/A N/A 
        Returns ``True`` if the vehicle is ready to arm, false otherwise (``Boolean``).

        This attribute wraps a number of pre-arm checks, ensuring that the vehicle has booted,
        has a good GPS fix, and that the EKF pre-arm is complete.
         N/A N/A N/A N/A self mode INITIALISING N/A N/A N/A self gps_0 fix_type 1 N/A self _ekf_predposhorizabs N/A property system_status N/A N/A self N/A N/A N/A 
        System status (:py:class:`SystemStatus`).

        The status has a ``state`` property with one of the following values:

        * ``UNINIT``: Uninitialized system, state is unknown.
        * ``BOOT``: System is booting up.
        * ``CALIBRATING``: System is calibrating and not flight-ready.
        * ``STANDBY``: System is grounded and on standby. It can be launched any time.
        * ``ACTIVE``: System is active and might be already airborne. Motors are engaged.
        * ``CRITICAL``: System is in a non-normal flight mode. It can however still navigate.
        * ``EMERGENCY``: System is in a non-normal flight mode. It lost control over parts
          or over the whole airframe. It is in mayday and going down.
        * ``POWEROFF``: System just initialized its power-down sequence, will shut down now.
         N/A N/A N/A N/A 0 1 2 3 4 5 6 7 N/A SystemStatus UNINIT N/A SystemStatus BOOT N/A SystemStatus CALIBRATING N/A SystemStatus STANDBY N/A SystemStatus ACTIVE N/A SystemStatus CRITICAL N/A SystemStatus EMERGENCY N/A SystemStatus POWEROFF get N/A self _system_status None N/A property heading N/A N/A self N/A N/A N/A 
        Current heading in degrees - 0..360, where North = 0 (``int``).
         N/A N/A self _heading N/A property groundspeed N/A N/A self N/A N/A N/A 
        Current groundspeed in metres/second (``double``).

        This attribute is settable. The set value is the default target groundspeed
        when moving the vehicle using :py:func:`simple_goto` (or other position-based
        movement commands).
         N/A N/A self _groundspeed N/A property groundspeed N/A N/A self speed N/A N/A N/A speed_type 1 N/A msg N/A N/A N/A self message_factory command_long_encode 0 0 N/A N/A mavutil mavlink MAV_CMD_DO_CHANGE_SPEED 0 speed_type speed -1 0 0 0 0 N/A N/A N/A self send_mavlink msg N/A N/A groundspeed setter airspeed N/A N/A self N/A N/A N/A 
        Current airspeed in metres/second (``double``).

        This attribute is settable. The set value is the default target airspeed
        when moving the vehicle using :py:func:`simple_goto` (or other position-based
        movement commands).
         N/A N/A self _airspeed N/A property airspeed N/A N/A self speed N/A N/A N/A speed_type 0 N/A msg N/A N/A N/A self message_factory command_long_encode 0 0 N/A N/A mavutil mavlink MAV_CMD_DO_CHANGE_SPEED 0 speed_type speed -1 0 0 0 0 N/A N/A N/A self send_mavlink msg N/A N/A airspeed setter gimbal N/A N/A self N/A N/A N/A 
        Gimbal object for controlling, viewing and observing gimbal status (:py:class:`Gimbal`).

        .. versionadded:: 2.0.1
         N/A N/A self _gimbal N/A property mount_status N/A N/A self N/A N/A N/A 
        .. warning:: This method is deprecated. It has been replaced by :py:attr:`gimbal`.

        Current status of the camera mount (gimbal) as a three element list: ``[ pitch, yaw, roll ]``.

        The values in the list are set to ``None`` if no mount is configured.
         N/A N/A N/A self _mount_pitch N/A self _mount_yaw N/A self _mount_roll N/A property ekf_ok N/A N/A self N/A N/A N/A 
        ``True`` if the EKF status is considered acceptable, ``False`` otherwise (``boolean``).
         N/A N/A self armed N/A N/A N/A N/A self _ekf_poshorizabs N/A N/A self _ekf_constposmode N/A N/A N/A N/A self _ekf_poshorizabs N/A self _ekf_predposhorizabs N/A property channels N/A N/A self N/A N/A N/A 
        The RC channel values from the RC Transmitter (:py:class:`Channels`).

        The attribute can also be used to set and read RC Override (channel override) values
        via :py:attr:`Vehicle.channels.override <dronekit.Channels.overrides>`.

        For more information and examples see :ref:`example_channel_overrides`.

        To read the channels from the RC transmitter:

        .. code:: python

            # Get all channel values from RC transmitter
            print "Channel values from RC Tx:", vehicle.channels

            # Access channels individually
            print "Read channels individually:"
            print " Ch1: %s" % vehicle.channels['1']
            print " Ch2: %s" % vehicle.channels['2']

         N/A N/A self _channels N/A property home_location N/A N/A self N/A N/A N/A 
        The current home location (:py:class:`LocationGlobal`).

        To get the attribute you must first download the :py:func:`Vehicle.commands`.
        The attribute has a value of ``None`` until :py:func:`Vehicle.commands` has been downloaded
        **and** the autopilot has set an initial home location (typically where the vehicle first gets GPS lock).

        .. code-block:: python

            #Connect to a vehicle object (for example, on com14)
            vehicle = connect('com14', wait_ready=True)

            # Download the vehicle waypoints (commands). Wait until download is complete.
            cmds = vehicle.commands
            cmds.download()
            cmds.wait_ready()

            # Get the home location
            home = vehicle.home_location

        The ``home_location`` is not observable.

        The attribute can be written (in the same way as any other attribute) after it has successfully
        been populated from the vehicle. The value sent to the vehicle is cached in the attribute
        (and can potentially get out of date if you don't re-download ``Vehicle.commands``):

        .. warning::

            Setting the value will fail silently if the specified location is more than 50km from the EKF origin.


         N/A N/A N/A copy copy N/A self _home_location N/A property home_location N/A N/A self pos N/A N/A N/A 
        Sets the home location (``LocationGlobal``).

        The value cannot be set until it has successfully been read from the vehicle. After being
        set the value is cached in the home_location attribute and does not have to be re-read.

        .. note::

            Setting the value will fail silently if the specified location is more than 50km from the EKF origin.
         N/A N/A N/A isinstance pos LocationGlobal N/A N/A N/A Exception Excepting home_location to be set to a LocationGlobal. N/A N/A self _home_location N/A N/A copy copy pos N/A N/A N/A self send_mavlink N/A N/A N/A self message_factory command_long_encode 0 0 N/A N/A mavutil mavlink MAV_CMD_DO_SET_HOME 0 2 0 0 0 N/A pos lat N/A pos lon N/A pos alt N/A N/A home_location setter commands N/A N/A self N/A N/A N/A 
        Gets the editable waypoints/current mission for this vehicle (:py:class:`CommandSequence`).

        This can be used to get, create, and modify a mission.

        :returns: A :py:class:`CommandSequence` containing the waypoints for this vehicle.
         N/A N/A self _commands N/A property parameters N/A N/A self N/A N/A N/A 
        The (editable) parameters for this vehicle (:py:class:`Parameters`).
         N/A N/A self _parameters N/A property simple_takeoff N/A N/A self alt N/A None N/A N/A 
        Take off and fly the vehicle to the specified altitude (in metres) and then wait for another command.

        .. note::

            This function should only be used on Copter vehicles.


        The vehicle must be in GUIDED mode and armed before this is called.

        There is no mechanism for notification when the correct altitude is reached,
        and if another command arrives before that point (e.g. :py:func:`simple_goto`) it will be run instead.

        .. warning::

           Apps should code to ensure that the vehicle will reach a safe altitude before
           other commands are executed. A good example is provided in the guide topic :doc:`guide/taking_off`.

        :param alt: Target height, in metres.
         N/A N/A alt None N/A N/A altitude N/A float alt N/A N/A N/A N/A math isnan alt N/A N/A math isinf alt N/A N/A N/A ValueError Altitude was NaN or Infinity. Please provide a real number N/A N/A N/A N/A N/A self _master mav command_long_send 0 0 N/A N/A mavutil mavlink MAV_CMD_NAV_TAKEOFF 0 0 0 0 0 0 0 altitude N/A simple_goto N/A N/A self location airspeed groundspeed N/A None None N/A N/A 
        Go to a specified global location (:py:class:`LocationGlobal` or :py:class:`LocationGlobalRelative`).

        There is no mechanism for notification when the target location is reached, and if another command arrives
        before that point that will be executed immediately.

        You can optionally set the desired airspeed or groundspeed (this is identical to setting
        :py:attr:`airspeed` or :py:attr:`groundspeed`). The vehicle will determine what speed to
        use if the values are not set or if they are both set.

        The method will change the :py:class:`VehicleMode` to ``GUIDED`` if necessary.

        .. code:: python

            # Set mode to guided - this is optional as the simple_goto method will change the mode if needed.
            vehicle.mode = VehicleMode("GUIDED")

            # Set the LocationGlobal to head towards
            a_location = LocationGlobal(-34.364114, 149.166022, 30)
            vehicle.simple_goto(a_location)

        :param location: The target location (:py:class:`LocationGlobal` or :py:class:`LocationGlobalRelative`).
        :param airspeed: Target airspeed in m/s (optional).
        :param groundspeed: Target groundspeed in m/s (optional).
         N/A N/A isinstance location LocationGlobalRelative N/A N/A frame N/A N/A mavutil mavlink MAV_FRAME_GLOBAL_RELATIVE_ALT N/A alt N/A location alt N/A N/A N/A isinstance location LocationGlobal N/A N/A frame N/A N/A mavutil mavlink MAV_FRAME_GLOBAL_RELATIVE_ALT N/A N/A N/A self home_location N/A N/A N/A N/A N/A self commands download N/A N/A N/A N/A self commands wait_ready N/A alt N/A N/A location alt N/A N/A self home_location alt N/A N/A N/A APIException Expecting location to be LocationGlobal or LocationGlobalRelative. N/A N/A N/A N/A N/A self _master mav mission_item_send 0 0 0 frame N/A N/A mavutil mavlink MAV_CMD_NAV_WAYPOINT 2 0 0 0 0 0 N/A location lat N/A location lon alt N/A N/A airspeed None N/A N/A N/A self airspeed airspeed N/A N/A groundspeed None N/A N/A N/A self groundspeed groundspeed N/A send_mavlink N/A N/A self message N/A N/A N/A 
        This method is used to send raw MAVLink "custom messages" to the vehicle.

        The function can send arbitrary messages/commands to the connected vehicle at any time and in any vehicle mode.
        It is particularly useful for controlling vehicles outside of missions (for example, in GUIDED mode).

        The :py:func:`message_factory <dronekit.Vehicle.message_factory>` is used to create messages in the appropriate format.

        For more information see the guide topic: :ref:`guided_mode_how_to_send_commands`.

        :param message: A ``MAVLink_message`` instance, created using :py:func:`message_factory <dronekit.Vehicle.message_factory>`.
            There is need to specify the system id, component id or sequence number of messages as the API will set these appropriately.
         N/A N/A N/A N/A N/A self _master mav send message N/A message_factory N/A N/A self N/A N/A N/A 
        Returns an object that can be used to create 'raw' MAVLink messages that are appropriate for this vehicle.
        The message can then be sent using :py:func:`send_mavlink(message) <dronekit.Vehicle.send_mavlink>`.

        .. note::

            Vehicles support a subset of the messages defined in the MAVLink standard. For more information
            about the supported sets see wiki topics:
            `Copter Commands in Guided Mode <http://dev.ardupilot.com/wiki/copter-commands-in-guided-mode/>`_
            and `Plane Commands in Guided Mode <http://dev.ardupilot.com/wiki/plane-commands-in-guided-mode/>`_.

        All message types are defined in the central MAVLink github repository.  For example, a Pixhawk understands
        the following messages (from `pixhawk.xml <https://github.com/mavlink/mavlink/blob/master/message_definitions/v1.0/pixhawk.xml>`_):

        .. code:: xml

          <message id="153" name="IMAGE_TRIGGER_CONTROL">
               <field type="uint8_t" name="enable">0 to disable, 1 to enable</field>
          </message>

        The name of the factory method will always be the lower case version of the message name with *_encode* appended.
        Each field in the XML message definition must be listed as arguments to this factory method.  So for this example
        message, the call would be:

        .. code:: python

            msg = vehicle.message_factory.image_trigger_control_encode(True)
            vehicle.send_mavlink(msg)

        Some message types include "addressing information". If present, there is no need to specify the ``target_system``
        id (just set to zero) as DroneKit will automatically update messages with the correct ID for the connected
        vehicle before sending.
        The ``target_component`` should be set to 0 (broadcast) unless the message is to specific component.
        CRC fields and sequence numbers (if defined in the message type) are automatically set by DroneKit and can also
        be ignored/set to zero.

        For more information see the guide topic: :ref:`guided_mode_how_to_send_commands`.
         N/A N/A N/A self _master mav N/A property initialize N/A N/A self rate heartbeat_timeout N/A 4 30 N/A N/A N/A N/A N/A self _handler start N/A start N/A N/A monotonic monotonic N/A N/A self _heartbeat_error N/A heartbeat_timeout 0 N/A N/A self _heartbeat_started True N/A N/A self _heartbeat_lastreceived start N/A N/A N/A self _handler _alive N/A N/A N/A N/A time sleep 0.1 N/A N/A N/A self _heartbeat_lastreceived start N/A N/A N/A N/A N/A N/A self _handler _alive N/A N/A N/A APIException Timeout in initializing connection. N/A N/A N/A self _handler target_system N/A self _heartbeat_system N/A True N/A N/A N/A N/A self _flightmode N/A None INITIALISING MAV N/A N/A N/A N/A N/A time sleep 0.1 N/A N/A rate None N/A N/A N/A N/A N/A N/A self _master mav request_data_stream_send 0 0 N/A N/A mavutil mavlink MAV_DATA_STREAM_ALL rate 1 N/A N/A N/A self add_message_listener HEARTBEAT N/A self send_capabilties_request N/A True N/A N/A N/A N/A N/A self _master param_fetch_all N/A N/A N/A time sleep 0.1 N/A N/A N/A self _params_count -1 N/A N/A N/A send_capabilties_request N/A N/A self vehicle name m N/A N/A N/A Request an AUTOPILOT_VERSION packet N/A capability_msg N/A N/A N/A vehicle message_factory command_long_encode 0 0 N/A N/A mavutil mavlink MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES 0 1 0 0 0 0 0 0 N/A N/A N/A vehicle send_mavlink capability_msg N/A wait_ready N/A N/A self N/A types kwargs N/A N/A 
        Waits for specified attributes to be populated from the vehicle (values are initially ``None``).

        This is typically called "behind the scenes" to ensure that :py:func:`connect` does not return until
        attributes have populated (via the ``wait_ready`` parameter). You can also use it after connecting to
        wait on a specific value(s).

        There are two ways to call the method:

        .. code-block:: python

            #Wait on default attributes to populate
            vehicle.wait_ready(True)

            #Wait on specified attributes (or array of attributes) to populate
            vehicle.wait_ready('mode','airspeed')

        Using the ``wait_ready(True)`` waits on :py:attr:`parameters`, :py:attr:`gps_0`,
        :py:attr:`armed`, :py:attr:`mode`, and :py:attr:`attitude`. In practice this usually
        means that all supported attributes will be populated.

        By default, the method will timeout after 30 seconds and raise an exception if the
        attributes were not populated.

        :param types: ``True`` to wait on the default set of attributes, or a
            comma-separated list of the specific attributes to wait on.
        :param int timeout: Timeout in seconds after which the method will raise an exception
            (the default) or return ``False``. The default timeout is 30 seconds.
        :param Boolean raise_exception: If ``True`` the method will raise an exception on timeout,
            otherwise the method will return ``False``. The default is ``True`` (raise exception).
         N/A timeout N/A N/A kwargs get timeout 30 N/A raise_exception N/A N/A kwargs get raise_exception True N/A N/A N/A N/A list types N/A True N/A N/A list types N/A N/A N/A types N/A self _default_ready_attrs N/A N/A N/A all N/A N/A isinstance item basestring N/A item types N/A N/A N/A APIException wait_ready expects one or more string arguments. N/A await N/A set types N/A start N/A N/A monotonic monotonic N/A N/A N/A N/A await issubset N/A self _ready_attrs N/A N/A N/A N/A time sleep 0.1 N/A N/A N/A N/A N/A monotonic monotonic start timeout N/A N/A raise_exception N/A N/A N/A APIException N/A wait_ready experienced a timeout after %s seconds. timeout N/A N/A False N/A True N/A N/A Gimbal N/A object N/A N/A 
    Gimbal status and control.

    An object of this type is returned by :py:attr:`Vehicle.gimbal`. The
    gimbal orientation can be obtained from its :py:attr:`roll`, :py:attr:`pitch` and
    :py:attr:`yaw` attributes.

    The gimbal orientation can be set explicitly using :py:func:`rotate`
    or you can set the gimbal (and vehicle) to track a specific "region of interest" using
    :py:func:`target_location`.

    .. note::

        * The orientation attributes are created with values of ``None``. If a gimbal is present,
          the attributes are populated shortly after initialisation by messages from the autopilot.
        * The attribute values reflect the last gimbal setting-values rather than actual measured values.
          This means that the values won't change if you manually move the gimbal, and that the value
          will change when you set it, even if the specified orientation is not supported.
        * A gimbal may not support all axes of rotation. For example, the Solo gimbal will set pitch
          values from 0 to -90 (straight ahead to straight down), it will rotate the vehicle to follow specified
          yaw values, and will ignore roll commands (not supported).
     __init__ N/A N/A self vehicle N/A N/A N/A N/A N/A N/A super Gimbal self __init__ N/A N/A self _pitch None N/A N/A self _roll None N/A N/A self _yaw None N/A N/A self _vehicle vehicle listener N/A N/A vehicle name m N/A N/A N/A N/A self _pitch N/A N/A m pointing_a 100.0 N/A N/A self _roll N/A N/A m pointing_b 100.0 N/A N/A self _yaw N/A N/A m pointing_c 100.0 N/A N/A N/A vehicle notify_attribute_listeners gimbal N/A vehicle gimbal N/A N/A N/A vehicle on_message MOUNT_STATUS N/A pitch N/A N/A self N/A N/A N/A 
        Gimbal pitch in degrees relative to the vehicle (see diagram for :ref:`attitude <figure_attitude>`).
        A value of 0 represents a camera pointed straight ahead relative to the front of the vehicle,
        while -90 points the camera straight down.

        .. note::

            This is the last pitch value sent to the gimbal (not the actual/measured pitch).
         N/A N/A self _pitch N/A property roll N/A N/A self N/A N/A N/A 
        Gimbal roll in degrees relative to the vehicle (see diagram for :ref:`attitude <figure_attitude>`).

        .. note::

            This is the last roll value sent to the gimbal (not the actual/measured roll).
         N/A N/A self _roll N/A property yaw N/A N/A self N/A N/A N/A 
        Gimbal yaw in degrees relative to *global frame* (0 is North, 90 is West, 180 is South etc).

        .. note::

            This is the last yaw value sent to the gimbal (not the actual/measured yaw).
         N/A N/A self _yaw N/A property rotate N/A N/A self pitch roll yaw N/A N/A N/A 
        Rotate the gimbal to a specific vector.

        .. code-block:: python

            #Point the gimbal straight down
            vehicle.gimbal.rotate(-90, 0, 0)

        :param pitch: Gimbal pitch in degrees relative to the vehicle (see diagram for :ref:`attitude <figure_attitude>`).
            A value of 0 represents a camera pointed straight ahead relative to the front of the vehicle,
            while -90 points the camera straight down.
        :param roll: Gimbal roll in degrees relative to the vehicle (see diagram for :ref:`attitude <figure_attitude>`).
        :param yaw: Gimbal yaw in degrees relative to *global frame* (0 is North, 90 is West, 180 is South etc.)
         N/A msg N/A N/A N/A N/A self _vehicle message_factory mount_configure_encode 0 1 N/A N/A mavutil mavlink MAV_MOUNT_MODE_MAVLINK_TARGETING 1 1 1 N/A N/A N/A N/A self _vehicle send_mavlink msg N/A msg N/A N/A N/A N/A self _vehicle message_factory mount_control_encode 0 1 N/A pitch 100 N/A roll 100 N/A yaw 100 0 N/A N/A N/A N/A self _vehicle send_mavlink msg N/A target_location N/A N/A self roi N/A N/A N/A 
        Point the gimbal at a specific region of interest (ROI).

        .. code-block:: python

            #Set the camera to track the current home location.
            vehicle.gimbal.target_location(vehicle.home_location)

        The target position must be defined in a :py:class:`LocationGlobalRelative` or :py:class:`LocationGlobal`.

        This function can be called in AUTO or GUIDED mode.

        In order to clear an ROI you can send a location with all zeros (e.g. ``LocationGlobalRelative(0,0,0)``).

        :param roi: Target location in global relative frame.
         N/A msg N/A N/A N/A N/A self _vehicle message_factory mount_configure_encode 0 1 N/A N/A mavutil mavlink MAV_MOUNT_MODE_GPS_POINT 1 1 1 N/A N/A N/A N/A self _vehicle send_mavlink msg N/A N/A isinstance roi LocationGlobalRelative N/A N/A alt N/A roi alt N/A N/A N/A isinstance roi LocationGlobal N/A N/A N/A N/A self home_location N/A N/A N/A N/A N/A self commands download N/A N/A N/A N/A self commands wait_ready N/A alt N/A N/A roi alt N/A N/A self home_location alt N/A N/A N/A APIException Expecting location to be LocationGlobal or LocationGlobalRelative. N/A msg N/A N/A N/A N/A self _vehicle message_factory command_long_encode 0 1 N/A N/A mavutil mavlink MAV_CMD_DO_SET_ROI 0 0 0 0 0 N/A roi lat N/A roi lon alt N/A N/A N/A N/A self _vehicle send_mavlink msg N/A release N/A N/A self N/A N/A N/A 
        Release control of the gimbal to the user (RC Control).

        This should be called once you've finished controlling the mount with either :py:func:`rotate`
        or :py:func:`target_location`. Control will automatically be released if you change vehicle mode.
         N/A msg N/A N/A N/A N/A self _vehicle message_factory mount_configure_encode 0 1 N/A N/A mavutil mavlink MAV_MOUNT_MODE_RC_TARGETING 1 1 1 N/A N/A N/A N/A self _vehicle send_mavlink msg N/A __str__ N/A N/A self N/A N/A N/A N/A N/A Gimbal: pitch={0}, roll={1}, yaw={2} format N/A self pitch N/A self roll N/A self yaw N/A N/A Parameters N/A N/A collections MutableMapping HasObservers N/A N/A 
    This object is used to get and set the values of named parameters for a vehicle. See the following links for information about
    the supported parameters for each platform: `Copter Parameters <http://copter.ardupilot.com/wiki/configuration/arducopter-parameters/>`_,
    `Plane Parameters <http://plane.ardupilot.com/wiki/arduplane-parameters/>`_, `Rover Parameters <http://rover.ardupilot.com/wiki/apmrover2-parameters/>`_.

    The code fragment below shows how to get and set the value of a parameter.

    .. code:: python

        # Print the value of the THR_MIN parameter.
        print "Param: %s" % vehicle.parameters['THR_MIN']

        # Change the parameter value to something different.
        vehicle.parameters['THR_MIN']=100

    It is also possible to observe parameters and to iterate the :py:attr:`Vehicle.parameters`.

    For more information see :ref:`the guide <vehicle_state_parameters>`.
     __init__ N/A N/A self vehicle N/A N/A N/A N/A N/A N/A super Parameters self __init__ N/A N/A self _vehicle vehicle N/A __getitem__ N/A N/A self name N/A N/A N/A name N/A N/A name upper N/A N/A N/A self wait_ready N/A N/A N/A N/A self _vehicle _params_map N/A name N/A __setitem__ N/A N/A self name value N/A N/A N/A name N/A N/A name upper N/A N/A N/A self wait_ready N/A N/A N/A self set name value N/A __delitem__ N/A N/A self name N/A N/A N/A N/A APIException Cannot delete value from parameters list. N/A __len__ N/A N/A self N/A N/A N/A N/A len N/A N/A self _vehicle _params_map N/A __iter__ N/A N/A self N/A N/A N/A N/A N/A N/A N/A self _vehicle _params_map __iter__ N/A get N/A N/A self name wait_ready N/A True N/A N/A name N/A N/A name upper N/A wait_ready N/A N/A N/A N/A self wait_ready N/A N/A N/A N/A N/A self _vehicle _params_map get name None N/A set N/A N/A self name value retries wait_ready N/A 3 False N/A N/A wait_ready N/A N/A N/A N/A self wait_ready N/A name N/A N/A name upper N/A value N/A float value N/A success False N/A remaining retries N/A True N/A N/A N/A N/A N/A N/A self _vehicle _master param_set_send name value N/A tstart N/A N/A monotonic monotonic N/A N/A remaining 0 N/A N/A N/A remaining 1 N/A N/A N/A N/A N/A monotonic monotonic tstart 1 N/A N/A N/A N/A name N/A N/A self _vehicle _params_map N/A N/A N/A N/A self _vehicle _params_map N/A name value N/A N/A True N/A N/A N/A time sleep 0.1 N/A N/A retries 0 N/A N/A N/A errprinter N/A timeout setting parameter %s to %f N/A name value N/A False N/A wait_ready N/A N/A self N/A kwargs N/A N/A 
        Block the calling thread until parameters have been downloaded
         N/A N/A N/A N/A self _vehicle wait_ready parameters kwargs N/A add_attribute_listener N/A N/A self attr_name N/A args kwargs N/A N/A 
        Add a listener callback on a particular parameter.

        The callback can be removed using :py:func:`remove_attribute_listener`.

        .. note::

            The :py:func:`on_attribute` decorator performs the same operation as this method, but with
            a more elegant syntax. Use ``add_attribute_listener`` only if you will need to remove
            the observer.

        The callback function is invoked only when the parameter changes.

        The callback arguments are:

        * ``self`` - the associated :py:class:`Parameters`.
        * ``attr_name`` - the parameter name. This can be used to infer which parameter has triggered
          if the same callback is used for watching multiple parameters.
        * ``msg`` - the new parameter value (so you don't need to re-query the vehicle object).

        The example below shows how to get callbacks for the ``THR_MIN`` parameter:

        .. code:: python

            #Callback function for the THR_MIN parameter
            def thr_min_callback(self, attr_name, value):
                print " PARAMETER CALLBACK: %s changed to: %s" % (attr_name, value)

            #Add observer for the vehicle's THR_MIN parameter
            vehicle.parameters.add_attribute_listener('THR_MIN', thr_min_callback)

        See :ref:`vehicle_state_observing_parameters` for more information.

        :param String attr_name: The name of the parameter to watch (or '*' to watch all parameters).
        :param args: The callback to invoke when a change in the parameter is detected.

         N/A attr_name N/A N/A attr_name upper N/A N/A N/A N/A super Parameters self add_attribute_listener attr_name args kwargs N/A remove_attribute_listener N/A N/A self attr_name N/A args kwargs N/A N/A 
        Remove a paremeter listener that was previously added using :py:func:`add_attribute_listener`.

        For example to remove the ``thr_min_callback()`` callback function:

        .. code:: python

            vehicle.parameters.remove_attribute_listener('thr_min', thr_min_callback)

        See :ref:`vehicle_state_observing_parameters` for more information.

        :param String attr_name: The parameter name that is to have an observer removed (or '*' to remove an 'all attribute' observer).
        :param args: The callback function to remove.

         N/A attr_name N/A N/A attr_name upper N/A N/A N/A N/A super Parameters self remove_attribute_listener attr_name args kwargs N/A notify_attribute_listeners N/A N/A self attr_name N/A args kwargs N/A N/A attr_name N/A N/A attr_name upper N/A N/A N/A N/A super Parameters self notify_attribute_listeners attr_name args kwargs N/A on_attribute N/A N/A self attr_name N/A args kwargs N/A N/A 
        Decorator for parameter listeners.

        .. note::

            There is no way to remove a listener added with this decorator. Use
            :py:func:`add_attribute_listener` if you need to be able to remove
            the :py:func:`listener <remove_attribute_listener>`.

        The callback function is invoked only when the parameter changes.

        The callback arguments are:

        * ``self`` - the associated :py:class:`Parameters`.
        * ``attr_name`` - the parameter name. This can be used to infer which parameter has triggered
          if the same callback is used for watching multiple parameters.
        * ``msg`` - the new parameter value (so you don't need to re-query the vehicle object).

        The code fragment below shows how to get callbacks for the ``THR_MIN`` parameter:

        .. code:: python

            @vehicle.parameters.on_attribute('THR_MIN')
            def decorated_thr_min_callback(self, attr_name, value):
                print " PARAMETER CALLBACK: %s changed to: %s" % (attr_name, value)

        See :ref:`vehicle_state_observing_parameters` for more information.

        :param String attr_name: The name of the parameter to watch (or '*' to watch all parameters).
        :param args: The callback to invoke when a change in the parameter is detected.

         N/A attr_name N/A N/A attr_name upper N/A N/A N/A N/A super Parameters self on_attribute attr_name args kwargs N/A N/A Command N/A N/A N/A mavutil mavlink MAVLink_mission_item_message N/A N/A 
    A waypoint object.

    This object encodes a single mission item command. The set of commands that are supported
    by ArduPilot in Copter, Plane and Rover (along with their parameters) are listed in the wiki article
    `MAVLink Mission Command Messages (MAV_CMD) <http://planner.ardupilot.com/wiki/common-mavlink-mission-command-messages-mav_cmd/>`_.

    For example, to create a `NAV_WAYPOINT <http://planner.ardupilot.com/wiki/common-mavlink-mission-command-messages-mav_cmd/#mav_cmd_nav_waypoint>`_ command:

    .. code:: python

        cmd = Command(0,0,0, mavutil.mavlink.MAV_FRAME_GLOBAL_RELATIVE_ALT,
            mavutil.mavlink.MAV_CMD_NAV_WAYPOINT, 0, 0, 0, 0, 0, 0,-34.364114, 149.166022, 30)

    :param target_system: This can be set to any value
        (DroneKit changes the value to the MAVLink ID of the connected vehicle before the command is sent).
    :param target_component: The component id if the message is intended for a particular component within the target system
        (for example, the camera). Set to zero (broadcast) in most cases.
    :param seq: The sequence number within the mission (the autopilot will reject messages sent out of sequence).
        This should be set to zero as the API will automatically set the correct value when uploading a mission.
    :param frame: The frame of reference used for the location parameters (x, y, z). In most cases this will be
        ``mavutil.mavlink.MAV_FRAME_GLOBAL_RELATIVE_ALT``, which uses the WGS84 global coordinate system for latitude and longitude, but sets altitude
        as relative to the home position in metres (home altitude = 0). For more information `see the wiki here
        <http://planner.ardupilot.com/wiki/common-mavlink-mission-command-messages-mav_cmd/#frames_of_reference>`_.
    :param command: The specific mission command (e.g. ``mavutil.mavlink.MAV_CMD_NAV_WAYPOINT``). The supported commands (and command parameters
        are listed `on the wiki <http://planner.ardupilot.com/wiki/common-mavlink-mission-command-messages-mav_cmd/>`_.
    :param current: Set to zero (not supported).
    :param autocontinue: Set to zero (not supported).
    :param param1: Command specific parameter (depends on specific `Mission Command (MAV_CMD) <http://planner.ardupilot.com/wiki/common-mavlink-mission-command-messages-mav_cmd/>`_).
    :param param2: Command specific parameter.
    :param param3: Command specific parameter.
    :param param4: Command specific parameter.
    :param x: (param5) Command specific parameter used for latitude (if relevant to command).
    :param y: (param6) Command specific parameter used for longitude (if relevant to command).
    :param z: (param7) Command specific parameter used for altitude (if relevant). The reference frame for altitude depends on the ``frame``.

     N/A N/A CommandSequence N/A object N/A N/A 
    A sequence of vehicle waypoints (a "mission").

    Operations include 'array style' indexed access to the various contained waypoints.

    The current commands/mission for a vehicle are accessed using the :py:attr:`Vehicle.commands` attribute.
    Waypoints are not downloaded from vehicle until :py:func:`download()` is called.  The download is asynchronous;
    use :py:func:`wait_ready()` to block your thread until the download is complete.
    The code to download the commands from a vehicle is shown below:

    .. code-block:: python
        :emphasize-lines: 5-10

        #Connect to a vehicle object (for example, on com14)
        vehicle = connect('com14', wait_ready=True)

        # Download the vehicle waypoints (commands). Wait until download is complete.
        cmds = vehicle.commands
        cmds.download()
        cmds.wait_ready()

    The set of commands can be changed and uploaded to the client. The changes are not guaranteed to be complete until
    :py:func:`upload() <Vehicle.commands.upload>` is called.

    .. code:: python

        cmds = vehicle.commands
        cmds.clear()
        lat = -34.364114,
        lon = 149.166022
        altitude = 30.0
        cmd = Command(0,0,0, mavutil.mavlink.MAV_FRAME_GLOBAL_RELATIVE_ALT, mavutil.mavlink.MAV_CMD_NAV_WAYPOINT,
            0, 0, 0, 0, 0, 0,
            lat, lon, altitude)
        cmds.add(cmd)
        cmds.upload()

     __init__ N/A N/A self vehicle N/A N/A N/A N/A self _vehicle vehicle N/A download N/A N/A self N/A N/A N/A 
        Download all waypoints from the vehicle.
        The download is asynchronous. Use :py:func:`wait_ready()` to block your thread until the download is complete.
         N/A N/A N/A self wait_ready N/A N/A N/A N/A N/A self _vehicle _ready_attrs remove commands N/A N/A N/A self _vehicle _wp_loaded False N/A N/A N/A N/A N/A self _vehicle _master waypoint_request_list_send N/A wait_ready N/A N/A self N/A kwargs N/A N/A 
        Block the calling thread until waypoints have been downloaded.

        This can be called after :py:func:`download()` to block the thread until the asynchronous download is complete.
         N/A N/A N/A N/A self _vehicle wait_ready commands kwargs N/A clear N/A N/A self N/A N/A N/A 
        Clear the command list.

        This command will be sent to the vehicle only after you call :py:func:`upload() <Vehicle.commands.upload>`.
         N/A N/A N/A self wait_ready N/A home None N/A N/A N/A home N/A N/A N/A N/A self _vehicle _wploader wp 0 N/A N/A N/A N/A N/A N/A N/A N/A N/A self _vehicle _wploader clear N/A home N/A N/A N/A N/A N/A N/A self _vehicle _wploader add home comment Added by DroneKit N/A N/A N/A self _vehicle _wpts_dirty True N/A add N/A N/A self cmd N/A N/A N/A 
        Add a new command (waypoint) at the end of the command list.

        .. note::

            Commands are sent to the vehicle only after you call ::py:func:`upload() <Vehicle.commands.upload>`.

        :param Command cmd: The command to be added.
         N/A N/A N/A self wait_ready N/A N/A N/A N/A N/A self _vehicle _handler fix_targets cmd N/A N/A N/A N/A N/A self _vehicle _wploader add cmd comment Added by DroneKit N/A N/A N/A self _vehicle _wpts_dirty True N/A upload N/A N/A self N/A N/A N/A 
        Call ``upload()`` after :py:func:`adding <CommandSequence.add>` or :py:func:`clearing <CommandSequence.clear>` mission commands.

        After the return from ``upload()`` any writes are guaranteed to have completed (or thrown an
        exception) and future reads will see their effects.
         N/A N/A N/A self _vehicle _wpts_dirty N/A N/A N/A N/A N/A N/A self _vehicle _master waypoint_clear_all_send N/A N/A N/A N/A N/A N/A self _vehicle _wploader count 0 N/A N/A N/A N/A self _vehicle _wp_uploaded N/A N/A False N/A N/A N/A N/A self _vehicle _wploader count N/A N/A N/A N/A N/A self _vehicle _master waypoint_count_send N/A N/A N/A N/A self _vehicle _wploader count N/A N/A False N/A N/A self _vehicle _wp_uploaded N/A N/A N/A N/A time sleep 0.1 N/A N/A N/A self _vehicle _wp_uploaded None N/A N/A N/A self _vehicle _wpts_dirty False N/A count N/A N/A self N/A N/A N/A 
        Return number of waypoints.

        :return: The number of waypoints in the sequence.
         N/A N/A max N/A N/A N/A N/A N/A self _vehicle _wploader count 1 0 N/A property next N/A N/A self N/A N/A N/A 
        Get the currently active waypoint number.
         N/A N/A N/A self _vehicle _current_waypoint N/A property next N/A N/A self index N/A N/A N/A 
        Set a new ``next`` waypoint for the vehicle.
         N/A N/A N/A N/A N/A self _vehicle _master waypoint_set_current_send index N/A N/A next setter __len__ N/A N/A self N/A N/A N/A 
        Return number of waypoints.

        :return: The number of waypoints in the sequence.
         N/A N/A max N/A N/A N/A N/A N/A self _vehicle _wploader count 1 0 N/A __getitem__ N/A N/A self index N/A N/A N/A N/A isinstance index slice N/A N/A N/A N/A self N/A ii N/A ii N/A xrange N/A N/A index indices N/A len self N/A N/A N/A isinstance index int N/A N/A item N/A N/A N/A N/A self _vehicle _wploader wp N/A index 1 N/A N/A item N/A N/A N/A IndexError N/A Index %s out of range. index N/A item N/A N/A N/A TypeError Invalid argument type. N/A __setitem__ N/A N/A self index value N/A N/A N/A N/A N/A N/A N/A self _vehicle _wploader set value N/A index 1 N/A N/A N/A self _vehicle _wpts_dirty True N/A N/A dronekit.mavlink MAVConnection connect N/A N/A ip _initialize wait_ready status_printer vehicle_class rate baud heartbeat_timeout source_system use_native N/A True None errprinter None 4 115200 30 255 False N/A N/A 
    Returns a :py:class:`Vehicle` object connected to the address specified by string parameter ``ip``.
    Connection string parameters (``ip``) for different targets are listed in the :ref:`getting started guide <get_started_connecting>`.

    The method is usually called with ``wait_ready=True`` to ensure that vehicle parameters and (most) attributes are
    available when ``connect()`` returns.

    .. code:: python

        from dronekit import connect

        # Connect to the Vehicle using "connection string" (in this case an address on network)
        vehicle = connect('127.0.0.1:14550', wait_ready=True)

    :param String ip: :ref:`Connection string <get_started_connecting>` for target address - e.g. 127.0.0.1:14550.

    :param Bool/Array wait_ready: If ``True`` wait until all default attributes have downloaded before
        the method returns (default is ``None``).
        The default attributes to wait on are: :py:attr:`parameters`, :py:attr:`gps_0`,
        :py:attr:`armed`, :py:attr:`mode`, and :py:attr:`attitude`.

        You can also specify a named set of parameters to wait on (e.g. ``wait_ready=['system_status','mode']``).

        For more information see :py:func:`Vehicle.wait_ready <Vehicle.wait_ready>`.

    :param status_printer: Method of signature ``def status_printer(txt)`` that prints
        STATUS_TEXT messages from the Vehicle and other diagnostic information.
        By default the status information is printed to the command prompt in which the script is running.
    :param Vehicle vehicle_class: The class that will be instantiated by the ``connect()`` method.
        This can be any sub-class of ``Vehicle`` (and defaults to ``Vehicle``).
    :param int rate: Data stream refresh rate. The default is 4Hz (4 updates per second).
    :param int baud: The baud rate for the connection. The default is 115200.
    :param int heartbeat_timeout: Connection timeout value in seconds (default is 30s).
        If a heartbeat is not detected within this time an exception will be raised.
    :param int source_system: The MAVLink ID of the :py:class:`Vehicle` object returned by this method (by default 255).
    :param bool use_native: Use precompiled MAVLink parser.

        .. note::

            The returned :py:class:`Vehicle` object acts as a ground control station from the
            perspective of the connected "real" vehicle. It will process/receive messages from the real vehicle
            if they are addressed to this ``source_system`` id. Messages sent to the real vehicle are
            automatically updated to use the vehicle's ``target_system`` id.

            It is *good practice* to assign a unique id for every system on the MAVLink network.
            It is possible to configure the autopilot to only respond to guided-mode commands from a specified GCS ID.


    :returns: A connected vehicle of the type defined in ``vehicle_class`` (a superclass of :py:class:`Vehicle`).
     N/A N/A vehicle_class N/A N/A vehicle_class Vehicle N/A handler N/A MAVConnection ip baud baud source_system source_system use_native use_native N/A vehicle N/A vehicle_class handler N/A status_printer N/A listener N/A N/A self name m N/A N/A N/A N/A status_printer N/A N/A re sub (^|\n) >>>  N/A N/A N/A m text rstrip N/A N/A N/A vehicle on_message STATUSTEXT N/A _initialize N/A N/A N/A N/A vehicle initialize rate rate heartbeat_timeout heartbeat_timeout N/A wait_ready N/A N/A N/A wait_ready True N/A N/A N/A N/A vehicle wait_ready True N/A N/A N/A N/A vehicle wait_ready wait_ready N/A vehicle N/A