Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed May 4, 2024
1 parent 54a1cc8 commit 9146010
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions drivers/ccd/ccd_simulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -730,8 +730,6 @@ int CCDSim::DrawCcdFrame(INDI::CCDChip * targetChip)
if (pp != nullptr)
{
char line[256];
int stars = 0;
int lines = 0;

while (fgets(line, 256, pp) != nullptr)
{
Expand All @@ -753,9 +751,6 @@ int CCDSim::DrawCcdFrame(INDI::CCDChip * targetChip)
&band, &c, plate, ob, &dist, &dir);
if (rc == 12)
{
lines++;
stars++;

// Convert the ra/dec to standard co-ordinates
double sx; // standard co-ords
double sy; //
Expand Down Expand Up @@ -931,14 +926,13 @@ int CCDSim::DrawImageStar(INDI::CCDChip * targetChip, float mag, float x, float
// 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;
//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 9146010

Please sign in to comment.