Welcome, Guest
Username: Password: Remember me
08 Apr 2018
INDI development team is happy to announce the release of INDI Library v1.7.0. This new exciting release builds on the maturity of INDI Library and comes with many new supported devices and fixes for existing drivers.
Read More...
  • Page:
  • 1

TOPIC: From Client, Changing exposure duration | SOLVED

From Client, Changing exposure duration. 4 years 3 weeks ago #1372

  • berger
  • berger's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Extended existing client, tutorial_six, added in main():
camera_client->setBLOBMode(B_ALSO, MYCCD, NULL);
while (1)
{
sleep(10);
printf("Main: startBlob()\n");
camera_client->takeExposure();
}
cout << "Press any key to terminate the client.\n";
also changed MyClient::takeExposure()
to:
IDLog("Taking a 1 second exposure.\n"); // now at 0.1 sec
//was: ccd_exposure->np[0].value = 1;
ccd_exposure->np[0].value = 0.1;
ccd_exposure->nnp = 1;
sendNewNumber(ccd_exposure);

But does not change exposure value of 1. Exposure stays as 1 second. What needs to be done to change exposure?

Thanks in advance.

Please Log in or Create an account to join the conversation.

From Client, Changing exposure duration. 4 years 2 weeks ago #1402

I just tested with tutorial_three (Simple CCD) and tutorial_six (Simple Client) and it works fine (there was an issue with tutorial_three it was updated to latest INDI API). After the update, I just changed 1 to 5:

ccd_exposure->np[0].value = 5;

and it worked fine. Why are you putting ccd_exposure->nnp = 1;? the only values need updating is (ccd_exposure->np[0].value)

Please Log in or Create an account to join the conversation.

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

From Client, Changing exposure duration. 4 years 2 weeks ago #1421

  • berger
  • berger's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Solved: Rebuilt Indi for new board; after changing exposure to 0.1 worked fine.
Did the "ccp->exposure->nnp=1;" after looking at the code, which seened ti use the nnp variable it seemed to me to determine whether to send the exposure value[0].
Everything working fine now. Thanks.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.070 seconds

Login



3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!


Gallery

Replica

Why INDI

Replica