Rev 714 | Rev 810 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 714 | Rev 799 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | s16 Azimuth; // angle in 1 deg measured clockwise from north |
24 | s16 Azimuth; // angle in 1 deg measured clockwise from north |
25 | s16 Elevation; // angle in 0.1 deg measured upwards from horizont |
25 | s16 Elevation; // angle in 0.1 deg measured upwards from horizont |
26 | u8 UpdateMask; |
26 | u8 UpdateMask; |
27 | } __attribute__((packed)) CAM_Orientation_t; |
27 | } __attribute__((packed)) CAM_Orientation_t; |
Line -... | Line 28... | ||
- | 28 | ||
- | 29 | typedef struct |
|
- | 30 | { |
|
- | 31 | s32 x; |
|
- | 32 | s32 y; |
|
- | 33 | } __attribute__((packed)) Vec2D_t; |
|
28 | 34 | ||
29 | extern CAM_Orientation_t CAM_Orientation; |
35 | extern CAM_Orientation_t CAM_Orientation; |
30 | extern Point_t* GPS_pWaypoint; |
36 | extern Point_t* GPS_pWaypoint; |
31 | extern u8 MaxNumberOfWaypoints; // should be 32 |
37 | extern u8 MaxNumberOfWaypoints; // should be 32 |
32 | extern u16 AbsoluteFlyingRange_m; // Maximum distance that the MK is not allowed to exceed - keep zero if not used |
38 | extern u16 AbsoluteFlyingRange_m; // Maximum distance that the MK is not allowed to exceed - keep zero if not used |
Line 36... | Line 42... | ||
36 | extern GPS_Pos_t GPS_FailsafePosition; |
42 | extern GPS_Pos_t GPS_FailsafePosition; |
37 | extern u8 SimulationFlags; |
43 | extern u8 SimulationFlags; |
38 | extern u8 MK_FlyingWithGps; |
44 | extern u8 MK_FlyingWithGps; |
39 | extern u8 CurrentlyFlyingWaypoints; |
45 | extern u8 CurrentlyFlyingWaypoints; |
40 | extern void ConfirmGpsUpdateRate(u16); |
46 | extern void ConfirmGpsUpdateRate(u16); |
- | 47 | extern int PointPolyCheck( Vec2D_t P, Vec2D_t* V, int n ); |
|
- | 48 | extern u8 UpdateFlyzoneTimer; |
|
Line 41... | Line 49... | ||
41 | 49 | ||
42 | void GPS_Init(void); |
50 | void GPS_Init(void); |
43 | void GPS_Navigation(gps_data_t *pGPS_Data, GPS_Stick_t* pGPS_Stick); |
51 | void GPS_Navigation(gps_data_t *pGPS_Data, GPS_Stick_t* pGPS_Stick); |
44 | void CalcHeadFree(void); |
52 | void CalcHeadFree(void); |