Skip to content

Commit b7f0c5c

Browse files
committed
removed offset pitch and changed pitch angles
1 parent fcc67aa commit b7f0c5c

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

setup_window.py

+16-16
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ def __init__(self, data_manager, subject_dir, parent=None):
3333

3434
# Define experimental parameters first
3535
self.yaw_angles = [0, 15, -15, 30, -30]
36-
self.pitch_angles = [0, 15, -15, 30, -30]
37-
self.distances = [30, 60, 90] # cm
36+
self.pitch_angles = [90, 100, 110, 120]
37+
self.distances = [60, 90] # cm
3838

3939
# Add trial tracking
4040
self.completed_setups = set() # Track which angle/distance combinations have been done
@@ -74,17 +74,17 @@ def setup_ui(self):
7474
calibration_group = QGroupBox("Pitch Calibration")
7575
calibration_layout = QVBoxLayout()
7676

77-
# Pitch offset input
78-
offset_layout = QHBoxLayout()
79-
self.pitch_offset = QDoubleSpinBox()
80-
self.pitch_offset.setRange(-90.0,90.0)
81-
self.pitch_offset.setDecimals(1)
82-
self.pitch_offset.setSingleStep(0.5)
83-
self.pitch_offset.setValue(0.0)
84-
offset_layout.addWidget(QLabel("Natural Head Pitch Offset:"))
85-
offset_layout.addWidget(self.pitch_offset)
86-
offset_layout.addWidget(QLabel("degrees"))
87-
calibration_layout.addLayout(offset_layout)
77+
# # Pitch offset input
78+
# offset_layout = QHBoxLayout()
79+
# self.pitch_offset = QDoubleSpinBox()
80+
# self.pitch_offset.setRange(-90.0,90.0)
81+
# self.pitch_offset.setDecimals(1)
82+
# self.pitch_offset.setSingleStep(0.5)
83+
# self.pitch_offset.setValue(0.0)
84+
# offset_layout.addWidget(QLabel("Natural Head Pitch Offset:"))
85+
# offset_layout.addWidget(self.pitch_offset)
86+
# offset_layout.addWidget(QLabel("degrees"))
87+
# calibration_layout.addLayout(offset_layout)
8888

8989
calibration_group.setLayout(calibration_layout)
9090
controls_layout.addWidget(calibration_group)
@@ -383,7 +383,7 @@ def start_trial(self):
383383

384384
# Get selected pitch and apply offset correction
385385
selected_pitch = self.pitch_angles[self.pitch_combo.currentIndex()]
386-
corrected_pitch = selected_pitch - self.pitch_offset # Subtract offset to get true pitch
386+
# corrected_pitch = selected_pitch - self.pitch_offset # Subtract offset to get true pitch
387387

388388
# Prepare trial configuration
389389
trial_config = {
@@ -392,8 +392,8 @@ def start_trial(self):
392392
"setup": {
393393
"yaw": self.yaw_angles[self.yaw_combo.currentIndex()],
394394
"pitch": selected_pitch, # Store selected pitch
395-
"corrected_pitch": corrected_pitch, # Store corrected pitch
396-
"pitch_offset": self.pitch_offset, # Store offset for reference
395+
# "corrected_pitch": corrected_pitch, # Store corrected pitch
396+
# "pitch_offset": self.pitch_offset, # Store offset for reference
397397
"distance": self.distances[self.distance_combo.currentIndex()]
398398
},
399399
"conditions": {

0 commit comments

Comments
 (0)