aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThéo de la Hogue2022-11-09 16:55:10 +0100
committerThéo de la Hogue2022-11-09 16:55:10 +0100
commit04b3d6ba2a1bcdfee8f75965ccd3f03eb229533f (patch)
tree1189be3030833dc006d52a0d4177c9c1715c5665
parent018e50b24c4fe5e6b5f2b32f7d2edd924f640ec1 (diff)
downloadargaze-04b3d6ba2a1bcdfee8f75965ccd3f03eb229533f.zip
argaze-04b3d6ba2a1bcdfee8f75965ccd3f03eb229533f.tar.gz
argaze-04b3d6ba2a1bcdfee8f75965ccd3f03eb229533f.tar.bz2
argaze-04b3d6ba2a1bcdfee8f75965ccd3f03eb229533f.tar.xz
Changing method names.
-rw-r--r--src/argaze/TobiiGlassesPro2/TobiiController.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/argaze/TobiiGlassesPro2/TobiiController.py b/src/argaze/TobiiGlassesPro2/TobiiController.py
index 31bd3d8..39f4e46 100644
--- a/src/argaze/TobiiGlassesPro2/TobiiController.py
+++ b/src/argaze/TobiiGlassesPro2/TobiiController.py
@@ -354,7 +354,7 @@ class TobiiController(TobiiNetworkInterface.TobiiNetworkInterface):
def get_storage_status(self):
return self.get_status()['sys_storage']
- def get_video_freq(self):
+ def get_scene_camera_freq(self):
return self.get_configuration()['sys_sc_fps']
def set_et_freq_50(self):
@@ -366,27 +366,27 @@ class TobiiController(TobiiNetworkInterface.TobiiNetworkInterface):
data = {'sys_et_freq': 100}
json_data = super().post_request('/api/system/conf', data)
- def set_et_indoor_preset(self):
- data = {'sys_sc_preset': 'Indoor'}
- json_data = super().post_request('/api/system/conf', data)
+ def set_eye_camera_indoor_preset(self) -> str:
+ data = {'sys_ec_preset': 'Indoor'}
+ return super().post_request('/api/system/conf', data)
- def set_et_outdoor_preset(self):
+ def set_eye_camera_outdoor_preset(self) -> str:
data = {'sys_ec_preset': 'ClearWeather'}
- json_data = super().post_request('/api/system/conf', data)
+ return super().post_request('/api/system/conf', data)
- def set_video_auto_preset(self):
+ def set_scene_camera_auto_preset(self):
data = {'sys_sc_preset': 'Auto'}
json_data = super().post_request('/api/system/conf', data)
- def set_video_gaze_preset(self):
+ def set_scene_camera_gaze_preset(self):
data = {'sys_sc_preset': 'GazeBasedExposure'}
json_data = super().post_request('/api/system/conf', data)
- def set_video_freq_25(self):
+ def set_scene_camera_freq_25(self):
data = {'sys_sc_fps': 25}
json_data = super().post_request('/api/system/conf/', data)
- def set_video_freq_50(self):
+ def set_scene_camera_freq_50(self):
data = {'sys_sc_fps': 50}
json_data = super().post_request('/api/system/conf/', data)