Skip to content

Commit

Permalink
Merge branch 'indilib:master' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-englmaier authored May 4, 2024
2 parents b829cb5 + 7091f02 commit 3300f62
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions drivers/ccd/guide_simulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -662,8 +662,6 @@ int GuideSim::DrawCcdFrame(INDI::CCDChip * targetChip)
if (pp != nullptr)
{
char line[256];
int stars = 0;
int lines = 0;

while (fgets(line, 256, pp) != nullptr)
{
Expand All @@ -685,10 +683,6 @@ int GuideSim::DrawCcdFrame(INDI::CCDChip * targetChip)
&band, &c, plate, ob, &dist, &dir);
if (rc == 12)
{
lines++;
//if(c==0) {
stars++;

// Convert the ra/dec to standard co-ordinates
double sx; // standard co-ords
double sy; //
Expand Down Expand Up @@ -883,14 +877,8 @@ int GuideSim::DrawImageStar(INDI::CCDChip * targetChip, float mag, float x, floa
// scale up linearly for exposure time
flux = flux * exposure_time;

float qx;
// we need a box size that gives a radius at least 3 times fwhm
qx = seeing / ImageScalex;
qx = qx * 3;
//boxsizex = (int)qx;
//boxsizex++;
qx = seeing / ImageScaley;
qx = qx * 3;
auto qx = seeing / ImageScaley;
qx = qx * 3;
boxsizey = static_cast<int>(qx);
boxsizey++;

Expand Down

0 comments on commit 3300f62

Please sign in to comment.