Subversion Repositories NaviCtrl

Rev

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

Rev 121 Rev 125
Line 68... Line 68...
68
{
68
{
69
        u16 Distance;                                   // distance to target in dm
69
        u16 Distance;                                   // distance to target in dm
70
        s16 Bearing;                                    // course to target in deg
70
        s16 Bearing;                                    // course to target in deg
71
}  __attribute__((packed)) GPS_PosDev_t;
71
}  __attribute__((packed)) GPS_PosDev_t;
Line 72... Line 72...
72
 
72
 
Line 73... Line 73...
73
#define NAVIDATA_VERSION 1
73
#define NAVIDATA_VERSION 1 // should be set to 2 of MK-Tool is adopted
74
 
74
 
75
typedef struct
75
typedef struct
76
{
76
{
Line 96... Line 96...
96
        u8  MKFlags;                                    // Flags from FC
96
        u8  MKFlags;                                    // Flags from FC
97
        u8  NCFlags;                                    // Flags from NC
97
        u8  NCFlags;                                    // Flags from NC
98
        u8  Errorcode;                                  // 0 --> okay
98
        u8  Errorcode;                                  // 0 --> okay
99
    u8  OperatingRadius;                        // current operation radius around the Home Position in m
99
    u8  OperatingRadius;                        // current operation radius around the Home Position in m
100
        s16 TopSpeed;                                   // velocity in vertical direction in cm/s
100
        s16 TopSpeed;                                   // velocity in vertical direction in cm/s
101
        u8 TargetHoldTime;                              // time in s to stay at the given target, counts down to 0 if target has been reached
101
        u8  TargetHoldTime;                             // time in s to stay at the given target, counts down to 0 if target has been reached
-
 
102
        u8  RC_RSSI;                                    // Receiver signal strength (since version 2 added)
102
        u8  Reserve[4];                                 // for future use
103
        u8  Reserve[3];                                 // for future use
103
} __attribute__((packed)) NaviData_t;
104
} __attribute__((packed)) NaviData_t;
Line 104... Line 105...
104
 
105
 
Line 105... Line 106...
105
extern NaviData_t NaviData;
106
extern NaviData_t NaviData;