Subversion Repositories NaviCtrl

Rev

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

Rev 831 Rev 847
Line 82... Line 82...
82
 
82
 
83
extern s32 Kalman_K;
83
extern s32 Kalman_K;
84
extern s32 Kalman_Kompass ;
84
extern s32 Kalman_Kompass ;
85
extern s32 Kalman_MaxDrift;
85
extern s32 Kalman_MaxDrift;
86
extern s32 Kalman_MaxFusion;
-
 
87
extern s32 ToFcGpsZ;
86
extern s32 Kalman_MaxFusion;
88
extern s32 ToFC_Rotate_C, ToFC_Rotate_S;
87
extern s32 ToFC_Rotate_C, ToFC_Rotate_S;
89
extern s32 HeadFreeStartAngle,CompassDirectionAtMotorStart;
88
extern s32 HeadFreeStartAngle,CompassDirectionAtMotorStart;
90
extern s16 FC_WP_EventChannel,LogFC_WP_EventChannel,FC_WP_EventChannel_Processed;
89
extern s16 FC_WP_EventChannel,LogFC_WP_EventChannel,FC_WP_EventChannel_Processed;
91
extern u32 ToFC_AltitudeRate;
90
extern u32 ToFC_AltitudeRate;
Line 153... Line 152...
153
#define HOTT_GENERAL_PACKET_ID          0x8D
152
#define HOTT_GENERAL_PACKET_ID          0x8D
154
#define JETI_GPS_PACKET_ID1                     0x01
153
#define JETI_GPS_PACKET_ID1                     0x01
155
#define JETI_GPS_PACKET_ID2                     0x02
154
#define JETI_GPS_PACKET_ID2                     0x02
156
#define HOTT_WPL_NAME                           0x03
155
#define HOTT_WPL_NAME                           0x03
Line -... Line 156...
-
 
156
 
-
 
157
// bitcoding for EE_Parameter.ServoCompInvert
-
 
158
#define SERVO_NICK_INV 0x01
-
 
159
#define SERVO_ROLL_INV 0x02
-
 
160
#define SERVO_RELATIVE 0x04   //  direct poti control or relative moving of the servo value
-
 
161
#define CH_DIRECTION_1 0x08
-
 
162
#define CH_DIRECTION_2 0x10
-
 
163
 
-
 
164
//CH Orientation     ServoBits          0x08    0x10
-
 
165
// --> no change                        0       0
-
 
166
// --> front to starting point          0       1
-
 
167
// --> rear to to starting point        1       0
-
 
168
//-> start orientation                  1       1
-
 
169
 
157
 
170
 
158
typedef struct
171
typedef struct
159
{
172
{
160
        u8 Command;
173
        u8 Command;
161
        GPS_Stick_t GPSStick;
174
        GPS_Stick_t GPSStick;
Line 355... Line 368...
355
        unsigned char SingleWpSpeed;
368
        unsigned char SingleWpSpeed;
356
        unsigned char LandingPulse;
369
        unsigned char LandingPulse;
357
        unsigned char SingleWpControlChannel;
370
        unsigned char SingleWpControlChannel;
358
        unsigned char MenuKeyChannel;
371
        unsigned char MenuKeyChannel;
359
    unsigned char CamCtrlModeChannel;
372
    unsigned char CamCtrlModeChannel;
360
    unsigned char CamCtrlZoomChannel;  
373
    unsigned char CamCtrlZoomChannel;
-
 
374
    unsigned char FailSafeAltitude;
361
        unsigned char reserved[32];
375
        unsigned char reserved[31];
362
        //------------------------------------------------
376
        //------------------------------------------------
363
        unsigned char BitConfig;          // (war Loop-Cfg) Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt
377
        unsigned char BitConfig;          // (war Loop-Cfg) Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt
364
        unsigned char ServoCompInvert;    // //  0x01 = Nick, 0x02 = Roll, 0x04 = relative moving // WICHTIG!!! am Ende lassen
378
        unsigned char ServoCompInvert;    // //  0x01 = Nick, 0x02 = Roll, 0x04 = relative moving // WICHTIG!!! am Ende lassen
365
        unsigned char ExtraConfig;        // bitcodiert
379
        unsigned char ExtraConfig;        // bitcodiert
366
        unsigned char GlobalConfig3;      // bitcodiert
380
        unsigned char GlobalConfig3;      // bitcodiert
Line 369... Line 383...
369
} __attribute__((packed)) paramset_t; // must be 179 bytes 
383
} __attribute__((packed)) paramset_t; // must be 179 bytes 
Line 370... Line 384...
370
 
384
 
Line 371... Line 385...
371
extern paramset_t EE_Parameter;
385
extern paramset_t EE_Parameter;
-
 
386
 
372
 
387
#endif //_SPI_SLAVE_H