@@ -82,8 +82,6 @@ class ProfileWizard : public wxDialog
82
82
wxStaticBitmap *m_scaleIcon;
83
83
wxStaticText *m_pixelScale;
84
84
wxChoice *m_pBinningLevel;
85
- wxRadioButton *m_pBits8;
86
- wxRadioButton *m_pBits16;
87
85
wxSpinCtrlDouble *m_pFocalLength;
88
86
wxStaticText *m_pFocalLengthWarning;
89
87
wxSpinCtrlDouble *m_pGuideSpeed;
@@ -270,21 +268,12 @@ ProfileWizard::ProfileWizard(wxWindow *parent, bool showGreeting)
270
268
" With long focal length guide scopes and OAGs, binning can allow use of fainter guide "
271
269
" stars. For more common setups, it's better to leave binning at 1." ));
272
270
m_pBinningLevel->SetSelection (0 );
273
- m_pBits8 = new wxRadioButton (this , wxID_ANY, _ (" 8-bit" ));
274
- m_pBits8->SetToolTip (_ (" Choose this if your guide camera driver downloads 8-bit data" ));
275
- m_pBits16 = new wxRadioButton (this , wxID_ANY, _ (" 16-bit" ));
276
- m_pBits16->SetToolTip (_ (" Choose this if your guide camera driver downoads 16-bit data. Requires a camera with 10, 12, 14 "
277
- " or 16-bit ADC electronics" ));
271
+
278
272
wxBoxSizer *sz = new wxBoxSizer (wxHORIZONTAL);
279
273
sz->Add (Label (this , _ (" Binning level" )), 0 , wxALL | wxALIGN_CENTER_VERTICAL, 5 );
280
274
sz->Add (m_pBinningLevel, 0 , wxALL | wxALIGN_CENTER_VERTICAL, 5 );
281
275
m_pUserProperties->Add (sz, wxGBPosition (1 , 1 ), wxDefaultSpan, 0 , 0 );
282
- // Camera bit depth
283
- wxBoxSizer *sz2 = new wxBoxSizer (wxHORIZONTAL);
284
- sz2->Add (Label (this , _ (" Bit depth (bits/pixel)" )), 0 , wxALL | wxALIGN_CENTER_VERTICAL, 5 );
285
- sz2->Add (m_pBits8, 0 , wxALL | wxALIGN_CENTER_VERTICAL, 5 );
286
- sz2->Add (m_pBits16, 0 , wxALL | wxALIGN_CENTER_VERTICAL, 5 );
287
- m_pUserProperties->Add (sz2, wxGBPosition (2 , 1 ), wxDefaultSpan, 0 , 0 );
276
+
288
277
// Focal length
289
278
m_pFocalLength = pFrame->MakeSpinCtrlDouble (this , ID_FOCALLENGTH, wxEmptyString, wxDefaultPosition,
290
279
wxSize (StringWidth (this , _T (" 888888" )), -1 ), wxSP_ARROW_KEYS,
@@ -631,8 +620,7 @@ bool ProfileWizard::SemanticCheck(DialogState state, int change)
631
620
case STATE_GREETINGS:
632
621
break ;
633
622
case STATE_CAMERA:
634
- bOk = (m_SelectedCamera.length () > 0 && m_PixelSize > 0 && m_FocalLength > 0 &&
635
- (m_pBits8->GetValue () || m_pBits16->GetValue ()) && m_SelectedCamera != _ (" None" ));
623
+ bOk = (m_SelectedCamera.length () > 0 && m_PixelSize > 0 && m_FocalLength > 0 && m_SelectedCamera != _ (" None" ));
636
624
if (!bOk)
637
625
ShowStatus (_ (" Please specify camera type, guider focal length, camera bit-depth, and guide camera pixel size" ));
638
626
break ;
@@ -983,10 +971,7 @@ void ProfileWizard::WrapUp()
983
971
double ImageScale = MyFrame::GetPixelScale (m_PixelSize, m_FocalLength, binning);
984
972
if (ImageScale < 2.0 )
985
973
pConfig->Profile .SetBoolean (" /guider/onestar/MassChangeThresholdEnabled" , false );
986
- if (m_pBits8->GetValue ())
987
- pConfig->Profile .SetInt (" /camera/SaturationADU" , 255 );
988
- else
989
- pConfig->Profile .SetInt (" /camera/SaturationADU" , 65535 );
974
+ pConfig->Profile .SetInt (" /camera/SaturationADU" , 0 ); // Default will be updated with first auto-find to reflect bpp
990
975
991
976
GuideLog.EnableLogging (true ); // Especially for newbies
992
977
@@ -1161,8 +1146,6 @@ static double GetPixelSize(GuideCamera *cam)
1161
1146
1162
1147
void ProfileWizard::InitCameraProps (bool tryConnect)
1163
1148
{
1164
- m_pBits8->Enable (true );
1165
- m_pBits16->Enable (true );
1166
1149
if (tryConnect)
1167
1150
{
1168
1151
// Pixel size
@@ -1182,24 +1165,6 @@ void ProfileWizard::InitCameraProps(bool tryConnect)
1182
1165
GuideCamera::GetBinningOpts (4 , &opts);
1183
1166
m_pBinningLevel->Set (opts);
1184
1167
m_pBinningLevel->SetSelection (0 );
1185
- // Bit depth
1186
- wxByte bitDepth = 0 ;
1187
- if (cam)
1188
- bitDepth = cam->BitsPerPixel ();
1189
- if (bitDepth == 0 ) // Cam doesn't report it, force the user to choose
1190
- {
1191
- m_pBits8->SetValue (false );
1192
- m_pBits16->SetValue (false );
1193
- }
1194
- else
1195
- {
1196
- m_pBits8->Enable (false );
1197
- m_pBits16->Enable (false );
1198
- if (bitDepth == 8 )
1199
- m_pBits8->SetValue (true );
1200
- else
1201
- m_pBits16->SetValue (true );
1202
- }
1203
1168
}
1204
1169
else
1205
1170
{
@@ -1211,8 +1176,6 @@ void ProfileWizard::InitCameraProps(bool tryConnect)
1211
1176
m_pPixelSize->Enable (true );
1212
1177
wxSpinDoubleEvent dummy;
1213
1178
OnPixelSizeChange (dummy);
1214
- m_pBits8->SetValue (false ); // force a user selection
1215
- m_pBits16->SetValue (false );
1216
1179
}
1217
1180
}
1218
1181
0 commit comments