1 #ifndef __CHDK_GPS_H
2 #define __CHDK_GPS_H
3
4
5
6 extern char * camera_jpeg_current_filename();
7 extern char * camera_jpeg_current_gps() ;
8 extern long get_target_file_num();
9 extern long mkdir_if_not_exist();
10 extern long kbd_get_pressed_key();
11 extern void GPS_UpdateData();
12 extern int gps_key_trap ;
13
14 extern int init_gps_navigate_to_photo(int );
15 extern int init_gps_navigate_to_home(int);
16 extern void init_gps_compass_task(int );
17 extern void init_gps_logging_task(int );
18 extern void init_gps_startup(int );
19 extern void gps_write_home();
20 extern void gps_write_timezone();
21 extern void gps_waypoint();
22
23
24
25
26 typedef struct {
27 char latitudeRef[4];
28 int latitude[6];
29 char longitudeRef[4];
30 int longitude[6];
31 char heightRef[4];
32 int height[2];
33 int timeStamp[6];
34 char status[2];
35 char mapDatum[7];
36 char dateStamp[11];
37 char unknown2[160];
38 } tGPS;
39
40
41 typedef struct {
42 char latitudeRef[4];
43 int latitude[6];
44 char longitudeRef[4];
45 int longitude[6];
46 char heightRef[4];
47 int height[2];
48 int timeStamp[6];
49 char dateStamp[11];
50 } gps_img_data;
51
52 #endif