increase clocking speed, esp. making ars_get_pos() faster

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2919 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.11
Stéphane Fillod, F8CFE 2010-05-25 06:56:52 +00:00
rodzic fcb1a784c1
commit efd45500b8
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -57,7 +57,7 @@
#define ARS_BRAKE_DELAY (100*1000) /* usecs */
#define ARS_SETTLE_DELAY (500*1000) /* usecs */
#define PP_IO_PERIOD (4*1000) /* usecs */
#define PP_IO_PERIOD (25) /* usecs */
#define NUM_SAMPLES 3
/* Check return value, with appropriate unlocking upon error.
@ -400,6 +400,9 @@ ars_set_position(ROT *rot, azimuth_t az, elevation_t el)
return retval;
}
/* wait a little */
usleep(10*1000);
retval = ars_get_position(rot, &curr_az, &curr_el);
if (retval != RIG_OK) {
ars_stop(rot);