Subversion Repositories svnkaklik

Rev

Details | Last modification | View Log

Rev Author Line No. Line
508 kaklik 1
/* 
2
 * Copyright (C) 2004 Darren Hutchinson (dbh@gbdt.com.au)
3
 * 
4
 * This program is free software; you can redistribute it and/or modify
5
 * it under the terms of the GNU Library General Public License as published by
6
 * the Free Software Foundation; either version 2 of the License, or (at your
7
 * option) any later version.
8
 *
9
 * This program is distributed in the hope that it will be useful, but
10
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
12
 * License for more details.
13
 * 
14
 * You should have received a copy of the GNU Library General Public License
15
 * along with this software; see the file COPYING.  If not, write to
16
 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
17
 * MA 02111-1307, USA. 
18
 *
19
 * $Id: combine.h,v 1.4 2004/04/05 06:42:15 dbh Exp $
20
 */
21
#ifndef _COMBINE_H_
22
#define _COMBINE_H_
23
 
24
#include <inttypes.h>
25
 
26
/* This file gives the "public" interface for the "combining" function
27
 * that takes the various inputs (siderial rate, paddle buttons, serial
28
 * input, guider input) to derive speeds for the RA and DEC axis
29
 */
30
 
31
/* Speed definitions */
32
#define SPEED_0_X	0
33
#define SPEED_0_33_X	1
34
#define SPEED_0_67_X	2
35
#define SPEED_1_X	3
36
#define SPEED_1_33_X    4
37
#define SPEED_1_67_X    5
38
#define SPEED_2_X	6
39
#define SPEED_4_X       7
40
#define SPEED_8_X	8
41
#define SPEED_16_X	9
42
#define SPEED_SPIN      10
43
 
44
#define SPEED_SIDERIAL	SPEED_1_X
45
 
46
struct rateInput_s
47
{
48
	int8_t		siderialRate;
49
 
50
	int8_t		paddleRaRate;
51
	int8_t		paddleDecRate;
52
 
53
	int8_t		serialRaRate;
54
	int8_t		serialDecRate;
55
 
56
	int8_t		guideRaRate;
57
	int8_t		guideDecRate;
58
};
59
 
60
extern struct rateInput_s	rateInput;
61
 
62
struct rateOutput_s
63
{
64
	int8_t		raRate;
65
	int8_t		decRate;
66
};
67
 
68
extern struct rateOutput_s rateOutput;
69
 
70
void updateMountSpeed(void);
71
 
72
/* TEST: defeat tracking for testing */
73
extern uint8_t          noTrack;
74
 
75
#endif /* _COMBINE_H_ */
76
 
77