(self)
| 114 | class MAVConnection(object): |
| 115 | |
| 116 | def stop_threads(self): |
| 117 | if self.mavlink_thread_in is not None: |
| 118 | self.mavlink_thread_in.join() |
| 119 | self.mavlink_thread_in = None |
| 120 | if self.mavlink_thread_out is not None: |
| 121 | self.mavlink_thread_out.join() |
| 122 | self.mavlink_thread_out = None |
| 123 | |
| 124 | def __init__(self, ip, baud=115200, target_system=0, source_system=255, use_native=False): |
| 125 | if ip.startswith("udpin:"): |