×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Increasing max CCD Simulator size?

  • Posts: 314
  • Thank you received: 34
I dont know if it wuld be useful for others but I just tried to simulate my Canon 700D with the CCD Simulator but it seems that SIM_XRES/SIM_YRES is limited up to 4096.
My canon has X res of 5184, so I cant simulate it.
--= human, without Windows™ =--
pls excuse my bad english! :)
7 years 1 month ago #14464

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

  • Posts: 35
  • Thank you received: 1
Only way coming to my mind is to go into the ccd_simulator.cpp and change the max value of the SIM_XRES and SIM_YRES Number Properties in initProperties().
bool CCDSim::initProperties()
{
    //  Most hardware layers wont actually have indi properties defined
    //  but the simulators are a special case
    INDI::CCD::initProperties();
 
    IUFillNumber(&SimulatorSettingsN[0],"SIM_XRES","CCD X resolution","%4.0f",0,4096,0,1280);
    IUFillNumber(&SimulatorSettingsN[1],"SIM_YRES","CCD Y resolution","%4.0f",0,4096,0,1024);
    IUFillNumber(&SimulatorSettingsN[2],"SIM_XSIZE","CCD X Pixel Size","%4.2f",0,60,0,5.2);
    IUFillNumber(&SimulatorSettingsN[3],"SIM_YSIZE","CCD Y Pixel Size","%4.2f",0,60,0,5.2);
    IUFillNumber(&SimulatorSettingsN[4],"SIM_MAXVAL","CCD Maximum ADU","%4.0f",0,65000,0,65000);
    IUFillNumber(&SimulatorSettingsN[5],"SIM_BIAS","CCD Bias","%4.0f",0,6000,0,10);
    IUFillNumber(&SimulatorSettingsN[6],"SIM_SATURATION","Saturation Mag","%4.1f",0,20,0,1.0);
    IUFillNumber(&SimulatorSettingsN[7],"SIM_LIMITINGMAG","Limiting Mag","%4.1f",0,20,0,17.0);
    IUFillNumber(&SimulatorSettingsN[8],"SIM_NOISE","CCD Noise","%4.0f",0,6000,0,10);
    IUFillNumber(&SimulatorSettingsN[9],"SIM_SKYGLOW","Sky Glow (magnitudes)","%4.1f",0,6000,0,19.5);
    IUFillNumber(&SimulatorSettingsN[10],"SIM_OAGOFFSET","Oag Offset (arcminutes)","%4.1f",0,6000,0,0);
    IUFillNumber(&SimulatorSettingsN[11],"SIM_POLAR","PAE (arcminutes)","%4.1f",-600,600,0,0); /* PAE = Polar Alignment Error */
    IUFillNumber(&SimulatorSettingsN[12],"SIM_POLARDRIFT","PAE Drift (minutes)","%4.1f",0,6000,0,0);
    IUFillNumber(&SimulatorSettingsN[13],"SIM_ROTATION","Rotation CW (degrees)","%4.1f",-360,360,0,0);
IUFillNumberVector(SimulatorSettingsNV,SimulatorSettingsN,14,getDeviceName(),"SIMULATOR_SETTINGS","Simulator Settings","Simulator Config",IP_RW,60,IPS_IDLE);

from here: ccd_simulator.cpp
The following user(s) said Thank You: pauledd
7 years 1 month ago #14493

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

  • Posts: 314
  • Thank you received: 34
Thanks, that works.
--= human, without Windows™ =--
pls excuse my bad english! :)
7 years 1 month ago #14536

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

  • Posts: 140
  • Thank you received: 9
Is there any way to modify this without having to change the source code and compiling?
5 years 11 months ago #24794

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

You want to increase it more than 8192x8192? If yes, then you need to edit the code.
The following user(s) said Thank You: John S.
5 years 11 months ago #24805

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

  • Posts: 140
  • Thank you received: 9
8192x8192 is plenty. I thought is was maxed at 4096x4096.
5 years 11 months ago #24809

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

Time to create page: 0.534 seconds