@@ -12,15 +12,20 @@ class System:
12
12
"Calibration" ,
13
13
"Camera" ,
14
14
"Core" ,
15
+ "FollowMe" ,
16
+ "Ftp" ,
15
17
"Geofence" ,
16
18
"Gimbal" ,
17
19
"Info" ,
20
+ "LogFiles" ,
18
21
"Mission" ,
22
+ "MissionRaw" ,
19
23
"Mocap" ,
20
- "Param" ,
21
24
"Offboard" ,
25
+ "Param" ,
22
26
"Shell" ,
23
- "Telemetry"
27
+ "Telemetry" ,
28
+ "Tune" ,
24
29
]
25
30
26
31
"""Instantiate a System object, that will serve as a proxy to
@@ -93,6 +98,18 @@ def core(self) -> Core:
93
98
raise RuntimeError ("Core plugin has not been initialized! Did you run `System.connect()`?" )
94
99
return self ._plugins ["core" ]
95
100
101
+ @property
102
+ def follow_me (self ) -> FollowMe :
103
+ if "follow_me" not in self ._plugins :
104
+ raise RuntimeError ("FollowMe plugin has not been initialized! Did you run `System.connect()`?" )
105
+ return self ._plugins ["follow_me" ]
106
+
107
+ @property
108
+ def ftp (self ) -> Ftp :
109
+ if "ftp" not in self ._plugins :
110
+ raise RuntimeError ("Ftp plugin has not been initialized! Did you run `System.connect()`?" )
111
+ return self ._plugins ["Ftp" ]
112
+
96
113
@property
97
114
def geofence (self ) -> Geofence :
98
115
if "geofence" not in self ._plugins :
@@ -111,17 +128,29 @@ def info(self) -> Info:
111
128
raise RuntimeError ("Info plugin has not been initialized! Did you run `System.connect()`?" )
112
129
return self ._plugins ["info" ]
113
130
131
+ @property
132
+ def log_files (self ) -> LogFiles :
133
+ if "log_files" not in self ._plugins :
134
+ raise RuntimeError ("LogFiles plugin has not been initialized! Did you run `System.connect()`?" )
135
+ return self ._plugins ["log_files" ]
136
+
114
137
@property
115
138
def mission (self ) -> Mission :
116
139
if "mission" not in self ._plugins :
117
140
raise RuntimeError ("Mission plugin has not been initialized! Did you run `System.connect()`?" )
118
141
return self ._plugins ["mission" ]
119
142
120
143
@property
121
- def param (self ) -> Param :
122
- if "param" not in self ._plugins :
123
- raise RuntimeError ("Param plugin has not been initialized! Did you run `System.connect()`?" )
124
- return self ._plugins ["param" ]
144
+ def mission_raw (self ) -> MissionRaw :
145
+ if "mission_raw" not in self ._plugins :
146
+ raise RuntimeError ("MissionRaw plugin has not been initialized! Did you run `System.connect()`?" )
147
+ return self ._plugins ["mission_raw" ]
148
+
149
+ @property
150
+ def mocap (self ) -> Mocap :
151
+ if "mocap" not in self ._plugins :
152
+ raise RuntimeError ("Mocap plugin has not been initialized! Did you run `System.connect()`?" )
153
+ return self ._plugins ["mocap" ]
125
154
126
155
@property
127
156
def offboard (self ) -> Offboard :
@@ -130,10 +159,10 @@ def offboard(self) -> Offboard:
130
159
return self ._plugins ["offboard" ]
131
160
132
161
@property
133
- def telemetry (self ) -> Telemetry :
134
- if "telemetry " not in self ._plugins :
135
- raise RuntimeError ("Telemetry plugin has not been initialized! Did you run `System.connect()`?" )
136
- return self ._plugins ["telemetry " ]
162
+ def param (self ) -> Param :
163
+ if "param " not in self ._plugins :
164
+ raise RuntimeError ("Param plugin has not been initialized! Did you run `System.connect()`?" )
165
+ return self ._plugins ["param " ]
137
166
138
167
@property
139
168
def shell (self ) -> Shell :
@@ -142,10 +171,16 @@ def shell(self) -> Shell:
142
171
return self ._plugins ["shell" ]
143
172
144
173
@property
145
- def mocap (self ) -> Mocap :
146
- if "mocap" not in self ._plugins :
147
- raise RuntimeError ("Mocap plugin has not been initialized! Did you run `System.connect()`?" )
148
- return self ._plugins ["mocap" ]
174
+ def telemetry (self ) -> Telemetry :
175
+ if "telemetry" not in self ._plugins :
176
+ raise RuntimeError ("Telemetry plugin has not been initialized! Did you run `System.connect()`?" )
177
+ return self ._plugins ["telemetry" ]
178
+
179
+ @property
180
+ def tune (self ) -> Tune :
181
+ if "tune" not in self ._plugins :
182
+ raise RuntimeError ("Tune plugin has not been initialized! Did you run `System.connect()`?" )
183
+ return self ._plugins ["tune" ]
149
184
150
185
@staticmethod
151
186
def _start_mavsdk_server (system_address = None ):
0 commit comments