Skip to content

Commit 7abf4df

Browse files
authored
Merge pull request #207 from mavlink/fix-200
Make modules out of the plugins
2 parents 0265233 + e3438a0 commit 7abf4df

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+2470
-2480
lines changed

examples/camera.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import asyncio
44

5-
from mavsdk import (CameraError, Mode)
5+
from mavsdk.camera import (CameraError, Mode)
66
from mavsdk import System
77

88

examples/mission.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import asyncio
44

55
from mavsdk import System
6-
from mavsdk import (MissionItem, MissionPlan)
6+
from mavsdk.mission import (MissionItem, MissionPlan)
77

88

99
async def run():

examples/offboard_attitude.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import asyncio
55

66
from mavsdk import System
7-
from mavsdk import (Attitude, OffboardError)
7+
from mavsdk.offboard import (Attitude, OffboardError)
88

99

1010
async def run():

examples/offboard_position_ned.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import asyncio
1212

1313
from mavsdk import System
14-
from mavsdk import (OffboardError, PositionNedYaw)
14+
from mavsdk.offboard import (OffboardError, PositionNedYaw)
1515

1616

1717
async def run():

examples/offboard_velocity_body.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import asyncio
55

66
from mavsdk import System
7-
from mavsdk import (OffboardError, VelocityBodyYawspeed)
7+
from mavsdk.offboard import (OffboardError, VelocityBodyYawspeed)
88

99

1010
async def run():

examples/offboard_velocity_ned.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import asyncio
55

66
from mavsdk import System
7-
from mavsdk import (OffboardError, VelocityNedYaw)
7+
from mavsdk.offboard import (OffboardError, VelocityNedYaw)
88

99

1010
async def run():

mavsdk/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import sys
66

77
from .system import System
8-
from .generated import * # NOQA
98

109
# Check for compatibility
1110
if float(".".join(platform.python_version_tuple()[0:-1])) < 3.6:

mavsdk/action/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .action import *

mavsdk/generated/action.py renamed to mavsdk/action/action.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
from .._base import AsyncBase
3-
from ..generated import action_pb2, action_pb2_grpc
3+
from . import action_pb2, action_pb2_grpc
44
from enum import Enum
55

66

mavsdk/generated/action_pb2.py renamed to mavsdk/action/action_pb2.py

Lines changed: 112 additions & 112 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)