@@ -33,8 +33,8 @@ def __init__(self, data_manager, subject_dir, parent=None):
33
33
34
34
# Define experimental parameters first
35
35
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
38
38
39
39
# Add trial tracking
40
40
self .completed_setups = set () # Track which angle/distance combinations have been done
@@ -74,17 +74,17 @@ def setup_ui(self):
74
74
calibration_group = QGroupBox ("Pitch Calibration" )
75
75
calibration_layout = QVBoxLayout ()
76
76
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)
88
88
89
89
calibration_group .setLayout (calibration_layout )
90
90
controls_layout .addWidget (calibration_group )
@@ -383,7 +383,7 @@ def start_trial(self):
383
383
384
384
# Get selected pitch and apply offset correction
385
385
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
387
387
388
388
# Prepare trial configuration
389
389
trial_config = {
@@ -392,8 +392,8 @@ def start_trial(self):
392
392
"setup" : {
393
393
"yaw" : self .yaw_angles [self .yaw_combo .currentIndex ()],
394
394
"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
397
397
"distance" : self .distances [self .distance_combo .currentIndex ()]
398
398
},
399
399
"conditions" : {
0 commit comments