kstars
gmath.cpp
Go to the documentation of this file.
150 bool cgmath::set_guider_params( double ccd_pix_wd, double ccd_pix_ht, double guider_aperture, double guider_focal )
167 void cgmath::get_guider_params( double *ccd_pix_wd, double *ccd_pix_ht, double *guider_aperture, double *guider_focal )
195 ROT_Z = RotateZ( -M_PI*reticle_angle/180.0 ); // NOTE!!! sing '-' derotates star coordinate system
364 if( size_idx < 0 || size_idx >= (int)(sizeof(guide_squares)/sizeof(guide_square_t))-1 || pimage == NULL)
442 bool cgmath::calc_and_set_reticle2( double start_ra_x, double start_ra_y, double end_ra_x, double end_ra_y, double start_dec_x, double start_dec_y, double end_dec_x, double end_dec_y)
619 //qDebug() << "Search Region: X1: " << x1 << ", X2: " << x2 << " , Y1: " << y1 << " , Y2: " << y2 << endl;
644 point_t bbox_rb = { (int)square_pos.x+square_size+SMART_FRAME_WIDTH, (int)square_pos.y+square_size+SMART_FRAME_WIDTH };
819 qDebug() << "At #" << i << "drift[" << k << "][" << idx << "] = " << drift[k][idx] << " , t_delta: " << t_delta << endl;
842 out_params.pulse_length[k] = fabs(out_params.delta[k]*in_params.proportional_gain[k] + drift_integral[k]*in_params.integral_gain[k]);
843 out_params.pulse_length[k] = out_params.pulse_length[k] <= in_params.max_pulse_length[k] ? out_params.pulse_length[k] : in_params.max_pulse_length[k];
859 out_params.pulse_dir[k] = out_params.delta[k] > 0 ? RA_DEC_DIR : RA_INC_DIR; // GUIDE_RA. right dir - decreases GUIDE_RA
910 //move_square( round(star_pos.x) - (double)square_size/2, round(star_pos.y) - (double)square_size/2 );
911 move_square( ceil(star_pos.x) - (double)square_size/2, ceil(star_pos.y) - (double)square_size/2 );
931 qDebug() << "Reticle Sky Coords RA: " << arc_reticle_pos.x << " DEC: " << arc_reticle_pos.y << endl;
939 qDebug() << "-------> BEFORE ROTATION Diff RA: " << star_pos.x << " DEC: " << star_pos.y << endl;
950 qDebug() << "-------> AFTER ROTATION Diff RA: " << star_pos.x << " DEC: " << star_pos.y << endl;
951 qDebug() << "RA channel ticks: " << channel_ticks[GUIDE_RA] << " DEC channel ticks: " << channel_ticks[GUIDE_DEC] << endl;
1000 sigma = sigma_prev*((double)ticks-1)/(double)ticks + (1/(double)ticks)*out_params.delta[GUIDE_RA]*out_params.delta[GUIDE_RA];
Definition: fitsimage.h:73
Definition: indicommon.h:28
bool set_guider_params(double ccd_pix_wd, double ccd_pix_ht, double guider_aperture, double guider_focal)
Definition: gmath.cpp:150
Definition: gmath.h:108
Definition: common.h:36
Definition: fitsview.h:81
int get_square_algorithm_index(void) const
Definition: gmath.cpp:241
Definition: fitsimage.h:61
Definition: gmath.h:95
void get_star_screen_pos(double *dx, double *dy) const
Definition: gmath.cpp:314
Definition: indicommon.h:29
Definition: gmath.h:23
Definition: indicommon.h:26
float * get_data_buffer(int *width, int *height, int *length, int *size)
Definition: gmath.cpp:135
Definition: gmath.h:75
Definition: gmath.h:58
bool get_reticle_params(double *x, double *y, double *ang) const
Definition: gmath.cpp:224
static double precalc_proportional_gain(double g_rate)
Definition: gmath.cpp:417
Definition: gmath.h:34
bool calc_and_set_reticle2(double start_ra_x, double start_ra_y, double end_ra_x, double end_ra_y, double start_dec_x, double start_dec_y, double end_dec_x, double end_dec_y)
Definition: gmath.cpp:442
double calc_phi(double start_x, double start_y, double end_x, double end_y) const
Definition: gmath.cpp:497
Definition: indicommon.h:25
bool set_reticle_params(double x, double y, double ang)
Definition: gmath.cpp:176
Definition: indicommon.h:27
void get_guider_params(double *ccd_pix_wd, double *ccd_pix_ht, double *guider_aperture, double *guider_focal)
Definition: gmath.cpp:167
bool calc_and_set_reticle(double start_x, double start_y, double end_x, double end_y)
Definition: gmath.cpp:426
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.