Subversion Repositories NaviCtrl

Rev

Rev 160 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 160 Rev 161
Line 14... Line 14...
14
        u8 SWMinor;
14
        u8 SWMinor;
15
        u8 ProtoMajor;
15
        u8 ProtoMajor;
16
        u8 ProtoMinor;
16
        u8 ProtoMinor;
17
        u8 SWPatch;
17
        u8 SWPatch;
18
        u8 Reserved[5];
18
        u8 Reserved[5];
19
}  __attribute__((packed)) UART_VersionInfo_t;
19
} __attribute__((packed)) UART_VersionInfo_t;
Line 20... Line 20...
20
 
20
 
Line 21... Line 21...
21
extern UART_VersionInfo_t UART_VersionInfo;
21
extern UART_VersionInfo_t UART_VersionInfo;
22
 
22
 
23
 
23
 
24
typedef struct
24
typedef struct
25
{
25
{
26
   s16 AngleNick;       // in 0.1 deg
26
        s16 AngleNick;  // in 0.1 deg
27
   s16 AngleRoll;   // in 0.1 deg
27
        s16 AngleRoll;   // in 0.1 deg
Line 28... Line 28...
28
   s16 Heading;         // in 0.1 deg
28
        s16 Heading;    // in 0.1 deg
Line 61... Line 61...
61
typedef struct
61
typedef struct
62
{
62
{
63
        s16 Nick;
63
        s16 Nick;
64
        s16 Roll;
64
        s16 Roll;
65
        s16 Compass;                                    // angle between north and head of the MK
65
        s16 Compass;                                    // angle between north and head of the MK
66
}  __attribute__((packed)) Attitude_t;
66
} __attribute__((packed)) Attitude_t;
Line 67... Line 67...
67
 
67
 
68
typedef struct
68
typedef struct
69
{
69
{
70
        u16 Distance;                                   // distance to target in dm
70
        u16 Distance;                                   // distance to target in dm
71
        s16 Bearing;                                    // course to target in deg
71
        s16 Bearing;                                    // course to target in deg
Line 72... Line 72...
72
}  __attribute__((packed)) GPS_PosDev_t;
72
} __attribute__((packed)) GPS_PosDev_t;
Line 73... Line 73...
73
 
73
 
74
#define NAVIDATA_VERSION 2
74
#define NAVIDATA_VERSION 2
Line 95... Line 95...
95
        s8  AngleRoll;                                  // current Rick angle in 1°
95
        s8  AngleRoll;                                  // current Rick angle in 1°
96
        u8  RC_Quality;                                 // RC_Quality
96
        u8  RC_Quality;                                 // RC_Quality
97
        u8  MKFlags;                                    // Flags from FC
97
        u8  MKFlags;                                    // Flags from FC
98
        u8  NCFlags;                                    // Flags from NC
98
        u8  NCFlags;                                    // Flags from NC
99
        u8  Errorcode;                                  // 0 --> okay
99
        u8  Errorcode;                                  // 0 --> okay
100
    u8  OperatingRadius;                        // current operation radius around the Home Position in m
100
        u8  OperatingRadius;                    // current operation radius around the Home Position in m
101
        s16 TopSpeed;                                   // velocity in vertical direction in cm/s
101
        s16 TopSpeed;                                   // velocity in vertical direction in cm/s
102
        u8  TargetHoldTime;                             // time in s to stay at the given target, counts down to 0 if target has been reached
102
        u8  TargetHoldTime;                             // time in s to stay at the given target, counts down to 0 if target has been reached
103
        u8  RC_RSSI;                                    // Receiver signal strength (since version 2 added)
103
        u8  RC_RSSI;                                    // Receiver signal strength (since version 2 added)
104
        s16 SetpointAltitude;           // setpoint for altitude
104
        s16 SetpointAltitude;                   // setpoint for altitude
105
        u8  Gas;                                            // for future use
105
        u8  Gas;                                                // for future use
106
} __attribute__((packed)) NaviData_t;
106
} __attribute__((packed)) NaviData_t;
Line 107... Line 107...
107
 
107
 
Line 108... Line 108...
108
extern NaviData_t NaviData;
108
extern NaviData_t NaviData;