mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-04 03:11:40 +00:00
removed websock
This commit is contained in:
@@ -124,18 +124,18 @@ class CameraHandler:
|
|||||||
socket.send_pyobj(self.image)
|
socket.send_pyobj(self.image)
|
||||||
self.p_image = socket.recv_pyobj()
|
self.p_image = socket.recv_pyobj()
|
||||||
self.nt_data = socket.recv_json()
|
self.nt_data = socket.recv_json()
|
||||||
if self.settings_manager.general_settings['curr_camera'] == cam_name:
|
# if self.settings_manager.general_settings['curr_camera'] == cam_name:
|
||||||
try:
|
# try:
|
||||||
send_all_async({
|
# send_all_async({
|
||||||
'raw_point': self.nt_data['raw_point'],
|
# 'raw_point': self.nt_data['raw_point'],
|
||||||
'point': {
|
# 'point': {
|
||||||
'pitch': self.nt_data['pitch'],
|
# 'pitch': self.nt_data['pitch'],
|
||||||
'yaw': self.nt_data['yaw'],
|
# 'yaw': self.nt_data['yaw'],
|
||||||
'fps': self.nt_data['fps']
|
# 'fps': self.nt_data['fps']
|
||||||
}
|
# }
|
||||||
})
|
# })
|
||||||
except:
|
# except:
|
||||||
pass
|
# pass
|
||||||
|
|
||||||
def camera_process(self, cam_name, port, FOV):
|
def camera_process(self, cam_name, port, FOV):
|
||||||
from fractions import Fraction
|
from fractions import Fraction
|
||||||
|
|||||||
Reference in New Issue
Block a user