Subversion Repositories Projects

Rev

Rev 761 | Rev 902 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 761 Rev 762
1
/****************************************************************************
1
/****************************************************************************
2
 *   Copyright (C) 2009-2010 by Claas Anders "CaScAdE" Rathje               *
2
 *   Copyright (C) 2009-2010 by Claas Anders "CaScAdE" Rathje               *
3
 *   admiralcascade@gmail.com                                               *
3
 *   admiralcascade@gmail.com                                               *
4
 *   Project-URL: http://www.mylifesucks.de/oss/c-osd/                      *
4
 *   Project-URL: http://www.mylifesucks.de/oss/c-osd/                      *
5
 *                                                                          *
5
 *                                                                          *
6
 *   This program is free software; you can redistribute it and/or modify   *
6
 *   This program is free software; you can redistribute it and/or modify   *
7
 *   it under the terms of the GNU General Public License as published by   *
7
 *   it under the terms of the GNU General Public License as published by   *
8
 *   the Free Software Foundation; either version 2 of the License.         *
8
 *   the Free Software Foundation; either version 2 of the License.         *
9
 *                                                                          *
9
 *                                                                          *
10
 *   This program is distributed in the hope that it will be useful,        *
10
 *   This program is distributed in the hope that it will be useful,        *
11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of         *
11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of         *
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
13
 *   GNU General Public License for more details.                           *
13
 *   GNU General Public License for more details.                           *
14
 *                                                                          *
14
 *                                                                          *
15
 *   You should have received a copy of the GNU General Public License      *
15
 *   You should have received a copy of the GNU General Public License      *
16
 *   along with this program; if not, write to the                          *
16
 *   along with this program; if not, write to the                          *
17
 *   Free Software Foundation, Inc.,                                        *
17
 *   Free Software Foundation, Inc.,                                        *
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.              *
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.              *
19
 ****************************************************************************/
19
 ****************************************************************************/
-
 
20
 
-
 
21
#ifndef _OSD_HELPERS_H
-
 
22
#define _OSD_HELPERS_H
20
 
23
 
21
/* ##########################################################################
24
/* ##########################################################################
22
 * compass stuff
25
 * compass stuff
23
 * ##########################################################################*/
26
 * ##########################################################################*/
24
 
27
 
25
/**
28
/**
26
 * convert the <heading> gotton from NC into an index
29
 * convert the <heading> gotton from NC into an index
27
 */
30
 */
28
uint8_t heading_conv(uint16_t);
31
uint8_t heading_conv(uint16_t);
29
 
32
 
30
/**
33
/**
31
 * convert the <heading> gotton from NC into a more
34
 * convert the <heading> gotton from NC into a more
32
 * precise index
35
 * precise index
33
 */
36
 */
34
uint8_t heading_fine_conv(uint16_t);
37
uint8_t heading_fine_conv(uint16_t);
35
 
38
 
36
/**
39
/**
37
 * draw a compass rose at <x>/<y> for <heading>
40
 * draw a compass rose at <x>/<y> for <heading>
38
 */
41
 */
39
void draw_compass(uint8_t, uint8_t, uint16_t);
42
void draw_compass(uint8_t, uint8_t, uint16_t);
40
 
43
 
41
/* ##########################################################################
44
/* ##########################################################################
42
 * battery index
45
 * battery index
43
 * ##########################################################################*/
46
 * ##########################################################################*/
44
/**
47
/**
45
 * draw a battery symbol at <x>/<y> according to <voltage>
48
 * draw a battery symbol at <x>/<y> according to <voltage>
46
 */
49
 */
47
void draw_battery(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t);
50
void draw_battery(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t);
48
 
51
 
49
/* ##########################################################################
52
/* ##########################################################################
50
 * variometer
53
 * variometer
51
 * ##########################################################################*/
54
 * ##########################################################################*/
52
/**
55
/**
53
 * draw variometer arrows at <x>/<y> according to <variometer>
56
 * draw variometer arrows at <x>/<y> according to <variometer>
54
 */
57
 */
55
void draw_variometer(uint8_t, uint8_t, int16_t);
58
void draw_variometer(uint8_t, uint8_t, int16_t);
56
 
59
 
57
/**
60
/**
58
 * draw a bigger vario with middle at <x>/<y> acording to <variometer>
61
 * draw a bigger vario with middle at <x>/<y> acording to <variometer>
59
 */
62
 */
60
void draw_big_variometer(uint8_t, uint8_t, int16_t);
63
void draw_big_variometer(uint8_t, uint8_t, int16_t);
61
 
64
 
62
/* ##########################################################################
65
/* ##########################################################################
63
 * artificial horizon
66
 * artificial horizon
64
 * ##########################################################################*/
67
 * ##########################################################################*/
65
/**
68
/**
66
 * draw roll und nick indicators (could be enhanced to full artificial horizon)
69
 * draw roll und nick indicators (could be enhanced to full artificial horizon)
67
 * from line <firstline> to <listlines> for given <nick> and <roll> values
70
 * from line <firstline> to <listlines> for given <nick> and <roll> values
68
 */
71
 */
69
void draw_artificial_horizon(uint8_t, uint8_t, int16_t, int16_t);
72
void draw_artificial_horizon(uint8_t, uint8_t, int16_t, int16_t);
70
 
73
 
71
void draw_agressiva_artificial_horizon(uint8_t, uint8_t, int16_t, int16_t);
74
void draw_agressiva_artificial_horizon(uint8_t, uint8_t, int16_t, int16_t);
-
 
75
 
-
 
76
 
-
 
77
#endif
72
 
78