Skip to content

Instantly share code, notes, and snippets.

View uruskan's full-sized avatar

Umut Piynar uruskan

View GitHub Profile
@uruskan
uruskan / hell1.py
Last active September 15, 2019 15:20
QGC WPL 110
0 0 0 16 0.000000 0.000000 0.000000 0.000000 39.872074 32.732212 0.090000 1
1 0 3 16 0.000000 0.000000 0.000000 0.000000 39.871994 32.732208 5.000000 1
2 0 3 16 0.000000 0.000000 0.000000 0.000000 39.872005 32.732372 5.000000 1
3 0 3 16 0.000000 0.000000 0.000000 0.000000 39.871979 32.732376 5.000000 1
4 0 3 16 0.000000 0.000000 0.000000 0.000000 39.871975 32.732227 5.000000 1
5 0 3 16 0.000000 0.000000 0.000000 0.000000 39.871956 32.732227 5.000000 1
6 0 3 16 0.000000 0.000000 0.000000 0.000000 39.871952 32.732376 5.000000 1
7 0 3 16 0.000000 0.000000 0.000000 0.000000 39.871937 32.732368 5.000000 1
8 0 3 16 0.000000 0.000000 0.000000 0.000000 39.871941 32.732227 5.000000 1
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import threading
import logging
import dronekit_sitl
from dronekit import connect, VehicleMode, LocationGlobalRelative, Command, LocationGlobal
import numpy as np
import cv2
from picamera import PiCamera
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import threading
import logging
import dronekit_sitl
from dronekit import connect, VehicleMode, LocationGlobalRelative, Command, LocationGlobal
import numpy as np
import cv2
from picamera import PiCamera
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import threading
import logging
import dronekit_sitl
from dronekit import connect, VehicleMode, LocationGlobalRelative, Command, LocationGlobal
import numpy as np
import cv2
from picamera import PiCamera
@uruskan
uruskan / mindFucker.py
Created September 14, 2019 22:36
Thats the real brainf*ck lag baby
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import threading
import logging
import dronekit_sitl
from dronekit import connect, VehicleMode, LocationGlobalRelative, Command, LocationGlobal
import numpy as np
import cv2
from picamera import PiCamera
@uruskan
uruskan / Tamam.py
Last active September 13, 2019 13:29
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import threading
import logging
import dronekit_sitl
from dronekit import connect, VehicleMode, LocationGlobalRelative, Command, LocationGlobal
import numpy as np
import cv2
from picamera import PiCamera
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import threading
import logging
import dronekit_sitl
from dronekit import connect, VehicleMode, LocationGlobalRelative, Command, LocationGlobal
import numpy as np
import cv2
from picamera import PiCamera
@uruskan
uruskan / cvdsvdsfds
Last active September 12, 2019 16:09
def set_velocity_body(vehicle, vx, vy, vz, duration):
""" Remember: vz is positive downward!!!
http://ardupilot.org/dev/docs/copter-commands-in-guided-mode.html
Bitmask to indicate which dimensions should be ignored by the vehicle
(a value of 0b0000000000000000 or 0b0000001000000000 indicates that
none of the setpoint dimensions should be ignored). Mapping:
bit 1: x, bit 2: y, bit 3: z,
bit 4: vx, bit 5: vy, bit 6: vz,
bit 7: ax, bit 8: ay, bit 9:
import numpy as np
import cv2
from picamera import PiCamera
from picamera.array import PiRGBArray
import math
import time
def ironmaiden(x, y, w, h, frame, t, color, a):
#!/usr/bin/python
import serial as sl
import time
ser = sl.Serial('COM10', baudrate=9600)
rawdata=[]
count = 0
a = str(ser.readline())
while count < 70: