Subversion Repositories FlightCtrl

Rev

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

Rev 528 Rev 529
Line 17... Line 17...
17
#define ROT_FLASH PORTB ^= 0x01
17
#define ROT_FLASH PORTB ^= 0x01
18
#define GRN_OFF   PORTB &=~0x02 
18
#define GRN_OFF   PORTB &=~0x02 
19
#define GRN_ON    PORTB |= 0x02 
19
#define GRN_ON    PORTB |= 0x02 
20
#define GRN_FLASH PORTB ^= 0x02
20
#define GRN_FLASH PORTB ^= 0x02
Line -... Line 21...
-
 
21
 
21
 
22
#define F_CPU SYSCLK
22
//#ifndef F_CPU
23
//#ifndef F_CPU
23
//#error ################## F_CPU nicht definiert oder ungültig #############
24
//#error ################## F_CPU nicht definiert oder ungültig #############
24
//#endif
-
 
25
 
25
//#endif
Line 26... Line -...
26
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
 
27
 
-
 
28
//#define ANZ_MITTELWERT   4
26
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
29
 
27
 
30
#define EEPROM_ADR_VALID            1
28
#define EEPROM_ADR_VALID            1
Line -... Line 29...
-
 
29
#define EEPROM_ADR_ACTIVE_SET       2
-
 
30
#define EEPROM_ADR_LAST_OFFSET      3
-
 
31
 
-
 
32
#define EEPROM_ADR_ACC_NICK         4
31
#define EEPROM_ADR_ACTIVE_SET       2
33
#define EEPROM_ADR_ACC_ROLL         6
Line 32... Line 34...
32
#define EEPROM_ADR_LAST_OFFSET      3
34
#define EEPROM_ADR_ACC_Z            8
33
 
35
 
34
#define EEPROM_ADR_PARAM_BEGIN      100
36
#define EEPROM_ADR_PARAM_BEGIN      100
35
 
37
 
36
#define CFG_HOEHENREGELUNG  0x01
38
#define CFG_HOEHENREGELUNG       0x01
37
#define CFG_HOEHEN_SCHALTER 0x02
39
#define CFG_HOEHEN_SCHALTER      0x02
-
 
40
#define CFG_HEADING_HOLD         0x04
-
 
41
#define CFG_KOMPASS_AKTIV        0x08
Line 38... Line 42...
38
#define CFG_HEADING_HOLD    0x04
42
#define CFG_KOMPASS_FIX          0x10
39
#define CFG_KOMPASS_AKTIV   0x08
43
#define CFG_GPS_AKTIV            0x20
40
#define CFG_KOMPASS_FIX     0x10
44
#define CFG_ACHSENKOPPLUNG_AKTIV 0x40
41
#define CFG_GPS_AKTIV       0x20
45
#define CFG_DREHRATEN_BEGRENZER  0x80
Line 50... Line 54...
50
extern volatile int i_Nick[20],i_Roll[20],DiffNick,DiffRoll;
54
extern volatile int i_Nick[20],i_Roll[20],DiffNick,DiffRoll;
51
extern volatile unsigned char SenderOkay;
55
extern volatile unsigned char SenderOkay;
52
extern unsigned char CosinusNickWinkel, CosinusRollWinkel;
56
extern unsigned char CosinusNickWinkel, CosinusRollWinkel;
53
extern unsigned char PlatinenVersion;
57
extern unsigned char PlatinenVersion;
Line 54... Line 58...
54
 
58
 
55
extern void ReadParameterSet (unsigned char number, unsigned char *buffer, unsigned char length);
59
void ReadParameterSet (unsigned char number, unsigned char *buffer, unsigned char length);
56
extern void WriteParameterSet(unsigned char number, unsigned char *buffer, unsigned char length);
60
void WriteParameterSet(unsigned char number, unsigned char *buffer, unsigned char length);
57
extern unsigned char GetActiveParamSetNumber(void);
61
extern unsigned char GetActiveParamSetNumber(void);
Line 58... Line 62...
58
extern unsigned char EEPromArray[];
62
extern unsigned char EEPromArray[];
59
 
63
 
Line 66... Line 70...
66
#include <avr/boot.h>
70
#include <avr/boot.h>
67
#include <avr/wdt.h>
71
#include <avr/wdt.h>
Line 68... Line 72...
68
 
72
 
Line 69... Line 73...
69
#include "old_macros.h"
73
#include "old_macros.h"
70
 
74
 
71
#include "_settings.h"
75
#include "_Settings.h"
72
#include "printf_P.h"
76
#include "printf_P.h"
73
#include "timer0.h"
77
#include "timer0.h"
74
#include "uart.h"
78
#include "uart.h"
75
#include "analog.h"
79
#include "analog.h"
76
#include "twimaster.h"
80
#include "twimaster.h"
77
#include "menu.h"
81
#include "menu.h"
78
#include "rc.h"
-
 
79
#include "fc.h"
82
#include "rc.h"
-
 
83
#include "fc.h"
-
 
84
#include "gps.h"
Line 80... Line 85...
80
#include "math.h"
85
#include "spi.h"
81
#include "gps.h"
86
 
82
 
87