Skip to content

Commit

Permalink
Let's remove this code for now. Without it EKOS starts as it should and
Browse files Browse the repository at this point in the history
all buttons are enabled.
  • Loading branch information
sajmons committed Nov 30, 2022
1 parent bac4f58 commit 9ca6619
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions indi-libcamera/indi_libcamera.cpp
Expand Up @@ -515,6 +515,7 @@ void INDILibCamera::detectCameras()
}

CameraSP.resize(cameras.size());

for (size_t i = 0; i < cameras.size(); i++)
{
CameraSP[i].fill(cameras[i]->id().c_str(), cameras[i]->id().c_str(), ISS_OFF);
Expand Down Expand Up @@ -550,11 +551,12 @@ bool INDILibCamera::Connect()
{
try
{
/*
m_StillApp.reset(new LibcameraApp(std::make_unique<StillOptions>()));
auto stillOptions = static_cast<StillOptions *>(m_StillApp->GetOptions());
stillOptions->Parse(0, nullptr);
stillOptions->immediate = true;
stillOptions->camera = CameraSP.findOnSwitchIndex();
stillOptions->camera = CameraSP.findOnSwitchIndex();
//m_StillApp->OpenCamera(); // opening camera here has no effect on EKOS
// Opening camera for still and video in the same time causes error: FATAL;IPAManager ipa_manager.cpp:109 Multiple IPAManager objects are not allowed
Expand All @@ -564,7 +566,7 @@ bool INDILibCamera::Connect()
videoOptions->camera = CameraSP.findOnSwitchIndex();
videoOptions->nopreview = true;
// m_VideoApp->OpenCamera(); // opening camera here has no effect on EKOS

*/
return true;
}
catch (std::exception &e)
Expand All @@ -588,6 +590,7 @@ bool INDILibCamera::Disconnect()
/////////////////////////////////////////////////////////////////////////////
void INDILibCamera::setup()
{

}

/////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 9ca6619

Please sign in to comment.