rkaczorek / astroberry-server

Astroberry Server is a ready to use system for Raspberry Pi for controlling all your astronomy equipment
GNU General Public License v3.0
266 stars 19 forks source link

Weird ordering issue forcing monochrome images from color ccd #188

Open wesm912 opened 2 years ago

wesm912 commented 2 years ago

Equipment: RPi 4, 4Gb, 128Gb drive; ZWO ASI183C pro color camera, ZWO ASI 120MM-S guide camera (mono). The 183 is plugged into USB 3 port on the RPi, the 120 is plugged into the USB hub on the back of the 183 (shorter cables, no tangles from motion, etc). For some reason, the Ekos profile editor insists on recognizing the 120 as camera 1, and the 183 as camera 2. So If I fill out the profile with main camera as Zwo Camera 1 and the guide camera as Zwo camera 2, and then capture images with the 183, they come out monochrome. Note that the profile editor doesn't allow you to select specific ZWO camera models, only ZWO CCD, ZWO Camera 1, and ZWO Camera 2. Things get even more confusing if I select ZWO CCD for the main camera, then INDI tries to set up connections to three cameras. It's hard to tell if this is an astroberry bug, or an Ekos (Kstars) bug. However, if I connect both cameras directly to a laptop, I don't get the same behavior, and the 183 takes color images.

Workaround: select Camera 2 for the main camera, Camera 1 for the guide camera.

Really, the best solution would be for the Ekos profile editor. to specify specific camera models for main and guide cameras.

rkaczorek commented 2 years ago

Using 2 ZWO cams it is recommended to use ZWO Camera 1 and ZWO Camera 2 INDI drivers. You can set which cam is managed by which driver in INDI configuration panel tabs for each camera. If you guide with PHD2 do not use 2nd camera driver. Just select it in PHD2 directly. No need for INDI to be intermediary between guiding camera and PHD2. In such the case you should still use ZWO Camera 1 driver in Ekos profile. Last but not least, if you played a lot with this setup I would suggest to remove config files (.xml) for your cams from /home/astroberry/.indi (you can easily identify them by name). Then create profile with just the main cam (ZWO Camera 1) and after starting the profile select proper device in INDI control panel. Save it in INDI control panel camera options tab. Restart the profile and verify if it is picked up correctly. Then (if you really need to) edit Ekos profile and add ZWO Camera 2 as a guiding cam. Repeat the steps as for main cam and remember to save the options. If it works for you report back please.