Subversion Repositories Projects

Rev

Rev 677 | Rev 734 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 677 Rev 728
Line 1... Line 1...
1
/****************************************************************************
1
/****************************************************************************
2
 *   Copyright (C) 2009 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   *
Line 50... Line 50...
50
 
50
 
51
 
51
 
52
/*
52
/*
53
 * NaviCtrl OSD Structs
53
 * NaviCtrl OSD Structs
54
 * portions taken and adapted from
54
 * portions taken and adapted from
55
 * http://svn.mikrokopter.de/mikrowebsvn/filedetails.php?repname=NaviCtrl&path=%2Ftags%2FV0.17e%2Fuart1.h
55
 * http://svn.mikrokopter.de/mikrowebsvn/filedetails.php?repname=NaviCtrl&path=%2Ftags%2FV0.18c%2Fuart1.h
56
 */
56
 */
57
typedef struct {
57
typedef struct {
58
    s32 Longitude; // in 1E-7 deg
58
    s32 Longitude; // in 1E-7 deg
Line 82... Line 82...
82
        u8  SatsInUse;                                  // number of satellites used for position solution
82
        u8  SatsInUse;                                  // number of satellites used for position solution
83
        s16 Altimeter;                                  // hight according to air pressure
83
        s16 Altimeter;                                  // hight according to air pressure
84
        s16 Variometer;                                 // climb(+) and sink(-) rate
84
        s16 Variometer;                                 // climb(+) and sink(-) rate
85
        u16 FlyingTime;                                 // in seconds
85
        u16 FlyingTime;                                 // in seconds
86
        u8  UBat;                                       // Battery Voltage in 0.1 Volts
86
        u8  UBat;                                       // Battery Voltage in 0.1 Volts
87
        u16 GroundSpeed;                                // speed over ground in cm/s (2D)
87
        u16 GroundSpeed;                                // speed over ground in cm/s (2D)
88
        s16 Heading;                                    // current flight direction in ° as angle to north
88
        s16 Heading;                                    // current flight direction in � as angle to north
89
        s16 CompassHeading;                             // current compass value in °
89
        s16 CompassHeading;                             // current compass value in �
90
        s8  AngleNick;                                  // current Nick angle in 1°
90
        s8  AngleNick;                                  // current Nick angle in 1�
91
        s8  AngleRoll;                                  // current Rick angle in 1°
91
        s8  AngleRoll;                                  // current Rick angle in 1�
92
        u8  RC_Quality;                                 // RC_Quality
92
        u8  RC_Quality;                                 // RC_Quality
93
        u8  MKFlags;                                    // Flags from FC
93
        u8  FCFlags;                                    // Flags from FC
94
        u8  NCFlags;                                    // Flags from NC
94
        u8  NCFlags;                                    // Flags from NC
95
        u8  Errorcode;                                  // 0 --> okay
95
        u8  Errorcode;                                  // 0 --> okay
96
        u8  OperatingRadius;                            // current operation radius around the Home Position in m
96
        u8  OperatingRadius;                            // current operation radius around the Home Position in m
97
        s16 TopSpeed;                                   // velocity in vertical direction in cm/s
97
        s16 TopSpeed;                                   // velocity in vertical direction in cm/s
98
        u8  TargetHoldTime;                             // time in s to stay at the given target, counts down to 0 if target has been reached
98
        u8  TargetHoldTime;                             // time in s to stay at the given target, counts down to 0 if target has been reached
99
        u8  RC_RSSI;                                    // Receiver signal strength (since version 2 added)
99
        u8  RC_RSSI;                                    // Receiver signal strength (since version 2 added)
100
        s16 SetpointAltitude;                           // setpoint for altitude
100
        s16 SetpointAltitude;                           // setpoint for altitude
-
 
101
        u8  Gas;                                        // for future use
-
 
102
        u16 Current;                                    // actual current in 0.1A steps
101
        u8  Gas;                                        // for future use
103
        u16 UsedCapacity;                               // used capacity in mAh
Line -... Line 104...
-
 
104
} __attribute__((packed)) NaviData_t;
102
} __attribute__((packed)) NaviData_t;
105
 
103
 
106
 
104
/*
107
/*
105
 * MikroKopter Flags
108
 * MikroKopter Flags
106
 * taken from
109
 * taken from