Rev 741 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 741 | Rev 754 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | #include <avr/interrupt.h> |
3 | #include <avr/interrupt.h> |
4 | #include "eeprom.h" |
4 | #include "eeprom.h" |
5 | #include "analog.h" |
5 | #include "analog.h" |
6 | #include "main.h" |
6 | #include "main.h" |
7 | #include "fc.h" |
7 | #include "fc.h" |
- | 8 | #ifdef USE_MM3 |
|
8 | #include "mm3.h" |
9 | #include "mm3.h" |
- | 10 | #endif |
|
- | 11 | #ifdef USE_CMPS03 |
|
- | 12 | #include "cmps03.h" |
|
- | 13 | #endif |
|
Line 9... | Line 14... | ||
9 | 14 | ||
10 | volatile uint16_t CountMilliseconds = 0; |
15 | volatile uint16_t CountMilliseconds = 0; |
11 | volatile uint8_t UpdateMotor = 0; |
16 | volatile uint8_t UpdateMotor = 0; |
12 | volatile uint16_t cntKompass = 0; |
17 | volatile uint16_t cntKompass = 0; |
Line 136... | Line 141... | ||
136 | } |
141 | } |
Line 137... | Line 142... | ||
137 | 142 | ||
138 | // update compass value if this option is enabled in the settings |
143 | // update compass value if this option is enabled in the settings |
139 | if(ParamSet.GlobalConfig & CFG_COMPASS_ACTIVE) |
144 | if(ParamSet.GlobalConfig & CFG_COMPASS_ACTIVE) |
- | 145 | { |
|
140 | { |
146 | #ifdef USE_MM3 |
- | 147 | MM3_Update(); // read out mm3 board |
|
- | 148 | #endif |
|
- | 149 | #ifdef USE_CMPS03 |
|
- | 150 | CMPS03_Update(); // read out cmps03 pwm |
|
141 | MM3_Update(); // read out mm3 board |
151 | #endif |
142 | } |
152 | } |