Comments (8)
You're definitely right and feel free to do it. It was never meant as an example, just testing tool for interface library and it is far from perfect code. Peter
from indi.
It was perfect for me, except that confusion. I got a bit frustrated with other code, and with this code I was able to wrap it into an ascii PGM file, using the P2 header, followed by NX and NY and peak value, then all rows, and imagemagic convert it to a fits file, and i could see that it worked! That inspired me to clarify the NX and NY issue. Every beginner is confused about row major and column major storage, and there's also the issue of where 0,0 even is :-)
from indi.
There are two sections where the pixels are written to cout. In the 2nd section the camIndex is 1, instead of 0. This is where only NXNY bytes are read, instead of 2NX*NY when camIndex is 0. That didn't seem correct to me.
from indi.
Second section works with 8bit/pixel guider head (camindex = 1).
from indi.
thanks! and one final query: where is the exposure time hidden? Is that the 900 ms in sxSetTimer ? I don't have the camera with me today, but will test tomorrow.
from indi.
In this particular case it is hidden in usleep(1000) at lines 113 and 136 - computer timed mode is used.
Camera has also built-in timer for camera timed mode for short (about 3s) exposure times. In this case you have instead of sxClearPixels/sxLatchPixels/sxReadPixels sequence use just sxExposePixels/sxReadPixels.
Actually, it is not so easy as it looks from sxccdtest.cpp, in real driver you need to measure and handle difference between odd and even frames for interlaced cameras, flush 3s before readout for long exposures etc.
from indi.
Maybe you can also look at this:
https://github.com/indigo-astronomy/indigo/blob/master/indigo_drivers/ccd_sx/indigo_ccd_sx.c
it is slightly different approach, but it may help you to understand how to handle different camera modes.
from indi.
Looks like issue is considered resolved.
from indi.
Related Issues (20)
- Silent failure if ampersand is not closed out with a semicolon for entity HOT 3
- indilib-driver-duino-2.0.5 libfirmata not being installed on linux HOT 3
- Cannot connect to flip-flat with virtual serial port unless 'Drop RTS' checks are bypassed as follows HOT 2
- ieaf-focus reversing direction doesn't work HOT 3
- Pegasus PPBA/M missing auto dew aggressiveness setting HOT 4
- "Fast Exposure" option undocumented and unclear HOT 5
- Sesto Senso 2 Bug on TimerHit breaking AF Overscan in Ekos Focus HOT 1
- Sesto Senso 2 Not reporting focuser position correctly
- indi-rpicam does not install HOT 1
- Change french translation for "Pier Side" HOT 1
- Build fails with LTO HOT 3
- SCT focuser interface compliance HOT 6
- Joystick support for SCT focuser HOT 2
- Bug in fli_pdf focuser driver not handling AF Overscan properly HOT 3
- JMI MotoFocus Plus connection error HOT 14
- Telescope properties are missing on version 2.0.6 HOT 1
- Takahashi Temma Driver Co-ordinates and Feedback Bug HOT 2
- Error when compiling sources from repo HOT 3
- USB_Dewpoint HOT 5
- Add Pulse Guiding to LX200 Classic Driver over Serial Port HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from indi.