kopia lustrzana https://github.com/Hamlib/Hamlib
Update LGPL header in AMSAT source files.
TNX to Lucian Laga, YO6PLB, for the notification.Hamlib-1.2.15
rodzic
2d8deab072
commit
c852398289
|
@ -3,19 +3,19 @@
|
||||||
* Copyright (c) 2011 by Stephane Fillod
|
* Copyright (c) 2011 by Stephane Fillod
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or
|
||||||
* it under the terms of the GNU Library General Public License as
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* published by the Free Software Foundation; either version 2 of
|
* License as published by the Free Software Foundation; either
|
||||||
* the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* GNU Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -47,13 +47,13 @@ if100_set_position(ROT *rot, azimuth_t az, elevation_t el)
|
||||||
float az_scale, el_scale;
|
float az_scale, el_scale;
|
||||||
|
|
||||||
rig_debug(RIG_DEBUG_TRACE, "%s called: %f %f\n", __func__, az, el);
|
rig_debug(RIG_DEBUG_TRACE, "%s called: %f %f\n", __func__, az, el);
|
||||||
|
|
||||||
az_scale = 255./(rot->state.max_az - rot->state.min_az);
|
az_scale = 255./(rot->state.max_az - rot->state.min_az);
|
||||||
el_scale = 255./180;
|
el_scale = 255./180;
|
||||||
|
|
||||||
az_i = (int)round((az - rot->state.min_az) * az_scale);
|
az_i = (int)round((az - rot->state.min_az) * az_scale);
|
||||||
el_i = (int)round(el * el_scale);
|
el_i = (int)round(el * el_scale);
|
||||||
|
|
||||||
rig_debug(RIG_DEBUG_TRACE, "%s output az: %d el: %d\n", __func__, az_i, el_i);
|
rig_debug(RIG_DEBUG_TRACE, "%s output az: %d el: %d\n", __func__, az_i, el_i);
|
||||||
dataout = ((el_i & 0xff) << 8) + (az_i & 0xff);
|
dataout = ((el_i & 0xff) << 8) + (az_i & 0xff);
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue