Extended existing client, tutorial_six, added in main():
camera_client->setBLOBMode(B_ALSO, MYCCD, NULL);
cout << "Press any key to terminate the client.\n";
also changed MyClient::takeExposure()
IDLog("Taking a 1 second exposure.\n"); // now at 0.1 sec
//was: ccd_exposure->np.value = 1;
ccd_exposure->np.value = 0.1;
ccd_exposure->nnp = 1;
But does not change exposure value of 1. Exposure stays as 1 second. What needs to be done to change exposure?
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.value = 5;
and it worked fine. Why are you putting ccd_exposure->nnp = 1;? the only values need updating is (ccd_exposure->np.value)
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.
Everything working fine now. Thanks.